OSDN Git Service

Refine previous change.
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 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     arm*)
6969       enable_fixed_point=yes
6970       ;;
6971
6972     mips*-*-*)
6973       case $host in
6974         mips*-sgi-irix*)
6975           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6976 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6977           enable_fixed_point=no
6978           ;;
6979         *)
6980           enable_fixed_point=yes
6981           ;;
6982       esac
6983       ;;
6984     *)
6985       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6986 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6987       enable_fixed_point=no
6988       ;;
6989   esac
6990
6991 fi
6992
6993
6994
6995 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6996
6997 cat >>confdefs.h <<_ACEOF
6998 #define ENABLE_FIXED_POINT $fixedpoint
6999 _ACEOF
7000
7001
7002 # Enable threads
7003 # Pass with no value to take the default
7004 # Pass with a value to specify a thread package
7005 # Check whether --enable-threads was given.
7006 if test "${enable_threads+set}" = set; then :
7007   enableval=$enable_threads;
7008 else
7009   enable_threads=''
7010 fi
7011
7012
7013 # Check whether --enable-tls was given.
7014 if test "${enable_tls+set}" = set; then :
7015   enableval=$enable_tls;
7016   case $enable_tls in
7017     yes | no) ;;
7018     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7019 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7020   esac
7021
7022 else
7023   enable_tls=''
7024 fi
7025
7026
7027 # Check whether --enable-objc-gc was given.
7028 if test "${enable_objc_gc+set}" = set; then :
7029   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7030         objc_boehm_gc=''
7031 else
7032         objc_boehm_gc=1
7033 fi
7034 else
7035   objc_boehm_gc=''
7036 fi
7037
7038
7039
7040 # Check whether --with-dwarf2 was given.
7041 if test "${with_dwarf2+set}" = set; then :
7042   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7043 else
7044   dwarf2=no
7045 fi
7046
7047
7048 # Check whether --enable-shared was given.
7049 if test "${enable_shared+set}" = set; then :
7050   enableval=$enable_shared;
7051   case $enable_shared in
7052   yes | no) ;;
7053   *)
7054     enable_shared=no
7055     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7056     for pkg in $enableval; do
7057       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7058         enable_shared=yes
7059       fi
7060     done
7061     IFS="$ac_save_ifs"
7062     ;;
7063   esac
7064
7065 else
7066   enable_shared=yes
7067 fi
7068
7069
7070
7071
7072 # Check whether --with-build-sysroot was given.
7073 if test "${with_build_sysroot+set}" = set; then :
7074   withval=$with_build_sysroot;
7075 fi
7076
7077
7078
7079 # Check whether --with-sysroot was given.
7080 if test "${with_sysroot+set}" = set; then :
7081   withval=$with_sysroot;
7082  case ${with_sysroot} in
7083  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7084  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7085  esac
7086
7087  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7088  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7089
7090  if test "x$prefix" = xNONE; then
7091   test_prefix=/usr/local
7092  else
7093   test_prefix=$prefix
7094  fi
7095  if test "x$exec_prefix" = xNONE; then
7096   test_exec_prefix=$test_prefix
7097  else
7098   test_exec_prefix=$exec_prefix
7099  fi
7100  case ${TARGET_SYSTEM_ROOT} in
7101  "${test_prefix}"|"${test_prefix}/"*|\
7102  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7103  '${prefix}'|'${prefix}/'*|\
7104  '${exec_prefix}'|'${exec_prefix}/'*)
7105    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7106    TARGET_SYSTEM_ROOT_DEFINE="$t"
7107    ;;
7108  esac
7109
7110 else
7111
7112  TARGET_SYSTEM_ROOT=
7113  TARGET_SYSTEM_ROOT_DEFINE=
7114  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7115
7116 fi
7117
7118
7119
7120
7121
7122
7123 # Check whether --with-specs was given.
7124 if test "${with_specs+set}" = set; then :
7125   withval=$with_specs; CONFIGURE_SPECS=$withval
7126 else
7127   CONFIGURE_SPECS=
7128
7129 fi
7130
7131
7132
7133
7134
7135 # Check whether --with-pkgversion was given.
7136 if test "${with_pkgversion+set}" = set; then :
7137   withval=$with_pkgversion; case "$withval" in
7138       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7139       no)  PKGVERSION= ;;
7140       *)   PKGVERSION="($withval) " ;;
7141      esac
7142 else
7143   PKGVERSION="(GCC) "
7144
7145 fi
7146
7147
7148
7149
7150
7151 # Check whether --with-bugurl was given.
7152 if test "${with_bugurl+set}" = set; then :
7153   withval=$with_bugurl; case "$withval" in
7154       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7155       no)  BUGURL=
7156            ;;
7157       *)   BUGURL="$withval"
7158            ;;
7159      esac
7160 else
7161   BUGURL="http://gcc.gnu.org/bugs.html"
7162
7163 fi
7164
7165   case ${BUGURL} in
7166   "")
7167     REPORT_BUGS_TO=
7168     REPORT_BUGS_TEXI=
7169     ;;
7170   *)
7171     REPORT_BUGS_TO="<$BUGURL>"
7172     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7173     ;;
7174   esac;
7175
7176
7177
7178
7179 # Sanity check enable_languages in case someone does not run the toplevel
7180 # configure # script.
7181 # Check whether --enable-languages was given.
7182 if test "${enable_languages+set}" = set; then :
7183   enableval=$enable_languages; case ,${enable_languages}, in
7184        ,,|,yes,)
7185                 # go safe -- we cannot be much sure without the toplevel
7186                 # configure's
7187                 # analysis of which target libs are present and usable
7188                 enable_languages=c
7189                 ;;
7190          *,all,*)
7191                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7192                 ;;
7193         *,c,*)
7194                 ;;
7195         *)
7196                 enable_languages=c,${enable_languages}
7197                 ;;
7198 esac
7199 else
7200   enable_languages=c
7201 fi
7202
7203
7204
7205 # Check whether --with-multilib-list was given.
7206 if test "${with_multilib_list+set}" = set; then :
7207   withval=$with_multilib_list; :
7208 else
7209   with_multilib_list=default
7210 fi
7211
7212
7213 # -------------------------
7214 # Checks for other programs
7215 # -------------------------
7216
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7218 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7219 set x ${MAKE-make}
7220 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7221 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   cat >conftest.make <<\_ACEOF
7225 SHELL = /bin/sh
7226 all:
7227         @echo '@@@%%%=$(MAKE)=@@@%%%'
7228 _ACEOF
7229 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7230 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7231   *@@@%%%=?*=@@@%%%*)
7232     eval ac_cv_prog_make_${ac_make}_set=yes;;
7233   *)
7234     eval ac_cv_prog_make_${ac_make}_set=no;;
7235 esac
7236 rm -f conftest.make
7237 fi
7238 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7240 $as_echo "yes" >&6; }
7241   SET_MAKE=
7242 else
7243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7245   SET_MAKE="MAKE=${MAKE-make}"
7246 fi
7247
7248
7249 # Find some useful tools
7250 for ac_prog in gawk mawk nawk awk
7251 do
7252   # Extract the first word of "$ac_prog", so it can be a program name with args.
7253 set dummy $ac_prog; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if test "${ac_cv_prog_AWK+set}" = set; then :
7257   $as_echo_n "(cached) " >&6
7258 else
7259   if test -n "$AWK"; then
7260   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265   IFS=$as_save_IFS
7266   test -z "$as_dir" && as_dir=.
7267     for ac_exec_ext in '' $ac_executable_extensions; do
7268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7269     ac_cv_prog_AWK="$ac_prog"
7270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271     break 2
7272   fi
7273 done
7274   done
7275 IFS=$as_save_IFS
7276
7277 fi
7278 fi
7279 AWK=$ac_cv_prog_AWK
7280 if test -n "$AWK"; then
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7282 $as_echo "$AWK" >&6; }
7283 else
7284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286 fi
7287
7288
7289   test -n "$AWK" && break
7290 done
7291
7292 # We need awk to create options.c and options.h.
7293 # Bail out if it's missing.
7294 case ${AWK} in
7295   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7296 esac
7297
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7299 $as_echo_n "checking whether ln -s works... " >&6; }
7300 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7301   $as_echo_n "(cached) " >&6
7302 else
7303   rm -f conftestdata_t
7304 echo >conftestdata_f
7305 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7306 then
7307   gcc_cv_prog_LN_S="ln -s"
7308 else
7309   if ln conftestdata_f conftestdata_t 2>/dev/null
7310   then
7311     gcc_cv_prog_LN_S=ln
7312   else
7313     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7314     then
7315       gcc_cv_prog_LN_S="cp -p"
7316     else
7317       gcc_cv_prog_LN_S=cp
7318     fi
7319   fi
7320 fi
7321 rm -f conftestdata_f conftestdata_t
7322
7323 fi
7324 LN_S="$gcc_cv_prog_LN_S"
7325 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7327 $as_echo "yes" >&6; }
7328 else
7329   if test "$gcc_cv_prog_LN_S" = "ln"; then
7330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7331 $as_echo "no, using ln" >&6; }
7332   else
7333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7334 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7335   fi
7336 fi
7337
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7339 $as_echo_n "checking whether ln works... " >&6; }
7340 if test "${acx_cv_prog_LN+set}" = set; then :
7341   $as_echo_n "(cached) " >&6
7342 else
7343   rm -f conftestdata_t
7344 echo >conftestdata_f
7345 if ln conftestdata_f conftestdata_t 2>/dev/null
7346 then
7347   acx_cv_prog_LN=ln
7348 else
7349   acx_cv_prog_LN=no
7350 fi
7351 rm -f conftestdata_f conftestdata_t
7352
7353 fi
7354 if test $acx_cv_prog_LN = no; then
7355   LN="$LN_S"
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7357 $as_echo "no, using $LN" >&6; }
7358 else
7359   LN="$acx_cv_prog_LN"
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7361 $as_echo "yes" >&6; }
7362 fi
7363
7364 if test -n "$ac_tool_prefix"; then
7365   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7370   $as_echo_n "(cached) " >&6
7371 else
7372   if test -n "$RANLIB"; then
7373   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378   IFS=$as_save_IFS
7379   test -z "$as_dir" && as_dir=.
7380     for ac_exec_ext in '' $ac_executable_extensions; do
7381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384     break 2
7385   fi
7386 done
7387   done
7388 IFS=$as_save_IFS
7389
7390 fi
7391 fi
7392 RANLIB=$ac_cv_prog_RANLIB
7393 if test -n "$RANLIB"; then
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7395 $as_echo "$RANLIB" >&6; }
7396 else
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7399 fi
7400
7401
7402 fi
7403 if test -z "$ac_cv_prog_RANLIB"; then
7404   ac_ct_RANLIB=$RANLIB
7405   # Extract the first word of "ranlib", so it can be a program name with args.
7406 set dummy ranlib; ac_word=$2
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7410   $as_echo_n "(cached) " >&6
7411 else
7412   if test -n "$ac_ct_RANLIB"; then
7413   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7414 else
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7417 do
7418   IFS=$as_save_IFS
7419   test -z "$as_dir" && as_dir=.
7420     for ac_exec_ext in '' $ac_executable_extensions; do
7421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7422     ac_cv_prog_ac_ct_RANLIB="ranlib"
7423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424     break 2
7425   fi
7426 done
7427   done
7428 IFS=$as_save_IFS
7429
7430 fi
7431 fi
7432 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7433 if test -n "$ac_ct_RANLIB"; then
7434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7435 $as_echo "$ac_ct_RANLIB" >&6; }
7436 else
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7439 fi
7440
7441   if test "x$ac_ct_RANLIB" = x; then
7442     RANLIB=":"
7443   else
7444     case $cross_compiling:$ac_tool_warned in
7445 yes:)
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7448 ac_tool_warned=yes ;;
7449 esac
7450     RANLIB=$ac_ct_RANLIB
7451   fi
7452 else
7453   RANLIB="$ac_cv_prog_RANLIB"
7454 fi
7455
7456 case "${host}" in
7457 *-*-darwin*)
7458   # By default, the Darwin ranlib will not treat common symbols as
7459   # definitions when  building the archive table of contents.  Other
7460   # ranlibs do that; pass an option to the Darwin ranlib that makes
7461   # it behave similarly.
7462   ranlib_flags="-c"
7463   ;;
7464 *)
7465   ranlib_flags=""
7466 esac
7467
7468
7469 # Find a good install program.  We prefer a C program (faster),
7470 # so one script is as good as another.  But avoid the broken or
7471 # incompatible versions:
7472 # SysV /etc/install, /usr/sbin/install
7473 # SunOS /usr/etc/install
7474 # IRIX /sbin/install
7475 # AIX /bin/install
7476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7478 # ./install, which can be erroneously created by make from ./install.sh.
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7480 $as_echo_n "checking for a BSD compatible install... " >&6; }
7481 if test -z "$INSTALL"; then
7482 if test "${ac_cv_path_install+set}" = set; then :
7483   $as_echo_n "(cached) " >&6
7484 else
7485     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7486   for ac_dir in $PATH; do
7487     # Account for people who put trailing slashes in PATH elements.
7488     case "$ac_dir/" in
7489     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7490     *)
7491       # OSF1 and SCO ODT 3.0 have their own names for install.
7492       for ac_prog in ginstall scoinst install; do
7493         if test -f $ac_dir/$ac_prog; then
7494           if test $ac_prog = install &&
7495             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7496             # AIX install.  It has an incompatible calling convention.
7497             # OSF/1 installbsd also uses dspmsg, but is usable.
7498             :
7499           else
7500             ac_cv_path_install="$ac_dir/$ac_prog -c"
7501             break 2
7502           fi
7503         fi
7504       done
7505       ;;
7506     esac
7507   done
7508   IFS="$ac_save_IFS"
7509
7510 fi
7511   if test "${ac_cv_path_install+set}" = set; then
7512     INSTALL="$ac_cv_path_install"
7513   else
7514     # As a last resort, use the slow shell script.  We don't cache a
7515     # path for INSTALL within a source directory, because that will
7516     # break other packages using the cache if that directory is
7517     # removed, or if the path is relative.
7518     INSTALL="$ac_install_sh"
7519   fi
7520 fi
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7522 $as_echo "$INSTALL" >&6; }
7523
7524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7525 # It thinks the first close brace ends the variable substitution.
7526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7527
7528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7529
7530
7531 # See if cmp has --ignore-initial.
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7533 $as_echo_n "checking for cmp's capabilities... " >&6; }
7534 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537    echo abfoo >t1
7538   echo cdfoo >t2
7539   gcc_cv_prog_cmp_skip=slowcompare
7540   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7541     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7542       :
7543     else
7544       gcc_cv_prog_cmp_skip=gnucompare
7545     fi
7546   fi
7547   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7548     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7549       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7550         :
7551       else
7552         gcc_cv_prog_cmp_skip=fastcompare
7553       fi
7554     fi
7555   fi
7556   rm t1 t2
7557
7558 fi
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7560 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7561 make_compare_target=$gcc_cv_prog_cmp_skip
7562
7563
7564
7565 # See if we have the mktemp command.
7566 # Extract the first word of "mktemp", so it can be a program name with args.
7567 set dummy mktemp; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7571   $as_echo_n "(cached) " >&6
7572 else
7573   if test -n "$have_mktemp_command"; then
7574   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579   IFS=$as_save_IFS
7580   test -z "$as_dir" && as_dir=.
7581     for ac_exec_ext in '' $ac_executable_extensions; do
7582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583     ac_cv_prog_have_mktemp_command="yes"
7584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585     break 2
7586   fi
7587 done
7588   done
7589 IFS=$as_save_IFS
7590
7591   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7592 fi
7593 fi
7594 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7595 if test -n "$have_mktemp_command"; then
7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7597 $as_echo "$have_mktemp_command" >&6; }
7598 else
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7601 fi
7602
7603
7604
7605 # See if makeinfo has been installed and is modern enough
7606 # that we can use it.
7607
7608   # Extract the first word of "makeinfo", so it can be a program name with args.
7609 set dummy makeinfo; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7613   $as_echo_n "(cached) " >&6
7614 else
7615   if test -n "$MAKEINFO"; then
7616   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621   IFS=$as_save_IFS
7622   test -z "$as_dir" && as_dir=.
7623     for ac_exec_ext in '' $ac_executable_extensions; do
7624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625     ac_cv_prog_MAKEINFO="makeinfo"
7626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627     break 2
7628   fi
7629 done
7630   done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 MAKEINFO=$ac_cv_prog_MAKEINFO
7636 if test -n "$MAKEINFO"; then
7637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7638 $as_echo "$MAKEINFO" >&6; }
7639 else
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644
7645   if test -n "$MAKEINFO"; then
7646     # Found it, now check the version.
7647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7648 $as_echo_n "checking for modern makeinfo... " >&6; }
7649 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7653                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7654
7655                     case $ac_prog_version in
7656                       '')  gcc_cv_prog_makeinfo_modern=no;;
7657                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7658                       *)   gcc_cv_prog_makeinfo_modern=no;;
7659                     esac
7660
7661 fi
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7663 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7664   else
7665     gcc_cv_prog_makeinfo_modern=no
7666   fi
7667   if test $gcc_cv_prog_makeinfo_modern = no; then
7668     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7669   fi
7670
7671 if test $gcc_cv_prog_makeinfo_modern = no; then
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7673 *** Makeinfo is missing or too old.
7674 *** Info documentation will not be built." >&5
7675 $as_echo "$as_me: WARNING:
7676 *** Makeinfo is missing or too old.
7677 *** Info documentation will not be built." >&2;}
7678   BUILD_INFO=
7679 else
7680   BUILD_INFO=info
7681 fi
7682
7683
7684 # Is pod2man recent enough to regenerate manpages?
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7686 $as_echo_n "checking for recent Pod::Man... " >&6; }
7687 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7689 $as_echo "yes" >&6; }
7690   GENERATED_MANPAGES=generated-manpages
7691 else
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7694   GENERATED_MANPAGES=
7695 fi
7696
7697
7698 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7699
7700 # How about lex?
7701 for ac_prog in flex
7702 do
7703   # Extract the first word of "$ac_prog", so it can be a program name with args.
7704 set dummy $ac_prog; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if test "${ac_cv_prog_FLEX+set}" = set; then :
7708   $as_echo_n "(cached) " >&6
7709 else
7710   if test -n "$FLEX"; then
7711   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716   IFS=$as_save_IFS
7717   test -z "$as_dir" && as_dir=.
7718     for ac_exec_ext in '' $ac_executable_extensions; do
7719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720     ac_cv_prog_FLEX="$ac_prog"
7721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722     break 2
7723   fi
7724 done
7725   done
7726 IFS=$as_save_IFS
7727
7728 fi
7729 fi
7730 FLEX=$ac_cv_prog_FLEX
7731 if test -n "$FLEX"; then
7732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7733 $as_echo "$FLEX" >&6; }
7734 else
7735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7737 fi
7738
7739
7740   test -n "$FLEX" && break
7741 done
7742 test -n "$FLEX" || FLEX="$MISSING flex"
7743
7744
7745 # Bison?
7746 for ac_prog in bison
7747 do
7748   # Extract the first word of "$ac_prog", so it can be a program name with args.
7749 set dummy $ac_prog; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if test "${ac_cv_prog_BISON+set}" = set; then :
7753   $as_echo_n "(cached) " >&6
7754 else
7755   if test -n "$BISON"; then
7756   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7757 else
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7760 do
7761   IFS=$as_save_IFS
7762   test -z "$as_dir" && as_dir=.
7763     for ac_exec_ext in '' $ac_executable_extensions; do
7764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7765     ac_cv_prog_BISON="$ac_prog"
7766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767     break 2
7768   fi
7769 done
7770   done
7771 IFS=$as_save_IFS
7772
7773 fi
7774 fi
7775 BISON=$ac_cv_prog_BISON
7776 if test -n "$BISON"; then
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7778 $as_echo "$BISON" >&6; }
7779 else
7780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7782 fi
7783
7784
7785   test -n "$BISON" && break
7786 done
7787 test -n "$BISON" || BISON="$MISSING bison"
7788
7789
7790 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7791 # check for build == host before using them.
7792
7793 # NM
7794 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7795   && test -d ../binutils ; then
7796   NM='${objdir}/../binutils/nm-new'
7797 else
7798   # Extract the first word of "nm", so it can be a program name with args.
7799 set dummy nm; ac_word=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if test "${ac_cv_prog_NM+set}" = set; then :
7803   $as_echo_n "(cached) " >&6
7804 else
7805   if test -n "$NM"; then
7806   ac_cv_prog_NM="$NM" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7810 do
7811   IFS=$as_save_IFS
7812   test -z "$as_dir" && as_dir=.
7813     for ac_exec_ext in '' $ac_executable_extensions; do
7814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815     ac_cv_prog_NM="nm"
7816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817     break 2
7818   fi
7819 done
7820   done
7821 IFS=$as_save_IFS
7822
7823   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7824 fi
7825 fi
7826 NM=$ac_cv_prog_NM
7827 if test -n "$NM"; then
7828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7829 $as_echo "$NM" >&6; }
7830 else
7831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7833 fi
7834
7835
7836 fi
7837
7838 # AR
7839 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7840   && test -d ../binutils ; then
7841   AR='${objdir}/../binutils/ar'
7842 else
7843   # Extract the first word of "ar", so it can be a program name with args.
7844 set dummy ar; ac_word=$2
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if test "${ac_cv_prog_AR+set}" = set; then :
7848   $as_echo_n "(cached) " >&6
7849 else
7850   if test -n "$AR"; then
7851   ac_cv_prog_AR="$AR" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7855 do
7856   IFS=$as_save_IFS
7857   test -z "$as_dir" && as_dir=.
7858     for ac_exec_ext in '' $ac_executable_extensions; do
7859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860     ac_cv_prog_AR="ar"
7861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862     break 2
7863   fi
7864 done
7865   done
7866 IFS=$as_save_IFS
7867
7868   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7869 fi
7870 fi
7871 AR=$ac_cv_prog_AR
7872 if test -n "$AR"; then
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7874 $as_echo "$AR" >&6; }
7875 else
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880
7881 fi
7882
7883
7884 # --------------------
7885 # Checks for C headers
7886 # --------------------
7887
7888 # Need to reject headers which give warnings, so that the -Werror bootstrap
7889 # works later. *sigh*  This needs to come before all header checks.
7890
7891 ac_c_preproc_warn_flag=yes
7892
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7894 $as_echo_n "checking for ANSI C header files... " >&6; }
7895 if test "${ac_cv_header_stdc+set}" = set; then :
7896   $as_echo_n "(cached) " >&6
7897 else
7898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h.  */
7900 #include <stdlib.h>
7901 #include <stdarg.h>
7902 #include <string.h>
7903 #include <float.h>
7904
7905 int
7906 main ()
7907 {
7908
7909   ;
7910   return 0;
7911 }
7912 _ACEOF
7913 if ac_fn_c_try_compile "$LINENO"; then :
7914   ac_cv_header_stdc=yes
7915 else
7916   ac_cv_header_stdc=no
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7919
7920 if test $ac_cv_header_stdc = yes; then
7921   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h.  */
7924 #include <string.h>
7925
7926 _ACEOF
7927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7928   $EGREP "memchr" >/dev/null 2>&1; then :
7929
7930 else
7931   ac_cv_header_stdc=no
7932 fi
7933 rm -f conftest*
7934
7935 fi
7936
7937 if test $ac_cv_header_stdc = yes; then
7938   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h.  */
7941 #include <stdlib.h>
7942
7943 _ACEOF
7944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7945   $EGREP "free" >/dev/null 2>&1; then :
7946
7947 else
7948   ac_cv_header_stdc=no
7949 fi
7950 rm -f conftest*
7951
7952 fi
7953
7954 if test $ac_cv_header_stdc = yes; then
7955   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7956   if test "$cross_compiling" = yes; then :
7957   :
7958 else
7959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h.  */
7961 #include <ctype.h>
7962 #include <stdlib.h>
7963 #if ((' ' & 0x0FF) == 0x020)
7964 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7965 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7966 #else
7967 # define ISLOWER(c) \
7968                    (('a' <= (c) && (c) <= 'i') \
7969                      || ('j' <= (c) && (c) <= 'r') \
7970                      || ('s' <= (c) && (c) <= 'z'))
7971 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7972 #endif
7973
7974 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7975 int
7976 main ()
7977 {
7978   int i;
7979   for (i = 0; i < 256; i++)
7980     if (XOR (islower (i), ISLOWER (i))
7981         || toupper (i) != TOUPPER (i))
7982       return 2;
7983   return 0;
7984 }
7985 _ACEOF
7986 if ac_fn_c_try_run "$LINENO"; then :
7987
7988 else
7989   ac_cv_header_stdc=no
7990 fi
7991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7992   conftest.$ac_objext conftest.beam conftest.$ac_ext
7993 fi
7994
7995 fi
7996 fi
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7998 $as_echo "$ac_cv_header_stdc" >&6; }
7999 if test $ac_cv_header_stdc = yes; then
8000
8001 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8002
8003 fi
8004
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8006 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8007 if test "${ac_cv_header_time+set}" = set; then :
8008   $as_echo_n "(cached) " >&6
8009 else
8010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h.  */
8012 #include <sys/types.h>
8013 #include <sys/time.h>
8014 #include <time.h>
8015
8016 int
8017 main ()
8018 {
8019 if ((struct tm *) 0)
8020 return 0;
8021   ;
8022   return 0;
8023 }
8024 _ACEOF
8025 if ac_fn_c_try_compile "$LINENO"; then :
8026   ac_cv_header_time=yes
8027 else
8028   ac_cv_header_time=no
8029 fi
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 fi
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8033 $as_echo "$ac_cv_header_time" >&6; }
8034 if test $ac_cv_header_time = yes; then
8035
8036 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8037
8038 fi
8039
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8041 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8042 if test "${gcc_cv_header_string+set}" = set; then :
8043   $as_echo_n "(cached) " >&6
8044 else
8045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h.  */
8047 #include <string.h>
8048 #include <strings.h>
8049 int
8050 main ()
8051 {
8052
8053   ;
8054   return 0;
8055 }
8056 _ACEOF
8057 if ac_fn_c_try_compile "$LINENO"; then :
8058   gcc_cv_header_string=yes
8059 else
8060   gcc_cv_header_string=no
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8065 $as_echo "$gcc_cv_header_string" >&6; }
8066 if test $gcc_cv_header_string = yes; then
8067
8068 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8069
8070 fi
8071
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8073 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8074 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8075   $as_echo_n "(cached) " >&6
8076 else
8077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h.  */
8079 #include <sys/types.h>
8080 #include <sys/wait.h>
8081 #ifndef WEXITSTATUS
8082 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8083 #endif
8084 #ifndef WIFEXITED
8085 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8086 #endif
8087
8088 int
8089 main ()
8090 {
8091   int s;
8092   wait (&s);
8093   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8094   ;
8095   return 0;
8096 }
8097 _ACEOF
8098 if ac_fn_c_try_compile "$LINENO"; then :
8099   ac_cv_header_sys_wait_h=yes
8100 else
8101   ac_cv_header_sys_wait_h=no
8102 fi
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 fi
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8106 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8107 if test $ac_cv_header_sys_wait_h = yes; then
8108
8109 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8110
8111 fi
8112
8113 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8114                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8115                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8116                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8117 do :
8118   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8119 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8120 eval as_val=\$$as_ac_Header
8121    if test "x$as_val" = x""yes; then :
8122   cat >>confdefs.h <<_ACEOF
8123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8124 _ACEOF
8125
8126 fi
8127 done
8128
8129
8130 # Check for thread headers.
8131 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8132 if test "x$ac_cv_header_thread_h" = x""yes; then :
8133   have_thread_h=yes
8134 else
8135   have_thread_h=
8136 fi
8137
8138 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8139 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8140   have_pthread_h=yes
8141 else
8142   have_pthread_h=
8143 fi
8144
8145
8146 # These tests can't be done till we know if we have limits.h.
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8148 $as_echo_n "checking for CHAR_BIT... " >&6; }
8149 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8150   $as_echo_n "(cached) " >&6
8151 else
8152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h.  */
8154 #ifdef HAVE_LIMITS_H
8155 #include <limits.h>
8156 #endif
8157 #ifdef CHAR_BIT
8158 found
8159 #endif
8160 _ACEOF
8161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8162   $EGREP "found" >/dev/null 2>&1; then :
8163   gcc_cv_decl_char_bit=yes
8164 else
8165   gcc_cv_decl_char_bit=no
8166 fi
8167 rm -f conftest*
8168
8169
8170 fi
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8172 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8173 if test $gcc_cv_decl_char_bit = no; then
8174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8175 $as_echo_n "checking number of bits in a byte... " >&6; }
8176 if test "${gcc_cv_c_nbby+set}" = set; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179   i=8
8180  gcc_cv_c_nbby=
8181  while test $i -lt 65; do
8182    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h.  */
8184
8185 int
8186 main ()
8187 {
8188 switch(0) {
8189   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8190   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8191   ; }
8192   ;
8193   return 0;
8194 }
8195 _ACEOF
8196 if ac_fn_c_try_compile "$LINENO"; then :
8197   gcc_cv_c_nbby=$i; break
8198 fi
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200    i=`expr $i + 1`
8201  done
8202  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8203
8204 fi
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8206 $as_echo "$gcc_cv_c_nbby" >&6; }
8207 if test $gcc_cv_c_nbby = failed; then
8208   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8209 else
8210
8211 cat >>confdefs.h <<_ACEOF
8212 #define CHAR_BIT $gcc_cv_c_nbby
8213 _ACEOF
8214
8215 fi
8216 fi
8217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8218 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8219 if test "${ac_cv_c_bigendian+set}" = set; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   ac_cv_c_bigendian=unknown
8223     # See if we're dealing with a universal compiler.
8224     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h.  */
8226 #ifndef __APPLE_CC__
8227                not a universal capable compiler
8228              #endif
8229              typedef int dummy;
8230
8231 _ACEOF
8232 if ac_fn_c_try_compile "$LINENO"; then :
8233
8234         # Check for potential -arch flags.  It is not universal unless
8235         # there are at least two -arch flags with different values.
8236         ac_arch=
8237         ac_prev=
8238         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8239          if test -n "$ac_prev"; then
8240            case $ac_word in
8241              i?86 | x86_64 | ppc | ppc64)
8242                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8243                  ac_arch=$ac_word
8244                else
8245                  ac_cv_c_bigendian=universal
8246                  break
8247                fi
8248                ;;
8249            esac
8250            ac_prev=
8251          elif test "x$ac_word" = "x-arch"; then
8252            ac_prev=arch
8253          fi
8254        done
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257     if test $ac_cv_c_bigendian = unknown; then
8258       # See if sys/param.h defines the BYTE_ORDER macro.
8259       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h.  */
8261 #include <sys/types.h>
8262              #include <sys/param.h>
8263
8264 int
8265 main ()
8266 {
8267 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8268                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8269                      && LITTLE_ENDIAN)
8270               bogus endian macros
8271              #endif
8272
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 if ac_fn_c_try_compile "$LINENO"; then :
8278   # It does; now see whether it defined to BIG_ENDIAN or not.
8279          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h.  */
8281 #include <sys/types.h>
8282                 #include <sys/param.h>
8283
8284 int
8285 main ()
8286 {
8287 #if BYTE_ORDER != BIG_ENDIAN
8288                  not big endian
8289                 #endif
8290
8291   ;
8292   return 0;
8293 }
8294 _ACEOF
8295 if ac_fn_c_try_compile "$LINENO"; then :
8296   ac_cv_c_bigendian=yes
8297 else
8298   ac_cv_c_bigendian=no
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8301 fi
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303     fi
8304     if test $ac_cv_c_bigendian = unknown; then
8305       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8306       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h.  */
8308 #include <limits.h>
8309
8310 int
8311 main ()
8312 {
8313 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8314               bogus endian macros
8315              #endif
8316
8317   ;
8318   return 0;
8319 }
8320 _ACEOF
8321 if ac_fn_c_try_compile "$LINENO"; then :
8322   # It does; now see whether it defined to _BIG_ENDIAN or not.
8323          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h.  */
8325 #include <limits.h>
8326
8327 int
8328 main ()
8329 {
8330 #ifndef _BIG_ENDIAN
8331                  not big endian
8332                 #endif
8333
8334   ;
8335   return 0;
8336 }
8337 _ACEOF
8338 if ac_fn_c_try_compile "$LINENO"; then :
8339   ac_cv_c_bigendian=yes
8340 else
8341   ac_cv_c_bigendian=no
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 fi
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346     fi
8347     if test $ac_cv_c_bigendian = unknown; then
8348       # Compile a test program.
8349       if test "$cross_compiling" = yes; then :
8350   # Try to guess by grepping values from an object file.
8351          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h.  */
8353 short int ascii_mm[] =
8354                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8355                 short int ascii_ii[] =
8356                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8357                 int use_ascii (int i) {
8358                   return ascii_mm[i] + ascii_ii[i];
8359                 }
8360                 short int ebcdic_ii[] =
8361                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8362                 short int ebcdic_mm[] =
8363                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8364                 int use_ebcdic (int i) {
8365                   return ebcdic_mm[i] + ebcdic_ii[i];
8366                 }
8367                 extern int foo;
8368
8369 int
8370 main ()
8371 {
8372 return use_ascii (foo) == use_ebcdic (foo);
8373   ;
8374   return 0;
8375 }
8376 _ACEOF
8377 if ac_fn_c_try_compile "$LINENO"; then :
8378   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8379               ac_cv_c_bigendian=yes
8380             fi
8381             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8382               if test "$ac_cv_c_bigendian" = unknown; then
8383                 ac_cv_c_bigendian=no
8384               else
8385                 # finding both strings is unlikely to happen, but who knows?
8386                 ac_cv_c_bigendian=unknown
8387               fi
8388             fi
8389 fi
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 else
8392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h.  */
8394 $ac_includes_default
8395 int
8396 main ()
8397 {
8398
8399              /* Are we little or big endian?  From Harbison&Steele.  */
8400              union
8401              {
8402                long int l;
8403                char c[sizeof (long int)];
8404              } u;
8405              u.l = 1;
8406              return u.c[sizeof (long int) - 1] == 1;
8407
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_c_try_run "$LINENO"; then :
8413   ac_cv_c_bigendian=no
8414 else
8415   ac_cv_c_bigendian=yes
8416 fi
8417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8418   conftest.$ac_objext conftest.beam conftest.$ac_ext
8419 fi
8420
8421     fi
8422 fi
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8424 $as_echo "$ac_cv_c_bigendian" >&6; }
8425  case $ac_cv_c_bigendian in #(
8426    yes)
8427      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8428 ;; #(
8429    no)
8430       ;; #(
8431    universal)
8432
8433 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8434
8435      ;; #(
8436    *)
8437      as_fn_error "unknown endianness
8438  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8439  esac
8440
8441
8442 # ----------------------
8443 # Checks for C++ headers
8444 # ----------------------
8445
8446 ac_ext=cpp
8447 ac_cpp='$CXXCPP $CPPFLAGS'
8448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8452 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8453 if test -z "$CXXCPP"; then
8454   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8455   $as_echo_n "(cached) " >&6
8456 else
8457       # Double quotes because CXXCPP needs to be expanded
8458     for CXXCPP in "$CXX -E" "/lib/cpp"
8459     do
8460       ac_preproc_ok=false
8461 for ac_cxx_preproc_warn_flag in '' yes
8462 do
8463   # Use a header file that comes with gcc, so configuring glibc
8464   # with a fresh cross-compiler works.
8465   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8466   # <limits.h> exists even on freestanding compilers.
8467   # On the NeXT, cc -E runs the code through the compiler's parser,
8468   # not just through cpp. "Syntax error" is here to catch this case.
8469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h.  */
8471 #ifdef __STDC__
8472 # include <limits.h>
8473 #else
8474 # include <assert.h>
8475 #endif
8476                      Syntax error
8477 _ACEOF
8478 if ac_fn_cxx_try_cpp "$LINENO"; then :
8479
8480 else
8481   # Broken: fails on valid input.
8482 continue
8483 fi
8484 rm -f conftest.err conftest.$ac_ext
8485
8486   # OK, works on sane cases.  Now check whether nonexistent headers
8487   # can be detected and how.
8488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h.  */
8490 #include <ac_nonexistent.h>
8491 _ACEOF
8492 if ac_fn_cxx_try_cpp "$LINENO"; then :
8493   # Broken: success on invalid input.
8494 continue
8495 else
8496   # Passes both tests.
8497 ac_preproc_ok=:
8498 break
8499 fi
8500 rm -f conftest.err conftest.$ac_ext
8501
8502 done
8503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8504 rm -f conftest.err conftest.$ac_ext
8505 if $ac_preproc_ok; then :
8506   break
8507 fi
8508
8509     done
8510     ac_cv_prog_CXXCPP=$CXXCPP
8511
8512 fi
8513   CXXCPP=$ac_cv_prog_CXXCPP
8514 else
8515   ac_cv_prog_CXXCPP=$CXXCPP
8516 fi
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8518 $as_echo "$CXXCPP" >&6; }
8519 ac_preproc_ok=false
8520 for ac_cxx_preproc_warn_flag in '' yes
8521 do
8522   # Use a header file that comes with gcc, so configuring glibc
8523   # with a fresh cross-compiler works.
8524   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8525   # <limits.h> exists even on freestanding compilers.
8526   # On the NeXT, cc -E runs the code through the compiler's parser,
8527   # not just through cpp. "Syntax error" is here to catch this case.
8528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h.  */
8530 #ifdef __STDC__
8531 # include <limits.h>
8532 #else
8533 # include <assert.h>
8534 #endif
8535                      Syntax error
8536 _ACEOF
8537 if ac_fn_cxx_try_cpp "$LINENO"; then :
8538
8539 else
8540   # Broken: fails on valid input.
8541 continue
8542 fi
8543 rm -f conftest.err conftest.$ac_ext
8544
8545   # OK, works on sane cases.  Now check whether nonexistent headers
8546   # can be detected and how.
8547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h.  */
8549 #include <ac_nonexistent.h>
8550 _ACEOF
8551 if ac_fn_cxx_try_cpp "$LINENO"; then :
8552   # Broken: success on invalid input.
8553 continue
8554 else
8555   # Passes both tests.
8556 ac_preproc_ok=:
8557 break
8558 fi
8559 rm -f conftest.err conftest.$ac_ext
8560
8561 done
8562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8563 rm -f conftest.err conftest.$ac_ext
8564 if $ac_preproc_ok; then :
8565
8566 else
8567   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8570 See \`config.log' for more details." >&5
8571 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8572 See \`config.log' for more details." >&2;}; }
8573 fi
8574
8575 ac_ext=c
8576 ac_cpp='$CPP $CPPFLAGS'
8577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8580
8581
8582 ac_ext=cpp
8583 ac_cpp='$CXXCPP $CPPFLAGS'
8584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8587
8588
8589
8590
8591 for ac_header in unordered_map
8592 do :
8593   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8594 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8595   cat >>confdefs.h <<_ACEOF
8596 #define HAVE_UNORDERED_MAP 1
8597 _ACEOF
8598
8599 fi
8600 done
8601
8602 for ac_header in tr1/unordered_map
8603 do :
8604   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8605 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8606   cat >>confdefs.h <<_ACEOF
8607 #define HAVE_TR1_UNORDERED_MAP 1
8608 _ACEOF
8609
8610 fi
8611 done
8612
8613 for ac_header in ext/hash_map
8614 do :
8615   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8616 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8617   cat >>confdefs.h <<_ACEOF
8618 #define HAVE_EXT_HASH_MAP 1
8619 _ACEOF
8620
8621 fi
8622 done
8623
8624
8625 ac_ext=c
8626 ac_cpp='$CPP $CPPFLAGS'
8627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8630
8631
8632 # --------
8633 # UNSORTED
8634 # --------
8635
8636
8637 # These libraries may be used by collect2.
8638 # We may need a special search path to get them linked.
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8640 $as_echo_n "checking for collect2 libraries... " >&6; }
8641 if test "${gcc_cv_collect2_libs+set}" = set; then :
8642   $as_echo_n "(cached) " >&6
8643 else
8644   save_LIBS="$LIBS"
8645 for libs in '' -lld -lmld \
8646                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8647                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8648 do
8649         LIBS="$libs"
8650         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h.  */
8652
8653 /* Override any GCC internal prototype to avoid an error.
8654    Use char because int might match the return type of a GCC
8655    builtin and then its argument prototype would still apply.  */
8656 #ifdef __cplusplus
8657 extern "C"
8658 #endif
8659 char ldopen ();
8660 int
8661 main ()
8662 {
8663 return ldopen ();
8664   ;
8665   return 0;
8666 }
8667 _ACEOF
8668 if ac_fn_c_try_link "$LINENO"; then :
8669   gcc_cv_collect2_libs="$libs"; break
8670 fi
8671 rm -f core conftest.err conftest.$ac_objext \
8672     conftest$ac_exeext conftest.$ac_ext
8673 done
8674 LIBS="$save_LIBS"
8675 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8676 fi
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8678 $as_echo "$gcc_cv_collect2_libs" >&6; }
8679 case $gcc_cv_collect2_libs in
8680         "none required")        ;;
8681         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8682 esac
8683
8684
8685 # When building Ada code on Alpha, we need exc_resume which is usually in
8686 # -lexc.  So test for it.
8687 save_LIBS="$LIBS"
8688 LIBS=
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8690 $as_echo_n "checking for library containing exc_resume... " >&6; }
8691 if test "${ac_cv_search_exc_resume+set}" = set; then :
8692   $as_echo_n "(cached) " >&6
8693 else
8694   ac_func_search_save_LIBS=$LIBS
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h.  */
8697
8698 /* Override any GCC internal prototype to avoid an error.
8699    Use char because int might match the return type of a GCC
8700    builtin and then its argument prototype would still apply.  */
8701 #ifdef __cplusplus
8702 extern "C"
8703 #endif
8704 char exc_resume ();
8705 int
8706 main ()
8707 {
8708 return exc_resume ();
8709   ;
8710   return 0;
8711 }
8712 _ACEOF
8713 for ac_lib in '' exc; do
8714   if test -z "$ac_lib"; then
8715     ac_res="none required"
8716   else
8717     ac_res=-l$ac_lib
8718     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8719   fi
8720   if ac_fn_c_try_link "$LINENO"; then :
8721   ac_cv_search_exc_resume=$ac_res
8722 fi
8723 rm -f core conftest.err conftest.$ac_objext \
8724     conftest$ac_exeext
8725   if test "${ac_cv_search_exc_resume+set}" = set; then :
8726   break
8727 fi
8728 done
8729 if test "${ac_cv_search_exc_resume+set}" = set; then :
8730
8731 else
8732   ac_cv_search_exc_resume=no
8733 fi
8734 rm conftest.$ac_ext
8735 LIBS=$ac_func_search_save_LIBS
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8738 $as_echo "$ac_cv_search_exc_resume" >&6; }
8739 ac_res=$ac_cv_search_exc_resume
8740 if test "$ac_res" != no; then :
8741   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8742
8743 fi
8744
8745 GNAT_LIBEXC="$LIBS"
8746 LIBS="$save_LIBS"
8747
8748
8749 # Some systems put ldexp and frexp in libm instead of libc; assume
8750 # they're both in the same place.  jcf-dump needs them.
8751 save_LIBS="$LIBS"
8752 LIBS=
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8754 $as_echo_n "checking for library containing ldexp... " >&6; }
8755 if test "${ac_cv_search_ldexp+set}" = set; then :
8756   $as_echo_n "(cached) " >&6
8757 else
8758   ac_func_search_save_LIBS=$LIBS
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h.  */
8761
8762 /* Override any GCC internal prototype to avoid an error.
8763    Use char because int might match the return type of a GCC
8764    builtin and then its argument prototype would still apply.  */
8765 #ifdef __cplusplus
8766 extern "C"
8767 #endif
8768 char ldexp ();
8769 int
8770 main ()
8771 {
8772 return ldexp ();
8773   ;
8774   return 0;
8775 }
8776 _ACEOF
8777 for ac_lib in '' m; do
8778   if test -z "$ac_lib"; then
8779     ac_res="none required"
8780   else
8781     ac_res=-l$ac_lib
8782     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8783   fi
8784   if ac_fn_c_try_link "$LINENO"; then :
8785   ac_cv_search_ldexp=$ac_res
8786 fi
8787 rm -f core conftest.err conftest.$ac_objext \
8788     conftest$ac_exeext
8789   if test "${ac_cv_search_ldexp+set}" = set; then :
8790   break
8791 fi
8792 done
8793 if test "${ac_cv_search_ldexp+set}" = set; then :
8794
8795 else
8796   ac_cv_search_ldexp=no
8797 fi
8798 rm conftest.$ac_ext
8799 LIBS=$ac_func_search_save_LIBS
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8802 $as_echo "$ac_cv_search_ldexp" >&6; }
8803 ac_res=$ac_cv_search_ldexp
8804 if test "$ac_res" != no; then :
8805   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8806
8807 fi
8808
8809 LDEXP_LIB="$LIBS"
8810 LIBS="$save_LIBS"
8811
8812
8813 # Use <inttypes.h> only if it exists,
8814 # doesn't clash with <sys/types.h>, and declares intmax_t.
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8816 $as_echo_n "checking for inttypes.h... " >&6; }
8817 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8818   $as_echo_n "(cached) " >&6
8819 else
8820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h.  */
8822 #include <sys/types.h>
8823 #include <inttypes.h>
8824 int
8825 main ()
8826 {
8827 intmax_t i = -1;
8828   ;
8829   return 0;
8830 }
8831 _ACEOF
8832 if ac_fn_c_try_compile "$LINENO"; then :
8833   gcc_cv_header_inttypes_h=yes
8834 else
8835   gcc_cv_header_inttypes_h=no
8836 fi
8837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838 fi
8839
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8841 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8842 if test $gcc_cv_header_inttypes_h = yes; then
8843
8844 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8845
8846 fi
8847
8848
8849
8850 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8851         sysconf strsignal getrusage nl_langinfo \
8852         gettimeofday mbstowcs wcswidth mmap setlocale \
8853         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
8854 do :
8855   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8856 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8857 eval as_val=\$$as_ac_var
8858    if test "x$as_val" = x""yes; then :
8859   cat >>confdefs.h <<_ACEOF
8860 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8861 _ACEOF
8862
8863 fi
8864 done
8865
8866
8867 if test x$ac_cv_func_mbstowcs = xyes; then
8868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8869 $as_echo_n "checking whether mbstowcs works... " >&6; }
8870 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8871   $as_echo_n "(cached) " >&6
8872 else
8873       if test "$cross_compiling" = yes; then :
8874   gcc_cv_func_mbstowcs_works=yes
8875 else
8876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h.  */
8878 #include <stdlib.h>
8879 int main()
8880 {
8881   mbstowcs(0, "", 0);
8882   return 0;
8883 }
8884 _ACEOF
8885 if ac_fn_c_try_run "$LINENO"; then :
8886   gcc_cv_func_mbstowcs_works=yes
8887 else
8888   gcc_cv_func_mbstowcs_works=no
8889 fi
8890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8891   conftest.$ac_objext conftest.beam conftest.$ac_ext
8892 fi
8893
8894 fi
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8896 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8897   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8898
8899 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8900
8901   fi
8902 fi
8903
8904 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8905 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8906
8907 else
8908
8909 cat >>confdefs.h <<_ACEOF
8910 #define ssize_t int
8911 _ACEOF
8912
8913 fi
8914
8915 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8916 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8917
8918 else
8919
8920 cat >>confdefs.h <<_ACEOF
8921 #define caddr_t char *
8922 _ACEOF
8923
8924 fi
8925
8926
8927
8928 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8929 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8930   gcc_header_sys_mman_h=yes
8931 else
8932   gcc_header_sys_mman_h=no
8933 fi
8934
8935 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8936 if test "x$ac_cv_func_mmap" = x""yes; then :
8937   gcc_func_mmap=yes
8938 else
8939   gcc_func_mmap=no
8940 fi
8941
8942 if test "$gcc_header_sys_mman_h" != yes \
8943  || test "$gcc_func_mmap" != yes; then
8944    gcc_cv_func_mmap_file=no
8945    gcc_cv_func_mmap_dev_zero=no
8946    gcc_cv_func_mmap_anon=no
8947 else
8948    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8949 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8950 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8951   $as_echo_n "(cached) " >&6
8952 else
8953   # Add a system to this blacklist if
8954    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8955    # memory area containing the same data that you'd get if you applied
8956    # read() to the same fd.  The only system known to have a problem here
8957    # is VMS, where text files have record structure.
8958    case "$host_os" in
8959      vms* | ultrix*)
8960         gcc_cv_func_mmap_file=no ;;
8961      *)
8962         gcc_cv_func_mmap_file=yes;;
8963    esac
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8966 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8968 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8969 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8970   $as_echo_n "(cached) " >&6
8971 else
8972   # Add a system to this blacklist if it has mmap() but /dev/zero
8973    # does not exist, or if mmapping /dev/zero does not give anonymous
8974    # zeroed pages with both the following properties:
8975    # 1. If you map N consecutive pages in with one call, and then
8976    #    unmap any subset of those pages, the pages that were not
8977    #    explicitly unmapped remain accessible.
8978    # 2. If you map two adjacent blocks of memory and then unmap them
8979    #    both at once, they must both go away.
8980    # Systems known to be in this category are Windows (all variants),
8981    # VMS, and Darwin.
8982    case "$host_os" in
8983      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8984         gcc_cv_func_mmap_dev_zero=no ;;
8985      *)
8986         gcc_cv_func_mmap_dev_zero=yes;;
8987    esac
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8990 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8991
8992    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8994 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8995 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8996   $as_echo_n "(cached) " >&6
8997 else
8998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h.  */
9000 #include <sys/types.h>
9001 #include <sys/mman.h>
9002 #include <unistd.h>
9003
9004 #ifndef MAP_ANONYMOUS
9005 #define MAP_ANONYMOUS MAP_ANON
9006 #endif
9007
9008 int
9009 main ()
9010 {
9011 int n = MAP_ANONYMOUS;
9012   ;
9013   return 0;
9014 }
9015 _ACEOF
9016 if ac_fn_c_try_compile "$LINENO"; then :
9017   gcc_cv_decl_map_anon=yes
9018 else
9019   gcc_cv_decl_map_anon=no
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9022 fi
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9024 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9025
9026    if test $gcc_cv_decl_map_anon = no; then
9027      gcc_cv_func_mmap_anon=no
9028    else
9029      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9030 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9031 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9032   $as_echo_n "(cached) " >&6
9033 else
9034   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9035    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9036    # doesn't give anonymous zeroed pages with the same properties listed
9037    # above for use of /dev/zero.
9038    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9039    case "$host_os" in
9040      vms* | cygwin* | pe | mingw* | sco* | udk* )
9041         gcc_cv_func_mmap_anon=no ;;
9042      *)
9043         gcc_cv_func_mmap_anon=yes;;
9044    esac
9045 fi
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9047 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9048    fi
9049 fi
9050
9051 if test $gcc_cv_func_mmap_file = yes; then
9052
9053 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9054
9055 fi
9056 if test $gcc_cv_func_mmap_dev_zero = yes; then
9057
9058 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9059
9060 fi
9061 if test $gcc_cv_func_mmap_anon = yes; then
9062
9063 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9064
9065 fi
9066
9067
9068 case "${host}" in
9069 *-*-*vms*)
9070   # Under VMS, vfork works very differently than on Unix. The standard test
9071   # won't work, and it isn't easily adaptable. It makes more sense to
9072   # just force it.
9073   ac_cv_func_vfork_works=yes
9074   ;;
9075 esac
9076 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9077 if test "x$ac_cv_type_pid_t" = x""yes; then :
9078
9079 else
9080
9081 cat >>confdefs.h <<_ACEOF
9082 #define pid_t int
9083 _ACEOF
9084
9085 fi
9086
9087 for ac_header in vfork.h
9088 do :
9089   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9090 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9091   cat >>confdefs.h <<_ACEOF
9092 #define HAVE_VFORK_H 1
9093 _ACEOF
9094
9095 fi
9096 done
9097
9098 for ac_func in fork vfork
9099 do :
9100   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9102 eval as_val=\$$as_ac_var
9103    if test "x$as_val" = x""yes; then :
9104   cat >>confdefs.h <<_ACEOF
9105 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9106 _ACEOF
9107
9108 fi
9109 done
9110
9111 if test "x$ac_cv_func_fork" = xyes; then
9112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9113 $as_echo_n "checking for working fork... " >&6; }
9114 if test "${ac_cv_func_fork_works+set}" = set; then :
9115   $as_echo_n "(cached) " >&6
9116 else
9117   if test "$cross_compiling" = yes; then :
9118   ac_cv_func_fork_works=cross
9119 else
9120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h.  */
9122 $ac_includes_default
9123 int
9124 main ()
9125 {
9126
9127           /* By Ruediger Kuhlmann. */
9128           return fork () < 0;
9129
9130   ;
9131   return 0;
9132 }
9133 _ACEOF
9134 if ac_fn_c_try_run "$LINENO"; then :
9135   ac_cv_func_fork_works=yes
9136 else
9137   ac_cv_func_fork_works=no
9138 fi
9139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9140   conftest.$ac_objext conftest.beam conftest.$ac_ext
9141 fi
9142
9143 fi
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9145 $as_echo "$ac_cv_func_fork_works" >&6; }
9146
9147 else
9148   ac_cv_func_fork_works=$ac_cv_func_fork
9149 fi
9150 if test "x$ac_cv_func_fork_works" = xcross; then
9151   case $host in
9152     *-*-amigaos* | *-*-msdosdjgpp*)
9153       # Override, as these systems have only a dummy fork() stub
9154       ac_cv_func_fork_works=no
9155       ;;
9156     *)
9157       ac_cv_func_fork_works=yes
9158       ;;
9159   esac
9160   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9161 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9162 fi
9163 ac_cv_func_vfork_works=$ac_cv_func_vfork
9164 if test "x$ac_cv_func_vfork" = xyes; then
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9166 $as_echo_n "checking for working vfork... " >&6; }
9167 if test "${ac_cv_func_vfork_works+set}" = set; then :
9168   $as_echo_n "(cached) " >&6
9169 else
9170   if test "$cross_compiling" = yes; then :
9171   ac_cv_func_vfork_works=cross
9172 else
9173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h.  */
9175 /* Thanks to Paul Eggert for this test.  */
9176 $ac_includes_default
9177 #include <sys/wait.h>
9178 #ifdef HAVE_VFORK_H
9179 # include <vfork.h>
9180 #endif
9181 /* On some sparc systems, changes by the child to local and incoming
9182    argument registers are propagated back to the parent.  The compiler
9183    is told about this with #include <vfork.h>, but some compilers
9184    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9185    static variable whose address is put into a register that is
9186    clobbered by the vfork.  */
9187 static void
9188 #ifdef __cplusplus
9189 sparc_address_test (int arg)
9190 # else
9191 sparc_address_test (arg) int arg;
9192 #endif
9193 {
9194   static pid_t child;
9195   if (!child) {
9196     child = vfork ();
9197     if (child < 0) {
9198       perror ("vfork");
9199       _exit(2);
9200     }
9201     if (!child) {
9202       arg = getpid();
9203       write(-1, "", 0);
9204       _exit (arg);
9205     }
9206   }
9207 }
9208
9209 int
9210 main ()
9211 {
9212   pid_t parent = getpid ();
9213   pid_t child;
9214
9215   sparc_address_test (0);
9216
9217   child = vfork ();
9218
9219   if (child == 0) {
9220     /* Here is another test for sparc vfork register problems.  This
9221        test uses lots of local variables, at least as many local
9222        variables as main has allocated so far including compiler
9223        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9224        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9225        reuse the register of parent for one of the local variables,
9226        since it will think that parent can't possibly be used any more
9227        in this routine.  Assigning to the local variable will thus
9228        munge parent in the parent process.  */
9229     pid_t
9230       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9231       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9232     /* Convince the compiler that p..p7 are live; otherwise, it might
9233        use the same hardware register for all 8 local variables.  */
9234     if (p != p1 || p != p2 || p != p3 || p != p4
9235         || p != p5 || p != p6 || p != p7)
9236       _exit(1);
9237
9238     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9239        from child file descriptors.  If the child closes a descriptor
9240        before it execs or exits, this munges the parent's descriptor
9241        as well.  Test for this by closing stdout in the child.  */
9242     _exit(close(fileno(stdout)) != 0);
9243   } else {
9244     int status;
9245     struct stat st;
9246
9247     while (wait(&status) != child)
9248       ;
9249     return (
9250          /* Was there some problem with vforking?  */
9251          child < 0
9252
9253          /* Did the child fail?  (This shouldn't happen.)  */
9254          || status
9255
9256          /* Did the vfork/compiler bug occur?  */
9257          || parent != getpid()
9258
9259          /* Did the file descriptor bug occur?  */
9260          || fstat(fileno(stdout), &st) != 0
9261          );
9262   }
9263 }
9264 _ACEOF
9265 if ac_fn_c_try_run "$LINENO"; then :
9266   ac_cv_func_vfork_works=yes
9267 else
9268   ac_cv_func_vfork_works=no
9269 fi
9270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9271   conftest.$ac_objext conftest.beam conftest.$ac_ext
9272 fi
9273
9274 fi
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9276 $as_echo "$ac_cv_func_vfork_works" >&6; }
9277
9278 fi;
9279 if test "x$ac_cv_func_fork_works" = xcross; then
9280   ac_cv_func_vfork_works=$ac_cv_func_vfork
9281   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9282 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9283 fi
9284
9285 if test "x$ac_cv_func_vfork_works" = xyes; then
9286
9287 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9288
9289 else
9290
9291 $as_echo "#define vfork fork" >>confdefs.h
9292
9293 fi
9294 if test "x$ac_cv_func_fork_works" = xyes; then
9295
9296 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9297
9298 fi
9299
9300
9301 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9302 # iconv() prototype.
9303
9304       if test "X$prefix" = "XNONE"; then
9305     acl_final_prefix="$ac_default_prefix"
9306   else
9307     acl_final_prefix="$prefix"
9308   fi
9309   if test "X$exec_prefix" = "XNONE"; then
9310     acl_final_exec_prefix='${prefix}'
9311   else
9312     acl_final_exec_prefix="$exec_prefix"
9313   fi
9314   acl_save_prefix="$prefix"
9315   prefix="$acl_final_prefix"
9316   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9317   prefix="$acl_save_prefix"
9318
9319
9320 # Check whether --with-gnu-ld was given.
9321 if test "${with_gnu_ld+set}" = set; then :
9322   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9323 else
9324   with_gnu_ld=no
9325 fi
9326
9327 # Prepare PATH_SEPARATOR.
9328 # The user is always right.
9329 if test "${PATH_SEPARATOR+set}" != set; then
9330   echo "#! /bin/sh" >conf$$.sh
9331   echo  "exit 0"   >>conf$$.sh
9332   chmod +x conf$$.sh
9333   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9334     PATH_SEPARATOR=';'
9335   else
9336     PATH_SEPARATOR=:
9337   fi
9338   rm -f conf$$.sh
9339 fi
9340 ac_prog=ld
9341 if test "$GCC" = yes; then
9342   # Check if gcc -print-prog-name=ld gives a path.
9343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9344 $as_echo_n "checking for ld used by GCC... " >&6; }
9345   case $host in
9346   *-*-mingw*)
9347     # gcc leaves a trailing carriage return which upsets mingw
9348     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9349   *)
9350     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9351   esac
9352   case $ac_prog in
9353     # Accept absolute paths.
9354     [\\/]* | [A-Za-z]:[\\/]*)
9355       re_direlt='/[^/][^/]*/\.\./'
9356       # Canonicalize the path of ld
9357       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9358       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9359         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9360       done
9361       test -z "$LD" && LD="$ac_prog"
9362       ;;
9363   "")
9364     # If it fails, then pretend we aren't using GCC.
9365     ac_prog=ld
9366     ;;
9367   *)
9368     # If it is relative, then search for the first ld in PATH.
9369     with_gnu_ld=unknown
9370     ;;
9371   esac
9372 elif test "$with_gnu_ld" = yes; then
9373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9374 $as_echo_n "checking for GNU ld... " >&6; }
9375 else
9376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9377 $as_echo_n "checking for non-GNU ld... " >&6; }
9378 fi
9379 if test "${acl_cv_path_LD+set}" = set; then :
9380   $as_echo_n "(cached) " >&6
9381 else
9382   if test -z "$LD"; then
9383   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9384   for ac_dir in $PATH; do
9385     test -z "$ac_dir" && ac_dir=.
9386     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9387       acl_cv_path_LD="$ac_dir/$ac_prog"
9388       # Check to see if the program is GNU ld.  I'd rather use --version,
9389       # but apparently some GNU ld's only accept -v.
9390       # Break only if it was the GNU/non-GNU ld that we prefer.
9391       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9392         test "$with_gnu_ld" != no && break
9393       else
9394         test "$with_gnu_ld" != yes && break
9395       fi
9396     fi
9397   done
9398   IFS="$ac_save_ifs"
9399 else
9400   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9401 fi
9402 fi
9403
9404 LD="$acl_cv_path_LD"
9405 if test -n "$LD"; then
9406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9407 $as_echo "$LD" >&6; }
9408 else
9409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 $as_echo "no" >&6; }
9411 fi
9412 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9414 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9415 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9416   $as_echo_n "(cached) " >&6
9417 else
9418   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9419 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9420   acl_cv_prog_gnu_ld=yes
9421 else
9422   acl_cv_prog_gnu_ld=no
9423 fi
9424 fi
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9426 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9427 with_gnu_ld=$acl_cv_prog_gnu_ld
9428
9429
9430
9431                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9432 $as_echo_n "checking for shared library run path origin... " >&6; }
9433 if test "${acl_cv_rpath+set}" = set; then :
9434   $as_echo_n "(cached) " >&6
9435 else
9436
9437     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9438     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9439     . ./conftest.sh
9440     rm -f ./conftest.sh
9441     acl_cv_rpath=done
9442
9443 fi
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9445 $as_echo "$acl_cv_rpath" >&6; }
9446   wl="$acl_cv_wl"
9447   libext="$acl_cv_libext"
9448   shlibext="$acl_cv_shlibext"
9449   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9450   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9451   hardcode_direct="$acl_cv_hardcode_direct"
9452   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9453     # Check whether --enable-rpath was given.
9454 if test "${enable_rpath+set}" = set; then :
9455   enableval=$enable_rpath; :
9456 else
9457   enable_rpath=yes
9458 fi
9459
9460
9461
9462
9463
9464
9465
9466
9467     use_additional=yes
9468
9469   acl_save_prefix="$prefix"
9470   prefix="$acl_final_prefix"
9471   acl_save_exec_prefix="$exec_prefix"
9472   exec_prefix="$acl_final_exec_prefix"
9473
9474     eval additional_includedir=\"$includedir\"
9475     eval additional_libdir=\"$libdir\"
9476
9477   exec_prefix="$acl_save_exec_prefix"
9478   prefix="$acl_save_prefix"
9479
9480
9481 # Check whether --with-libiconv-prefix was given.
9482 if test "${with_libiconv_prefix+set}" = set; then :
9483   withval=$with_libiconv_prefix;
9484     if test "X$withval" = "Xno"; then
9485       use_additional=no
9486     else
9487       if test "X$withval" = "X"; then
9488
9489   acl_save_prefix="$prefix"
9490   prefix="$acl_final_prefix"
9491   acl_save_exec_prefix="$exec_prefix"
9492   exec_prefix="$acl_final_exec_prefix"
9493
9494           eval additional_includedir=\"$includedir\"
9495           eval additional_libdir=\"$libdir\"
9496
9497   exec_prefix="$acl_save_exec_prefix"
9498   prefix="$acl_save_prefix"
9499
9500       else
9501         additional_includedir="$withval/include"
9502         additional_libdir="$withval/lib"
9503       fi
9504     fi
9505
9506 fi
9507
9508       LIBICONV=
9509   LTLIBICONV=
9510   INCICONV=
9511   rpathdirs=
9512   ltrpathdirs=
9513   names_already_handled=
9514   names_next_round='iconv '
9515   while test -n "$names_next_round"; do
9516     names_this_round="$names_next_round"
9517     names_next_round=
9518     for name in $names_this_round; do
9519       already_handled=
9520       for n in $names_already_handled; do
9521         if test "$n" = "$name"; then
9522           already_handled=yes
9523           break
9524         fi
9525       done
9526       if test -z "$already_handled"; then
9527         names_already_handled="$names_already_handled $name"
9528                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9529         eval value=\"\$HAVE_LIB$uppername\"
9530         if test -n "$value"; then
9531           if test "$value" = yes; then
9532             eval value=\"\$LIB$uppername\"
9533             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9534             eval value=\"\$LTLIB$uppername\"
9535             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9536           else
9537                                     :
9538           fi
9539         else
9540                               found_dir=
9541           found_la=
9542           found_so=
9543           found_a=
9544           if test $use_additional = yes; then
9545             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9546               found_dir="$additional_libdir"
9547               found_so="$additional_libdir/lib$name.$shlibext"
9548               if test -f "$additional_libdir/lib$name.la"; then
9549                 found_la="$additional_libdir/lib$name.la"
9550               fi
9551             else
9552               if test -f "$additional_libdir/lib$name.$libext"; then
9553                 found_dir="$additional_libdir"
9554                 found_a="$additional_libdir/lib$name.$libext"
9555                 if test -f "$additional_libdir/lib$name.la"; then
9556                   found_la="$additional_libdir/lib$name.la"
9557                 fi
9558               fi
9559             fi
9560           fi
9561           if test "X$found_dir" = "X"; then
9562             for x in $LDFLAGS $LTLIBICONV; do
9563
9564   acl_save_prefix="$prefix"
9565   prefix="$acl_final_prefix"
9566   acl_save_exec_prefix="$exec_prefix"
9567   exec_prefix="$acl_final_exec_prefix"
9568   eval x=\"$x\"
9569   exec_prefix="$acl_save_exec_prefix"
9570   prefix="$acl_save_prefix"
9571
9572               case "$x" in
9573                 -L*)
9574                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9575                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9576                     found_dir="$dir"
9577                     found_so="$dir/lib$name.$shlibext"
9578                     if test -f "$dir/lib$name.la"; then
9579                       found_la="$dir/lib$name.la"
9580                     fi
9581                   else
9582                     if test -f "$dir/lib$name.$libext"; then
9583                       found_dir="$dir"
9584                       found_a="$dir/lib$name.$libext"
9585                       if test -f "$dir/lib$name.la"; then
9586                         found_la="$dir/lib$name.la"
9587                       fi
9588                     fi
9589                   fi
9590                   ;;
9591               esac
9592               if test "X$found_dir" != "X"; then
9593                 break
9594               fi
9595             done
9596           fi
9597           if test "X$found_dir" != "X"; then
9598                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9599             if test "X$found_so" != "X"; then
9600                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9601                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9602               else
9603                                                                                 haveit=
9604                 for x in $ltrpathdirs; do
9605                   if test "X$x" = "X$found_dir"; then
9606                     haveit=yes
9607                     break
9608                   fi
9609                 done
9610                 if test -z "$haveit"; then
9611                   ltrpathdirs="$ltrpathdirs $found_dir"
9612                 fi
9613                                 if test "$hardcode_direct" = yes; then
9614                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9615                 else
9616                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9617                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9618                                                             haveit=
9619                     for x in $rpathdirs; do
9620                       if test "X$x" = "X$found_dir"; then
9621                         haveit=yes
9622                         break
9623                       fi
9624                     done
9625                     if test -z "$haveit"; then
9626                       rpathdirs="$rpathdirs $found_dir"
9627                     fi
9628                   else
9629                                                                                 haveit=
9630                     for x in $LDFLAGS $LIBICONV; do
9631
9632   acl_save_prefix="$prefix"
9633   prefix="$acl_final_prefix"
9634   acl_save_exec_prefix="$exec_prefix"
9635   exec_prefix="$acl_final_exec_prefix"
9636   eval x=\"$x\"
9637   exec_prefix="$acl_save_exec_prefix"
9638   prefix="$acl_save_prefix"
9639
9640                       if test "X$x" = "X-L$found_dir"; then
9641                         haveit=yes
9642                         break
9643                       fi
9644                     done
9645                     if test -z "$haveit"; then
9646                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9647                     fi
9648                     if test "$hardcode_minus_L" != no; then
9649                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9650                     else
9651                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9652                     fi
9653                   fi
9654                 fi
9655               fi
9656             else
9657               if test "X$found_a" != "X"; then
9658                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9659               else
9660                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9661               fi
9662             fi
9663                         additional_includedir=
9664             case "$found_dir" in
9665               */lib | */lib/)
9666                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9667                 additional_includedir="$basedir/include"
9668                 ;;
9669             esac
9670             if test "X$additional_includedir" != "X"; then
9671                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9672                 haveit=
9673                 if test "X$additional_includedir" = "X/usr/local/include"; then
9674                   if test -n "$GCC"; then
9675                     case $host_os in
9676                       linux*) haveit=yes;;
9677                     esac
9678                   fi
9679                 fi
9680                 if test -z "$haveit"; then
9681                   for x in $CPPFLAGS $INCICONV; do
9682
9683   acl_save_prefix="$prefix"
9684   prefix="$acl_final_prefix"
9685   acl_save_exec_prefix="$exec_prefix"
9686   exec_prefix="$acl_final_exec_prefix"
9687   eval x=\"$x\"
9688   exec_prefix="$acl_save_exec_prefix"
9689   prefix="$acl_save_prefix"
9690
9691                     if test "X$x" = "X-I$additional_includedir"; then
9692                       haveit=yes
9693                       break
9694                     fi
9695                   done
9696                   if test -z "$haveit"; then
9697                     if test -d "$additional_includedir"; then
9698                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9699                     fi
9700                   fi
9701                 fi
9702               fi
9703             fi
9704                         if test -n "$found_la"; then
9705                                                         save_libdir="$libdir"
9706               case "$found_la" in
9707                 */* | *\\*) . "$found_la" ;;
9708                 *) . "./$found_la" ;;
9709               esac
9710               libdir="$save_libdir"
9711                             for dep in $dependency_libs; do
9712                 case "$dep" in
9713                   -L*)
9714                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9715                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9716                       haveit=
9717                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9718                         if test -n "$GCC"; then
9719                           case $host_os in
9720                             linux*) haveit=yes;;
9721                           esac
9722                         fi
9723                       fi
9724                       if test -z "$haveit"; then
9725                         haveit=
9726                         for x in $LDFLAGS $LIBICONV; do
9727
9728   acl_save_prefix="$prefix"
9729   prefix="$acl_final_prefix"
9730   acl_save_exec_prefix="$exec_prefix"
9731   exec_prefix="$acl_final_exec_prefix"
9732   eval x=\"$x\"
9733   exec_prefix="$acl_save_exec_prefix"
9734   prefix="$acl_save_prefix"
9735
9736                           if test "X$x" = "X-L$additional_libdir"; then
9737                             haveit=yes
9738                             break
9739                           fi
9740                         done
9741                         if test -z "$haveit"; then
9742                           if test -d "$additional_libdir"; then
9743                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9744                           fi
9745                         fi
9746                         haveit=
9747                         for x in $LDFLAGS $LTLIBICONV; do
9748
9749   acl_save_prefix="$prefix"
9750   prefix="$acl_final_prefix"
9751   acl_save_exec_prefix="$exec_prefix"
9752   exec_prefix="$acl_final_exec_prefix"
9753   eval x=\"$x\"
9754   exec_prefix="$acl_save_exec_prefix"
9755   prefix="$acl_save_prefix"
9756
9757                           if test "X$x" = "X-L$additional_libdir"; then
9758                             haveit=yes
9759                             break
9760                           fi
9761                         done
9762                         if test -z "$haveit"; then
9763                           if test -d "$additional_libdir"; then
9764                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9765                           fi
9766                         fi
9767                       fi
9768                     fi
9769                     ;;
9770                   -R*)
9771                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9772                     if test "$enable_rpath" != no; then
9773                                                                   haveit=
9774                       for x in $rpathdirs; do
9775                         if test "X$x" = "X$dir"; then
9776                           haveit=yes
9777                           break
9778                         fi
9779                       done
9780                       if test -z "$haveit"; then
9781                         rpathdirs="$rpathdirs $dir"
9782                       fi
9783                                                                   haveit=
9784                       for x in $ltrpathdirs; do
9785                         if test "X$x" = "X$dir"; then
9786                           haveit=yes
9787                           break
9788                         fi
9789                       done
9790                       if test -z "$haveit"; then
9791                         ltrpathdirs="$ltrpathdirs $dir"
9792                       fi
9793                     fi
9794                     ;;
9795                   -l*)
9796                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9797                     ;;
9798                   *.la)
9799                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9800                     ;;
9801                   *)
9802                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9803                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9804                     ;;
9805                 esac
9806               done
9807             fi
9808           else
9809                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9810             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9811           fi
9812         fi
9813       fi
9814     done
9815   done
9816   if test "X$rpathdirs" != "X"; then
9817     if test -n "$hardcode_libdir_separator"; then
9818                         alldirs=
9819       for found_dir in $rpathdirs; do
9820         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9821       done
9822             acl_save_libdir="$libdir"
9823       libdir="$alldirs"
9824       eval flag=\"$hardcode_libdir_flag_spec\"
9825       libdir="$acl_save_libdir"
9826       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9827     else
9828             for found_dir in $rpathdirs; do
9829         acl_save_libdir="$libdir"
9830         libdir="$found_dir"
9831         eval flag=\"$hardcode_libdir_flag_spec\"
9832         libdir="$acl_save_libdir"
9833         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9834       done
9835     fi
9836   fi
9837   if test "X$ltrpathdirs" != "X"; then
9838             for found_dir in $ltrpathdirs; do
9839       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9840     done
9841   fi
9842
9843
9844 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
9845   ac_ext=cpp
9846 ac_cpp='$CXXCPP $CPPFLAGS'
9847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9850
9851
9852
9853
9854
9855
9856           am_save_CPPFLAGS="$CPPFLAGS"
9857
9858   for element in $INCICONV; do
9859     haveit=
9860     for x in $CPPFLAGS; do
9861
9862   acl_save_prefix="$prefix"
9863   prefix="$acl_final_prefix"
9864   acl_save_exec_prefix="$exec_prefix"
9865   exec_prefix="$acl_final_exec_prefix"
9866   eval x=\"$x\"
9867   exec_prefix="$acl_save_exec_prefix"
9868   prefix="$acl_save_prefix"
9869
9870       if test "X$x" = "X$element"; then
9871         haveit=yes
9872         break
9873       fi
9874     done
9875     if test -z "$haveit"; then
9876       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9877     fi
9878   done
9879
9880
9881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9882 $as_echo_n "checking for iconv... " >&6; }
9883 if test "${am_cv_func_iconv+set}" = set; then :
9884   $as_echo_n "(cached) " >&6
9885 else
9886
9887     am_cv_func_iconv="no, consider installing GNU libiconv"
9888     am_cv_lib_iconv=no
9889     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h.  */
9891 #include <stdlib.h>
9892 #include <iconv.h>
9893 int
9894 main ()
9895 {
9896 iconv_t cd = iconv_open("","");
9897        iconv(cd,NULL,NULL,NULL,NULL);
9898        iconv_close(cd);
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 if ac_fn_cxx_try_link "$LINENO"; then :
9904   am_cv_func_iconv=yes
9905 fi
9906 rm -f core conftest.err conftest.$ac_objext \
9907     conftest$ac_exeext conftest.$ac_ext
9908     if test "$am_cv_func_iconv" != yes; then
9909       am_save_LIBS="$LIBS"
9910       LIBS="$LIBS $LIBICONV"
9911       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h.  */
9913 #include <stdlib.h>
9914 #include <iconv.h>
9915 int
9916 main ()
9917 {
9918 iconv_t cd = iconv_open("","");
9919          iconv(cd,NULL,NULL,NULL,NULL);
9920          iconv_close(cd);
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 if ac_fn_cxx_try_link "$LINENO"; then :
9926   am_cv_lib_iconv=yes
9927         am_cv_func_iconv=yes
9928 fi
9929 rm -f core conftest.err conftest.$ac_objext \
9930     conftest$ac_exeext conftest.$ac_ext
9931       LIBS="$am_save_LIBS"
9932     fi
9933
9934 fi
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9936 $as_echo "$am_cv_func_iconv" >&6; }
9937   if test "$am_cv_func_iconv" = yes; then
9938
9939 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9940
9941   fi
9942   if test "$am_cv_lib_iconv" = yes; then
9943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9944 $as_echo_n "checking how to link with libiconv... " >&6; }
9945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9946 $as_echo "$LIBICONV" >&6; }
9947   else
9948             CPPFLAGS="$am_save_CPPFLAGS"
9949     LIBICONV=
9950     LTLIBICONV=
9951   fi
9952
9953
9954
9955   if test "$am_cv_func_iconv" = yes; then
9956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9957 $as_echo_n "checking for iconv declaration... " >&6; }
9958     if test "${am_cv_proto_iconv+set}" = set; then :
9959   $as_echo_n "(cached) " >&6
9960 else
9961
9962       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h.  */
9964
9965 #include <stdlib.h>
9966 #include <iconv.h>
9967 extern
9968 #ifdef __cplusplus
9969 "C"
9970 #endif
9971 #if defined(__STDC__) || defined(__cplusplus)
9972 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9973 #else
9974 size_t iconv();
9975 #endif
9976
9977 int
9978 main ()
9979 {
9980
9981   ;
9982   return 0;
9983 }
9984 _ACEOF
9985 if ac_fn_cxx_try_compile "$LINENO"; then :
9986   am_cv_proto_iconv_arg1=""
9987 else
9988   am_cv_proto_iconv_arg1="const"
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991       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);"
9992 fi
9993
9994     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9996          }$am_cv_proto_iconv" >&5
9997 $as_echo "${ac_t:-
9998          }$am_cv_proto_iconv" >&6; }
9999
10000 cat >>confdefs.h <<_ACEOF
10001 #define ICONV_CONST $am_cv_proto_iconv_arg1
10002 _ACEOF
10003
10004   fi
10005
10006    ac_ext=c
10007 ac_cpp='$CPP $CPPFLAGS'
10008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10011
10012 else
10013
10014
10015
10016
10017
10018           am_save_CPPFLAGS="$CPPFLAGS"
10019
10020   for element in $INCICONV; do
10021     haveit=
10022     for x in $CPPFLAGS; do
10023
10024   acl_save_prefix="$prefix"
10025   prefix="$acl_final_prefix"
10026   acl_save_exec_prefix="$exec_prefix"
10027   exec_prefix="$acl_final_exec_prefix"
10028   eval x=\"$x\"
10029   exec_prefix="$acl_save_exec_prefix"
10030   prefix="$acl_save_prefix"
10031
10032       if test "X$x" = "X$element"; then
10033         haveit=yes
10034         break
10035       fi
10036     done
10037     if test -z "$haveit"; then
10038       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10039     fi
10040   done
10041
10042
10043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10044 $as_echo_n "checking for iconv... " >&6; }
10045 if test "${am_cv_func_iconv+set}" = set; then :
10046   $as_echo_n "(cached) " >&6
10047 else
10048
10049     am_cv_func_iconv="no, consider installing GNU libiconv"
10050     am_cv_lib_iconv=no
10051     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h.  */
10053 #include <stdlib.h>
10054 #include <iconv.h>
10055 int
10056 main ()
10057 {
10058 iconv_t cd = iconv_open("","");
10059        iconv(cd,NULL,NULL,NULL,NULL);
10060        iconv_close(cd);
10061   ;
10062   return 0;
10063 }
10064 _ACEOF
10065 if ac_fn_c_try_link "$LINENO"; then :
10066   am_cv_func_iconv=yes
10067 fi
10068 rm -f core conftest.err conftest.$ac_objext \
10069     conftest$ac_exeext conftest.$ac_ext
10070     if test "$am_cv_func_iconv" != yes; then
10071       am_save_LIBS="$LIBS"
10072       LIBS="$LIBS $LIBICONV"
10073       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h.  */
10075 #include <stdlib.h>
10076 #include <iconv.h>
10077 int
10078 main ()
10079 {
10080 iconv_t cd = iconv_open("","");
10081          iconv(cd,NULL,NULL,NULL,NULL);
10082          iconv_close(cd);
10083   ;
10084   return 0;
10085 }
10086 _ACEOF
10087 if ac_fn_c_try_link "$LINENO"; then :
10088   am_cv_lib_iconv=yes
10089         am_cv_func_iconv=yes
10090 fi
10091 rm -f core conftest.err conftest.$ac_objext \
10092     conftest$ac_exeext conftest.$ac_ext
10093       LIBS="$am_save_LIBS"
10094     fi
10095
10096 fi
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10098 $as_echo "$am_cv_func_iconv" >&6; }
10099   if test "$am_cv_func_iconv" = yes; then
10100
10101 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10102
10103   fi
10104   if test "$am_cv_lib_iconv" = yes; then
10105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10106 $as_echo_n "checking how to link with libiconv... " >&6; }
10107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10108 $as_echo "$LIBICONV" >&6; }
10109   else
10110             CPPFLAGS="$am_save_CPPFLAGS"
10111     LIBICONV=
10112     LTLIBICONV=
10113   fi
10114
10115
10116
10117   if test "$am_cv_func_iconv" = yes; then
10118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10119 $as_echo_n "checking for iconv declaration... " >&6; }
10120     if test "${am_cv_proto_iconv+set}" = set; then :
10121   $as_echo_n "(cached) " >&6
10122 else
10123
10124       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h.  */
10126
10127 #include <stdlib.h>
10128 #include <iconv.h>
10129 extern
10130 #ifdef __cplusplus
10131 "C"
10132 #endif
10133 #if defined(__STDC__) || defined(__cplusplus)
10134 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10135 #else
10136 size_t iconv();
10137 #endif
10138
10139 int
10140 main ()
10141 {
10142
10143   ;
10144   return 0;
10145 }
10146 _ACEOF
10147 if ac_fn_c_try_compile "$LINENO"; then :
10148   am_cv_proto_iconv_arg1=""
10149 else
10150   am_cv_proto_iconv_arg1="const"
10151 fi
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153       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);"
10154 fi
10155
10156     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10158          }$am_cv_proto_iconv" >&5
10159 $as_echo "${ac_t:-
10160          }$am_cv_proto_iconv" >&6; }
10161
10162 cat >>confdefs.h <<_ACEOF
10163 #define ICONV_CONST $am_cv_proto_iconv_arg1
10164 _ACEOF
10165
10166   fi
10167
10168 fi
10169
10170 # Until we have in-tree GNU iconv:
10171 LIBICONV_DEP=
10172
10173
10174
10175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10176 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10177 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10178   $as_echo_n "(cached) " >&6
10179 else
10180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h.  */
10182 #include <locale.h>
10183 int
10184 main ()
10185 {
10186 return LC_MESSAGES
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10192   am_cv_val_LC_MESSAGES=yes
10193 else
10194   am_cv_val_LC_MESSAGES=no
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext \
10197     conftest$ac_exeext conftest.$ac_ext
10198 fi
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10200 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10201   if test $am_cv_val_LC_MESSAGES = yes; then
10202
10203 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10204
10205   fi
10206
10207
10208
10209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10210 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10211 if test "${am_cv_langinfo_codeset+set}" = set; then :
10212   $as_echo_n "(cached) " >&6
10213 else
10214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215 /* end confdefs.h.  */
10216 #include <langinfo.h>
10217 int
10218 main ()
10219 {
10220 char* cs = nl_langinfo(CODESET);
10221   ;
10222   return 0;
10223 }
10224 _ACEOF
10225 if ac_fn_c_try_link "$LINENO"; then :
10226   am_cv_langinfo_codeset=yes
10227 else
10228   am_cv_langinfo_codeset=no
10229 fi
10230 rm -f core conftest.err conftest.$ac_objext \
10231     conftest$ac_exeext conftest.$ac_ext
10232
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10235 $as_echo "$am_cv_langinfo_codeset" >&6; }
10236   if test $am_cv_langinfo_codeset = yes; then
10237
10238 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10239
10240   fi
10241
10242
10243 # We will need to find libiberty.h and ansidecl.h
10244 saved_CFLAGS="$CFLAGS"
10245 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10246 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10247         strsignal strstr strverscmp \
10248         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10249         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
10250 do
10251   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10253 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10254 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10255   $as_echo_n "(cached) " >&6
10256 else
10257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h.  */
10259 #undef $ac_tr_decl
10260 #define $ac_tr_decl 1
10261
10262 #include "ansidecl.h"
10263 #include "system.h"
10264
10265 int
10266 main ()
10267 {
10268 #ifndef $ac_func
10269 char *(*pfn) = (char *(*)) $ac_func ;
10270 #endif
10271   ;
10272   return 0;
10273 }
10274 _ACEOF
10275 if ac_fn_c_try_compile "$LINENO"; then :
10276   eval "gcc_cv_have_decl_$ac_func=yes"
10277 else
10278   eval "gcc_cv_have_decl_$ac_func=no"
10279 fi
10280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281 fi
10282
10283 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10285 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10286 #define $ac_tr_decl 1
10287 _ACEOF
10288
10289 else
10290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10292 #define $ac_tr_decl 0
10293 _ACEOF
10294
10295 fi
10296
10297 done
10298
10299
10300 for ac_func in getrlimit setrlimit getrusage
10301 do
10302   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10304 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10305 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10306   $as_echo_n "(cached) " >&6
10307 else
10308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309 /* end confdefs.h.  */
10310 #undef $ac_tr_decl
10311 #define $ac_tr_decl 1
10312
10313 #include "ansidecl.h"
10314 #include "system.h"
10315 #ifdef HAVE_SYS_RESOURCE_H
10316 #include <sys/resource.h>
10317 #endif
10318
10319
10320 int
10321 main ()
10322 {
10323 #ifndef $ac_func
10324 char *(*pfn) = (char *(*)) $ac_func ;
10325 #endif
10326   ;
10327   return 0;
10328 }
10329 _ACEOF
10330 if ac_fn_c_try_compile "$LINENO"; then :
10331   eval "gcc_cv_have_decl_$ac_func=yes"
10332 else
10333   eval "gcc_cv_have_decl_$ac_func=no"
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10336 fi
10337
10338 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10340 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10341 #define $ac_tr_decl 1
10342 _ACEOF
10343
10344 else
10345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10347 #define $ac_tr_decl 0
10348 _ACEOF
10349
10350 fi
10351
10352 done
10353
10354
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h.  */
10357
10358 #include "ansidecl.h"
10359 #include "system.h"
10360 #ifdef HAVE_SYS_RESOURCE_H
10361 #include <sys/resource.h>
10362 #endif
10363
10364 int
10365 main ()
10366 {
10367 rlim_t l = 0;
10368   ;
10369   return 0;
10370 }
10371 _ACEOF
10372 if ac_fn_c_try_compile "$LINENO"; then :
10373
10374 else
10375
10376 $as_echo "#define rlim_t long" >>confdefs.h
10377
10378 fi
10379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380
10381 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10382 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10383 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10384 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10385 for ac_func in ldgetname
10386 do
10387   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10389 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10390 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10391   $as_echo_n "(cached) " >&6
10392 else
10393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h.  */
10395 #undef $ac_tr_decl
10396 #define $ac_tr_decl 1
10397
10398 #include "ansidecl.h"
10399 #include "system.h"
10400 #ifdef HAVE_LDFCN_H
10401 #undef FREAD
10402 #undef FWRITE
10403 #include <ldfcn.h>
10404 #endif
10405
10406
10407 int
10408 main ()
10409 {
10410 #ifndef $ac_func
10411 char *(*pfn) = (char *(*)) $ac_func ;
10412 #endif
10413   ;
10414   return 0;
10415 }
10416 _ACEOF
10417 if ac_fn_c_try_compile "$LINENO"; then :
10418   eval "gcc_cv_have_decl_$ac_func=yes"
10419 else
10420   eval "gcc_cv_have_decl_$ac_func=no"
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423 fi
10424
10425 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10427 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10428 #define $ac_tr_decl 1
10429 _ACEOF
10430
10431 else
10432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10434 #define $ac_tr_decl 0
10435 _ACEOF
10436
10437 fi
10438
10439 done
10440
10441
10442 for ac_func in times
10443 do
10444   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10446 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10447 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10448   $as_echo_n "(cached) " >&6
10449 else
10450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h.  */
10452 #undef $ac_tr_decl
10453 #define $ac_tr_decl 1
10454
10455 #include "ansidecl.h"
10456 #include "system.h"
10457 #ifdef HAVE_SYS_TIMES_H
10458 #include <sys/times.h>
10459 #endif
10460
10461
10462 int
10463 main ()
10464 {
10465 #ifndef $ac_func
10466 char *(*pfn) = (char *(*)) $ac_func ;
10467 #endif
10468   ;
10469   return 0;
10470 }
10471 _ACEOF
10472 if ac_fn_c_try_compile "$LINENO"; then :
10473   eval "gcc_cv_have_decl_$ac_func=yes"
10474 else
10475   eval "gcc_cv_have_decl_$ac_func=no"
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10478 fi
10479
10480 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10482 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10483 #define $ac_tr_decl 1
10484 _ACEOF
10485
10486 else
10487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10488 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10489 #define $ac_tr_decl 0
10490 _ACEOF
10491
10492 fi
10493
10494 done
10495
10496
10497 for ac_func in sigaltstack
10498 do
10499   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10501 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10502 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10503   $as_echo_n "(cached) " >&6
10504 else
10505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h.  */
10507 #undef $ac_tr_decl
10508 #define $ac_tr_decl 1
10509
10510 #include "ansidecl.h"
10511 #include "system.h"
10512 #include <signal.h>
10513
10514
10515 int
10516 main ()
10517 {
10518 #ifndef $ac_func
10519 char *(*pfn) = (char *(*)) $ac_func ;
10520 #endif
10521   ;
10522   return 0;
10523 }
10524 _ACEOF
10525 if ac_fn_c_try_compile "$LINENO"; then :
10526   eval "gcc_cv_have_decl_$ac_func=yes"
10527 else
10528   eval "gcc_cv_have_decl_$ac_func=no"
10529 fi
10530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10531 fi
10532
10533 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10535 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10536 #define $ac_tr_decl 1
10537 _ACEOF
10538
10539 else
10540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10542 #define $ac_tr_decl 0
10543 _ACEOF
10544
10545 fi
10546
10547 done
10548
10549
10550 # More time-related stuff.
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10552 $as_echo_n "checking for struct tms... " >&6; }
10553 if test "${ac_cv_struct_tms+set}" = set; then :
10554   $as_echo_n "(cached) " >&6
10555 else
10556
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h.  */
10559
10560 #include "ansidecl.h"
10561 #include "system.h"
10562 #ifdef HAVE_SYS_TIMES_H
10563 #include <sys/times.h>
10564 #endif
10565
10566 int
10567 main ()
10568 {
10569 struct tms tms;
10570   ;
10571   return 0;
10572 }
10573 _ACEOF
10574 if ac_fn_c_try_compile "$LINENO"; then :
10575   ac_cv_struct_tms=yes
10576 else
10577   ac_cv_struct_tms=no
10578 fi
10579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10580 fi
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10582 $as_echo "$ac_cv_struct_tms" >&6; }
10583 if test $ac_cv_struct_tms = yes; then
10584
10585 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10586
10587 fi
10588
10589 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10590 # revisit after autoconf 2.50.
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10592 $as_echo_n "checking for clock_t... " >&6; }
10593 if test "${gcc_cv_type_clock_t+set}" = set; then :
10594   $as_echo_n "(cached) " >&6
10595 else
10596
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h.  */
10599
10600 #include "ansidecl.h"
10601 #include "system.h"
10602
10603 int
10604 main ()
10605 {
10606 clock_t x;
10607   ;
10608   return 0;
10609 }
10610 _ACEOF
10611 if ac_fn_c_try_compile "$LINENO"; then :
10612   gcc_cv_type_clock_t=yes
10613 else
10614   gcc_cv_type_clock_t=no
10615 fi
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10619 $as_echo "$gcc_cv_type_clock_t" >&6; }
10620 if test $gcc_cv_type_clock_t = yes; then
10621
10622 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10623
10624 fi
10625
10626 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10627 CFLAGS="$saved_CFLAGS"
10628
10629 # Check whether --enable-initfini-array was given.
10630 if test "${enable_initfini_array+set}" = set; then :
10631   enableval=$enable_initfini_array;
10632 else
10633
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10635 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10636 if test "${gcc_cv_initfini_array+set}" = set; then :
10637   $as_echo_n "(cached) " >&6
10638 else
10639     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10640     if test "$cross_compiling" = yes; then :
10641   gcc_cv_initfini_array=no
10642 else
10643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h.  */
10645
10646 #ifdef __ia64__
10647 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10648    if it can be used.  */
10649 static int x = -1;
10650 int main (void) { return x; }
10651 int foo (void) { x = 0; }
10652 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10653 #else
10654 extern void abort ();
10655 static int count;
10656
10657 static void
10658 init1005 ()
10659 {
10660   if (count != 0)
10661     abort ();
10662   count = 1005;
10663 }
10664 void (*const init_array1005) ()
10665   __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10666   = { init1005 };
10667 static void
10668 fini1005 ()
10669 {
10670   if (count != 1005)
10671     abort ();
10672 }
10673 void (*const fini_array1005) ()
10674   __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10675   = { fini1005 };
10676
10677 static void
10678 ctor1007 ()
10679 {
10680   if (count != 1005)
10681     abort ();
10682   count = 1007;
10683 }
10684 void (*const ctors1007) ()
10685   __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10686   = { ctor1007 };
10687 static void
10688 dtor1007 ()
10689 {
10690   if (count != 1007)
10691     abort ();
10692   count = 1005;
10693 }
10694 void (*const dtors1007) ()
10695   __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10696   = { dtor1007 };
10697
10698 static void
10699 init65530 ()
10700 {
10701   if (count != 1007)
10702     abort ();
10703   count = 65530;
10704 }
10705 void (*const init_array65530) ()
10706   __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10707   = { init65530 };
10708 static void
10709 fini65530 ()
10710 {
10711   if (count != 65530)
10712     abort ();
10713   count = 1007;
10714 }
10715 void (*const fini_array65530) ()
10716   __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10717   = { fini65530 };
10718
10719 static void
10720 ctor65535 ()
10721 {
10722   if (count != 65530)
10723     abort ();
10724   count = 65535;
10725 }
10726 void (*const ctors65535) ()
10727   __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10728   = { ctor65535 };
10729 static void
10730 dtor65535 ()
10731 {
10732   if (count != 65535)
10733     abort ();
10734   count = 65530;
10735 }
10736 void (*const dtors65535) ()
10737   __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10738   = { dtor65535 };
10739
10740 int
10741 main ()
10742 {
10743   return 0;
10744 }
10745 #endif
10746
10747 _ACEOF
10748 if ac_fn_c_try_run "$LINENO"; then :
10749   gcc_cv_initfini_array=yes
10750 else
10751   gcc_cv_initfini_array=no
10752 fi
10753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10754   conftest.$ac_objext conftest.beam conftest.$ac_ext
10755 fi
10756
10757    else
10758      { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10759 $as_echo_n "checking cross compile... guessing... " >&6; }
10760      gcc_cv_initfini_array=no
10761    fi
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10764 $as_echo "$gcc_cv_initfini_array" >&6; }
10765   enable_initfini_array=$gcc_cv_initfini_array
10766
10767 fi
10768
10769 if test $enable_initfini_array = yes; then
10770
10771 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10772
10773 fi
10774
10775 # mkdir takes a single argument on some systems.
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10777 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10778 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10779   $as_echo_n "(cached) " >&6
10780 else
10781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h.  */
10783
10784 #include <sys/types.h>
10785 #ifdef HAVE_SYS_STAT_H
10786 # include <sys/stat.h>
10787 #endif
10788 #ifdef HAVE_UNISTD_H
10789 # include <unistd.h>
10790 #endif
10791 #ifdef HAVE_DIRECT_H
10792 # include <direct.h>
10793 #endif
10794 int
10795 main ()
10796 {
10797 mkdir ("foo", 0);
10798   ;
10799   return 0;
10800 }
10801 _ACEOF
10802 if ac_fn_c_try_compile "$LINENO"; then :
10803   gcc_cv_mkdir_takes_one_arg=no
10804 else
10805   gcc_cv_mkdir_takes_one_arg=yes
10806 fi
10807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 fi
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10810 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10811 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10812
10813 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10814
10815 fi
10816
10817
10818 # File extensions
10819 manext='.1'
10820 objext='.o'
10821
10822
10823
10824 # With Setjmp/Longjmp based exception handling.
10825 # Check whether --enable-sjlj-exceptions was given.
10826 if test "${enable_sjlj_exceptions+set}" = set; then :
10827   enableval=$enable_sjlj_exceptions; case $target in
10828   *-*-hpux10*)
10829     if test $enableval != yes; then
10830       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10831 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10832       enableval=yes
10833     fi
10834     ;;
10835 esac
10836 force_sjlj_exceptions=yes
10837 else
10838   case $target in
10839   *-*-hpux10*)
10840     force_sjlj_exceptions=yes
10841     enableval=yes
10842     ;;
10843   *)
10844     force_sjlj_exceptions=no
10845     ;;
10846 esac
10847 fi
10848
10849 if test $force_sjlj_exceptions = yes; then
10850   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10851
10852 cat >>confdefs.h <<_ACEOF
10853 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10854 _ACEOF
10855
10856 fi
10857
10858 # For platforms with the unwind ABI which includes an unwind library,
10859 # libunwind, we can choose to use the system libunwind.
10860 # config.gcc also contains tests of with_system_libunwind.
10861
10862
10863 # Check whether --with-system-libunwind was given.
10864 if test "${with_system_libunwind+set}" = set; then :
10865   withval=$with_system_libunwind;
10866 fi
10867
10868   # If system-libunwind was not specifically set, pick a default setting.
10869   if test x$with_system_libunwind = x; then
10870     case ${target} in
10871       ia64-*-hpux*) with_system_libunwind=yes ;;
10872       *) with_system_libunwind=no ;;
10873     esac
10874   fi
10875   # Based on system-libunwind and target, do we have ipinfo?
10876   if  test x$with_system_libunwind = xyes; then
10877     case ${target} in
10878       ia64-*-*) have_unwind_getipinfo=no ;;
10879       *) have_unwind_getipinfo=yes ;;
10880     esac
10881   else
10882     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10883
10884     case ${target} in
10885       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10886       *) have_unwind_getipinfo=yes ;;
10887     esac
10888
10889   fi
10890
10891   if test x$have_unwind_getipinfo = xyes; then
10892
10893 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10894
10895   fi
10896
10897
10898 # --------------------------------------------------------
10899 # Build, host, and target specific configuration fragments
10900 # --------------------------------------------------------
10901
10902 # Collect build-machine-specific information.
10903 . ${srcdir}/config.build
10904
10905 # Collect host-machine-specific information.
10906 . ${srcdir}/config.host
10907
10908 target_gtfiles=
10909
10910 # Collect target-machine-specific information.
10911 . ${srcdir}/config.gcc
10912
10913 extra_objs="${host_extra_objs} ${extra_objs}"
10914 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10915
10916 # Default the target-machine variables that were not explicitly set.
10917 if test x"$tm_file" = x
10918 then tm_file=$cpu_type/$cpu_type.h; fi
10919
10920 if test x"$extra_headers" = x
10921 then extra_headers=; fi
10922
10923 if test x$md_file = x
10924 then md_file=$cpu_type/$cpu_type.md; fi
10925
10926 if test x$out_file = x
10927 then out_file=$cpu_type/$cpu_type.c; fi
10928
10929 if test x"$tmake_file" = x
10930 then tmake_file=$cpu_type/t-$cpu_type
10931 fi
10932
10933 if test x"$dwarf2" = xyes
10934 then tm_file="$tm_file tm-dwarf2.h"
10935 fi
10936
10937 # Say what files are being used for the output code and MD file.
10938 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10939 echo "Using \`$srcdir/config/$md_file' as machine description file."
10940
10941 # If any of the xm_file variables contain nonexistent files, warn
10942 # about them and drop them.
10943
10944 bx=
10945 for x in $build_xm_file; do
10946   if    test -f $srcdir/config/$x
10947   then      bx="$bx $x"
10948   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10949 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10950   fi
10951 done
10952 build_xm_file="$bx"
10953
10954 hx=
10955 for x in $host_xm_file; do
10956   if    test -f $srcdir/config/$x
10957   then      hx="$hx $x"
10958   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10959 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10960   fi
10961 done
10962 host_xm_file="$hx"
10963
10964 tx=
10965 for x in $xm_file; do
10966   if    test -f $srcdir/config/$x
10967   then      tx="$tx $x"
10968   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10969 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10970   fi
10971 done
10972 xm_file="$tx"
10973
10974 count=a
10975 for f in $tm_file; do
10976         count=${count}x
10977 done
10978 if test $count = ax; then
10979         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10980 else
10981         echo "Using the following target machine macro files:"
10982         for f in $tm_file; do
10983                 echo "  $srcdir/config/$f"
10984         done
10985 fi
10986
10987 if test x$need_64bit_hwint = xyes; then
10988
10989 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10990
10991 fi
10992
10993 if test x$use_long_long_for_widest_fast_int = xyes; then
10994
10995 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10996
10997 fi
10998
10999 count=a
11000 for f in $host_xm_file; do
11001         count=${count}x
11002 done
11003 if test $count = a; then
11004         :
11005 elif test $count = ax; then
11006         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11007 else
11008         echo "Using the following host machine macro files:"
11009         for f in $host_xm_file; do
11010                 echo "  $srcdir/config/$f"
11011         done
11012 fi
11013 echo "Using ${out_host_hook_obj} for host machine hooks."
11014
11015 if test "$host_xm_file" != "$build_xm_file"; then
11016         count=a
11017         for f in $build_xm_file; do
11018                 count=${count}x
11019         done
11020         if test $count = a; then
11021                 :
11022         elif test $count = ax; then
11023                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11024         else
11025                 echo "Using the following build machine macro files:"
11026                 for f in $build_xm_file; do
11027                         echo "  $srcdir/config/$f"
11028                 done
11029         fi
11030 fi
11031
11032 case ${host} in
11033   powerpc*-*-darwin*)
11034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11035 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11036 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11037   $as_echo_n "(cached) " >&6
11038 else
11039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h.  */
11041
11042 #include <sys/cdefs.h>
11043 #include <sys/signal.h>
11044 #include <ucontext.h>
11045 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11046
11047 _ACEOF
11048 if ac_fn_c_try_compile "$LINENO"; then :
11049   gcc_cv_mcontext_underscores=no
11050 else
11051   gcc_cv_mcontext_underscores=yes
11052 fi
11053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054 fi
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11056 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11057       if test $gcc_cv_mcontext_underscores = yes; then
11058
11059 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11060
11061       fi
11062     ;;
11063 esac
11064
11065 # ---------
11066 # Threading
11067 # ---------
11068
11069 # Check if a valid thread package
11070 case ${enable_threads} in
11071   "" | no)
11072     # No threads
11073     target_thread_file='single'
11074     ;;
11075   yes)
11076     # default
11077     target_thread_file='single'
11078     ;;
11079   aix | dce | lynx | mipssde | posix | posix95 | rtems | \
11080   single | tpf | vxworks | win32)
11081     target_thread_file=${enable_threads}
11082     ;;
11083   *)
11084     echo "${enable_threads} is an unknown thread package" 1>&2
11085     exit 1
11086     ;;
11087 esac
11088
11089 if test x${thread_file} = x; then
11090   # No thread file set by target-specific clauses in config.gcc,
11091   # so use file chosen by default logic above
11092   thread_file=${target_thread_file}
11093 fi
11094
11095 # Make gthr-default.h if we have a thread file.
11096 gthread_flags=
11097 if test $thread_file != single; then
11098   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11099   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11100     rm -f gthr-default.h-t
11101   else
11102     mv -f gthr-default.h-t gthr-default.h
11103   fi
11104   gthread_flags=-DHAVE_GTHR_DEFAULT
11105 fi
11106
11107
11108 # --------
11109 # UNSORTED
11110 # --------
11111
11112 use_cxa_atexit=no
11113 if test x$enable___cxa_atexit = xyes || \
11114    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11115   if test x$host = x$target; then
11116     case $host in
11117       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11118       # keyed to flag_use_cxa_atexit
11119       *-*-mingw32*)
11120         use_cxa_atexit=yes
11121         ;;
11122       *)
11123         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11124 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11125   use_cxa_atexit=yes
11126 else
11127   echo "__cxa_atexit can't be enabled on this target"
11128 fi
11129
11130         ;;
11131     esac
11132   else
11133     # We can't check for __cxa_atexit when building a cross, so assume
11134     # it is available
11135     use_cxa_atexit=yes
11136   fi
11137   if test x$use_cxa_atexit = xyes; then
11138
11139 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11140
11141   fi
11142 fi
11143
11144 # Look for a file containing extra machine modes.
11145 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11146   extra_modes_file='$(srcdir)'/config/${extra_modes}
11147
11148
11149 cat >>confdefs.h <<_ACEOF
11150 #define EXTRA_MODES_FILE "config/$extra_modes"
11151 _ACEOF
11152
11153 fi
11154
11155 # Convert extra_options into a form suitable for Makefile use.
11156 extra_opt_files=
11157 all_opt_files=
11158 for f in $extra_options; do
11159   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11160   all_opt_files="$all_opt_files $srcdir/config/$f"
11161 done
11162
11163
11164 # auto-host.h is the file containing items generated by autoconf and is
11165 # the first file included by config.h.
11166 # If host=build, it is correct to have bconfig include auto-host.h
11167 # as well.  If host!=build, we are in error and need to do more
11168 # work to find out the build config parameters.
11169 if test x$host = x$build
11170 then
11171         build_auto=auto-host.h
11172 else
11173         # We create a subdir, then run autoconf in the subdir.
11174         # To prevent recursion we set host and build for the new
11175         # invocation of configure to the build for this invocation
11176         # of configure.
11177         tempdir=build.$$
11178         rm -rf $tempdir
11179         mkdir $tempdir
11180         cd $tempdir
11181         case ${srcdir} in
11182         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11183         *) realsrcdir=../${srcdir};;
11184         esac
11185         saved_CFLAGS="${CFLAGS}"
11186         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11187         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11188         ${realsrcdir}/configure \
11189                 --enable-languages=${enable_languages-all} \
11190                 --target=$target_alias --host=$build_alias --build=$build_alias
11191         CFLAGS="${saved_CFLAGS}"
11192
11193         # We just finished tests for the build machine, so rename
11194         # the file auto-build.h in the gcc directory.
11195         mv auto-host.h ../auto-build.h
11196         cd ..
11197         rm -rf $tempdir
11198         build_auto=auto-build.h
11199 fi
11200
11201
11202 tm_file="${tm_file} defaults.h"
11203 tm_p_file="${tm_p_file} tm-preds.h"
11204 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11205 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11206 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11207 # put this back in temporarily.
11208 xm_file="auto-host.h ansidecl.h ${xm_file}"
11209
11210 # --------
11211 # UNSORTED
11212 # --------
11213
11214 # Compile in configure arguments.
11215 if test -f configargs.h ; then
11216         # Being re-configured.
11217         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11218         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11219 else
11220         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11221 fi
11222
11223 # Double all backslashes and backslash all quotes to turn
11224 # gcc_config_arguments into a C string.
11225 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11226 $gcc_config_arguments
11227 EOF
11228 gcc_config_arguments_str=`cat conftest.out`
11229 rm -f conftest.out
11230
11231 cat > configargs.h <<EOF
11232 /* Generated automatically. */
11233 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11234 static const char thread_model[] = "$thread_file";
11235
11236 static const struct {
11237   const char *name, *value;
11238 } configure_default_options[] = $configure_default_options;
11239 EOF
11240
11241 gcc_BASEVER=`cat $srcdir/BASE-VER`
11242 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11243 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11244 if test -f $srcdir/REVISION ; then
11245         gcc_REVISION=`cat $srcdir/REVISION`
11246 else
11247         gcc_REVISION=""
11248 fi
11249 cat > plugin-version.h <<EOF
11250 #include "configargs.h"
11251
11252 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11253 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11254 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11255 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11256
11257 static char basever[] = "$gcc_BASEVER";
11258 static char datestamp[] = "$gcc_DATESTAMP";
11259 static char devphase[] = "$gcc_DEVPHASE";
11260 static char revision[] = "$gcc_REVISION";
11261
11262 /* FIXME plugins: We should make the version information more precise.
11263    One way to do is to add a checksum. */
11264
11265 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11266                                                 devphase, revision,
11267                                                 configuration_arguments};
11268 EOF
11269
11270 # Internationalization
11271 # If we haven't got the data from the intl directory,
11272 # assume NLS is disabled.
11273 USE_NLS=no
11274 LIBINTL=
11275 LIBINTL_DEP=
11276 INCINTL=
11277 XGETTEXT=
11278 GMSGFMT=
11279 POSUB=
11280
11281 if test -f  ../intl/config.intl; then
11282   .  ../intl/config.intl
11283 fi
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11285 $as_echo_n "checking whether NLS is requested... " >&6; }
11286 if test x"$USE_NLS" != xyes; then
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11289 else
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11291 $as_echo "yes" >&6; }
11292
11293 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11294
11295
11296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11297 $as_echo_n "checking for catalogs to be installed... " >&6; }
11298   # Look for .po and .gmo files in the source directory.
11299   CATALOGS=
11300   XLINGUAS=
11301   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11302     # If there aren't any .gmo files the shell will give us the
11303     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11304     # weeded out.
11305     case "$cat" in *\**)
11306       continue;;
11307     esac
11308     # The quadruple backslash is collapsed to a double backslash
11309     # by the backticks, then collapsed again by the double quotes,
11310     # leaving us with one backslash in the sed expression (right
11311     # before the dot that mustn't act as a wildcard).
11312     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11313     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11314     # The user is allowed to set LINGUAS to a list of languages to
11315     # install catalogs for.  If it's empty that means "all of them."
11316     if test "x$LINGUAS" = x; then
11317       CATALOGS="$CATALOGS $cat"
11318       XLINGUAS="$XLINGUAS $lang"
11319     else
11320       case "$LINGUAS" in *$lang*)
11321         CATALOGS="$CATALOGS $cat"
11322         XLINGUAS="$XLINGUAS $lang"
11323         ;;
11324       esac
11325     fi
11326   done
11327   LINGUAS="$XLINGUAS"
11328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11329 $as_echo "$LINGUAS" >&6; }
11330
11331
11332     DATADIRNAME=share
11333
11334   INSTOBJEXT=.mo
11335
11336   GENCAT=gencat
11337
11338   CATOBJEXT=.gmo
11339
11340 fi
11341
11342 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11343 # -liconv on the link line twice.
11344 case "$LIBINTL" in *$LIBICONV*)
11345         LIBICONV= ;;
11346 esac
11347
11348 # Check whether --enable-secureplt was given.
11349 if test "${enable_secureplt+set}" = set; then :
11350   enableval=$enable_secureplt;
11351 fi
11352
11353
11354 # Check whether --enable-leading-mingw64-underscores was given.
11355 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11356   enableval=$enable_leading_mingw64_underscores;
11357 fi
11358
11359 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11360
11361 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11362
11363 fi
11364
11365 # Check whether --enable-cld was given.
11366 if test "${enable_cld+set}" = set; then :
11367   enableval=$enable_cld;
11368 else
11369   enable_cld=no
11370 fi
11371
11372
11373 # Check whether --enable-frame-pointer was given.
11374 if test "${enable_frame_pointer+set}" = set; then :
11375   enableval=$enable_frame_pointer;
11376 else
11377
11378 case $target_os in
11379 linux* | darwin[8912]*)
11380   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11381   # DWARF2.
11382   enable_frame_pointer=no
11383   ;;
11384 *)
11385   enable_frame_pointer=yes
11386   ;;
11387 esac
11388
11389 fi
11390
11391
11392 # Windows32 Registry support for specifying GCC installation paths.
11393 # Check whether --enable-win32-registry was given.
11394 if test "${enable_win32_registry+set}" = set; then :
11395   enableval=$enable_win32_registry;
11396 fi
11397
11398
11399 case $host_os in
11400   win32 | pe | cygwin* | mingw32* | uwin*)
11401     if test "x$enable_win32_registry" != xno; then
11402       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11403 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11404 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11405   $as_echo_n "(cached) " >&6
11406 else
11407   ac_func_search_save_LIBS=$LIBS
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h.  */
11410
11411 /* Override any GCC internal prototype to avoid an error.
11412    Use char because int might match the return type of a GCC
11413    builtin and then its argument prototype would still apply.  */
11414 #ifdef __cplusplus
11415 extern "C"
11416 #endif
11417 char RegOpenKeyExA ();
11418 int
11419 main ()
11420 {
11421 return RegOpenKeyExA ();
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 for ac_lib in '' advapi32; do
11427   if test -z "$ac_lib"; then
11428     ac_res="none required"
11429   else
11430     ac_res=-l$ac_lib
11431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11432   fi
11433   if ac_fn_c_try_link "$LINENO"; then :
11434   ac_cv_search_RegOpenKeyExA=$ac_res
11435 fi
11436 rm -f core conftest.err conftest.$ac_objext \
11437     conftest$ac_exeext
11438   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11439   break
11440 fi
11441 done
11442 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11443
11444 else
11445   ac_cv_search_RegOpenKeyExA=no
11446 fi
11447 rm conftest.$ac_ext
11448 LIBS=$ac_func_search_save_LIBS
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11451 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11452 ac_res=$ac_cv_search_RegOpenKeyExA
11453 if test "$ac_res" != no; then :
11454   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11455
11456 else
11457   enable_win32_registry=no
11458 fi
11459
11460     fi
11461
11462     if test "x$enable_win32_registry" != xno; then
11463
11464 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11465
11466
11467       if test "x$enable_win32_registry" != xyes \
11468          && test "x$enable_win32_registry" != x; then
11469
11470 cat >>confdefs.h <<_ACEOF
11471 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11472 _ACEOF
11473
11474       fi
11475     fi
11476   ;;
11477 esac
11478
11479 # Get an absolute path to the GCC top-level source directory
11480 holddir=`${PWDCMD-pwd}`
11481 cd $srcdir
11482 topdir=`${PWDCMD-pwd}`
11483 cd $holddir
11484
11485 # Conditionalize the makefile for this host machine.
11486 xmake_file=
11487 for f in ${host_xmake_file}
11488 do
11489         if test -f ${srcdir}/config/$f
11490         then
11491                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11492         fi
11493 done
11494
11495 # Conditionalize the makefile for this target machine.
11496 tmake_file_=
11497 for f in ${tmake_file}
11498 do
11499         if test -f ${srcdir}/config/$f
11500         then
11501                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11502         fi
11503 done
11504 tmake_file="${tmake_file_}"
11505
11506 out_object_file=`basename $out_file .c`.o
11507 common_out_object_file=`basename $common_out_file .c`.o
11508
11509 tm_file_list="options.h"
11510 tm_include_list="options.h insn-constants.h"
11511 for f in $tm_file; do
11512   case $f in
11513     ./* )
11514        f=`echo $f | sed 's/^..//'`
11515        tm_file_list="${tm_file_list} $f"
11516        tm_include_list="${tm_include_list} $f"
11517        ;;
11518     defaults.h )
11519        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11520        tm_include_list="${tm_include_list} $f"
11521        ;;
11522     * )
11523        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11524        tm_include_list="${tm_include_list} config/$f"
11525        ;;
11526   esac
11527 done
11528
11529 libgcc_tm_file_list=
11530 libgcc_tm_include_list=
11531 for f in $libgcc_tm_file; do
11532   libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11533   libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11534 done
11535
11536 tm_p_file_list=
11537 tm_p_include_list=
11538 for f in $tm_p_file; do
11539   case $f in
11540     tm-preds.h )
11541        tm_p_file_list="${tm_p_file_list} $f"
11542        tm_p_include_list="${tm_p_include_list} $f"
11543        ;;
11544     * )
11545        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11546        tm_p_include_list="${tm_p_include_list} config/$f"
11547   esac
11548 done
11549
11550 xm_file_list=
11551 xm_include_list=
11552 for f in $xm_file; do
11553   case $f in
11554     ansidecl.h )
11555        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11556        xm_include_list="${xm_include_list} $f"
11557        ;;
11558     auto-host.h )
11559        xm_file_list="${xm_file_list} $f"
11560        xm_include_list="${xm_include_list} $f"
11561        ;;
11562     * )
11563        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11564        xm_include_list="${xm_include_list} config/$f"
11565        ;;
11566   esac
11567 done
11568
11569 host_xm_file_list=
11570 host_xm_include_list=
11571 for f in $host_xm_file; do
11572   case $f in
11573     ansidecl.h )
11574        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11575        host_xm_include_list="${host_xm_include_list} $f"
11576        ;;
11577     auto-host.h )
11578        host_xm_file_list="${host_xm_file_list} $f"
11579        host_xm_include_list="${host_xm_include_list} $f"
11580        ;;
11581     * )
11582        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11583        host_xm_include_list="${host_xm_include_list} config/$f"
11584        ;;
11585   esac
11586 done
11587
11588 build_xm_file_list=
11589 for f in $build_xm_file; do
11590   case $f in
11591     ansidecl.h )
11592        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11593        build_xm_include_list="${build_xm_include_list} $f"
11594        ;;
11595     auto-build.h | auto-host.h )
11596        build_xm_file_list="${build_xm_file_list} $f"
11597        build_xm_include_list="${build_xm_include_list} $f"
11598        ;;
11599     * )
11600        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11601        build_xm_include_list="${build_xm_include_list} config/$f"
11602        ;;
11603   esac
11604 done
11605
11606 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11607 # cross-compiler which does not use the native headers and libraries.
11608 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11609 CROSS=
11610 ALL=all.internal
11611 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11612
11613 if test "x$with_build_sysroot" != x; then
11614   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11615 else
11616   # This value is used, even on a native system, because
11617   # CROSS_SYSTEM_HEADER_DIR is just
11618   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11619   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11620 fi
11621
11622 if test x$host != x$target
11623 then
11624         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11625         ALL=all.cross
11626         SYSTEM_HEADER_DIR=$build_system_header_dir
11627         case "$host","$target" in
11628         # Darwin crosses can use the host system's libraries and headers,
11629         # because of the fat library support.  Of course, it must be the
11630         # same version of Darwin on both sides.  Allow the user to
11631         # just say --target=foo-darwin without a version number to mean
11632         # "the version on this system".
11633             *-*-darwin*,*-*-darwin*)
11634                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11635                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11636                 if test $hostos = $targetos -o $targetos = darwin ; then
11637                     CROSS=
11638                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11639                     with_headers=yes
11640                 fi
11641                 ;;
11642
11643             i?86-*-*,x86_64-*-* \
11644             | powerpc*-*-*,powerpc64*-*-*)
11645                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11646         esac
11647
11648         case $target in
11649                 *-*-mingw*)
11650                         if test "x$with_headers" = x; then
11651                                 with_headers=yes
11652                         fi
11653                         ;;
11654                 *)
11655                         ;;
11656         esac
11657 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11658         SYSTEM_HEADER_DIR=$build_system_header_dir
11659 fi
11660
11661 # If this is a cross-compiler that does not
11662 # have its own set of headers then define
11663 # inhibit_libc
11664
11665 # If this is using newlib, without having the headers available now,
11666 # then define inhibit_libc in LIBGCC2_CFLAGS.
11667 # This prevents libgcc2 from containing any code which requires libc
11668 # support.
11669 : ${inhibit_libc=false}
11670 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11671        test x$with_newlib = xyes ; } &&
11672      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11673        inhibit_libc=true
11674 fi
11675
11676
11677 # When building gcc with a cross-compiler, we need to adjust things so
11678 # that the generator programs are still built with the native compiler.
11679 # Also, we cannot run fixincludes.
11680
11681 # These are the normal (build=host) settings:
11682 CC_FOR_BUILD='$(CC)'
11683 BUILD_CFLAGS='$(ALL_CFLAGS)'
11684 BUILD_LDFLAGS='$(LDFLAGS)'
11685 STMP_FIXINC=stmp-fixinc
11686
11687 # And these apply if build != host, or we are generating coverage data
11688 if test x$build != x$host || test "x$coverage_flags" != x
11689 then
11690     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11691     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11692 fi
11693
11694 # Expand extra_headers to include complete path.
11695 # This substitutes for lots of t-* files.
11696 extra_headers_list=
11697 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11698 for file in ${extra_headers} ; do
11699   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11700 done
11701
11702 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11703 if test x"$use_gcc_tgmath" = xyes
11704 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11705 fi
11706
11707 # Define collect2 in Makefile.
11708 case $host_can_use_collect2 in
11709   no) collect2= ;;
11710   *) collect2='collect2$(exeext)' ;;
11711 esac
11712
11713
11714 # Add a definition of USE_COLLECT2 if system wants one.
11715 case $use_collect2 in
11716   no) use_collect2= ;;
11717   "") ;;
11718   *)
11719     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11720     xm_defines="${xm_defines} USE_COLLECT2"
11721     case $host_can_use_collect2 in
11722       no)
11723         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11724         ;;
11725     esac
11726     ;;
11727 esac
11728
11729
11730 cat >>confdefs.h <<_ACEOF
11731 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11732 _ACEOF
11733
11734
11735 # ---------------------------
11736 # Assembler & linker features
11737 # ---------------------------
11738
11739 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11740 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11741 # However when ld-new is first executed from the build tree, libtool will
11742 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11743 # to the build tree.  While doing this we need to use the previous-stage
11744 # linker, or we have an infinite loop.  The presence of a shell script as
11745 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11746 # the gcc/collect-ld script.  So we need to know how libtool works, or
11747 # exec-tool will fail.
11748
11749
11750 case `pwd` in
11751   *\ * | *\     *)
11752     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11753 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11754 esac
11755
11756
11757
11758 macro_version='2.2.7a'
11759 macro_revision='1.3134'
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773 ltmain="$ac_aux_dir/ltmain.sh"
11774
11775 # Backslashify metacharacters that are still active within
11776 # double-quoted strings.
11777 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11778
11779 # Same as above, but do not quote variable references.
11780 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11781
11782 # Sed substitution to delay expansion of an escaped shell variable in a
11783 # double_quote_subst'ed string.
11784 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11785
11786 # Sed substitution to delay expansion of an escaped single quote.
11787 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11788
11789 # Sed substitution to avoid accidental globbing in evaled expressions
11790 no_glob_subst='s/\*/\\\*/g'
11791
11792 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11793 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11794 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11795
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11797 $as_echo_n "checking how to print strings... " >&6; }
11798 # Test print first, because it will be a builtin if present.
11799 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11800    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11801   ECHO='print -r --'
11802 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11803   ECHO='printf %s\n'
11804 else
11805   # Use this function as a fallback that always works.
11806   func_fallback_echo ()
11807   {
11808     eval 'cat <<_LTECHO_EOF
11809 $1
11810 _LTECHO_EOF'
11811   }
11812   ECHO='func_fallback_echo'
11813 fi
11814
11815 # func_echo_all arg...
11816 # Invoke $ECHO with all args, space-separated.
11817 func_echo_all ()
11818 {
11819     $ECHO ""
11820 }
11821
11822 case "$ECHO" in
11823   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11824 $as_echo "printf" >&6; } ;;
11825   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11826 $as_echo "print -r" >&6; } ;;
11827   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11828 $as_echo "cat" >&6; } ;;
11829 esac
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11845 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11846 if test "${ac_cv_path_SED+set}" = set; then :
11847   $as_echo_n "(cached) " >&6
11848 else
11849             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11850      for ac_i in 1 2 3 4 5 6 7; do
11851        ac_script="$ac_script$as_nl$ac_script"
11852      done
11853      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11854      { ac_script=; unset ac_script;}
11855      if test -z "$SED"; then
11856   ac_path_SED_found=false
11857   # Loop through the user's path and test for each of PROGNAME-LIST
11858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11860 do
11861   IFS=$as_save_IFS
11862   test -z "$as_dir" && as_dir=.
11863     for ac_prog in sed gsed; do
11864     for ac_exec_ext in '' $ac_executable_extensions; do
11865       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11866       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11867 # Check for GNU ac_path_SED and select it if it is found.
11868   # Check for GNU $ac_path_SED
11869 case `"$ac_path_SED" --version 2>&1` in
11870 *GNU*)
11871   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11872 *)
11873   ac_count=0
11874   $as_echo_n 0123456789 >"conftest.in"
11875   while :
11876   do
11877     cat "conftest.in" "conftest.in" >"conftest.tmp"
11878     mv "conftest.tmp" "conftest.in"
11879     cp "conftest.in" "conftest.nl"
11880     $as_echo '' >> "conftest.nl"
11881     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11882     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11883     as_fn_arith $ac_count + 1 && ac_count=$as_val
11884     if test $ac_count -gt ${ac_path_SED_max-0}; then
11885       # Best one so far, save it but keep looking for a better one
11886       ac_cv_path_SED="$ac_path_SED"
11887       ac_path_SED_max=$ac_count
11888     fi
11889     # 10*(2^10) chars as input seems more than enough
11890     test $ac_count -gt 10 && break
11891   done
11892   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11893 esac
11894
11895       $ac_path_SED_found && break 3
11896     done
11897   done
11898   done
11899 IFS=$as_save_IFS
11900   if test -z "$ac_cv_path_SED"; then
11901     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11902   fi
11903 else
11904   ac_cv_path_SED=$SED
11905 fi
11906
11907 fi
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11909 $as_echo "$ac_cv_path_SED" >&6; }
11910  SED="$ac_cv_path_SED"
11911   rm -f conftest.sed
11912
11913 test -z "$SED" && SED=sed
11914 Xsed="$SED -e 1s/^X//"
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11927 $as_echo_n "checking for fgrep... " >&6; }
11928 if test "${ac_cv_path_FGREP+set}" = set; then :
11929   $as_echo_n "(cached) " >&6
11930 else
11931   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11932    then ac_cv_path_FGREP="$GREP -F"
11933    else
11934      if test -z "$FGREP"; then
11935   ac_path_FGREP_found=false
11936   # Loop through the user's path and test for each of PROGNAME-LIST
11937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11939 do
11940   IFS=$as_save_IFS
11941   test -z "$as_dir" && as_dir=.
11942     for ac_prog in fgrep; do
11943     for ac_exec_ext in '' $ac_executable_extensions; do
11944       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11945       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11946 # Check for GNU ac_path_FGREP and select it if it is found.
11947   # Check for GNU $ac_path_FGREP
11948 case `"$ac_path_FGREP" --version 2>&1` in
11949 *GNU*)
11950   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11951 *)
11952   ac_count=0
11953   $as_echo_n 0123456789 >"conftest.in"
11954   while :
11955   do
11956     cat "conftest.in" "conftest.in" >"conftest.tmp"
11957     mv "conftest.tmp" "conftest.in"
11958     cp "conftest.in" "conftest.nl"
11959     $as_echo 'FGREP' >> "conftest.nl"
11960     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11961     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11962     as_fn_arith $ac_count + 1 && ac_count=$as_val
11963     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11964       # Best one so far, save it but keep looking for a better one
11965       ac_cv_path_FGREP="$ac_path_FGREP"
11966       ac_path_FGREP_max=$ac_count
11967     fi
11968     # 10*(2^10) chars as input seems more than enough
11969     test $ac_count -gt 10 && break
11970   done
11971   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11972 esac
11973
11974       $ac_path_FGREP_found && break 3
11975     done
11976   done
11977   done
11978 IFS=$as_save_IFS
11979   if test -z "$ac_cv_path_FGREP"; then
11980     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11981   fi
11982 else
11983   ac_cv_path_FGREP=$FGREP
11984 fi
11985
11986    fi
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11989 $as_echo "$ac_cv_path_FGREP" >&6; }
11990  FGREP="$ac_cv_path_FGREP"
11991
11992
11993 test -z "$GREP" && GREP=grep
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013 # Check whether --with-gnu-ld was given.
12014 if test "${with_gnu_ld+set}" = set; then :
12015   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12016 else
12017   with_gnu_ld=no
12018 fi
12019
12020 ac_prog=ld
12021 if test "$GCC" = yes; then
12022   # Check if gcc -print-prog-name=ld gives a path.
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12024 $as_echo_n "checking for ld used by $CC... " >&6; }
12025   case $host in
12026   *-*-mingw*)
12027     # gcc leaves a trailing carriage return which upsets mingw
12028     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12029   *)
12030     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12031   esac
12032   case $ac_prog in
12033     # Accept absolute paths.
12034     [\\/]* | ?:[\\/]*)
12035       re_direlt='/[^/][^/]*/\.\./'
12036       # Canonicalize the pathname of ld
12037       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12038       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12039         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12040       done
12041       test -z "$LD" && LD="$ac_prog"
12042       ;;
12043   "")
12044     # If it fails, then pretend we aren't using GCC.
12045     ac_prog=ld
12046     ;;
12047   *)
12048     # If it is relative, then search for the first ld in PATH.
12049     with_gnu_ld=unknown
12050     ;;
12051   esac
12052 elif test "$with_gnu_ld" = yes; then
12053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12054 $as_echo_n "checking for GNU ld... " >&6; }
12055 else
12056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12057 $as_echo_n "checking for non-GNU ld... " >&6; }
12058 fi
12059 if test "${lt_cv_path_LD+set}" = set; then :
12060   $as_echo_n "(cached) " >&6
12061 else
12062   if test -z "$LD"; then
12063   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12064   for ac_dir in $PATH; do
12065     IFS="$lt_save_ifs"
12066     test -z "$ac_dir" && ac_dir=.
12067     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12068       lt_cv_path_LD="$ac_dir/$ac_prog"
12069       # Check to see if the program is GNU ld.  I'd rather use --version,
12070       # but apparently some variants of GNU ld only accept -v.
12071       # Break only if it was the GNU/non-GNU ld that we prefer.
12072       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12073       *GNU* | *'with BFD'*)
12074         test "$with_gnu_ld" != no && break
12075         ;;
12076       *)
12077         test "$with_gnu_ld" != yes && break
12078         ;;
12079       esac
12080     fi
12081   done
12082   IFS="$lt_save_ifs"
12083 else
12084   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12085 fi
12086 fi
12087
12088 LD="$lt_cv_path_LD"
12089 if test -n "$LD"; then
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12091 $as_echo "$LD" >&6; }
12092 else
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12095 fi
12096 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12098 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12099 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12100   $as_echo_n "(cached) " >&6
12101 else
12102   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12103 case `$LD -v 2>&1 </dev/null` in
12104 *GNU* | *'with BFD'*)
12105   lt_cv_prog_gnu_ld=yes
12106   ;;
12107 *)
12108   lt_cv_prog_gnu_ld=no
12109   ;;
12110 esac
12111 fi
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12113 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12114 with_gnu_ld=$lt_cv_prog_gnu_ld
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12125 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12126 if test "${lt_cv_path_NM+set}" = set; then :
12127   $as_echo_n "(cached) " >&6
12128 else
12129   if test -n "$NM"; then
12130   # Let the user override the test.
12131   lt_cv_path_NM="$NM"
12132 else
12133   lt_nm_to_check="${ac_tool_prefix}nm"
12134   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12135     lt_nm_to_check="$lt_nm_to_check nm"
12136   fi
12137   for lt_tmp_nm in $lt_nm_to_check; do
12138     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12139     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12140       IFS="$lt_save_ifs"
12141       test -z "$ac_dir" && ac_dir=.
12142       tmp_nm="$ac_dir/$lt_tmp_nm"
12143       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12144         # Check to see if the nm accepts a BSD-compat flag.
12145         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12146         #   nm: unknown option "B" ignored
12147         # Tru64's nm complains that /dev/null is an invalid object file
12148         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12149         */dev/null* | *'Invalid file or object type'*)
12150           lt_cv_path_NM="$tmp_nm -B"
12151           break
12152           ;;
12153         *)
12154           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12155           */dev/null*)
12156             lt_cv_path_NM="$tmp_nm -p"
12157             break
12158             ;;
12159           *)
12160             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12161             continue # so that we can try to find one that supports BSD flags
12162             ;;
12163           esac
12164           ;;
12165         esac
12166       fi
12167     done
12168     IFS="$lt_save_ifs"
12169   done
12170   : ${lt_cv_path_NM=no}
12171 fi
12172 fi
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12174 $as_echo "$lt_cv_path_NM" >&6; }
12175 if test "$lt_cv_path_NM" != "no"; then
12176   NM="$lt_cv_path_NM"
12177 else
12178   # Didn't find any BSD compatible name lister, look for dumpbin.
12179   if test -n "$DUMPBIN"; then :
12180     # Let the user override the test.
12181   else
12182     if test -n "$ac_tool_prefix"; then
12183   for ac_prog in dumpbin "link -dump"
12184   do
12185     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12190   $as_echo_n "(cached) " >&6
12191 else
12192   if test -n "$DUMPBIN"; then
12193   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198   IFS=$as_save_IFS
12199   test -z "$as_dir" && as_dir=.
12200     for ac_exec_ext in '' $ac_executable_extensions; do
12201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12202     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204     break 2
12205   fi
12206 done
12207   done
12208 IFS=$as_save_IFS
12209
12210 fi
12211 fi
12212 DUMPBIN=$ac_cv_prog_DUMPBIN
12213 if test -n "$DUMPBIN"; then
12214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12215 $as_echo "$DUMPBIN" >&6; }
12216 else
12217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12219 fi
12220
12221
12222     test -n "$DUMPBIN" && break
12223   done
12224 fi
12225 if test -z "$DUMPBIN"; then
12226   ac_ct_DUMPBIN=$DUMPBIN
12227   for ac_prog in dumpbin "link -dump"
12228 do
12229   # Extract the first word of "$ac_prog", so it can be a program name with args.
12230 set dummy $ac_prog; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12234   $as_echo_n "(cached) " >&6
12235 else
12236   if test -n "$ac_ct_DUMPBIN"; then
12237   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12238 else
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12241 do
12242   IFS=$as_save_IFS
12243   test -z "$as_dir" && as_dir=.
12244     for ac_exec_ext in '' $ac_executable_extensions; do
12245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248     break 2
12249   fi
12250 done
12251   done
12252 IFS=$as_save_IFS
12253
12254 fi
12255 fi
12256 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12257 if test -n "$ac_ct_DUMPBIN"; then
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12259 $as_echo "$ac_ct_DUMPBIN" >&6; }
12260 else
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12263 fi
12264
12265
12266   test -n "$ac_ct_DUMPBIN" && break
12267 done
12268
12269   if test "x$ac_ct_DUMPBIN" = x; then
12270     DUMPBIN=":"
12271   else
12272     case $cross_compiling:$ac_tool_warned in
12273 yes:)
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12276 ac_tool_warned=yes ;;
12277 esac
12278     DUMPBIN=$ac_ct_DUMPBIN
12279   fi
12280 fi
12281
12282     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12283     *COFF*)
12284       DUMPBIN="$DUMPBIN -symbols"
12285       ;;
12286     *)
12287       DUMPBIN=:
12288       ;;
12289     esac
12290   fi
12291
12292   if test "$DUMPBIN" != ":"; then
12293     NM="$DUMPBIN"
12294   fi
12295 fi
12296 test -z "$NM" && NM=nm
12297
12298
12299
12300
12301
12302
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12304 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12305 if test "${lt_cv_nm_interface+set}" = set; then :
12306   $as_echo_n "(cached) " >&6
12307 else
12308   lt_cv_nm_interface="BSD nm"
12309   echo "int some_variable = 0;" > conftest.$ac_ext
12310   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12311   (eval "$ac_compile" 2>conftest.err)
12312   cat conftest.err >&5
12313   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12314   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12315   cat conftest.err >&5
12316   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12317   cat conftest.out >&5
12318   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12319     lt_cv_nm_interface="MS dumpbin"
12320   fi
12321   rm -f conftest*
12322 fi
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12324 $as_echo "$lt_cv_nm_interface" >&6; }
12325
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12327 $as_echo_n "checking whether ln -s works... " >&6; }
12328 LN_S=$as_ln_s
12329 if test "$LN_S" = "ln -s"; then
12330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12331 $as_echo "yes" >&6; }
12332 else
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12334 $as_echo "no, using $LN_S" >&6; }
12335 fi
12336
12337 # find the maximum length of command line arguments
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12339 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12340 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12341   $as_echo_n "(cached) " >&6
12342 else
12343     i=0
12344   teststring="ABCD"
12345
12346   case $build_os in
12347   msdosdjgpp*)
12348     # On DJGPP, this test can blow up pretty badly due to problems in libc
12349     # (any single argument exceeding 2000 bytes causes a buffer overrun
12350     # during glob expansion).  Even if it were fixed, the result of this
12351     # check would be larger than it should be.
12352     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12353     ;;
12354
12355   gnu*)
12356     # Under GNU Hurd, this test is not required because there is
12357     # no limit to the length of command line arguments.
12358     # Libtool will interpret -1 as no limit whatsoever
12359     lt_cv_sys_max_cmd_len=-1;
12360     ;;
12361
12362   cygwin* | mingw* | cegcc*)
12363     # On Win9x/ME, this test blows up -- it succeeds, but takes
12364     # about 5 minutes as the teststring grows exponentially.
12365     # Worse, since 9x/ME are not pre-emptively multitasking,
12366     # you end up with a "frozen" computer, even though with patience
12367     # the test eventually succeeds (with a max line length of 256k).
12368     # Instead, let's just punt: use the minimum linelength reported by
12369     # all of the supported platforms: 8192 (on NT/2K/XP).
12370     lt_cv_sys_max_cmd_len=8192;
12371     ;;
12372
12373   mint*)
12374     # On MiNT this can take a long time and run out of memory.
12375     lt_cv_sys_max_cmd_len=8192;
12376     ;;
12377
12378   amigaos*)
12379     # On AmigaOS with pdksh, this test takes hours, literally.
12380     # So we just punt and use a minimum line length of 8192.
12381     lt_cv_sys_max_cmd_len=8192;
12382     ;;
12383
12384   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12385     # This has been around since 386BSD, at least.  Likely further.
12386     if test -x /sbin/sysctl; then
12387       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12388     elif test -x /usr/sbin/sysctl; then
12389       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12390     else
12391       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12392     fi
12393     # And add a safety zone
12394     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12395     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12396     ;;
12397
12398   interix*)
12399     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12400     lt_cv_sys_max_cmd_len=196608
12401     ;;
12402
12403   osf*)
12404     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12405     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12406     # nice to cause kernel panics so lets avoid the loop below.
12407     # First set a reasonable default.
12408     lt_cv_sys_max_cmd_len=16384
12409     #
12410     if test -x /sbin/sysconfig; then
12411       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12412         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12413       esac
12414     fi
12415     ;;
12416   sco3.2v5*)
12417     lt_cv_sys_max_cmd_len=102400
12418     ;;
12419   sysv5* | sco5v6* | sysv4.2uw2*)
12420     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12421     if test -n "$kargmax"; then
12422       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12423     else
12424       lt_cv_sys_max_cmd_len=32768
12425     fi
12426     ;;
12427   *)
12428     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12429     if test -n "$lt_cv_sys_max_cmd_len"; then
12430       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12431       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12432     else
12433       # Make teststring a little bigger before we do anything with it.
12434       # a 1K string should be a reasonable start.
12435       for i in 1 2 3 4 5 6 7 8 ; do
12436         teststring=$teststring$teststring
12437       done
12438       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12439       # If test is not a shell built-in, we'll probably end up computing a
12440       # maximum length that is only half of the actual maximum length, but
12441       # we can't tell.
12442       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12443                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12444               test $i != 17 # 1/2 MB should be enough
12445       do
12446         i=`expr $i + 1`
12447         teststring=$teststring$teststring
12448       done
12449       # Only check the string length outside the loop.
12450       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12451       teststring=
12452       # Add a significant safety factor because C++ compilers can tack on
12453       # massive amounts of additional arguments before passing them to the
12454       # linker.  It appears as though 1/2 is a usable value.
12455       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12456     fi
12457     ;;
12458   esac
12459
12460 fi
12461
12462 if test -n $lt_cv_sys_max_cmd_len ; then
12463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12464 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12465 else
12466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12467 $as_echo "none" >&6; }
12468 fi
12469 max_cmd_len=$lt_cv_sys_max_cmd_len
12470
12471
12472
12473
12474
12475
12476 : ${CP="cp -f"}
12477 : ${MV="mv -f"}
12478 : ${RM="rm -f"}
12479
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12481 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12482 # Try some XSI features
12483 xsi_shell=no
12484 ( _lt_dummy="a/b/c"
12485   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12486       = c,a/b,, \
12487     && eval 'test $(( 1 + 1 )) -eq 2 \
12488     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12489   && xsi_shell=yes
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12491 $as_echo "$xsi_shell" >&6; }
12492
12493
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12495 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12496 lt_shell_append=no
12497 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12498     >/dev/null 2>&1 \
12499   && lt_shell_append=yes
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12501 $as_echo "$lt_shell_append" >&6; }
12502
12503
12504 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12505   lt_unset=unset
12506 else
12507   lt_unset=false
12508 fi
12509
12510
12511
12512
12513
12514 # test EBCDIC or ASCII
12515 case `echo X|tr X '\101'` in
12516  A) # ASCII based system
12517     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12518   lt_SP2NL='tr \040 \012'
12519   lt_NL2SP='tr \015\012 \040\040'
12520   ;;
12521  *) # EBCDIC based system
12522   lt_SP2NL='tr \100 \n'
12523   lt_NL2SP='tr \r\n \100\100'
12524   ;;
12525 esac
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12536 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12537 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12538   $as_echo_n "(cached) " >&6
12539 else
12540   lt_cv_ld_reload_flag='-r'
12541 fi
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12543 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12544 reload_flag=$lt_cv_ld_reload_flag
12545 case $reload_flag in
12546 "" | " "*) ;;
12547 *) reload_flag=" $reload_flag" ;;
12548 esac
12549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12550 case $host_os in
12551   darwin*)
12552     if test "$GCC" = yes; then
12553       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12554     else
12555       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12556     fi
12557     ;;
12558 esac
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568 if test -n "$ac_tool_prefix"; then
12569   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12570 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12572 $as_echo_n "checking for $ac_word... " >&6; }
12573 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12574   $as_echo_n "(cached) " >&6
12575 else
12576   if test -n "$OBJDUMP"; then
12577   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12578 else
12579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12580 for as_dir in $PATH
12581 do
12582   IFS=$as_save_IFS
12583   test -z "$as_dir" && as_dir=.
12584     for ac_exec_ext in '' $ac_executable_extensions; do
12585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12586     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12588     break 2
12589   fi
12590 done
12591   done
12592 IFS=$as_save_IFS
12593
12594 fi
12595 fi
12596 OBJDUMP=$ac_cv_prog_OBJDUMP
12597 if test -n "$OBJDUMP"; then
12598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12599 $as_echo "$OBJDUMP" >&6; }
12600 else
12601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602 $as_echo "no" >&6; }
12603 fi
12604
12605
12606 fi
12607 if test -z "$ac_cv_prog_OBJDUMP"; then
12608   ac_ct_OBJDUMP=$OBJDUMP
12609   # Extract the first word of "objdump", so it can be a program name with args.
12610 set dummy objdump; ac_word=$2
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12612 $as_echo_n "checking for $ac_word... " >&6; }
12613 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12614   $as_echo_n "(cached) " >&6
12615 else
12616   if test -n "$ac_ct_OBJDUMP"; then
12617   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12618 else
12619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12620 for as_dir in $PATH
12621 do
12622   IFS=$as_save_IFS
12623   test -z "$as_dir" && as_dir=.
12624     for ac_exec_ext in '' $ac_executable_extensions; do
12625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12626     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12628     break 2
12629   fi
12630 done
12631   done
12632 IFS=$as_save_IFS
12633
12634 fi
12635 fi
12636 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12637 if test -n "$ac_ct_OBJDUMP"; then
12638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12639 $as_echo "$ac_ct_OBJDUMP" >&6; }
12640 else
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642 $as_echo "no" >&6; }
12643 fi
12644
12645   if test "x$ac_ct_OBJDUMP" = x; then
12646     OBJDUMP="false"
12647   else
12648     case $cross_compiling:$ac_tool_warned in
12649 yes:)
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12652 ac_tool_warned=yes ;;
12653 esac
12654     OBJDUMP=$ac_ct_OBJDUMP
12655   fi
12656 else
12657   OBJDUMP="$ac_cv_prog_OBJDUMP"
12658 fi
12659
12660 test -z "$OBJDUMP" && OBJDUMP=objdump
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12671 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12672 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12673   $as_echo_n "(cached) " >&6
12674 else
12675   lt_cv_file_magic_cmd='$MAGIC_CMD'
12676 lt_cv_file_magic_test_file=
12677 lt_cv_deplibs_check_method='unknown'
12678 # Need to set the preceding variable on all platforms that support
12679 # interlibrary dependencies.
12680 # 'none' -- dependencies not supported.
12681 # `unknown' -- same as none, but documents that we really don't know.
12682 # 'pass_all' -- all dependencies passed with no checks.
12683 # 'test_compile' -- check by making test program.
12684 # 'file_magic [[regex]]' -- check by looking for files in library path
12685 # which responds to the $file_magic_cmd with a given extended regex.
12686 # If you have `file' or equivalent on your system and you're not sure
12687 # whether `pass_all' will *always* work, you probably want this one.
12688
12689 case $host_os in
12690 aix[4-9]*)
12691   lt_cv_deplibs_check_method=pass_all
12692   ;;
12693
12694 beos*)
12695   lt_cv_deplibs_check_method=pass_all
12696   ;;
12697
12698 bsdi[45]*)
12699   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12700   lt_cv_file_magic_cmd='/usr/bin/file -L'
12701   lt_cv_file_magic_test_file=/shlib/libc.so
12702   ;;
12703
12704 cygwin*)
12705   # func_win32_libid is a shell function defined in ltmain.sh
12706   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12707   lt_cv_file_magic_cmd='func_win32_libid'
12708   ;;
12709
12710 mingw* | pw32*)
12711   # Base MSYS/MinGW do not provide the 'file' command needed by
12712   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12713   # unless we find 'file', for example because we are cross-compiling.
12714   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12715   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12716     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12717     lt_cv_file_magic_cmd='func_win32_libid'
12718   else
12719     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12720     lt_cv_file_magic_cmd='$OBJDUMP -f'
12721   fi
12722   ;;
12723
12724 cegcc*)
12725   # use the weaker test based on 'objdump'. See mingw*.
12726   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12727   lt_cv_file_magic_cmd='$OBJDUMP -f'
12728   ;;
12729
12730 darwin* | rhapsody*)
12731   lt_cv_deplibs_check_method=pass_all
12732   ;;
12733
12734 freebsd* | dragonfly*)
12735   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12736     case $host_cpu in
12737     i*86 )
12738       # Not sure whether the presence of OpenBSD here was a mistake.
12739       # Let's accept both of them until this is cleared up.
12740       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12741       lt_cv_file_magic_cmd=/usr/bin/file
12742       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12743       ;;
12744     esac
12745   else
12746     lt_cv_deplibs_check_method=pass_all
12747   fi
12748   ;;
12749
12750 gnu*)
12751   lt_cv_deplibs_check_method=pass_all
12752   ;;
12753
12754 haiku*)
12755   lt_cv_deplibs_check_method=pass_all
12756   ;;
12757
12758 hpux10.20* | hpux11*)
12759   lt_cv_file_magic_cmd=/usr/bin/file
12760   case $host_cpu in
12761   ia64*)
12762     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12763     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12764     ;;
12765   hppa*64*)
12766     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]'
12767     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12768     ;;
12769   *)
12770     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12771     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12772     ;;
12773   esac
12774   ;;
12775
12776 interix[3-9]*)
12777   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12778   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12779   ;;
12780
12781 irix5* | irix6* | nonstopux*)
12782   case $LD in
12783   *-32|*"-32 ") libmagic=32-bit;;
12784   *-n32|*"-n32 ") libmagic=N32;;
12785   *-64|*"-64 ") libmagic=64-bit;;
12786   *) libmagic=never-match;;
12787   esac
12788   lt_cv_deplibs_check_method=pass_all
12789   ;;
12790
12791 # This must be Linux ELF.
12792 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12793   lt_cv_deplibs_check_method=pass_all
12794   ;;
12795
12796 netbsd*)
12797   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12798     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12799   else
12800     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12801   fi
12802   ;;
12803
12804 newos6*)
12805   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12806   lt_cv_file_magic_cmd=/usr/bin/file
12807   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12808   ;;
12809
12810 *nto* | *qnx*)
12811   lt_cv_deplibs_check_method=pass_all
12812   ;;
12813
12814 openbsd*)
12815   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12816     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12817   else
12818     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12819   fi
12820   ;;
12821
12822 osf3* | osf4* | osf5*)
12823   lt_cv_deplibs_check_method=pass_all
12824   ;;
12825
12826 rdos*)
12827   lt_cv_deplibs_check_method=pass_all
12828   ;;
12829
12830 solaris*)
12831   lt_cv_deplibs_check_method=pass_all
12832   ;;
12833
12834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12835   lt_cv_deplibs_check_method=pass_all
12836   ;;
12837
12838 sysv4 | sysv4.3*)
12839   case $host_vendor in
12840   motorola)
12841     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]'
12842     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12843     ;;
12844   ncr)
12845     lt_cv_deplibs_check_method=pass_all
12846     ;;
12847   sequent)
12848     lt_cv_file_magic_cmd='/bin/file'
12849     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12850     ;;
12851   sni)
12852     lt_cv_file_magic_cmd='/bin/file'
12853     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12854     lt_cv_file_magic_test_file=/lib/libc.so
12855     ;;
12856   siemens)
12857     lt_cv_deplibs_check_method=pass_all
12858     ;;
12859   pc)
12860     lt_cv_deplibs_check_method=pass_all
12861     ;;
12862   esac
12863   ;;
12864
12865 tpf*)
12866   lt_cv_deplibs_check_method=pass_all
12867   ;;
12868 esac
12869
12870 fi
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12872 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12873 file_magic_cmd=$lt_cv_file_magic_cmd
12874 deplibs_check_method=$lt_cv_deplibs_check_method
12875 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888 if test -n "$ac_tool_prefix"; then
12889   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12890 set dummy ${ac_tool_prefix}ar; ac_word=$2
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12892 $as_echo_n "checking for $ac_word... " >&6; }
12893 if test "${ac_cv_prog_AR+set}" = set; then :
12894   $as_echo_n "(cached) " >&6
12895 else
12896   if test -n "$AR"; then
12897   ac_cv_prog_AR="$AR" # Let the user override the test.
12898 else
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12901 do
12902   IFS=$as_save_IFS
12903   test -z "$as_dir" && as_dir=.
12904     for ac_exec_ext in '' $ac_executable_extensions; do
12905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12906     ac_cv_prog_AR="${ac_tool_prefix}ar"
12907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12908     break 2
12909   fi
12910 done
12911   done
12912 IFS=$as_save_IFS
12913
12914 fi
12915 fi
12916 AR=$ac_cv_prog_AR
12917 if test -n "$AR"; then
12918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12919 $as_echo "$AR" >&6; }
12920 else
12921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12923 fi
12924
12925
12926 fi
12927 if test -z "$ac_cv_prog_AR"; then
12928   ac_ct_AR=$AR
12929   # Extract the first word of "ar", so it can be a program name with args.
12930 set dummy ar; ac_word=$2
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12932 $as_echo_n "checking for $ac_word... " >&6; }
12933 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12934   $as_echo_n "(cached) " >&6
12935 else
12936   if test -n "$ac_ct_AR"; then
12937   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12938 else
12939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12940 for as_dir in $PATH
12941 do
12942   IFS=$as_save_IFS
12943   test -z "$as_dir" && as_dir=.
12944     for ac_exec_ext in '' $ac_executable_extensions; do
12945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12946     ac_cv_prog_ac_ct_AR="ar"
12947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12948     break 2
12949   fi
12950 done
12951   done
12952 IFS=$as_save_IFS
12953
12954 fi
12955 fi
12956 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12957 if test -n "$ac_ct_AR"; then
12958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12959 $as_echo "$ac_ct_AR" >&6; }
12960 else
12961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962 $as_echo "no" >&6; }
12963 fi
12964
12965   if test "x$ac_ct_AR" = x; then
12966     AR="false"
12967   else
12968     case $cross_compiling:$ac_tool_warned in
12969 yes:)
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12972 ac_tool_warned=yes ;;
12973 esac
12974     AR=$ac_ct_AR
12975   fi
12976 else
12977   AR="$ac_cv_prog_AR"
12978 fi
12979
12980 test -z "$AR" && AR=ar
12981 test -z "$AR_FLAGS" && AR_FLAGS=cru
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993 if test -n "$ac_tool_prefix"; then
12994   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12995 set dummy ${ac_tool_prefix}strip; ac_word=$2
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997 $as_echo_n "checking for $ac_word... " >&6; }
12998 if test "${ac_cv_prog_STRIP+set}" = set; then :
12999   $as_echo_n "(cached) " >&6
13000 else
13001   if test -n "$STRIP"; then
13002   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13003 else
13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13006 do
13007   IFS=$as_save_IFS
13008   test -z "$as_dir" && as_dir=.
13009     for ac_exec_ext in '' $ac_executable_extensions; do
13010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13011     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013     break 2
13014   fi
13015 done
13016   done
13017 IFS=$as_save_IFS
13018
13019 fi
13020 fi
13021 STRIP=$ac_cv_prog_STRIP
13022 if test -n "$STRIP"; then
13023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13024 $as_echo "$STRIP" >&6; }
13025 else
13026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027 $as_echo "no" >&6; }
13028 fi
13029
13030
13031 fi
13032 if test -z "$ac_cv_prog_STRIP"; then
13033   ac_ct_STRIP=$STRIP
13034   # Extract the first word of "strip", so it can be a program name with args.
13035 set dummy strip; ac_word=$2
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037 $as_echo_n "checking for $ac_word... " >&6; }
13038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13039   $as_echo_n "(cached) " >&6
13040 else
13041   if test -n "$ac_ct_STRIP"; then
13042   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13043 else
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13046 do
13047   IFS=$as_save_IFS
13048   test -z "$as_dir" && as_dir=.
13049     for ac_exec_ext in '' $ac_executable_extensions; do
13050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13051     ac_cv_prog_ac_ct_STRIP="strip"
13052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053     break 2
13054   fi
13055 done
13056   done
13057 IFS=$as_save_IFS
13058
13059 fi
13060 fi
13061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13062 if test -n "$ac_ct_STRIP"; then
13063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13064 $as_echo "$ac_ct_STRIP" >&6; }
13065 else
13066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13068 fi
13069
13070   if test "x$ac_ct_STRIP" = x; then
13071     STRIP=":"
13072   else
13073     case $cross_compiling:$ac_tool_warned in
13074 yes:)
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13077 ac_tool_warned=yes ;;
13078 esac
13079     STRIP=$ac_ct_STRIP
13080   fi
13081 else
13082   STRIP="$ac_cv_prog_STRIP"
13083 fi
13084
13085 test -z "$STRIP" && STRIP=:
13086
13087
13088
13089
13090
13091
13092 if test -n "$ac_tool_prefix"; then
13093   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096 $as_echo_n "checking for $ac_word... " >&6; }
13097 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13098   $as_echo_n "(cached) " >&6
13099 else
13100   if test -n "$RANLIB"; then
13101   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13102 else
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13105 do
13106   IFS=$as_save_IFS
13107   test -z "$as_dir" && as_dir=.
13108     for ac_exec_ext in '' $ac_executable_extensions; do
13109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13110     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112     break 2
13113   fi
13114 done
13115   done
13116 IFS=$as_save_IFS
13117
13118 fi
13119 fi
13120 RANLIB=$ac_cv_prog_RANLIB
13121 if test -n "$RANLIB"; then
13122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13123 $as_echo "$RANLIB" >&6; }
13124 else
13125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 $as_echo "no" >&6; }
13127 fi
13128
13129
13130 fi
13131 if test -z "$ac_cv_prog_RANLIB"; then
13132   ac_ct_RANLIB=$RANLIB
13133   # Extract the first word of "ranlib", so it can be a program name with args.
13134 set dummy ranlib; ac_word=$2
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13136 $as_echo_n "checking for $ac_word... " >&6; }
13137 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13138   $as_echo_n "(cached) " >&6
13139 else
13140   if test -n "$ac_ct_RANLIB"; then
13141   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13142 else
13143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144 for as_dir in $PATH
13145 do
13146   IFS=$as_save_IFS
13147   test -z "$as_dir" && as_dir=.
13148     for ac_exec_ext in '' $ac_executable_extensions; do
13149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13150     ac_cv_prog_ac_ct_RANLIB="ranlib"
13151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13152     break 2
13153   fi
13154 done
13155   done
13156 IFS=$as_save_IFS
13157
13158 fi
13159 fi
13160 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13161 if test -n "$ac_ct_RANLIB"; then
13162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13163 $as_echo "$ac_ct_RANLIB" >&6; }
13164 else
13165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13167 fi
13168
13169   if test "x$ac_ct_RANLIB" = x; then
13170     RANLIB=":"
13171   else
13172     case $cross_compiling:$ac_tool_warned in
13173 yes:)
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13176 ac_tool_warned=yes ;;
13177 esac
13178     RANLIB=$ac_ct_RANLIB
13179   fi
13180 else
13181   RANLIB="$ac_cv_prog_RANLIB"
13182 fi
13183
13184 test -z "$RANLIB" && RANLIB=:
13185
13186
13187
13188
13189
13190
13191 # Determine commands to create old-style static archives.
13192 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13193 old_postinstall_cmds='chmod 644 $oldlib'
13194 old_postuninstall_cmds=
13195
13196 if test -n "$RANLIB"; then
13197   case $host_os in
13198   openbsd*)
13199     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13200     ;;
13201   *)
13202     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13203     ;;
13204   esac
13205   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13206 fi
13207
13208 case $host_os in
13209   darwin*)
13210     lock_old_archive_extraction=yes ;;
13211   *)
13212     lock_old_archive_extraction=no ;;
13213 esac
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
13250
13251
13252
13253 # If no C compiler was specified, use CC.
13254 LTCC=${LTCC-"$CC"}
13255
13256 # If no C compiler flags were specified, use CFLAGS.
13257 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13258
13259 # Allow CC to be a program name with arguments.
13260 compiler=$CC
13261
13262
13263 # Check for command to grab the raw symbol name followed by C symbol from nm.
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13265 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13266 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13267   $as_echo_n "(cached) " >&6
13268 else
13269
13270 # These are sane defaults that work on at least a few old systems.
13271 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13272
13273 # Character class describing NM global symbol codes.
13274 symcode='[BCDEGRST]'
13275
13276 # Regexp to match symbols that can be accessed directly from C.
13277 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13278
13279 # Define system-specific variables.
13280 case $host_os in
13281 aix*)
13282   symcode='[BCDT]'
13283   ;;
13284 cygwin* | mingw* | pw32* | cegcc*)
13285   symcode='[ABCDGISTW]'
13286   ;;
13287 hpux*)
13288   if test "$host_cpu" = ia64; then
13289     symcode='[ABCDEGRST]'
13290   fi
13291   ;;
13292 irix* | nonstopux*)
13293   symcode='[BCDEGRST]'
13294   ;;
13295 osf*)
13296   symcode='[BCDEGQRST]'
13297   ;;
13298 solaris*)
13299   symcode='[BDRT]'
13300   ;;
13301 sco3.2v5*)
13302   symcode='[DT]'
13303   ;;
13304 sysv4.2uw2*)
13305   symcode='[DT]'
13306   ;;
13307 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13308   symcode='[ABDT]'
13309   ;;
13310 sysv4)
13311   symcode='[DFNSTU]'
13312   ;;
13313 esac
13314
13315 # If we're using GNU nm, then use its standard symbol codes.
13316 case `$NM -V 2>&1` in
13317 *GNU* | *'with BFD'*)
13318   symcode='[ABCDGIRSTW]' ;;
13319 esac
13320
13321 # Transform an extracted symbol line into a proper C declaration.
13322 # Some systems (esp. on ia64) link data and code symbols differently,
13323 # so use this general approach.
13324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13325
13326 # Transform an extracted symbol line into symbol name and symbol address
13327 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13328 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'"
13329
13330 # Handle CRLF in mingw tool chain
13331 opt_cr=
13332 case $build_os in
13333 mingw*)
13334   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13335   ;;
13336 esac
13337
13338 # Try without a prefix underscore, then with it.
13339 for ac_symprfx in "" "_"; do
13340
13341   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13342   symxfrm="\\1 $ac_symprfx\\2 \\2"
13343
13344   # Write the raw and C identifiers.
13345   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13346     # Fake it for dumpbin and say T for any non-static function
13347     # and D for any global variable.
13348     # Also find C++ and __fastcall symbols from MSVC++,
13349     # which start with @ or ?.
13350     lt_cv_sys_global_symbol_pipe="$AWK '"\
13351 "     {last_section=section; section=\$ 3};"\
13352 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13353 "     \$ 0!~/External *\|/{next};"\
13354 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13355 "     {if(hide[section]) next};"\
13356 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13357 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13358 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13359 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13360 "     ' prfx=^$ac_symprfx"
13361   else
13362     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13363   fi
13364
13365   # Check to see that the pipe works correctly.
13366   pipe_works=no
13367
13368   rm -f conftest*
13369   cat > conftest.$ac_ext <<_LT_EOF
13370 #ifdef __cplusplus
13371 extern "C" {
13372 #endif
13373 char nm_test_var;
13374 void nm_test_func(void);
13375 void nm_test_func(void){}
13376 #ifdef __cplusplus
13377 }
13378 #endif
13379 int main(){nm_test_var='a';nm_test_func();return(0);}
13380 _LT_EOF
13381
13382   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13383   (eval $ac_compile) 2>&5
13384   ac_status=$?
13385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13386   test $ac_status = 0; }; then
13387     # Now try to grab the symbols.
13388     nlist=conftest.nm
13389     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13390   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13391   ac_status=$?
13392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13393   test $ac_status = 0; } && test -s "$nlist"; then
13394       # Try sorting and uniquifying the output.
13395       if sort "$nlist" | uniq > "$nlist"T; then
13396         mv -f "$nlist"T "$nlist"
13397       else
13398         rm -f "$nlist"T
13399       fi
13400
13401       # Make sure that we snagged all the symbols we need.
13402       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13403         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13404           cat <<_LT_EOF > conftest.$ac_ext
13405 #ifdef __cplusplus
13406 extern "C" {
13407 #endif
13408
13409 _LT_EOF
13410           # Now generate the symbol file.
13411           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13412
13413           cat <<_LT_EOF >> conftest.$ac_ext
13414
13415 /* The mapping between symbol names and symbols.  */
13416 const struct {
13417   const char *name;
13418   void       *address;
13419 }
13420 lt__PROGRAM__LTX_preloaded_symbols[] =
13421 {
13422   { "@PROGRAM@", (void *) 0 },
13423 _LT_EOF
13424           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13425           cat <<\_LT_EOF >> conftest.$ac_ext
13426   {0, (void *) 0}
13427 };
13428
13429 /* This works around a problem in FreeBSD linker */
13430 #ifdef FREEBSD_WORKAROUND
13431 static const void *lt_preloaded_setup() {
13432   return lt__PROGRAM__LTX_preloaded_symbols;
13433 }
13434 #endif
13435
13436 #ifdef __cplusplus
13437 }
13438 #endif
13439 _LT_EOF
13440           # Now try linking the two files.
13441           mv conftest.$ac_objext conftstm.$ac_objext
13442           lt_save_LIBS="$LIBS"
13443           lt_save_CFLAGS="$CFLAGS"
13444           LIBS="conftstm.$ac_objext"
13445           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13446           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13447   (eval $ac_link) 2>&5
13448   ac_status=$?
13449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13450   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13451             pipe_works=yes
13452           fi
13453           LIBS="$lt_save_LIBS"
13454           CFLAGS="$lt_save_CFLAGS"
13455         else
13456           echo "cannot find nm_test_func in $nlist" >&5
13457         fi
13458       else
13459         echo "cannot find nm_test_var in $nlist" >&5
13460       fi
13461     else
13462       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13463     fi
13464   else
13465     echo "$progname: failed program was:" >&5
13466     cat conftest.$ac_ext >&5
13467   fi
13468   rm -rf conftest* conftst*
13469
13470   # Do not use the global_symbol_pipe unless it works.
13471   if test "$pipe_works" = yes; then
13472     break
13473   else
13474     lt_cv_sys_global_symbol_pipe=
13475   fi
13476 done
13477
13478 fi
13479
13480 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13481   lt_cv_sys_global_symbol_to_cdecl=
13482 fi
13483 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13485 $as_echo "failed" >&6; }
13486 else
13487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13488 $as_echo "ok" >&6; }
13489 fi
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512 # Check whether --enable-libtool-lock was given.
13513 if test "${enable_libtool_lock+set}" = set; then :
13514   enableval=$enable_libtool_lock;
13515 fi
13516
13517 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13518
13519 # Some flags need to be propagated to the compiler or linker for good
13520 # libtool support.
13521 case $host in
13522 ia64-*-hpux*)
13523   # Find out which ABI we are using.
13524   echo 'int i;' > conftest.$ac_ext
13525   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13526   (eval $ac_compile) 2>&5
13527   ac_status=$?
13528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13529   test $ac_status = 0; }; then
13530     case `/usr/bin/file conftest.$ac_objext` in
13531       *ELF-32*)
13532         HPUX_IA64_MODE="32"
13533         ;;
13534       *ELF-64*)
13535         HPUX_IA64_MODE="64"
13536         ;;
13537     esac
13538   fi
13539   rm -rf conftest*
13540   ;;
13541 *-*-irix6*)
13542   # Find out which ABI we are using.
13543   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13544   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13545   (eval $ac_compile) 2>&5
13546   ac_status=$?
13547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13548   test $ac_status = 0; }; then
13549     if test "$lt_cv_prog_gnu_ld" = yes; then
13550       case `/usr/bin/file conftest.$ac_objext` in
13551         *32-bit*)
13552           LD="${LD-ld} -melf32bsmip"
13553           ;;
13554         *N32*)
13555           LD="${LD-ld} -melf32bmipn32"
13556           ;;
13557         *64-bit*)
13558           LD="${LD-ld} -melf64bmip"
13559         ;;
13560       esac
13561     else
13562       case `/usr/bin/file conftest.$ac_objext` in
13563         *32-bit*)
13564           LD="${LD-ld} -32"
13565           ;;
13566         *N32*)
13567           LD="${LD-ld} -n32"
13568           ;;
13569         *64-bit*)
13570           LD="${LD-ld} -64"
13571           ;;
13572       esac
13573     fi
13574   fi
13575   rm -rf conftest*
13576   ;;
13577
13578 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13579 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13580   # Find out which ABI we are using.
13581   echo 'int i;' > conftest.$ac_ext
13582   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13583   (eval $ac_compile) 2>&5
13584   ac_status=$?
13585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13586   test $ac_status = 0; }; then
13587     case `/usr/bin/file conftest.o` in
13588       *32-bit*)
13589         case $host in
13590           x86_64-*kfreebsd*-gnu)
13591             LD="${LD-ld} -m elf_i386_fbsd"
13592             ;;
13593           x86_64-*linux*)
13594             LD="${LD-ld} -m elf_i386"
13595             ;;
13596           ppc64-*linux*|powerpc64-*linux*)
13597             LD="${LD-ld} -m elf32ppclinux"
13598             ;;
13599           s390x-*linux*)
13600             LD="${LD-ld} -m elf_s390"
13601             ;;
13602           sparc64-*linux*)
13603             LD="${LD-ld} -m elf32_sparc"
13604             ;;
13605         esac
13606         ;;
13607       *64-bit*)
13608         case $host in
13609           x86_64-*kfreebsd*-gnu)
13610             LD="${LD-ld} -m elf_x86_64_fbsd"
13611             ;;
13612           x86_64-*linux*)
13613             LD="${LD-ld} -m elf_x86_64"
13614             ;;
13615           ppc*-*linux*|powerpc*-*linux*)
13616             LD="${LD-ld} -m elf64ppc"
13617             ;;
13618           s390*-*linux*|s390*-*tpf*)
13619             LD="${LD-ld} -m elf64_s390"
13620             ;;
13621           sparc*-*linux*)
13622             LD="${LD-ld} -m elf64_sparc"
13623             ;;
13624         esac
13625         ;;
13626     esac
13627   fi
13628   rm -rf conftest*
13629   ;;
13630
13631 *-*-sco3.2v5*)
13632   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13633   SAVE_CFLAGS="$CFLAGS"
13634   CFLAGS="$CFLAGS -belf"
13635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13636 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13637 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13638   $as_echo_n "(cached) " >&6
13639 else
13640   ac_ext=c
13641 ac_cpp='$CPP $CPPFLAGS'
13642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13645
13646      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h.  */
13648
13649 int
13650 main ()
13651 {
13652
13653   ;
13654   return 0;
13655 }
13656 _ACEOF
13657 if ac_fn_c_try_link "$LINENO"; then :
13658   lt_cv_cc_needs_belf=yes
13659 else
13660   lt_cv_cc_needs_belf=no
13661 fi
13662 rm -f core conftest.err conftest.$ac_objext \
13663     conftest$ac_exeext conftest.$ac_ext
13664      ac_ext=c
13665 ac_cpp='$CPP $CPPFLAGS'
13666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13669
13670 fi
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13672 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13673   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13674     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13675     CFLAGS="$SAVE_CFLAGS"
13676   fi
13677   ;;
13678 sparc*-*solaris*)
13679   # Find out which ABI we are using.
13680   echo 'int i;' > conftest.$ac_ext
13681   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13682   (eval $ac_compile) 2>&5
13683   ac_status=$?
13684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13685   test $ac_status = 0; }; then
13686     case `/usr/bin/file conftest.o` in
13687     *64-bit*)
13688       case $lt_cv_prog_gnu_ld in
13689       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13690       *)
13691         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13692           LD="${LD-ld} -64"
13693         fi
13694         ;;
13695       esac
13696       ;;
13697     esac
13698   fi
13699   rm -rf conftest*
13700   ;;
13701 esac
13702
13703 need_locks="$enable_libtool_lock"
13704
13705
13706   case $host_os in
13707     rhapsody* | darwin*)
13708     if test -n "$ac_tool_prefix"; then
13709   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13710 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13712 $as_echo_n "checking for $ac_word... " >&6; }
13713 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13714   $as_echo_n "(cached) " >&6
13715 else
13716   if test -n "$DSYMUTIL"; then
13717   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13718 else
13719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720 for as_dir in $PATH
13721 do
13722   IFS=$as_save_IFS
13723   test -z "$as_dir" && as_dir=.
13724     for ac_exec_ext in '' $ac_executable_extensions; do
13725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13726     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13728     break 2
13729   fi
13730 done
13731   done
13732 IFS=$as_save_IFS
13733
13734 fi
13735 fi
13736 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13737 if test -n "$DSYMUTIL"; then
13738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13739 $as_echo "$DSYMUTIL" >&6; }
13740 else
13741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742 $as_echo "no" >&6; }
13743 fi
13744
13745
13746 fi
13747 if test -z "$ac_cv_prog_DSYMUTIL"; then
13748   ac_ct_DSYMUTIL=$DSYMUTIL
13749   # Extract the first word of "dsymutil", so it can be a program name with args.
13750 set dummy dsymutil; ac_word=$2
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752 $as_echo_n "checking for $ac_word... " >&6; }
13753 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13754   $as_echo_n "(cached) " >&6
13755 else
13756   if test -n "$ac_ct_DSYMUTIL"; then
13757   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13758 else
13759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760 for as_dir in $PATH
13761 do
13762   IFS=$as_save_IFS
13763   test -z "$as_dir" && as_dir=.
13764     for ac_exec_ext in '' $ac_executable_extensions; do
13765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13766     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13768     break 2
13769   fi
13770 done
13771   done
13772 IFS=$as_save_IFS
13773
13774 fi
13775 fi
13776 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13777 if test -n "$ac_ct_DSYMUTIL"; then
13778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13779 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13780 else
13781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782 $as_echo "no" >&6; }
13783 fi
13784
13785   if test "x$ac_ct_DSYMUTIL" = x; then
13786     DSYMUTIL=":"
13787   else
13788     case $cross_compiling:$ac_tool_warned in
13789 yes:)
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13792 ac_tool_warned=yes ;;
13793 esac
13794     DSYMUTIL=$ac_ct_DSYMUTIL
13795   fi
13796 else
13797   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13798 fi
13799
13800     if test -n "$ac_tool_prefix"; then
13801   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13802 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13804 $as_echo_n "checking for $ac_word... " >&6; }
13805 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13806   $as_echo_n "(cached) " >&6
13807 else
13808   if test -n "$NMEDIT"; then
13809   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13810 else
13811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13812 for as_dir in $PATH
13813 do
13814   IFS=$as_save_IFS
13815   test -z "$as_dir" && as_dir=.
13816     for ac_exec_ext in '' $ac_executable_extensions; do
13817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13818     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13820     break 2
13821   fi
13822 done
13823   done
13824 IFS=$as_save_IFS
13825
13826 fi
13827 fi
13828 NMEDIT=$ac_cv_prog_NMEDIT
13829 if test -n "$NMEDIT"; then
13830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13831 $as_echo "$NMEDIT" >&6; }
13832 else
13833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13834 $as_echo "no" >&6; }
13835 fi
13836
13837
13838 fi
13839 if test -z "$ac_cv_prog_NMEDIT"; then
13840   ac_ct_NMEDIT=$NMEDIT
13841   # Extract the first word of "nmedit", so it can be a program name with args.
13842 set dummy nmedit; ac_word=$2
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13844 $as_echo_n "checking for $ac_word... " >&6; }
13845 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13846   $as_echo_n "(cached) " >&6
13847 else
13848   if test -n "$ac_ct_NMEDIT"; then
13849   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13850 else
13851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13852 for as_dir in $PATH
13853 do
13854   IFS=$as_save_IFS
13855   test -z "$as_dir" && as_dir=.
13856     for ac_exec_ext in '' $ac_executable_extensions; do
13857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13858     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13860     break 2
13861   fi
13862 done
13863   done
13864 IFS=$as_save_IFS
13865
13866 fi
13867 fi
13868 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13869 if test -n "$ac_ct_NMEDIT"; then
13870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13871 $as_echo "$ac_ct_NMEDIT" >&6; }
13872 else
13873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13874 $as_echo "no" >&6; }
13875 fi
13876
13877   if test "x$ac_ct_NMEDIT" = x; then
13878     NMEDIT=":"
13879   else
13880     case $cross_compiling:$ac_tool_warned in
13881 yes:)
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13884 ac_tool_warned=yes ;;
13885 esac
13886     NMEDIT=$ac_ct_NMEDIT
13887   fi
13888 else
13889   NMEDIT="$ac_cv_prog_NMEDIT"
13890 fi
13891
13892     if test -n "$ac_tool_prefix"; then
13893   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13894 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13896 $as_echo_n "checking for $ac_word... " >&6; }
13897 if test "${ac_cv_prog_LIPO+set}" = set; then :
13898   $as_echo_n "(cached) " >&6
13899 else
13900   if test -n "$LIPO"; then
13901   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13902 else
13903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13904 for as_dir in $PATH
13905 do
13906   IFS=$as_save_IFS
13907   test -z "$as_dir" && as_dir=.
13908     for ac_exec_ext in '' $ac_executable_extensions; do
13909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13910     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13912     break 2
13913   fi
13914 done
13915   done
13916 IFS=$as_save_IFS
13917
13918 fi
13919 fi
13920 LIPO=$ac_cv_prog_LIPO
13921 if test -n "$LIPO"; then
13922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13923 $as_echo "$LIPO" >&6; }
13924 else
13925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926 $as_echo "no" >&6; }
13927 fi
13928
13929
13930 fi
13931 if test -z "$ac_cv_prog_LIPO"; then
13932   ac_ct_LIPO=$LIPO
13933   # Extract the first word of "lipo", so it can be a program name with args.
13934 set dummy lipo; ac_word=$2
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13936 $as_echo_n "checking for $ac_word... " >&6; }
13937 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13938   $as_echo_n "(cached) " >&6
13939 else
13940   if test -n "$ac_ct_LIPO"; then
13941   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13942 else
13943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13944 for as_dir in $PATH
13945 do
13946   IFS=$as_save_IFS
13947   test -z "$as_dir" && as_dir=.
13948     for ac_exec_ext in '' $ac_executable_extensions; do
13949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13950     ac_cv_prog_ac_ct_LIPO="lipo"
13951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13952     break 2
13953   fi
13954 done
13955   done
13956 IFS=$as_save_IFS
13957
13958 fi
13959 fi
13960 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13961 if test -n "$ac_ct_LIPO"; then
13962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13963 $as_echo "$ac_ct_LIPO" >&6; }
13964 else
13965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13967 fi
13968
13969   if test "x$ac_ct_LIPO" = x; then
13970     LIPO=":"
13971   else
13972     case $cross_compiling:$ac_tool_warned in
13973 yes:)
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13976 ac_tool_warned=yes ;;
13977 esac
13978     LIPO=$ac_ct_LIPO
13979   fi
13980 else
13981   LIPO="$ac_cv_prog_LIPO"
13982 fi
13983
13984     if test -n "$ac_tool_prefix"; then
13985   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13986 set dummy ${ac_tool_prefix}otool; ac_word=$2
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13988 $as_echo_n "checking for $ac_word... " >&6; }
13989 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13990   $as_echo_n "(cached) " >&6
13991 else
13992   if test -n "$OTOOL"; then
13993   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13994 else
13995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996 for as_dir in $PATH
13997 do
13998   IFS=$as_save_IFS
13999   test -z "$as_dir" && as_dir=.
14000     for ac_exec_ext in '' $ac_executable_extensions; do
14001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14002     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14004     break 2
14005   fi
14006 done
14007   done
14008 IFS=$as_save_IFS
14009
14010 fi
14011 fi
14012 OTOOL=$ac_cv_prog_OTOOL
14013 if test -n "$OTOOL"; then
14014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14015 $as_echo "$OTOOL" >&6; }
14016 else
14017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018 $as_echo "no" >&6; }
14019 fi
14020
14021
14022 fi
14023 if test -z "$ac_cv_prog_OTOOL"; then
14024   ac_ct_OTOOL=$OTOOL
14025   # Extract the first word of "otool", so it can be a program name with args.
14026 set dummy otool; ac_word=$2
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14028 $as_echo_n "checking for $ac_word... " >&6; }
14029 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14030   $as_echo_n "(cached) " >&6
14031 else
14032   if test -n "$ac_ct_OTOOL"; then
14033   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14034 else
14035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14036 for as_dir in $PATH
14037 do
14038   IFS=$as_save_IFS
14039   test -z "$as_dir" && as_dir=.
14040     for ac_exec_ext in '' $ac_executable_extensions; do
14041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14042     ac_cv_prog_ac_ct_OTOOL="otool"
14043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14044     break 2
14045   fi
14046 done
14047   done
14048 IFS=$as_save_IFS
14049
14050 fi
14051 fi
14052 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14053 if test -n "$ac_ct_OTOOL"; then
14054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14055 $as_echo "$ac_ct_OTOOL" >&6; }
14056 else
14057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14058 $as_echo "no" >&6; }
14059 fi
14060
14061   if test "x$ac_ct_OTOOL" = x; then
14062     OTOOL=":"
14063   else
14064     case $cross_compiling:$ac_tool_warned in
14065 yes:)
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14068 ac_tool_warned=yes ;;
14069 esac
14070     OTOOL=$ac_ct_OTOOL
14071   fi
14072 else
14073   OTOOL="$ac_cv_prog_OTOOL"
14074 fi
14075
14076     if test -n "$ac_tool_prefix"; then
14077   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14078 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14080 $as_echo_n "checking for $ac_word... " >&6; }
14081 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14082   $as_echo_n "(cached) " >&6
14083 else
14084   if test -n "$OTOOL64"; then
14085   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14086 else
14087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $PATH
14089 do
14090   IFS=$as_save_IFS
14091   test -z "$as_dir" && as_dir=.
14092     for ac_exec_ext in '' $ac_executable_extensions; do
14093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14094     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14096     break 2
14097   fi
14098 done
14099   done
14100 IFS=$as_save_IFS
14101
14102 fi
14103 fi
14104 OTOOL64=$ac_cv_prog_OTOOL64
14105 if test -n "$OTOOL64"; then
14106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14107 $as_echo "$OTOOL64" >&6; }
14108 else
14109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110 $as_echo "no" >&6; }
14111 fi
14112
14113
14114 fi
14115 if test -z "$ac_cv_prog_OTOOL64"; then
14116   ac_ct_OTOOL64=$OTOOL64
14117   # Extract the first word of "otool64", so it can be a program name with args.
14118 set dummy otool64; ac_word=$2
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14120 $as_echo_n "checking for $ac_word... " >&6; }
14121 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14122   $as_echo_n "(cached) " >&6
14123 else
14124   if test -n "$ac_ct_OTOOL64"; then
14125   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14126 else
14127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14128 for as_dir in $PATH
14129 do
14130   IFS=$as_save_IFS
14131   test -z "$as_dir" && as_dir=.
14132     for ac_exec_ext in '' $ac_executable_extensions; do
14133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14134     ac_cv_prog_ac_ct_OTOOL64="otool64"
14135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14136     break 2
14137   fi
14138 done
14139   done
14140 IFS=$as_save_IFS
14141
14142 fi
14143 fi
14144 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14145 if test -n "$ac_ct_OTOOL64"; then
14146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14147 $as_echo "$ac_ct_OTOOL64" >&6; }
14148 else
14149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14150 $as_echo "no" >&6; }
14151 fi
14152
14153   if test "x$ac_ct_OTOOL64" = x; then
14154     OTOOL64=":"
14155   else
14156     case $cross_compiling:$ac_tool_warned in
14157 yes:)
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14160 ac_tool_warned=yes ;;
14161 esac
14162     OTOOL64=$ac_ct_OTOOL64
14163   fi
14164 else
14165   OTOOL64="$ac_cv_prog_OTOOL64"
14166 fi
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14195 $as_echo_n "checking for -single_module linker flag... " >&6; }
14196 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14197   $as_echo_n "(cached) " >&6
14198 else
14199   lt_cv_apple_cc_single_mod=no
14200       if test -z "${LT_MULTI_MODULE}"; then
14201         # By default we will add the -single_module flag. You can override
14202         # by either setting the environment variable LT_MULTI_MODULE
14203         # non-empty at configure time, or by adding -multi_module to the
14204         # link flags.
14205         rm -rf libconftest.dylib*
14206         echo "int foo(void){return 1;}" > conftest.c
14207         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14208 -dynamiclib -Wl,-single_module conftest.c" >&5
14209         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14210           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14211         _lt_result=$?
14212         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14213           lt_cv_apple_cc_single_mod=yes
14214         else
14215           cat conftest.err >&5
14216         fi
14217         rm -rf libconftest.dylib*
14218         rm -f conftest.*
14219       fi
14220 fi
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14222 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14224 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14225 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14226   $as_echo_n "(cached) " >&6
14227 else
14228   lt_cv_ld_exported_symbols_list=no
14229       save_LDFLAGS=$LDFLAGS
14230       echo "_main" > conftest.sym
14231       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14232       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h.  */
14234
14235 int
14236 main ()
14237 {
14238
14239   ;
14240   return 0;
14241 }
14242 _ACEOF
14243 if ac_fn_c_try_link "$LINENO"; then :
14244   lt_cv_ld_exported_symbols_list=yes
14245 else
14246   lt_cv_ld_exported_symbols_list=no
14247 fi
14248 rm -f core conftest.err conftest.$ac_objext \
14249     conftest$ac_exeext conftest.$ac_ext
14250         LDFLAGS="$save_LDFLAGS"
14251
14252 fi
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14254 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14256 $as_echo_n "checking for -force_load linker flag... " >&6; }
14257 if test "${lt_cv_ld_force_load+set}" = set; then :
14258   $as_echo_n "(cached) " >&6
14259 else
14260   lt_cv_ld_force_load=no
14261       cat > conftest.c << _LT_EOF
14262 int forced_loaded() { return 2;}
14263 _LT_EOF
14264       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14265       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14266       echo "$AR cru libconftest.a conftest.o" >&5
14267       $AR cru libconftest.a conftest.o 2>&5
14268       cat > conftest.c << _LT_EOF
14269 int main() { return 0;}
14270 _LT_EOF
14271       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14272       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14273       _lt_result=$?
14274       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14275         lt_cv_ld_force_load=yes
14276       else
14277         cat conftest.err >&5
14278       fi
14279         rm -f conftest.err libconftest.a conftest conftest.c
14280         rm -rf conftest.dSYM
14281
14282 fi
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14284 $as_echo "$lt_cv_ld_force_load" >&6; }
14285     case $host_os in
14286     rhapsody* | darwin1.[012])
14287       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14288     darwin1.*)
14289       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14290     darwin*) # darwin 5.x on
14291       # if running on 10.5 or later, the deployment target defaults
14292       # to the OS version, if on x86, and 10.4, the deployment
14293       # target defaults to 10.4. Don't you love it?
14294       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14295         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14296           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14297         10.[012]*)
14298           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14299         10.*)
14300           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14301       esac
14302     ;;
14303   esac
14304     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14305       _lt_dar_single_mod='$single_module'
14306     fi
14307     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14308       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14309     else
14310       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14311     fi
14312     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14313       _lt_dsymutil='~$DSYMUTIL $lib || :'
14314     else
14315       _lt_dsymutil=
14316     fi
14317     ;;
14318   esac
14319
14320 for ac_header in dlfcn.h
14321 do :
14322   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14323 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14324   cat >>confdefs.h <<_ACEOF
14325 #define HAVE_DLFCN_H 1
14326 _ACEOF
14327
14328 fi
14329 done
14330
14331
14332
14333
14334
14335 # Set options
14336
14337
14338
14339         enable_dlopen=no
14340
14341
14342   enable_win32_dll=no
14343
14344
14345             # Check whether --enable-shared was given.
14346 if test "${enable_shared+set}" = set; then :
14347   enableval=$enable_shared; p=${PACKAGE-default}
14348     case $enableval in
14349     yes) enable_shared=yes ;;
14350     no) enable_shared=no ;;
14351     *)
14352       enable_shared=no
14353       # Look at the argument we got.  We use all the common list separators.
14354       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14355       for pkg in $enableval; do
14356         IFS="$lt_save_ifs"
14357         if test "X$pkg" = "X$p"; then
14358           enable_shared=yes
14359         fi
14360       done
14361       IFS="$lt_save_ifs"
14362       ;;
14363     esac
14364 else
14365   enable_shared=yes
14366 fi
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376   # Check whether --enable-static was given.
14377 if test "${enable_static+set}" = set; then :
14378   enableval=$enable_static; p=${PACKAGE-default}
14379     case $enableval in
14380     yes) enable_static=yes ;;
14381     no) enable_static=no ;;
14382     *)
14383      enable_static=no
14384       # Look at the argument we got.  We use all the common list separators.
14385       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14386       for pkg in $enableval; do
14387         IFS="$lt_save_ifs"
14388         if test "X$pkg" = "X$p"; then
14389           enable_static=yes
14390         fi
14391       done
14392       IFS="$lt_save_ifs"
14393       ;;
14394     esac
14395 else
14396   enable_static=yes
14397 fi
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408 # Check whether --with-pic was given.
14409 if test "${with_pic+set}" = set; then :
14410   withval=$with_pic; pic_mode="$withval"
14411 else
14412   pic_mode=default
14413 fi
14414
14415
14416 test -z "$pic_mode" && pic_mode=default
14417
14418
14419
14420
14421
14422
14423
14424   # Check whether --enable-fast-install was given.
14425 if test "${enable_fast_install+set}" = set; then :
14426   enableval=$enable_fast_install; p=${PACKAGE-default}
14427     case $enableval in
14428     yes) enable_fast_install=yes ;;
14429     no) enable_fast_install=no ;;
14430     *)
14431       enable_fast_install=no
14432       # Look at the argument we got.  We use all the common list separators.
14433       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14434       for pkg in $enableval; do
14435         IFS="$lt_save_ifs"
14436         if test "X$pkg" = "X$p"; then
14437           enable_fast_install=yes
14438         fi
14439       done
14440       IFS="$lt_save_ifs"
14441       ;;
14442     esac
14443 else
14444   enable_fast_install=yes
14445 fi
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457 # This can be used to rebuild libtool when needed
14458 LIBTOOL_DEPS="$ltmain"
14459
14460 # Always use our own libtool.
14461 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488 test -z "$LN_S" && LN_S="ln -s"
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503 if test -n "${ZSH_VERSION+set}" ; then
14504    setopt NO_GLOB_SUBST
14505 fi
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14508 $as_echo_n "checking for objdir... " >&6; }
14509 if test "${lt_cv_objdir+set}" = set; then :
14510   $as_echo_n "(cached) " >&6
14511 else
14512   rm -f .libs 2>/dev/null
14513 mkdir .libs 2>/dev/null
14514 if test -d .libs; then
14515   lt_cv_objdir=.libs
14516 else
14517   # MS-DOS does not allow filenames that begin with a dot.
14518   lt_cv_objdir=_libs
14519 fi
14520 rmdir .libs 2>/dev/null
14521 fi
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14523 $as_echo "$lt_cv_objdir" >&6; }
14524 objdir=$lt_cv_objdir
14525
14526
14527
14528
14529
14530 cat >>confdefs.h <<_ACEOF
14531 #define LT_OBJDIR "$lt_cv_objdir/"
14532 _ACEOF
14533
14534
14535
14536
14537 case $host_os in
14538 aix3*)
14539   # AIX sometimes has problems with the GCC collect2 program.  For some
14540   # reason, if we set the COLLECT_NAMES environment variable, the problems
14541   # vanish in a puff of smoke.
14542   if test "X${COLLECT_NAMES+set}" != Xset; then
14543     COLLECT_NAMES=
14544     export COLLECT_NAMES
14545   fi
14546   ;;
14547 esac
14548
14549 # Global variables:
14550 ofile=libtool
14551 can_build_shared=yes
14552
14553 # All known linkers require a `.a' archive for static linking (except MSVC,
14554 # which needs '.lib').
14555 libext=a
14556
14557 with_gnu_ld="$lt_cv_prog_gnu_ld"
14558
14559 old_CC="$CC"
14560 old_CFLAGS="$CFLAGS"
14561
14562 # Set sane defaults for various variables
14563 test -z "$CC" && CC=cc
14564 test -z "$LTCC" && LTCC=$CC
14565 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14566 test -z "$LD" && LD=ld
14567 test -z "$ac_objext" && ac_objext=o
14568
14569 for cc_temp in $compiler""; do
14570   case $cc_temp in
14571     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14572     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14573     \-*) ;;
14574     *) break;;
14575   esac
14576 done
14577 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14578
14579
14580 # Only perform the check for file, if the check method requires it
14581 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14582 case $deplibs_check_method in
14583 file_magic*)
14584   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14586 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14587 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14588   $as_echo_n "(cached) " >&6
14589 else
14590   case $MAGIC_CMD in
14591 [\\/*] |  ?:[\\/]*)
14592   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14593   ;;
14594 *)
14595   lt_save_MAGIC_CMD="$MAGIC_CMD"
14596   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14597   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14598   for ac_dir in $ac_dummy; do
14599     IFS="$lt_save_ifs"
14600     test -z "$ac_dir" && ac_dir=.
14601     if test -f $ac_dir/${ac_tool_prefix}file; then
14602       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14603       if test -n "$file_magic_test_file"; then
14604         case $deplibs_check_method in
14605         "file_magic "*)
14606           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14607           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14608           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14609             $EGREP "$file_magic_regex" > /dev/null; then
14610             :
14611           else
14612             cat <<_LT_EOF 1>&2
14613
14614 *** Warning: the command libtool uses to detect shared libraries,
14615 *** $file_magic_cmd, produces output that libtool cannot recognize.
14616 *** The result is that libtool may fail to recognize shared libraries
14617 *** as such.  This will affect the creation of libtool libraries that
14618 *** depend on shared libraries, but programs linked with such libtool
14619 *** libraries will work regardless of this problem.  Nevertheless, you
14620 *** may want to report the problem to your system manager and/or to
14621 *** bug-libtool@gnu.org
14622
14623 _LT_EOF
14624           fi ;;
14625         esac
14626       fi
14627       break
14628     fi
14629   done
14630   IFS="$lt_save_ifs"
14631   MAGIC_CMD="$lt_save_MAGIC_CMD"
14632   ;;
14633 esac
14634 fi
14635
14636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14637 if test -n "$MAGIC_CMD"; then
14638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14639 $as_echo "$MAGIC_CMD" >&6; }
14640 else
14641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14642 $as_echo "no" >&6; }
14643 fi
14644
14645
14646
14647
14648
14649 if test -z "$lt_cv_path_MAGIC_CMD"; then
14650   if test -n "$ac_tool_prefix"; then
14651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14652 $as_echo_n "checking for file... " >&6; }
14653 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14654   $as_echo_n "(cached) " >&6
14655 else
14656   case $MAGIC_CMD in
14657 [\\/*] |  ?:[\\/]*)
14658   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14659   ;;
14660 *)
14661   lt_save_MAGIC_CMD="$MAGIC_CMD"
14662   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14663   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14664   for ac_dir in $ac_dummy; do
14665     IFS="$lt_save_ifs"
14666     test -z "$ac_dir" && ac_dir=.
14667     if test -f $ac_dir/file; then
14668       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14669       if test -n "$file_magic_test_file"; then
14670         case $deplibs_check_method in
14671         "file_magic "*)
14672           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14673           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14674           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14675             $EGREP "$file_magic_regex" > /dev/null; then
14676             :
14677           else
14678             cat <<_LT_EOF 1>&2
14679
14680 *** Warning: the command libtool uses to detect shared libraries,
14681 *** $file_magic_cmd, produces output that libtool cannot recognize.
14682 *** The result is that libtool may fail to recognize shared libraries
14683 *** as such.  This will affect the creation of libtool libraries that
14684 *** depend on shared libraries, but programs linked with such libtool
14685 *** libraries will work regardless of this problem.  Nevertheless, you
14686 *** may want to report the problem to your system manager and/or to
14687 *** bug-libtool@gnu.org
14688
14689 _LT_EOF
14690           fi ;;
14691         esac
14692       fi
14693       break
14694     fi
14695   done
14696   IFS="$lt_save_ifs"
14697   MAGIC_CMD="$lt_save_MAGIC_CMD"
14698   ;;
14699 esac
14700 fi
14701
14702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14703 if test -n "$MAGIC_CMD"; then
14704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14705 $as_echo "$MAGIC_CMD" >&6; }
14706 else
14707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14708 $as_echo "no" >&6; }
14709 fi
14710
14711
14712   else
14713     MAGIC_CMD=:
14714   fi
14715 fi
14716
14717   fi
14718   ;;
14719 esac
14720
14721 # Use C for the default configuration in the libtool script
14722
14723 lt_save_CC="$CC"
14724 ac_ext=c
14725 ac_cpp='$CPP $CPPFLAGS'
14726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14729
14730
14731 # Source file extension for C test sources.
14732 ac_ext=c
14733
14734 # Object file extension for compiled C test sources.
14735 objext=o
14736 objext=$objext
14737
14738 # Code to be used in simple compile tests
14739 lt_simple_compile_test_code="int some_variable = 0;"
14740
14741 # Code to be used in simple link tests
14742 lt_simple_link_test_code='int main(){return(0);}'
14743
14744
14745
14746
14747
14748
14749
14750 # If no C compiler was specified, use CC.
14751 LTCC=${LTCC-"$CC"}
14752
14753 # If no C compiler flags were specified, use CFLAGS.
14754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14755
14756 # Allow CC to be a program name with arguments.
14757 compiler=$CC
14758
14759 # Save the default compiler, since it gets overwritten when the other
14760 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14761 compiler_DEFAULT=$CC
14762
14763 # save warnings/boilerplate of simple test code
14764 ac_outfile=conftest.$ac_objext
14765 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14766 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14767 _lt_compiler_boilerplate=`cat conftest.err`
14768 $RM conftest*
14769
14770 ac_outfile=conftest.$ac_objext
14771 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14772 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14773 _lt_linker_boilerplate=`cat conftest.err`
14774 $RM -r conftest*
14775
14776
14777 ## CAVEAT EMPTOR:
14778 ## There is no encapsulation within the following macros, do not change
14779 ## the running order or otherwise move them around unless you know exactly
14780 ## what you are doing...
14781 if test -n "$compiler"; then
14782
14783 lt_prog_compiler_no_builtin_flag=
14784
14785 if test "$GCC" = yes; then
14786   case $cc_basename in
14787   nvcc*)
14788     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14789   *)
14790     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14791   esac
14792
14793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14794 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14795 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14796   $as_echo_n "(cached) " >&6
14797 else
14798   lt_cv_prog_compiler_rtti_exceptions=no
14799    ac_outfile=conftest.$ac_objext
14800    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14801    lt_compiler_flag="-fno-rtti -fno-exceptions"
14802    # Insert the option either (1) after the last *FLAGS variable, or
14803    # (2) before a word containing "conftest.", or (3) at the end.
14804    # Note that $ac_compile itself does not contain backslashes and begins
14805    # with a dollar sign (not a hyphen), so the echo should work correctly.
14806    # The option is referenced via a variable to avoid confusing sed.
14807    lt_compile=`echo "$ac_compile" | $SED \
14808    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14809    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14810    -e 's:$: $lt_compiler_flag:'`
14811    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14812    (eval "$lt_compile" 2>conftest.err)
14813    ac_status=$?
14814    cat conftest.err >&5
14815    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816    if (exit $ac_status) && test -s "$ac_outfile"; then
14817      # The compiler can only warn and ignore the option if not recognized
14818      # So say no if there are warnings other than the usual output.
14819      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14820      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14821      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14822        lt_cv_prog_compiler_rtti_exceptions=yes
14823      fi
14824    fi
14825    $RM conftest*
14826
14827 fi
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14829 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14830
14831 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14832     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14833 else
14834     :
14835 fi
14836
14837 fi
14838
14839
14840
14841
14842
14843
14844   lt_prog_compiler_wl=
14845 lt_prog_compiler_pic=
14846 lt_prog_compiler_static=
14847
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14849 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14850
14851   if test "$GCC" = yes; then
14852     lt_prog_compiler_wl='-Wl,'
14853     lt_prog_compiler_static='-static'
14854
14855     case $host_os in
14856       aix*)
14857       # All AIX code is PIC.
14858       if test "$host_cpu" = ia64; then
14859         # AIX 5 now supports IA64 processor
14860         lt_prog_compiler_static='-Bstatic'
14861       fi
14862       ;;
14863
14864     amigaos*)
14865       case $host_cpu in
14866       powerpc)
14867             # see comment about AmigaOS4 .so support
14868             lt_prog_compiler_pic='-fPIC'
14869         ;;
14870       m68k)
14871             # FIXME: we need at least 68020 code to build shared libraries, but
14872             # adding the `-m68020' flag to GCC prevents building anything better,
14873             # like `-m68040'.
14874             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14875         ;;
14876       esac
14877       ;;
14878
14879     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14880       # PIC is the default for these OSes.
14881       ;;
14882
14883     mingw* | cygwin* | pw32* | os2* | cegcc*)
14884       # This hack is so that the source file can tell whether it is being
14885       # built for inclusion in a dll (and should export symbols for example).
14886       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14887       # (--disable-auto-import) libraries
14888       lt_prog_compiler_pic='-DDLL_EXPORT'
14889       ;;
14890
14891     darwin* | rhapsody*)
14892       # PIC is the default on this platform
14893       # Common symbols not allowed in MH_DYLIB files
14894       lt_prog_compiler_pic='-fno-common'
14895       ;;
14896
14897     haiku*)
14898       # PIC is the default for Haiku.
14899       # The "-static" flag exists, but is broken.
14900       lt_prog_compiler_static=
14901       ;;
14902
14903     hpux*)
14904       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14905       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14906       # sets the default TLS model and affects inlining.
14907       case $host_cpu in
14908       hppa*64*)
14909         # +Z the default
14910         ;;
14911       *)
14912         lt_prog_compiler_pic='-fPIC'
14913         ;;
14914       esac
14915       ;;
14916
14917     interix[3-9]*)
14918       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14919       # Instead, we relocate shared libraries at runtime.
14920       ;;
14921
14922     msdosdjgpp*)
14923       # Just because we use GCC doesn't mean we suddenly get shared libraries
14924       # on systems that don't support them.
14925       lt_prog_compiler_can_build_shared=no
14926       enable_shared=no
14927       ;;
14928
14929     *nto* | *qnx*)
14930       # QNX uses GNU C++, but need to define -shared option too, otherwise
14931       # it will coredump.
14932       lt_prog_compiler_pic='-fPIC -shared'
14933       ;;
14934
14935     sysv4*MP*)
14936       if test -d /usr/nec; then
14937         lt_prog_compiler_pic=-Kconform_pic
14938       fi
14939       ;;
14940
14941     *)
14942       lt_prog_compiler_pic='-fPIC'
14943       ;;
14944     esac
14945
14946     case $cc_basename in
14947     nvcc*) # Cuda Compiler Driver 2.2
14948       lt_prog_compiler_wl='-Xlinker '
14949       lt_prog_compiler_pic='-Xcompiler -fPIC'
14950       ;;
14951     esac
14952   else
14953     # PORTME Check for flag to pass linker flags through the system compiler.
14954     case $host_os in
14955     aix*)
14956       lt_prog_compiler_wl='-Wl,'
14957       if test "$host_cpu" = ia64; then
14958         # AIX 5 now supports IA64 processor
14959         lt_prog_compiler_static='-Bstatic'
14960       else
14961         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14962       fi
14963       ;;
14964
14965     mingw* | cygwin* | pw32* | os2* | cegcc*)
14966       # This hack is so that the source file can tell whether it is being
14967       # built for inclusion in a dll (and should export symbols for example).
14968       lt_prog_compiler_pic='-DDLL_EXPORT'
14969       ;;
14970
14971     hpux9* | hpux10* | hpux11*)
14972       lt_prog_compiler_wl='-Wl,'
14973       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14974       # not for PA HP-UX.
14975       case $host_cpu in
14976       hppa*64*|ia64*)
14977         # +Z the default
14978         ;;
14979       *)
14980         lt_prog_compiler_pic='+Z'
14981         ;;
14982       esac
14983       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14984       lt_prog_compiler_static='${wl}-a ${wl}archive'
14985       ;;
14986
14987     irix5* | irix6* | nonstopux*)
14988       lt_prog_compiler_wl='-Wl,'
14989       # PIC (with -KPIC) is the default.
14990       lt_prog_compiler_static='-non_shared'
14991       ;;
14992
14993     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14994       case $cc_basename in
14995       # old Intel for x86_64 which still supported -KPIC.
14996       ecc*)
14997         lt_prog_compiler_wl='-Wl,'
14998         lt_prog_compiler_pic='-KPIC'
14999         lt_prog_compiler_static='-static'
15000         ;;
15001       # icc used to be incompatible with GCC.
15002       # ICC 10 doesn't accept -KPIC any more.
15003       icc* | ifort*)
15004         lt_prog_compiler_wl='-Wl,'
15005         lt_prog_compiler_pic='-fPIC'
15006         lt_prog_compiler_static='-static'
15007         ;;
15008       # Lahey Fortran 8.1.
15009       lf95*)
15010         lt_prog_compiler_wl='-Wl,'
15011         lt_prog_compiler_pic='--shared'
15012         lt_prog_compiler_static='--static'
15013         ;;
15014       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15015         # Portland Group compilers (*not* the Pentium gcc compiler,
15016         # which looks to be a dead project)
15017         lt_prog_compiler_wl='-Wl,'
15018         lt_prog_compiler_pic='-fpic'
15019         lt_prog_compiler_static='-Bstatic'
15020         ;;
15021       ccc*)
15022         lt_prog_compiler_wl='-Wl,'
15023         # All Alpha code is PIC.
15024         lt_prog_compiler_static='-non_shared'
15025         ;;
15026       xl* | bgxl* | bgf* | mpixl*)
15027         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15028         lt_prog_compiler_wl='-Wl,'
15029         lt_prog_compiler_pic='-qpic'
15030         lt_prog_compiler_static='-qstaticlink'
15031         ;;
15032       *)
15033         case `$CC -V 2>&1 | sed 5q` in
15034         *Sun\ F* | *Sun*Fortran*)
15035           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15036           lt_prog_compiler_pic='-KPIC'
15037           lt_prog_compiler_static='-Bstatic'
15038           lt_prog_compiler_wl=''
15039           ;;
15040         *Sun\ C*)
15041           # Sun C 5.9
15042           lt_prog_compiler_pic='-KPIC'
15043           lt_prog_compiler_static='-Bstatic'
15044           lt_prog_compiler_wl='-Wl,'
15045           ;;
15046         esac
15047         ;;
15048       esac
15049       ;;
15050
15051     newsos6)
15052       lt_prog_compiler_pic='-KPIC'
15053       lt_prog_compiler_static='-Bstatic'
15054       ;;
15055
15056     *nto* | *qnx*)
15057       # QNX uses GNU C++, but need to define -shared option too, otherwise
15058       # it will coredump.
15059       lt_prog_compiler_pic='-fPIC -shared'
15060       ;;
15061
15062     osf3* | osf4* | osf5*)
15063       lt_prog_compiler_wl='-Wl,'
15064       # All OSF/1 code is PIC.
15065       lt_prog_compiler_static='-non_shared'
15066       ;;
15067
15068     rdos*)
15069       lt_prog_compiler_static='-non_shared'
15070       ;;
15071
15072     solaris*)
15073       lt_prog_compiler_pic='-KPIC'
15074       lt_prog_compiler_static='-Bstatic'
15075       case $cc_basename in
15076       f77* | f90* | f95*)
15077         lt_prog_compiler_wl='-Qoption ld ';;
15078       *)
15079         lt_prog_compiler_wl='-Wl,';;
15080       esac
15081       ;;
15082
15083     sunos4*)
15084       lt_prog_compiler_wl='-Qoption ld '
15085       lt_prog_compiler_pic='-PIC'
15086       lt_prog_compiler_static='-Bstatic'
15087       ;;
15088
15089     sysv4 | sysv4.2uw2* | sysv4.3*)
15090       lt_prog_compiler_wl='-Wl,'
15091       lt_prog_compiler_pic='-KPIC'
15092       lt_prog_compiler_static='-Bstatic'
15093       ;;
15094
15095     sysv4*MP*)
15096       if test -d /usr/nec ;then
15097         lt_prog_compiler_pic='-Kconform_pic'
15098         lt_prog_compiler_static='-Bstatic'
15099       fi
15100       ;;
15101
15102     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15103       lt_prog_compiler_wl='-Wl,'
15104       lt_prog_compiler_pic='-KPIC'
15105       lt_prog_compiler_static='-Bstatic'
15106       ;;
15107
15108     unicos*)
15109       lt_prog_compiler_wl='-Wl,'
15110       lt_prog_compiler_can_build_shared=no
15111       ;;
15112
15113     uts4*)
15114       lt_prog_compiler_pic='-pic'
15115       lt_prog_compiler_static='-Bstatic'
15116       ;;
15117
15118     *)
15119       lt_prog_compiler_can_build_shared=no
15120       ;;
15121     esac
15122   fi
15123
15124 case $host_os in
15125   # For platforms which do not support PIC, -DPIC is meaningless:
15126   *djgpp*)
15127     lt_prog_compiler_pic=
15128     ;;
15129   *)
15130     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15131     ;;
15132 esac
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15134 $as_echo "$lt_prog_compiler_pic" >&6; }
15135
15136
15137
15138
15139
15140
15141 #
15142 # Check to make sure the PIC flag actually works.
15143 #
15144 if test -n "$lt_prog_compiler_pic"; then
15145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15146 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15147 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15148   $as_echo_n "(cached) " >&6
15149 else
15150   lt_cv_prog_compiler_pic_works=no
15151    ac_outfile=conftest.$ac_objext
15152    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15153    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15154    # Insert the option either (1) after the last *FLAGS variable, or
15155    # (2) before a word containing "conftest.", or (3) at the end.
15156    # Note that $ac_compile itself does not contain backslashes and begins
15157    # with a dollar sign (not a hyphen), so the echo should work correctly.
15158    # The option is referenced via a variable to avoid confusing sed.
15159    lt_compile=`echo "$ac_compile" | $SED \
15160    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15161    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15162    -e 's:$: $lt_compiler_flag:'`
15163    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15164    (eval "$lt_compile" 2>conftest.err)
15165    ac_status=$?
15166    cat conftest.err >&5
15167    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168    if (exit $ac_status) && test -s "$ac_outfile"; then
15169      # The compiler can only warn and ignore the option if not recognized
15170      # So say no if there are warnings other than the usual output.
15171      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15172      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15173      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15174        lt_cv_prog_compiler_pic_works=yes
15175      fi
15176    fi
15177    $RM conftest*
15178
15179 fi
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15181 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15182
15183 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15184     case $lt_prog_compiler_pic in
15185      "" | " "*) ;;
15186      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15187      esac
15188 else
15189     lt_prog_compiler_pic=
15190      lt_prog_compiler_can_build_shared=no
15191 fi
15192
15193 fi
15194
15195
15196
15197
15198
15199
15200 #
15201 # Check to make sure the static flag actually works.
15202 #
15203 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15205 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15206 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15207   $as_echo_n "(cached) " >&6
15208 else
15209   lt_cv_prog_compiler_static_works=no
15210    save_LDFLAGS="$LDFLAGS"
15211    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15212    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15213    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15214      # The linker can only warn and ignore the option if not recognized
15215      # So say no if there are warnings
15216      if test -s conftest.err; then
15217        # Append any errors to the config.log.
15218        cat conftest.err 1>&5
15219        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15220        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15221        if diff conftest.exp conftest.er2 >/dev/null; then
15222          lt_cv_prog_compiler_static_works=yes
15223        fi
15224      else
15225        lt_cv_prog_compiler_static_works=yes
15226      fi
15227    fi
15228    $RM -r conftest*
15229    LDFLAGS="$save_LDFLAGS"
15230
15231 fi
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15233 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15234
15235 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15236     :
15237 else
15238     lt_prog_compiler_static=
15239 fi
15240
15241
15242
15243
15244
15245
15246
15247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15248 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15249 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15250   $as_echo_n "(cached) " >&6
15251 else
15252   lt_cv_prog_compiler_c_o=no
15253    $RM -r conftest 2>/dev/null
15254    mkdir conftest
15255    cd conftest
15256    mkdir out
15257    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15258
15259    lt_compiler_flag="-o out/conftest2.$ac_objext"
15260    # Insert the option either (1) after the last *FLAGS variable, or
15261    # (2) before a word containing "conftest.", or (3) at the end.
15262    # Note that $ac_compile itself does not contain backslashes and begins
15263    # with a dollar sign (not a hyphen), so the echo should work correctly.
15264    lt_compile=`echo "$ac_compile" | $SED \
15265    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15266    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15267    -e 's:$: $lt_compiler_flag:'`
15268    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15269    (eval "$lt_compile" 2>out/conftest.err)
15270    ac_status=$?
15271    cat out/conftest.err >&5
15272    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15274    then
15275      # The compiler can only warn and ignore the option if not recognized
15276      # So say no if there are warnings
15277      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15278      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15279      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15280        lt_cv_prog_compiler_c_o=yes
15281      fi
15282    fi
15283    chmod u+w . 2>&5
15284    $RM conftest*
15285    # SGI C++ compiler will create directory out/ii_files/ for
15286    # template instantiation
15287    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15288    $RM out/* && rmdir out
15289    cd ..
15290    $RM -r conftest
15291    $RM conftest*
15292
15293 fi
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15295 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15296
15297
15298
15299
15300
15301
15302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15303 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15304 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15305   $as_echo_n "(cached) " >&6
15306 else
15307   lt_cv_prog_compiler_c_o=no
15308    $RM -r conftest 2>/dev/null
15309    mkdir conftest
15310    cd conftest
15311    mkdir out
15312    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15313
15314    lt_compiler_flag="-o out/conftest2.$ac_objext"
15315    # Insert the option either (1) after the last *FLAGS variable, or
15316    # (2) before a word containing "conftest.", or (3) at the end.
15317    # Note that $ac_compile itself does not contain backslashes and begins
15318    # with a dollar sign (not a hyphen), so the echo should work correctly.
15319    lt_compile=`echo "$ac_compile" | $SED \
15320    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15321    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15322    -e 's:$: $lt_compiler_flag:'`
15323    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15324    (eval "$lt_compile" 2>out/conftest.err)
15325    ac_status=$?
15326    cat out/conftest.err >&5
15327    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15329    then
15330      # The compiler can only warn and ignore the option if not recognized
15331      # So say no if there are warnings
15332      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15333      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15334      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15335        lt_cv_prog_compiler_c_o=yes
15336      fi
15337    fi
15338    chmod u+w . 2>&5
15339    $RM conftest*
15340    # SGI C++ compiler will create directory out/ii_files/ for
15341    # template instantiation
15342    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15343    $RM out/* && rmdir out
15344    cd ..
15345    $RM -r conftest
15346    $RM conftest*
15347
15348 fi
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15350 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15351
15352
15353
15354
15355 hard_links="nottested"
15356 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15357   # do not overwrite the value of need_locks provided by the user
15358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15359 $as_echo_n "checking if we can lock with hard links... " >&6; }
15360   hard_links=yes
15361   $RM conftest*
15362   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15363   touch conftest.a
15364   ln conftest.a conftest.b 2>&5 || hard_links=no
15365   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15367 $as_echo "$hard_links" >&6; }
15368   if test "$hard_links" = no; then
15369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15370 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15371     need_locks=warn
15372   fi
15373 else
15374   need_locks=no
15375 fi
15376
15377
15378
15379
15380
15381
15382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15383 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15384
15385   runpath_var=
15386   allow_undefined_flag=
15387   always_export_symbols=no
15388   archive_cmds=
15389   archive_expsym_cmds=
15390   compiler_needs_object=no
15391   enable_shared_with_static_runtimes=no
15392   export_dynamic_flag_spec=
15393   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15394   hardcode_automatic=no
15395   hardcode_direct=no
15396   hardcode_direct_absolute=no
15397   hardcode_libdir_flag_spec=
15398   hardcode_libdir_flag_spec_ld=
15399   hardcode_libdir_separator=
15400   hardcode_minus_L=no
15401   hardcode_shlibpath_var=unsupported
15402   inherit_rpath=no
15403   link_all_deplibs=unknown
15404   module_cmds=
15405   module_expsym_cmds=
15406   old_archive_from_new_cmds=
15407   old_archive_from_expsyms_cmds=
15408   thread_safe_flag_spec=
15409   whole_archive_flag_spec=
15410   # include_expsyms should be a list of space-separated symbols to be *always*
15411   # included in the symbol list
15412   include_expsyms=
15413   # exclude_expsyms can be an extended regexp of symbols to exclude
15414   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15415   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15416   # as well as any symbol that contains `d'.
15417   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15418   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15419   # platforms (ab)use it in PIC code, but their linkers get confused if
15420   # the symbol is explicitly referenced.  Since portable code cannot
15421   # rely on this symbol name, it's probably fine to never include it in
15422   # preloaded symbol tables.
15423   # Exclude shared library initialization/finalization symbols.
15424   extract_expsyms_cmds=
15425
15426   case $host_os in
15427   cygwin* | mingw* | pw32* | cegcc*)
15428     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15429     # When not using gcc, we currently assume that we are using
15430     # Microsoft Visual C++.
15431     if test "$GCC" != yes; then
15432       with_gnu_ld=no
15433     fi
15434     ;;
15435   interix*)
15436     # we just hope/assume this is gcc and not c89 (= MSVC++)
15437     with_gnu_ld=yes
15438     ;;
15439   openbsd*)
15440     with_gnu_ld=no
15441     ;;
15442   esac
15443
15444   ld_shlibs=yes
15445
15446   # On some targets, GNU ld is compatible enough with the native linker
15447   # that we're better off using the native interface for both.
15448   lt_use_gnu_ld_interface=no
15449   if test "$with_gnu_ld" = yes; then
15450     case $host_os in
15451       aix*)
15452         # The AIX port of GNU ld has always aspired to compatibility
15453         # with the native linker.  However, as the warning in the GNU ld
15454         # block says, versions before 2.19.5* couldn't really create working
15455         # shared libraries, regardless of the interface used.
15456         case `$LD -v 2>&1` in
15457           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15458           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15459           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15460           *)
15461             lt_use_gnu_ld_interface=yes
15462             ;;
15463         esac
15464         ;;
15465       *)
15466         lt_use_gnu_ld_interface=yes
15467         ;;
15468     esac
15469   fi
15470
15471   if test "$lt_use_gnu_ld_interface" = yes; then
15472     # If archive_cmds runs LD, not CC, wlarc should be empty
15473     wlarc='${wl}'
15474
15475     # Set some defaults for GNU ld with shared library support. These
15476     # are reset later if shared libraries are not supported. Putting them
15477     # here allows them to be overridden if necessary.
15478     runpath_var=LD_RUN_PATH
15479     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15480     export_dynamic_flag_spec='${wl}--export-dynamic'
15481     # ancient GNU ld didn't support --whole-archive et. al.
15482     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15483       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15484     else
15485       whole_archive_flag_spec=
15486     fi
15487     supports_anon_versioning=no
15488     case `$LD -v 2>&1` in
15489       *GNU\ gold*) supports_anon_versioning=yes ;;
15490       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15491       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15492       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15493       *\ 2.11.*) ;; # other 2.11 versions
15494       *) supports_anon_versioning=yes ;;
15495     esac
15496
15497     # See if GNU ld supports shared libraries.
15498     case $host_os in
15499     aix[3-9]*)
15500       # On AIX/PPC, the GNU linker is very broken
15501       if test "$host_cpu" != ia64; then
15502         ld_shlibs=no
15503         cat <<_LT_EOF 1>&2
15504
15505 *** Warning: the GNU linker, at least up to release 2.19, is reported
15506 *** to be unable to reliably create shared libraries on AIX.
15507 *** Therefore, libtool is disabling shared libraries support.  If you
15508 *** really care for shared libraries, you may want to install binutils
15509 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15510 *** You will then need to restart the configuration process.
15511
15512 _LT_EOF
15513       fi
15514       ;;
15515
15516     amigaos*)
15517       case $host_cpu in
15518       powerpc)
15519             # see comment about AmigaOS4 .so support
15520             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15521             archive_expsym_cmds=''
15522         ;;
15523       m68k)
15524             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)'
15525             hardcode_libdir_flag_spec='-L$libdir'
15526             hardcode_minus_L=yes
15527         ;;
15528       esac
15529       ;;
15530
15531     beos*)
15532       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15533         allow_undefined_flag=unsupported
15534         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15535         # support --undefined.  This deserves some investigation.  FIXME
15536         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15537       else
15538         ld_shlibs=no
15539       fi
15540       ;;
15541
15542     cygwin* | mingw* | pw32* | cegcc*)
15543       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15544       # as there is no search path for DLLs.
15545       hardcode_libdir_flag_spec='-L$libdir'
15546       export_dynamic_flag_spec='${wl}--export-all-symbols'
15547       allow_undefined_flag=unsupported
15548       always_export_symbols=no
15549       enable_shared_with_static_runtimes=yes
15550       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15551
15552       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15553         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15554         # If the export-symbols file already is a .def file (1st line
15555         # is EXPORTS), use it as is; otherwise, prepend...
15556         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15557           cp $export_symbols $output_objdir/$soname.def;
15558         else
15559           echo EXPORTS > $output_objdir/$soname.def;
15560           cat $export_symbols >> $output_objdir/$soname.def;
15561         fi~
15562         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15563       else
15564         ld_shlibs=no
15565       fi
15566       ;;
15567
15568     haiku*)
15569       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15570       link_all_deplibs=yes
15571       ;;
15572
15573     interix[3-9]*)
15574       hardcode_direct=no
15575       hardcode_shlibpath_var=no
15576       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15577       export_dynamic_flag_spec='${wl}-E'
15578       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15579       # Instead, shared libraries are loaded at an image base (0x10000000 by
15580       # default) and relocated if they conflict, which is a slow very memory
15581       # consuming and fragmenting process.  To avoid this, we pick a random,
15582       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15583       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15584       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15585       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'
15586       ;;
15587
15588     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15589       tmp_diet=no
15590       if test "$host_os" = linux-dietlibc; then
15591         case $cc_basename in
15592           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15593         esac
15594       fi
15595       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15596          && test "$tmp_diet" = no
15597       then
15598         tmp_addflag=
15599         tmp_sharedflag='-shared'
15600         case $cc_basename,$host_cpu in
15601         pgcc*)                          # Portland Group C compiler
15602           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'
15603           tmp_addflag=' $pic_flag'
15604           ;;
15605         pgf77* | pgf90* | pgf95* | pgfortran*)
15606                                         # Portland Group f77 and f90 compilers
15607           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'
15608           tmp_addflag=' $pic_flag -Mnomain' ;;
15609         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15610           tmp_addflag=' -i_dynamic' ;;
15611         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15612           tmp_addflag=' -i_dynamic -nofor_main' ;;
15613         ifc* | ifort*)                  # Intel Fortran compiler
15614           tmp_addflag=' -nofor_main' ;;
15615         lf95*)                          # Lahey Fortran 8.1
15616           whole_archive_flag_spec=
15617           tmp_sharedflag='--shared' ;;
15618         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15619           tmp_sharedflag='-qmkshrobj'
15620           tmp_addflag= ;;
15621         nvcc*)  # Cuda Compiler Driver 2.2
15622           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'
15623           compiler_needs_object=yes
15624           ;;
15625         esac
15626         case `$CC -V 2>&1 | sed 5q` in
15627         *Sun\ C*)                       # Sun C 5.9
15628           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'
15629           compiler_needs_object=yes
15630           tmp_sharedflag='-G' ;;
15631         *Sun\ F*)                       # Sun Fortran 8.3
15632           tmp_sharedflag='-G' ;;
15633         esac
15634         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15635
15636         if test "x$supports_anon_versioning" = xyes; then
15637           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15638             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15639             echo "local: *; };" >> $output_objdir/$libname.ver~
15640             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15641         fi
15642
15643         case $cc_basename in
15644         xlf* | bgf* | bgxlf* | mpixlf*)
15645           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15646           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15647           hardcode_libdir_flag_spec=
15648           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15649           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15650           if test "x$supports_anon_versioning" = xyes; then
15651             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15652               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15653               echo "local: *; };" >> $output_objdir/$libname.ver~
15654               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15655           fi
15656           ;;
15657         esac
15658       else
15659         ld_shlibs=no
15660       fi
15661       ;;
15662
15663     netbsd*)
15664       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15665         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15666         wlarc=
15667       else
15668         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15669         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15670       fi
15671       ;;
15672
15673     solaris*)
15674       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15675         ld_shlibs=no
15676         cat <<_LT_EOF 1>&2
15677
15678 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15679 *** create shared libraries on Solaris systems.  Therefore, libtool
15680 *** is disabling shared libraries support.  We urge you to upgrade GNU
15681 *** binutils to release 2.9.1 or newer.  Another option is to modify
15682 *** your PATH or compiler configuration so that the native linker is
15683 *** used, and then restart.
15684
15685 _LT_EOF
15686       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15687         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15688         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15689       else
15690         ld_shlibs=no
15691       fi
15692       ;;
15693
15694     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15695       case `$LD -v 2>&1` in
15696         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15697         ld_shlibs=no
15698         cat <<_LT_EOF 1>&2
15699
15700 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15701 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15702 *** is disabling shared libraries support.  We urge you to upgrade GNU
15703 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15704 *** your PATH or compiler configuration so that the native linker is
15705 *** used, and then restart.
15706
15707 _LT_EOF
15708         ;;
15709         *)
15710           # For security reasons, it is highly recommended that you always
15711           # use absolute paths for naming shared libraries, and exclude the
15712           # DT_RUNPATH tag from executables and libraries.  But doing so
15713           # requires that you compile everything twice, which is a pain.
15714           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15715             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15716             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15717             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15718           else
15719             ld_shlibs=no
15720           fi
15721         ;;
15722       esac
15723       ;;
15724
15725     sunos4*)
15726       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15727       wlarc=
15728       hardcode_direct=yes
15729       hardcode_shlibpath_var=no
15730       ;;
15731
15732     *)
15733       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15734         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15735         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15736       else
15737         ld_shlibs=no
15738       fi
15739       ;;
15740     esac
15741
15742     if test "$ld_shlibs" = no; then
15743       runpath_var=
15744       hardcode_libdir_flag_spec=
15745       export_dynamic_flag_spec=
15746       whole_archive_flag_spec=
15747     fi
15748   else
15749     # PORTME fill in a description of your system's linker (not GNU ld)
15750     case $host_os in
15751     aix3*)
15752       allow_undefined_flag=unsupported
15753       always_export_symbols=yes
15754       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'
15755       # Note: this linker hardcodes the directories in LIBPATH if there
15756       # are no directories specified by -L.
15757       hardcode_minus_L=yes
15758       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15759         # Neither direct hardcoding nor static linking is supported with a
15760         # broken collect2.
15761         hardcode_direct=unsupported
15762       fi
15763       ;;
15764
15765     aix[4-9]*)
15766       if test "$host_cpu" = ia64; then
15767         # On IA64, the linker does run time linking by default, so we don't
15768         # have to do anything special.
15769         aix_use_runtimelinking=no
15770         exp_sym_flag='-Bexport'
15771         no_entry_flag=""
15772       else
15773         # If we're using GNU nm, then we don't want the "-C" option.
15774         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15775         # Also, AIX nm treats weak defined symbols like other global
15776         # defined symbols, whereas GNU nm marks them as "W".
15777         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15778           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'
15779         else
15780           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'
15781         fi
15782         aix_use_runtimelinking=no
15783
15784         # Test if we are trying to use run time linking or normal
15785         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15786         # need to do runtime linking.
15787         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15788           for ld_flag in $LDFLAGS; do
15789           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15790             aix_use_runtimelinking=yes
15791             break
15792           fi
15793           done
15794           ;;
15795         esac
15796
15797         exp_sym_flag='-bexport'
15798         no_entry_flag='-bnoentry'
15799       fi
15800
15801       # When large executables or shared objects are built, AIX ld can
15802       # have problems creating the table of contents.  If linking a library
15803       # or program results in "error TOC overflow" add -mminimal-toc to
15804       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15805       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15806
15807       archive_cmds=''
15808       hardcode_direct=yes
15809       hardcode_direct_absolute=yes
15810       hardcode_libdir_separator=':'
15811       link_all_deplibs=yes
15812       file_list_spec='${wl}-f,'
15813
15814       if test "$GCC" = yes; then
15815         case $host_os in aix4.[012]|aix4.[012].*)
15816         # We only want to do this on AIX 4.2 and lower, the check
15817         # below for broken collect2 doesn't work under 4.3+
15818           collect2name=`${CC} -print-prog-name=collect2`
15819           if test -f "$collect2name" &&
15820            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15821           then
15822           # We have reworked collect2
15823           :
15824           else
15825           # We have old collect2
15826           hardcode_direct=unsupported
15827           # It fails to find uninstalled libraries when the uninstalled
15828           # path is not listed in the libpath.  Setting hardcode_minus_L
15829           # to unsupported forces relinking
15830           hardcode_minus_L=yes
15831           hardcode_libdir_flag_spec='-L$libdir'
15832           hardcode_libdir_separator=
15833           fi
15834           ;;
15835         esac
15836         shared_flag='-shared'
15837         if test "$aix_use_runtimelinking" = yes; then
15838           shared_flag="$shared_flag "'${wl}-G'
15839         fi
15840       else
15841         # not using gcc
15842         if test "$host_cpu" = ia64; then
15843         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15844         # chokes on -Wl,-G. The following line is correct:
15845           shared_flag='-G'
15846         else
15847           if test "$aix_use_runtimelinking" = yes; then
15848             shared_flag='${wl}-G'
15849           else
15850             shared_flag='${wl}-bM:SRE'
15851           fi
15852         fi
15853       fi
15854
15855       export_dynamic_flag_spec='${wl}-bexpall'
15856       # It seems that -bexpall does not export symbols beginning with
15857       # underscore (_), so it is better to generate a list of symbols to export.
15858       always_export_symbols=yes
15859       if test "$aix_use_runtimelinking" = yes; then
15860         # Warning - without using the other runtime loading flags (-brtl),
15861         # -berok will link without error, but may produce a broken library.
15862         allow_undefined_flag='-berok'
15863         # Determine the default libpath from the value encoded in an
15864         # empty executable.
15865         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h.  */
15867
15868 int
15869 main ()
15870 {
15871
15872   ;
15873   return 0;
15874 }
15875 _ACEOF
15876 if ac_fn_c_try_link "$LINENO"; then :
15877
15878 lt_aix_libpath_sed='
15879     /Import File Strings/,/^$/ {
15880         /^0/ {
15881             s/^0  *\(.*\)$/\1/
15882             p
15883         }
15884     }'
15885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15886 # Check for a 64-bit object if we didn't find anything.
15887 if test -z "$aix_libpath"; then
15888   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15889 fi
15890 fi
15891 rm -f core conftest.err conftest.$ac_objext \
15892     conftest$ac_exeext conftest.$ac_ext
15893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15894
15895         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15896         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"
15897       else
15898         if test "$host_cpu" = ia64; then
15899           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15900           allow_undefined_flag="-z nodefs"
15901           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"
15902         else
15903          # Determine the default libpath from the value encoded in an
15904          # empty executable.
15905          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h.  */
15907
15908 int
15909 main ()
15910 {
15911
15912   ;
15913   return 0;
15914 }
15915 _ACEOF
15916 if ac_fn_c_try_link "$LINENO"; then :
15917
15918 lt_aix_libpath_sed='
15919     /Import File Strings/,/^$/ {
15920         /^0/ {
15921             s/^0  *\(.*\)$/\1/
15922             p
15923         }
15924     }'
15925 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15926 # Check for a 64-bit object if we didn't find anything.
15927 if test -z "$aix_libpath"; then
15928   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15929 fi
15930 fi
15931 rm -f core conftest.err conftest.$ac_objext \
15932     conftest$ac_exeext conftest.$ac_ext
15933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15934
15935          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15936           # Warning - without using the other run time loading flags,
15937           # -berok will link without error, but may produce a broken library.
15938           no_undefined_flag=' ${wl}-bernotok'
15939           allow_undefined_flag=' ${wl}-berok'
15940           if test "$with_gnu_ld" = yes; then
15941             # We only use this code for GNU lds that support --whole-archive.
15942             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15943           else
15944             # Exported symbols can be pulled into shared objects from archives
15945             whole_archive_flag_spec='$convenience'
15946           fi
15947           archive_cmds_need_lc=yes
15948           # This is similar to how AIX traditionally builds its shared libraries.
15949           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'
15950         fi
15951       fi
15952       ;;
15953
15954     amigaos*)
15955       case $host_cpu in
15956       powerpc)
15957             # see comment about AmigaOS4 .so support
15958             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15959             archive_expsym_cmds=''
15960         ;;
15961       m68k)
15962             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)'
15963             hardcode_libdir_flag_spec='-L$libdir'
15964             hardcode_minus_L=yes
15965         ;;
15966       esac
15967       ;;
15968
15969     bsdi[45]*)
15970       export_dynamic_flag_spec=-rdynamic
15971       ;;
15972
15973     cygwin* | mingw* | pw32* | cegcc*)
15974       # When not using gcc, we currently assume that we are using
15975       # Microsoft Visual C++.
15976       # hardcode_libdir_flag_spec is actually meaningless, as there is
15977       # no search path for DLLs.
15978       hardcode_libdir_flag_spec=' '
15979       allow_undefined_flag=unsupported
15980       # Tell ltmain to make .lib files, not .a files.
15981       libext=lib
15982       # Tell ltmain to make .dll files, not .so files.
15983       shrext_cmds=".dll"
15984       # FIXME: Setting linknames here is a bad hack.
15985       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15986       # The linker will automatically build a .lib file if we build a DLL.
15987       old_archive_from_new_cmds='true'
15988       # FIXME: Should let the user specify the lib program.
15989       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15990       fix_srcfile_path='`cygpath -w "$srcfile"`'
15991       enable_shared_with_static_runtimes=yes
15992       ;;
15993
15994     darwin* | rhapsody*)
15995
15996
15997   archive_cmds_need_lc=no
15998   hardcode_direct=no
15999   hardcode_automatic=yes
16000   hardcode_shlibpath_var=unsupported
16001   if test "$lt_cv_ld_force_load" = "yes"; then
16002     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\"`'
16003   else
16004     whole_archive_flag_spec=''
16005   fi
16006   link_all_deplibs=yes
16007   allow_undefined_flag="$_lt_dar_allow_undefined"
16008   case $cc_basename in
16009      ifort*) _lt_dar_can_shared=yes ;;
16010      *) _lt_dar_can_shared=$GCC ;;
16011   esac
16012   if test "$_lt_dar_can_shared" = "yes"; then
16013     output_verbose_link_cmd=func_echo_all
16014     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16015     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16016     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}"
16017     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}"
16018
16019   else
16020   ld_shlibs=no
16021   fi
16022
16023       ;;
16024
16025     dgux*)
16026       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16027       hardcode_libdir_flag_spec='-L$libdir'
16028       hardcode_shlibpath_var=no
16029       ;;
16030
16031     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16032     # support.  Future versions do this automatically, but an explicit c++rt0.o
16033     # does not break anything, and helps significantly (at the cost of a little
16034     # extra space).
16035     freebsd2.2*)
16036       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16037       hardcode_libdir_flag_spec='-R$libdir'
16038       hardcode_direct=yes
16039       hardcode_shlibpath_var=no
16040       ;;
16041
16042     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16043     freebsd2*)
16044       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16045       hardcode_direct=yes
16046       hardcode_minus_L=yes
16047       hardcode_shlibpath_var=no
16048       ;;
16049
16050     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16051     freebsd* | dragonfly*)
16052       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16053       hardcode_libdir_flag_spec='-R$libdir'
16054       hardcode_direct=yes
16055       hardcode_shlibpath_var=no
16056       ;;
16057
16058     hpux9*)
16059       if test "$GCC" = yes; then
16060         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'
16061       else
16062         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'
16063       fi
16064       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16065       hardcode_libdir_separator=:
16066       hardcode_direct=yes
16067
16068       # hardcode_minus_L: Not really in the search PATH,
16069       # but as the default location of the library.
16070       hardcode_minus_L=yes
16071       export_dynamic_flag_spec='${wl}-E'
16072       ;;
16073
16074     hpux10*)
16075       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16076         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16077       else
16078         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16079       fi
16080       if test "$with_gnu_ld" = no; then
16081         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16082         hardcode_libdir_flag_spec_ld='+b $libdir'
16083         hardcode_libdir_separator=:
16084         hardcode_direct=yes
16085         hardcode_direct_absolute=yes
16086         export_dynamic_flag_spec='${wl}-E'
16087         # hardcode_minus_L: Not really in the search PATH,
16088         # but as the default location of the library.
16089         hardcode_minus_L=yes
16090       fi
16091       ;;
16092
16093     hpux11*)
16094       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16095         case $host_cpu in
16096         hppa*64*)
16097           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16098           ;;
16099         ia64*)
16100           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16101           ;;
16102         *)
16103           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16104           ;;
16105         esac
16106       else
16107         case $host_cpu in
16108         hppa*64*)
16109           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16110           ;;
16111         ia64*)
16112           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16113           ;;
16114         *)
16115
16116           # Older versions of the 11.00 compiler do not understand -b yet
16117           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16118           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16119 $as_echo_n "checking if $CC understands -b... " >&6; }
16120 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16121   $as_echo_n "(cached) " >&6
16122 else
16123   lt_cv_prog_compiler__b=no
16124    save_LDFLAGS="$LDFLAGS"
16125    LDFLAGS="$LDFLAGS -b"
16126    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16127    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16128      # The linker can only warn and ignore the option if not recognized
16129      # So say no if there are warnings
16130      if test -s conftest.err; then
16131        # Append any errors to the config.log.
16132        cat conftest.err 1>&5
16133        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16134        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16135        if diff conftest.exp conftest.er2 >/dev/null; then
16136          lt_cv_prog_compiler__b=yes
16137        fi
16138      else
16139        lt_cv_prog_compiler__b=yes
16140      fi
16141    fi
16142    $RM -r conftest*
16143    LDFLAGS="$save_LDFLAGS"
16144
16145 fi
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16147 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16148
16149 if test x"$lt_cv_prog_compiler__b" = xyes; then
16150     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16151 else
16152     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16153 fi
16154
16155           ;;
16156         esac
16157       fi
16158       if test "$with_gnu_ld" = no; then
16159         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16160         hardcode_libdir_separator=:
16161
16162         case $host_cpu in
16163         hppa*64*|ia64*)
16164           hardcode_direct=no
16165           hardcode_shlibpath_var=no
16166           ;;
16167         *)
16168           hardcode_direct=yes
16169           hardcode_direct_absolute=yes
16170           export_dynamic_flag_spec='${wl}-E'
16171
16172           # hardcode_minus_L: Not really in the search PATH,
16173           # but as the default location of the library.
16174           hardcode_minus_L=yes
16175           ;;
16176         esac
16177       fi
16178       ;;
16179
16180     irix5* | irix6* | nonstopux*)
16181       if test "$GCC" = yes; then
16182         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'
16183         # Try to use the -exported_symbol ld option, if it does not
16184         # work, assume that -exports_file does not work either and
16185         # implicitly export all symbols.
16186         save_LDFLAGS="$LDFLAGS"
16187         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16188         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h.  */
16190 int foo(void) {}
16191 _ACEOF
16192 if ac_fn_c_try_link "$LINENO"; then :
16193   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'
16194
16195 fi
16196 rm -f core conftest.err conftest.$ac_objext \
16197     conftest$ac_exeext conftest.$ac_ext
16198         LDFLAGS="$save_LDFLAGS"
16199       else
16200         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'
16201         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'
16202       fi
16203       archive_cmds_need_lc='no'
16204       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16205       hardcode_libdir_separator=:
16206       inherit_rpath=yes
16207       link_all_deplibs=yes
16208       ;;
16209
16210     netbsd*)
16211       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16212         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16213       else
16214         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16215       fi
16216       hardcode_libdir_flag_spec='-R$libdir'
16217       hardcode_direct=yes
16218       hardcode_shlibpath_var=no
16219       ;;
16220
16221     newsos6)
16222       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16223       hardcode_direct=yes
16224       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16225       hardcode_libdir_separator=:
16226       hardcode_shlibpath_var=no
16227       ;;
16228
16229     *nto* | *qnx*)
16230       ;;
16231
16232     openbsd*)
16233       if test -f /usr/libexec/ld.so; then
16234         hardcode_direct=yes
16235         hardcode_shlibpath_var=no
16236         hardcode_direct_absolute=yes
16237         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16238           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16239           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16240           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16241           export_dynamic_flag_spec='${wl}-E'
16242         else
16243           case $host_os in
16244            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16245              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16246              hardcode_libdir_flag_spec='-R$libdir'
16247              ;;
16248            *)
16249              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16250              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16251              ;;
16252           esac
16253         fi
16254       else
16255         ld_shlibs=no
16256       fi
16257       ;;
16258
16259     os2*)
16260       hardcode_libdir_flag_spec='-L$libdir'
16261       hardcode_minus_L=yes
16262       allow_undefined_flag=unsupported
16263       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'
16264       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16265       ;;
16266
16267     osf3*)
16268       if test "$GCC" = yes; then
16269         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16270         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'
16271       else
16272         allow_undefined_flag=' -expect_unresolved \*'
16273         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'
16274       fi
16275       archive_cmds_need_lc='no'
16276       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16277       hardcode_libdir_separator=:
16278       ;;
16279
16280     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16281       if test "$GCC" = yes; then
16282         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16283         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'
16284         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16285       else
16286         allow_undefined_flag=' -expect_unresolved \*'
16287         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'
16288         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~
16289         $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'
16290
16291         # Both c and cxx compiler support -rpath directly
16292         hardcode_libdir_flag_spec='-rpath $libdir'
16293       fi
16294       archive_cmds_need_lc='no'
16295       hardcode_libdir_separator=:
16296       ;;
16297
16298     solaris*)
16299       no_undefined_flag=' -z defs'
16300       if test "$GCC" = yes; then
16301         wlarc='${wl}'
16302         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16303         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16304           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16305       else
16306         case `$CC -V 2>&1` in
16307         *"Compilers 5.0"*)
16308           wlarc=''
16309           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16310           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16311           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16312           ;;
16313         *)
16314           wlarc='${wl}'
16315           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16316           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16317           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16318           ;;
16319         esac
16320       fi
16321       hardcode_libdir_flag_spec='-R$libdir'
16322       hardcode_shlibpath_var=no
16323       case $host_os in
16324       solaris2.[0-5] | solaris2.[0-5].*) ;;
16325       *)
16326         # The compiler driver will combine and reorder linker options,
16327         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16328         # but is careful enough not to reorder.
16329         # Supported since Solaris 2.6 (maybe 2.5.1?)
16330         if test "$GCC" = yes; then
16331           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16332         else
16333           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16334         fi
16335         ;;
16336       esac
16337       link_all_deplibs=yes
16338       ;;
16339
16340     sunos4*)
16341       if test "x$host_vendor" = xsequent; then
16342         # Use $CC to link under sequent, because it throws in some extra .o
16343         # files that make .init and .fini sections work.
16344         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16345       else
16346         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16347       fi
16348       hardcode_libdir_flag_spec='-L$libdir'
16349       hardcode_direct=yes
16350       hardcode_minus_L=yes
16351       hardcode_shlibpath_var=no
16352       ;;
16353
16354     sysv4)
16355       case $host_vendor in
16356         sni)
16357           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16358           hardcode_direct=yes # is this really true???
16359         ;;
16360         siemens)
16361           ## LD is ld it makes a PLAMLIB
16362           ## CC just makes a GrossModule.
16363           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16364           reload_cmds='$CC -r -o $output$reload_objs'
16365           hardcode_direct=no
16366         ;;
16367         motorola)
16368           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16369           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16370         ;;
16371       esac
16372       runpath_var='LD_RUN_PATH'
16373       hardcode_shlibpath_var=no
16374       ;;
16375
16376     sysv4.3*)
16377       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16378       hardcode_shlibpath_var=no
16379       export_dynamic_flag_spec='-Bexport'
16380       ;;
16381
16382     sysv4*MP*)
16383       if test -d /usr/nec; then
16384         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16385         hardcode_shlibpath_var=no
16386         runpath_var=LD_RUN_PATH
16387         hardcode_runpath_var=yes
16388         ld_shlibs=yes
16389       fi
16390       ;;
16391
16392     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16393       no_undefined_flag='${wl}-z,text'
16394       archive_cmds_need_lc=no
16395       hardcode_shlibpath_var=no
16396       runpath_var='LD_RUN_PATH'
16397
16398       if test "$GCC" = yes; then
16399         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16400         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16401       else
16402         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16403         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16404       fi
16405       ;;
16406
16407     sysv5* | sco3.2v5* | sco5v6*)
16408       # Note: We can NOT use -z defs as we might desire, because we do not
16409       # link with -lc, and that would cause any symbols used from libc to
16410       # always be unresolved, which means just about no library would
16411       # ever link correctly.  If we're not using GNU ld we use -z text
16412       # though, which does catch some bad symbols but isn't as heavy-handed
16413       # as -z defs.
16414       no_undefined_flag='${wl}-z,text'
16415       allow_undefined_flag='${wl}-z,nodefs'
16416       archive_cmds_need_lc=no
16417       hardcode_shlibpath_var=no
16418       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16419       hardcode_libdir_separator=':'
16420       link_all_deplibs=yes
16421       export_dynamic_flag_spec='${wl}-Bexport'
16422       runpath_var='LD_RUN_PATH'
16423
16424       if test "$GCC" = yes; then
16425         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16426         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16427       else
16428         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16429         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16430       fi
16431       ;;
16432
16433     uts4*)
16434       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16435       hardcode_libdir_flag_spec='-L$libdir'
16436       hardcode_shlibpath_var=no
16437       ;;
16438
16439     *)
16440       ld_shlibs=no
16441       ;;
16442     esac
16443
16444     if test x$host_vendor = xsni; then
16445       case $host in
16446       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16447         export_dynamic_flag_spec='${wl}-Blargedynsym'
16448         ;;
16449       esac
16450     fi
16451   fi
16452
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16454 $as_echo "$ld_shlibs" >&6; }
16455 test "$ld_shlibs" = no && can_build_shared=no
16456
16457 with_gnu_ld=$with_gnu_ld
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473 #
16474 # Do we need to explicitly link libc?
16475 #
16476 case "x$archive_cmds_need_lc" in
16477 x|xyes)
16478   # Assume -lc should be added
16479   archive_cmds_need_lc=yes
16480
16481   if test "$enable_shared" = yes && test "$GCC" = yes; then
16482     case $archive_cmds in
16483     *'~'*)
16484       # FIXME: we may have to deal with multi-command sequences.
16485       ;;
16486     '$CC '*)
16487       # Test whether the compiler implicitly links with -lc since on some
16488       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16489       # to ld, don't add -lc before -lgcc.
16490       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16491 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16492 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16493   $as_echo_n "(cached) " >&6
16494 else
16495   $RM conftest*
16496         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16497
16498         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16499   (eval $ac_compile) 2>&5
16500   ac_status=$?
16501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16502   test $ac_status = 0; } 2>conftest.err; then
16503           soname=conftest
16504           lib=conftest
16505           libobjs=conftest.$ac_objext
16506           deplibs=
16507           wl=$lt_prog_compiler_wl
16508           pic_flag=$lt_prog_compiler_pic
16509           compiler_flags=-v
16510           linker_flags=-v
16511           verstring=
16512           output_objdir=.
16513           libname=conftest
16514           lt_save_allow_undefined_flag=$allow_undefined_flag
16515           allow_undefined_flag=
16516           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16517   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16518   ac_status=$?
16519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16520   test $ac_status = 0; }
16521           then
16522             lt_cv_archive_cmds_need_lc=no
16523           else
16524             lt_cv_archive_cmds_need_lc=yes
16525           fi
16526           allow_undefined_flag=$lt_save_allow_undefined_flag
16527         else
16528           cat conftest.err 1>&5
16529         fi
16530         $RM conftest*
16531
16532 fi
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16534 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16535       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16536       ;;
16537     esac
16538   fi
16539   ;;
16540 esac
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
16695
16696
16697
16698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16699 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16700
16701 if test "$GCC" = yes; then
16702   case $host_os in
16703     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16704     *) lt_awk_arg="/^libraries:/" ;;
16705   esac
16706   case $host_os in
16707     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16708     *) lt_sed_strip_eq="s,=/,/,g" ;;
16709   esac
16710   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16711   case $lt_search_path_spec in
16712   *\;*)
16713     # if the path contains ";" then we assume it to be the separator
16714     # otherwise default to the standard path separator (i.e. ":") - it is
16715     # assumed that no part of a normal pathname contains ";" but that should
16716     # okay in the real world where ";" in dirpaths is itself problematic.
16717     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16718     ;;
16719   *)
16720     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16721     ;;
16722   esac
16723   # Ok, now we have the path, separated by spaces, we can step through it
16724   # and add multilib dir if necessary.
16725   lt_tmp_lt_search_path_spec=
16726   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16727   for lt_sys_path in $lt_search_path_spec; do
16728     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16729       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16730     else
16731       test -d "$lt_sys_path" && \
16732         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16733     fi
16734   done
16735   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16736 BEGIN {RS=" "; FS="/|\n";} {
16737   lt_foo="";
16738   lt_count=0;
16739   for (lt_i = NF; lt_i > 0; lt_i--) {
16740     if ($lt_i != "" && $lt_i != ".") {
16741       if ($lt_i == "..") {
16742         lt_count++;
16743       } else {
16744         if (lt_count == 0) {
16745           lt_foo="/" $lt_i lt_foo;
16746         } else {
16747           lt_count--;
16748         }
16749       }
16750     }
16751   }
16752   if (lt_foo != "") { lt_freq[lt_foo]++; }
16753   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16754 }'`
16755   # AWK program above erroneously prepends '/' to C:/dos/paths
16756   # for these hosts.
16757   case $host_os in
16758     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16759       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16760   esac
16761   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16762 else
16763   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16764 fi
16765 library_names_spec=
16766 libname_spec='lib$name'
16767 soname_spec=
16768 shrext_cmds=".so"
16769 postinstall_cmds=
16770 postuninstall_cmds=
16771 finish_cmds=
16772 finish_eval=
16773 shlibpath_var=
16774 shlibpath_overrides_runpath=unknown
16775 version_type=none
16776 dynamic_linker="$host_os ld.so"
16777 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16778 need_lib_prefix=unknown
16779 hardcode_into_libs=no
16780
16781 # when you set need_version to no, make sure it does not cause -set_version
16782 # flags to be left without arguments
16783 need_version=unknown
16784
16785 case $host_os in
16786 aix3*)
16787   version_type=linux
16788   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16789   shlibpath_var=LIBPATH
16790
16791   # AIX 3 has no versioning support, so we append a major version to the name.
16792   soname_spec='${libname}${release}${shared_ext}$major'
16793   ;;
16794
16795 aix[4-9]*)
16796   version_type=linux
16797   need_lib_prefix=no
16798   need_version=no
16799   hardcode_into_libs=yes
16800   if test "$host_cpu" = ia64; then
16801     # AIX 5 supports IA64
16802     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16803     shlibpath_var=LD_LIBRARY_PATH
16804   else
16805     # With GCC up to 2.95.x, collect2 would create an import file
16806     # for dependence libraries.  The import file would start with
16807     # the line `#! .'.  This would cause the generated library to
16808     # depend on `.', always an invalid library.  This was fixed in
16809     # development snapshots of GCC prior to 3.0.
16810     case $host_os in
16811       aix4 | aix4.[01] | aix4.[01].*)
16812       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16813            echo ' yes '
16814            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16815         :
16816       else
16817         can_build_shared=no
16818       fi
16819       ;;
16820     esac
16821     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16822     # soname into executable. Probably we can add versioning support to
16823     # collect2, so additional links can be useful in future.
16824     if test "$aix_use_runtimelinking" = yes; then
16825       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16826       # instead of lib<name>.a to let people know that these are not
16827       # typical AIX shared libraries.
16828       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829     else
16830       # We preserve .a as extension for shared libraries through AIX4.2
16831       # and later when we are not doing run time linking.
16832       library_names_spec='${libname}${release}.a $libname.a'
16833       soname_spec='${libname}${release}${shared_ext}$major'
16834     fi
16835     shlibpath_var=LIBPATH
16836   fi
16837   ;;
16838
16839 amigaos*)
16840   case $host_cpu in
16841   powerpc)
16842     # Since July 2007 AmigaOS4 officially supports .so libraries.
16843     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16845     ;;
16846   m68k)
16847     library_names_spec='$libname.ixlibrary $libname.a'
16848     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16849     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'
16850     ;;
16851   esac
16852   ;;
16853
16854 beos*)
16855   library_names_spec='${libname}${shared_ext}'
16856   dynamic_linker="$host_os ld.so"
16857   shlibpath_var=LIBRARY_PATH
16858   ;;
16859
16860 bsdi[45]*)
16861   version_type=linux
16862   need_version=no
16863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864   soname_spec='${libname}${release}${shared_ext}$major'
16865   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16866   shlibpath_var=LD_LIBRARY_PATH
16867   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16868   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16869   # the default ld.so.conf also contains /usr/contrib/lib and
16870   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16871   # libtool to hard-code these into programs
16872   ;;
16873
16874 cygwin* | mingw* | pw32* | cegcc*)
16875   version_type=windows
16876   shrext_cmds=".dll"
16877   need_version=no
16878   need_lib_prefix=no
16879
16880   case $GCC,$host_os in
16881   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16882     library_names_spec='$libname.dll.a'
16883     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16884     postinstall_cmds='base_file=`basename \${file}`~
16885       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16886       dldir=$destdir/`dirname \$dlpath`~
16887       test -d \$dldir || mkdir -p \$dldir~
16888       $install_prog $dir/$dlname \$dldir/$dlname~
16889       chmod a+x \$dldir/$dlname~
16890       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16891         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16892       fi'
16893     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16894       dlpath=$dir/\$dldll~
16895        $RM \$dlpath'
16896     shlibpath_overrides_runpath=yes
16897
16898     case $host_os in
16899     cygwin*)
16900       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16901       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16902
16903       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16904       ;;
16905     mingw* | cegcc*)
16906       # MinGW DLLs use traditional 'lib' prefix
16907       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16908       ;;
16909     pw32*)
16910       # pw32 DLLs use 'pw' prefix rather than 'lib'
16911       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16912       ;;
16913     esac
16914     ;;
16915
16916   *)
16917     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16918     ;;
16919   esac
16920   dynamic_linker='Win32 ld.exe'
16921   # FIXME: first we should search . and the directory the executable is in
16922   shlibpath_var=PATH
16923   ;;
16924
16925 darwin* | rhapsody*)
16926   dynamic_linker="$host_os dyld"
16927   version_type=darwin
16928   need_lib_prefix=no
16929   need_version=no
16930   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16931   soname_spec='${libname}${release}${major}$shared_ext'
16932   shlibpath_overrides_runpath=yes
16933   shlibpath_var=DYLD_LIBRARY_PATH
16934   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16935
16936   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16937   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16938   ;;
16939
16940 dgux*)
16941   version_type=linux
16942   need_lib_prefix=no
16943   need_version=no
16944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16945   soname_spec='${libname}${release}${shared_ext}$major'
16946   shlibpath_var=LD_LIBRARY_PATH
16947   ;;
16948
16949 freebsd* | dragonfly*)
16950   # DragonFly does not have aout.  When/if they implement a new
16951   # versioning mechanism, adjust this.
16952   if test -x /usr/bin/objformat; then
16953     objformat=`/usr/bin/objformat`
16954   else
16955     case $host_os in
16956     freebsd[123]*) objformat=aout ;;
16957     *) objformat=elf ;;
16958     esac
16959   fi
16960   version_type=freebsd-$objformat
16961   case $version_type in
16962     freebsd-elf*)
16963       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16964       need_version=no
16965       need_lib_prefix=no
16966       ;;
16967     freebsd-*)
16968       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16969       need_version=yes
16970       ;;
16971   esac
16972   shlibpath_var=LD_LIBRARY_PATH
16973   case $host_os in
16974   freebsd2*)
16975     shlibpath_overrides_runpath=yes
16976     ;;
16977   freebsd3.[01]* | freebsdelf3.[01]*)
16978     shlibpath_overrides_runpath=yes
16979     hardcode_into_libs=yes
16980     ;;
16981   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16982   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16983     shlibpath_overrides_runpath=no
16984     hardcode_into_libs=yes
16985     ;;
16986   *) # from 4.6 on, and DragonFly
16987     shlibpath_overrides_runpath=yes
16988     hardcode_into_libs=yes
16989     ;;
16990   esac
16991   ;;
16992
16993 gnu*)
16994   version_type=linux
16995   need_lib_prefix=no
16996   need_version=no
16997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16998   soname_spec='${libname}${release}${shared_ext}$major'
16999   shlibpath_var=LD_LIBRARY_PATH
17000   hardcode_into_libs=yes
17001   ;;
17002
17003 haiku*)
17004   version_type=linux
17005   need_lib_prefix=no
17006   need_version=no
17007   dynamic_linker="$host_os runtime_loader"
17008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17009   soname_spec='${libname}${release}${shared_ext}$major'
17010   shlibpath_var=LIBRARY_PATH
17011   shlibpath_overrides_runpath=yes
17012   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17013   hardcode_into_libs=yes
17014   ;;
17015
17016 hpux9* | hpux10* | hpux11*)
17017   # Give a soname corresponding to the major version so that dld.sl refuses to
17018   # link against other versions.
17019   version_type=sunos
17020   need_lib_prefix=no
17021   need_version=no
17022   case $host_cpu in
17023   ia64*)
17024     shrext_cmds='.so'
17025     hardcode_into_libs=yes
17026     dynamic_linker="$host_os dld.so"
17027     shlibpath_var=LD_LIBRARY_PATH
17028     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030     soname_spec='${libname}${release}${shared_ext}$major'
17031     if test "X$HPUX_IA64_MODE" = X32; then
17032       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17033     else
17034       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17035     fi
17036     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17037     ;;
17038   hppa*64*)
17039     shrext_cmds='.sl'
17040     hardcode_into_libs=yes
17041     dynamic_linker="$host_os dld.sl"
17042     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17043     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17044     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17045     soname_spec='${libname}${release}${shared_ext}$major'
17046     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17047     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17048     ;;
17049   *)
17050     shrext_cmds='.sl'
17051     dynamic_linker="$host_os dld.sl"
17052     shlibpath_var=SHLIB_PATH
17053     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055     soname_spec='${libname}${release}${shared_ext}$major'
17056     ;;
17057   esac
17058   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17059   postinstall_cmds='chmod 555 $lib'
17060   # or fails outright, so override atomically:
17061   install_override_mode=555
17062   ;;
17063
17064 interix[3-9]*)
17065   version_type=linux
17066   need_lib_prefix=no
17067   need_version=no
17068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17069   soname_spec='${libname}${release}${shared_ext}$major'
17070   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17071   shlibpath_var=LD_LIBRARY_PATH
17072   shlibpath_overrides_runpath=no
17073   hardcode_into_libs=yes
17074   ;;
17075
17076 irix5* | irix6* | nonstopux*)
17077   case $host_os in
17078     nonstopux*) version_type=nonstopux ;;
17079     *)
17080         if test "$lt_cv_prog_gnu_ld" = yes; then
17081                 version_type=linux
17082         else
17083                 version_type=irix
17084         fi ;;
17085   esac
17086   need_lib_prefix=no
17087   need_version=no
17088   soname_spec='${libname}${release}${shared_ext}$major'
17089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17090   case $host_os in
17091   irix5* | nonstopux*)
17092     libsuff= shlibsuff=
17093     ;;
17094   *)
17095     case $LD in # libtool.m4 will add one of these switches to LD
17096     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17097       libsuff= shlibsuff= libmagic=32-bit;;
17098     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17099       libsuff=32 shlibsuff=N32 libmagic=N32;;
17100     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17101       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17102     *) libsuff= shlibsuff= libmagic=never-match;;
17103     esac
17104     ;;
17105   esac
17106   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17107   shlibpath_overrides_runpath=no
17108   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17109   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17110   hardcode_into_libs=yes
17111   ;;
17112
17113 # No shared lib support for Linux oldld, aout, or coff.
17114 linux*oldld* | linux*aout* | linux*coff*)
17115   dynamic_linker=no
17116   ;;
17117
17118 # This must be Linux ELF.
17119 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17120   version_type=linux
17121   need_lib_prefix=no
17122   need_version=no
17123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17124   soname_spec='${libname}${release}${shared_ext}$major'
17125   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17126   shlibpath_var=LD_LIBRARY_PATH
17127   shlibpath_overrides_runpath=no
17128
17129   # Some binutils ld are patched to set DT_RUNPATH
17130   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17131   $as_echo_n "(cached) " >&6
17132 else
17133   lt_cv_shlibpath_overrides_runpath=no
17134     save_LDFLAGS=$LDFLAGS
17135     save_libdir=$libdir
17136     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17137          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17138     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17139 /* end confdefs.h.  */
17140
17141 int
17142 main ()
17143 {
17144
17145   ;
17146   return 0;
17147 }
17148 _ACEOF
17149 if ac_fn_c_try_link "$LINENO"; then :
17150   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17151   lt_cv_shlibpath_overrides_runpath=yes
17152 fi
17153 fi
17154 rm -f core conftest.err conftest.$ac_objext \
17155     conftest$ac_exeext conftest.$ac_ext
17156     LDFLAGS=$save_LDFLAGS
17157     libdir=$save_libdir
17158
17159 fi
17160
17161   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17162
17163   # This implies no fast_install, which is unacceptable.
17164   # Some rework will be needed to allow for fast_install
17165   # before this can be enabled.
17166   hardcode_into_libs=yes
17167
17168   # Append ld.so.conf contents to the search path
17169   if test -f /etc/ld.so.conf; then
17170     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' ' '`
17171     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17172   fi
17173
17174   # We used to test for /lib/ld.so.1 and disable shared libraries on
17175   # powerpc, because MkLinux only supported shared libraries with the
17176   # GNU dynamic linker.  Since this was broken with cross compilers,
17177   # most powerpc-linux boxes support dynamic linking these days and
17178   # people can always --disable-shared, the test was removed, and we
17179   # assume the GNU/Linux dynamic linker is in use.
17180   dynamic_linker='GNU/Linux ld.so'
17181   ;;
17182
17183 netbsd*)
17184   version_type=sunos
17185   need_lib_prefix=no
17186   need_version=no
17187   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17189     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17190     dynamic_linker='NetBSD (a.out) ld.so'
17191   else
17192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17193     soname_spec='${libname}${release}${shared_ext}$major'
17194     dynamic_linker='NetBSD ld.elf_so'
17195   fi
17196   shlibpath_var=LD_LIBRARY_PATH
17197   shlibpath_overrides_runpath=yes
17198   hardcode_into_libs=yes
17199   ;;
17200
17201 newsos6)
17202   version_type=linux
17203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17204   shlibpath_var=LD_LIBRARY_PATH
17205   shlibpath_overrides_runpath=yes
17206   ;;
17207
17208 *nto* | *qnx*)
17209   version_type=qnx
17210   need_lib_prefix=no
17211   need_version=no
17212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213   soname_spec='${libname}${release}${shared_ext}$major'
17214   shlibpath_var=LD_LIBRARY_PATH
17215   shlibpath_overrides_runpath=no
17216   hardcode_into_libs=yes
17217   dynamic_linker='ldqnx.so'
17218   ;;
17219
17220 openbsd*)
17221   version_type=sunos
17222   sys_lib_dlsearch_path_spec="/usr/lib"
17223   need_lib_prefix=no
17224   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17225   case $host_os in
17226     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17227     *)                          need_version=no  ;;
17228   esac
17229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17230   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17231   shlibpath_var=LD_LIBRARY_PATH
17232   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17233     case $host_os in
17234       openbsd2.[89] | openbsd2.[89].*)
17235         shlibpath_overrides_runpath=no
17236         ;;
17237       *)
17238         shlibpath_overrides_runpath=yes
17239         ;;
17240       esac
17241   else
17242     shlibpath_overrides_runpath=yes
17243   fi
17244   ;;
17245
17246 os2*)
17247   libname_spec='$name'
17248   shrext_cmds=".dll"
17249   need_lib_prefix=no
17250   library_names_spec='$libname${shared_ext} $libname.a'
17251   dynamic_linker='OS/2 ld.exe'
17252   shlibpath_var=LIBPATH
17253   ;;
17254
17255 osf3* | osf4* | osf5*)
17256   version_type=osf
17257   need_lib_prefix=no
17258   need_version=no
17259   soname_spec='${libname}${release}${shared_ext}$major'
17260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261   shlibpath_var=LD_LIBRARY_PATH
17262   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17263   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17264   ;;
17265
17266 rdos*)
17267   dynamic_linker=no
17268   ;;
17269
17270 solaris*)
17271   version_type=linux
17272   need_lib_prefix=no
17273   need_version=no
17274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275   soname_spec='${libname}${release}${shared_ext}$major'
17276   shlibpath_var=LD_LIBRARY_PATH
17277   shlibpath_overrides_runpath=yes
17278   hardcode_into_libs=yes
17279   # ldd complains unless libraries are executable
17280   postinstall_cmds='chmod +x $lib'
17281   ;;
17282
17283 sunos4*)
17284   version_type=sunos
17285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17286   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17287   shlibpath_var=LD_LIBRARY_PATH
17288   shlibpath_overrides_runpath=yes
17289   if test "$with_gnu_ld" = yes; then
17290     need_lib_prefix=no
17291   fi
17292   need_version=yes
17293   ;;
17294
17295 sysv4 | sysv4.3*)
17296   version_type=linux
17297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298   soname_spec='${libname}${release}${shared_ext}$major'
17299   shlibpath_var=LD_LIBRARY_PATH
17300   case $host_vendor in
17301     sni)
17302       shlibpath_overrides_runpath=no
17303       need_lib_prefix=no
17304       runpath_var=LD_RUN_PATH
17305       ;;
17306     siemens)
17307       need_lib_prefix=no
17308       ;;
17309     motorola)
17310       need_lib_prefix=no
17311       need_version=no
17312       shlibpath_overrides_runpath=no
17313       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17314       ;;
17315   esac
17316   ;;
17317
17318 sysv4*MP*)
17319   if test -d /usr/nec ;then
17320     version_type=linux
17321     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17322     soname_spec='$libname${shared_ext}.$major'
17323     shlibpath_var=LD_LIBRARY_PATH
17324   fi
17325   ;;
17326
17327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17328   version_type=freebsd-elf
17329   need_lib_prefix=no
17330   need_version=no
17331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17332   soname_spec='${libname}${release}${shared_ext}$major'
17333   shlibpath_var=LD_LIBRARY_PATH
17334   shlibpath_overrides_runpath=yes
17335   hardcode_into_libs=yes
17336   if test "$with_gnu_ld" = yes; then
17337     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17338   else
17339     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17340     case $host_os in
17341       sco3.2v5*)
17342         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17343         ;;
17344     esac
17345   fi
17346   sys_lib_dlsearch_path_spec='/usr/lib'
17347   ;;
17348
17349 tpf*)
17350   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17351   version_type=linux
17352   need_lib_prefix=no
17353   need_version=no
17354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355   shlibpath_var=LD_LIBRARY_PATH
17356   shlibpath_overrides_runpath=no
17357   hardcode_into_libs=yes
17358   ;;
17359
17360 uts4*)
17361   version_type=linux
17362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363   soname_spec='${libname}${release}${shared_ext}$major'
17364   shlibpath_var=LD_LIBRARY_PATH
17365   ;;
17366
17367 *)
17368   dynamic_linker=no
17369   ;;
17370 esac
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17372 $as_echo "$dynamic_linker" >&6; }
17373 test "$dynamic_linker" = no && can_build_shared=no
17374
17375 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17376 if test "$GCC" = yes; then
17377   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17378 fi
17379
17380 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17381   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17382 fi
17383 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17384   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17385 fi
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
17475
17476
17477
17478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17479 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17480 hardcode_action=
17481 if test -n "$hardcode_libdir_flag_spec" ||
17482    test -n "$runpath_var" ||
17483    test "X$hardcode_automatic" = "Xyes" ; then
17484
17485   # We can hardcode non-existent directories.
17486   if test "$hardcode_direct" != no &&
17487      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17488      # have to relink, otherwise we might link with an installed library
17489      # when we should be linking with a yet-to-be-installed one
17490      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17491      test "$hardcode_minus_L" != no; then
17492     # Linking always hardcodes the temporary library directory.
17493     hardcode_action=relink
17494   else
17495     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17496     hardcode_action=immediate
17497   fi
17498 else
17499   # We cannot hardcode anything, or else we can only hardcode existing
17500   # directories.
17501   hardcode_action=unsupported
17502 fi
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17504 $as_echo "$hardcode_action" >&6; }
17505
17506 if test "$hardcode_action" = relink ||
17507    test "$inherit_rpath" = yes; then
17508   # Fast installation is not supported
17509   enable_fast_install=no
17510 elif test "$shlibpath_overrides_runpath" = yes ||
17511      test "$enable_shared" = no; then
17512   # Fast installation is not necessary
17513   enable_fast_install=needless
17514 fi
17515
17516
17517
17518
17519
17520
17521   if test "x$enable_dlopen" != xyes; then
17522   enable_dlopen=unknown
17523   enable_dlopen_self=unknown
17524   enable_dlopen_self_static=unknown
17525 else
17526   lt_cv_dlopen=no
17527   lt_cv_dlopen_libs=
17528
17529   case $host_os in
17530   beos*)
17531     lt_cv_dlopen="load_add_on"
17532     lt_cv_dlopen_libs=
17533     lt_cv_dlopen_self=yes
17534     ;;
17535
17536   mingw* | pw32* | cegcc*)
17537     lt_cv_dlopen="LoadLibrary"
17538     lt_cv_dlopen_libs=
17539     ;;
17540
17541   cygwin*)
17542     lt_cv_dlopen="dlopen"
17543     lt_cv_dlopen_libs=
17544     ;;
17545
17546   darwin*)
17547   # if libdl is installed we need to link against it
17548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17549 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17550 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17551   $as_echo_n "(cached) " >&6
17552 else
17553   ac_check_lib_save_LIBS=$LIBS
17554 LIBS="-ldl  $LIBS"
17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h.  */
17557
17558 /* Override any GCC internal prototype to avoid an error.
17559    Use char because int might match the return type of a GCC
17560    builtin and then its argument prototype would still apply.  */
17561 #ifdef __cplusplus
17562 extern "C"
17563 #endif
17564 char dlopen ();
17565 int
17566 main ()
17567 {
17568 return dlopen ();
17569   ;
17570   return 0;
17571 }
17572 _ACEOF
17573 if ac_fn_c_try_link "$LINENO"; then :
17574   ac_cv_lib_dl_dlopen=yes
17575 else
17576   ac_cv_lib_dl_dlopen=no
17577 fi
17578 rm -f core conftest.err conftest.$ac_objext \
17579     conftest$ac_exeext conftest.$ac_ext
17580 LIBS=$ac_check_lib_save_LIBS
17581 fi
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17583 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17584 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17585   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17586 else
17587
17588     lt_cv_dlopen="dyld"
17589     lt_cv_dlopen_libs=
17590     lt_cv_dlopen_self=yes
17591
17592 fi
17593
17594     ;;
17595
17596   *)
17597     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17598 if test "x$ac_cv_func_shl_load" = x""yes; then :
17599   lt_cv_dlopen="shl_load"
17600 else
17601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17602 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17603 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17604   $as_echo_n "(cached) " >&6
17605 else
17606   ac_check_lib_save_LIBS=$LIBS
17607 LIBS="-ldld  $LIBS"
17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h.  */
17610
17611 /* Override any GCC internal prototype to avoid an error.
17612    Use char because int might match the return type of a GCC
17613    builtin and then its argument prototype would still apply.  */
17614 #ifdef __cplusplus
17615 extern "C"
17616 #endif
17617 char shl_load ();
17618 int
17619 main ()
17620 {
17621 return shl_load ();
17622   ;
17623   return 0;
17624 }
17625 _ACEOF
17626 if ac_fn_c_try_link "$LINENO"; then :
17627   ac_cv_lib_dld_shl_load=yes
17628 else
17629   ac_cv_lib_dld_shl_load=no
17630 fi
17631 rm -f core conftest.err conftest.$ac_objext \
17632     conftest$ac_exeext conftest.$ac_ext
17633 LIBS=$ac_check_lib_save_LIBS
17634 fi
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17636 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17637 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17638   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17639 else
17640   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17641 if test "x$ac_cv_func_dlopen" = x""yes; then :
17642   lt_cv_dlopen="dlopen"
17643 else
17644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17645 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17647   $as_echo_n "(cached) " >&6
17648 else
17649   ac_check_lib_save_LIBS=$LIBS
17650 LIBS="-ldl  $LIBS"
17651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h.  */
17653
17654 /* Override any GCC internal prototype to avoid an error.
17655    Use char because int might match the return type of a GCC
17656    builtin and then its argument prototype would still apply.  */
17657 #ifdef __cplusplus
17658 extern "C"
17659 #endif
17660 char dlopen ();
17661 int
17662 main ()
17663 {
17664 return dlopen ();
17665   ;
17666   return 0;
17667 }
17668 _ACEOF
17669 if ac_fn_c_try_link "$LINENO"; then :
17670   ac_cv_lib_dl_dlopen=yes
17671 else
17672   ac_cv_lib_dl_dlopen=no
17673 fi
17674 rm -f core conftest.err conftest.$ac_objext \
17675     conftest$ac_exeext conftest.$ac_ext
17676 LIBS=$ac_check_lib_save_LIBS
17677 fi
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17679 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17680 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17681   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17682 else
17683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17684 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17685 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17686   $as_echo_n "(cached) " >&6
17687 else
17688   ac_check_lib_save_LIBS=$LIBS
17689 LIBS="-lsvld  $LIBS"
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h.  */
17692
17693 /* Override any GCC internal prototype to avoid an error.
17694    Use char because int might match the return type of a GCC
17695    builtin and then its argument prototype would still apply.  */
17696 #ifdef __cplusplus
17697 extern "C"
17698 #endif
17699 char dlopen ();
17700 int
17701 main ()
17702 {
17703 return dlopen ();
17704   ;
17705   return 0;
17706 }
17707 _ACEOF
17708 if ac_fn_c_try_link "$LINENO"; then :
17709   ac_cv_lib_svld_dlopen=yes
17710 else
17711   ac_cv_lib_svld_dlopen=no
17712 fi
17713 rm -f core conftest.err conftest.$ac_objext \
17714     conftest$ac_exeext conftest.$ac_ext
17715 LIBS=$ac_check_lib_save_LIBS
17716 fi
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17718 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17719 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17720   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17721 else
17722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17723 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17724 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17725   $as_echo_n "(cached) " >&6
17726 else
17727   ac_check_lib_save_LIBS=$LIBS
17728 LIBS="-ldld  $LIBS"
17729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730 /* end confdefs.h.  */
17731
17732 /* Override any GCC internal prototype to avoid an error.
17733    Use char because int might match the return type of a GCC
17734    builtin and then its argument prototype would still apply.  */
17735 #ifdef __cplusplus
17736 extern "C"
17737 #endif
17738 char dld_link ();
17739 int
17740 main ()
17741 {
17742 return dld_link ();
17743   ;
17744   return 0;
17745 }
17746 _ACEOF
17747 if ac_fn_c_try_link "$LINENO"; then :
17748   ac_cv_lib_dld_dld_link=yes
17749 else
17750   ac_cv_lib_dld_dld_link=no
17751 fi
17752 rm -f core conftest.err conftest.$ac_objext \
17753     conftest$ac_exeext conftest.$ac_ext
17754 LIBS=$ac_check_lib_save_LIBS
17755 fi
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17757 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17758 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17759   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17760 fi
17761
17762
17763 fi
17764
17765
17766 fi
17767
17768
17769 fi
17770
17771
17772 fi
17773
17774
17775 fi
17776
17777     ;;
17778   esac
17779
17780   if test "x$lt_cv_dlopen" != xno; then
17781     enable_dlopen=yes
17782   else
17783     enable_dlopen=no
17784   fi
17785
17786   case $lt_cv_dlopen in
17787   dlopen)
17788     save_CPPFLAGS="$CPPFLAGS"
17789     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17790
17791     save_LDFLAGS="$LDFLAGS"
17792     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17793
17794     save_LIBS="$LIBS"
17795     LIBS="$lt_cv_dlopen_libs $LIBS"
17796
17797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17798 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17799 if test "${lt_cv_dlopen_self+set}" = set; then :
17800   $as_echo_n "(cached) " >&6
17801 else
17802           if test "$cross_compiling" = yes; then :
17803   lt_cv_dlopen_self=cross
17804 else
17805   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17806   lt_status=$lt_dlunknown
17807   cat > conftest.$ac_ext <<_LT_EOF
17808 #line 17808 "configure"
17809 #include "confdefs.h"
17810
17811 #if HAVE_DLFCN_H
17812 #include <dlfcn.h>
17813 #endif
17814
17815 #include <stdio.h>
17816
17817 #ifdef RTLD_GLOBAL
17818 #  define LT_DLGLOBAL           RTLD_GLOBAL
17819 #else
17820 #  ifdef DL_GLOBAL
17821 #    define LT_DLGLOBAL         DL_GLOBAL
17822 #  else
17823 #    define LT_DLGLOBAL         0
17824 #  endif
17825 #endif
17826
17827 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17828    find out it does not work in some platform. */
17829 #ifndef LT_DLLAZY_OR_NOW
17830 #  ifdef RTLD_LAZY
17831 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17832 #  else
17833 #    ifdef DL_LAZY
17834 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17835 #    else
17836 #      ifdef RTLD_NOW
17837 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17838 #      else
17839 #        ifdef DL_NOW
17840 #          define LT_DLLAZY_OR_NOW      DL_NOW
17841 #        else
17842 #          define LT_DLLAZY_OR_NOW      0
17843 #        endif
17844 #      endif
17845 #    endif
17846 #  endif
17847 #endif
17848
17849 /* When -fvisbility=hidden is used, assume the code has been annotated
17850    correspondingly for the symbols needed.  */
17851 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17852 void fnord () __attribute__((visibility("default")));
17853 #endif
17854
17855 void fnord () { int i=42; }
17856 int main ()
17857 {
17858   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17859   int status = $lt_dlunknown;
17860
17861   if (self)
17862     {
17863       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17864       else
17865         {
17866           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17867           else puts (dlerror ());
17868         }
17869       /* dlclose (self); */
17870     }
17871   else
17872     puts (dlerror ());
17873
17874   return status;
17875 }
17876 _LT_EOF
17877   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17878   (eval $ac_link) 2>&5
17879   ac_status=$?
17880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17881   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17882     (./conftest; exit; ) >&5 2>/dev/null
17883     lt_status=$?
17884     case x$lt_status in
17885       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17886       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17887       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17888     esac
17889   else :
17890     # compilation failed
17891     lt_cv_dlopen_self=no
17892   fi
17893 fi
17894 rm -fr conftest*
17895
17896
17897 fi
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17899 $as_echo "$lt_cv_dlopen_self" >&6; }
17900
17901     if test "x$lt_cv_dlopen_self" = xyes; then
17902       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17903       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17904 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17905 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17906   $as_echo_n "(cached) " >&6
17907 else
17908           if test "$cross_compiling" = yes; then :
17909   lt_cv_dlopen_self_static=cross
17910 else
17911   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17912   lt_status=$lt_dlunknown
17913   cat > conftest.$ac_ext <<_LT_EOF
17914 #line 17914 "configure"
17915 #include "confdefs.h"
17916
17917 #if HAVE_DLFCN_H
17918 #include <dlfcn.h>
17919 #endif
17920
17921 #include <stdio.h>
17922
17923 #ifdef RTLD_GLOBAL
17924 #  define LT_DLGLOBAL           RTLD_GLOBAL
17925 #else
17926 #  ifdef DL_GLOBAL
17927 #    define LT_DLGLOBAL         DL_GLOBAL
17928 #  else
17929 #    define LT_DLGLOBAL         0
17930 #  endif
17931 #endif
17932
17933 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17934    find out it does not work in some platform. */
17935 #ifndef LT_DLLAZY_OR_NOW
17936 #  ifdef RTLD_LAZY
17937 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17938 #  else
17939 #    ifdef DL_LAZY
17940 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17941 #    else
17942 #      ifdef RTLD_NOW
17943 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17944 #      else
17945 #        ifdef DL_NOW
17946 #          define LT_DLLAZY_OR_NOW      DL_NOW
17947 #        else
17948 #          define LT_DLLAZY_OR_NOW      0
17949 #        endif
17950 #      endif
17951 #    endif
17952 #  endif
17953 #endif
17954
17955 /* When -fvisbility=hidden is used, assume the code has been annotated
17956    correspondingly for the symbols needed.  */
17957 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17958 void fnord () __attribute__((visibility("default")));
17959 #endif
17960
17961 void fnord () { int i=42; }
17962 int main ()
17963 {
17964   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17965   int status = $lt_dlunknown;
17966
17967   if (self)
17968     {
17969       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17970       else
17971         {
17972           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17973           else puts (dlerror ());
17974         }
17975       /* dlclose (self); */
17976     }
17977   else
17978     puts (dlerror ());
17979
17980   return status;
17981 }
17982 _LT_EOF
17983   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17984   (eval $ac_link) 2>&5
17985   ac_status=$?
17986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17987   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17988     (./conftest; exit; ) >&5 2>/dev/null
17989     lt_status=$?
17990     case x$lt_status in
17991       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17992       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17993       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17994     esac
17995   else :
17996     # compilation failed
17997     lt_cv_dlopen_self_static=no
17998   fi
17999 fi
18000 rm -fr conftest*
18001
18002
18003 fi
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18005 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18006     fi
18007
18008     CPPFLAGS="$save_CPPFLAGS"
18009     LDFLAGS="$save_LDFLAGS"
18010     LIBS="$save_LIBS"
18011     ;;
18012   esac
18013
18014   case $lt_cv_dlopen_self in
18015   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18016   *) enable_dlopen_self=unknown ;;
18017   esac
18018
18019   case $lt_cv_dlopen_self_static in
18020   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18021   *) enable_dlopen_self_static=unknown ;;
18022   esac
18023 fi
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041 striplib=
18042 old_striplib=
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18044 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18045 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18046   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18047   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18049 $as_echo "yes" >&6; }
18050 else
18051 # FIXME - insert some real tests, host_os isn't really good enough
18052   case $host_os in
18053   darwin*)
18054     if test -n "$STRIP" ; then
18055       striplib="$STRIP -x"
18056       old_striplib="$STRIP -S"
18057       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18058 $as_echo "yes" >&6; }
18059     else
18060       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18061 $as_echo "no" >&6; }
18062     fi
18063     ;;
18064   *)
18065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18066 $as_echo "no" >&6; }
18067     ;;
18068   esac
18069 fi
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082   # Report which library types will actually be built
18083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18084 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18086 $as_echo "$can_build_shared" >&6; }
18087
18088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18089 $as_echo_n "checking whether to build shared libraries... " >&6; }
18090   test "$can_build_shared" = "no" && enable_shared=no
18091
18092   # On AIX, shared libraries and static libraries use the same namespace, and
18093   # are all built from PIC.
18094   case $host_os in
18095   aix3*)
18096     test "$enable_shared" = yes && enable_static=no
18097     if test -n "$RANLIB"; then
18098       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18099       postinstall_cmds='$RANLIB $lib'
18100     fi
18101     ;;
18102
18103   aix[4-9]*)
18104     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18105       test "$enable_shared" = yes && enable_static=no
18106     fi
18107     ;;
18108   esac
18109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18110 $as_echo "$enable_shared" >&6; }
18111
18112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18113 $as_echo_n "checking whether to build static libraries... " >&6; }
18114   # Make sure either enable_shared or enable_static is yes.
18115   test "$enable_shared" = yes || enable_static=yes
18116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18117 $as_echo "$enable_static" >&6; }
18118
18119
18120
18121
18122 fi
18123 ac_ext=c
18124 ac_cpp='$CPP $CPPFLAGS'
18125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18128
18129 CC="$lt_save_CC"
18130
18131       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18132     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18133     (test "X$CXX" != "Xg++"))) ; then
18134   ac_ext=cpp
18135 ac_cpp='$CXXCPP $CPPFLAGS'
18136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18140 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18141 if test -z "$CXXCPP"; then
18142   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18143   $as_echo_n "(cached) " >&6
18144 else
18145       # Double quotes because CXXCPP needs to be expanded
18146     for CXXCPP in "$CXX -E" "/lib/cpp"
18147     do
18148       ac_preproc_ok=false
18149 for ac_cxx_preproc_warn_flag in '' yes
18150 do
18151   # Use a header file that comes with gcc, so configuring glibc
18152   # with a fresh cross-compiler works.
18153   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18154   # <limits.h> exists even on freestanding compilers.
18155   # On the NeXT, cc -E runs the code through the compiler's parser,
18156   # not just through cpp. "Syntax error" is here to catch this case.
18157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h.  */
18159 #ifdef __STDC__
18160 # include <limits.h>
18161 #else
18162 # include <assert.h>
18163 #endif
18164                      Syntax error
18165 _ACEOF
18166 if ac_fn_cxx_try_cpp "$LINENO"; then :
18167
18168 else
18169   # Broken: fails on valid input.
18170 continue
18171 fi
18172 rm -f conftest.err conftest.$ac_ext
18173
18174   # OK, works on sane cases.  Now check whether nonexistent headers
18175   # can be detected and how.
18176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h.  */
18178 #include <ac_nonexistent.h>
18179 _ACEOF
18180 if ac_fn_cxx_try_cpp "$LINENO"; then :
18181   # Broken: success on invalid input.
18182 continue
18183 else
18184   # Passes both tests.
18185 ac_preproc_ok=:
18186 break
18187 fi
18188 rm -f conftest.err conftest.$ac_ext
18189
18190 done
18191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18192 rm -f conftest.err conftest.$ac_ext
18193 if $ac_preproc_ok; then :
18194   break
18195 fi
18196
18197     done
18198     ac_cv_prog_CXXCPP=$CXXCPP
18199
18200 fi
18201   CXXCPP=$ac_cv_prog_CXXCPP
18202 else
18203   ac_cv_prog_CXXCPP=$CXXCPP
18204 fi
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18206 $as_echo "$CXXCPP" >&6; }
18207 ac_preproc_ok=false
18208 for ac_cxx_preproc_warn_flag in '' yes
18209 do
18210   # Use a header file that comes with gcc, so configuring glibc
18211   # with a fresh cross-compiler works.
18212   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18213   # <limits.h> exists even on freestanding compilers.
18214   # On the NeXT, cc -E runs the code through the compiler's parser,
18215   # not just through cpp. "Syntax error" is here to catch this case.
18216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217 /* end confdefs.h.  */
18218 #ifdef __STDC__
18219 # include <limits.h>
18220 #else
18221 # include <assert.h>
18222 #endif
18223                      Syntax error
18224 _ACEOF
18225 if ac_fn_cxx_try_cpp "$LINENO"; then :
18226
18227 else
18228   # Broken: fails on valid input.
18229 continue
18230 fi
18231 rm -f conftest.err conftest.$ac_ext
18232
18233   # OK, works on sane cases.  Now check whether nonexistent headers
18234   # can be detected and how.
18235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h.  */
18237 #include <ac_nonexistent.h>
18238 _ACEOF
18239 if ac_fn_cxx_try_cpp "$LINENO"; then :
18240   # Broken: success on invalid input.
18241 continue
18242 else
18243   # Passes both tests.
18244 ac_preproc_ok=:
18245 break
18246 fi
18247 rm -f conftest.err conftest.$ac_ext
18248
18249 done
18250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18251 rm -f conftest.err conftest.$ac_ext
18252 if $ac_preproc_ok; then :
18253
18254 else
18255   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18257 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18258 See \`config.log' for more details." "$LINENO" 5; }
18259 fi
18260
18261 ac_ext=c
18262 ac_cpp='$CPP $CPPFLAGS'
18263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18266
18267 else
18268   _lt_caught_CXX_error=yes
18269 fi
18270
18271 ac_ext=cpp
18272 ac_cpp='$CXXCPP $CPPFLAGS'
18273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18276
18277 archive_cmds_need_lc_CXX=no
18278 allow_undefined_flag_CXX=
18279 always_export_symbols_CXX=no
18280 archive_expsym_cmds_CXX=
18281 compiler_needs_object_CXX=no
18282 export_dynamic_flag_spec_CXX=
18283 hardcode_direct_CXX=no
18284 hardcode_direct_absolute_CXX=no
18285 hardcode_libdir_flag_spec_CXX=
18286 hardcode_libdir_flag_spec_ld_CXX=
18287 hardcode_libdir_separator_CXX=
18288 hardcode_minus_L_CXX=no
18289 hardcode_shlibpath_var_CXX=unsupported
18290 hardcode_automatic_CXX=no
18291 inherit_rpath_CXX=no
18292 module_cmds_CXX=
18293 module_expsym_cmds_CXX=
18294 link_all_deplibs_CXX=unknown
18295 old_archive_cmds_CXX=$old_archive_cmds
18296 reload_flag_CXX=$reload_flag
18297 reload_cmds_CXX=$reload_cmds
18298 no_undefined_flag_CXX=
18299 whole_archive_flag_spec_CXX=
18300 enable_shared_with_static_runtimes_CXX=no
18301
18302 # Source file extension for C++ test sources.
18303 ac_ext=cpp
18304
18305 # Object file extension for compiled C++ test sources.
18306 objext=o
18307 objext_CXX=$objext
18308
18309 # No sense in running all these tests if we already determined that
18310 # the CXX compiler isn't working.  Some variables (like enable_shared)
18311 # are currently assumed to apply to all compilers on this platform,
18312 # and will be corrupted by setting them based on a non-working compiler.
18313 if test "$_lt_caught_CXX_error" != yes; then
18314   # Code to be used in simple compile tests
18315   lt_simple_compile_test_code="int some_variable = 0;"
18316
18317   # Code to be used in simple link tests
18318   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18319
18320   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18321
18322
18323
18324
18325
18326
18327 # If no C compiler was specified, use CC.
18328 LTCC=${LTCC-"$CC"}
18329
18330 # If no C compiler flags were specified, use CFLAGS.
18331 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18332
18333 # Allow CC to be a program name with arguments.
18334 compiler=$CC
18335
18336
18337   # save warnings/boilerplate of simple test code
18338   ac_outfile=conftest.$ac_objext
18339 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18340 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18341 _lt_compiler_boilerplate=`cat conftest.err`
18342 $RM conftest*
18343
18344   ac_outfile=conftest.$ac_objext
18345 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18346 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18347 _lt_linker_boilerplate=`cat conftest.err`
18348 $RM -r conftest*
18349
18350
18351   # Allow CC to be a program name with arguments.
18352   lt_save_CC=$CC
18353   lt_save_LD=$LD
18354   lt_save_GCC=$GCC
18355   GCC=$GXX
18356   lt_save_with_gnu_ld=$with_gnu_ld
18357   lt_save_path_LD=$lt_cv_path_LD
18358   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18359     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18360   else
18361     $as_unset lt_cv_prog_gnu_ld
18362   fi
18363   if test -n "${lt_cv_path_LDCXX+set}"; then
18364     lt_cv_path_LD=$lt_cv_path_LDCXX
18365   else
18366     $as_unset lt_cv_path_LD
18367   fi
18368   test -z "${LDCXX+set}" || LD=$LDCXX
18369   CC=${CXX-"c++"}
18370   compiler=$CC
18371   compiler_CXX=$CC
18372   for cc_temp in $compiler""; do
18373   case $cc_temp in
18374     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18375     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18376     \-*) ;;
18377     *) break;;
18378   esac
18379 done
18380 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18381
18382
18383   if test -n "$compiler"; then
18384     # We don't want -fno-exception when compiling C++ code, so set the
18385     # no_builtin_flag separately
18386     if test "$GXX" = yes; then
18387       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18388     else
18389       lt_prog_compiler_no_builtin_flag_CXX=
18390     fi
18391
18392     if test "$GXX" = yes; then
18393       # Set up default GNU C++ configuration
18394
18395
18396
18397 # Check whether --with-gnu-ld was given.
18398 if test "${with_gnu_ld+set}" = set; then :
18399   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18400 else
18401   with_gnu_ld=no
18402 fi
18403
18404 ac_prog=ld
18405 if test "$GCC" = yes; then
18406   # Check if gcc -print-prog-name=ld gives a path.
18407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18408 $as_echo_n "checking for ld used by $CC... " >&6; }
18409   case $host in
18410   *-*-mingw*)
18411     # gcc leaves a trailing carriage return which upsets mingw
18412     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18413   *)
18414     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18415   esac
18416   case $ac_prog in
18417     # Accept absolute paths.
18418     [\\/]* | ?:[\\/]*)
18419       re_direlt='/[^/][^/]*/\.\./'
18420       # Canonicalize the pathname of ld
18421       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18422       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18423         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18424       done
18425       test -z "$LD" && LD="$ac_prog"
18426       ;;
18427   "")
18428     # If it fails, then pretend we aren't using GCC.
18429     ac_prog=ld
18430     ;;
18431   *)
18432     # If it is relative, then search for the first ld in PATH.
18433     with_gnu_ld=unknown
18434     ;;
18435   esac
18436 elif test "$with_gnu_ld" = yes; then
18437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18438 $as_echo_n "checking for GNU ld... " >&6; }
18439 else
18440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18441 $as_echo_n "checking for non-GNU ld... " >&6; }
18442 fi
18443 if test "${lt_cv_path_LD+set}" = set; then :
18444   $as_echo_n "(cached) " >&6
18445 else
18446   if test -z "$LD"; then
18447   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18448   for ac_dir in $PATH; do
18449     IFS="$lt_save_ifs"
18450     test -z "$ac_dir" && ac_dir=.
18451     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18452       lt_cv_path_LD="$ac_dir/$ac_prog"
18453       # Check to see if the program is GNU ld.  I'd rather use --version,
18454       # but apparently some variants of GNU ld only accept -v.
18455       # Break only if it was the GNU/non-GNU ld that we prefer.
18456       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18457       *GNU* | *'with BFD'*)
18458         test "$with_gnu_ld" != no && break
18459         ;;
18460       *)
18461         test "$with_gnu_ld" != yes && break
18462         ;;
18463       esac
18464     fi
18465   done
18466   IFS="$lt_save_ifs"
18467 else
18468   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18469 fi
18470 fi
18471
18472 LD="$lt_cv_path_LD"
18473 if test -n "$LD"; then
18474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18475 $as_echo "$LD" >&6; }
18476 else
18477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18478 $as_echo "no" >&6; }
18479 fi
18480 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18482 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18483 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18484   $as_echo_n "(cached) " >&6
18485 else
18486   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18487 case `$LD -v 2>&1 </dev/null` in
18488 *GNU* | *'with BFD'*)
18489   lt_cv_prog_gnu_ld=yes
18490   ;;
18491 *)
18492   lt_cv_prog_gnu_ld=no
18493   ;;
18494 esac
18495 fi
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18497 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18498 with_gnu_ld=$lt_cv_prog_gnu_ld
18499
18500
18501
18502
18503
18504
18505
18506       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18507       # archiving commands below assume that GNU ld is being used.
18508       if test "$with_gnu_ld" = yes; then
18509         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18510         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'
18511
18512         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18513         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18514
18515         # If archive_cmds runs LD, not CC, wlarc should be empty
18516         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18517         #     investigate it a little bit more. (MM)
18518         wlarc='${wl}'
18519
18520         # ancient GNU ld didn't support --whole-archive et. al.
18521         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18522           $GREP 'no-whole-archive' > /dev/null; then
18523           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18524         else
18525           whole_archive_flag_spec_CXX=
18526         fi
18527       else
18528         with_gnu_ld=no
18529         wlarc=
18530
18531         # A generic and very simple default shared library creation
18532         # command for GNU C++ for the case where it uses the native
18533         # linker, instead of GNU ld.  If possible, this setting should
18534         # overridden to take advantage of the native linker features on
18535         # the platform it is being used on.
18536         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18537       fi
18538
18539       # Commands to make compiler produce verbose output that lists
18540       # what "hidden" libraries, object files and flags are used when
18541       # linking a shared library.
18542       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18543
18544     else
18545       GXX=no
18546       with_gnu_ld=no
18547       wlarc=
18548     fi
18549
18550     # PORTME: fill in a description of your system's C++ link characteristics
18551     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18552 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18553     ld_shlibs_CXX=yes
18554     case $host_os in
18555       aix3*)
18556         # FIXME: insert proper C++ library support
18557         ld_shlibs_CXX=no
18558         ;;
18559       aix[4-9]*)
18560         if test "$host_cpu" = ia64; then
18561           # On IA64, the linker does run time linking by default, so we don't
18562           # have to do anything special.
18563           aix_use_runtimelinking=no
18564           exp_sym_flag='-Bexport'
18565           no_entry_flag=""
18566         else
18567           aix_use_runtimelinking=no
18568
18569           # Test if we are trying to use run time linking or normal
18570           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18571           # need to do runtime linking.
18572           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18573             for ld_flag in $LDFLAGS; do
18574               case $ld_flag in
18575               *-brtl*)
18576                 aix_use_runtimelinking=yes
18577                 break
18578                 ;;
18579               esac
18580             done
18581             ;;
18582           esac
18583
18584           exp_sym_flag='-bexport'
18585           no_entry_flag='-bnoentry'
18586         fi
18587
18588         # When large executables or shared objects are built, AIX ld can
18589         # have problems creating the table of contents.  If linking a library
18590         # or program results in "error TOC overflow" add -mminimal-toc to
18591         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18592         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18593
18594         archive_cmds_CXX=''
18595         hardcode_direct_CXX=yes
18596         hardcode_direct_absolute_CXX=yes
18597         hardcode_libdir_separator_CXX=':'
18598         link_all_deplibs_CXX=yes
18599         file_list_spec_CXX='${wl}-f,'
18600
18601         if test "$GXX" = yes; then
18602           case $host_os in aix4.[012]|aix4.[012].*)
18603           # We only want to do this on AIX 4.2 and lower, the check
18604           # below for broken collect2 doesn't work under 4.3+
18605           collect2name=`${CC} -print-prog-name=collect2`
18606           if test -f "$collect2name" &&
18607              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18608           then
18609             # We have reworked collect2
18610             :
18611           else
18612             # We have old collect2
18613             hardcode_direct_CXX=unsupported
18614             # It fails to find uninstalled libraries when the uninstalled
18615             # path is not listed in the libpath.  Setting hardcode_minus_L
18616             # to unsupported forces relinking
18617             hardcode_minus_L_CXX=yes
18618             hardcode_libdir_flag_spec_CXX='-L$libdir'
18619             hardcode_libdir_separator_CXX=
18620           fi
18621           esac
18622           shared_flag='-shared'
18623           if test "$aix_use_runtimelinking" = yes; then
18624             shared_flag="$shared_flag "'${wl}-G'
18625           fi
18626         else
18627           # not using gcc
18628           if test "$host_cpu" = ia64; then
18629           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18630           # chokes on -Wl,-G. The following line is correct:
18631           shared_flag='-G'
18632           else
18633             if test "$aix_use_runtimelinking" = yes; then
18634               shared_flag='${wl}-G'
18635             else
18636               shared_flag='${wl}-bM:SRE'
18637             fi
18638           fi
18639         fi
18640
18641         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18642         # It seems that -bexpall does not export symbols beginning with
18643         # underscore (_), so it is better to generate a list of symbols to
18644         # export.
18645         always_export_symbols_CXX=yes
18646         if test "$aix_use_runtimelinking" = yes; then
18647           # Warning - without using the other runtime loading flags (-brtl),
18648           # -berok will link without error, but may produce a broken library.
18649           allow_undefined_flag_CXX='-berok'
18650           # Determine the default libpath from the value encoded in an empty
18651           # executable.
18652           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653 /* end confdefs.h.  */
18654
18655 int
18656 main ()
18657 {
18658
18659   ;
18660   return 0;
18661 }
18662 _ACEOF
18663 if ac_fn_cxx_try_link "$LINENO"; then :
18664
18665 lt_aix_libpath_sed='
18666     /Import File Strings/,/^$/ {
18667         /^0/ {
18668             s/^0  *\(.*\)$/\1/
18669             p
18670         }
18671     }'
18672 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18673 # Check for a 64-bit object if we didn't find anything.
18674 if test -z "$aix_libpath"; then
18675   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18676 fi
18677 fi
18678 rm -f core conftest.err conftest.$ac_objext \
18679     conftest$ac_exeext conftest.$ac_ext
18680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18681
18682           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18683
18684           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"
18685         else
18686           if test "$host_cpu" = ia64; then
18687             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18688             allow_undefined_flag_CXX="-z nodefs"
18689             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"
18690           else
18691             # Determine the default libpath from the value encoded in an
18692             # empty executable.
18693             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18694 /* end confdefs.h.  */
18695
18696 int
18697 main ()
18698 {
18699
18700   ;
18701   return 0;
18702 }
18703 _ACEOF
18704 if ac_fn_cxx_try_link "$LINENO"; then :
18705
18706 lt_aix_libpath_sed='
18707     /Import File Strings/,/^$/ {
18708         /^0/ {
18709             s/^0  *\(.*\)$/\1/
18710             p
18711         }
18712     }'
18713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18714 # Check for a 64-bit object if we didn't find anything.
18715 if test -z "$aix_libpath"; then
18716   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18717 fi
18718 fi
18719 rm -f core conftest.err conftest.$ac_objext \
18720     conftest$ac_exeext conftest.$ac_ext
18721 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18722
18723             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18724             # Warning - without using the other run time loading flags,
18725             # -berok will link without error, but may produce a broken library.
18726             no_undefined_flag_CXX=' ${wl}-bernotok'
18727             allow_undefined_flag_CXX=' ${wl}-berok'
18728             if test "$with_gnu_ld" = yes; then
18729               # We only use this code for GNU lds that support --whole-archive.
18730               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18731             else
18732               # Exported symbols can be pulled into shared objects from archives
18733               whole_archive_flag_spec_CXX='$convenience'
18734             fi
18735             archive_cmds_need_lc_CXX=yes
18736             # This is similar to how AIX traditionally builds its shared
18737             # libraries.
18738             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'
18739           fi
18740         fi
18741         ;;
18742
18743       beos*)
18744         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18745           allow_undefined_flag_CXX=unsupported
18746           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18747           # support --undefined.  This deserves some investigation.  FIXME
18748           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18749         else
18750           ld_shlibs_CXX=no
18751         fi
18752         ;;
18753
18754       chorus*)
18755         case $cc_basename in
18756           *)
18757           # FIXME: insert proper C++ library support
18758           ld_shlibs_CXX=no
18759           ;;
18760         esac
18761         ;;
18762
18763       cygwin* | mingw* | pw32* | cegcc*)
18764         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18765         # as there is no search path for DLLs.
18766         hardcode_libdir_flag_spec_CXX='-L$libdir'
18767         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18768         allow_undefined_flag_CXX=unsupported
18769         always_export_symbols_CXX=no
18770         enable_shared_with_static_runtimes_CXX=yes
18771
18772         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18773           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'
18774           # If the export-symbols file already is a .def file (1st line
18775           # is EXPORTS), use it as is; otherwise, prepend...
18776           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18777             cp $export_symbols $output_objdir/$soname.def;
18778           else
18779             echo EXPORTS > $output_objdir/$soname.def;
18780             cat $export_symbols >> $output_objdir/$soname.def;
18781           fi~
18782           $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'
18783         else
18784           ld_shlibs_CXX=no
18785         fi
18786         ;;
18787       darwin* | rhapsody*)
18788
18789
18790   archive_cmds_need_lc_CXX=no
18791   hardcode_direct_CXX=no
18792   hardcode_automatic_CXX=yes
18793   hardcode_shlibpath_var_CXX=unsupported
18794   if test "$lt_cv_ld_force_load" = "yes"; then
18795     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\"`'
18796   else
18797     whole_archive_flag_spec_CXX=''
18798   fi
18799   link_all_deplibs_CXX=yes
18800   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18801   case $cc_basename in
18802      ifort*) _lt_dar_can_shared=yes ;;
18803      *) _lt_dar_can_shared=$GCC ;;
18804   esac
18805   if test "$_lt_dar_can_shared" = "yes"; then
18806     output_verbose_link_cmd=func_echo_all
18807     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}"
18808     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18809     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}"
18810     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}"
18811        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18812       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}"
18813       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}"
18814     fi
18815
18816   else
18817   ld_shlibs_CXX=no
18818   fi
18819
18820         ;;
18821
18822       dgux*)
18823         case $cc_basename in
18824           ec++*)
18825             # FIXME: insert proper C++ library support
18826             ld_shlibs_CXX=no
18827             ;;
18828           ghcx*)
18829             # Green Hills C++ Compiler
18830             # FIXME: insert proper C++ library support
18831             ld_shlibs_CXX=no
18832             ;;
18833           *)
18834             # FIXME: insert proper C++ library support
18835             ld_shlibs_CXX=no
18836             ;;
18837         esac
18838         ;;
18839
18840       freebsd[12]*)
18841         # C++ shared libraries reported to be fairly broken before
18842         # switch to ELF
18843         ld_shlibs_CXX=no
18844         ;;
18845
18846       freebsd-elf*)
18847         archive_cmds_need_lc_CXX=no
18848         ;;
18849
18850       freebsd* | dragonfly*)
18851         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18852         # conventions
18853         ld_shlibs_CXX=yes
18854         ;;
18855
18856       gnu*)
18857         ;;
18858
18859       haiku*)
18860         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18861         link_all_deplibs_CXX=yes
18862         ;;
18863
18864       hpux9*)
18865         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18866         hardcode_libdir_separator_CXX=:
18867         export_dynamic_flag_spec_CXX='${wl}-E'
18868         hardcode_direct_CXX=yes
18869         hardcode_minus_L_CXX=yes # Not in the search PATH,
18870                                              # but as the default
18871                                              # location of the library.
18872
18873         case $cc_basename in
18874           CC*)
18875             # FIXME: insert proper C++ library support
18876             ld_shlibs_CXX=no
18877             ;;
18878           aCC*)
18879             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'
18880             # Commands to make compiler produce verbose output that lists
18881             # what "hidden" libraries, object files and flags are used when
18882             # linking a shared library.
18883             #
18884             # There doesn't appear to be a way to prevent this compiler from
18885             # explicitly linking system object files so we need to strip them
18886             # from the output so that they don't get included in the library
18887             # dependencies.
18888             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"'
18889             ;;
18890           *)
18891             if test "$GXX" = yes; then
18892               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'
18893             else
18894               # FIXME: insert proper C++ library support
18895               ld_shlibs_CXX=no
18896             fi
18897             ;;
18898         esac
18899         ;;
18900
18901       hpux10*|hpux11*)
18902         if test $with_gnu_ld = no; then
18903           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18904           hardcode_libdir_separator_CXX=:
18905
18906           case $host_cpu in
18907             hppa*64*|ia64*)
18908               ;;
18909             *)
18910               export_dynamic_flag_spec_CXX='${wl}-E'
18911               ;;
18912           esac
18913         fi
18914         case $host_cpu in
18915           hppa*64*|ia64*)
18916             hardcode_direct_CXX=no
18917             hardcode_shlibpath_var_CXX=no
18918             ;;
18919           *)
18920             hardcode_direct_CXX=yes
18921             hardcode_direct_absolute_CXX=yes
18922             hardcode_minus_L_CXX=yes # Not in the search PATH,
18923                                                  # but as the default
18924                                                  # location of the library.
18925             ;;
18926         esac
18927
18928         case $cc_basename in
18929           CC*)
18930             # FIXME: insert proper C++ library support
18931             ld_shlibs_CXX=no
18932             ;;
18933           aCC*)
18934             case $host_cpu in
18935               hppa*64*)
18936                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18937                 ;;
18938               ia64*)
18939                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18940                 ;;
18941               *)
18942                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18943                 ;;
18944             esac
18945             # Commands to make compiler produce verbose output that lists
18946             # what "hidden" libraries, object files and flags are used when
18947             # linking a shared library.
18948             #
18949             # There doesn't appear to be a way to prevent this compiler from
18950             # explicitly linking system object files so we need to strip them
18951             # from the output so that they don't get included in the library
18952             # dependencies.
18953             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"'
18954             ;;
18955           *)
18956             if test "$GXX" = yes; then
18957               if test $with_gnu_ld = no; then
18958                 case $host_cpu in
18959                   hppa*64*)
18960                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18961                     ;;
18962                   ia64*)
18963                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18964                     ;;
18965                   *)
18966                     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'
18967                     ;;
18968                 esac
18969               fi
18970             else
18971               # FIXME: insert proper C++ library support
18972               ld_shlibs_CXX=no
18973             fi
18974             ;;
18975         esac
18976         ;;
18977
18978       interix[3-9]*)
18979         hardcode_direct_CXX=no
18980         hardcode_shlibpath_var_CXX=no
18981         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18982         export_dynamic_flag_spec_CXX='${wl}-E'
18983         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18984         # Instead, shared libraries are loaded at an image base (0x10000000 by
18985         # default) and relocated if they conflict, which is a slow very memory
18986         # consuming and fragmenting process.  To avoid this, we pick a random,
18987         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18988         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18989         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'
18990         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'
18991         ;;
18992       irix5* | irix6*)
18993         case $cc_basename in
18994           CC*)
18995             # SGI C++
18996             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'
18997
18998             # Archives containing C++ object files must be created using
18999             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19000             # necessary to make sure instantiated templates are included
19001             # in the archive.
19002             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19003             ;;
19004           *)
19005             if test "$GXX" = yes; then
19006               if test "$with_gnu_ld" = no; then
19007                 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'
19008               else
19009                 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'
19010               fi
19011             fi
19012             link_all_deplibs_CXX=yes
19013             ;;
19014         esac
19015         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19016         hardcode_libdir_separator_CXX=:
19017         inherit_rpath_CXX=yes
19018         ;;
19019
19020       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19021         case $cc_basename in
19022           KCC*)
19023             # Kuck and Associates, Inc. (KAI) C++ Compiler
19024
19025             # KCC will only create a shared library if the output file
19026             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19027             # to its proper name (with version) after linking.
19028             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'
19029             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'
19030             # Commands to make compiler produce verbose output that lists
19031             # what "hidden" libraries, object files and flags are used when
19032             # linking a shared library.
19033             #
19034             # There doesn't appear to be a way to prevent this compiler from
19035             # explicitly linking system object files so we need to strip them
19036             # from the output so that they don't get included in the library
19037             # dependencies.
19038             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"'
19039
19040             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19041             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19042
19043             # Archives containing C++ object files must be created using
19044             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19045             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19046             ;;
19047           icpc* | ecpc* )
19048             # Intel C++
19049             with_gnu_ld=yes
19050             # version 8.0 and above of icpc choke on multiply defined symbols
19051             # if we add $predep_objects and $postdep_objects, however 7.1 and
19052             # earlier do not add the objects themselves.
19053             case `$CC -V 2>&1` in
19054               *"Version 7."*)
19055                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19056                 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'
19057                 ;;
19058               *)  # Version 8.0 or newer
19059                 tmp_idyn=
19060                 case $host_cpu in
19061                   ia64*) tmp_idyn=' -i_dynamic';;
19062                 esac
19063                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19064                 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'
19065                 ;;
19066             esac
19067             archive_cmds_need_lc_CXX=no
19068             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19069             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19070             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19071             ;;
19072           pgCC* | pgcpp*)
19073             # Portland Group C++ compiler
19074             case `$CC -V` in
19075             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19076               prelink_cmds_CXX='tpldir=Template.dir~
19077                 rm -rf $tpldir~
19078                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19079                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19080               old_archive_cmds_CXX='tpldir=Template.dir~
19081                 rm -rf $tpldir~
19082                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19083                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19084                 $RANLIB $oldlib'
19085               archive_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 -o $lib'
19089               archive_expsym_cmds_CXX='tpldir=Template.dir~
19090                 rm -rf $tpldir~
19091                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19092                 $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'
19093               ;;
19094             *) # Version 6 and above use weak symbols
19095               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19096               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'
19097               ;;
19098             esac
19099
19100             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19101             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19102             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'
19103             ;;
19104           cxx*)
19105             # Compaq C++
19106             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19107             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'
19108
19109             runpath_var=LD_RUN_PATH
19110             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19111             hardcode_libdir_separator_CXX=:
19112
19113             # Commands to make compiler produce verbose output that lists
19114             # what "hidden" libraries, object files and flags are used when
19115             # linking a shared library.
19116             #
19117             # There doesn't appear to be a way to prevent this compiler from
19118             # explicitly linking system object files so we need to strip them
19119             # from the output so that they don't get included in the library
19120             # dependencies.
19121             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'
19122             ;;
19123           xl* | mpixl* | bgxl*)
19124             # IBM XL 8.0 on PPC, with GNU ld
19125             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19126             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19127             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19128             if test "x$supports_anon_versioning" = xyes; then
19129               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19130                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19131                 echo "local: *; };" >> $output_objdir/$libname.ver~
19132                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19133             fi
19134             ;;
19135           *)
19136             case `$CC -V 2>&1 | sed 5q` in
19137             *Sun\ C*)
19138               # Sun C++ 5.9
19139               no_undefined_flag_CXX=' -zdefs'
19140               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19141               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'
19142               hardcode_libdir_flag_spec_CXX='-R$libdir'
19143               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'
19144               compiler_needs_object_CXX=yes
19145
19146               # Not sure whether something based on
19147               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19148               # would be better.
19149               output_verbose_link_cmd='func_echo_all'
19150
19151               # Archives containing C++ object files must be created using
19152               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19153               # necessary to make sure instantiated templates are included
19154               # in the archive.
19155               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19156               ;;
19157             esac
19158             ;;
19159         esac
19160         ;;
19161
19162       lynxos*)
19163         # FIXME: insert proper C++ library support
19164         ld_shlibs_CXX=no
19165         ;;
19166
19167       m88k*)
19168         # FIXME: insert proper C++ library support
19169         ld_shlibs_CXX=no
19170         ;;
19171
19172       mvs*)
19173         case $cc_basename in
19174           cxx*)
19175             # FIXME: insert proper C++ library support
19176             ld_shlibs_CXX=no
19177             ;;
19178           *)
19179             # FIXME: insert proper C++ library support
19180             ld_shlibs_CXX=no
19181             ;;
19182         esac
19183         ;;
19184
19185       netbsd*)
19186         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19187           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19188           wlarc=
19189           hardcode_libdir_flag_spec_CXX='-R$libdir'
19190           hardcode_direct_CXX=yes
19191           hardcode_shlibpath_var_CXX=no
19192         fi
19193         # Workaround some broken pre-1.5 toolchains
19194         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19195         ;;
19196
19197       *nto* | *qnx*)
19198         ld_shlibs_CXX=yes
19199         ;;
19200
19201       openbsd2*)
19202         # C++ shared libraries are fairly broken
19203         ld_shlibs_CXX=no
19204         ;;
19205
19206       openbsd*)
19207         if test -f /usr/libexec/ld.so; then
19208           hardcode_direct_CXX=yes
19209           hardcode_shlibpath_var_CXX=no
19210           hardcode_direct_absolute_CXX=yes
19211           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19212           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19213           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19214             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19215             export_dynamic_flag_spec_CXX='${wl}-E'
19216             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19217           fi
19218           output_verbose_link_cmd=func_echo_all
19219         else
19220           ld_shlibs_CXX=no
19221         fi
19222         ;;
19223
19224       osf3* | osf4* | osf5*)
19225         case $cc_basename in
19226           KCC*)
19227             # Kuck and Associates, Inc. (KAI) C++ Compiler
19228
19229             # KCC will only create a shared library if the output file
19230             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19231             # to its proper name (with version) after linking.
19232             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'
19233
19234             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19235             hardcode_libdir_separator_CXX=:
19236
19237             # Archives containing C++ object files must be created using
19238             # the KAI C++ compiler.
19239             case $host in
19240               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19241               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19242             esac
19243             ;;
19244           RCC*)
19245             # Rational C++ 2.4.1
19246             # FIXME: insert proper C++ library support
19247             ld_shlibs_CXX=no
19248             ;;
19249           cxx*)
19250             case $host in
19251               osf3*)
19252                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19253                 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'
19254                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19255                 ;;
19256               *)
19257                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19258                 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'
19259                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19260                   echo "-hidden">> $lib.exp~
19261                   $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~
19262                   $RM $lib.exp'
19263                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19264                 ;;
19265             esac
19266
19267             hardcode_libdir_separator_CXX=:
19268
19269             # Commands to make compiler produce verbose output that lists
19270             # what "hidden" libraries, object files and flags are used when
19271             # linking a shared library.
19272             #
19273             # There doesn't appear to be a way to prevent this compiler from
19274             # explicitly linking system object files so we need to strip them
19275             # from the output so that they don't get included in the library
19276             # dependencies.
19277             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"'
19278             ;;
19279           *)
19280             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19281               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19282               case $host in
19283                 osf3*)
19284                   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'
19285                   ;;
19286                 *)
19287                   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'
19288                   ;;
19289               esac
19290
19291               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19292               hardcode_libdir_separator_CXX=:
19293
19294               # Commands to make compiler produce verbose output that lists
19295               # what "hidden" libraries, object files and flags are used when
19296               # linking a shared library.
19297               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19298
19299             else
19300               # FIXME: insert proper C++ library support
19301               ld_shlibs_CXX=no
19302             fi
19303             ;;
19304         esac
19305         ;;
19306
19307       psos*)
19308         # FIXME: insert proper C++ library support
19309         ld_shlibs_CXX=no
19310         ;;
19311
19312       sunos4*)
19313         case $cc_basename in
19314           CC*)
19315             # Sun C++ 4.x
19316             # FIXME: insert proper C++ library support
19317             ld_shlibs_CXX=no
19318             ;;
19319           lcc*)
19320             # Lucid
19321             # FIXME: insert proper C++ library support
19322             ld_shlibs_CXX=no
19323             ;;
19324           *)
19325             # FIXME: insert proper C++ library support
19326             ld_shlibs_CXX=no
19327             ;;
19328         esac
19329         ;;
19330
19331       solaris*)
19332         case $cc_basename in
19333           CC*)
19334             # Sun C++ 4.2, 5.x and Centerline C++
19335             archive_cmds_need_lc_CXX=yes
19336             no_undefined_flag_CXX=' -zdefs'
19337             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19338             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19339               $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'
19340
19341             hardcode_libdir_flag_spec_CXX='-R$libdir'
19342             hardcode_shlibpath_var_CXX=no
19343             case $host_os in
19344               solaris2.[0-5] | solaris2.[0-5].*) ;;
19345               *)
19346                 # The compiler driver will combine and reorder linker options,
19347                 # but understands `-z linker_flag'.
19348                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19349                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19350                 ;;
19351             esac
19352             link_all_deplibs_CXX=yes
19353
19354             output_verbose_link_cmd='func_echo_all'
19355
19356             # Archives containing C++ object files must be created using
19357             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19358             # necessary to make sure instantiated templates are included
19359             # in the archive.
19360             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19361             ;;
19362           gcx*)
19363             # Green Hills C++ Compiler
19364             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19365
19366             # The C++ compiler must be used to create the archive.
19367             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19368             ;;
19369           *)
19370             # GNU C++ compiler with Solaris linker
19371             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19372               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19373               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19374                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19375                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19376                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19377
19378                 # Commands to make compiler produce verbose output that lists
19379                 # what "hidden" libraries, object files and flags are used when
19380                 # linking a shared library.
19381                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19382               else
19383                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19384                 # platform.
19385                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19386                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19387                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19388
19389                 # Commands to make compiler produce verbose output that lists
19390                 # what "hidden" libraries, object files and flags are used when
19391                 # linking a shared library.
19392                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19393               fi
19394
19395               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19396               case $host_os in
19397                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19398                 *)
19399                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19400                   ;;
19401               esac
19402             fi
19403             ;;
19404         esac
19405         ;;
19406
19407     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19408       no_undefined_flag_CXX='${wl}-z,text'
19409       archive_cmds_need_lc_CXX=no
19410       hardcode_shlibpath_var_CXX=no
19411       runpath_var='LD_RUN_PATH'
19412
19413       case $cc_basename in
19414         CC*)
19415           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19416           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19417           ;;
19418         *)
19419           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19420           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19421           ;;
19422       esac
19423       ;;
19424
19425       sysv5* | sco3.2v5* | sco5v6*)
19426         # Note: We can NOT use -z defs as we might desire, because we do not
19427         # link with -lc, and that would cause any symbols used from libc to
19428         # always be unresolved, which means just about no library would
19429         # ever link correctly.  If we're not using GNU ld we use -z text
19430         # though, which does catch some bad symbols but isn't as heavy-handed
19431         # as -z defs.
19432         no_undefined_flag_CXX='${wl}-z,text'
19433         allow_undefined_flag_CXX='${wl}-z,nodefs'
19434         archive_cmds_need_lc_CXX=no
19435         hardcode_shlibpath_var_CXX=no
19436         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19437         hardcode_libdir_separator_CXX=':'
19438         link_all_deplibs_CXX=yes
19439         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19440         runpath_var='LD_RUN_PATH'
19441
19442         case $cc_basename in
19443           CC*)
19444             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19445             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19446             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19447               '"$old_archive_cmds_CXX"
19448             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19449               '"$reload_cmds_CXX"
19450             ;;
19451           *)
19452             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19453             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19454             ;;
19455         esac
19456       ;;
19457
19458       tandem*)
19459         case $cc_basename in
19460           NCC*)
19461             # NonStop-UX NCC 3.20
19462             # FIXME: insert proper C++ library support
19463             ld_shlibs_CXX=no
19464             ;;
19465           *)
19466             # FIXME: insert proper C++ library support
19467             ld_shlibs_CXX=no
19468             ;;
19469         esac
19470         ;;
19471
19472       vxworks*)
19473         # FIXME: insert proper C++ library support
19474         ld_shlibs_CXX=no
19475         ;;
19476
19477       *)
19478         # FIXME: insert proper C++ library support
19479         ld_shlibs_CXX=no
19480         ;;
19481     esac
19482
19483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19484 $as_echo "$ld_shlibs_CXX" >&6; }
19485     test "$ld_shlibs_CXX" = no && can_build_shared=no
19486
19487     GCC_CXX="$GXX"
19488     LD_CXX="$LD"
19489
19490     ## CAVEAT EMPTOR:
19491     ## There is no encapsulation within the following macros, do not change
19492     ## the running order or otherwise move them around unless you know exactly
19493     ## what you are doing...
19494     # Dependencies to place before and after the object being linked:
19495 predep_objects_CXX=
19496 postdep_objects_CXX=
19497 predeps_CXX=
19498 postdeps_CXX=
19499 compiler_lib_search_path_CXX=
19500
19501 cat > conftest.$ac_ext <<_LT_EOF
19502 class Foo
19503 {
19504 public:
19505   Foo (void) { a = 0; }
19506 private:
19507   int a;
19508 };
19509 _LT_EOF
19510
19511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19512   (eval $ac_compile) 2>&5
19513   ac_status=$?
19514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19515   test $ac_status = 0; }; then
19516   # Parse the compiler output and extract the necessary
19517   # objects, libraries and library flags.
19518
19519   # Sentinel used to keep track of whether or not we are before
19520   # the conftest object file.
19521   pre_test_object_deps_done=no
19522
19523   for p in `eval "$output_verbose_link_cmd"`; do
19524     case $p in
19525
19526     -L* | -R* | -l*)
19527        # Some compilers place space between "-{L,R}" and the path.
19528        # Remove the space.
19529        if test $p = "-L" ||
19530           test $p = "-R"; then
19531          prev=$p
19532          continue
19533        else
19534          prev=
19535        fi
19536
19537        if test "$pre_test_object_deps_done" = no; then
19538          case $p in
19539          -L* | -R*)
19540            # Internal compiler library paths should come after those
19541            # provided the user.  The postdeps already come after the
19542            # user supplied libs so there is no need to process them.
19543            if test -z "$compiler_lib_search_path_CXX"; then
19544              compiler_lib_search_path_CXX="${prev}${p}"
19545            else
19546              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19547            fi
19548            ;;
19549          # The "-l" case would never come before the object being
19550          # linked, so don't bother handling this case.
19551          esac
19552        else
19553          if test -z "$postdeps_CXX"; then
19554            postdeps_CXX="${prev}${p}"
19555          else
19556            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19557          fi
19558        fi
19559        ;;
19560
19561     *.$objext)
19562        # This assumes that the test object file only shows up
19563        # once in the compiler output.
19564        if test "$p" = "conftest.$objext"; then
19565          pre_test_object_deps_done=yes
19566          continue
19567        fi
19568
19569        if test "$pre_test_object_deps_done" = no; then
19570          if test -z "$predep_objects_CXX"; then
19571            predep_objects_CXX="$p"
19572          else
19573            predep_objects_CXX="$predep_objects_CXX $p"
19574          fi
19575        else
19576          if test -z "$postdep_objects_CXX"; then
19577            postdep_objects_CXX="$p"
19578          else
19579            postdep_objects_CXX="$postdep_objects_CXX $p"
19580          fi
19581        fi
19582        ;;
19583
19584     *) ;; # Ignore the rest.
19585
19586     esac
19587   done
19588
19589   # Clean up.
19590   rm -f a.out a.exe
19591 else
19592   echo "libtool.m4: error: problem compiling CXX test program"
19593 fi
19594
19595 $RM -f confest.$objext
19596
19597 # PORTME: override above test on systems where it is broken
19598 case $host_os in
19599 interix[3-9]*)
19600   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19601   # hack all around it, let's just trust "g++" to DTRT.
19602   predep_objects_CXX=
19603   postdep_objects_CXX=
19604   postdeps_CXX=
19605   ;;
19606
19607 linux*)
19608   case `$CC -V 2>&1 | sed 5q` in
19609   *Sun\ C*)
19610     # Sun C++ 5.9
19611
19612     # The more standards-conforming stlport4 library is
19613     # incompatible with the Cstd library. Avoid specifying
19614     # it if it's in CXXFLAGS. Ignore libCrun as
19615     # -library=stlport4 depends on it.
19616     case " $CXX $CXXFLAGS " in
19617     *" -library=stlport4 "*)
19618       solaris_use_stlport4=yes
19619       ;;
19620     esac
19621
19622     if test "$solaris_use_stlport4" != yes; then
19623       postdeps_CXX='-library=Cstd -library=Crun'
19624     fi
19625     ;;
19626   esac
19627   ;;
19628
19629 solaris*)
19630   case $cc_basename in
19631   CC*)
19632     # The more standards-conforming stlport4 library is
19633     # incompatible with the Cstd library. Avoid specifying
19634     # it if it's in CXXFLAGS. Ignore libCrun as
19635     # -library=stlport4 depends on it.
19636     case " $CXX $CXXFLAGS " in
19637     *" -library=stlport4 "*)
19638       solaris_use_stlport4=yes
19639       ;;
19640     esac
19641
19642     # Adding this requires a known-good setup of shared libraries for
19643     # Sun compiler versions before 5.6, else PIC objects from an old
19644     # archive will be linked into the output, leading to subtle bugs.
19645     if test "$solaris_use_stlport4" != yes; then
19646       postdeps_CXX='-library=Cstd -library=Crun'
19647     fi
19648     ;;
19649   esac
19650   ;;
19651 esac
19652
19653
19654 case " $postdeps_CXX " in
19655 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19656 esac
19657  compiler_lib_search_dirs_CXX=
19658 if test -n "${compiler_lib_search_path_CXX}"; then
19659  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19660 fi
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
19689
19690
19691
19692     lt_prog_compiler_wl_CXX=
19693 lt_prog_compiler_pic_CXX=
19694 lt_prog_compiler_static_CXX=
19695
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19697 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19698
19699   # C++ specific cases for pic, static, wl, etc.
19700   if test "$GXX" = yes; then
19701     lt_prog_compiler_wl_CXX='-Wl,'
19702     lt_prog_compiler_static_CXX='-static'
19703
19704     case $host_os in
19705     aix*)
19706       # All AIX code is PIC.
19707       if test "$host_cpu" = ia64; then
19708         # AIX 5 now supports IA64 processor
19709         lt_prog_compiler_static_CXX='-Bstatic'
19710       fi
19711       ;;
19712
19713     amigaos*)
19714       case $host_cpu in
19715       powerpc)
19716             # see comment about AmigaOS4 .so support
19717             lt_prog_compiler_pic_CXX='-fPIC'
19718         ;;
19719       m68k)
19720             # FIXME: we need at least 68020 code to build shared libraries, but
19721             # adding the `-m68020' flag to GCC prevents building anything better,
19722             # like `-m68040'.
19723             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19724         ;;
19725       esac
19726       ;;
19727
19728     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19729       # PIC is the default for these OSes.
19730       ;;
19731     mingw* | cygwin* | os2* | pw32* | cegcc*)
19732       # This hack is so that the source file can tell whether it is being
19733       # built for inclusion in a dll (and should export symbols for example).
19734       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19735       # (--disable-auto-import) libraries
19736       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19737       ;;
19738     darwin* | rhapsody*)
19739       # PIC is the default on this platform
19740       # Common symbols not allowed in MH_DYLIB files
19741       lt_prog_compiler_pic_CXX='-fno-common'
19742       ;;
19743     *djgpp*)
19744       # DJGPP does not support shared libraries at all
19745       lt_prog_compiler_pic_CXX=
19746       ;;
19747     haiku*)
19748       # PIC is the default for Haiku.
19749       # The "-static" flag exists, but is broken.
19750       lt_prog_compiler_static_CXX=
19751       ;;
19752     interix[3-9]*)
19753       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19754       # Instead, we relocate shared libraries at runtime.
19755       ;;
19756     sysv4*MP*)
19757       if test -d /usr/nec; then
19758         lt_prog_compiler_pic_CXX=-Kconform_pic
19759       fi
19760       ;;
19761     hpux*)
19762       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19763       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19764       # sets the default TLS model and affects inlining.
19765       case $host_cpu in
19766       hppa*64*)
19767         ;;
19768       *)
19769         lt_prog_compiler_pic_CXX='-fPIC'
19770         ;;
19771       esac
19772       ;;
19773     *qnx* | *nto*)
19774       # QNX uses GNU C++, but need to define -shared option too, otherwise
19775       # it will coredump.
19776       lt_prog_compiler_pic_CXX='-fPIC -shared'
19777       ;;
19778     *)
19779       lt_prog_compiler_pic_CXX='-fPIC'
19780       ;;
19781     esac
19782   else
19783     case $host_os in
19784       aix[4-9]*)
19785         # All AIX code is PIC.
19786         if test "$host_cpu" = ia64; then
19787           # AIX 5 now supports IA64 processor
19788           lt_prog_compiler_static_CXX='-Bstatic'
19789         else
19790           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19791         fi
19792         ;;
19793       chorus*)
19794         case $cc_basename in
19795         cxch68*)
19796           # Green Hills C++ Compiler
19797           # _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"
19798           ;;
19799         esac
19800         ;;
19801       dgux*)
19802         case $cc_basename in
19803           ec++*)
19804             lt_prog_compiler_pic_CXX='-KPIC'
19805             ;;
19806           ghcx*)
19807             # Green Hills C++ Compiler
19808             lt_prog_compiler_pic_CXX='-pic'
19809             ;;
19810           *)
19811             ;;
19812         esac
19813         ;;
19814       freebsd* | dragonfly*)
19815         # FreeBSD uses GNU C++
19816         ;;
19817       hpux9* | hpux10* | hpux11*)
19818         case $cc_basename in
19819           CC*)
19820             lt_prog_compiler_wl_CXX='-Wl,'
19821             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19822             if test "$host_cpu" != ia64; then
19823               lt_prog_compiler_pic_CXX='+Z'
19824             fi
19825             ;;
19826           aCC*)
19827             lt_prog_compiler_wl_CXX='-Wl,'
19828             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19829             case $host_cpu in
19830             hppa*64*|ia64*)
19831               # +Z the default
19832               ;;
19833             *)
19834               lt_prog_compiler_pic_CXX='+Z'
19835               ;;
19836             esac
19837             ;;
19838           *)
19839             ;;
19840         esac
19841         ;;
19842       interix*)
19843         # This is c89, which is MS Visual C++ (no shared libs)
19844         # Anyone wants to do a port?
19845         ;;
19846       irix5* | irix6* | nonstopux*)
19847         case $cc_basename in
19848           CC*)
19849             lt_prog_compiler_wl_CXX='-Wl,'
19850             lt_prog_compiler_static_CXX='-non_shared'
19851             # CC pic flag -KPIC is the default.
19852             ;;
19853           *)
19854             ;;
19855         esac
19856         ;;
19857       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19858         case $cc_basename in
19859           KCC*)
19860             # KAI C++ Compiler
19861             lt_prog_compiler_wl_CXX='--backend -Wl,'
19862             lt_prog_compiler_pic_CXX='-fPIC'
19863             ;;
19864           ecpc* )
19865             # old Intel C++ for x86_64 which still supported -KPIC.
19866             lt_prog_compiler_wl_CXX='-Wl,'
19867             lt_prog_compiler_pic_CXX='-KPIC'
19868             lt_prog_compiler_static_CXX='-static'
19869             ;;
19870           icpc* )
19871             # Intel C++, used to be incompatible with GCC.
19872             # ICC 10 doesn't accept -KPIC any more.
19873             lt_prog_compiler_wl_CXX='-Wl,'
19874             lt_prog_compiler_pic_CXX='-fPIC'
19875             lt_prog_compiler_static_CXX='-static'
19876             ;;
19877           pgCC* | pgcpp*)
19878             # Portland Group C++ compiler
19879             lt_prog_compiler_wl_CXX='-Wl,'
19880             lt_prog_compiler_pic_CXX='-fpic'
19881             lt_prog_compiler_static_CXX='-Bstatic'
19882             ;;
19883           cxx*)
19884             # Compaq C++
19885             # Make sure the PIC flag is empty.  It appears that all Alpha
19886             # Linux and Compaq Tru64 Unix objects are PIC.
19887             lt_prog_compiler_pic_CXX=
19888             lt_prog_compiler_static_CXX='-non_shared'
19889             ;;
19890           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19891             # IBM XL 8.0, 9.0 on PPC and BlueGene
19892             lt_prog_compiler_wl_CXX='-Wl,'
19893             lt_prog_compiler_pic_CXX='-qpic'
19894             lt_prog_compiler_static_CXX='-qstaticlink'
19895             ;;
19896           *)
19897             case `$CC -V 2>&1 | sed 5q` in
19898             *Sun\ C*)
19899               # Sun C++ 5.9
19900               lt_prog_compiler_pic_CXX='-KPIC'
19901               lt_prog_compiler_static_CXX='-Bstatic'
19902               lt_prog_compiler_wl_CXX='-Qoption ld '
19903               ;;
19904             esac
19905             ;;
19906         esac
19907         ;;
19908       lynxos*)
19909         ;;
19910       m88k*)
19911         ;;
19912       mvs*)
19913         case $cc_basename in
19914           cxx*)
19915             lt_prog_compiler_pic_CXX='-W c,exportall'
19916             ;;
19917           *)
19918             ;;
19919         esac
19920         ;;
19921       netbsd*)
19922         ;;
19923       *qnx* | *nto*)
19924         # QNX uses GNU C++, but need to define -shared option too, otherwise
19925         # it will coredump.
19926         lt_prog_compiler_pic_CXX='-fPIC -shared'
19927         ;;
19928       osf3* | osf4* | osf5*)
19929         case $cc_basename in
19930           KCC*)
19931             lt_prog_compiler_wl_CXX='--backend -Wl,'
19932             ;;
19933           RCC*)
19934             # Rational C++ 2.4.1
19935             lt_prog_compiler_pic_CXX='-pic'
19936             ;;
19937           cxx*)
19938             # Digital/Compaq C++
19939             lt_prog_compiler_wl_CXX='-Wl,'
19940             # Make sure the PIC flag is empty.  It appears that all Alpha
19941             # Linux and Compaq Tru64 Unix objects are PIC.
19942             lt_prog_compiler_pic_CXX=
19943             lt_prog_compiler_static_CXX='-non_shared'
19944             ;;
19945           *)
19946             ;;
19947         esac
19948         ;;
19949       psos*)
19950         ;;
19951       solaris*)
19952         case $cc_basename in
19953           CC*)
19954             # Sun C++ 4.2, 5.x and Centerline C++
19955             lt_prog_compiler_pic_CXX='-KPIC'
19956             lt_prog_compiler_static_CXX='-Bstatic'
19957             lt_prog_compiler_wl_CXX='-Qoption ld '
19958             ;;
19959           gcx*)
19960             # Green Hills C++ Compiler
19961             lt_prog_compiler_pic_CXX='-PIC'
19962             ;;
19963           *)
19964             ;;
19965         esac
19966         ;;
19967       sunos4*)
19968         case $cc_basename in
19969           CC*)
19970             # Sun C++ 4.x
19971             lt_prog_compiler_pic_CXX='-pic'
19972             lt_prog_compiler_static_CXX='-Bstatic'
19973             ;;
19974           lcc*)
19975             # Lucid
19976             lt_prog_compiler_pic_CXX='-pic'
19977             ;;
19978           *)
19979             ;;
19980         esac
19981         ;;
19982       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19983         case $cc_basename in
19984           CC*)
19985             lt_prog_compiler_wl_CXX='-Wl,'
19986             lt_prog_compiler_pic_CXX='-KPIC'
19987             lt_prog_compiler_static_CXX='-Bstatic'
19988             ;;
19989         esac
19990         ;;
19991       tandem*)
19992         case $cc_basename in
19993           NCC*)
19994             # NonStop-UX NCC 3.20
19995             lt_prog_compiler_pic_CXX='-KPIC'
19996             ;;
19997           *)
19998             ;;
19999         esac
20000         ;;
20001       vxworks*)
20002         ;;
20003       *)
20004         lt_prog_compiler_can_build_shared_CXX=no
20005         ;;
20006     esac
20007   fi
20008
20009 case $host_os in
20010   # For platforms which do not support PIC, -DPIC is meaningless:
20011   *djgpp*)
20012     lt_prog_compiler_pic_CXX=
20013     ;;
20014   *)
20015     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20016     ;;
20017 esac
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20019 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20020
20021
20022
20023 #
20024 # Check to make sure the PIC flag actually works.
20025 #
20026 if test -n "$lt_prog_compiler_pic_CXX"; then
20027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20028 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20029 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20030   $as_echo_n "(cached) " >&6
20031 else
20032   lt_cv_prog_compiler_pic_works_CXX=no
20033    ac_outfile=conftest.$ac_objext
20034    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20035    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20036    # Insert the option either (1) after the last *FLAGS variable, or
20037    # (2) before a word containing "conftest.", or (3) at the end.
20038    # Note that $ac_compile itself does not contain backslashes and begins
20039    # with a dollar sign (not a hyphen), so the echo should work correctly.
20040    # The option is referenced via a variable to avoid confusing sed.
20041    lt_compile=`echo "$ac_compile" | $SED \
20042    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20043    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20044    -e 's:$: $lt_compiler_flag:'`
20045    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20046    (eval "$lt_compile" 2>conftest.err)
20047    ac_status=$?
20048    cat conftest.err >&5
20049    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050    if (exit $ac_status) && test -s "$ac_outfile"; then
20051      # The compiler can only warn and ignore the option if not recognized
20052      # So say no if there are warnings other than the usual output.
20053      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20054      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20055      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20056        lt_cv_prog_compiler_pic_works_CXX=yes
20057      fi
20058    fi
20059    $RM conftest*
20060
20061 fi
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20063 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20064
20065 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20066     case $lt_prog_compiler_pic_CXX in
20067      "" | " "*) ;;
20068      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20069      esac
20070 else
20071     lt_prog_compiler_pic_CXX=
20072      lt_prog_compiler_can_build_shared_CXX=no
20073 fi
20074
20075 fi
20076
20077
20078
20079 #
20080 # Check to make sure the static flag actually works.
20081 #
20082 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20084 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20085 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20086   $as_echo_n "(cached) " >&6
20087 else
20088   lt_cv_prog_compiler_static_works_CXX=no
20089    save_LDFLAGS="$LDFLAGS"
20090    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20091    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20092    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20093      # The linker can only warn and ignore the option if not recognized
20094      # So say no if there are warnings
20095      if test -s conftest.err; then
20096        # Append any errors to the config.log.
20097        cat conftest.err 1>&5
20098        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20099        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20100        if diff conftest.exp conftest.er2 >/dev/null; then
20101          lt_cv_prog_compiler_static_works_CXX=yes
20102        fi
20103      else
20104        lt_cv_prog_compiler_static_works_CXX=yes
20105      fi
20106    fi
20107    $RM -r conftest*
20108    LDFLAGS="$save_LDFLAGS"
20109
20110 fi
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20112 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20113
20114 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20115     :
20116 else
20117     lt_prog_compiler_static_CXX=
20118 fi
20119
20120
20121
20122
20123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20124 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20125 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20126   $as_echo_n "(cached) " >&6
20127 else
20128   lt_cv_prog_compiler_c_o_CXX=no
20129    $RM -r conftest 2>/dev/null
20130    mkdir conftest
20131    cd conftest
20132    mkdir out
20133    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20134
20135    lt_compiler_flag="-o out/conftest2.$ac_objext"
20136    # Insert the option either (1) after the last *FLAGS variable, or
20137    # (2) before a word containing "conftest.", or (3) at the end.
20138    # Note that $ac_compile itself does not contain backslashes and begins
20139    # with a dollar sign (not a hyphen), so the echo should work correctly.
20140    lt_compile=`echo "$ac_compile" | $SED \
20141    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20142    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20143    -e 's:$: $lt_compiler_flag:'`
20144    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20145    (eval "$lt_compile" 2>out/conftest.err)
20146    ac_status=$?
20147    cat out/conftest.err >&5
20148    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20150    then
20151      # The compiler can only warn and ignore the option if not recognized
20152      # So say no if there are warnings
20153      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20154      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20155      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20156        lt_cv_prog_compiler_c_o_CXX=yes
20157      fi
20158    fi
20159    chmod u+w . 2>&5
20160    $RM conftest*
20161    # SGI C++ compiler will create directory out/ii_files/ for
20162    # template instantiation
20163    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20164    $RM out/* && rmdir out
20165    cd ..
20166    $RM -r conftest
20167    $RM conftest*
20168
20169 fi
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20171 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20172
20173
20174
20175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20176 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20177 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20178   $as_echo_n "(cached) " >&6
20179 else
20180   lt_cv_prog_compiler_c_o_CXX=no
20181    $RM -r conftest 2>/dev/null
20182    mkdir conftest
20183    cd conftest
20184    mkdir out
20185    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20186
20187    lt_compiler_flag="-o out/conftest2.$ac_objext"
20188    # Insert the option either (1) after the last *FLAGS variable, or
20189    # (2) before a word containing "conftest.", or (3) at the end.
20190    # Note that $ac_compile itself does not contain backslashes and begins
20191    # with a dollar sign (not a hyphen), so the echo should work correctly.
20192    lt_compile=`echo "$ac_compile" | $SED \
20193    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20194    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20195    -e 's:$: $lt_compiler_flag:'`
20196    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20197    (eval "$lt_compile" 2>out/conftest.err)
20198    ac_status=$?
20199    cat out/conftest.err >&5
20200    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20202    then
20203      # The compiler can only warn and ignore the option if not recognized
20204      # So say no if there are warnings
20205      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20206      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20207      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20208        lt_cv_prog_compiler_c_o_CXX=yes
20209      fi
20210    fi
20211    chmod u+w . 2>&5
20212    $RM conftest*
20213    # SGI C++ compiler will create directory out/ii_files/ for
20214    # template instantiation
20215    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20216    $RM out/* && rmdir out
20217    cd ..
20218    $RM -r conftest
20219    $RM conftest*
20220
20221 fi
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20223 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20224
20225
20226
20227
20228 hard_links="nottested"
20229 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20230   # do not overwrite the value of need_locks provided by the user
20231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20232 $as_echo_n "checking if we can lock with hard links... " >&6; }
20233   hard_links=yes
20234   $RM conftest*
20235   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20236   touch conftest.a
20237   ln conftest.a conftest.b 2>&5 || hard_links=no
20238   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20240 $as_echo "$hard_links" >&6; }
20241   if test "$hard_links" = no; then
20242     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20243 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20244     need_locks=warn
20245   fi
20246 else
20247   need_locks=no
20248 fi
20249
20250
20251
20252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20253 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20254
20255   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20256   case $host_os in
20257   aix[4-9]*)
20258     # If we're using GNU nm, then we don't want the "-C" option.
20259     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20260     # Also, AIX nm treats weak defined symbols like other global defined
20261     # symbols, whereas GNU nm marks them as "W".
20262     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20263       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'
20264     else
20265       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'
20266     fi
20267     ;;
20268   pw32*)
20269     export_symbols_cmds_CXX="$ltdll_cmds"
20270   ;;
20271   cygwin* | mingw* | cegcc*)
20272     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'
20273   ;;
20274   *)
20275     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20276   ;;
20277   esac
20278   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20279
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20281 $as_echo "$ld_shlibs_CXX" >&6; }
20282 test "$ld_shlibs_CXX" = no && can_build_shared=no
20283
20284 with_gnu_ld_CXX=$with_gnu_ld
20285
20286
20287
20288
20289
20290
20291 #
20292 # Do we need to explicitly link libc?
20293 #
20294 case "x$archive_cmds_need_lc_CXX" in
20295 x|xyes)
20296   # Assume -lc should be added
20297   archive_cmds_need_lc_CXX=yes
20298
20299   if test "$enable_shared" = yes && test "$GCC" = yes; then
20300     case $archive_cmds_CXX in
20301     *'~'*)
20302       # FIXME: we may have to deal with multi-command sequences.
20303       ;;
20304     '$CC '*)
20305       # Test whether the compiler implicitly links with -lc since on some
20306       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20307       # to ld, don't add -lc before -lgcc.
20308       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20309 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20310 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20311   $as_echo_n "(cached) " >&6
20312 else
20313   $RM conftest*
20314         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20315
20316         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20317   (eval $ac_compile) 2>&5
20318   ac_status=$?
20319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20320   test $ac_status = 0; } 2>conftest.err; then
20321           soname=conftest
20322           lib=conftest
20323           libobjs=conftest.$ac_objext
20324           deplibs=
20325           wl=$lt_prog_compiler_wl_CXX
20326           pic_flag=$lt_prog_compiler_pic_CXX
20327           compiler_flags=-v
20328           linker_flags=-v
20329           verstring=
20330           output_objdir=.
20331           libname=conftest
20332           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20333           allow_undefined_flag_CXX=
20334           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20335   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20336   ac_status=$?
20337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20338   test $ac_status = 0; }
20339           then
20340             lt_cv_archive_cmds_need_lc_CXX=no
20341           else
20342             lt_cv_archive_cmds_need_lc_CXX=yes
20343           fi
20344           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20345         else
20346           cat conftest.err 1>&5
20347         fi
20348         $RM conftest*
20349
20350 fi
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20352 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20353       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20354       ;;
20355     esac
20356   fi
20357   ;;
20358 esac
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
20420
20421
20422
20423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20424 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20425
20426 library_names_spec=
20427 libname_spec='lib$name'
20428 soname_spec=
20429 shrext_cmds=".so"
20430 postinstall_cmds=
20431 postuninstall_cmds=
20432 finish_cmds=
20433 finish_eval=
20434 shlibpath_var=
20435 shlibpath_overrides_runpath=unknown
20436 version_type=none
20437 dynamic_linker="$host_os ld.so"
20438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20439 need_lib_prefix=unknown
20440 hardcode_into_libs=no
20441
20442 # when you set need_version to no, make sure it does not cause -set_version
20443 # flags to be left without arguments
20444 need_version=unknown
20445
20446 case $host_os in
20447 aix3*)
20448   version_type=linux
20449   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20450   shlibpath_var=LIBPATH
20451
20452   # AIX 3 has no versioning support, so we append a major version to the name.
20453   soname_spec='${libname}${release}${shared_ext}$major'
20454   ;;
20455
20456 aix[4-9]*)
20457   version_type=linux
20458   need_lib_prefix=no
20459   need_version=no
20460   hardcode_into_libs=yes
20461   if test "$host_cpu" = ia64; then
20462     # AIX 5 supports IA64
20463     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20464     shlibpath_var=LD_LIBRARY_PATH
20465   else
20466     # With GCC up to 2.95.x, collect2 would create an import file
20467     # for dependence libraries.  The import file would start with
20468     # the line `#! .'.  This would cause the generated library to
20469     # depend on `.', always an invalid library.  This was fixed in
20470     # development snapshots of GCC prior to 3.0.
20471     case $host_os in
20472       aix4 | aix4.[01] | aix4.[01].*)
20473       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20474            echo ' yes '
20475            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20476         :
20477       else
20478         can_build_shared=no
20479       fi
20480       ;;
20481     esac
20482     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20483     # soname into executable. Probably we can add versioning support to
20484     # collect2, so additional links can be useful in future.
20485     if test "$aix_use_runtimelinking" = yes; then
20486       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20487       # instead of lib<name>.a to let people know that these are not
20488       # typical AIX shared libraries.
20489       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20490     else
20491       # We preserve .a as extension for shared libraries through AIX4.2
20492       # and later when we are not doing run time linking.
20493       library_names_spec='${libname}${release}.a $libname.a'
20494       soname_spec='${libname}${release}${shared_ext}$major'
20495     fi
20496     shlibpath_var=LIBPATH
20497   fi
20498   ;;
20499
20500 amigaos*)
20501   case $host_cpu in
20502   powerpc)
20503     # Since July 2007 AmigaOS4 officially supports .so libraries.
20504     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20506     ;;
20507   m68k)
20508     library_names_spec='$libname.ixlibrary $libname.a'
20509     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20510     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'
20511     ;;
20512   esac
20513   ;;
20514
20515 beos*)
20516   library_names_spec='${libname}${shared_ext}'
20517   dynamic_linker="$host_os ld.so"
20518   shlibpath_var=LIBRARY_PATH
20519   ;;
20520
20521 bsdi[45]*)
20522   version_type=linux
20523   need_version=no
20524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20525   soname_spec='${libname}${release}${shared_ext}$major'
20526   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20527   shlibpath_var=LD_LIBRARY_PATH
20528   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20529   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20530   # the default ld.so.conf also contains /usr/contrib/lib and
20531   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20532   # libtool to hard-code these into programs
20533   ;;
20534
20535 cygwin* | mingw* | pw32* | cegcc*)
20536   version_type=windows
20537   shrext_cmds=".dll"
20538   need_version=no
20539   need_lib_prefix=no
20540
20541   case $GCC,$host_os in
20542   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20543     library_names_spec='$libname.dll.a'
20544     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20545     postinstall_cmds='base_file=`basename \${file}`~
20546       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20547       dldir=$destdir/`dirname \$dlpath`~
20548       test -d \$dldir || mkdir -p \$dldir~
20549       $install_prog $dir/$dlname \$dldir/$dlname~
20550       chmod a+x \$dldir/$dlname~
20551       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20552         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20553       fi'
20554     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20555       dlpath=$dir/\$dldll~
20556        $RM \$dlpath'
20557     shlibpath_overrides_runpath=yes
20558
20559     case $host_os in
20560     cygwin*)
20561       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20562       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20563
20564       ;;
20565     mingw* | cegcc*)
20566       # MinGW DLLs use traditional 'lib' prefix
20567       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20568       ;;
20569     pw32*)
20570       # pw32 DLLs use 'pw' prefix rather than 'lib'
20571       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20572       ;;
20573     esac
20574     ;;
20575
20576   *)
20577     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20578     ;;
20579   esac
20580   dynamic_linker='Win32 ld.exe'
20581   # FIXME: first we should search . and the directory the executable is in
20582   shlibpath_var=PATH
20583   ;;
20584
20585 darwin* | rhapsody*)
20586   dynamic_linker="$host_os dyld"
20587   version_type=darwin
20588   need_lib_prefix=no
20589   need_version=no
20590   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20591   soname_spec='${libname}${release}${major}$shared_ext'
20592   shlibpath_overrides_runpath=yes
20593   shlibpath_var=DYLD_LIBRARY_PATH
20594   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20595
20596   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20597   ;;
20598
20599 dgux*)
20600   version_type=linux
20601   need_lib_prefix=no
20602   need_version=no
20603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20604   soname_spec='${libname}${release}${shared_ext}$major'
20605   shlibpath_var=LD_LIBRARY_PATH
20606   ;;
20607
20608 freebsd* | dragonfly*)
20609   # DragonFly does not have aout.  When/if they implement a new
20610   # versioning mechanism, adjust this.
20611   if test -x /usr/bin/objformat; then
20612     objformat=`/usr/bin/objformat`
20613   else
20614     case $host_os in
20615     freebsd[123]*) objformat=aout ;;
20616     *) objformat=elf ;;
20617     esac
20618   fi
20619   version_type=freebsd-$objformat
20620   case $version_type in
20621     freebsd-elf*)
20622       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20623       need_version=no
20624       need_lib_prefix=no
20625       ;;
20626     freebsd-*)
20627       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20628       need_version=yes
20629       ;;
20630   esac
20631   shlibpath_var=LD_LIBRARY_PATH
20632   case $host_os in
20633   freebsd2*)
20634     shlibpath_overrides_runpath=yes
20635     ;;
20636   freebsd3.[01]* | freebsdelf3.[01]*)
20637     shlibpath_overrides_runpath=yes
20638     hardcode_into_libs=yes
20639     ;;
20640   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20641   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20642     shlibpath_overrides_runpath=no
20643     hardcode_into_libs=yes
20644     ;;
20645   *) # from 4.6 on, and DragonFly
20646     shlibpath_overrides_runpath=yes
20647     hardcode_into_libs=yes
20648     ;;
20649   esac
20650   ;;
20651
20652 gnu*)
20653   version_type=linux
20654   need_lib_prefix=no
20655   need_version=no
20656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20657   soname_spec='${libname}${release}${shared_ext}$major'
20658   shlibpath_var=LD_LIBRARY_PATH
20659   hardcode_into_libs=yes
20660   ;;
20661
20662 haiku*)
20663   version_type=linux
20664   need_lib_prefix=no
20665   need_version=no
20666   dynamic_linker="$host_os runtime_loader"
20667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20668   soname_spec='${libname}${release}${shared_ext}$major'
20669   shlibpath_var=LIBRARY_PATH
20670   shlibpath_overrides_runpath=yes
20671   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20672   hardcode_into_libs=yes
20673   ;;
20674
20675 hpux9* | hpux10* | hpux11*)
20676   # Give a soname corresponding to the major version so that dld.sl refuses to
20677   # link against other versions.
20678   version_type=sunos
20679   need_lib_prefix=no
20680   need_version=no
20681   case $host_cpu in
20682   ia64*)
20683     shrext_cmds='.so'
20684     hardcode_into_libs=yes
20685     dynamic_linker="$host_os dld.so"
20686     shlibpath_var=LD_LIBRARY_PATH
20687     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20688     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20689     soname_spec='${libname}${release}${shared_ext}$major'
20690     if test "X$HPUX_IA64_MODE" = X32; then
20691       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20692     else
20693       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20694     fi
20695     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20696     ;;
20697   hppa*64*)
20698     shrext_cmds='.sl'
20699     hardcode_into_libs=yes
20700     dynamic_linker="$host_os dld.sl"
20701     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20702     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20704     soname_spec='${libname}${release}${shared_ext}$major'
20705     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20706     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20707     ;;
20708   *)
20709     shrext_cmds='.sl'
20710     dynamic_linker="$host_os dld.sl"
20711     shlibpath_var=SHLIB_PATH
20712     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20713     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20714     soname_spec='${libname}${release}${shared_ext}$major'
20715     ;;
20716   esac
20717   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20718   postinstall_cmds='chmod 555 $lib'
20719   # or fails outright, so override atomically:
20720   install_override_mode=555
20721   ;;
20722
20723 interix[3-9]*)
20724   version_type=linux
20725   need_lib_prefix=no
20726   need_version=no
20727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20728   soname_spec='${libname}${release}${shared_ext}$major'
20729   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20730   shlibpath_var=LD_LIBRARY_PATH
20731   shlibpath_overrides_runpath=no
20732   hardcode_into_libs=yes
20733   ;;
20734
20735 irix5* | irix6* | nonstopux*)
20736   case $host_os in
20737     nonstopux*) version_type=nonstopux ;;
20738     *)
20739         if test "$lt_cv_prog_gnu_ld" = yes; then
20740                 version_type=linux
20741         else
20742                 version_type=irix
20743         fi ;;
20744   esac
20745   need_lib_prefix=no
20746   need_version=no
20747   soname_spec='${libname}${release}${shared_ext}$major'
20748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20749   case $host_os in
20750   irix5* | nonstopux*)
20751     libsuff= shlibsuff=
20752     ;;
20753   *)
20754     case $LD in # libtool.m4 will add one of these switches to LD
20755     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20756       libsuff= shlibsuff= libmagic=32-bit;;
20757     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20758       libsuff=32 shlibsuff=N32 libmagic=N32;;
20759     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20760       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20761     *) libsuff= shlibsuff= libmagic=never-match;;
20762     esac
20763     ;;
20764   esac
20765   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20766   shlibpath_overrides_runpath=no
20767   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20768   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20769   hardcode_into_libs=yes
20770   ;;
20771
20772 # No shared lib support for Linux oldld, aout, or coff.
20773 linux*oldld* | linux*aout* | linux*coff*)
20774   dynamic_linker=no
20775   ;;
20776
20777 # This must be Linux ELF.
20778 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20779   version_type=linux
20780   need_lib_prefix=no
20781   need_version=no
20782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20783   soname_spec='${libname}${release}${shared_ext}$major'
20784   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20785   shlibpath_var=LD_LIBRARY_PATH
20786   shlibpath_overrides_runpath=no
20787
20788   # Some binutils ld are patched to set DT_RUNPATH
20789   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20790   $as_echo_n "(cached) " >&6
20791 else
20792   lt_cv_shlibpath_overrides_runpath=no
20793     save_LDFLAGS=$LDFLAGS
20794     save_libdir=$libdir
20795     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20796          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20797     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h.  */
20799
20800 int
20801 main ()
20802 {
20803
20804   ;
20805   return 0;
20806 }
20807 _ACEOF
20808 if ac_fn_cxx_try_link "$LINENO"; then :
20809   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20810   lt_cv_shlibpath_overrides_runpath=yes
20811 fi
20812 fi
20813 rm -f core conftest.err conftest.$ac_objext \
20814     conftest$ac_exeext conftest.$ac_ext
20815     LDFLAGS=$save_LDFLAGS
20816     libdir=$save_libdir
20817
20818 fi
20819
20820   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20821
20822   # This implies no fast_install, which is unacceptable.
20823   # Some rework will be needed to allow for fast_install
20824   # before this can be enabled.
20825   hardcode_into_libs=yes
20826
20827   # Append ld.so.conf contents to the search path
20828   if test -f /etc/ld.so.conf; then
20829     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' ' '`
20830     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20831   fi
20832
20833   # We used to test for /lib/ld.so.1 and disable shared libraries on
20834   # powerpc, because MkLinux only supported shared libraries with the
20835   # GNU dynamic linker.  Since this was broken with cross compilers,
20836   # most powerpc-linux boxes support dynamic linking these days and
20837   # people can always --disable-shared, the test was removed, and we
20838   # assume the GNU/Linux dynamic linker is in use.
20839   dynamic_linker='GNU/Linux ld.so'
20840   ;;
20841
20842 netbsd*)
20843   version_type=sunos
20844   need_lib_prefix=no
20845   need_version=no
20846   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20848     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20849     dynamic_linker='NetBSD (a.out) ld.so'
20850   else
20851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20852     soname_spec='${libname}${release}${shared_ext}$major'
20853     dynamic_linker='NetBSD ld.elf_so'
20854   fi
20855   shlibpath_var=LD_LIBRARY_PATH
20856   shlibpath_overrides_runpath=yes
20857   hardcode_into_libs=yes
20858   ;;
20859
20860 newsos6)
20861   version_type=linux
20862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20863   shlibpath_var=LD_LIBRARY_PATH
20864   shlibpath_overrides_runpath=yes
20865   ;;
20866
20867 *nto* | *qnx*)
20868   version_type=qnx
20869   need_lib_prefix=no
20870   need_version=no
20871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20872   soname_spec='${libname}${release}${shared_ext}$major'
20873   shlibpath_var=LD_LIBRARY_PATH
20874   shlibpath_overrides_runpath=no
20875   hardcode_into_libs=yes
20876   dynamic_linker='ldqnx.so'
20877   ;;
20878
20879 openbsd*)
20880   version_type=sunos
20881   sys_lib_dlsearch_path_spec="/usr/lib"
20882   need_lib_prefix=no
20883   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20884   case $host_os in
20885     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20886     *)                          need_version=no  ;;
20887   esac
20888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20889   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20890   shlibpath_var=LD_LIBRARY_PATH
20891   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20892     case $host_os in
20893       openbsd2.[89] | openbsd2.[89].*)
20894         shlibpath_overrides_runpath=no
20895         ;;
20896       *)
20897         shlibpath_overrides_runpath=yes
20898         ;;
20899       esac
20900   else
20901     shlibpath_overrides_runpath=yes
20902   fi
20903   ;;
20904
20905 os2*)
20906   libname_spec='$name'
20907   shrext_cmds=".dll"
20908   need_lib_prefix=no
20909   library_names_spec='$libname${shared_ext} $libname.a'
20910   dynamic_linker='OS/2 ld.exe'
20911   shlibpath_var=LIBPATH
20912   ;;
20913
20914 osf3* | osf4* | osf5*)
20915   version_type=osf
20916   need_lib_prefix=no
20917   need_version=no
20918   soname_spec='${libname}${release}${shared_ext}$major'
20919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20920   shlibpath_var=LD_LIBRARY_PATH
20921   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20922   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20923   ;;
20924
20925 rdos*)
20926   dynamic_linker=no
20927   ;;
20928
20929 solaris*)
20930   version_type=linux
20931   need_lib_prefix=no
20932   need_version=no
20933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20934   soname_spec='${libname}${release}${shared_ext}$major'
20935   shlibpath_var=LD_LIBRARY_PATH
20936   shlibpath_overrides_runpath=yes
20937   hardcode_into_libs=yes
20938   # ldd complains unless libraries are executable
20939   postinstall_cmds='chmod +x $lib'
20940   ;;
20941
20942 sunos4*)
20943   version_type=sunos
20944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20945   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20946   shlibpath_var=LD_LIBRARY_PATH
20947   shlibpath_overrides_runpath=yes
20948   if test "$with_gnu_ld" = yes; then
20949     need_lib_prefix=no
20950   fi
20951   need_version=yes
20952   ;;
20953
20954 sysv4 | sysv4.3*)
20955   version_type=linux
20956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20957   soname_spec='${libname}${release}${shared_ext}$major'
20958   shlibpath_var=LD_LIBRARY_PATH
20959   case $host_vendor in
20960     sni)
20961       shlibpath_overrides_runpath=no
20962       need_lib_prefix=no
20963       runpath_var=LD_RUN_PATH
20964       ;;
20965     siemens)
20966       need_lib_prefix=no
20967       ;;
20968     motorola)
20969       need_lib_prefix=no
20970       need_version=no
20971       shlibpath_overrides_runpath=no
20972       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20973       ;;
20974   esac
20975   ;;
20976
20977 sysv4*MP*)
20978   if test -d /usr/nec ;then
20979     version_type=linux
20980     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20981     soname_spec='$libname${shared_ext}.$major'
20982     shlibpath_var=LD_LIBRARY_PATH
20983   fi
20984   ;;
20985
20986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20987   version_type=freebsd-elf
20988   need_lib_prefix=no
20989   need_version=no
20990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20991   soname_spec='${libname}${release}${shared_ext}$major'
20992   shlibpath_var=LD_LIBRARY_PATH
20993   shlibpath_overrides_runpath=yes
20994   hardcode_into_libs=yes
20995   if test "$with_gnu_ld" = yes; then
20996     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20997   else
20998     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20999     case $host_os in
21000       sco3.2v5*)
21001         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21002         ;;
21003     esac
21004   fi
21005   sys_lib_dlsearch_path_spec='/usr/lib'
21006   ;;
21007
21008 tpf*)
21009   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21010   version_type=linux
21011   need_lib_prefix=no
21012   need_version=no
21013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21014   shlibpath_var=LD_LIBRARY_PATH
21015   shlibpath_overrides_runpath=no
21016   hardcode_into_libs=yes
21017   ;;
21018
21019 uts4*)
21020   version_type=linux
21021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21022   soname_spec='${libname}${release}${shared_ext}$major'
21023   shlibpath_var=LD_LIBRARY_PATH
21024   ;;
21025
21026 *)
21027   dynamic_linker=no
21028   ;;
21029 esac
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21031 $as_echo "$dynamic_linker" >&6; }
21032 test "$dynamic_linker" = no && can_build_shared=no
21033
21034 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21035 if test "$GCC" = yes; then
21036   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21037 fi
21038
21039 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21040   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21041 fi
21042 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21043   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21044 fi
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
21080
21081
21082
21083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21084 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21085 hardcode_action_CXX=
21086 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21087    test -n "$runpath_var_CXX" ||
21088    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21089
21090   # We can hardcode non-existent directories.
21091   if test "$hardcode_direct_CXX" != no &&
21092      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21093      # have to relink, otherwise we might link with an installed library
21094      # when we should be linking with a yet-to-be-installed one
21095      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21096      test "$hardcode_minus_L_CXX" != no; then
21097     # Linking always hardcodes the temporary library directory.
21098     hardcode_action_CXX=relink
21099   else
21100     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21101     hardcode_action_CXX=immediate
21102   fi
21103 else
21104   # We cannot hardcode anything, or else we can only hardcode existing
21105   # directories.
21106   hardcode_action_CXX=unsupported
21107 fi
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21109 $as_echo "$hardcode_action_CXX" >&6; }
21110
21111 if test "$hardcode_action_CXX" = relink ||
21112    test "$inherit_rpath_CXX" = yes; then
21113   # Fast installation is not supported
21114   enable_fast_install=no
21115 elif test "$shlibpath_overrides_runpath" = yes ||
21116      test "$enable_shared" = no; then
21117   # Fast installation is not necessary
21118   enable_fast_install=needless
21119 fi
21120
21121
21122
21123
21124
21125
21126
21127   fi # test -n "$compiler"
21128
21129   CC=$lt_save_CC
21130   LDCXX=$LD
21131   LD=$lt_save_LD
21132   GCC=$lt_save_GCC
21133   with_gnu_ld=$lt_save_with_gnu_ld
21134   lt_cv_path_LDCXX=$lt_cv_path_LD
21135   lt_cv_path_LD=$lt_save_path_LD
21136   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21137   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21138 fi # test "$_lt_caught_CXX_error" != yes
21139
21140 ac_ext=c
21141 ac_cpp='$CPP $CPPFLAGS'
21142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161 # Only expand once:
21162
21163
21164
21165
21166
21167 # Identify the assembler which will work hand-in-glove with the newly
21168 # built GCC, so that we can examine its features.  This is the assembler
21169 # which will be driven by the driver program.
21170 #
21171 # If build != host, and we aren't building gas in-tree, we identify a
21172 # build->target assembler and hope that it will have the same features
21173 # as the host->target assembler we'll be using.
21174 gcc_cv_gas_major_version=
21175 gcc_cv_gas_minor_version=
21176 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21177
21178 if test "${gcc_cv_as+set}" = set; then :
21179
21180 else
21181
21182 if test -x "$DEFAULT_ASSEMBLER"; then
21183         gcc_cv_as="$DEFAULT_ASSEMBLER"
21184 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21185      && test -f ../gas/Makefile \
21186      && test x$build = x$host; then
21187         gcc_cv_as=../gas/as-new$build_exeext
21188 elif test -x as$build_exeext; then
21189         # Build using assembler in the current directory.
21190         gcc_cv_as=./as$build_exeext
21191 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21192         gcc_cv_as="$AS_FOR_TARGET"
21193 else
21194         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21195 set dummy $AS_FOR_TARGET; ac_word=$2
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21197 $as_echo_n "checking for $ac_word... " >&6; }
21198 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21199   $as_echo_n "(cached) " >&6
21200 else
21201   case $gcc_cv_as in
21202   [\\/]* | ?:[\\/]*)
21203   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21204   ;;
21205   *)
21206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21207 for as_dir in $PATH
21208 do
21209   IFS=$as_save_IFS
21210   test -z "$as_dir" && as_dir=.
21211     for ac_exec_ext in '' $ac_executable_extensions; do
21212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21213     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21215     break 2
21216   fi
21217 done
21218   done
21219 IFS=$as_save_IFS
21220
21221   ;;
21222 esac
21223 fi
21224 gcc_cv_as=$ac_cv_path_gcc_cv_as
21225 if test -n "$gcc_cv_as"; then
21226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21227 $as_echo "$gcc_cv_as" >&6; }
21228 else
21229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21230 $as_echo "no" >&6; }
21231 fi
21232
21233
21234 fi
21235 fi
21236
21237 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21238
21239 case "$ORIGINAL_AS_FOR_TARGET" in
21240   ./as | ./as$build_exeext) ;;
21241   *) ac_config_files="$ac_config_files as:exec-tool.in"
21242  ;;
21243 esac
21244
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21246 $as_echo_n "checking what assembler to use... " >&6; }
21247 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21248   # Single tree build which includes gas.  We want to prefer it
21249   # over whatever linker top-level may have detected, since
21250   # we'll use what we're building after installation anyway.
21251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21252 $as_echo "newly built gas" >&6; }
21253   in_tree_gas=yes
21254   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21255 for f in $gcc_cv_as_bfd_srcdir/configure \
21256          $gcc_cv_as_gas_srcdir/configure \
21257          $gcc_cv_as_gas_srcdir/configure.in \
21258          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21259   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21260   if test x$gcc_cv_gas_version != x; then
21261     break
21262   fi
21263 done
21264 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21265 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21266 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21267 case $gcc_cv_gas_patch_version in
21268   "") gcc_cv_gas_patch_version="0" ;;
21269 esac
21270 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21271                             + $gcc_cv_gas_minor_version \) \* 1000 \
21272                             + $gcc_cv_gas_patch_version`
21273
21274   in_tree_gas_is_elf=no
21275   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21276      || (grep 'obj_format = multi' ../gas/Makefile \
21277          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21278   then
21279     in_tree_gas_is_elf=yes
21280   fi
21281 else
21282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21283 $as_echo "$gcc_cv_as" >&6; }
21284   in_tree_gas=no
21285 fi
21286
21287 # Identify the linker which will work hand-in-glove with the newly
21288 # built GCC, so that we can examine its features.  This is the linker
21289 # which will be driven by the driver program.
21290 #
21291 # If build != host, and we aren't building gas in-tree, we identify a
21292 # build->target linker and hope that it will have the same features
21293 # as the host->target linker we'll be using.
21294 gcc_cv_gld_major_version=
21295 gcc_cv_gld_minor_version=
21296 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21297 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21298
21299 if test "${gcc_cv_ld+set}" = set; then :
21300
21301 else
21302
21303 if test -x "$DEFAULT_LINKER"; then
21304         gcc_cv_ld="$DEFAULT_LINKER"
21305 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21306      && test -f ../ld/Makefile \
21307      && test x$build = x$host; then
21308         gcc_cv_ld=../ld/ld-new$build_exeext
21309 elif test -x collect-ld$build_exeext; then
21310         # Build using linker in the current directory.
21311         gcc_cv_ld=./collect-ld$build_exeext
21312 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21313         gcc_cv_ld="$LD_FOR_TARGET"
21314 else
21315         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21316 set dummy $LD_FOR_TARGET; ac_word=$2
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21318 $as_echo_n "checking for $ac_word... " >&6; }
21319 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21320   $as_echo_n "(cached) " >&6
21321 else
21322   case $gcc_cv_ld in
21323   [\\/]* | ?:[\\/]*)
21324   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21325   ;;
21326   *)
21327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21328 for as_dir in $PATH
21329 do
21330   IFS=$as_save_IFS
21331   test -z "$as_dir" && as_dir=.
21332     for ac_exec_ext in '' $ac_executable_extensions; do
21333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21334     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21336     break 2
21337   fi
21338 done
21339   done
21340 IFS=$as_save_IFS
21341
21342   ;;
21343 esac
21344 fi
21345 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21346 if test -n "$gcc_cv_ld"; then
21347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21348 $as_echo "$gcc_cv_ld" >&6; }
21349 else
21350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21351 $as_echo "no" >&6; }
21352 fi
21353
21354
21355 fi
21356 fi
21357
21358 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21359 PLUGIN_LD=`basename $gcc_cv_ld`
21360
21361 # Check whether --with-plugin-ld was given.
21362 if test "${with_plugin_ld+set}" = set; then :
21363   withval=$with_plugin_ld; if test x"$withval" != x; then
21364    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21365    PLUGIN_LD="$withval"
21366  fi
21367 fi
21368
21369
21370
21371 cat >>confdefs.h <<_ACEOF
21372 #define PLUGIN_LD "$PLUGIN_LD"
21373 _ACEOF
21374
21375
21376 # Check to see if we are using gold instead of ld
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21378 $as_echo_n "checking whether we are using gold... " >&6; }
21379 ld_is_gold=no
21380 if test x$gcc_cv_ld != x; then
21381   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21382      | grep "GNU gold" > /dev/null; then
21383     ld_is_gold=yes
21384   fi
21385 fi
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21387 $as_echo "$ld_is_gold" >&6; }
21388
21389 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21390
21391 case "$ORIGINAL_LD_FOR_TARGET" in
21392   ./collect-ld | ./collect-ld$build_exeext) ;;
21393   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21394  ;;
21395 esac
21396
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21398 $as_echo_n "checking what linker to use... " >&6; }
21399 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21400    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21401         # Single tree build which includes ld.  We want to prefer it
21402         # over whatever linker top-level may have detected, since
21403         # we'll use what we're building after installation anyway.
21404         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21405 $as_echo "newly built ld" >&6; }
21406         in_tree_ld=yes
21407         in_tree_ld_is_elf=no
21408         if (grep 'EMUL = .*elf' ../ld/Makefile \
21409             || grep 'EMUL = .*linux' ../ld/Makefile \
21410             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21411           in_tree_ld_is_elf=yes
21412         elif test "$ld_is_gold" = yes; then
21413           in_tree_ld_is_elf=yes
21414         fi
21415         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
21416         do
21417                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21418                 if test x$gcc_cv_gld_version != x; then
21419                         break
21420                 fi
21421         done
21422         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21423         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21424 else
21425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21426 $as_echo "$gcc_cv_ld" >&6; }
21427         in_tree_ld=no
21428 fi
21429
21430 # Figure out what nm we will be using.
21431 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21432 if test "${gcc_cv_nm+set}" = set; then :
21433
21434 else
21435
21436 if test -f $gcc_cv_binutils_srcdir/configure.in \
21437      && test -f ../binutils/Makefile \
21438      && test x$build = x$host; then
21439         gcc_cv_nm=../binutils/nm-new$build_exeext
21440 elif test -x nm$build_exeext; then
21441         gcc_cv_nm=./nm$build_exeext
21442 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21443         gcc_cv_nm="$NM_FOR_TARGET"
21444 else
21445         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21446 set dummy $NM_FOR_TARGET; ac_word=$2
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21448 $as_echo_n "checking for $ac_word... " >&6; }
21449 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21450   $as_echo_n "(cached) " >&6
21451 else
21452   case $gcc_cv_nm in
21453   [\\/]* | ?:[\\/]*)
21454   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21455   ;;
21456   *)
21457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21458 for as_dir in $PATH
21459 do
21460   IFS=$as_save_IFS
21461   test -z "$as_dir" && as_dir=.
21462     for ac_exec_ext in '' $ac_executable_extensions; do
21463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21464     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21466     break 2
21467   fi
21468 done
21469   done
21470 IFS=$as_save_IFS
21471
21472   ;;
21473 esac
21474 fi
21475 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21476 if test -n "$gcc_cv_nm"; then
21477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21478 $as_echo "$gcc_cv_nm" >&6; }
21479 else
21480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21481 $as_echo "no" >&6; }
21482 fi
21483
21484
21485 fi
21486 fi
21487
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21489 $as_echo_n "checking what nm to use... " >&6; }
21490 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21491         # Single tree build which includes binutils.
21492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21493 $as_echo "newly built nm" >&6; }
21494         in_tree_nm=yes
21495 else
21496         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21497 $as_echo "$gcc_cv_nm" >&6; }
21498         in_tree_nm=no
21499 fi
21500
21501 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21502
21503 case "$ORIGINAL_NM_FOR_TARGET" in
21504   ./nm | ./nm$build_exeext) ;;
21505   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21506  ;;
21507 esac
21508
21509
21510 # Figure out what objdump we will be using.
21511 if test "${gcc_cv_objdump+set}" = set; then :
21512
21513 else
21514
21515 if test -f $gcc_cv_binutils_srcdir/configure.in \
21516      && test -f ../binutils/Makefile \
21517      && test x$build = x$host; then
21518         # Single tree build which includes binutils.
21519         gcc_cv_objdump=../binutils/objdump$build_exeext
21520 elif test -x objdump$build_exeext; then
21521         gcc_cv_objdump=./objdump$build_exeext
21522 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21523         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21524 else
21525         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21526 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21528 $as_echo_n "checking for $ac_word... " >&6; }
21529 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21530   $as_echo_n "(cached) " >&6
21531 else
21532   case $gcc_cv_objdump in
21533   [\\/]* | ?:[\\/]*)
21534   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21535   ;;
21536   *)
21537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21538 for as_dir in $PATH
21539 do
21540   IFS=$as_save_IFS
21541   test -z "$as_dir" && as_dir=.
21542     for ac_exec_ext in '' $ac_executable_extensions; do
21543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21544     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21546     break 2
21547   fi
21548 done
21549   done
21550 IFS=$as_save_IFS
21551
21552   ;;
21553 esac
21554 fi
21555 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21556 if test -n "$gcc_cv_objdump"; then
21557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21558 $as_echo "$gcc_cv_objdump" >&6; }
21559 else
21560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21561 $as_echo "no" >&6; }
21562 fi
21563
21564
21565 fi
21566 fi
21567
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21569 $as_echo_n "checking what objdump to use... " >&6; }
21570 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21571         # Single tree build which includes binutils.
21572         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21573 $as_echo "newly built objdump" >&6; }
21574 elif test x$gcc_cv_objdump = x; then
21575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21576 $as_echo "not found" >&6; }
21577 else
21578         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21579 $as_echo "$gcc_cv_objdump" >&6; }
21580 fi
21581
21582 # Figure out what readelf we will be using.
21583 if test "${gcc_cv_readelf+set}" = set; then :
21584
21585 else
21586
21587 if test -f $gcc_cv_binutils_srcdir/configure.in \
21588      && test -f ../binutils/Makefile \
21589      && test x$build = x$host; then
21590         # Single tree build which includes binutils.
21591         gcc_cv_readelf=../binutils/readelf$build_exeext
21592 elif test -x readelf$build_exeext; then
21593         gcc_cv_readelf=./readelf$build_exeext
21594 else
21595         # Extract the first word of "readelf", so it can be a program name with args.
21596 set dummy readelf; ac_word=$2
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21598 $as_echo_n "checking for $ac_word... " >&6; }
21599 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21600   $as_echo_n "(cached) " >&6
21601 else
21602   case $gcc_cv_readelf in
21603   [\\/]* | ?:[\\/]*)
21604   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21605   ;;
21606   *)
21607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21608 for as_dir in $PATH
21609 do
21610   IFS=$as_save_IFS
21611   test -z "$as_dir" && as_dir=.
21612     for ac_exec_ext in '' $ac_executable_extensions; do
21613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21614     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21616     break 2
21617   fi
21618 done
21619   done
21620 IFS=$as_save_IFS
21621
21622   ;;
21623 esac
21624 fi
21625 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21626 if test -n "$gcc_cv_readelf"; then
21627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21628 $as_echo "$gcc_cv_readelf" >&6; }
21629 else
21630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21631 $as_echo "no" >&6; }
21632 fi
21633
21634
21635 fi
21636 fi
21637
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21639 $as_echo_n "checking what readelf to use... " >&6; }
21640 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21641         # Single tree build which includes binutils.
21642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21643 $as_echo "newly built readelf" >&6; }
21644 elif test x$gcc_cv_readelf = x; then
21645         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21646 $as_echo "not found" >&6; }
21647 else
21648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21649 $as_echo "$gcc_cv_readelf" >&6; }
21650 fi
21651
21652 # Figure out what assembler alignment features are present.
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21654 $as_echo_n "checking assembler flags... " >&6; }
21655 if test "${gcc_cv_as_flags+set}" = set; then :
21656   $as_echo_n "(cached) " >&6
21657 else
21658    case "$target" in
21659   i[34567]86-*-linux*)
21660         gcc_cv_as_flags="--32"
21661     ;;
21662   powerpc*-*-darwin*)
21663         gcc_cv_as_flags="-arch ppc"
21664     ;;
21665   *)
21666     gcc_cv_as_flags=" "
21667     ;;
21668   esac
21669 fi
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21671 $as_echo "$gcc_cv_as_flags" >&6; }
21672
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21674 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21675 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21676   $as_echo_n "(cached) " >&6
21677 else
21678   gcc_cv_as_balign_and_p2align=no
21679     if test $in_tree_gas = yes; then
21680     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21681   then gcc_cv_as_balign_and_p2align=yes
21682 fi
21683   elif test x$gcc_cv_as != x; then
21684     $as_echo '.balign 4
21685 .p2align 2' > conftest.s
21686     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21687   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21688   (eval $ac_try) 2>&5
21689   ac_status=$?
21690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21691   test $ac_status = 0; }; }
21692     then
21693         gcc_cv_as_balign_and_p2align=yes
21694     else
21695       echo "configure: failed program was" >&5
21696       cat conftest.s >&5
21697     fi
21698     rm -f conftest.o conftest.s
21699   fi
21700 fi
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21702 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21703 if test $gcc_cv_as_balign_and_p2align = yes; then
21704
21705 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21706
21707 fi
21708
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21710 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21711 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21712   $as_echo_n "(cached) " >&6
21713 else
21714   gcc_cv_as_max_skip_p2align=no
21715     if test $in_tree_gas = yes; then
21716     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21717   then gcc_cv_as_max_skip_p2align=yes
21718 fi
21719   elif test x$gcc_cv_as != x; then
21720     $as_echo '.p2align 4,,7' > conftest.s
21721     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21722   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21723   (eval $ac_try) 2>&5
21724   ac_status=$?
21725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21726   test $ac_status = 0; }; }
21727     then
21728         gcc_cv_as_max_skip_p2align=yes
21729     else
21730       echo "configure: failed program was" >&5
21731       cat conftest.s >&5
21732     fi
21733     rm -f conftest.o conftest.s
21734   fi
21735 fi
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21737 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21738 if test $gcc_cv_as_max_skip_p2align = yes; then
21739
21740 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21741
21742 fi
21743
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21745 $as_echo_n "checking assembler for .literal16... " >&6; }
21746 if test "${gcc_cv_as_literal16+set}" = set; then :
21747   $as_echo_n "(cached) " >&6
21748 else
21749   gcc_cv_as_literal16=no
21750     if test $in_tree_gas = yes; then
21751     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21752   then gcc_cv_as_literal16=yes
21753 fi
21754   elif test x$gcc_cv_as != x; then
21755     $as_echo '.literal16' > conftest.s
21756     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21757   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21758   (eval $ac_try) 2>&5
21759   ac_status=$?
21760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21761   test $ac_status = 0; }; }
21762     then
21763         gcc_cv_as_literal16=yes
21764     else
21765       echo "configure: failed program was" >&5
21766       cat conftest.s >&5
21767     fi
21768     rm -f conftest.o conftest.s
21769   fi
21770 fi
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21772 $as_echo "$gcc_cv_as_literal16" >&6; }
21773 if test $gcc_cv_as_literal16 = yes; then
21774
21775 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21776
21777 fi
21778
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21780 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21781 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21782   $as_echo_n "(cached) " >&6
21783 else
21784   gcc_cv_as_subsection_m1=no
21785     if test $in_tree_gas = yes; then
21786     if test $in_tree_gas_is_elf = yes \
21787   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21788   then gcc_cv_as_subsection_m1=yes
21789 fi
21790   elif test x$gcc_cv_as != x; then
21791     $as_echo 'conftest_label1: .word 0
21792 .subsection -1
21793 conftest_label2: .word 0
21794 .previous' > conftest.s
21795     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21796   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21797   (eval $ac_try) 2>&5
21798   ac_status=$?
21799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21800   test $ac_status = 0; }; }
21801     then
21802         if test x$gcc_cv_nm != x; then
21803     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21804     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21805     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21806     then :
21807     else gcc_cv_as_subsection_m1=yes
21808     fi
21809     rm -f conftest.nm1 conftest.nm2
21810   fi
21811     else
21812       echo "configure: failed program was" >&5
21813       cat conftest.s >&5
21814     fi
21815     rm -f conftest.o conftest.s
21816   fi
21817 fi
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21819 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21820 if test $gcc_cv_as_subsection_m1 = yes; then
21821
21822 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21823
21824 fi
21825
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21827 $as_echo_n "checking assembler for .weak... " >&6; }
21828 if test "${gcc_cv_as_weak+set}" = set; then :
21829   $as_echo_n "(cached) " >&6
21830 else
21831   gcc_cv_as_weak=no
21832     if test $in_tree_gas = yes; then
21833     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21834   then gcc_cv_as_weak=yes
21835 fi
21836   elif test x$gcc_cv_as != x; then
21837     $as_echo '  .weak foobar' > conftest.s
21838     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21839   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21840   (eval $ac_try) 2>&5
21841   ac_status=$?
21842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21843   test $ac_status = 0; }; }
21844     then
21845         gcc_cv_as_weak=yes
21846     else
21847       echo "configure: failed program was" >&5
21848       cat conftest.s >&5
21849     fi
21850     rm -f conftest.o conftest.s
21851   fi
21852 fi
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21854 $as_echo "$gcc_cv_as_weak" >&6; }
21855 if test $gcc_cv_as_weak = yes; then
21856
21857 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21858
21859 fi
21860
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21862 $as_echo_n "checking assembler for .weakref... " >&6; }
21863 if test "${gcc_cv_as_weakref+set}" = set; then :
21864   $as_echo_n "(cached) " >&6
21865 else
21866   gcc_cv_as_weakref=no
21867     if test $in_tree_gas = yes; then
21868     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21869   then gcc_cv_as_weakref=yes
21870 fi
21871   elif test x$gcc_cv_as != x; then
21872     $as_echo '  .weakref foobar, barfnot' > conftest.s
21873     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21874   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21875   (eval $ac_try) 2>&5
21876   ac_status=$?
21877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21878   test $ac_status = 0; }; }
21879     then
21880         gcc_cv_as_weakref=yes
21881     else
21882       echo "configure: failed program was" >&5
21883       cat conftest.s >&5
21884     fi
21885     rm -f conftest.o conftest.s
21886   fi
21887 fi
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21889 $as_echo "$gcc_cv_as_weakref" >&6; }
21890 if test $gcc_cv_as_weakref = yes; then
21891
21892 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21893
21894 fi
21895
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21897 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21898 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21899   $as_echo_n "(cached) " >&6
21900 else
21901   gcc_cv_as_nsubspa_comdat=no
21902     if test $in_tree_gas = yes; then
21903     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21904   then gcc_cv_as_nsubspa_comdat=yes
21905 fi
21906   elif test x$gcc_cv_as != x; then
21907     $as_echo '  .SPACE $TEXT$
21908         .NSUBSPA $CODE$,COMDAT' > conftest.s
21909     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21910   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21911   (eval $ac_try) 2>&5
21912   ac_status=$?
21913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21914   test $ac_status = 0; }; }
21915     then
21916         gcc_cv_as_nsubspa_comdat=yes
21917     else
21918       echo "configure: failed program was" >&5
21919       cat conftest.s >&5
21920     fi
21921     rm -f conftest.o conftest.s
21922   fi
21923 fi
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21925 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21926 if test $gcc_cv_as_nsubspa_comdat = yes; then
21927
21928 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21929
21930 fi
21931
21932 # .hidden needs to be supported in both the assembler and the linker,
21933 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21934 # This is irritatingly difficult to feature test for; we have to check the
21935 # date string after the version number.  If we've got an in-tree
21936 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21937 # to be safe.
21938 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21940 $as_echo_n "checking assembler for .hidden... " >&6; }
21941 if test "${gcc_cv_as_hidden+set}" = set; then :
21942   $as_echo_n "(cached) " >&6
21943 else
21944   gcc_cv_as_hidden=no
21945     if test $in_tree_gas = yes; then
21946     if test $in_tree_gas_is_elf = yes \
21947   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21948   then gcc_cv_as_hidden=yes
21949 fi
21950   elif test x$gcc_cv_as != x; then
21951     $as_echo '  .hidden foobar
21952 foobar:' > conftest.s
21953     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21954   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21955   (eval $ac_try) 2>&5
21956   ac_status=$?
21957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21958   test $ac_status = 0; }; }
21959     then
21960
21961 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21962 # STV_HIDDEN, so disable .hidden support if so.
21963 case "${target}" in
21964   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
21965     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21966       cat > conftest.s <<EOF
21967 .globl hidden
21968         .hidden hidden
21969 hidden:
21970 .globl default
21971         .set    default,hidden
21972 EOF
21973       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21974         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21975         grep '\.hidden default' > /dev/null; then
21976         gcc_cv_as_hidden=no
21977       else
21978         gcc_cv_as_hidden=yes
21979       fi
21980     else
21981       # Assume bug is present if objdump is missing.
21982       gcc_cv_as_hidden=no
21983     fi
21984     ;;
21985   *)
21986     gcc_cv_as_hidden=yes
21987     ;;
21988 esac
21989     else
21990       echo "configure: failed program was" >&5
21991       cat conftest.s >&5
21992     fi
21993     rm -f conftest.o conftest.s
21994   fi
21995 fi
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21997 $as_echo "$gcc_cv_as_hidden" >&6; }
21998
21999 case "${target}" in
22000   *-*-darwin*)
22001     # Darwin as has some visibility support, though with a different syntax.
22002     gcc_cv_as_hidden=yes
22003     ;;
22004 esac
22005
22006 # gnu_indirect_function type is an extension proposed at
22007 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22008 # selection of function implementation
22009 # Check whether --enable-gnu-indirect-function was given.
22010 if test "${enable_gnu_indirect_function+set}" = set; then :
22011   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22012     yes | no) ;;
22013     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22014 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22015   esac
22016 else
22017   enable_gnu_indirect_function="$default_gnu_indirect_function"
22018 fi
22019
22020 if test x$enable_gnu_indirect_function = xyes; then
22021
22022 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22023
22024 fi
22025
22026 if test $in_tree_ld != yes ; then
22027   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22028   if echo "$ld_ver" | grep GNU > /dev/null; then
22029     if test x"$ld_is_gold" = xyes; then
22030       # GNU gold --version looks like this:
22031       #
22032       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22033       #
22034       # We extract the binutils version which is more familiar and specific
22035       # than the gold version.
22036       ld_vers=`echo $ld_ver | sed -n \
22037           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22038     else
22039       # GNU ld --version looks like this:
22040       #
22041       # GNU ld (GNU Binutils) 2.21.51.20110225
22042       ld_vers=`echo $ld_ver | sed -n \
22043           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22044     fi
22045     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'`
22046     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22047     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22048     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22049   else
22050     case "${target}" in
22051       *-*-solaris2*)
22052         #
22053         # Solaris 2 ld -V output looks like this for a regular version:
22054         #
22055         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22056         #
22057         # but test versions add stuff at the end:
22058         #
22059         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22060         #
22061         ld_ver=`$gcc_cv_ld -V 2>&1`
22062         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22063           ld_vers=`echo $ld_ver | sed -n \
22064             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22065           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22066           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22067         fi
22068         ;;
22069     esac
22070   fi
22071 fi
22072
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22074 $as_echo_n "checking linker for .hidden support... " >&6; }
22075 if test "${gcc_cv_ld_hidden+set}" = set; then :
22076   $as_echo_n "(cached) " >&6
22077 else
22078   if test $in_tree_ld = yes ; then
22079   gcc_cv_ld_hidden=no
22080   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 \
22081      && test $in_tree_ld_is_elf = yes; then
22082      gcc_cv_ld_hidden=yes
22083   fi
22084 else
22085   gcc_cv_ld_hidden=yes
22086   if test x"$ld_is_gold" = xyes; then
22087     :
22088   elif echo "$ld_ver" | grep GNU > /dev/null; then
22089     if test 0"$ld_date" -lt 20020404; then
22090       if test -n "$ld_date"; then
22091         # If there was date string, but was earlier than 2002-04-04, fail
22092         gcc_cv_ld_hidden=no
22093       elif test -z "$ld_vers"; then
22094         # If there was no date string nor ld version number, something is wrong
22095         gcc_cv_ld_hidden=no
22096       else
22097         test -z "$ld_vers_patch" && ld_vers_patch=0
22098         if test "$ld_vers_major" -lt 2; then
22099           gcc_cv_ld_hidden=no
22100         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22101           gcc_cv_ld_hidden="no"
22102         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22103           gcc_cv_ld_hidden=no
22104         fi
22105       fi
22106     fi
22107   else
22108     case "${target}" in
22109       *-*-darwin*)
22110         # Darwin ld has some visibility support.
22111         gcc_cv_ld_hidden=yes
22112         ;;
22113       hppa64*-*-hpux* | ia64*-*-hpux*)
22114         gcc_cv_ld_hidden=yes
22115         ;;
22116       *-*-solaris2.8*)
22117         # .hidden support was backported to Solaris 8, starting with ld
22118         # version 1.276.
22119         if test "$ld_vers_minor" -ge 276; then
22120           gcc_cv_ld_hidden=yes
22121         else
22122           gcc_cv_ld_hidden=no
22123         fi
22124         ;;
22125       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22126         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22127         # .symbolic was only added in Solaris 9 12/02.
22128         gcc_cv_ld_hidden=yes
22129         ;;
22130       *)
22131         gcc_cv_ld_hidden=no
22132         ;;
22133     esac
22134   fi
22135 fi
22136 fi
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22138 $as_echo "$gcc_cv_ld_hidden" >&6; }
22139 libgcc_visibility=no
22140
22141
22142 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22143   libgcc_visibility=yes
22144
22145 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22146
22147 fi
22148
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22150 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22151 gcc_cv_ld_ro_rw_mix=unknown
22152 if test $in_tree_ld = yes ; then
22153   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 \
22154      && test $in_tree_ld_is_elf = yes; then
22155     gcc_cv_ld_ro_rw_mix=read-write
22156   fi
22157 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22158   echo '.section myfoosect, "a"' > conftest1.s
22159   echo '.section myfoosect, "aw"' > conftest2.s
22160   echo '.byte 1' >> conftest2.s
22161   echo '.section myfoosect, "a"' > conftest3.s
22162   echo '.byte 0' >> conftest3.s
22163   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22164      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22165      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22166      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22167         conftest2.o conftest3.o > /dev/null 2>&1; then
22168     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22169                          | sed -e '/myfoosect/!d' -e N`
22170     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22171       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22172         gcc_cv_ld_ro_rw_mix=read-only
22173       else
22174         gcc_cv_ld_ro_rw_mix=read-write
22175       fi
22176     fi
22177   fi
22178   rm -f conftest.* conftest[123].*
22179 fi
22180 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22181
22182 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22183
22184 fi
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22186 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22187
22188 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22190 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22191 if test "${gcc_cv_as_leb128+set}" = set; then :
22192   $as_echo_n "(cached) " >&6
22193 else
22194   gcc_cv_as_leb128=no
22195     if test $in_tree_gas = yes; then
22196     if test $in_tree_gas_is_elf = yes \
22197   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22198   then gcc_cv_as_leb128=yes
22199 fi
22200   elif test x$gcc_cv_as != x; then
22201     $as_echo '  .data
22202         .uleb128 L2 - L1
22203 L1:
22204         .uleb128 1280
22205         .sleb128 -1010
22206 L2:' > conftest.s
22207     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22208   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22209   (eval $ac_try) 2>&5
22210   ac_status=$?
22211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22212   test $ac_status = 0; }; }
22213     then
22214         # GAS versions before 2.11 do not support uleb128,
22215   # despite appearing to.
22216   # ??? There exists an elf-specific test that will crash
22217   # the assembler.  Perhaps it's better to figure out whether
22218   # arbitrary sections are supported and try the test.
22219   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22220   if echo "$as_ver" | grep GNU > /dev/null; then
22221     as_vers=`echo $as_ver | sed -n \
22222         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22223     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22224     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22225     if test $as_major -eq 2 && test $as_minor -lt 11
22226     then :
22227     else gcc_cv_as_leb128=yes
22228     fi
22229   fi
22230     else
22231       echo "configure: failed program was" >&5
22232       cat conftest.s >&5
22233     fi
22234     rm -f conftest.o conftest.s
22235   fi
22236 fi
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22238 $as_echo "$gcc_cv_as_leb128" >&6; }
22239 if test $gcc_cv_as_leb128 = yes; then
22240
22241 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22242
22243 fi
22244
22245 # Check if we have assembler support for unwind directives.
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22247 $as_echo_n "checking assembler for cfi directives... " >&6; }
22248 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22249   $as_echo_n "(cached) " >&6
22250 else
22251   gcc_cv_as_cfi_directive=no
22252   if test x$gcc_cv_as != x; then
22253     $as_echo '  .text
22254         .cfi_startproc
22255         .cfi_offset 0, 0
22256         .cfi_same_value 1
22257         .cfi_def_cfa 1, 2
22258         .cfi_escape 1, 2, 3, 4, 5
22259         .cfi_endproc' > conftest.s
22260     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22261   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22262   (eval $ac_try) 2>&5
22263   ac_status=$?
22264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22265   test $ac_status = 0; }; }
22266     then
22267         case "$target" in
22268   *-*-solaris*)
22269     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22270     # read-only and read-write sections, we need to make sure that the
22271     # assembler used emits read-write .eh_frame sections.
22272     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22273       if test "x$gcc_cv_objdump" != x; then
22274         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22275                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22276           gcc_cv_as_cfi_directive=no
22277         else
22278           case "$target" in
22279             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22280               # On Solaris/x86, make sure that GCC and gas agree on using
22281               # read-only .eh_frame sections for 64-bit.
22282               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22283                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22284                         sed -e /.eh_frame/!d -e N | \
22285                         grep READONLY > /dev/null; then
22286                 gcc_cv_as_cfi_directive=yes
22287               else
22288                 gcc_cv_as_cfi_directive=no
22289               fi
22290               ;;
22291             *)
22292               gcc_cv_as_cfi_directive=yes
22293               ;;
22294           esac
22295         fi
22296       else
22297         # no objdump, err on the side of caution
22298         gcc_cv_as_cfi_directive=no
22299       fi
22300     else
22301       gcc_cv_as_cfi_directive=yes
22302     fi
22303     ;;
22304   *-*-*)
22305     gcc_cv_as_cfi_directive=yes
22306     ;;
22307 esac
22308     else
22309       echo "configure: failed program was" >&5
22310       cat conftest.s >&5
22311     fi
22312     rm -f conftest.o conftest.s
22313   fi
22314 fi
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22316 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22317
22318 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22320 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22321 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22322   $as_echo_n "(cached) " >&6
22323 else
22324   gcc_cv_as_cfi_advance_working=no
22325   if test x$gcc_cv_as != x; then
22326     $as_echo '  .text
22327         .cfi_startproc
22328         .cfi_adjust_cfa_offset 64
22329         .skip 75040, 0
22330         .cfi_adjust_cfa_offset 128
22331         .cfi_endproc' > conftest.s
22332     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22333   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22334   (eval $ac_try) 2>&5
22335   ac_status=$?
22336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22337   test $ac_status = 0; }; }
22338     then
22339
22340 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22341     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22342    gcc_cv_as_cfi_advance_working=yes
22343 fi
22344
22345     else
22346       echo "configure: failed program was" >&5
22347       cat conftest.s >&5
22348     fi
22349     rm -f conftest.o conftest.s
22350   fi
22351 fi
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22353 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22354
22355 else
22356   # no objdump, err on the side of caution
22357   gcc_cv_as_cfi_advance_working=no
22358 fi
22359
22360
22361 cat >>confdefs.h <<_ACEOF
22362 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22363        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22364 _ACEOF
22365
22366
22367
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22369 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22370 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22371   $as_echo_n "(cached) " >&6
22372 else
22373   gcc_cv_as_cfi_personality_directive=no
22374   if test x$gcc_cv_as != x; then
22375     $as_echo '  .text
22376         .cfi_startproc
22377         .cfi_personality 0, symbol
22378         .cfi_endproc' > conftest.s
22379     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22380   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22381   (eval $ac_try) 2>&5
22382   ac_status=$?
22383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22384   test $ac_status = 0; }; }
22385     then
22386         gcc_cv_as_cfi_personality_directive=yes
22387     else
22388       echo "configure: failed program was" >&5
22389       cat conftest.s >&5
22390     fi
22391     rm -f conftest.o conftest.s
22392   fi
22393 fi
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22395 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22396
22397
22398 cat >>confdefs.h <<_ACEOF
22399 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22400     then echo 1; else echo 0; fi`
22401 _ACEOF
22402
22403
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22405 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22406 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22407   $as_echo_n "(cached) " >&6
22408 else
22409   gcc_cv_as_cfi_sections_directive=no
22410   if test x$gcc_cv_as != x; then
22411     $as_echo '  .text
22412         .cfi_sections .debug_frame, .eh_frame
22413         .cfi_startproc
22414         .cfi_endproc' > conftest.s
22415     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22416   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22417   (eval $ac_try) 2>&5
22418   ac_status=$?
22419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22420   test $ac_status = 0; }; }
22421     then
22422         case $target_os in
22423   win32 | pe | cygwin* | mingw32* | uwin*)
22424     # Need to check that we generated the correct relocation for the
22425     # .debug_frame section.  This was fixed for binutils 2.21.
22426     gcc_cv_as_cfi_sections_directive=no
22427     if test "x$gcc_cv_objdump" != x; then
22428      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22429         grep secrel > /dev/null; then
22430       gcc_cv_as_cfi_sections_directive=yes
22431      fi
22432     fi
22433     ;;
22434   *)
22435     gcc_cv_as_cfi_sections_directive=yes
22436     ;;
22437 esac
22438     else
22439       echo "configure: failed program was" >&5
22440       cat conftest.s >&5
22441     fi
22442     rm -f conftest.o conftest.s
22443   fi
22444 fi
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22446 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22447
22448
22449
22450 cat >>confdefs.h <<_ACEOF
22451 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22452     then echo 1; else echo 0; fi`
22453 _ACEOF
22454
22455
22456 # GAS versions up to and including 2.11.0 may mis-optimize
22457 # .eh_frame data.
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22459 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22460 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22461   $as_echo_n "(cached) " >&6
22462 else
22463   gcc_cv_as_eh_frame=no
22464     if test $in_tree_gas = yes; then
22465     if test $in_tree_gas_is_elf = yes \
22466   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22467   then gcc_cv_as_eh_frame=yes
22468 fi
22469   elif test x$gcc_cv_as != x; then
22470     $as_echo '  .text
22471 .LFB1:
22472         .4byte  0
22473 .L1:
22474         .4byte  0
22475 .LFE1:
22476         .section        .eh_frame,"aw",@progbits
22477 __FRAME_BEGIN__:
22478         .4byte  .LECIE1-.LSCIE1
22479 .LSCIE1:
22480         .4byte  0x0
22481         .byte   0x1
22482         .ascii "z\0"
22483         .byte   0x1
22484         .byte   0x78
22485         .byte   0x1a
22486         .byte   0x0
22487         .byte   0x4
22488         .4byte  1
22489         .p2align 1
22490 .LECIE1:
22491 .LSFDE1:
22492         .4byte  .LEFDE1-.LASFDE1
22493 .LASFDE1:
22494         .4byte  .LASFDE1-__FRAME_BEGIN__
22495         .4byte  .LFB1
22496         .4byte  .LFE1-.LFB1
22497         .byte   0x4
22498         .4byte  .LFE1-.LFB1
22499         .byte   0x4
22500         .4byte  .L1-.LFB1
22501 .LEFDE1:' > conftest.s
22502     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22503   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22504   (eval $ac_try) 2>&5
22505   ac_status=$?
22506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22507   test $ac_status = 0; }; }
22508     then
22509           cat > conftest.lit <<EOF
22510  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22511  0010 01000000 12000000 18000000 00000000  ................
22512  0020 08000000 04080000 0044               .........D      
22513 EOF
22514 cat > conftest.big <<EOF
22515  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22516  0010 00000001 00000012 00000018 00000000  ................
22517  0020 00000008 04000000 0844               .........D      
22518 EOF
22519   # If the assembler didn't choke, and we can objdump,
22520   # and we got the correct data, then succeed.
22521   # The text in the here-document typically retains its unix-style line
22522   # endings, while the output of objdump will use host line endings.
22523   # Therefore, use diff -b for the comparisons.
22524   if test x$gcc_cv_objdump != x \
22525   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22526      | tail -3 > conftest.got \
22527   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22528     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22529   then
22530     gcc_cv_as_eh_frame=yes
22531   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22532   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22533   (eval $ac_try) 2>&5
22534   ac_status=$?
22535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22536   test $ac_status = 0; }; }; then
22537     gcc_cv_as_eh_frame=buggy
22538   else
22539     # Uh oh, what do we do now?
22540     gcc_cv_as_eh_frame=no
22541   fi
22542     else
22543       echo "configure: failed program was" >&5
22544       cat conftest.s >&5
22545     fi
22546     rm -f conftest.o conftest.s
22547   fi
22548 fi
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22550 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22551
22552
22553 if test $gcc_cv_as_eh_frame = buggy; then
22554
22555 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22556
22557 fi
22558
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22560 $as_echo_n "checking assembler for section merging support... " >&6; }
22561 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22562   $as_echo_n "(cached) " >&6
22563 else
22564   gcc_cv_as_shf_merge=no
22565     if test $in_tree_gas = yes; then
22566     if test $in_tree_gas_is_elf = yes \
22567   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22568   then gcc_cv_as_shf_merge=yes
22569 fi
22570   elif test x$gcc_cv_as != x; then
22571     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22572     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22573   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22574   (eval $ac_try) 2>&5
22575   ac_status=$?
22576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22577   test $ac_status = 0; }; }
22578     then
22579         gcc_cv_as_shf_merge=yes
22580     else
22581       echo "configure: failed program was" >&5
22582       cat conftest.s >&5
22583     fi
22584     rm -f conftest.o conftest.s
22585   fi
22586 fi
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22588 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22589
22590 if test $gcc_cv_as_shf_merge = no; then
22591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22592 $as_echo_n "checking assembler for section merging support... " >&6; }
22593 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22594   $as_echo_n "(cached) " >&6
22595 else
22596   gcc_cv_as_shf_merge=no
22597     if test $in_tree_gas = yes; then
22598     if test $in_tree_gas_is_elf = yes \
22599   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22600   then gcc_cv_as_shf_merge=yes
22601 fi
22602   elif test x$gcc_cv_as != x; then
22603     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22604     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22605   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22606   (eval $ac_try) 2>&5
22607   ac_status=$?
22608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22609   test $ac_status = 0; }; }
22610     then
22611         gcc_cv_as_shf_merge=yes
22612     else
22613       echo "configure: failed program was" >&5
22614       cat conftest.s >&5
22615     fi
22616     rm -f conftest.o conftest.s
22617   fi
22618 fi
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22620 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22621
22622 fi
22623
22624 cat >>confdefs.h <<_ACEOF
22625 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22626 _ACEOF
22627
22628
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22630 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22631 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22632   $as_echo_n "(cached) " >&6
22633 else
22634   gcc_cv_as_comdat_group=no
22635     if test $in_tree_gas = yes; then
22636     if test $in_tree_gas_is_elf = yes \
22637   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22638   then gcc_cv_as_comdat_group=yes
22639 fi
22640   elif test x$gcc_cv_as != x; then
22641     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22642     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22643   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22644   (eval $ac_try) 2>&5
22645   ac_status=$?
22646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22647   test $ac_status = 0; }; }
22648     then
22649         gcc_cv_as_comdat_group=yes
22650     else
22651       echo "configure: failed program was" >&5
22652       cat conftest.s >&5
22653     fi
22654     rm -f conftest.o conftest.s
22655   fi
22656 fi
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22658 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22659
22660 if test $gcc_cv_as_comdat_group = yes; then
22661   gcc_cv_as_comdat_group_percent=no
22662   gcc_cv_as_comdat_group_group=no
22663 else
22664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22665 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22666 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22667   $as_echo_n "(cached) " >&6
22668 else
22669   gcc_cv_as_comdat_group_percent=no
22670     if test $in_tree_gas = yes; then
22671     if test $in_tree_gas_is_elf = yes \
22672   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22673   then gcc_cv_as_comdat_group_percent=yes
22674 fi
22675   elif test x$gcc_cv_as != x; then
22676     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22677     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22678   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22679   (eval $ac_try) 2>&5
22680   ac_status=$?
22681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22682   test $ac_status = 0; }; }
22683     then
22684         gcc_cv_as_comdat_group_percent=yes
22685     else
22686       echo "configure: failed program was" >&5
22687       cat conftest.s >&5
22688     fi
22689     rm -f conftest.o conftest.s
22690   fi
22691 fi
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22693 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22694
22695  if test $gcc_cv_as_comdat_group_percent = yes; then
22696    gcc_cv_as_comdat_group_group=no
22697  else
22698    case "${target}" in
22699      # Sun as uses a completely different syntax.
22700      *-*-solaris2*)
22701        case "${target}" in
22702          sparc*-*-solaris2*)
22703            conftest_s='
22704                .group foo,".text%foo",#comdat
22705                .section ".text%foo", #alloc,#execinstr,#progbits
22706                .globl foo
22707              foo:
22708              '
22709            ;;
22710          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22711            conftest_s='
22712                .group foo,.text%foo,#comdat
22713                .section .text%foo, "ax", @progbits
22714                .globl  foo
22715              foo:
22716              '
22717            ;;
22718        esac
22719        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22720 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22721 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22722   $as_echo_n "(cached) " >&6
22723 else
22724   gcc_cv_as_comdat_group_group=no
22725   if test x$gcc_cv_as != x; then
22726     $as_echo "$conftest_s" > conftest.s
22727     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22728   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22729   (eval $ac_try) 2>&5
22730   ac_status=$?
22731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22732   test $ac_status = 0; }; }
22733     then
22734         gcc_cv_as_comdat_group_group=yes
22735     else
22736       echo "configure: failed program was" >&5
22737       cat conftest.s >&5
22738     fi
22739     rm -f conftest.o conftest.s
22740   fi
22741 fi
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22743 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22744
22745        ;;
22746    esac
22747  fi
22748 fi
22749 if test x"$ld_is_gold" = xyes; then
22750   comdat_group=yes
22751 elif test $in_tree_ld = yes ; then
22752   comdat_group=no
22753   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 \
22754      && test $in_tree_ld_is_elf = yes; then
22755      comdat_group=yes
22756   fi
22757 elif echo "$ld_ver" | grep GNU > /dev/null; then
22758   comdat_group=yes
22759   if test 0"$ld_date" -lt 20050308; then
22760     if test -n "$ld_date"; then
22761       # If there was date string, but was earlier than 2005-03-08, fail
22762       comdat_group=no
22763     elif test "$ld_vers_major" -lt 2; then
22764       comdat_group=no
22765     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22766       comdat_group=no
22767     fi
22768   fi
22769 else
22770   case "${target}" in
22771     *-*-solaris2.1[1-9]*)
22772       comdat_group=no
22773       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22774       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22775       # version 1.688.
22776       #
22777       # If using Sun as for COMDAT group as emitted by GCC, one needs at
22778       # least ld version 1.2267.
22779       if test "$ld_vers_major" -gt 1; then
22780         comdat_group=yes
22781       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22782         comdat_group=yes
22783       elif test "$ld_vers_minor" -ge 2267; then
22784         comdat_group=yes
22785       fi
22786       ;;
22787     *)
22788       # Assume linkers other than GNU ld don't support COMDAT group.
22789       comdat_group=no
22790       ;;
22791   esac
22792 fi
22793 # Allow overriding the automatic COMDAT group tests above.
22794 # Check whether --enable-comdat was given.
22795 if test "${enable_comdat+set}" = set; then :
22796   enableval=$enable_comdat; comdat_group="$enable_comdat"
22797 fi
22798
22799 if test $comdat_group = no; then
22800   gcc_cv_as_comdat_group=no
22801   gcc_cv_as_comdat_group_percent=no
22802   gcc_cv_as_comdat_group_group=no
22803 fi
22804
22805 cat >>confdefs.h <<_ACEOF
22806 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22807     || test $gcc_cv_as_comdat_group_percent = yes \
22808     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22809 _ACEOF
22810
22811
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22813 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22814 if test "${gcc_cv_as_discriminator+set}" = set; then :
22815   $as_echo_n "(cached) " >&6
22816 else
22817   gcc_cv_as_discriminator=no
22818     if test $in_tree_gas = yes; then
22819     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22820   then gcc_cv_as_discriminator=yes
22821 fi
22822   elif test x$gcc_cv_as != x; then
22823     $as_echo '  .text
22824         .file 1 "conf.c"
22825         .loc 1 1 0 discriminator 1' > conftest.s
22826     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22827   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22828   (eval $ac_try) 2>&5
22829   ac_status=$?
22830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22831   test $ac_status = 0; }; }
22832     then
22833         gcc_cv_as_discriminator=yes
22834     else
22835       echo "configure: failed program was" >&5
22836       cat conftest.s >&5
22837     fi
22838     rm -f conftest.o conftest.s
22839   fi
22840 fi
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22842 $as_echo "$gcc_cv_as_discriminator" >&6; }
22843 if test $gcc_cv_as_discriminator = yes; then
22844
22845 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22846
22847 fi
22848
22849 # Thread-local storage - the check is heavily parameterized.
22850 conftest_s=
22851 tls_first_major=
22852 tls_first_minor=
22853 tls_as_opt=
22854 case "$target" in
22855   alpha*-*-*)
22856     conftest_s='
22857         .section ".tdata","awT",@progbits
22858 foo:    .long   25
22859         .text
22860         ldq     $27,__tls_get_addr($29)         !literal!1
22861         lda     $16,foo($29)                    !tlsgd!1
22862         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22863         ldq     $27,__tls_get_addr($29)         !literal!2
22864         lda     $16,foo($29)                    !tlsldm!2
22865         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22866         ldq     $1,foo($29)                     !gotdtprel
22867         ldah    $2,foo($29)                     !dtprelhi
22868         lda     $3,foo($2)                      !dtprello
22869         lda     $4,foo($29)                     !dtprel
22870         ldq     $1,foo($29)                     !gottprel
22871         ldah    $2,foo($29)                     !tprelhi
22872         lda     $3,foo($2)                      !tprello
22873         lda     $4,foo($29)                     !tprel'
22874         tls_first_major=2
22875         tls_first_minor=13
22876         tls_as_opt=--fatal-warnings
22877         ;;
22878   cris-*-*|crisv32-*-*)
22879     conftest_s='
22880         .section ".tdata","awT",@progbits
22881 x:      .long   25
22882         .text
22883         move.d x:IE,$r10
22884         nop'
22885         tls_first_major=2
22886         tls_first_minor=20
22887         tls_as_opt=--fatal-warnings
22888         ;;
22889   frv*-*-*)
22890     conftest_s='
22891         .section ".tdata","awT",@progbits
22892 x:      .long   25
22893         .text
22894         call    #gettlsoff(x)'
22895         tls_first_major=2
22896         tls_first_minor=14
22897         ;;
22898   hppa*-*-linux*)
22899     conftest_s='
22900 t1:     .reg    %r20
22901 t2:     .reg    %r21
22902 gp:     .reg    %r19
22903         .section ".tdata","awT",@progbits
22904 foo:    .long   25
22905         .text
22906         .align  4
22907         addil LT%foo-$tls_gdidx$,gp
22908         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22909         b __tls_get_addr
22910         nop
22911         addil LT%foo-$tls_ldidx$,gp
22912         b __tls_get_addr
22913         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22914         addil LR%foo-$tls_dtpoff$,%ret0
22915         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22916         mfctl %cr27,%t1
22917         addil LT%foo-$tls_ieoff$,gp
22918         ldw RT%foo-$tls_ieoff$(%r1),%t2
22919         add %t1,%t2,%t3
22920         mfctl %cr27,%t1
22921         addil LR%foo-$tls_leoff$,%t1
22922         ldo RR%foo-$tls_leoff$(%r1),%t2'
22923         tls_first_major=2
22924         tls_first_minor=15
22925         tls_as_opt=--fatal-warnings
22926         ;;
22927   arm*-*-*)
22928     conftest_s='
22929         .section ".tdata","awT",%progbits
22930 foo:    .long   25
22931         .text
22932 .word foo(gottpoff)
22933 .word foo(tpoff)
22934 .word foo(tlsgd)
22935 .word foo(tlsldm)
22936 .word foo(tlsldo)'
22937         tls_first_major=2
22938         tls_first_minor=17
22939         ;;
22940   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
22941     case "$target" in
22942       i[34567]86-*-solaris2.*)
22943         on_solaris=yes
22944         tga_func=___tls_get_addr
22945         ;;
22946       x86_64-*-solaris2.1[0-9]*)
22947         on_solaris=yes
22948         tga_func=__tls_get_addr
22949         ;;
22950       *)
22951         on_solaris=no
22952         ;;
22953     esac
22954     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22955       conftest_s='
22956         .section .tdata,"awt",@progbits'
22957       tls_first_major=0
22958       tls_first_minor=0
22959
22960 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22961
22962     else
22963       conftest_s='
22964         .section ".tdata","awT",@progbits'
22965       tls_first_major=2
22966       tls_first_minor=14
22967       tls_as_opt="--fatal-warnings"
22968     fi
22969     conftest_s="$conftest_s
22970 foo:    .long   25
22971         .text
22972         movl    %gs:0, %eax
22973         leal    foo@tlsgd(,%ebx,1), %eax
22974         leal    foo@tlsldm(%ebx), %eax
22975         leal    foo@dtpoff(%eax), %edx
22976         movl    foo@gottpoff(%ebx), %eax
22977         subl    foo@gottpoff(%ebx), %eax
22978         addl    foo@gotntpoff(%ebx), %eax
22979         movl    foo@indntpoff, %eax
22980         movl    \$foo@tpoff, %eax
22981         subl    \$foo@tpoff, %eax
22982         leal    foo@ntpoff(%ecx), %eax"
22983     ;;
22984   x86_64-*-*)
22985     conftest_s='
22986         .section ".tdata","awT",@progbits
22987 foo:    .long   25
22988         .text
22989         movq    %fs:0, %rax
22990         leaq    foo@TLSGD(%rip), %rdi
22991         leaq    foo@TLSLD(%rip), %rdi
22992         leaq    foo@DTPOFF(%rax), %rdx
22993         movq    foo@GOTTPOFF(%rip), %rax
22994         movq    $foo@TPOFF, %rax'
22995         tls_first_major=2
22996         tls_first_minor=14
22997         tls_as_opt=--fatal-warnings
22998         ;;
22999   ia64-*-*)
23000     conftest_s='
23001         .section ".tdata","awT",@progbits
23002 foo:    data8   25
23003         .text
23004         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23005         addl    r17 = @ltoff(@dtprel(foo#)), gp
23006         addl    r18 = @ltoff(@tprel(foo#)), gp
23007         addl    r19 = @dtprel(foo#), gp
23008         adds    r21 = @dtprel(foo#), r13
23009         movl    r23 = @dtprel(foo#)
23010         addl    r20 = @tprel(foo#), gp
23011         adds    r22 = @tprel(foo#), r13
23012         movl    r24 = @tprel(foo#)'
23013         tls_first_major=2
23014         tls_first_minor=13
23015         tls_as_opt=--fatal-warnings
23016         ;;
23017   mips*-*-*)
23018     conftest_s='
23019         .section .tdata,"awT",@progbits
23020 x:
23021         .word 2
23022         .text
23023         addiu $4, $28, %tlsgd(x)
23024         addiu $4, $28, %tlsldm(x)
23025         lui $4, %dtprel_hi(x)
23026         addiu $4, $4, %dtprel_lo(x)
23027         lw $4, %gottprel(x)($28)
23028         lui $4, %tprel_hi(x)
23029         addiu $4, $4, %tprel_lo(x)'
23030         tls_first_major=2
23031         tls_first_minor=16
23032         tls_as_opt='-32 --fatal-warnings'
23033         ;;
23034   m68k-*-*)
23035     conftest_s='
23036         .section .tdata,"awT",@progbits
23037 x:
23038         .word 2
23039         .text
23040 foo:
23041         move.l x@TLSGD(%a5),%a0
23042         move.l x@TLSLDM(%a5),%a0
23043         move.l x@TLSLDO(%a5),%a0
23044         move.l x@TLSIE(%a5),%a0
23045         move.l x@TLSLE(%a5),%a0'
23046         tls_first_major=2
23047         tls_first_minor=19
23048         tls_as_opt='--fatal-warnings'
23049         ;;
23050   powerpc-*-*)
23051     conftest_s='
23052         .section ".tdata","awT",@progbits
23053         .align 2
23054 ld0:    .space 4
23055 ld1:    .space 4
23056 x1:     .space 4
23057 x2:     .space 4
23058 x3:     .space 4
23059         .text
23060         addi 3,31,ld0@got@tlsgd
23061         bl __tls_get_addr
23062         addi 3,31,x1@got@tlsld
23063         bl __tls_get_addr
23064         addi 9,3,x1@dtprel
23065         addis 9,3,x2@dtprel@ha
23066         addi 9,9,x2@dtprel@l
23067         lwz 9,x3@got@tprel(31)
23068         add 9,9,x@tls
23069         addi 9,2,x1@tprel
23070         addis 9,2,x2@tprel@ha
23071         addi 9,9,x2@tprel@l'
23072         tls_first_major=2
23073         tls_first_minor=14
23074         tls_as_opt="-a32 --fatal-warnings"
23075         ;;
23076   powerpc64-*-*)
23077     conftest_s='
23078         .section ".tdata","awT",@progbits
23079         .align 3
23080 ld0:    .space 8
23081 ld1:    .space 8
23082 x1:     .space 8
23083 x2:     .space 8
23084 x3:     .space 8
23085         .text
23086         addi 3,2,ld0@got@tlsgd
23087         bl .__tls_get_addr
23088         nop
23089         addi 3,2,ld1@toc
23090         bl .__tls_get_addr
23091         nop
23092         addi 3,2,x1@got@tlsld
23093         bl .__tls_get_addr
23094         nop
23095         addi 9,3,x1@dtprel
23096         bl .__tls_get_addr
23097         nop
23098         addis 9,3,x2@dtprel@ha
23099         addi 9,9,x2@dtprel@l
23100         bl .__tls_get_addr
23101         nop
23102         ld 9,x3@got@dtprel(2)
23103         add 9,9,3
23104         bl .__tls_get_addr
23105         nop'
23106         tls_first_major=2
23107         tls_first_minor=14
23108         tls_as_opt="-a64 --fatal-warnings"
23109         ;;
23110   s390-*-*)
23111     conftest_s='
23112         .section ".tdata","awT",@progbits
23113 foo:    .long   25
23114         .text
23115         .long   foo@TLSGD
23116         .long   foo@TLSLDM
23117         .long   foo@DTPOFF
23118         .long   foo@NTPOFF
23119         .long   foo@GOTNTPOFF
23120         .long   foo@INDNTPOFF
23121         l       %r1,foo@GOTNTPOFF(%r12)
23122         l       %r1,0(%r1):tls_load:foo
23123         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23124         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23125         tls_first_major=2
23126         tls_first_minor=14
23127         tls_as_opt="-m31 --fatal-warnings"
23128         ;;
23129   s390x-*-*)
23130     conftest_s='
23131         .section ".tdata","awT",@progbits
23132 foo:    .long   25
23133         .text
23134         .quad   foo@TLSGD
23135         .quad   foo@TLSLDM
23136         .quad   foo@DTPOFF
23137         .quad   foo@NTPOFF
23138         .quad   foo@GOTNTPOFF
23139         lg      %r1,foo@GOTNTPOFF(%r12)
23140         larl    %r1,foo@INDNTPOFF
23141         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23142         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23143         tls_first_major=2
23144         tls_first_minor=14
23145         tls_as_opt="-m64 -Aesame --fatal-warnings"
23146         ;;
23147   sh-*-* | sh[34]-*-*)
23148     conftest_s='
23149         .section ".tdata","awT",@progbits
23150 foo:    .long   25
23151         .text
23152         .long   foo@TLSGD
23153         .long   foo@TLSLDM
23154         .long   foo@DTPOFF
23155         .long   foo@GOTTPOFF
23156         .long   foo@TPOFF'
23157         tls_first_major=2
23158         tls_first_minor=13
23159         tls_as_opt=--fatal-warnings
23160         ;;
23161   sparc*-*-*)
23162     case "$target" in
23163       sparc*-sun-solaris2.*)
23164         on_solaris=yes
23165         tga_func=__tls_get_addr
23166         ;;
23167       *)
23168         on_solaris=no
23169         ;;
23170     esac
23171     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23172       conftest_s='
23173         .section ".tdata",#alloc,#write,#tls'
23174         tls_first_major=0
23175         tls_first_minor=0
23176     else
23177       conftest_s='
23178         .section ".tdata","awT",@progbits'
23179         tls_first_major=2
23180         tls_first_minor=14
23181         tls_as_opt="-32 --fatal-warnings"
23182     fi
23183     conftest_s="$conftest_s
23184 foo:    .long   25
23185         .text
23186         sethi   %tgd_hi22(foo), %o0
23187         add     %o0, %tgd_lo10(foo), %o1
23188         add     %l7, %o1, %o0, %tgd_add(foo)
23189         call    __tls_get_addr, %tgd_call(foo)
23190         sethi   %tldm_hi22(foo), %l1
23191         add     %l1, %tldm_lo10(foo), %l2
23192         add     %l7, %l2, %o0, %tldm_add(foo)
23193         call    __tls_get_addr, %tldm_call(foo)
23194         sethi   %tldo_hix22(foo), %l3
23195         xor     %l3, %tldo_lox10(foo), %l4
23196         add     %o0, %l4, %l5, %tldo_add(foo)
23197         sethi   %tie_hi22(foo), %o3
23198         add     %o3, %tie_lo10(foo), %o3
23199         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23200         add     %g7, %o2, %o4, %tie_add(foo)
23201         sethi   %tle_hix22(foo), %l1
23202         xor     %l1, %tle_lox10(foo), %o5
23203         ld      [%g7 + %o5], %o1"
23204         ;;
23205   xtensa*-*-*)
23206     conftest_s='
23207         .section ".tdata","awT",@progbits
23208 foo:    .long   25
23209         .text
23210         movi    a8, foo@TLSFUNC
23211         movi    a10, foo@TLSARG
23212         callx8.tls a8, foo@TLSCALL'
23213         tls_first_major=2
23214         tls_first_minor=19
23215         ;;
23216 esac
23217 set_have_as_tls=no
23218 if test "x$enable_tls" = xno ; then
23219   : # TLS explicitly disabled.
23220 elif test "x$enable_tls" = xyes ; then
23221   set_have_as_tls=yes # TLS explicitly enabled.
23222 elif test -z "$tls_first_major"; then
23223   : # If we don't have a check, assume no support.
23224 else
23225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23226 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23227 if test "${gcc_cv_as_tls+set}" = set; then :
23228   $as_echo_n "(cached) " >&6
23229 else
23230   gcc_cv_as_tls=no
23231     if test $in_tree_gas = yes; then
23232     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23233   then gcc_cv_as_tls=yes
23234 fi
23235   elif test x$gcc_cv_as != x; then
23236     $as_echo "$conftest_s" > conftest.s
23237     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23238   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23239   (eval $ac_try) 2>&5
23240   ac_status=$?
23241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23242   test $ac_status = 0; }; }
23243     then
23244         gcc_cv_as_tls=yes
23245     else
23246       echo "configure: failed program was" >&5
23247       cat conftest.s >&5
23248     fi
23249     rm -f conftest.o conftest.s
23250   fi
23251 fi
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23253 $as_echo "$gcc_cv_as_tls" >&6; }
23254 if test $gcc_cv_as_tls = yes; then
23255   set_have_as_tls=yes
23256 fi
23257 fi
23258 case "$target" in
23259   *-*-irix6*)
23260     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23261     # with TLS support are in use, native TLS cannot work.
23262     set_have_as_tls=no
23263     ;;
23264   *-*-osf*)
23265     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23266     # gld with TLS support are in use, native TLS cannot work.
23267     set_have_as_tls=no
23268     ;;
23269   # TLS was introduced in the Solaris 9 FCS release and backported to
23270   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
23271   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23272   # ld and GCC don't support any longer.
23273   *-*-solaris2.*)
23274     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23275 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23276     ld_tls_support=no
23277     # Check ld and ld.so.1 TLS support.
23278     if echo "$ld_ver" | grep GNU > /dev/null; then
23279       # Assume all interesting versions of GNU ld have TLS support.
23280       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23281       ld_tls_support=yes
23282     else
23283       case "$target" in
23284         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23285         i?86-*-solaris2.8)
23286           min_tls_ld_vers_minor=280
23287           ;;
23288         # Solaris 8/SPARC ld has TLS support since version 1.272.
23289         sparc*-*-solaris2.8)
23290           min_tls_ld_vers_minor=272
23291           ;;
23292         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23293         i?86-*-solaris2.9)
23294           min_tls_ld_vers_minor=374
23295           ;;
23296         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23297         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23298           min_tls_ld_vers_minor=343
23299           ;;
23300       esac
23301       if test "$ld_vers_major" -gt 1 || \
23302         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23303         ld_tls_support=yes
23304       else
23305         set_have_as_tls=no
23306       fi
23307     fi
23308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23309 $as_echo "$ld_tls_support" >&6; }
23310
23311     save_LIBS="$LIBS"
23312     save_LDFLAGS="$LDFLAGS"
23313     LIBS=
23314     LDFLAGS=
23315
23316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23317 $as_echo_n "checking alternate thread library... " >&6; }
23318     case "$target" in
23319       # TLS support was backported to Solaris 8 patches, but only lives in
23320       # the alternate thread library which became the default in Solaris 9.
23321       # We want to always use that, irrespective of TLS support.
23322       *-*-solaris2.8)
23323         # Take multilib subdir into account.  There's no spec to handle
23324         # this.  The 64 symlink exists since Solaris 8.
23325         lwp_dir=/usr/lib/lwp
23326         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23327         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23328         ;;
23329       *-*-solaris2*)
23330         lwp_dir="none"
23331         lwp_spec=""
23332         ;;
23333     esac
23334     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23335
23336 cat >>confdefs.h <<_ACEOF
23337 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23338 _ACEOF
23339
23340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23341 $as_echo "$lwp_dir" >&6; }
23342
23343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23344 $as_echo_n "checking library containing $tga_func... " >&6; }
23345     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23346     # (32-bit x86) only lived in libthread, so check for that.  Keep
23347     # set_have_as_tls if found, disable if not.
23348     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23350 $as_echo_n "checking for library containing $tga_func... " >&6; }
23351 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23352   $as_echo_n "(cached) " >&6
23353 else
23354   ac_func_search_save_LIBS=$LIBS
23355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23356 /* end confdefs.h.  */
23357
23358 /* Override any GCC internal prototype to avoid an error.
23359    Use char because int might match the return type of a GCC
23360    builtin and then its argument prototype would still apply.  */
23361 #ifdef __cplusplus
23362 extern "C"
23363 #endif
23364 char $tga_func ();
23365 int
23366 main ()
23367 {
23368 return $tga_func ();
23369   ;
23370   return 0;
23371 }
23372 _ACEOF
23373 for ac_lib in '' thread; do
23374   if test -z "$ac_lib"; then
23375     ac_res="none required"
23376   else
23377     ac_res=-l$ac_lib
23378     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23379   fi
23380   if ac_fn_c_try_link "$LINENO"; then :
23381   eval "$as_ac_Search=\$ac_res"
23382 fi
23383 rm -f core conftest.err conftest.$ac_objext \
23384     conftest$ac_exeext
23385   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23386   break
23387 fi
23388 done
23389 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23390
23391 else
23392   eval "$as_ac_Search=no"
23393 fi
23394 rm conftest.$ac_ext
23395 LIBS=$ac_func_search_save_LIBS
23396 fi
23397 eval ac_res=\$$as_ac_Search
23398                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23399 $as_echo "$ac_res" >&6; }
23400 eval ac_res=\$$as_ac_Search
23401 if test "$ac_res" != no; then :
23402   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23403
23404 else
23405   set_have_as_tls=no
23406 fi
23407
23408     # Clear LIBS if we cannot support TLS.
23409     if test $set_have_as_tls = no; then
23410       LIBS=
23411     fi
23412     # Always define LIB_TLS_SPEC, even without TLS support.
23413
23414 cat >>confdefs.h <<_ACEOF
23415 #define LIB_TLS_SPEC "$LIBS"
23416 _ACEOF
23417
23418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23419 $as_echo "$LIBS" >&6; }
23420
23421     LIBS="$save_LIBS"
23422     LDFLAGS="$save_LDFLAGS"
23423     ;;
23424 esac
23425 if test $set_have_as_tls = yes ; then
23426
23427 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23428
23429 fi
23430
23431 # Target-specific assembler checks.
23432
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23434 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23435 gcc_cv_ld_static_dynamic=no
23436 gcc_cv_ld_static_option='-Bstatic'
23437 gcc_cv_ld_dynamic_option='-Bdynamic'
23438 if test $in_tree_ld = yes ; then
23439   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
23440     gcc_cv_ld_static_dynamic=yes
23441   fi
23442 elif test x$gcc_cv_ld != x; then
23443   # Check if linker supports -Bstatic/-Bdynamic option
23444   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23445      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23446       gcc_cv_ld_static_dynamic=yes
23447   else
23448     case "$target" in
23449       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23450       alpha*-dec-osf*)
23451         gcc_cv_ld_static_dynamic=yes
23452         gcc_cv_ld_static_option="-noso"
23453         gcc_cv_ld_dynamic_option="-so_archive"
23454         ;;
23455       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23456       mips-sgi-irix6*)
23457         gcc_cv_ld_static_dynamic=yes
23458         ;;
23459       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23460       *-*-solaris2*)
23461         gcc_cv_ld_static_dynamic=yes
23462         ;;
23463     esac
23464   fi
23465 fi
23466 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23467
23468 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23469
23470
23471 cat >>confdefs.h <<_ACEOF
23472 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23473 _ACEOF
23474
23475
23476 cat >>confdefs.h <<_ACEOF
23477 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23478 _ACEOF
23479
23480 fi
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23482 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23483
23484 if test x"$demangler_in_ld" = xyes; then
23485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23486 $as_echo_n "checking linker --demangle support... " >&6; }
23487   gcc_cv_ld_demangle=no
23488   if test $in_tree_ld = yes; then
23489     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 \
23490       gcc_cv_ld_demangle=yes
23491     fi
23492   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23493     # Check if the GNU linker supports --demangle option
23494     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23495       gcc_cv_ld_demangle=yes
23496     fi
23497   fi
23498   if test x"$gcc_cv_ld_demangle" = xyes; then
23499
23500 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23501
23502   fi
23503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23504 $as_echo "$gcc_cv_ld_demangle" >&6; }
23505 fi
23506
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23508 $as_echo_n "checking linker plugin support... " >&6; }
23509 gcc_cv_lto_plugin=0
23510 if test -f liblto_plugin.la; then
23511   save_ld_ver="$ld_ver"
23512   save_ld_vers_major="$ld_vers_major"
23513   save_ld_vers_minor="$ld_vers_minor"
23514   save_ld_is_gold="$ld_is_gold"
23515
23516   ld_is_gold=no
23517
23518   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23519     ld_ver="GNU ld"
23520     # FIXME: ld_is_gold?
23521     ld_vers_major="$gcc_cv_gld_major_version"
23522     ld_vers_minor="$gcc_cv_gld_minor_version"
23523   else
23524     # Determine plugin linker version.
23525     # FIXME: Partial duplicate from above, generalize.
23526     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23527     if echo "$ld_ver" | grep GNU > /dev/null; then
23528       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23529         ld_is_gold=yes
23530         ld_vers=`echo $ld_ver | sed -n \
23531             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23532       else
23533         ld_vers=`echo $ld_ver | sed -n \
23534             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23535       fi
23536       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23537       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23538     fi
23539   fi
23540
23541   # Determine plugin support.
23542   if echo "$ld_ver" | grep GNU > /dev/null; then
23543     # Require GNU ld or gold 2.21+ for plugin support by default.
23544     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23545       gcc_cv_lto_plugin=2
23546     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23547     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23548       gcc_cv_lto_plugin=1
23549     fi
23550   fi
23551
23552   ld_ver="$save_ld_ver"
23553   ld_vers_major="$save_ld_vers_major"
23554   ld_vers_minor="$save_ld_vers_minor"
23555   ld_is_gold="$save_ld_is_gold"
23556 fi
23557
23558 cat >>confdefs.h <<_ACEOF
23559 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23560 _ACEOF
23561
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23563 $as_echo "$gcc_cv_lto_plugin" >&6; }
23564
23565 case "$target" in
23566   # All TARGET_ABI_OSF targets.
23567   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23569 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23570 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23571   $as_echo_n "(cached) " >&6
23572 else
23573   gcc_cv_as_alpha_explicit_relocs=no
23574     if test $in_tree_gas = yes; then
23575     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23576   then gcc_cv_as_alpha_explicit_relocs=yes
23577 fi
23578   elif test x$gcc_cv_as != x; then
23579     $as_echo '  .set nomacro
23580         .text
23581         extbl   $3, $2, $3      !lituse_bytoff!1
23582         ldq     $2, a($29)      !literal!1
23583         ldq     $4, b($29)      !literal!2
23584         ldq_u   $3, 0($2)       !lituse_base!1
23585         ldq     $27, f($29)     !literal!5
23586         jsr     $26, ($27), f   !lituse_jsr!5
23587         ldah    $29, 0($26)     !gpdisp!3
23588         lda     $0, c($29)      !gprel
23589         ldah    $1, d($29)      !gprelhigh
23590         lda     $1, d($1)       !gprellow
23591         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23592     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23593   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23594   (eval $ac_try) 2>&5
23595   ac_status=$?
23596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23597   test $ac_status = 0; }; }
23598     then
23599         gcc_cv_as_alpha_explicit_relocs=yes
23600     else
23601       echo "configure: failed program was" >&5
23602       cat conftest.s >&5
23603     fi
23604     rm -f conftest.o conftest.s
23605   fi
23606 fi
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23608 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23609 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23610
23611 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23612
23613 fi
23614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23615 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23616 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23617   $as_echo_n "(cached) " >&6
23618 else
23619   gcc_cv_as_alpha_jsrdirect_relocs=no
23620     if test $in_tree_gas = yes; then
23621     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23622   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23623 fi
23624   elif test x$gcc_cv_as != x; then
23625     $as_echo '  .set nomacro
23626         .text
23627         ldq     $27, a($29)     !literal!1
23628         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23629     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23630   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23631   (eval $ac_try) 2>&5
23632   ac_status=$?
23633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23634   test $ac_status = 0; }; }
23635     then
23636         gcc_cv_as_alpha_jsrdirect_relocs=yes
23637     else
23638       echo "configure: failed program was" >&5
23639       cat conftest.s >&5
23640     fi
23641     rm -f conftest.o conftest.s
23642   fi
23643 fi
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23645 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23646 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23647
23648 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23649
23650 fi
23651     ;;
23652
23653   cris-*-*)
23654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23655 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23656 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23657   $as_echo_n "(cached) " >&6
23658 else
23659   gcc_cv_as_cris_no_mul_bug=no
23660     if test $in_tree_gas = yes; then
23661     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23662   then gcc_cv_as_cris_no_mul_bug=yes
23663 fi
23664   elif test x$gcc_cv_as != x; then
23665     $as_echo '.text' > conftest.s
23666     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23667   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23668   (eval $ac_try) 2>&5
23669   ac_status=$?
23670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23671   test $ac_status = 0; }; }
23672     then
23673         gcc_cv_as_cris_no_mul_bug=yes
23674     else
23675       echo "configure: failed program was" >&5
23676       cat conftest.s >&5
23677     fi
23678     rm -f conftest.o conftest.s
23679   fi
23680 fi
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23682 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23683 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23684
23685 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23686
23687 fi
23688     ;;
23689
23690   sparc*-*-*)
23691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23692 $as_echo_n "checking assembler for .register... " >&6; }
23693 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23694   $as_echo_n "(cached) " >&6
23695 else
23696   gcc_cv_as_sparc_register_op=no
23697   if test x$gcc_cv_as != x; then
23698     $as_echo '.register %g2, #scratch' > conftest.s
23699     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23700   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23701   (eval $ac_try) 2>&5
23702   ac_status=$?
23703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23704   test $ac_status = 0; }; }
23705     then
23706         gcc_cv_as_sparc_register_op=yes
23707     else
23708       echo "configure: failed program was" >&5
23709       cat conftest.s >&5
23710     fi
23711     rm -f conftest.o conftest.s
23712   fi
23713 fi
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23715 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23716 if test $gcc_cv_as_sparc_register_op = yes; then
23717
23718 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23719
23720 fi
23721
23722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23723 $as_echo_n "checking assembler for -relax option... " >&6; }
23724 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23725   $as_echo_n "(cached) " >&6
23726 else
23727   gcc_cv_as_sparc_relax=no
23728   if test x$gcc_cv_as != x; then
23729     $as_echo '.text' > conftest.s
23730     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23731   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23732   (eval $ac_try) 2>&5
23733   ac_status=$?
23734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23735   test $ac_status = 0; }; }
23736     then
23737         gcc_cv_as_sparc_relax=yes
23738     else
23739       echo "configure: failed program was" >&5
23740       cat conftest.s >&5
23741     fi
23742     rm -f conftest.o conftest.s
23743   fi
23744 fi
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23746 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23747 if test $gcc_cv_as_sparc_relax = yes; then
23748
23749 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23750
23751 fi
23752
23753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23754 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23755 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23756   $as_echo_n "(cached) " >&6
23757 else
23758   gcc_cv_as_sparc_gotdata_op=no
23759   if test x$gcc_cv_as != x; then
23760     $as_echo '.text
23761 .align 4
23762 foo:
23763         nop
23764 bar:
23765         sethi %gdop_hix22(foo), %g1
23766         xor    %g1, %gdop_lox10(foo), %g1
23767         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23768     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23769   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23770   (eval $ac_try) 2>&5
23771   ac_status=$?
23772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23773   test $ac_status = 0; }; }
23774     then
23775         if test x$gcc_cv_ld != x \
23776        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23777          if test x$gcc_cv_objdump != x; then
23778            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23779               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23780                gcc_cv_as_sparc_gotdata_op=no
23781            else
23782                gcc_cv_as_sparc_gotdata_op=yes
23783            fi
23784          fi
23785        fi
23786        rm -f conftest
23787     else
23788       echo "configure: failed program was" >&5
23789       cat conftest.s >&5
23790     fi
23791     rm -f conftest.o conftest.s
23792   fi
23793 fi
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23795 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23796 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23797
23798 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23799
23800 fi
23801
23802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23803 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23804 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23805   $as_echo_n "(cached) " >&6
23806 else
23807   gcc_cv_as_sparc_ua_pcrel=no
23808   if test x$gcc_cv_as != x; then
23809     $as_echo '.text
23810 foo:
23811         nop
23812 .data
23813 .align 4
23814 .byte 0
23815 .uaword %r_disp32(foo)' > conftest.s
23816     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23817   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23818   (eval $ac_try) 2>&5
23819   ac_status=$?
23820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23821   test $ac_status = 0; }; }
23822     then
23823         if test x$gcc_cv_ld != x \
23824        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23825          gcc_cv_as_sparc_ua_pcrel=yes
23826        fi
23827        rm -f conftest
23828     else
23829       echo "configure: failed program was" >&5
23830       cat conftest.s >&5
23831     fi
23832     rm -f conftest.o conftest.s
23833   fi
23834 fi
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23836 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23837 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23838
23839 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23840
23841
23842       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23843 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23844 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23845   $as_echo_n "(cached) " >&6
23846 else
23847   gcc_cv_as_sparc_ua_pcrel_hidden=no
23848   if test x$gcc_cv_as != x; then
23849     $as_echo '.data
23850 .align 4
23851 .byte 0x31
23852 .uaword %r_disp32(foo)
23853 .byte 0x32, 0x33, 0x34
23854 .global foo
23855 .hidden foo
23856 foo:
23857 .skip 4' > conftest.s
23858     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23859   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23860   (eval $ac_try) 2>&5
23861   ac_status=$?
23862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23863   test $ac_status = 0; }; }
23864     then
23865         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23866          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23867          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23868             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23869             if $gcc_cv_objdump -R conftest 2> /dev/null \
23870                | grep 'DISP32' > /dev/null 2>&1; then
23871                 :
23872             else
23873                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23874             fi
23875          fi
23876          rm -f conftest
23877     else
23878       echo "configure: failed program was" >&5
23879       cat conftest.s >&5
23880     fi
23881     rm -f conftest.o conftest.s
23882   fi
23883 fi
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23885 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23886 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23887
23888 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23889
23890 fi
23891
23892 fi # unaligned pcrel relocs
23893
23894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23895 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23896 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23897   $as_echo_n "(cached) " >&6
23898 else
23899   gcc_cv_as_sparc_offsetable_lo10=no
23900   if test x$gcc_cv_as != x; then
23901     $as_echo '.text
23902         or %g1, %lo(ab) + 12, %g1
23903         or %g1, %lo(ab + 12), %g1' > conftest.s
23904     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23905   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23906   (eval $ac_try) 2>&5
23907   ac_status=$?
23908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23909   test $ac_status = 0; }; }
23910     then
23911         if test x$gcc_cv_objdump != x \
23912        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23913           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23914          gcc_cv_as_sparc_offsetable_lo10=yes
23915        fi
23916     else
23917       echo "configure: failed program was" >&5
23918       cat conftest.s >&5
23919     fi
23920     rm -f conftest.o conftest.s
23921   fi
23922 fi
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23924 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23925 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23926
23927 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23928
23929 fi
23930     ;;
23931
23932   i[34567]86-*-* | x86_64-*-*)
23933     case $target_os in
23934       cygwin*)
23935         # Full C++ conformance when using a shared libstdc++-v3 requires some
23936         # support from the Cygwin DLL, which in more recent versions exports
23937         # wrappers to aid in interposing and redirecting operators new, delete,
23938         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23939         # are configuring for a version of Cygwin that exports the wrappers.
23940         if test x$host = x$target; then
23941           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23942 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23943   gcc_ac_cygwin_dll_wrappers=yes
23944 else
23945   gcc_ac_cygwin_dll_wrappers=no
23946 fi
23947
23948         else
23949           # Can't check presence of libc functions during cross-compile, so
23950           # we just have to assume we're building for an up-to-date target.
23951           gcc_ac_cygwin_dll_wrappers=yes
23952         fi
23953
23954 cat >>confdefs.h <<_ACEOF
23955 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23956 _ACEOF
23957
23958     esac
23959     case $target_os in
23960       cygwin* | pe | mingw32*)
23961         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23962         # definition is used unconditionally to initialise the default state of
23963         # the target option variable that governs usage of the feature.
23964         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23965 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23966 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23967   $as_echo_n "(cached) " >&6
23968 else
23969   gcc_cv_as_comm_has_align=no
23970     if test $in_tree_gas = yes; then
23971     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23972   then gcc_cv_as_comm_has_align=yes
23973 fi
23974   elif test x$gcc_cv_as != x; then
23975     $as_echo '.comm foo,1,32' > conftest.s
23976     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23977   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23978   (eval $ac_try) 2>&5
23979   ac_status=$?
23980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23981   test $ac_status = 0; }; }
23982     then
23983         gcc_cv_as_comm_has_align=yes
23984     else
23985       echo "configure: failed program was" >&5
23986       cat conftest.s >&5
23987     fi
23988     rm -f conftest.o conftest.s
23989   fi
23990 fi
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23992 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23993
23994
23995 cat >>confdefs.h <<_ACEOF
23996 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23997 _ACEOF
23998
23999         # Used for DWARF 2 in PE
24000         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24001 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24002 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24003   $as_echo_n "(cached) " >&6
24004 else
24005   gcc_cv_as_ix86_pe_secrel32=no
24006     if test $in_tree_gas = yes; then
24007     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24008   then gcc_cv_as_ix86_pe_secrel32=yes
24009 fi
24010   elif test x$gcc_cv_as != x; then
24011     $as_echo '.text
24012 foo:    nop
24013 .data
24014         .secrel32 foo' > conftest.s
24015     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24016   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24017   (eval $ac_try) 2>&5
24018   ac_status=$?
24019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24020   test $ac_status = 0; }; }
24021     then
24022         if test x$gcc_cv_ld != x \
24023            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24024              gcc_cv_as_ix86_pe_secrel32=yes
24025            fi
24026            rm -f conftest
24027     else
24028       echo "configure: failed program was" >&5
24029       cat conftest.s >&5
24030     fi
24031     rm -f conftest.o conftest.s
24032   fi
24033 fi
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24035 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24036 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24037
24038 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24039
24040 fi
24041         # Test if the assembler supports the extended form of the .section
24042         # directive that specifies section alignment.  LTO support uses this,
24043         # but normally only after installation, so we warn but don't fail the
24044         # configure if LTO is enabled but the assembler does not support it.
24045         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24046 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24047 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24048   $as_echo_n "(cached) " >&6
24049 else
24050   gcc_cv_as_section_has_align=no
24051     if test $in_tree_gas = yes; then
24052     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24053   then gcc_cv_as_section_has_align=yes
24054 fi
24055   elif test x$gcc_cv_as != x; then
24056     $as_echo '.section lto_test,"dr0"' > conftest.s
24057     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24058   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24059   (eval $ac_try) 2>&5
24060   ac_status=$?
24061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24062   test $ac_status = 0; }; }
24063     then
24064         gcc_cv_as_section_has_align=yes
24065     else
24066       echo "configure: failed program was" >&5
24067       cat conftest.s >&5
24068     fi
24069     rm -f conftest.o conftest.s
24070   fi
24071 fi
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24073 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24074
24075         if test x$gcc_cv_as_section_has_align != xyes; then
24076           case ",$enable_languages," in
24077             *,lto,*)
24078               { $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
24079 $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;}
24080               ;;
24081           esac
24082         fi
24083         ;;
24084     esac
24085
24086     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24087 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24088 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24089   $as_echo_n "(cached) " >&6
24090 else
24091   gcc_cv_as_ix86_filds=no
24092   if test x$gcc_cv_as != x; then
24093     $as_echo 'filds mem; fists mem' > conftest.s
24094     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24095   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24096   (eval $ac_try) 2>&5
24097   ac_status=$?
24098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24099   test $ac_status = 0; }; }
24100     then
24101         gcc_cv_as_ix86_filds=yes
24102     else
24103       echo "configure: failed program was" >&5
24104       cat conftest.s >&5
24105     fi
24106     rm -f conftest.o conftest.s
24107   fi
24108 fi
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24110 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24111 if test $gcc_cv_as_ix86_filds = yes; then
24112
24113 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24114
24115 fi
24116
24117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24118 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24119 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24120   $as_echo_n "(cached) " >&6
24121 else
24122   gcc_cv_as_ix86_fildq=no
24123   if test x$gcc_cv_as != x; then
24124     $as_echo 'fildq mem; fistpq mem' > conftest.s
24125     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24126   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24127   (eval $ac_try) 2>&5
24128   ac_status=$?
24129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24130   test $ac_status = 0; }; }
24131     then
24132         gcc_cv_as_ix86_fildq=yes
24133     else
24134       echo "configure: failed program was" >&5
24135       cat conftest.s >&5
24136     fi
24137     rm -f conftest.o conftest.s
24138   fi
24139 fi
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24141 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24142 if test $gcc_cv_as_ix86_fildq = yes; then
24143
24144 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24145
24146 fi
24147
24148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24149 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24150 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24151   $as_echo_n "(cached) " >&6
24152 else
24153   gcc_cv_as_ix86_cmov_sun_syntax=no
24154   if test x$gcc_cv_as != x; then
24155     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24156     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24157   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24158   (eval $ac_try) 2>&5
24159   ac_status=$?
24160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24161   test $ac_status = 0; }; }
24162     then
24163         gcc_cv_as_ix86_cmov_sun_syntax=yes
24164     else
24165       echo "configure: failed program was" >&5
24166       cat conftest.s >&5
24167     fi
24168     rm -f conftest.o conftest.s
24169   fi
24170 fi
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24172 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24173 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24174
24175 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24176
24177 fi
24178
24179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24180 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24181 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24182   $as_echo_n "(cached) " >&6
24183 else
24184   gcc_cv_as_ix86_ffreep=no
24185   if test x$gcc_cv_as != x; then
24186     $as_echo 'ffreep %st(1)' > conftest.s
24187     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24188   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24189   (eval $ac_try) 2>&5
24190   ac_status=$?
24191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24192   test $ac_status = 0; }; }
24193     then
24194         gcc_cv_as_ix86_ffreep=yes
24195     else
24196       echo "configure: failed program was" >&5
24197       cat conftest.s >&5
24198     fi
24199     rm -f conftest.o conftest.s
24200   fi
24201 fi
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24203 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24204 if test $gcc_cv_as_ix86_ffreep = yes; then
24205
24206 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24207
24208 fi
24209
24210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24211 $as_echo_n "checking assembler for .quad directive... " >&6; }
24212 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24213   $as_echo_n "(cached) " >&6
24214 else
24215   gcc_cv_as_ix86_quad=no
24216   if test x$gcc_cv_as != x; then
24217     $as_echo '.quad 0' > conftest.s
24218     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24219   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24220   (eval $ac_try) 2>&5
24221   ac_status=$?
24222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24223   test $ac_status = 0; }; }
24224     then
24225         gcc_cv_as_ix86_quad=yes
24226     else
24227       echo "configure: failed program was" >&5
24228       cat conftest.s >&5
24229     fi
24230     rm -f conftest.o conftest.s
24231   fi
24232 fi
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24234 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24235 if test $gcc_cv_as_ix86_quad = yes; then
24236
24237 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24238
24239 fi
24240
24241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24242 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24243 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24244   $as_echo_n "(cached) " >&6
24245 else
24246   gcc_cv_as_ix86_sahf=no
24247   if test x$gcc_cv_as != x; then
24248     $as_echo '.code64
24249        sahf' > conftest.s
24250     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24251   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24252   (eval $ac_try) 2>&5
24253   ac_status=$?
24254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24255   test $ac_status = 0; }; }
24256     then
24257         gcc_cv_as_ix86_sahf=yes
24258     else
24259       echo "configure: failed program was" >&5
24260       cat conftest.s >&5
24261     fi
24262     rm -f conftest.o conftest.s
24263   fi
24264 fi
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24266 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24267 if test $gcc_cv_as_ix86_sahf = yes; then
24268
24269 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24270
24271 fi
24272
24273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24274 $as_echo_n "checking assembler for swap suffix... " >&6; }
24275 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24276   $as_echo_n "(cached) " >&6
24277 else
24278   gcc_cv_as_ix86_swap=no
24279   if test x$gcc_cv_as != x; then
24280     $as_echo 'movl.s %esp, %ebp' > conftest.s
24281     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24282   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24283   (eval $ac_try) 2>&5
24284   ac_status=$?
24285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24286   test $ac_status = 0; }; }
24287     then
24288         gcc_cv_as_ix86_swap=yes
24289     else
24290       echo "configure: failed program was" >&5
24291       cat conftest.s >&5
24292     fi
24293     rm -f conftest.o conftest.s
24294   fi
24295 fi
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24297 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24298 if test $gcc_cv_as_ix86_swap = yes; then
24299
24300 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24301
24302 fi
24303
24304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24305 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24306 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24307   $as_echo_n "(cached) " >&6
24308 else
24309   gcc_cv_as_ix86_diff_sect_delta=no
24310   if test x$gcc_cv_as != x; then
24311     $as_echo '.section .rodata
24312 .L1:
24313         .long .L2-.L1
24314         .long .L3-.L1
24315         .text
24316 .L3:    nop
24317 .L2:    nop' > conftest.s
24318     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24319   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24320   (eval $ac_try) 2>&5
24321   ac_status=$?
24322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24323   test $ac_status = 0; }; }
24324     then
24325         gcc_cv_as_ix86_diff_sect_delta=yes
24326     else
24327       echo "configure: failed program was" >&5
24328       cat conftest.s >&5
24329     fi
24330     rm -f conftest.o conftest.s
24331   fi
24332 fi
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24334 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24335 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24336
24337 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24338
24339 fi
24340
24341     # These two are used unconditionally by i386.[ch]; it is to be defined
24342     # to 1 if the feature is present, 0 otherwise.
24343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24344 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24345 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24346   $as_echo_n "(cached) " >&6
24347 else
24348   gcc_cv_as_ix86_gotoff_in_data=no
24349     if test $in_tree_gas = yes; then
24350     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24351   then gcc_cv_as_ix86_gotoff_in_data=yes
24352 fi
24353   elif test x$gcc_cv_as != x; then
24354     $as_echo '  .text
24355 .L0:
24356         nop
24357         .data
24358         .long .L0@GOTOFF' > conftest.s
24359     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24360   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24361   (eval $ac_try) 2>&5
24362   ac_status=$?
24363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24364   test $ac_status = 0; }; }
24365     then
24366         gcc_cv_as_ix86_gotoff_in_data=yes
24367     else
24368       echo "configure: failed program was" >&5
24369       cat conftest.s >&5
24370     fi
24371     rm -f conftest.o conftest.s
24372   fi
24373 fi
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24375 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24376
24377
24378 cat >>confdefs.h <<_ACEOF
24379 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24380 _ACEOF
24381
24382
24383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24384 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24385 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24386   $as_echo_n "(cached) " >&6
24387 else
24388   gcc_cv_as_ix86_rep_lock_prefix=no
24389   if test x$gcc_cv_as != x; then
24390     $as_echo 'rep movsl
24391          lock addl %edi, (%eax,%esi)
24392          lock orl $0, (%esp)' > conftest.s
24393     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24394   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24395   (eval $ac_try) 2>&5
24396   ac_status=$?
24397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24398   test $ac_status = 0; }; }
24399     then
24400         gcc_cv_as_ix86_rep_lock_prefix=yes
24401     else
24402       echo "configure: failed program was" >&5
24403       cat conftest.s >&5
24404     fi
24405     rm -f conftest.o conftest.s
24406   fi
24407 fi
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24409 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24410 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24411
24412 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24413
24414 fi
24415
24416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24417 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24418 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24419   $as_echo_n "(cached) " >&6
24420 else
24421   gcc_cv_as_ix86_tlsgdplt=no
24422   if test x$gcc_cv_as != x; then
24423     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24424     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24425   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24426   (eval $ac_try) 2>&5
24427   ac_status=$?
24428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24429   test $ac_status = 0; }; }
24430     then
24431         gcc_cv_as_ix86_tlsgdplt=yes
24432     else
24433       echo "configure: failed program was" >&5
24434       cat conftest.s >&5
24435     fi
24436     rm -f conftest.o conftest.s
24437   fi
24438 fi
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24440 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24441 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24442
24443 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24444
24445 fi
24446
24447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24448 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24449 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24450   $as_echo_n "(cached) " >&6
24451 else
24452   gcc_cv_as_ix86_tlsldmplt=no
24453   if test x$gcc_cv_as != x; then
24454     $as_echo 'call    tls_ld@tlsldmplt' > conftest.s
24455     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24456   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24457   (eval $ac_try) 2>&5
24458   ac_status=$?
24459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24460   test $ac_status = 0; }; }
24461     then
24462         gcc_cv_as_ix86_tlsldmplt=yes
24463     else
24464       echo "configure: failed program was" >&5
24465       cat conftest.s >&5
24466     fi
24467     rm -f conftest.o conftest.s
24468   fi
24469 fi
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24471 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24472 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24473
24474 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24475
24476 fi
24477
24478     ;;
24479
24480   ia64*-*-*)
24481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24482 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24483 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24484   $as_echo_n "(cached) " >&6
24485 else
24486   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24487     if test $in_tree_gas = yes; then
24488     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24489   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24490 fi
24491   elif test x$gcc_cv_as != x; then
24492     $as_echo '  .text
24493         addl r15 = @ltoffx(x#), gp
24494         ;;
24495         ld8.mov r16 = [r15], x#' > conftest.s
24496     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24497   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24498   (eval $ac_try) 2>&5
24499   ac_status=$?
24500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24501   test $ac_status = 0; }; }
24502     then
24503         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24504     else
24505       echo "configure: failed program was" >&5
24506       cat conftest.s >&5
24507     fi
24508     rm -f conftest.o conftest.s
24509   fi
24510 fi
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24512 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24513 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24514
24515 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24516
24517 fi
24518
24519     ;;
24520
24521   powerpc*-*-*)
24522     case $target in
24523       *-*-aix*) conftest_s='    .machine "pwr5"
24524         .csect .text[PR]
24525         mfcr 3,128';;
24526       *-*-darwin*)
24527         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24528 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24529 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24530   $as_echo_n "(cached) " >&6
24531 else
24532   gcc_cv_as_machine_directive=no
24533   if test x$gcc_cv_as != x; then
24534     $as_echo '  .machine ppc7400' > conftest.s
24535     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24536   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24537   (eval $ac_try) 2>&5
24538   ac_status=$?
24539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24540   test $ac_status = 0; }; }
24541     then
24542         gcc_cv_as_machine_directive=yes
24543     else
24544       echo "configure: failed program was" >&5
24545       cat conftest.s >&5
24546     fi
24547     rm -f conftest.o conftest.s
24548   fi
24549 fi
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24551 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24552
24553         if test x$gcc_cv_as_machine_directive != xyes; then
24554           echo "*** This target requires an assembler supporting \".machine\"" >&2
24555           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24556           test x$build = x$target && exit 1
24557         fi
24558         conftest_s='    .text
24559         mfcr r3,128';;
24560       *) conftest_s='   .machine power4
24561         .text
24562         mfcr 3,128';;
24563     esac
24564
24565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24566 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24567 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24568   $as_echo_n "(cached) " >&6
24569 else
24570   gcc_cv_as_powerpc_mfcrf=no
24571     if test $in_tree_gas = yes; then
24572     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24573   then gcc_cv_as_powerpc_mfcrf=yes
24574 fi
24575   elif test x$gcc_cv_as != x; then
24576     $as_echo "$conftest_s" > conftest.s
24577     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24578   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24579   (eval $ac_try) 2>&5
24580   ac_status=$?
24581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24582   test $ac_status = 0; }; }
24583     then
24584         gcc_cv_as_powerpc_mfcrf=yes
24585     else
24586       echo "configure: failed program was" >&5
24587       cat conftest.s >&5
24588     fi
24589     rm -f conftest.o conftest.s
24590   fi
24591 fi
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24593 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24594 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24595
24596 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24597
24598 fi
24599
24600     case $target in
24601       *-*-aix*) conftest_s='    .machine "pwr5"
24602         .csect .text[PR]
24603         popcntb 3,3';;
24604       *) conftest_s='   .machine power5
24605         .text
24606         popcntb 3,3';;
24607     esac
24608
24609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24610 $as_echo_n "checking assembler for popcntb support... " >&6; }
24611 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24612   $as_echo_n "(cached) " >&6
24613 else
24614   gcc_cv_as_powerpc_popcntb=no
24615     if test $in_tree_gas = yes; then
24616     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24617   then gcc_cv_as_powerpc_popcntb=yes
24618 fi
24619   elif test x$gcc_cv_as != x; then
24620     $as_echo "$conftest_s" > conftest.s
24621     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24622   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24623   (eval $ac_try) 2>&5
24624   ac_status=$?
24625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24626   test $ac_status = 0; }; }
24627     then
24628         gcc_cv_as_powerpc_popcntb=yes
24629     else
24630       echo "configure: failed program was" >&5
24631       cat conftest.s >&5
24632     fi
24633     rm -f conftest.o conftest.s
24634   fi
24635 fi
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24637 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24638 if test $gcc_cv_as_powerpc_popcntb = yes; then
24639
24640 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24641
24642 fi
24643
24644     case $target in
24645       *-*-aix*) conftest_s='    .machine "pwr5x"
24646         .csect .text[PR]
24647         frin 1,1';;
24648       *) conftest_s='   .machine power5
24649         .text
24650         frin 1,1';;
24651     esac
24652
24653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24654 $as_echo_n "checking assembler for fp round support... " >&6; }
24655 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24656   $as_echo_n "(cached) " >&6
24657 else
24658   gcc_cv_as_powerpc_fprnd=no
24659     if test $in_tree_gas = yes; then
24660     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24661   then gcc_cv_as_powerpc_fprnd=yes
24662 fi
24663   elif test x$gcc_cv_as != x; then
24664     $as_echo "$conftest_s" > conftest.s
24665     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24666   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24667   (eval $ac_try) 2>&5
24668   ac_status=$?
24669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24670   test $ac_status = 0; }; }
24671     then
24672         gcc_cv_as_powerpc_fprnd=yes
24673     else
24674       echo "configure: failed program was" >&5
24675       cat conftest.s >&5
24676     fi
24677     rm -f conftest.o conftest.s
24678   fi
24679 fi
24680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24681 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24682 if test $gcc_cv_as_powerpc_fprnd = yes; then
24683
24684 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24685
24686 fi
24687
24688     case $target in
24689       *-*-aix*) conftest_s='    .machine "pwr6"
24690         .csect .text[PR]
24691         mffgpr 1,3';;
24692       *) conftest_s='   .machine power6
24693         .text
24694         mffgpr 1,3';;
24695     esac
24696
24697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24698 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24699 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24700   $as_echo_n "(cached) " >&6
24701 else
24702   gcc_cv_as_powerpc_mfpgpr=no
24703     if test $in_tree_gas = yes; then
24704     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24705   then gcc_cv_as_powerpc_mfpgpr=yes
24706 fi
24707   elif test x$gcc_cv_as != x; then
24708     $as_echo "$conftest_s" > conftest.s
24709     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24710   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24711   (eval $ac_try) 2>&5
24712   ac_status=$?
24713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24714   test $ac_status = 0; }; }
24715     then
24716         gcc_cv_as_powerpc_mfpgpr=yes
24717     else
24718       echo "configure: failed program was" >&5
24719       cat conftest.s >&5
24720     fi
24721     rm -f conftest.o conftest.s
24722   fi
24723 fi
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24725 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24726 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24727
24728 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24729
24730 fi
24731
24732     case $target in
24733       *-*-aix*) conftest_s='    .csect .text[PR]
24734 LCF..0:
24735         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24736       *-*-darwin*)
24737         conftest_s='    .text
24738 LCF0:
24739         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24740       *) conftest_s='   .text
24741 .LCF0:
24742         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24743     esac
24744
24745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24746 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24747 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24748   $as_echo_n "(cached) " >&6
24749 else
24750   gcc_cv_as_powerpc_rel16=no
24751     if test $in_tree_gas = yes; then
24752     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24753   then gcc_cv_as_powerpc_rel16=yes
24754 fi
24755   elif test x$gcc_cv_as != x; then
24756     $as_echo "$conftest_s" > conftest.s
24757     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24758   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24759   (eval $ac_try) 2>&5
24760   ac_status=$?
24761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24762   test $ac_status = 0; }; }
24763     then
24764         gcc_cv_as_powerpc_rel16=yes
24765     else
24766       echo "configure: failed program was" >&5
24767       cat conftest.s >&5
24768     fi
24769     rm -f conftest.o conftest.s
24770   fi
24771 fi
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24773 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24774 if test $gcc_cv_as_powerpc_rel16 = yes; then
24775
24776 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24777
24778 fi
24779
24780     case $target in
24781       *-*-aix*) conftest_s='    .machine "pwr6"
24782         .csect .text[PR]
24783         cmpb 3,4,5';;
24784       *) conftest_s='   .machine power6
24785         .text
24786         cmpb 3,4,5';;
24787     esac
24788
24789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24790 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24791 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24792   $as_echo_n "(cached) " >&6
24793 else
24794   gcc_cv_as_powerpc_cmpb=no
24795     if test $in_tree_gas = yes; then
24796     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24797   then gcc_cv_as_powerpc_cmpb=yes
24798 fi
24799   elif test x$gcc_cv_as != x; then
24800     $as_echo "$conftest_s" > conftest.s
24801     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24802   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24803   (eval $ac_try) 2>&5
24804   ac_status=$?
24805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24806   test $ac_status = 0; }; }
24807     then
24808         gcc_cv_as_powerpc_cmpb=yes
24809     else
24810       echo "configure: failed program was" >&5
24811       cat conftest.s >&5
24812     fi
24813     rm -f conftest.o conftest.s
24814   fi
24815 fi
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24817 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24818 if test $gcc_cv_as_powerpc_cmpb = yes; then
24819
24820 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24821
24822 fi
24823
24824     case $target in
24825       *-*-aix*) conftest_s='    .machine "pwr6"
24826         .csect .text[PR]
24827         dadd 1,2,3';;
24828       *) conftest_s='   .machine power6
24829         .text
24830         dadd 1,2,3';;
24831     esac
24832
24833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24834 $as_echo_n "checking assembler for decimal float support... " >&6; }
24835 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24836   $as_echo_n "(cached) " >&6
24837 else
24838   gcc_cv_as_powerpc_dfp=no
24839     if test $in_tree_gas = yes; then
24840     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24841   then gcc_cv_as_powerpc_dfp=yes
24842 fi
24843   elif test x$gcc_cv_as != x; then
24844     $as_echo "$conftest_s" > conftest.s
24845     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24846   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24847   (eval $ac_try) 2>&5
24848   ac_status=$?
24849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24850   test $ac_status = 0; }; }
24851     then
24852         gcc_cv_as_powerpc_dfp=yes
24853     else
24854       echo "configure: failed program was" >&5
24855       cat conftest.s >&5
24856     fi
24857     rm -f conftest.o conftest.s
24858   fi
24859 fi
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24861 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24862 if test $gcc_cv_as_powerpc_dfp = yes; then
24863
24864 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24865
24866 fi
24867
24868     case $target in
24869       *-*-aix*) conftest_s='    .machine "pwr7"
24870         .csect .text[PR]
24871         lxvd2x 1,2,3';;
24872       *) conftest_s='   .machine power7
24873         .text
24874         lxvd2x 1,2,3';;
24875     esac
24876
24877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24878 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24879 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24880   $as_echo_n "(cached) " >&6
24881 else
24882   gcc_cv_as_powerpc_vsx=no
24883     if test $in_tree_gas = yes; then
24884     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24885   then gcc_cv_as_powerpc_vsx=yes
24886 fi
24887   elif test x$gcc_cv_as != x; then
24888     $as_echo "$conftest_s" > conftest.s
24889     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24890   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24891   (eval $ac_try) 2>&5
24892   ac_status=$?
24893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24894   test $ac_status = 0; }; }
24895     then
24896         gcc_cv_as_powerpc_vsx=yes
24897     else
24898       echo "configure: failed program was" >&5
24899       cat conftest.s >&5
24900     fi
24901     rm -f conftest.o conftest.s
24902   fi
24903 fi
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24905 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24906 if test $gcc_cv_as_powerpc_vsx = yes; then
24907
24908 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24909
24910 fi
24911
24912     case $target in
24913       *-*-aix*) conftest_s='    .machine "pwr7"
24914         .csect .text[PR]
24915         popcntd 3,3';;
24916       *) conftest_s='   .machine power7
24917         .text
24918         popcntd 3,3';;
24919     esac
24920
24921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24922 $as_echo_n "checking assembler for popcntd support... " >&6; }
24923 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24924   $as_echo_n "(cached) " >&6
24925 else
24926   gcc_cv_as_powerpc_popcntd=no
24927     if test $in_tree_gas = yes; then
24928     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24929   then gcc_cv_as_powerpc_popcntd=yes
24930 fi
24931   elif test x$gcc_cv_as != x; then
24932     $as_echo "$conftest_s" > conftest.s
24933     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24934   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24935   (eval $ac_try) 2>&5
24936   ac_status=$?
24937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24938   test $ac_status = 0; }; }
24939     then
24940         gcc_cv_as_powerpc_popcntd=yes
24941     else
24942       echo "configure: failed program was" >&5
24943       cat conftest.s >&5
24944     fi
24945     rm -f conftest.o conftest.s
24946   fi
24947 fi
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24949 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24950 if test $gcc_cv_as_powerpc_popcntd = yes; then
24951
24952 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24953
24954 fi
24955
24956     case $target in
24957       *-*-aix*) conftest_s='    .csect .text[PR]
24958         lwsync';;
24959       *) conftest_s='   .text
24960         lwsync';;
24961     esac
24962
24963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24964 $as_echo_n "checking assembler for lwsync support... " >&6; }
24965 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24966   $as_echo_n "(cached) " >&6
24967 else
24968   gcc_cv_as_powerpc_lwsync=no
24969     if test $in_tree_gas = yes; then
24970     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24971   then gcc_cv_as_powerpc_lwsync=yes
24972 fi
24973   elif test x$gcc_cv_as != x; then
24974     $as_echo "$conftest_s" > conftest.s
24975     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24976   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24977   (eval $ac_try) 2>&5
24978   ac_status=$?
24979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24980   test $ac_status = 0; }; }
24981     then
24982         gcc_cv_as_powerpc_lwsync=yes
24983     else
24984       echo "configure: failed program was" >&5
24985       cat conftest.s >&5
24986     fi
24987     rm -f conftest.o conftest.s
24988   fi
24989 fi
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24991 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24992 if test $gcc_cv_as_powerpc_lwsync = yes; then
24993
24994 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24995
24996 fi
24997
24998     case $target in
24999       *-*-aix*) conftest_s='    .machine "476"
25000         .csect .text[PR]
25001         dci 0';;
25002       *) conftest_s='   .machine "476"
25003         .text
25004         dci 0';;
25005     esac
25006
25007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25008 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25009 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25010   $as_echo_n "(cached) " >&6
25011 else
25012   gcc_cv_as_powerpc_dci=no
25013     if test $in_tree_gas = yes; then
25014     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25015   then gcc_cv_as_powerpc_dci=yes
25016 fi
25017   elif test x$gcc_cv_as != x; then
25018     $as_echo "$conftest_s" > conftest.s
25019     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25020   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25021   (eval $ac_try) 2>&5
25022   ac_status=$?
25023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25024   test $ac_status = 0; }; }
25025     then
25026         gcc_cv_as_powerpc_dci=yes
25027     else
25028       echo "configure: failed program was" >&5
25029       cat conftest.s >&5
25030     fi
25031     rm -f conftest.o conftest.s
25032   fi
25033 fi
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25035 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25036 if test $gcc_cv_as_powerpc_dci = yes; then
25037
25038 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25039
25040 fi
25041
25042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25043 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25044 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25045   $as_echo_n "(cached) " >&6
25046 else
25047   gcc_cv_as_powerpc_gnu_attribute=no
25048     if test $in_tree_gas = yes; then
25049     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25050   then gcc_cv_as_powerpc_gnu_attribute=yes
25051 fi
25052   elif test x$gcc_cv_as != x; then
25053     $as_echo '.gnu_attribute 4,1' > conftest.s
25054     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25055   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25056   (eval $ac_try) 2>&5
25057   ac_status=$?
25058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25059   test $ac_status = 0; }; }
25060     then
25061         gcc_cv_as_powerpc_gnu_attribute=yes
25062     else
25063       echo "configure: failed program was" >&5
25064       cat conftest.s >&5
25065     fi
25066     rm -f conftest.o conftest.s
25067   fi
25068 fi
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25070 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25071 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25072
25073 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25074
25075 fi
25076
25077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25078 $as_echo_n "checking assembler for tls marker support... " >&6; }
25079 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25080   $as_echo_n "(cached) " >&6
25081 else
25082   gcc_cv_as_powerpc_tls_markers=no
25083     if test $in_tree_gas = yes; then
25084     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25085   then gcc_cv_as_powerpc_tls_markers=yes
25086 fi
25087   elif test x$gcc_cv_as != x; then
25088     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25089     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25090   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25091   (eval $ac_try) 2>&5
25092   ac_status=$?
25093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25094   test $ac_status = 0; }; }
25095     then
25096         gcc_cv_as_powerpc_tls_markers=yes
25097     else
25098       echo "configure: failed program was" >&5
25099       cat conftest.s >&5
25100     fi
25101     rm -f conftest.o conftest.s
25102   fi
25103 fi
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25105 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25106 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25107
25108 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25109
25110 fi
25111
25112     case $target in
25113       *-*-aix*)
25114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25115 $as_echo_n "checking assembler for .ref support... " >&6; }
25116 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25117   $as_echo_n "(cached) " >&6
25118 else
25119   gcc_cv_as_aix_ref=no
25120     if test $in_tree_gas = yes; then
25121     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25122   then :
25123 fi
25124   elif test x$gcc_cv_as != x; then
25125     $as_echo '  .csect stuff[rw]
25126              stuff:
25127                 .long 1
25128                 .extern sym
25129                 .ref sym
25130           ' > conftest.s
25131     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25132   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25133   (eval $ac_try) 2>&5
25134   ac_status=$?
25135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25136   test $ac_status = 0; }; }
25137     then
25138         gcc_cv_as_aix_ref=yes
25139     else
25140       echo "configure: failed program was" >&5
25141       cat conftest.s >&5
25142     fi
25143     rm -f conftest.o conftest.s
25144   fi
25145 fi
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25147 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25148 if test $gcc_cv_as_aix_ref = yes; then
25149
25150 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25151
25152 fi
25153         ;;
25154     esac
25155     ;;
25156
25157   mips*-*-*)
25158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25159 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25160 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25161   $as_echo_n "(cached) " >&6
25162 else
25163   gcc_cv_as_mips_explicit_relocs=no
25164     if test $in_tree_gas = yes; then
25165     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25166   then gcc_cv_as_mips_explicit_relocs=yes
25167 fi
25168   elif test x$gcc_cv_as != x; then
25169     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25170     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25171   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25172   (eval $ac_try) 2>&5
25173   ac_status=$?
25174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25175   test $ac_status = 0; }; }
25176     then
25177         gcc_cv_as_mips_explicit_relocs=yes
25178     else
25179       echo "configure: failed program was" >&5
25180       cat conftest.s >&5
25181     fi
25182     rm -f conftest.o conftest.s
25183   fi
25184 fi
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25186 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25187 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25188   if test x$target_cpu_default = x
25189        then target_cpu_default=MASK_EXPLICIT_RELOCS
25190        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25191        fi
25192 fi
25193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25194 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25195 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25196   $as_echo_n "(cached) " >&6
25197 else
25198   gcc_cv_as_mips_no_shared=no
25199     if test $in_tree_gas = yes; then
25200     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25201   then gcc_cv_as_mips_no_shared=yes
25202 fi
25203   elif test x$gcc_cv_as != x; then
25204     $as_echo 'nop' > conftest.s
25205     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25206   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25207   (eval $ac_try) 2>&5
25208   ac_status=$?
25209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25210   test $ac_status = 0; }; }
25211     then
25212         gcc_cv_as_mips_no_shared=yes
25213     else
25214       echo "configure: failed program was" >&5
25215       cat conftest.s >&5
25216     fi
25217     rm -f conftest.o conftest.s
25218   fi
25219 fi
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25221 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25222 if test $gcc_cv_as_mips_no_shared = yes; then
25223
25224 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25225
25226 fi
25227
25228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25229 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25230 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25231   $as_echo_n "(cached) " >&6
25232 else
25233   gcc_cv_as_mips_gnu_attribute=no
25234     if test $in_tree_gas = yes; then
25235     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25236   then gcc_cv_as_mips_gnu_attribute=yes
25237 fi
25238   elif test x$gcc_cv_as != x; then
25239     $as_echo '.gnu_attribute 4,1' > conftest.s
25240     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25241   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25242   (eval $ac_try) 2>&5
25243   ac_status=$?
25244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25245   test $ac_status = 0; }; }
25246     then
25247         gcc_cv_as_mips_gnu_attribute=yes
25248     else
25249       echo "configure: failed program was" >&5
25250       cat conftest.s >&5
25251     fi
25252     rm -f conftest.o conftest.s
25253   fi
25254 fi
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25256 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25257 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25258
25259 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25260
25261 fi
25262
25263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25264 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25265 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25266   $as_echo_n "(cached) " >&6
25267 else
25268   gcc_cv_as_mips_dtprelword=no
25269     if test $in_tree_gas = yes; then
25270     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25271   then gcc_cv_as_mips_dtprelword=yes
25272 fi
25273   elif test x$gcc_cv_as != x; then
25274     $as_echo '.section .tdata,"awT",@progbits
25275 x:
25276         .word 2
25277         .text
25278         .dtprelword x+0x8000' > conftest.s
25279     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25280   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25281   (eval $ac_try) 2>&5
25282   ac_status=$?
25283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25284   test $ac_status = 0; }; }
25285     then
25286         gcc_cv_as_mips_dtprelword=yes
25287     else
25288       echo "configure: failed program was" >&5
25289       cat conftest.s >&5
25290     fi
25291     rm -f conftest.o conftest.s
25292   fi
25293 fi
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25295 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25296 if test $gcc_cv_as_mips_dtprelword = yes; then
25297
25298 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25299
25300 fi
25301
25302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25303 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25304 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25305   $as_echo_n "(cached) " >&6
25306 else
25307   gcc_cv_as_mips_dspr1_mult=no
25308   if test x$gcc_cv_as != x; then
25309     $as_echo '  .set    mips32r2
25310         .set    nodspr2
25311         .set    dsp
25312         madd    $ac3,$4,$5
25313         maddu   $ac3,$4,$5
25314         msub    $ac3,$4,$5
25315         msubu   $ac3,$4,$5
25316         mult    $ac3,$4,$5
25317         multu   $ac3,$4,$5' > conftest.s
25318     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25319   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25320   (eval $ac_try) 2>&5
25321   ac_status=$?
25322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25323   test $ac_status = 0; }; }
25324     then
25325         gcc_cv_as_mips_dspr1_mult=yes
25326     else
25327       echo "configure: failed program was" >&5
25328       cat conftest.s >&5
25329     fi
25330     rm -f conftest.o conftest.s
25331   fi
25332 fi
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25334 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25335 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25336
25337 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25338
25339 fi
25340
25341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25342 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25343     gcc_cv_as_ld_jalr_reloc=no
25344     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25345       if test $in_tree_ld = yes ; then
25346         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 \
25347            && test $in_tree_ld_is_elf = yes; then
25348           gcc_cv_as_ld_jalr_reloc=yes
25349         fi
25350       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25351         echo '  .ent x' > conftest.s
25352         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25353         echo '  ld $25,%call16(y)($28)' >> conftest.s
25354         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25355         echo '1:        jalr $25' >> conftest.s
25356         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25357         echo '1:        jalr $25' >> conftest.s
25358         echo '  .end x' >> conftest.s
25359         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25360            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25361           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25362              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25363             gcc_cv_as_ld_jalr_reloc=yes
25364           fi
25365         fi
25366         rm -f conftest.*
25367       fi
25368     fi
25369     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25370       if test x$target_cpu_default = x; then
25371         target_cpu_default=MASK_RELAX_PIC_CALLS
25372       else
25373         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25374       fi
25375     fi
25376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25377 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25378
25379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25380 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25381 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25382   $as_echo_n "(cached) " >&6
25383 else
25384   gcc_cv_ld_mips_personality_relaxation=no
25385        if test $in_tree_ld = yes ; then
25386          if test "$gcc_cv_gld_major_version" -eq 2 \
25387                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25388                  -o "$gcc_cv_gld_major_version" -gt 2; then
25389            gcc_cv_ld_mips_personality_relaxation=yes
25390          fi
25391        elif test x$gcc_cv_as != x \
25392                  -a x$gcc_cv_ld != x \
25393                  -a x$gcc_cv_readelf != x ; then
25394          cat > conftest.s <<EOF
25395         .cfi_startproc
25396         .cfi_personality 0x80,indirect_ptr
25397         .ent test
25398 test:
25399         nop
25400         .end test
25401         .cfi_endproc
25402
25403         .section .data,"aw",@progbits
25404 indirect_ptr:
25405         .dc.a personality
25406 EOF
25407          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25408             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25409            if $gcc_cv_readelf -d conftest 2>&1 \
25410               | grep TEXTREL > /dev/null 2>&1; then
25411              :
25412            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25413                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25414              :
25415            else
25416              gcc_cv_ld_mips_personality_relaxation=yes
25417            fi
25418          fi
25419        fi
25420        rm -f conftest.s conftest.o conftest
25421 fi
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25423 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25424     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25425
25426 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25427
25428     fi
25429     ;;
25430 esac
25431
25432 # Mips and HP-UX need the GNU assembler.
25433 # Linux on IA64 might be able to use the Intel assembler.
25434
25435 case "$target" in
25436   mips*-*-* | *-*-hpux* )
25437     if test x$gas_flag = xyes \
25438        || test x"$host" != x"$build" \
25439        || test ! -x "$gcc_cv_as" \
25440        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25441       :
25442     else
25443       echo "*** This configuration requires the GNU assembler" >&2
25444       exit 1
25445     fi
25446     ;;
25447 esac
25448
25449 # ??? Not all targets support dwarf2 debug_line, even within a version
25450 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25451 # info to the output file.  So, as supported targets are added to gas 2.11,
25452 # add some instruction here to (also) show we expect this might work.
25453 # ??? Once 2.11 is released, probably need to add first known working
25454 # version to the per-target configury.
25455 case "$cpu_type" in
25456   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25457   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25458     insn="nop"
25459     ;;
25460   ia64 | s390)
25461     insn="nop 0"
25462     ;;
25463   mmix)
25464     insn="swym 0"
25465     ;;
25466 esac
25467 if test x"$insn" != x; then
25468  conftest_s="\
25469         .file 1 \"conftest.s\"
25470         .loc 1 3 0
25471         $insn"
25472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25473 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25474 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25475   $as_echo_n "(cached) " >&6
25476 else
25477   gcc_cv_as_dwarf2_debug_line=no
25478     if test $in_tree_gas = yes; then
25479     if test $in_tree_gas_is_elf = yes \
25480   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25481   then gcc_cv_as_dwarf2_debug_line=yes
25482 fi
25483   elif test x$gcc_cv_as != x; then
25484     $as_echo "$conftest_s" > conftest.s
25485     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25486   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25487   (eval $ac_try) 2>&5
25488   ac_status=$?
25489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25490   test $ac_status = 0; }; }
25491     then
25492         if test x$gcc_cv_objdump != x \
25493    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25494       | grep debug_line > /dev/null 2>&1; then
25495      gcc_cv_as_dwarf2_debug_line=yes
25496    fi
25497     else
25498       echo "configure: failed program was" >&5
25499       cat conftest.s >&5
25500     fi
25501     rm -f conftest.o conftest.s
25502   fi
25503 fi
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25505 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25506
25507
25508 # The .debug_line file table must be in the exact order that
25509 # we specified the files, since these indices are also used
25510 # by DW_AT_decl_file.  Approximate this test by testing if
25511 # the assembler bitches if the same index is assigned twice.
25512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25513 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25514 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25515   $as_echo_n "(cached) " >&6
25516 else
25517   gcc_cv_as_dwarf2_file_buggy=no
25518   if test x$gcc_cv_as != x; then
25519     $as_echo '  .file 1 "foo.s"
25520         .file 1 "bar.s"' > conftest.s
25521     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25522   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25523   (eval $ac_try) 2>&5
25524   ac_status=$?
25525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25526   test $ac_status = 0; }; }
25527     then
25528         gcc_cv_as_dwarf2_file_buggy=yes
25529     else
25530       echo "configure: failed program was" >&5
25531       cat conftest.s >&5
25532     fi
25533     rm -f conftest.o conftest.s
25534   fi
25535 fi
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25537 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25538
25539
25540  if test $gcc_cv_as_dwarf2_debug_line = yes \
25541  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25542
25543 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25544
25545  fi
25546
25547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25548 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25549 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25550   $as_echo_n "(cached) " >&6
25551 else
25552   gcc_cv_as_gdwarf2_flag=no
25553     if test $in_tree_gas = yes; then
25554     if test $in_tree_gas_is_elf = yes \
25555   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25556   then gcc_cv_as_gdwarf2_flag=yes
25557 fi
25558   elif test x$gcc_cv_as != x; then
25559     $as_echo "$insn" > conftest.s
25560     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25561   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25562   (eval $ac_try) 2>&5
25563   ac_status=$?
25564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25565   test $ac_status = 0; }; }
25566     then
25567         gcc_cv_as_gdwarf2_flag=yes
25568     else
25569       echo "configure: failed program was" >&5
25570       cat conftest.s >&5
25571     fi
25572     rm -f conftest.o conftest.s
25573   fi
25574 fi
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25576 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25577 if test $gcc_cv_as_gdwarf2_flag = yes; then
25578
25579 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25580
25581 fi
25582
25583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25584 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25585 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25586   $as_echo_n "(cached) " >&6
25587 else
25588   gcc_cv_as_gstabs_flag=no
25589     if test $in_tree_gas = yes; then
25590     if test $in_tree_gas_is_elf = yes \
25591   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25592   then gcc_cv_as_gstabs_flag=yes
25593 fi
25594   elif test x$gcc_cv_as != x; then
25595     $as_echo "$insn" > conftest.s
25596     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25597   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25598   (eval $ac_try) 2>&5
25599   ac_status=$?
25600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25601   test $ac_status = 0; }; }
25602     then
25603         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25604    # and warns about it, but still exits successfully.  So check for
25605    # this.
25606    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25607   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25608   (eval $ac_try) 2>&5
25609   ac_status=$?
25610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25611   test $ac_status = 0; }; }
25612    then :
25613    else gcc_cv_as_gstabs_flag=yes
25614    fi
25615     else
25616       echo "configure: failed program was" >&5
25617       cat conftest.s >&5
25618     fi
25619     rm -f conftest.o conftest.s
25620   fi
25621 fi
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25623 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25624 if test $gcc_cv_as_gstabs_flag = yes; then
25625
25626 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25627
25628 fi
25629
25630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25631 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25632 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25633   $as_echo_n "(cached) " >&6
25634 else
25635   gcc_cv_as_debug_prefix_map_flag=no
25636     if test $in_tree_gas = yes; then
25637     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25638   then gcc_cv_as_debug_prefix_map_flag=yes
25639 fi
25640   elif test x$gcc_cv_as != x; then
25641     $as_echo "$insn" > conftest.s
25642     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25643   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25644   (eval $ac_try) 2>&5
25645   ac_status=$?
25646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25647   test $ac_status = 0; }; }
25648     then
25649         gcc_cv_as_debug_prefix_map_flag=yes
25650     else
25651       echo "configure: failed program was" >&5
25652       cat conftest.s >&5
25653     fi
25654     rm -f conftest.o conftest.s
25655   fi
25656 fi
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25658 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25659 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25660
25661 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25662
25663 fi
25664 fi
25665
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25667 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25668 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25669   $as_echo_n "(cached) " >&6
25670 else
25671   gcc_cv_as_lcomm_with_alignment=no
25672   if test x$gcc_cv_as != x; then
25673     $as_echo '.lcomm bar,4,16' > conftest.s
25674     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25675   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25676   (eval $ac_try) 2>&5
25677   ac_status=$?
25678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25679   test $ac_status = 0; }; }
25680     then
25681         gcc_cv_as_lcomm_with_alignment=yes
25682     else
25683       echo "configure: failed program was" >&5
25684       cat conftest.s >&5
25685     fi
25686     rm -f conftest.o conftest.s
25687   fi
25688 fi
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25690 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25691 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25692
25693 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25694
25695 fi
25696
25697 # Check whether --enable-gnu-unique-object was given.
25698 if test "${enable_gnu_unique_object+set}" = set; then :
25699   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25700     yes | no) ;;
25701     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25702 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25703   esac
25704 else
25705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25706 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25707 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25708   $as_echo_n "(cached) " >&6
25709 else
25710   gcc_cv_as_gnu_unique_object=no
25711     if test $in_tree_gas = yes; then
25712     if test $in_tree_gas_is_elf = yes \
25713   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25714   then gcc_cv_as_gnu_unique_object=yes
25715 fi
25716   elif test x$gcc_cv_as != x; then
25717     $as_echo '.type foo, @gnu_unique_object' > conftest.s
25718     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25719   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25720   (eval $ac_try) 2>&5
25721   ac_status=$?
25722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25723   test $ac_status = 0; }; }
25724     then
25725         gcc_cv_as_gnu_unique_object=yes
25726     else
25727       echo "configure: failed program was" >&5
25728       cat conftest.s >&5
25729     fi
25730     rm -f conftest.o conftest.s
25731   fi
25732 fi
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25734 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25735 if test $gcc_cv_as_gnu_unique_object = yes; then
25736   # Also check for ld.so support, i.e. glibc 2.11 or higher.
25737    if test x$host = x$build -a x$host = x$target &&
25738        ldd --version 2>/dev/null &&
25739        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25740       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25741       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25742       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25743       if test "$glibcnum" -ge 2011 ; then
25744         enable_gnu_unique_object=yes
25745       fi
25746     fi
25747 fi
25748 fi
25749
25750 if test x$enable_gnu_unique_object = xyes; then
25751
25752 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25753
25754 fi
25755
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25757 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25758 if test "${gcc_cv_as_line_zero+set}" = set; then :
25759   $as_echo_n "(cached) " >&6
25760 else
25761   gcc_cv_as_line_zero=no
25762   if test $in_tree_gas = yes; then
25763     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25764   then gcc_cv_as_line_zero=yes
25765 fi
25766   elif test "x$gcc_cv_as" != x; then
25767     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25768     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25769   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25770   (eval $ac_try) 2>&5
25771   ac_status=$?
25772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25773   test $ac_status = 0; }; } &&
25774        test "x`cat conftest.out`" = x
25775     then
25776       gcc_cv_as_line_zero=yes
25777     else
25778       echo "configure: failed program was" >&5
25779       cat conftest.s >&5
25780       echo "configure: error output was" >&5
25781       cat conftest.out >&5
25782     fi
25783     rm -f conftest.o conftest.s conftest.out
25784   fi
25785 fi
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25787 $as_echo "$gcc_cv_as_line_zero" >&6; }
25788 if test "x$gcc_cv_as_line_zero" = xyes; then
25789
25790 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25791
25792 fi
25793
25794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25795 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25796 gcc_cv_ld_eh_frame_hdr=no
25797 if test $in_tree_ld = yes ; then
25798   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 \
25799      && test $in_tree_ld_is_elf = yes; then
25800     gcc_cv_ld_eh_frame_hdr=yes
25801   fi
25802 elif test x$gcc_cv_ld != x; then
25803   if echo "$ld_ver" | grep GNU > /dev/null; then
25804     # Check if linker supports --eh-frame-hdr option
25805     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25806       gcc_cv_ld_eh_frame_hdr=yes
25807     fi
25808   else
25809     case "$target" in
25810       *-*-solaris2*)
25811         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25812         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25813           gcc_cv_ld_eh_frame_hdr=yes
25814         fi
25815         ;;
25816     esac
25817   fi
25818 fi
25819
25820 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25821
25822 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25823
25824 fi
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25826 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25827
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25829 $as_echo_n "checking linker position independent executable support... " >&6; }
25830 gcc_cv_ld_pie=no
25831 if test $in_tree_ld = yes ; then
25832   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 \
25833      && test $in_tree_ld_is_elf = yes; then
25834     gcc_cv_ld_pie=yes
25835   fi
25836 elif test x$gcc_cv_ld != x; then
25837         # Check if linker supports -pie option
25838         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25839                 gcc_cv_ld_pie=yes
25840         fi
25841 fi
25842 if test x"$gcc_cv_ld_pie" = xyes; then
25843
25844 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25845
25846 fi
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25848 $as_echo "$gcc_cv_ld_pie" >&6; }
25849
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25851 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25852 gcc_cv_ld_eh_gc_sections=no
25853 if test $in_tree_ld = yes ; then
25854   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 \
25855      && test $in_tree_ld_is_elf = yes; then
25856     gcc_cv_ld_eh_gc_sections=yes
25857   fi
25858 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25859   cat > conftest.s <<EOF
25860         .section        .text
25861 .globl _start
25862         .type _start, @function
25863 _start:
25864         .long foo
25865         .size _start, .-_start
25866         .section        .text.foo,"ax",@progbits
25867         .type foo, @function
25868 foo:
25869         .long 0
25870         .size foo, .-foo
25871         .section        .gcc_except_table.foo,"a",@progbits
25872 .L0:
25873         .long 0
25874         .section        .eh_frame,"a",@progbits
25875         .long .L0
25876 EOF
25877   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25878     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25879          | grep "gc-sections option ignored" > /dev/null; then
25880       gcc_cv_ld_eh_gc_sections=no
25881     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25882          | grep gcc_except_table > /dev/null; then
25883       gcc_cv_ld_eh_gc_sections=yes
25884       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25885       if test x$gcc_cv_as_comdat_group != xyes; then
25886         gcc_cv_ld_eh_gc_sections=no
25887         cat > conftest.s <<EOF
25888         .section        .text
25889 .globl _start
25890         .type _start, @function
25891 _start:
25892         .long foo
25893         .size _start, .-_start
25894         .section        .gnu.linkonce.t.foo,"ax",@progbits
25895         .type foo, @function
25896 foo:
25897         .long 0
25898         .size foo, .-foo
25899         .section        .gcc_except_table.foo,"a",@progbits
25900 .L0:
25901         .long 0
25902         .section        .eh_frame,"a",@progbits
25903         .long .L0
25904 EOF
25905         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25906           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25907                | grep "gc-sections option ignored" > /dev/null; then
25908             gcc_cv_ld_eh_gc_sections=no
25909           elif $gcc_cv_objdump -h conftest 2> /dev/null \
25910                | grep gcc_except_table > /dev/null; then
25911             gcc_cv_ld_eh_gc_sections=yes
25912           fi
25913         fi
25914       fi
25915     fi
25916   fi
25917   rm -f conftest.s conftest.o conftest
25918 fi
25919 case "$target" in
25920   hppa*-*-linux*)
25921     # ??? This apparently exposes a binutils bug with PC-relative relocations.
25922     gcc_cv_ld_eh_gc_sections=no
25923     ;;
25924 esac
25925 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25926
25927 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25928
25929 fi
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25931 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25932
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25934 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25935 gcc_cv_ld_eh_gc_sections_bug=no
25936 if test $in_tree_ld = yes ; then
25937   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 \
25938      && test $in_tree_ld_is_elf = yes; then
25939     gcc_cv_ld_eh_gc_sections_bug=yes
25940   fi
25941 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
25942   gcc_cv_ld_eh_gc_sections_bug=yes
25943   cat > conftest.s <<EOF
25944         .section        .text
25945 .globl _start
25946         .type _start, @function
25947 _start:
25948         .long foo
25949         .size _start, .-_start
25950         .section        .text.startup.foo,"ax",@progbits
25951         .type foo, @function
25952 foo:
25953         .long 0
25954         .size foo, .-foo
25955         .section        .gcc_except_table.foo,"a",@progbits
25956 .L0:
25957         .long 0
25958         .section        .eh_frame,"a",@progbits
25959         .long .L0
25960 EOF
25961   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25962     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25963          | grep "gc-sections option ignored" > /dev/null; then
25964       :
25965     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25966          | grep gcc_except_table > /dev/null; then
25967       gcc_cv_ld_eh_gc_sections_bug=no
25968     fi
25969   fi
25970   rm -f conftest.s conftest.o conftest
25971 fi
25972 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25973
25974 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25975
25976 fi
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25978 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25979
25980 # --------
25981 # UNSORTED
25982 # --------
25983
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25985 $as_echo_n "checking linker --as-needed support... " >&6; }
25986 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25987   $as_echo_n "(cached) " >&6
25988 else
25989   gcc_cv_ld_as_needed=no
25990 if test $in_tree_ld = yes ; then
25991   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 \
25992      && test $in_tree_ld_is_elf = yes; then
25993     gcc_cv_ld_as_needed=yes
25994   fi
25995 elif test x$gcc_cv_ld != x; then
25996         # Check if linker supports --as-needed and --no-as-needed options
25997         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25998                 gcc_cv_ld_as_needed=yes
25999         fi
26000 fi
26001
26002 fi
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26004 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26005 if test x"$gcc_cv_ld_as_needed" = xyes; then
26006
26007 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26008
26009 fi
26010
26011 case "$target:$tm_file" in
26012   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26014 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26015 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26016   $as_echo_n "(cached) " >&6
26017 else
26018   gcc_cv_ld_no_dot_syms=no
26019     if test $in_tree_ld = yes ; then
26020       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
26021         gcc_cv_ld_no_dot_syms=yes
26022       fi
26023     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26024       cat > conftest1.s <<EOF
26025         .text
26026         bl .foo
26027 EOF
26028       cat > conftest2.s <<EOF
26029         .section ".opd","aw"
26030         .align 3
26031         .globl foo
26032         .type foo,@function
26033 foo:
26034         .quad .LEfoo,.TOC.@tocbase,0
26035         .text
26036 .LEfoo:
26037         blr
26038         .size foo,.-.LEfoo
26039 EOF
26040       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26041          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26042          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26043         gcc_cv_ld_no_dot_syms=yes
26044       fi
26045       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26046     fi
26047
26048 fi
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26050 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26051     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26052
26053 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26054
26055     fi
26056
26057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26058 $as_echo_n "checking linker large toc support... " >&6; }
26059 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26060   $as_echo_n "(cached) " >&6
26061 else
26062   gcc_cv_ld_large_toc=no
26063     if test $in_tree_ld = yes ; then
26064       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
26065         gcc_cv_ld_large_toc=yes
26066       fi
26067     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26068       cat > conftest.s <<EOF
26069         .section ".tbss","awT",@nobits
26070         .align 3
26071 ie0:    .space 8
26072         .global _start
26073         .text
26074 _start:
26075         addis 9,13,ie0@got@tprel@ha
26076         ld 9,ie0@got@tprel@l(9)
26077 EOF
26078       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26079          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26080         gcc_cv_ld_large_toc=yes
26081       fi
26082       rm -f conftest conftest.o conftest.s
26083     fi
26084
26085 fi
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26087 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26088     if test x"$gcc_cv_ld_large_toc" = xyes; then
26089
26090 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26091
26092     fi
26093     ;;
26094 esac
26095
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26097 $as_echo_n "checking linker --build-id support... " >&6; }
26098 if test "${gcc_cv_ld_buildid+set}" = set; then :
26099   $as_echo_n "(cached) " >&6
26100 else
26101   gcc_cv_ld_buildid=no
26102   if test $in_tree_ld = yes ; then
26103     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26104        "$gcc_cv_gld_minor_version" -ge 18 -o \
26105        "$gcc_cv_gld_major_version" -gt 2 \
26106        && test $in_tree_ld_is_elf = yes; then
26107       gcc_cv_ld_buildid=yes
26108     fi
26109   elif test x$gcc_cv_ld != x; then
26110     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26111       gcc_cv_ld_buildid=yes
26112     fi
26113   fi
26114 fi
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26116 $as_echo "$gcc_cv_ld_buildid" >&6; }
26117 if test x"$gcc_cv_ld_buildid" = xyes; then
26118
26119 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26120
26121 fi
26122
26123 # Check whether --enable-linker-build-id was given.
26124 if test "${enable_linker_build_id+set}" = set; then :
26125   enableval=$enable_linker_build_id;
26126 else
26127   enable_linker_build_id=no
26128 fi
26129
26130
26131 if test x"$enable_linker_build_id" = xyes; then
26132   if test x"$gcc_cv_ld_buildid" = xyes; then
26133
26134 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26135
26136   else
26137     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26138 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26139   fi
26140 fi
26141
26142 # In binutils 2.21, GNU ld gained support for new emulations fully
26143 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26145 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26146 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26147   $as_echo_n "(cached) " >&6
26148 else
26149   gcc_cv_ld_sol2_emulation=no
26150   if test $in_tree_ld = yes ; then
26151     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26152        "$gcc_cv_gld_minor_version" -ge 21 -o \
26153        "$gcc_cv_gld_major_version" -gt 2 \
26154        && test $in_tree_ld_is_elf = yes; then
26155       gcc_cv_ld_sol2_emulation=yes
26156     fi
26157   elif test x$gcc_cv_ld != x; then
26158     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26159        grep _sol2 > /dev/null; then
26160       gcc_cv_ld_sol2_emulation=yes
26161     fi
26162   fi
26163 fi
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26165 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26166 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26167
26168 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26169
26170 fi
26171
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26173 $as_echo_n "checking linker --sysroot support... " >&6; }
26174 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26175   $as_echo_n "(cached) " >&6
26176 else
26177   gcc_cv_ld_sysroot=no
26178   if test $in_tree_ld = yes ; then
26179       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
26180         gcc_cv_ld_sysroot=yes
26181       fi
26182   elif test x$gcc_cv_ld != x; then
26183     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26184       gcc_cv_ld_sysroot=yes
26185     fi
26186   fi
26187 fi
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26189 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26190 if test x"$gcc_cv_ld_sysroot" = xyes; then
26191
26192 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26193
26194 fi
26195
26196 if test x$with_sysroot = x && test x$host = x$target \
26197    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26198    && test "$prefix" != "NONE"; then
26199
26200 cat >>confdefs.h <<_ACEOF
26201 #define PREFIX_INCLUDE_DIR "$prefix/include"
26202 _ACEOF
26203
26204 fi
26205
26206 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26207   if test "x$with_headers" != x; then
26208     target_header_dir=$with_headers
26209   elif test "x$with_sysroot" = x; then
26210     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26211   elif test "x$with_build_sysroot" != "x"; then
26212     target_header_dir="${with_build_sysroot}/usr/include"
26213   elif test "x$with_sysroot" = xyes; then
26214     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26215   else
26216     target_header_dir="${with_sysroot}/usr/include"
26217   fi
26218 else
26219   target_header_dir=/usr/include
26220 fi
26221
26222 # Test for stack protector support in target C library.
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26224 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26225 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26226   $as_echo_n "(cached) " >&6
26227 else
26228   gcc_cv_libc_provides_ssp=no
26229     case "$target" in
26230        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26231       # glibc 2.4 and later provides __stack_chk_fail and
26232       # either __stack_chk_guard, or TLS access to stack guard canary.
26233       if test -f $target_header_dir/features.h \
26234          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26235             $target_header_dir/features.h > /dev/null; then
26236         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26237            $target_header_dir/features.h > /dev/null; then
26238           gcc_cv_libc_provides_ssp=yes
26239         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26240              $target_header_dir/features.h > /dev/null \
26241              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26242              $target_header_dir/features.h > /dev/null; then
26243           gcc_cv_libc_provides_ssp=yes
26244         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26245              $target_header_dir/features.h > /dev/null && \
26246              test -f $target_header_dir/bits/uClibc_config.h && \
26247              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26248              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26249           gcc_cv_libc_provides_ssp=yes
26250         fi
26251       fi
26252         ;;
26253        *-*-gnu*)
26254          # Avoid complicated tests (see
26255          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26256          # simply assert that glibc does provide this, which is true for all
26257          # realistically usable GNU/Hurd configurations.
26258          gcc_cv_libc_provides_ssp=yes;;
26259        *-*-darwin* | *-*-freebsd*)
26260          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26261 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26262   gcc_cv_libc_provides_ssp=yes
26263 else
26264   echo "no __stack_chk_fail on this target"
26265 fi
26266
26267         ;;
26268   *) gcc_cv_libc_provides_ssp=no ;;
26269     esac
26270 fi
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26272 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26273
26274 if test x$gcc_cv_libc_provides_ssp = xyes; then
26275
26276 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26277
26278 fi
26279
26280 # Test for <sys/sdt.h> on the target.
26281
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26283 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26284 have_sys_sdt_h=no
26285 if test -f $target_header_dir/sys/sdt.h; then
26286
26287 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26288
26289 fi
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26291 $as_echo "$have_sys_sdt_h" >&6; }
26292
26293 # Check if TFmode long double should be used by default or not.
26294 # Some glibc targets used DFmode long double, but with glibc 2.4
26295 # and later they can use TFmode.
26296 case "$target" in
26297   powerpc*-*-linux* | \
26298   sparc*-*-linux* | \
26299   s390*-*-linux* | \
26300   alpha*-*-linux*)
26301
26302 # Check whether --with-long-double-128 was given.
26303 if test "${with_long_double_128+set}" = set; then :
26304   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26305 else
26306   gcc_cv_target_ldbl128=no
26307       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26308         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26309       && gcc_cv_target_ldbl128=yes
26310
26311 fi
26312
26313     ;;
26314 esac
26315 if test x$gcc_cv_target_ldbl128 = xyes; then
26316
26317 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26318
26319 fi
26320
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26322 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26323 gcc_cv_target_dl_iterate_phdr=unknown
26324 case "$target" in
26325   *-*-solaris2*)
26326     # <link.h> needs both a dl_iterate_phdr declaration and support for
26327     # compilation with largefile support.
26328     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26329       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26330       gcc_cv_target_dl_iterate_phdr=yes
26331     else
26332       gcc_cv_target_dl_iterate_phdr=no
26333     fi
26334     ;;
26335 esac
26336
26337 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26338
26339 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26340
26341 fi
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26343 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26344
26345 # Find out what GC implementation we want, or may, use.
26346
26347 # Check whether --with-gc was given.
26348 if test "${with_gc+set}" = set; then :
26349   withval=$with_gc; case "$withval" in
26350   page)
26351     GGC=ggc-$withval
26352     ;;
26353   zone)
26354     GGC=ggc-$withval
26355
26356 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26357
26358     ;;
26359   *)
26360     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26361     ;;
26362 esac
26363 else
26364   GGC=ggc-page
26365 fi
26366
26367
26368 echo "Using $GGC for garbage collection."
26369
26370 # Libraries to use on the host.  This will normally be set by the top
26371 # level Makefile.  Here we simply capture the value for our Makefile.
26372 if test -z "${HOST_LIBS+set}"; then
26373   HOST_LIBS=
26374 fi
26375
26376
26377 # Use the system's zlib library.
26378 zlibdir=-L../zlib
26379 zlibinc="-I\$(srcdir)/../zlib"
26380
26381 # Check whether --with-system-zlib was given.
26382 if test "${with_system_zlib+set}" = set; then :
26383   withval=$with_system_zlib; zlibdir=
26384 zlibinc=
26385
26386 fi
26387
26388
26389
26390
26391
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26393 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26394     # Check whether --enable-maintainer-mode was given.
26395 if test "${enable_maintainer_mode+set}" = set; then :
26396   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26397 else
26398   maintainer_mode=no
26399 fi
26400
26401
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26403 $as_echo "$maintainer_mode" >&6; }
26404
26405 if test "$maintainer_mode" = "yes"; then
26406   MAINT=''
26407 else
26408   MAINT='#'
26409 fi
26410
26411 # --------------
26412 # Language hooks
26413 # --------------
26414
26415 # Make empty files to contain the specs and options for each language.
26416 # Then add #include lines to for a compiler that has specs and/or options.
26417
26418 subdirs=
26419 lang_opt_files=
26420 lang_specs_files=
26421 lang_tree_files=
26422 # These (without "all_") are set in each config-lang.in.
26423 # `language' must be a single word so is spelled singularly.
26424 all_languages=
26425 all_compilers=
26426 all_outputs='Makefile'
26427 # List of language makefile fragments.
26428 all_lang_makefrags=
26429 # Additional files for gengtype
26430 all_gtfiles="$target_gtfiles"
26431
26432 # These are the languages that are set in --enable-languages,
26433 # and are available in the GCC tree.
26434 all_selected_languages=
26435
26436 # Add the language fragments.
26437 # Languages are added via two mechanisms.  Some information must be
26438 # recorded in makefile variables, these are defined in config-lang.in.
26439 # We accumulate them and plug them into the main Makefile.
26440 # The other mechanism is a set of hooks for each of the main targets
26441 # like `clean', `install', etc.
26442
26443 language_hooks="Make-hooks"
26444
26445 for lang in ${srcdir}/*/config-lang.in
26446 do
26447         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26448
26449         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26450         if test "x$lang_alias" = x
26451         then
26452               echo "$lang doesn't set \$language." 1>&2
26453               exit 1
26454         fi
26455         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26456         subdirs="$subdirs $subdir"
26457
26458         # $gcc_subdir is where the gcc integration files are to be found
26459         # for a language, both for internal compiler purposes (compiler
26460         # sources implementing front-end to GCC tree converters), and for
26461         # build infrastructure purposes (Make-lang.in, etc.)
26462         #
26463         # This will be <subdir> (relative to $srcdir) if a line like
26464         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26465         # is found in <langdir>/config-lang.in, and will remain <langdir>
26466         # otherwise.
26467         #
26468         # Except for the language alias (fetched above), the regular
26469         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26470         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26471         # only this and the language alias.
26472
26473         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26474         if [ "$gcc_subdir" = "" ]; then
26475            gcc_subdir="$subdir"
26476         fi
26477
26478         case ",$enable_languages," in
26479         *,$lang_alias,*)
26480             all_selected_languages="$all_selected_languages $lang_alias"
26481             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26482                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26483             fi
26484             ;;
26485         esac
26486
26487         language=
26488         boot_language=
26489         compilers=
26490         outputs=
26491         gtfiles=
26492         subdir_requires=
26493         . ${srcdir}/$gcc_subdir/config-lang.in
26494         if test "x$language" = x
26495         then
26496                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26497                 exit 1
26498         fi
26499
26500         ok=:
26501         case ",$enable_languages," in
26502                 *,$lang_alias,*) ;;
26503                 *)
26504                         for i in $subdir_requires; do
26505                                 test -f "${srcdir}/$i/config-lang.in" && continue
26506                                 ok=false
26507                                 break
26508                         done
26509                 ;;
26510         esac
26511         $ok || continue
26512
26513         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26514         if test -f $srcdir/$gcc_subdir/lang.opt; then
26515             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26516             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26517         fi
26518         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26519             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26520         fi
26521         all_languages="$all_languages $language"
26522         all_compilers="$all_compilers $compilers"
26523         all_outputs="$all_outputs $outputs"
26524         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26525         case ",$enable_languages," in
26526                 *,lto,*)
26527
26528 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26529
26530                     enable_lto=yes
26531
26532                     ;;
26533                 *) ;;
26534         esac
26535 done
26536
26537 # Pick up gtfiles for c
26538 gtfiles=
26539 . ${srcdir}/c-config-lang.in
26540 all_gtfiles="$all_gtfiles [c] $gtfiles"
26541
26542 check_languages=
26543 for language in $all_selected_languages
26544 do
26545         check_languages="$check_languages check-$language"
26546 done
26547
26548 # We link each language in with a set of hooks, reached indirectly via
26549 # lang.${target}.  Only do so for selected languages.
26550
26551 rm -f Make-hooks
26552 touch Make-hooks
26553 target_list="all.cross start.encap rest.encap tags \
26554         install-common install-man install-info install-pdf install-html dvi \
26555         pdf html uninstall info man srcextra srcman srcinfo \
26556         mostlyclean clean distclean maintainer-clean install-plugin"
26557
26558 for t in $target_list
26559 do
26560         x=
26561         for lang in $all_selected_languages
26562         do
26563                 x="$x $lang.$t"
26564         done
26565         echo "lang.$t: $x" >> Make-hooks
26566 done
26567
26568 # --------
26569 # Option include files
26570 # --------
26571
26572 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26573 option_includes="option-includes.mk"
26574
26575
26576 # --------
26577 # UNSORTED
26578 # --------
26579
26580 # Create .gdbinit.
26581
26582 echo "dir ." > .gdbinit
26583 echo "dir ${srcdir}" >> .gdbinit
26584 if test x$gdb_needs_out_file_path = xyes
26585 then
26586         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26587 fi
26588 if test "x$subdirs" != x; then
26589         for s in $subdirs
26590         do
26591                 echo "dir ${srcdir}/$s" >> .gdbinit
26592         done
26593 fi
26594 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26595
26596 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26597
26598
26599
26600 # Find a directory in which to install a shared libgcc.
26601
26602 # Check whether --enable-version-specific-runtime-libs was given.
26603 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26604   enableval=$enable_version_specific_runtime_libs;
26605 fi
26606
26607
26608
26609 # Check whether --with-slibdir was given.
26610 if test "${with_slibdir+set}" = set; then :
26611   withval=$with_slibdir; slibdir="$with_slibdir"
26612 else
26613   if test "${enable_version_specific_runtime_libs+set}" = set; then
26614   slibdir='$(libsubdir)'
26615 elif test "$host" != "$target"; then
26616   slibdir='$(build_tooldir)/lib'
26617 else
26618   slibdir='$(libdir)'
26619 fi
26620 fi
26621
26622
26623
26624 # Substitute configuration variables
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
26688
26689
26690
26691 # Echo link setup.
26692 if test x${build} = x${host} ; then
26693   if test x${host} = x${target} ; then
26694     echo "Links are now set up to build a native compiler for ${target}." 1>&2
26695   else
26696     echo "Links are now set up to build a cross-compiler" 1>&2
26697     echo " from ${host} to ${target}." 1>&2
26698   fi
26699 else
26700   if test x${host} = x${target} ; then
26701     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26702     echo " for ${target}." 1>&2
26703   else
26704     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26705     echo " from ${host} to ${target}." 1>&2
26706   fi
26707 fi
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717 if test "x${CLOOGLIBS}" != "x" ; then
26718
26719 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26720
26721 fi
26722
26723 # Check for plugin support
26724 # Check whether --enable-plugin was given.
26725 if test "${enable_plugin+set}" = set; then :
26726   enableval=$enable_plugin; enable_plugin=$enableval
26727 else
26728   enable_plugin=yes; default_plugin=yes
26729 fi
26730
26731
26732 pluginlibs=
26733
26734 case "${host}" in
26735   *-*-darwin*)
26736     if test x$build = x$host; then
26737       export_sym_check="nm${exeext} -g"
26738     elif test x$host = x$target; then
26739       export_sym_check="$gcc_cv_nm -g"
26740     else
26741       export_sym_check=
26742     fi
26743   ;;
26744   *)
26745     if test x$build = x$host; then
26746       export_sym_check="objdump${exeext} -T"
26747     elif test x$host = x$target; then
26748       export_sym_check="$gcc_cv_objdump -T"
26749     else
26750       export_sym_check=
26751     fi
26752   ;;
26753 esac
26754
26755 if test x"$enable_plugin" = x"yes"; then
26756
26757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26758 $as_echo_n "checking for exported symbols... " >&6; }
26759   if test "x$export_sym_check" != x; then
26760     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26761     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26762     if $export_sym_check conftest | grep foobar > /dev/null; then
26763       : # No need to use a flag
26764       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26765 $as_echo "yes" >&6; }
26766     else
26767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26768 $as_echo "yes" >&6; }
26769       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26770 $as_echo_n "checking for -rdynamic... " >&6; }
26771       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26772       if $export_sym_check conftest | grep foobar > /dev/null; then
26773         plugin_rdynamic=yes
26774         pluginlibs="-rdynamic"
26775       else
26776         plugin_rdynamic=no
26777         enable_plugin=no
26778       fi
26779       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26780 $as_echo "$plugin_rdynamic" >&6; }
26781     fi
26782   else
26783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26784 $as_echo "unable to check" >&6; }
26785   fi
26786
26787   # Check -ldl
26788   saved_LIBS="$LIBS"
26789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26790 $as_echo_n "checking for library containing dlopen... " >&6; }
26791 if test "${ac_cv_search_dlopen+set}" = set; then :
26792   $as_echo_n "(cached) " >&6
26793 else
26794   ac_func_search_save_LIBS=$LIBS
26795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26796 /* end confdefs.h.  */
26797
26798 /* Override any GCC internal prototype to avoid an error.
26799    Use char because int might match the return type of a GCC
26800    builtin and then its argument prototype would still apply.  */
26801 #ifdef __cplusplus
26802 extern "C"
26803 #endif
26804 char dlopen ();
26805 int
26806 main ()
26807 {
26808 return dlopen ();
26809   ;
26810   return 0;
26811 }
26812 _ACEOF
26813 for ac_lib in '' dl; do
26814   if test -z "$ac_lib"; then
26815     ac_res="none required"
26816   else
26817     ac_res=-l$ac_lib
26818     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26819   fi
26820   if ac_fn_c_try_link "$LINENO"; then :
26821   ac_cv_search_dlopen=$ac_res
26822 fi
26823 rm -f core conftest.err conftest.$ac_objext \
26824     conftest$ac_exeext
26825   if test "${ac_cv_search_dlopen+set}" = set; then :
26826   break
26827 fi
26828 done
26829 if test "${ac_cv_search_dlopen+set}" = set; then :
26830
26831 else
26832   ac_cv_search_dlopen=no
26833 fi
26834 rm conftest.$ac_ext
26835 LIBS=$ac_func_search_save_LIBS
26836 fi
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26838 $as_echo "$ac_cv_search_dlopen" >&6; }
26839 ac_res=$ac_cv_search_dlopen
26840 if test "$ac_res" != no; then :
26841   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26842
26843 fi
26844
26845   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26846     pluginlibs="$pluginlibs -ldl"
26847   fi
26848   LIBS="$saved_LIBS"
26849
26850   # Check that we can build shared objects with -fPIC -shared
26851   saved_LDFLAGS="$LDFLAGS"
26852   saved_CFLAGS="$CFLAGS"
26853   case "${host}" in
26854     *-*-darwin*)
26855       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26856       CFLAGS="$CFLAGS -fPIC"
26857       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26858     ;;
26859     *)
26860       CFLAGS="$CFLAGS -fPIC"
26861       LDFLAGS="$LDFLAGS -fPIC -shared"
26862     ;;
26863   esac
26864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26865 $as_echo_n "checking for -fPIC -shared... " >&6; }
26866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26867 /* end confdefs.h.  */
26868 extern int X;
26869 int
26870 main ()
26871 {
26872 return X == 0;
26873   ;
26874   return 0;
26875 }
26876 _ACEOF
26877 if ac_fn_c_try_link "$LINENO"; then :
26878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26879 $as_echo "yes" >&6; }; have_pic_shared=yes
26880 else
26881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26882 $as_echo "no" >&6; }; have_pic_shared=no
26883 fi
26884 rm -f core conftest.err conftest.$ac_objext \
26885     conftest$ac_exeext conftest.$ac_ext
26886   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26887     pluginlibs=
26888     enable_plugin=no
26889   fi
26890   LDFLAGS="$saved_LDFLAGS"
26891   CFLAGS="$saved_CFLAGS"
26892
26893   # If plugin support had been requested but not available, fail.
26894   if test x"$enable_plugin" = x"no" ; then
26895     if test x"$default_plugin" != x"yes"; then
26896       as_fn_error "
26897 Building GCC with plugin support requires a host that supports
26898 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26899     fi
26900   fi
26901 fi
26902
26903
26904
26905 if test x"$enable_plugin" = x"yes"; then
26906
26907 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26908
26909 fi
26910
26911
26912 # Check whether --enable-libquadmath-support was given.
26913 if test "${enable_libquadmath_support+set}" = set; then :
26914   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26915 else
26916   ENABLE_LIBQUADMATH_SUPPORT=yes
26917 fi
26918
26919 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26920
26921 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26922
26923 fi
26924
26925
26926 # Specify what hash style to use by default.
26927
26928 # Check whether --with-linker-hash-style was given.
26929 if test "${with_linker_hash_style+set}" = set; then :
26930   withval=$with_linker_hash_style; case x"$withval" in
26931    xsysv)
26932      LINKER_HASH_STYLE=sysv
26933      ;;
26934    xgnu)
26935      LINKER_HASH_STYLE=gnu
26936      ;;
26937    xboth)
26938      LINKER_HASH_STYLE=both
26939      ;;
26940    *)
26941      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
26942      ;;
26943  esac
26944 else
26945   LINKER_HASH_STYLE=''
26946 fi
26947
26948 if test x"${LINKER_HASH_STYLE}" != x; then
26949
26950 cat >>confdefs.h <<_ACEOF
26951 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
26952 _ACEOF
26953
26954 fi
26955
26956 # Configure the subdirectories
26957 # AC_CONFIG_SUBDIRS($subdirs)
26958
26959 # Create the Makefile
26960 # and configure language subdirectories
26961 ac_config_files="$ac_config_files $all_outputs"
26962
26963
26964 ac_config_commands="$ac_config_commands default"
26965
26966 cat >confcache <<\_ACEOF
26967 # This file is a shell script that caches the results of configure
26968 # tests run on this system so they can be shared between configure
26969 # scripts and configure runs, see configure's option --config-cache.
26970 # It is not useful on other systems.  If it contains results you don't
26971 # want to keep, you may remove or edit it.
26972 #
26973 # config.status only pays attention to the cache file if you give it
26974 # the --recheck option to rerun configure.
26975 #
26976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26978 # following values.
26979
26980 _ACEOF
26981
26982 # The following way of writing the cache mishandles newlines in values,
26983 # but we know of no workaround that is simple, portable, and efficient.
26984 # So, we kill variables containing newlines.
26985 # Ultrix sh set writes to stderr and can't be redirected directly,
26986 # and sets the high bit in the cache file unless we assign to the vars.
26987 (
26988   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26989     eval ac_val=\$$ac_var
26990     case $ac_val in #(
26991     *${as_nl}*)
26992       case $ac_var in #(
26993       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26995       esac
26996       case $ac_var in #(
26997       _ | IFS | as_nl) ;; #(
26998       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26999       *) { eval $ac_var=; unset $ac_var;} ;;
27000       esac ;;
27001     esac
27002   done
27003
27004   (set) 2>&1 |
27005     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27006     *${as_nl}ac_space=\ *)
27007       # `set' does not quote correctly, so add quotes: double-quote
27008       # substitution turns \\\\ into \\, and sed turns \\ into \.
27009       sed -n \
27010         "s/'/'\\\\''/g;
27011           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27012       ;; #(
27013     *)
27014       # `set' quotes correctly as required by POSIX, so do not add quotes.
27015       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27016       ;;
27017     esac |
27018     sort
27019 ) |
27020   sed '
27021      /^ac_cv_env_/b end
27022      t clear
27023      :clear
27024      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27025      t end
27026      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27027      :end' >>confcache
27028 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27029   if test -w "$cache_file"; then
27030     test "x$cache_file" != "x/dev/null" &&
27031       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27032 $as_echo "$as_me: updating cache $cache_file" >&6;}
27033     cat confcache >$cache_file
27034   else
27035     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27036 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27037   fi
27038 fi
27039 rm -f confcache
27040
27041 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27042 # Let make expand exec_prefix.
27043 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27044
27045 DEFS=-DHAVE_CONFIG_H
27046
27047 ac_libobjs=
27048 ac_ltlibobjs=
27049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27050   # 1. Remove the extension, and $U if already installed.
27051   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27052   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27053   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27054   #    will be set to the directory where LIBOBJS objects are built.
27055   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27056   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27057 done
27058 LIBOBJS=$ac_libobjs
27059
27060 LTLIBOBJS=$ac_ltlibobjs
27061
27062
27063
27064
27065 : ${CONFIG_STATUS=./config.status}
27066 ac_write_fail=0
27067 ac_clean_files_save=$ac_clean_files
27068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27070 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27071 as_write_fail=0
27072 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27073 #! $SHELL
27074 # Generated by $as_me.
27075 # Run this file to recreate the current configuration.
27076 # Compiler output produced by configure, useful for debugging
27077 # configure, is in config.log if it exists.
27078
27079 debug=false
27080 ac_cs_recheck=false
27081 ac_cs_silent=false
27082
27083 SHELL=\${CONFIG_SHELL-$SHELL}
27084 export SHELL
27085 _ASEOF
27086 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27087 ## -------------------- ##
27088 ## M4sh Initialization. ##
27089 ## -------------------- ##
27090
27091 # Be more Bourne compatible
27092 DUALCASE=1; export DUALCASE # for MKS sh
27093 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27094   emulate sh
27095   NULLCMD=:
27096   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27097   # is contrary to our usage.  Disable this feature.
27098   alias -g '${1+"$@"}'='"$@"'
27099   setopt NO_GLOB_SUBST
27100 else
27101   case `(set -o) 2>/dev/null` in #(
27102   *posix*) :
27103     set -o posix ;; #(
27104   *) :
27105      ;;
27106 esac
27107 fi
27108
27109
27110 as_nl='
27111 '
27112 export as_nl
27113 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27114 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27117 # Prefer a ksh shell builtin over an external printf program on Solaris,
27118 # but without wasting forks for bash or zsh.
27119 if test -z "$BASH_VERSION$ZSH_VERSION" \
27120     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27121   as_echo='print -r --'
27122   as_echo_n='print -rn --'
27123 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27124   as_echo='printf %s\n'
27125   as_echo_n='printf %s'
27126 else
27127   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27128     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27129     as_echo_n='/usr/ucb/echo -n'
27130   else
27131     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27132     as_echo_n_body='eval
27133       arg=$1;
27134       case $arg in #(
27135       *"$as_nl"*)
27136         expr "X$arg" : "X\\(.*\\)$as_nl";
27137         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27138       esac;
27139       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27140     '
27141     export as_echo_n_body
27142     as_echo_n='sh -c $as_echo_n_body as_echo'
27143   fi
27144   export as_echo_body
27145   as_echo='sh -c $as_echo_body as_echo'
27146 fi
27147
27148 # The user is always right.
27149 if test "${PATH_SEPARATOR+set}" != set; then
27150   PATH_SEPARATOR=:
27151   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27152     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27153       PATH_SEPARATOR=';'
27154   }
27155 fi
27156
27157
27158 # IFS
27159 # We need space, tab and new line, in precisely that order.  Quoting is
27160 # there to prevent editors from complaining about space-tab.
27161 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27162 # splitting by setting IFS to empty value.)
27163 IFS=" ""        $as_nl"
27164
27165 # Find who we are.  Look in the path if we contain no directory separator.
27166 case $0 in #((
27167   *[\\/]* ) as_myself=$0 ;;
27168   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27169 for as_dir in $PATH
27170 do
27171   IFS=$as_save_IFS
27172   test -z "$as_dir" && as_dir=.
27173     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27174   done
27175 IFS=$as_save_IFS
27176
27177      ;;
27178 esac
27179 # We did not find ourselves, most probably we were run as `sh COMMAND'
27180 # in which case we are not to be found in the path.
27181 if test "x$as_myself" = x; then
27182   as_myself=$0
27183 fi
27184 if test ! -f "$as_myself"; then
27185   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27186   exit 1
27187 fi
27188
27189 # Unset variables that we do not need and which cause bugs (e.g. in
27190 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27191 # suppresses any "Segmentation fault" message there.  '((' could
27192 # trigger a bug in pdksh 5.2.14.
27193 for as_var in BASH_ENV ENV MAIL MAILPATH
27194 do eval test x\${$as_var+set} = xset \
27195   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27196 done
27197 PS1='$ '
27198 PS2='> '
27199 PS4='+ '
27200
27201 # NLS nuisances.
27202 LC_ALL=C
27203 export LC_ALL
27204 LANGUAGE=C
27205 export LANGUAGE
27206
27207 # CDPATH.
27208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27209
27210
27211 # as_fn_error ERROR [LINENO LOG_FD]
27212 # ---------------------------------
27213 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27214 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27215 # script with status $?, using 1 if that was 0.
27216 as_fn_error ()
27217 {
27218   as_status=$?; test $as_status -eq 0 && as_status=1
27219   if test "$3"; then
27220     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27221     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27222   fi
27223   $as_echo "$as_me: error: $1" >&2
27224   as_fn_exit $as_status
27225 } # as_fn_error
27226
27227
27228 # as_fn_set_status STATUS
27229 # -----------------------
27230 # Set $? to STATUS, without forking.
27231 as_fn_set_status ()
27232 {
27233   return $1
27234 } # as_fn_set_status
27235
27236 # as_fn_exit STATUS
27237 # -----------------
27238 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27239 as_fn_exit ()
27240 {
27241   set +e
27242   as_fn_set_status $1
27243   exit $1
27244 } # as_fn_exit
27245
27246 # as_fn_unset VAR
27247 # ---------------
27248 # Portably unset VAR.
27249 as_fn_unset ()
27250 {
27251   { eval $1=; unset $1;}
27252 }
27253 as_unset=as_fn_unset
27254 # as_fn_append VAR VALUE
27255 # ----------------------
27256 # Append the text in VALUE to the end of the definition contained in VAR. Take
27257 # advantage of any shell optimizations that allow amortized linear growth over
27258 # repeated appends, instead of the typical quadratic growth present in naive
27259 # implementations.
27260 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27261   eval 'as_fn_append ()
27262   {
27263     eval $1+=\$2
27264   }'
27265 else
27266   as_fn_append ()
27267   {
27268     eval $1=\$$1\$2
27269   }
27270 fi # as_fn_append
27271
27272 # as_fn_arith ARG...
27273 # ------------------
27274 # Perform arithmetic evaluation on the ARGs, and store the result in the
27275 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27276 # must be portable across $(()) and expr.
27277 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27278   eval 'as_fn_arith ()
27279   {
27280     as_val=$(( $* ))
27281   }'
27282 else
27283   as_fn_arith ()
27284   {
27285     as_val=`expr "$@" || test $? -eq 1`
27286   }
27287 fi # as_fn_arith
27288
27289
27290 if expr a : '\(a\)' >/dev/null 2>&1 &&
27291    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27292   as_expr=expr
27293 else
27294   as_expr=false
27295 fi
27296
27297 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27298   as_basename=basename
27299 else
27300   as_basename=false
27301 fi
27302
27303 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27304   as_dirname=dirname
27305 else
27306   as_dirname=false
27307 fi
27308
27309 as_me=`$as_basename -- "$0" ||
27310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27311          X"$0" : 'X\(//\)$' \| \
27312          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27313 $as_echo X/"$0" |
27314     sed '/^.*\/\([^/][^/]*\)\/*$/{
27315             s//\1/
27316             q
27317           }
27318           /^X\/\(\/\/\)$/{
27319             s//\1/
27320             q
27321           }
27322           /^X\/\(\/\).*/{
27323             s//\1/
27324             q
27325           }
27326           s/.*/./; q'`
27327
27328 # Avoid depending upon Character Ranges.
27329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27332 as_cr_digits='0123456789'
27333 as_cr_alnum=$as_cr_Letters$as_cr_digits
27334
27335 ECHO_C= ECHO_N= ECHO_T=
27336 case `echo -n x` in #(((((
27337 -n*)
27338   case `echo 'xy\c'` in
27339   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27340   xy)  ECHO_C='\c';;
27341   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27342        ECHO_T=' ';;
27343   esac;;
27344 *)
27345   ECHO_N='-n';;
27346 esac
27347
27348 rm -f conf$$ conf$$.exe conf$$.file
27349 if test -d conf$$.dir; then
27350   rm -f conf$$.dir/conf$$.file
27351 else
27352   rm -f conf$$.dir
27353   mkdir conf$$.dir 2>/dev/null
27354 fi
27355 if (echo >conf$$.file) 2>/dev/null; then
27356   if ln -s conf$$.file conf$$ 2>/dev/null; then
27357     as_ln_s='ln -s'
27358     # ... but there are two gotchas:
27359     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27360     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27361     # In both cases, we have to default to `cp -p'.
27362     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27363       as_ln_s='cp -p'
27364   elif ln conf$$.file conf$$ 2>/dev/null; then
27365     as_ln_s=ln
27366   else
27367     as_ln_s='cp -p'
27368   fi
27369 else
27370   as_ln_s='cp -p'
27371 fi
27372 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27373 rmdir conf$$.dir 2>/dev/null
27374
27375
27376 # as_fn_mkdir_p
27377 # -------------
27378 # Create "$as_dir" as a directory, including parents if necessary.
27379 as_fn_mkdir_p ()
27380 {
27381
27382   case $as_dir in #(
27383   -*) as_dir=./$as_dir;;
27384   esac
27385   test -d "$as_dir" || eval $as_mkdir_p || {
27386     as_dirs=
27387     while :; do
27388       case $as_dir in #(
27389       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27390       *) as_qdir=$as_dir;;
27391       esac
27392       as_dirs="'$as_qdir' $as_dirs"
27393       as_dir=`$as_dirname -- "$as_dir" ||
27394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27395          X"$as_dir" : 'X\(//\)[^/]' \| \
27396          X"$as_dir" : 'X\(//\)$' \| \
27397          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27398 $as_echo X"$as_dir" |
27399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27400             s//\1/
27401             q
27402           }
27403           /^X\(\/\/\)[^/].*/{
27404             s//\1/
27405             q
27406           }
27407           /^X\(\/\/\)$/{
27408             s//\1/
27409             q
27410           }
27411           /^X\(\/\).*/{
27412             s//\1/
27413             q
27414           }
27415           s/.*/./; q'`
27416       test -d "$as_dir" && break
27417     done
27418     test -z "$as_dirs" || eval "mkdir $as_dirs"
27419   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27420
27421
27422 } # as_fn_mkdir_p
27423 if mkdir -p . 2>/dev/null; then
27424   as_mkdir_p='mkdir -p "$as_dir"'
27425 else
27426   test -d ./-p && rmdir ./-p
27427   as_mkdir_p=false
27428 fi
27429
27430 if test -x / >/dev/null 2>&1; then
27431   as_test_x='test -x'
27432 else
27433   if ls -dL / >/dev/null 2>&1; then
27434     as_ls_L_option=L
27435   else
27436     as_ls_L_option=
27437   fi
27438   as_test_x='
27439     eval sh -c '\''
27440       if test -d "$1"; then
27441         test -d "$1/.";
27442       else
27443         case $1 in #(
27444         -*)set "./$1";;
27445         esac;
27446         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27447         ???[sx]*):;;*)false;;esac;fi
27448     '\'' sh
27449   '
27450 fi
27451 as_executable_p=$as_test_x
27452
27453 # Sed expression to map a string onto a valid CPP name.
27454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27455
27456 # Sed expression to map a string onto a valid variable name.
27457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27458
27459
27460 exec 6>&1
27461 ## ----------------------------------- ##
27462 ## Main body of $CONFIG_STATUS script. ##
27463 ## ----------------------------------- ##
27464 _ASEOF
27465 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27466
27467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27468 # Save the log message, to keep $0 and so on meaningful, and to
27469 # report actual input values of CONFIG_FILES etc. instead of their
27470 # values after options handling.
27471 ac_log="
27472 This file was extended by $as_me, which was
27473 generated by GNU Autoconf 2.64.  Invocation command line was
27474
27475   CONFIG_FILES    = $CONFIG_FILES
27476   CONFIG_HEADERS  = $CONFIG_HEADERS
27477   CONFIG_LINKS    = $CONFIG_LINKS
27478   CONFIG_COMMANDS = $CONFIG_COMMANDS
27479   $ $0 $@
27480
27481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27482 "
27483
27484 _ACEOF
27485
27486 case $ac_config_files in *"
27487 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27488 esac
27489
27490 case $ac_config_headers in *"
27491 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27492 esac
27493
27494
27495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27496 # Files that config.status was made for.
27497 config_files="$ac_config_files"
27498 config_headers="$ac_config_headers"
27499 config_commands="$ac_config_commands"
27500
27501 _ACEOF
27502
27503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27504 ac_cs_usage="\
27505 \`$as_me' instantiates files and other configuration actions
27506 from templates according to the current configuration.  Unless the files
27507 and actions are specified as TAGs, all are instantiated by default.
27508
27509 Usage: $0 [OPTION]... [TAG]...
27510
27511   -h, --help       print this help, then exit
27512   -V, --version    print version number and configuration settings, then exit
27513   -q, --quiet, --silent
27514                    do not print progress messages
27515   -d, --debug      don't remove temporary files
27516       --recheck    update $as_me by reconfiguring in the same conditions
27517       --file=FILE[:TEMPLATE]
27518                    instantiate the configuration file FILE
27519       --header=FILE[:TEMPLATE]
27520                    instantiate the configuration header FILE
27521
27522 Configuration files:
27523 $config_files
27524
27525 Configuration headers:
27526 $config_headers
27527
27528 Configuration commands:
27529 $config_commands
27530
27531 Report bugs to the package provider."
27532
27533 _ACEOF
27534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27535 ac_cs_version="\\
27536 config.status
27537 configured by $0, generated by GNU Autoconf 2.64,
27538   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27539
27540 Copyright (C) 2009 Free Software Foundation, Inc.
27541 This config.status script is free software; the Free Software Foundation
27542 gives unlimited permission to copy, distribute and modify it."
27543
27544 ac_pwd='$ac_pwd'
27545 srcdir='$srcdir'
27546 AWK='$AWK'
27547 test -n "\$AWK" || AWK=awk
27548 _ACEOF
27549
27550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27551 # The default lists apply if the user does not specify any file.
27552 ac_need_defaults=:
27553 while test $# != 0
27554 do
27555   case $1 in
27556   --*=*)
27557     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27558     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27559     ac_shift=:
27560     ;;
27561   *)
27562     ac_option=$1
27563     ac_optarg=$2
27564     ac_shift=shift
27565     ;;
27566   esac
27567
27568   case $ac_option in
27569   # Handling of the options.
27570   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27571     ac_cs_recheck=: ;;
27572   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27573     $as_echo "$ac_cs_version"; exit ;;
27574   --debug | --debu | --deb | --de | --d | -d )
27575     debug=: ;;
27576   --file | --fil | --fi | --f )
27577     $ac_shift
27578     case $ac_optarg in
27579     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27580     esac
27581     as_fn_append CONFIG_FILES " '$ac_optarg'"
27582     ac_need_defaults=false;;
27583   --header | --heade | --head | --hea )
27584     $ac_shift
27585     case $ac_optarg in
27586     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27587     esac
27588     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27589     ac_need_defaults=false;;
27590   --he | --h)
27591     # Conflict between --help and --header
27592     as_fn_error "ambiguous option: \`$1'
27593 Try \`$0 --help' for more information.";;
27594   --help | --hel | -h )
27595     $as_echo "$ac_cs_usage"; exit ;;
27596   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27597   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27598     ac_cs_silent=: ;;
27599
27600   # This is an error.
27601   -*) as_fn_error "unrecognized option: \`$1'
27602 Try \`$0 --help' for more information." ;;
27603
27604   *) as_fn_append ac_config_targets " $1"
27605      ac_need_defaults=false ;;
27606
27607   esac
27608   shift
27609 done
27610
27611 ac_configure_extra_args=
27612
27613 if $ac_cs_silent; then
27614   exec 6>/dev/null
27615   ac_configure_extra_args="$ac_configure_extra_args --silent"
27616 fi
27617
27618 _ACEOF
27619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27620 if \$ac_cs_recheck; then
27621   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27622   shift
27623   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27624   CONFIG_SHELL='$SHELL'
27625   export CONFIG_SHELL
27626   exec "\$@"
27627 fi
27628
27629 _ACEOF
27630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27631 exec 5>>config.log
27632 {
27633   echo
27634   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27635 ## Running $as_me. ##
27636 _ASBOX
27637   $as_echo "$ac_log"
27638 } >&5
27639
27640 _ACEOF
27641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27642 #
27643 # INIT-COMMANDS
27644 #
27645 subdirs='$subdirs'
27646
27647 _ACEOF
27648
27649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27650
27651 # Handling of arguments.
27652 for ac_config_target in $ac_config_targets
27653 do
27654   case $ac_config_target in
27655     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27656     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27657     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27658     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27659     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27660     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27661
27662   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27663   esac
27664 done
27665
27666
27667 # If the user did not use the arguments to specify the items to instantiate,
27668 # then the envvar interface is used.  Set only those that are not.
27669 # We use the long form for the default assignment because of an extremely
27670 # bizarre bug on SunOS 4.1.3.
27671 if $ac_need_defaults; then
27672   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27673   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27674   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27675 fi
27676
27677 # Have a temporary directory for convenience.  Make it in the build tree
27678 # simply because there is no reason against having it here, and in addition,
27679 # creating and moving files from /tmp can sometimes cause problems.
27680 # Hook for its removal unless debugging.
27681 # Note that there is a small window in which the directory will not be cleaned:
27682 # after its creation but before its name has been assigned to `$tmp'.
27683 $debug ||
27684 {
27685   tmp=
27686   trap 'exit_status=$?
27687   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27688 ' 0
27689   trap 'as_fn_exit 1' 1 2 13 15
27690 }
27691 # Create a (secure) tmp directory for tmp files.
27692
27693 {
27694   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27695   test -n "$tmp" && test -d "$tmp"
27696 }  ||
27697 {
27698   tmp=./conf$$-$RANDOM
27699   (umask 077 && mkdir "$tmp")
27700 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27701
27702 # Set up the scripts for CONFIG_FILES section.
27703 # No need to generate them if there are no CONFIG_FILES.
27704 # This happens for instance with `./config.status config.h'.
27705 if test -n "$CONFIG_FILES"; then
27706
27707 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27708   ac_cs_awk_getline=:
27709   ac_cs_awk_pipe_init=
27710   ac_cs_awk_read_file='
27711       while ((getline aline < (F[key])) > 0)
27712         print(aline)
27713       close(F[key])'
27714   ac_cs_awk_pipe_fini=
27715 else
27716   ac_cs_awk_getline=false
27717   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27718   ac_cs_awk_read_file='
27719       print "|#_!!_#|"
27720       print "cat " F[key] " &&"
27721       '$ac_cs_awk_pipe_init
27722   # The final `:' finishes the AND list.
27723   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27724 fi
27725 ac_cr=`echo X | tr X '\015'`
27726 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27727 # But we know of no other shell where ac_cr would be empty at this
27728 # point, so we can use a bashism as a fallback.
27729 if test "x$ac_cr" = x; then
27730   eval ac_cr=\$\'\\r\'
27731 fi
27732 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27733 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27734   ac_cs_awk_cr='\r'
27735 else
27736   ac_cs_awk_cr=$ac_cr
27737 fi
27738
27739 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27740 _ACEOF
27741
27742 # Create commands to substitute file output variables.
27743 {
27744   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27745   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27746   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27747   echo "_ACAWK" &&
27748   echo "_ACEOF"
27749 } >conf$$files.sh &&
27750 . ./conf$$files.sh ||
27751   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27752 rm -f conf$$files.sh
27753
27754 {
27755   echo "cat >conf$$subs.awk <<_ACEOF" &&
27756   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27757   echo "_ACEOF"
27758 } >conf$$subs.sh ||
27759   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27760 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27761 ac_delim='%!_!# '
27762 for ac_last_try in false false false false false :; do
27763   . ./conf$$subs.sh ||
27764     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27765
27766   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27767   if test $ac_delim_n = $ac_delim_num; then
27768     break
27769   elif $ac_last_try; then
27770     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27771   else
27772     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27773   fi
27774 done
27775 rm -f conf$$subs.sh
27776
27777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27778 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27779 _ACEOF
27780 sed -n '
27781 h
27782 s/^/S["/; s/!.*/"]=/
27783 p
27784 g
27785 s/^[^!]*!//
27786 :repl
27787 t repl
27788 s/'"$ac_delim"'$//
27789 t delim
27790 :nl
27791 h
27792 s/\(.\{148\}\).*/\1/
27793 t more1
27794 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27795 p
27796 n
27797 b repl
27798 :more1
27799 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27800 p
27801 g
27802 s/.\{148\}//
27803 t nl
27804 :delim
27805 h
27806 s/\(.\{148\}\).*/\1/
27807 t more2
27808 s/["\\]/\\&/g; s/^/"/; s/$/"/
27809 p
27810 b
27811 :more2
27812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27813 p
27814 g
27815 s/.\{148\}//
27816 t delim
27817 ' <conf$$subs.awk | sed '
27818 /^[^""]/{
27819   N
27820   s/\n//
27821 }
27822 ' >>$CONFIG_STATUS || ac_write_fail=1
27823 rm -f conf$$subs.awk
27824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27825 _ACAWK
27826 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27827   for (key in S) S_is_set[key] = 1
27828   FS = "\a"
27829   \$ac_cs_awk_pipe_init
27830 }
27831 {
27832   line = $ 0
27833   nfields = split(line, field, "@")
27834   substed = 0
27835   len = length(field[1])
27836   for (i = 2; i < nfields; i++) {
27837     key = field[i]
27838     keylen = length(key)
27839     if (S_is_set[key]) {
27840       value = S[key]
27841       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27842       len += length(value) + length(field[++i])
27843       substed = 1
27844     } else
27845       len += 1 + keylen
27846   }
27847   if (nfields == 3 && !substed) {
27848     key = field[2]
27849     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
27850       \$ac_cs_awk_read_file
27851       next
27852     }
27853   }
27854   print line
27855 }
27856 \$ac_cs_awk_pipe_fini
27857 _ACAWK
27858 _ACEOF
27859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27860 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27861   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27862 else
27863   cat
27864 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27865   || as_fn_error "could not setup config files machinery" "$LINENO" 5
27866 _ACEOF
27867
27868 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27869 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27870 # trailing colons and then remove the whole line if VPATH becomes empty
27871 # (actually we leave an empty line to preserve line numbers).
27872 if test "x$srcdir" = x.; then
27873   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27874 s/:*\$(srcdir):*/:/
27875 s/:*\${srcdir}:*/:/
27876 s/:*@srcdir@:*/:/
27877 s/^\([^=]*=[     ]*\):*/\1/
27878 s/:*$//
27879 s/^[^=]*=[       ]*$//
27880 }'
27881 fi
27882
27883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27884 fi # test -n "$CONFIG_FILES"
27885
27886 # Set up the scripts for CONFIG_HEADERS section.
27887 # No need to generate them if there are no CONFIG_HEADERS.
27888 # This happens for instance with `./config.status Makefile'.
27889 if test -n "$CONFIG_HEADERS"; then
27890 cat >"$tmp/defines.awk" <<\_ACAWK ||
27891 BEGIN {
27892 _ACEOF
27893
27894 # Transform confdefs.h into an awk script `defines.awk', embedded as
27895 # here-document in config.status, that substitutes the proper values into
27896 # config.h.in to produce config.h.
27897
27898 # Create a delimiter string that does not exist in confdefs.h, to ease
27899 # handling of long lines.
27900 ac_delim='%!_!# '
27901 for ac_last_try in false false :; do
27902   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27903   if test -z "$ac_t"; then
27904     break
27905   elif $ac_last_try; then
27906     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27907   else
27908     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27909   fi
27910 done
27911
27912 # For the awk script, D is an array of macro values keyed by name,
27913 # likewise P contains macro parameters if any.  Preserve backslash
27914 # newline sequences.
27915
27916 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27917 sed -n '
27918 s/.\{148\}/&'"$ac_delim"'/g
27919 t rset
27920 :rset
27921 s/^[     ]*#[    ]*define[       ][      ]*/ /
27922 t def
27923 d
27924 :def
27925 s/\\$//
27926 t bsnl
27927 s/["\\]/\\&/g
27928 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27929 D["\1"]=" \3"/p
27930 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27931 d
27932 :bsnl
27933 s/["\\]/\\&/g
27934 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27935 D["\1"]=" \3\\\\\\n"\\/p
27936 t cont
27937 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27938 t cont
27939 d
27940 :cont
27941 n
27942 s/.\{148\}/&'"$ac_delim"'/g
27943 t clear
27944 :clear
27945 s/\\$//
27946 t bsnlc
27947 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27948 d
27949 :bsnlc
27950 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27951 b cont
27952 ' <confdefs.h | sed '
27953 s/'"$ac_delim"'/"\\\
27954 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27955
27956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27957   for (key in D) D_is_set[key] = 1
27958   FS = "\a"
27959 }
27960 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27961   line = \$ 0
27962   split(line, arg, " ")
27963   if (arg[1] == "#") {
27964     defundef = arg[2]
27965     mac1 = arg[3]
27966   } else {
27967     defundef = substr(arg[1], 2)
27968     mac1 = arg[2]
27969   }
27970   split(mac1, mac2, "(") #)
27971   macro = mac2[1]
27972   prefix = substr(line, 1, index(line, defundef) - 1)
27973   if (D_is_set[macro]) {
27974     # Preserve the white space surrounding the "#".
27975     print prefix "define", macro P[macro] D[macro]
27976     next
27977   } else {
27978     # Replace #undef with comments.  This is necessary, for example,
27979     # in the case of _POSIX_SOURCE, which is predefined and required
27980     # on some systems where configure will not decide to define it.
27981     if (defundef == "undef") {
27982       print "/*", prefix defundef, macro, "*/"
27983       next
27984     }
27985   }
27986 }
27987 { print }
27988 _ACAWK
27989 _ACEOF
27990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27991   as_fn_error "could not setup config headers machinery" "$LINENO" 5
27992 fi # test -n "$CONFIG_HEADERS"
27993
27994
27995 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27996 shift
27997 for ac_tag
27998 do
27999   case $ac_tag in
28000   :[FHLC]) ac_mode=$ac_tag; continue;;
28001   esac
28002   case $ac_mode$ac_tag in
28003   :[FHL]*:*);;
28004   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28005   :[FH]-) ac_tag=-:-;;
28006   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28007   esac
28008   ac_save_IFS=$IFS
28009   IFS=:
28010   set x $ac_tag
28011   IFS=$ac_save_IFS
28012   shift
28013   ac_file=$1
28014   shift
28015
28016   case $ac_mode in
28017   :L) ac_source=$1;;
28018   :[FH])
28019     ac_file_inputs=
28020     for ac_f
28021     do
28022       case $ac_f in
28023       -) ac_f="$tmp/stdin";;
28024       *) # Look for the file first in the build tree, then in the source tree
28025          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28026          # because $ac_f cannot contain `:'.
28027          test -f "$ac_f" ||
28028            case $ac_f in
28029            [\\/$]*) false;;
28030            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28031            esac ||
28032            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28033       esac
28034       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28035       as_fn_append ac_file_inputs " '$ac_f'"
28036     done
28037
28038     # Let's still pretend it is `configure' which instantiates (i.e., don't
28039     # use $as_me), people would be surprised to read:
28040     #    /* config.h.  Generated by config.status.  */
28041     configure_input='Generated from '`
28042           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28043         `' by configure.'
28044     if test x"$ac_file" != x-; then
28045       configure_input="$ac_file.  $configure_input"
28046       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28047 $as_echo "$as_me: creating $ac_file" >&6;}
28048     fi
28049     # Neutralize special characters interpreted by sed in replacement strings.
28050     case $configure_input in #(
28051     *\&* | *\|* | *\\* )
28052        ac_sed_conf_input=`$as_echo "$configure_input" |
28053        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28054     *) ac_sed_conf_input=$configure_input;;
28055     esac
28056
28057     case $ac_tag in
28058     *:-:* | *:-) cat >"$tmp/stdin" \
28059       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28060     esac
28061     ;;
28062   esac
28063
28064   ac_dir=`$as_dirname -- "$ac_file" ||
28065 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28066          X"$ac_file" : 'X\(//\)[^/]' \| \
28067          X"$ac_file" : 'X\(//\)$' \| \
28068          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28069 $as_echo X"$ac_file" |
28070     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28071             s//\1/
28072             q
28073           }
28074           /^X\(\/\/\)[^/].*/{
28075             s//\1/
28076             q
28077           }
28078           /^X\(\/\/\)$/{
28079             s//\1/
28080             q
28081           }
28082           /^X\(\/\).*/{
28083             s//\1/
28084             q
28085           }
28086           s/.*/./; q'`
28087   as_dir="$ac_dir"; as_fn_mkdir_p
28088   ac_builddir=.
28089
28090 case "$ac_dir" in
28091 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28092 *)
28093   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28094   # A ".." for each directory in $ac_dir_suffix.
28095   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28096   case $ac_top_builddir_sub in
28097   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28098   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28099   esac ;;
28100 esac
28101 ac_abs_top_builddir=$ac_pwd
28102 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28103 # for backward compatibility:
28104 ac_top_builddir=$ac_top_build_prefix
28105
28106 case $srcdir in
28107   .)  # We are building in place.
28108     ac_srcdir=.
28109     ac_top_srcdir=$ac_top_builddir_sub
28110     ac_abs_top_srcdir=$ac_pwd ;;
28111   [\\/]* | ?:[\\/]* )  # Absolute name.
28112     ac_srcdir=$srcdir$ac_dir_suffix;
28113     ac_top_srcdir=$srcdir
28114     ac_abs_top_srcdir=$srcdir ;;
28115   *) # Relative name.
28116     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28117     ac_top_srcdir=$ac_top_build_prefix$srcdir
28118     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28119 esac
28120 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28121
28122
28123   case $ac_mode in
28124   :F)
28125   #
28126   # CONFIG_FILE
28127   #
28128
28129 _ACEOF
28130
28131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28132 # If the template does not know about datarootdir, expand it.
28133 # FIXME: This hack should be removed a few years after 2.60.
28134 ac_datarootdir_hack=; ac_datarootdir_seen=
28135 ac_sed_dataroot='
28136 /datarootdir/ {
28137   p
28138   q
28139 }
28140 /@datadir@/p
28141 /@docdir@/p
28142 /@infodir@/p
28143 /@localedir@/p
28144 /@mandir@/p'
28145 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28146 *datarootdir*) ac_datarootdir_seen=yes;;
28147 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28148   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28149 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28150 _ACEOF
28151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28152   ac_datarootdir_hack='
28153   s&@datadir@&$datadir&g
28154   s&@docdir@&$docdir&g
28155   s&@infodir@&$infodir&g
28156   s&@localedir@&$localedir&g
28157   s&@mandir@&$mandir&g
28158   s&\\\${datarootdir}&$datarootdir&g' ;;
28159 esac
28160 _ACEOF
28161
28162 # Neutralize VPATH when `$srcdir' = `.'.
28163 # Shell code in configure.ac might set extrasub.
28164 # FIXME: do we really want to maintain this feature?
28165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28166 ac_sed_extra="$ac_vpsub
28167 $extrasub
28168 _ACEOF
28169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28170 :t
28171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28172 s|@configure_input@|$ac_sed_conf_input|;t t
28173 s&@top_builddir@&$ac_top_builddir_sub&;t t
28174 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28175 s&@srcdir@&$ac_srcdir&;t t
28176 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28177 s&@top_srcdir@&$ac_top_srcdir&;t t
28178 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28179 s&@builddir@&$ac_builddir&;t t
28180 s&@abs_builddir@&$ac_abs_builddir&;t t
28181 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28182 $ac_datarootdir_hack
28183 "
28184 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28185 if $ac_cs_awk_getline; then
28186   $AWK -f "$tmp/subs.awk"
28187 else
28188   $AWK -f "$tmp/subs.awk" | $SHELL
28189 fi >$tmp/out \
28190   || as_fn_error "could not create $ac_file" "$LINENO" 5
28191
28192 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28193   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28194   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28195   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28196 which seems to be undefined.  Please make sure it is defined." >&5
28197 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28198 which seems to be undefined.  Please make sure it is defined." >&2;}
28199
28200   rm -f "$tmp/stdin"
28201   case $ac_file in
28202   -) cat "$tmp/out" && rm -f "$tmp/out";;
28203   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28204   esac \
28205   || as_fn_error "could not create $ac_file" "$LINENO" 5
28206  ;;
28207   :H)
28208   #
28209   # CONFIG_HEADER
28210   #
28211   if test x"$ac_file" != x-; then
28212     {
28213       $as_echo "/* $configure_input  */" \
28214       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28215     } >"$tmp/config.h" \
28216       || as_fn_error "could not create $ac_file" "$LINENO" 5
28217     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28218       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28219 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28220     else
28221       rm -f "$ac_file"
28222       mv "$tmp/config.h" "$ac_file" \
28223         || as_fn_error "could not create $ac_file" "$LINENO" 5
28224     fi
28225   else
28226     $as_echo "/* $configure_input  */" \
28227       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28228       || as_fn_error "could not create -" "$LINENO" 5
28229   fi
28230  ;;
28231
28232   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28233 $as_echo "$as_me: executing $ac_file commands" >&6;}
28234  ;;
28235   esac
28236
28237
28238   case $ac_file$ac_mode in
28239     "as":F) chmod +x as ;;
28240     "collect-ld":F) chmod +x collect-ld ;;
28241     "nm":F) chmod +x nm ;;
28242     "default":C)
28243 case ${CONFIG_HEADERS} in
28244   *auto-host.h:config.in*)
28245   echo > cstamp-h ;;
28246 esac
28247 # Make sure all the subdirs exist.
28248 for d in $subdirs doc build common c-family
28249 do
28250     test -d $d || mkdir $d
28251 done
28252  ;;
28253
28254   esac
28255 done # for ac_tag
28256
28257
28258 as_fn_exit 0
28259 _ACEOF
28260 ac_clean_files=$ac_clean_files_save
28261
28262 test $ac_write_fail = 0 ||
28263   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28264
28265
28266 # configure is writing to config.log, and then calls config.status.
28267 # config.status does its own redirection, appending to config.log.
28268 # Unfortunately, on DOS this fails, as config.log is still kept open
28269 # by configure, so config.status won't be able to write to it; its
28270 # output is simply discarded.  So we exec the FD to /dev/null,
28271 # effectively closing config.log, so it can be properly (re)opened and
28272 # appended to by config.status.  When coming back to configure, we
28273 # need to make the FD available again.
28274 if test "$no_create" != yes; then
28275   ac_cs_success=:
28276   ac_config_status_args=
28277   test "$silent" = yes &&
28278     ac_config_status_args="$ac_config_status_args --quiet"
28279   exec 5>/dev/null
28280   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28281   exec 5>>config.log
28282   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28283   # would make configure fail if this is the last instruction.
28284   $ac_cs_success || as_fn_exit $?
28285 fi
28286 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28287   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28288 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28289 fi
28290
28291