OSDN Git Service

Use 64bit integer for LTO symbol ID.
[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 EXTRA_GCC_LIBS
739 GNAT_LIBEXC
740 COLLECT2_LIBS
741 CXXCPP
742 AR
743 NM
744 BISON
745 FLEX
746 GENERATED_MANPAGES
747 BUILD_INFO
748 MAKEINFO
749 have_mktemp_command
750 make_compare_target
751 INSTALL_DATA
752 INSTALL_PROGRAM
753 INSTALL
754 ranlib_flags
755 RANLIB
756 LN
757 LN_S
758 AWK
759 SET_MAKE
760 REPORT_BUGS_TEXI
761 REPORT_BUGS_TO
762 PKGVERSION
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 SYSROOT_CFLAGS_FOR_TARGET
768 enable_shared
769 enable_fixed_point
770 enable_decimal_float
771 enable_multilib
772 ENABLE_BUILD_WITH_CXX
773 coverage_flags
774 valgrind_command
775 valgrind_path_defines
776 valgrind_path
777 TREEBROWSER
778 nocommon_flag
779 warn_cxxflags
780 warn_cflags
781 c_strict_warn
782 strict_warn
783 c_loose_warn
784 loose_warn
785 EGREP
786 GREP
787 CPP
788 PICFLAG_FOR_TARGET
789 OUTPUT_OPTION
790 NO_MINUS_C_MINUS_O
791 GNATMAKE
792 GNATBIND
793 ac_ct_CXX
794 CXXFLAGS
795 CXX
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
802 CC
803 GENINSRC
804 target_subdir
805 host_subdir
806 build_subdir
807 build_libsubdir
808 target_noncanonical
809 target_os
810 target_vendor
811 target_cpu
812 target
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL'
859 ac_subst_files='option_includes
860 language_hooks'
861 ac_user_opts='
862 enable_option_checking
863 with_build_libsubdir
864 with_local_prefix
865 with_gxx_include_dir
866 with_cpp_install_dir
867 enable_generated_files_in_srcdir
868 with_gnu_ld
869 with_ld
870 with_demangler_in_ld
871 with_gnu_as
872 with_as
873 enable_largefile
874 enable_werror_always
875 enable_checking
876 enable_coverage
877 enable_gather_detailed_mem_stats
878 enable_build_with_cxx
879 with_stabs
880 enable_multilib
881 enable___cxa_atexit
882 enable_decimal_float
883 enable_fixed_point
884 enable_threads
885 enable_tls
886 enable_objc_gc
887 with_dwarf2
888 enable_shared
889 with_build_sysroot
890 with_sysroot
891 with_specs
892 with_pkgversion
893 with_bugurl
894 enable_languages
895 with_multilib_list
896 enable_rpath
897 with_libiconv_prefix
898 enable_initfini_array
899 enable_sjlj_exceptions
900 enable_secureplt
901 enable_leading_mingw64_underscores
902 enable_cld
903 enable_frame_pointer
904 enable_win32_registry
905 enable_static
906 with_pic
907 enable_fast_install
908 enable_libtool_lock
909 with_plugin_ld
910 enable_gnu_indirect_function
911 enable_comdat
912 enable_gnu_unique_object
913 enable_linker_build_id
914 with_long_double_128
915 with_gc
916 with_system_zlib
917 enable_maintainer_mode
918 enable_version_specific_runtime_libs
919 with_slibdir
920 enable_plugin
921 enable_libquadmath_support
922 with_linker_hash_style
923 '
924       ac_precious_vars='build_alias
925 host_alias
926 target_alias
927 CC
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
932 CXX
933 CXXFLAGS
934 CCC
935 CPP
936 CXXCPP
937 GMPLIBS
938 GMPINC
939 PPLLIBS
940 PPLINC
941 CLOOGLIBS
942 CLOOGINC'
943
944
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
966
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
992
993 ac_prev=
994 ac_dashdash=
995 for ac_option
996 do
997   # If the previous option needs an argument, assign it.
998   if test -n "$ac_prev"; then
999     eval $ac_prev=\$ac_option
1000     ac_prev=
1001     continue
1002   fi
1003
1004   case $ac_option in
1005   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006   *)    ac_optarg=yes ;;
1007   esac
1008
1009   # Accept the important Cygnus configure options, so we can diagnose typos.
1010
1011   case $ac_dashdash$ac_option in
1012   --)
1013     ac_dashdash=yes ;;
1014
1015   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016     ac_prev=bindir ;;
1017   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018     bindir=$ac_optarg ;;
1019
1020   -build | --build | --buil | --bui | --bu)
1021     ac_prev=build_alias ;;
1022   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023     build_alias=$ac_optarg ;;
1024
1025   -cache-file | --cache-file | --cache-fil | --cache-fi \
1026   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027     ac_prev=cache_file ;;
1028   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030     cache_file=$ac_optarg ;;
1031
1032   --config-cache | -C)
1033     cache_file=config.cache ;;
1034
1035   -datadir | --datadir | --datadi | --datad)
1036     ac_prev=datadir ;;
1037   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038     datadir=$ac_optarg ;;
1039
1040   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041   | --dataroo | --dataro | --datar)
1042     ac_prev=datarootdir ;;
1043   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045     datarootdir=$ac_optarg ;;
1046
1047   -disable-* | --disable-*)
1048     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051       as_fn_error "invalid feature name: $ac_useropt"
1052     ac_useropt_orig=$ac_useropt
1053     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054     case $ac_user_opts in
1055       *"
1056 "enable_$ac_useropt"
1057 "*) ;;
1058       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059          ac_unrecognized_sep=', ';;
1060     esac
1061     eval enable_$ac_useropt=no ;;
1062
1063   -docdir | --docdir | --docdi | --doc | --do)
1064     ac_prev=docdir ;;
1065   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066     docdir=$ac_optarg ;;
1067
1068   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069     ac_prev=dvidir ;;
1070   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071     dvidir=$ac_optarg ;;
1072
1073   -enable-* | --enable-*)
1074     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077       as_fn_error "invalid feature name: $ac_useropt"
1078     ac_useropt_orig=$ac_useropt
1079     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080     case $ac_user_opts in
1081       *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085          ac_unrecognized_sep=', ';;
1086     esac
1087     eval enable_$ac_useropt=\$ac_optarg ;;
1088
1089   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091   | --exec | --exe | --ex)
1092     ac_prev=exec_prefix ;;
1093   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095   | --exec=* | --exe=* | --ex=*)
1096     exec_prefix=$ac_optarg ;;
1097
1098   -gas | --gas | --ga | --g)
1099     # Obsolete; use --with-gas.
1100     with_gas=yes ;;
1101
1102   -help | --help | --hel | --he | -h)
1103     ac_init_help=long ;;
1104   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105     ac_init_help=recursive ;;
1106   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107     ac_init_help=short ;;
1108
1109   -host | --host | --hos | --ho)
1110     ac_prev=host_alias ;;
1111   -host=* | --host=* | --hos=* | --ho=*)
1112     host_alias=$ac_optarg ;;
1113
1114   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115     ac_prev=htmldir ;;
1116   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117   | --ht=*)
1118     htmldir=$ac_optarg ;;
1119
1120   -includedir | --includedir | --includedi | --included | --include \
1121   | --includ | --inclu | --incl | --inc)
1122     ac_prev=includedir ;;
1123   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124   | --includ=* | --inclu=* | --incl=* | --inc=*)
1125     includedir=$ac_optarg ;;
1126
1127   -infodir | --infodir | --infodi | --infod | --info | --inf)
1128     ac_prev=infodir ;;
1129   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130     infodir=$ac_optarg ;;
1131
1132   -libdir | --libdir | --libdi | --libd)
1133     ac_prev=libdir ;;
1134   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135     libdir=$ac_optarg ;;
1136
1137   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138   | --libexe | --libex | --libe)
1139     ac_prev=libexecdir ;;
1140   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141   | --libexe=* | --libex=* | --libe=*)
1142     libexecdir=$ac_optarg ;;
1143
1144   -localedir | --localedir | --localedi | --localed | --locale)
1145     ac_prev=localedir ;;
1146   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147     localedir=$ac_optarg ;;
1148
1149   -localstatedir | --localstatedir | --localstatedi | --localstated \
1150   | --localstate | --localstat | --localsta | --localst | --locals)
1151     ac_prev=localstatedir ;;
1152   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154     localstatedir=$ac_optarg ;;
1155
1156   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157     ac_prev=mandir ;;
1158   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159     mandir=$ac_optarg ;;
1160
1161   -nfp | --nfp | --nf)
1162     # Obsolete; use --without-fp.
1163     with_fp=no ;;
1164
1165   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166   | --no-cr | --no-c | -n)
1167     no_create=yes ;;
1168
1169   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171     no_recursion=yes ;;
1172
1173   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175   | --oldin | --oldi | --old | --ol | --o)
1176     ac_prev=oldincludedir ;;
1177   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180     oldincludedir=$ac_optarg ;;
1181
1182   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183     ac_prev=prefix ;;
1184   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185     prefix=$ac_optarg ;;
1186
1187   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188   | --program-pre | --program-pr | --program-p)
1189     ac_prev=program_prefix ;;
1190   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192     program_prefix=$ac_optarg ;;
1193
1194   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195   | --program-suf | --program-su | --program-s)
1196     ac_prev=program_suffix ;;
1197   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199     program_suffix=$ac_optarg ;;
1200
1201   -program-transform-name | --program-transform-name \
1202   | --program-transform-nam | --program-transform-na \
1203   | --program-transform-n | --program-transform- \
1204   | --program-transform | --program-transfor \
1205   | --program-transfo | --program-transf \
1206   | --program-trans | --program-tran \
1207   | --progr-tra | --program-tr | --program-t)
1208     ac_prev=program_transform_name ;;
1209   -program-transform-name=* | --program-transform-name=* \
1210   | --program-transform-nam=* | --program-transform-na=* \
1211   | --program-transform-n=* | --program-transform-=* \
1212   | --program-transform=* | --program-transfor=* \
1213   | --program-transfo=* | --program-transf=* \
1214   | --program-trans=* | --program-tran=* \
1215   | --progr-tra=* | --program-tr=* | --program-t=*)
1216     program_transform_name=$ac_optarg ;;
1217
1218   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219     ac_prev=pdfdir ;;
1220   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221     pdfdir=$ac_optarg ;;
1222
1223   -psdir | --psdir | --psdi | --psd | --ps)
1224     ac_prev=psdir ;;
1225   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226     psdir=$ac_optarg ;;
1227
1228   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229   | -silent | --silent | --silen | --sile | --sil)
1230     silent=yes ;;
1231
1232   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233     ac_prev=sbindir ;;
1234   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235   | --sbi=* | --sb=*)
1236     sbindir=$ac_optarg ;;
1237
1238   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240   | --sharedst | --shareds | --shared | --share | --shar \
1241   | --sha | --sh)
1242     ac_prev=sharedstatedir ;;
1243   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246   | --sha=* | --sh=*)
1247     sharedstatedir=$ac_optarg ;;
1248
1249   -site | --site | --sit)
1250     ac_prev=site ;;
1251   -site=* | --site=* | --sit=*)
1252     site=$ac_optarg ;;
1253
1254   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255     ac_prev=srcdir ;;
1256   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257     srcdir=$ac_optarg ;;
1258
1259   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260   | --syscon | --sysco | --sysc | --sys | --sy)
1261     ac_prev=sysconfdir ;;
1262   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264     sysconfdir=$ac_optarg ;;
1265
1266   -target | --target | --targe | --targ | --tar | --ta | --t)
1267     ac_prev=target_alias ;;
1268   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269     target_alias=$ac_optarg ;;
1270
1271   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272     verbose=yes ;;
1273
1274   -version | --version | --versio | --versi | --vers | -V)
1275     ac_init_version=: ;;
1276
1277   -with-* | --with-*)
1278     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281       as_fn_error "invalid package name: $ac_useropt"
1282     ac_useropt_orig=$ac_useropt
1283     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284     case $ac_user_opts in
1285       *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289          ac_unrecognized_sep=', ';;
1290     esac
1291     eval with_$ac_useropt=\$ac_optarg ;;
1292
1293   -without-* | --without-*)
1294     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297       as_fn_error "invalid package name: $ac_useropt"
1298     ac_useropt_orig=$ac_useropt
1299     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300     case $ac_user_opts in
1301       *"
1302 "with_$ac_useropt"
1303 "*) ;;
1304       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305          ac_unrecognized_sep=', ';;
1306     esac
1307     eval with_$ac_useropt=no ;;
1308
1309   --x)
1310     # Obsolete; use --with-x.
1311     with_x=yes ;;
1312
1313   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314   | --x-incl | --x-inc | --x-in | --x-i)
1315     ac_prev=x_includes ;;
1316   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318     x_includes=$ac_optarg ;;
1319
1320   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322     ac_prev=x_libraries ;;
1323   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325     x_libraries=$ac_optarg ;;
1326
1327   -*) as_fn_error "unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information."
1329     ;;
1330
1331   *=*)
1332     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333     # Reject names that are not valid shell variable names.
1334     case $ac_envvar in #(
1335       '' | [0-9]* | *[!_$as_cr_alnum]* )
1336       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1337     esac
1338     eval $ac_envvar=\$ac_optarg
1339     export $ac_envvar ;;
1340
1341   *)
1342     # FIXME: should be removed in autoconf 3.0.
1343     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347     ;;
1348
1349   esac
1350 done
1351
1352 if test -n "$ac_prev"; then
1353   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354   as_fn_error "missing argument to $ac_option"
1355 fi
1356
1357 if test -n "$ac_unrecognized_opts"; then
1358   case $enable_option_checking in
1359     no) ;;
1360     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1361     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362   esac
1363 fi
1364
1365 # Check all directory arguments for consistency.
1366 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367                 datadir sysconfdir sharedstatedir localstatedir includedir \
1368                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369                 libdir localedir mandir
1370 do
1371   eval ac_val=\$$ac_var
1372   # Remove trailing slashes.
1373   case $ac_val in
1374     */ )
1375       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376       eval $ac_var=\$ac_val;;
1377   esac
1378   # Be sure to have absolute directory names.
1379   case $ac_val in
1380     [\\/$]* | ?:[\\/]* )  continue;;
1381     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382   esac
1383   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1384 done
1385
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1389 build=$build_alias
1390 host=$host_alias
1391 target=$target_alias
1392
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395   if test "x$build_alias" = x; then
1396     cross_compiling=maybe
1397     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398     If a cross compiler is detected then cross compile mode will be used." >&2
1399   elif test "x$build_alias" != "x$host_alias"; then
1400     cross_compiling=yes
1401   fi
1402 fi
1403
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407 test "$silent" = yes && exec 6>/dev/null
1408
1409
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413   as_fn_error "working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415   as_fn_error "pwd does not report name of working directory"
1416
1417
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420   ac_srcdir_defaulted=yes
1421   # Try the directory containing this script, then the parent directory.
1422   ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424          X"$as_myself" : 'X\(//\)[^/]' \| \
1425          X"$as_myself" : 'X\(//\)$' \| \
1426          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\/\)[^/].*/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\/\)$/{
1437             s//\1/
1438             q
1439           }
1440           /^X\(\/\).*/{
1441             s//\1/
1442             q
1443           }
1444           s/.*/./; q'`
1445   srcdir=$ac_confdir
1446   if test ! -r "$srcdir/$ac_unique_file"; then
1447     srcdir=..
1448   fi
1449 else
1450   ac_srcdir_defaulted=no
1451 fi
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1455 fi
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1459         pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462   srcdir=.
1463 fi
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472   eval ac_env_${ac_var}_value=\$${ac_var}
1473   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1476
1477 #
1478 # Report the --help message.
1479 #
1480 if test "$ac_init_help" = "long"; then
1481   # Omit some internal or obsolete options to make the list less imposing.
1482   # This message is too long to be a string in the A/UX 3.1 sh.
1483   cat <<_ACEOF
1484 \`configure' configures this package to adapt to many kinds of systems.
1485
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1487
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE.  See below for descriptions of some of the useful variables.
1490
1491 Defaults for the options are specified in brackets.
1492
1493 Configuration:
1494   -h, --help              display this help and exit
1495       --help=short        display options specific to this package
1496       --help=recursive    display the short help of all the included packages
1497   -V, --version           display version information and exit
1498   -q, --quiet, --silent   do not print \`checking...' messages
1499       --cache-file=FILE   cache test results in FILE [disabled]
1500   -C, --config-cache      alias for \`--cache-file=config.cache'
1501   -n, --no-create         do not create output files
1502       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1503
1504 Installation directories:
1505   --prefix=PREFIX         install architecture-independent files in PREFIX
1506                           [$ac_default_prefix]
1507   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1508                           [PREFIX]
1509
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1514
1515 For better control, use the options below.
1516
1517 Fine tuning of the installation directories:
1518   --bindir=DIR            user executables [EPREFIX/bin]
1519   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1520   --libexecdir=DIR        program executables [EPREFIX/libexec]
1521   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1522   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1523   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1524   --libdir=DIR            object code libraries [EPREFIX/lib]
1525   --includedir=DIR        C header files [PREFIX/include]
1526   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1527   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1528   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1529   --infodir=DIR           info documentation [DATAROOTDIR/info]
1530   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1531   --mandir=DIR            man documentation [DATAROOTDIR/man]
1532   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1533   --htmldir=DIR           html documentation [DOCDIR]
1534   --dvidir=DIR            dvi documentation [DOCDIR]
1535   --pdfdir=DIR            pdf documentation [DOCDIR]
1536   --psdir=DIR             ps documentation [DOCDIR]
1537 _ACEOF
1538
1539   cat <<\_ACEOF
1540
1541 Program names:
1542   --program-prefix=PREFIX            prepend PREFIX to installed program names
1543   --program-suffix=SUFFIX            append SUFFIX to installed program names
1544   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1545
1546 System types:
1547   --build=BUILD     configure for building on BUILD [guessed]
1548   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1549   --target=TARGET   configure for building compilers for TARGET [HOST]
1550 _ACEOF
1551 fi
1552
1553 if test -n "$ac_init_help"; then
1554
1555   cat <<\_ACEOF
1556
1557 Optional Features:
1558   --disable-option-checking  ignore unrecognized --enable/--with options
1559   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1560   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1561   --enable-generated-files-in-srcdir
1562                           put copies of generated files in source dir intended
1563                           for creating source tarballs for users without
1564                           texinfo bison or flex
1565   --disable-largefile     omit support for large files
1566   --enable-werror-always  enable -Werror despite compiler version
1567   --enable-checking[=LIST]
1568                           enable expensive run-time checks. With LIST, enable
1569                           only specific categories of checks. Categories are:
1570                           yes,no,all,none,release. Flags are:
1571                           assert,df,fold,gc,gcac,gimple,misc,
1572                           rtlflag,rtl,runtime,tree,valgrind,types
1573   --enable-coverage[=LEVEL]
1574                           enable compiler's code coverage collection. Use to
1575                           measure compiler performance and locate unused parts
1576                           of the compiler. With LEVEL, specify optimization.
1577                           Values are opt, noopt, default is noopt
1578   --enable-gather-detailed-mem-stats
1579                           enable detailed memory allocation stats gathering
1580   --enable-build-with-cxx build with C++ compiler instead of C compiler
1581   --enable-multilib       enable library support for multiple ABIs
1582   --enable-__cxa_atexit   enable __cxa_atexit for C++
1583   --enable-decimal-float={no,yes,bid,dpd}
1584                         enable decimal float extension to C.  Selecting 'bid'
1585                         or 'dpd' choses which decimal floating point format
1586                         to use
1587   --enable-fixed-point    enable fixed-point arithmetic extension to C
1588   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1589                           package
1590   --enable-tls            enable or disable generation of tls code overriding
1591                           the assembler check for tls support
1592   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1593                           GNU Objective-C runtime
1594   --disable-shared        don't provide a shared libgcc
1595   --enable-languages=LIST specify which front-ends to build
1596   --disable-rpath         do not hardcode runtime library paths
1597   --enable-initfini-array       use .init_array/.fini_array sections
1598   --enable-sjlj-exceptions
1599                           arrange to use setjmp/longjmp exception handling
1600   --enable-secureplt      enable -msecure-plt by default for PowerPC
1601   --enable-leading-mingw64-underscores
1602                           enable leading underscores on 64 bit mingw targets
1603   --enable-cld            enable -mcld by default for 32bit x86
1604   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1605                           x86
1606   --disable-win32-registry
1607                           disable lookup of installation paths in the Registry
1608                           on Windows hosts
1609   --enable-win32-registry enable registry lookup (default)
1610   --enable-win32-registry=KEY
1611                           use KEY instead of GCC version as the last portion
1612                           of the registry key
1613   --enable-shared[=PKGS]  build shared libraries [default=yes]
1614   --enable-static[=PKGS]  build static libraries [default=yes]
1615   --enable-fast-install[=PKGS]
1616                           optimize for fast installation [default=yes]
1617   --disable-libtool-lock  avoid locking (might break parallel builds)
1618   --enable-gnu-indirect-function
1619                           enable the use of the @gnu_indirect_function to
1620                           glibc systems
1621   --enable-comdat         enable COMDAT group support
1622   --enable-gnu-unique-object
1623                           enable the use of the @gnu_unique_object ELF
1624                           extension on glibc systems
1625   --enable-linker-build-id
1626                           compiler will always pass --build-id to linker
1627   --enable-maintainer-mode
1628                           enable make rules and dependencies not useful (and
1629                           sometimes confusing) to the casual installer
1630   --enable-version-specific-runtime-libs
1631                           specify that runtime libraries should be installed
1632                           in a compiler-specific directory
1633   --enable-plugin         enable plugin support
1634   --disable-libquadmath-support
1635                           disable libquadmath support for Fortran
1636
1637 Optional Packages:
1638   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1639   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1640   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1641   --with-local-prefix=DIR specifies directory to put local include
1642   --with-gxx-include-dir=DIR
1643                           specifies directory to put g++ header files
1644   --with-cpp-install-dir=DIR
1645                           install the user visible C preprocessor in DIR
1646                           (relative to PREFIX) as well as PREFIX/bin
1647   --with-gnu-ld           arrange to work with GNU ld
1648   --with-ld               arrange to use the specified ld (full pathname)
1649   --with-demangler-in-ld  try to use demangler in GNU ld
1650   --with-gnu-as           arrange to work with GNU as
1651   --with-as               arrange to use the specified as (full pathname)
1652   --with-stabs            arrange to use stabs instead of host debug format
1653   --with-dwarf2           force the default debug format to be DWARF 2
1654   --with-build-sysroot=sysroot
1655                           use sysroot as the system root during the build
1656   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1657   --with-specs=SPECS      add SPECS to driver command-line processing
1658   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1659   --with-bugurl=URL       Direct users to URL to report a bug
1660   --with-multilib-list    select multilibs (SH and x86-64 only)
1661   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1662   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1663   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1664   --with-pic              try to use only PIC/non-PIC objects [default=use
1665                           both]
1666   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1667   --with-plugin-ld=[ARG]  specify the plugin linker
1668   --with-long-double-128  use 128-bit long double by default
1669   --with-gc={page,zone}   choose the garbage collection mechanism to use with
1670                           the compiler
1671   --with-system-zlib      use installed libz
1672   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1673   --with-linker-hash-style={sysv,gnu,both}
1674                           specify the linker hash style
1675
1676 Some influential environment variables:
1677   CC          C compiler command
1678   CFLAGS      C compiler flags
1679   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1680               nonstandard directory <lib dir>
1681   LIBS        libraries to pass to the linker, e.g. -l<library>
1682   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1683               you have headers in a nonstandard directory <include dir>
1684   CXX         C++ compiler command
1685   CXXFLAGS    C++ compiler flags
1686   CPP         C preprocessor
1687   CXXCPP      C++ preprocessor
1688   GMPLIBS     How to link GMP
1689   GMPINC      How to find GMP include files
1690   PPLLIBS     How to link PPL
1691   PPLINC      How to find PPL include files
1692   CLOOGLIBS   How to link CLOOG
1693   CLOOGINC    How to find CLOOG include files
1694
1695 Use these variables to override the choices made by `configure' or to help
1696 it to find libraries and programs with nonstandard names/locations.
1697
1698 Report bugs to the package provider.
1699 _ACEOF
1700 ac_status=$?
1701 fi
1702
1703 if test "$ac_init_help" = "recursive"; then
1704   # If there are subdirs, report their specific --help.
1705   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1706     test -d "$ac_dir" ||
1707       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1708       continue
1709     ac_builddir=.
1710
1711 case "$ac_dir" in
1712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *)
1714   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1715   # A ".." for each directory in $ac_dir_suffix.
1716   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1717   case $ac_top_builddir_sub in
1718   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720   esac ;;
1721 esac
1722 ac_abs_top_builddir=$ac_pwd
1723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1724 # for backward compatibility:
1725 ac_top_builddir=$ac_top_build_prefix
1726
1727 case $srcdir in
1728   .)  # We are building in place.
1729     ac_srcdir=.
1730     ac_top_srcdir=$ac_top_builddir_sub
1731     ac_abs_top_srcdir=$ac_pwd ;;
1732   [\\/]* | ?:[\\/]* )  # Absolute name.
1733     ac_srcdir=$srcdir$ac_dir_suffix;
1734     ac_top_srcdir=$srcdir
1735     ac_abs_top_srcdir=$srcdir ;;
1736   *) # Relative name.
1737     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1738     ac_top_srcdir=$ac_top_build_prefix$srcdir
1739     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 esac
1741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742
1743     cd "$ac_dir" || { ac_status=$?; continue; }
1744     # Check for guested configure.
1745     if test -f "$ac_srcdir/configure.gnu"; then
1746       echo &&
1747       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748     elif test -f "$ac_srcdir/configure"; then
1749       echo &&
1750       $SHELL "$ac_srcdir/configure" --help=recursive
1751     else
1752       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753     fi || ac_status=$?
1754     cd "$ac_pwd" || { ac_status=$?; break; }
1755   done
1756 fi
1757
1758 test -n "$ac_init_help" && exit $ac_status
1759 if $ac_init_version; then
1760   cat <<\_ACEOF
1761 configure
1762 generated by GNU Autoconf 2.64
1763
1764 Copyright (C) 2009 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1767 _ACEOF
1768   exit
1769 fi
1770
1771 ## ------------------------ ##
1772 ## Autoconf initialization. ##
1773 ## ------------------------ ##
1774
1775 # ac_fn_c_try_compile LINENO
1776 # --------------------------
1777 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_compile ()
1779 {
1780   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781   rm -f conftest.$ac_objext
1782   if { { ac_try="$ac_compile"
1783 case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_compile") 2>conftest.err
1790   ac_status=$?
1791   if test -s conftest.err; then
1792     grep -v '^ *+' conftest.err >conftest.er1
1793     cat conftest.er1 >&5
1794     mv -f conftest.er1 conftest.err
1795   fi
1796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797   test $ac_status = 0; } && {
1798          test -z "$ac_c_werror_flag" ||
1799          test ! -s conftest.err
1800        } && test -s conftest.$ac_objext; then :
1801   ac_retval=0
1802 else
1803   $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806         ac_retval=1
1807 fi
1808   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809   return $ac_retval
1810
1811 } # ac_fn_c_try_compile
1812
1813 # ac_fn_cxx_try_compile LINENO
1814 # ----------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_cxx_try_compile ()
1817 {
1818   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819   rm -f conftest.$ac_objext
1820   if { { ac_try="$ac_compile"
1821 case "(($ac_try" in
1822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823   *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827   (eval "$ac_compile") 2>conftest.err
1828   ac_status=$?
1829   if test -s conftest.err; then
1830     grep -v '^ *+' conftest.err >conftest.er1
1831     cat conftest.er1 >&5
1832     mv -f conftest.er1 conftest.err
1833   fi
1834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835   test $ac_status = 0; } && {
1836          test -z "$ac_cxx_werror_flag" ||
1837          test ! -s conftest.err
1838        } && test -s conftest.$ac_objext; then :
1839   ac_retval=0
1840 else
1841   $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844         ac_retval=1
1845 fi
1846   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847   return $ac_retval
1848
1849 } # ac_fn_cxx_try_compile
1850
1851 # ac_fn_c_try_cpp LINENO
1852 # ----------------------
1853 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_c_try_cpp ()
1855 {
1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857   if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 case "(($ac_try" in
1859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860   *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865   ac_status=$?
1866   if test -s conftest.err; then
1867     grep -v '^ *+' conftest.err >conftest.er1
1868     cat conftest.er1 >&5
1869     mv -f conftest.er1 conftest.err
1870   fi
1871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872   test $ac_status = 0; } >/dev/null && {
1873          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1874          test ! -s conftest.err
1875        }; then :
1876   ac_retval=0
1877 else
1878   $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881     ac_retval=1
1882 fi
1883   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884   return $ac_retval
1885
1886 } # ac_fn_c_try_cpp
1887
1888 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1891 # the include files in INCLUDES and setting the cache variable VAR
1892 # accordingly.
1893 ac_fn_c_check_header_mongrel ()
1894 {
1895   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900   $as_echo_n "(cached) " >&6
1901 fi
1902 eval ac_res=\$$3
1903                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 else
1906   # Is the header compilable?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1908 $as_echo_n "checking $2 usability... " >&6; }
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h.  */
1911 $4
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915   ac_header_compiler=yes
1916 else
1917   ac_header_compiler=no
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1921 $as_echo "$ac_header_compiler" >&6; }
1922
1923 # Is the header present?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1925 $as_echo_n "checking $2 presence... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h.  */
1928 #include <$2>
1929 _ACEOF
1930 if ac_fn_c_try_cpp "$LINENO"; then :
1931   ac_header_preproc=yes
1932 else
1933   ac_header_preproc=no
1934 fi
1935 rm -f conftest.err conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1937 $as_echo "$ac_header_preproc" >&6; }
1938
1939 # So?  What about this header?
1940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941   yes:no: )
1942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1943 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1944     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946     ;;
1947   no:yes:* )
1948     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1949 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1950     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1951 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1952     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1953 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1954     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1955 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1956     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958     ;;
1959 esac
1960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963   $as_echo_n "(cached) " >&6
1964 else
1965   eval "$3=\$ac_header_compiler"
1966 fi
1967 eval ac_res=\$$3
1968                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 fi
1971   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972
1973 } # ac_fn_c_check_header_mongrel
1974
1975 # ac_fn_c_try_run LINENO
1976 # ----------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1978 # that executables *can* be run.
1979 ac_fn_c_try_run ()
1980 {
1981   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982   if { { ac_try="$ac_link"
1983 case "(($ac_try" in
1984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985   *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989   (eval "$ac_link") 2>&5
1990   ac_status=$?
1991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1993   { { case "(($ac_try" in
1994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995   *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999   (eval "$ac_try") 2>&5
2000   ac_status=$?
2001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002   test $ac_status = 0; }; }; then :
2003   ac_retval=0
2004 else
2005   $as_echo "$as_me: program exited with status $ac_status" >&5
2006        $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009        ac_retval=$ac_status
2010 fi
2011   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013   return $ac_retval
2014
2015 } # ac_fn_c_try_run
2016
2017 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2018 # -------------------------------------------------------
2019 # Tests whether HEADER exists and can be compiled using the include files in
2020 # INCLUDES, setting the cache variable VAR accordingly.
2021 ac_fn_c_check_header_compile ()
2022 {
2023   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027   $as_echo_n "(cached) " >&6
2028 else
2029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h.  */
2031 $4
2032 #include <$2>
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035   eval "$3=yes"
2036 else
2037   eval "$3=no"
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 fi
2041 eval ac_res=\$$3
2042                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045
2046 } # ac_fn_c_check_header_compile
2047
2048 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2049 # --------------------------------------------
2050 # Tries to find the compile-time value of EXPR in a program that includes
2051 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2052 # computed
2053 ac_fn_c_compute_int ()
2054 {
2055   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056   if test "$cross_compiling" = yes; then
2057     # Depending upon the size, compute the lo and hi bounds.
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h.  */
2060 $4
2061 int
2062 main ()
2063 {
2064 static int test_array [1 - 2 * !(($2) >= 0)];
2065 test_array [0] = 0
2066
2067   ;
2068   return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072   ac_lo=0 ac_mid=0
2073   while :; do
2074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h.  */
2076 $4
2077 int
2078 main ()
2079 {
2080 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2081 test_array [0] = 0
2082
2083   ;
2084   return 0;
2085 }
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088   ac_hi=$ac_mid; break
2089 else
2090   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2091                         if test $ac_lo -le $ac_mid; then
2092                           ac_lo= ac_hi=
2093                           break
2094                         fi
2095                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098   done
2099 else
2100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h.  */
2102 $4
2103 int
2104 main ()
2105 {
2106 static int test_array [1 - 2 * !(($2) < 0)];
2107 test_array [0] = 0
2108
2109   ;
2110   return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114   ac_hi=-1 ac_mid=-1
2115   while :; do
2116     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h.  */
2118 $4
2119 int
2120 main ()
2121 {
2122 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2123 test_array [0] = 0
2124
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130   ac_lo=$ac_mid; break
2131 else
2132   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2133                         if test $ac_mid -le $ac_hi; then
2134                           ac_lo= ac_hi=
2135                           break
2136                         fi
2137                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140   done
2141 else
2142   ac_lo= ac_hi=
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 # Binary search between lo and hi bounds.
2148 while test "x$ac_lo" != "x$ac_hi"; do
2149   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h.  */
2152 $4
2153 int
2154 main ()
2155 {
2156 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2157 test_array [0] = 0
2158
2159   ;
2160   return 0;
2161 }
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164   ac_hi=$ac_mid
2165 else
2166   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170 case $ac_lo in #((
2171 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2172 '') ac_retval=1 ;;
2173 esac
2174   else
2175     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h.  */
2177 $4
2178 static long int longval () { return $2; }
2179 static unsigned long int ulongval () { return $2; }
2180 #include <stdio.h>
2181 #include <stdlib.h>
2182 int
2183 main ()
2184 {
2185
2186   FILE *f = fopen ("conftest.val", "w");
2187   if (! f)
2188     return 1;
2189   if (($2) < 0)
2190     {
2191       long int i = longval ();
2192       if (i != ($2))
2193         return 1;
2194       fprintf (f, "%ld", i);
2195     }
2196   else
2197     {
2198       unsigned long int i = ulongval ();
2199       if (i != ($2))
2200         return 1;
2201       fprintf (f, "%lu", i);
2202     }
2203   /* Do not output a trailing newline, as this causes \r\n confusion
2204      on some platforms.  */
2205   return ferror (f) || fclose (f) != 0;
2206
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_c_try_run "$LINENO"; then :
2212   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2213 else
2214   ac_retval=1
2215 fi
2216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2217   conftest.$ac_objext conftest.beam conftest.$ac_ext
2218 rm -f conftest.val
2219
2220   fi
2221   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2222   return $ac_retval
2223
2224 } # ac_fn_c_compute_int
2225
2226 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2227 # -------------------------------------------
2228 # Tests whether TYPE exists after having included INCLUDES, setting cache
2229 # variable VAR accordingly.
2230 ac_fn_c_check_type ()
2231 {
2232   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236   $as_echo_n "(cached) " >&6
2237 else
2238   eval "$3=no"
2239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h.  */
2241 $4
2242 int
2243 main ()
2244 {
2245 if (sizeof ($2))
2246          return 0;
2247   ;
2248   return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h.  */
2254 $4
2255 int
2256 main ()
2257 {
2258 if (sizeof (($2)))
2259             return 0;
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265
2266 else
2267   eval "$3=yes"
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 fi
2273 eval ac_res=\$$3
2274                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277
2278 } # ac_fn_c_check_type
2279
2280 # ac_fn_c_find_intX_t LINENO BITS VAR
2281 # -----------------------------------
2282 # Finds a signed integer type with width BITS, setting cache variable VAR
2283 # accordingly.
2284 ac_fn_c_find_intX_t ()
2285 {
2286   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2288 $as_echo_n "checking for int$2_t... " >&6; }
2289 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2290   $as_echo_n "(cached) " >&6
2291 else
2292   eval "$3=no"
2293      for ac_type in int$2_t 'int' 'long int' \
2294          'long long int' 'short int' 'signed char'; do
2295        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h.  */
2297 $ac_includes_default
2298 int
2299 main ()
2300 {
2301 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2302 test_array [0] = 0
2303
2304   ;
2305   return 0;
2306 }
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h.  */
2311 $ac_includes_default
2312 int
2313 main ()
2314 {
2315 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2316                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2317 test_array [0] = 0
2318
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324
2325 else
2326   case $ac_type in #(
2327   int$2_t) :
2328     eval "$3=yes" ;; #(
2329   *) :
2330     eval "$3=\$ac_type" ;;
2331 esac
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 fi
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336        eval as_val=\$$3
2337    if test "x$as_val" = x""no; then :
2338
2339 else
2340   break
2341 fi
2342      done
2343 fi
2344 eval ac_res=\$$3
2345                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2348
2349 } # ac_fn_c_find_intX_t
2350
2351 # ac_fn_c_try_link LINENO
2352 # -----------------------
2353 # Try to link conftest.$ac_ext, and return whether this succeeded.
2354 ac_fn_c_try_link ()
2355 {
2356   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357   rm -f conftest.$ac_objext conftest$ac_exeext
2358   if { { ac_try="$ac_link"
2359 case "(($ac_try" in
2360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361   *) ac_try_echo=$ac_try;;
2362 esac
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365   (eval "$ac_link") 2>conftest.err
2366   ac_status=$?
2367   if test -s conftest.err; then
2368     grep -v '^ *+' conftest.err >conftest.er1
2369     cat conftest.er1 >&5
2370     mv -f conftest.er1 conftest.err
2371   fi
2372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373   test $ac_status = 0; } && {
2374          test -z "$ac_c_werror_flag" ||
2375          test ! -s conftest.err
2376        } && test -s conftest$ac_exeext && {
2377          test "$cross_compiling" = yes ||
2378          $as_test_x conftest$ac_exeext
2379        }; then :
2380   ac_retval=0
2381 else
2382   $as_echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2384
2385         ac_retval=1
2386 fi
2387   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2388   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2389   # interfere with the next link command; also delete a directory that is
2390   # left behind by Apple's compiler.  We do this before executing the actions.
2391   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2392   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393   return $ac_retval
2394
2395 } # ac_fn_c_try_link
2396
2397 # ac_fn_c_find_uintX_t LINENO BITS VAR
2398 # ------------------------------------
2399 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2400 # accordingly.
2401 ac_fn_c_find_uintX_t ()
2402 {
2403   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2405 $as_echo_n "checking for uint$2_t... " >&6; }
2406 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2407   $as_echo_n "(cached) " >&6
2408 else
2409   eval "$3=no"
2410      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2411          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2412        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h.  */
2414 $ac_includes_default
2415 int
2416 main ()
2417 {
2418 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2419 test_array [0] = 0
2420
2421   ;
2422   return 0;
2423 }
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426   case $ac_type in #(
2427   uint$2_t) :
2428     eval "$3=yes" ;; #(
2429   *) :
2430     eval "$3=\$ac_type" ;;
2431 esac
2432 fi
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434        eval as_val=\$$3
2435    if test "x$as_val" = x""no; then :
2436
2437 else
2438   break
2439 fi
2440      done
2441 fi
2442 eval ac_res=\$$3
2443                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446
2447 } # ac_fn_c_find_uintX_t
2448
2449 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2450 # ----------------------------------------------
2451 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2452 ac_fn_c_check_header_preproc ()
2453 {
2454   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2456 $as_echo_n "checking for $2... " >&6; }
2457 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2458   $as_echo_n "(cached) " >&6
2459 else
2460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h.  */
2462 #include <$2>
2463 _ACEOF
2464 if ac_fn_c_try_cpp "$LINENO"; then :
2465   eval "$3=yes"
2466 else
2467   eval "$3=no"
2468 fi
2469 rm -f conftest.err conftest.$ac_ext
2470 fi
2471 eval ac_res=\$$3
2472                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2475
2476 } # ac_fn_c_check_header_preproc
2477
2478 # ac_fn_cxx_try_cpp LINENO
2479 # ------------------------
2480 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2481 ac_fn_cxx_try_cpp ()
2482 {
2483   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484   if { { ac_try="$ac_cpp conftest.$ac_ext"
2485 case "(($ac_try" in
2486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487   *) ac_try_echo=$ac_try;;
2488 esac
2489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2490 $as_echo "$ac_try_echo"; } >&5
2491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2492   ac_status=$?
2493   if test -s conftest.err; then
2494     grep -v '^ *+' conftest.err >conftest.er1
2495     cat conftest.er1 >&5
2496     mv -f conftest.er1 conftest.err
2497   fi
2498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2499   test $ac_status = 0; } >/dev/null && {
2500          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2501          test ! -s conftest.err
2502        }; then :
2503   ac_retval=0
2504 else
2505   $as_echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508     ac_retval=1
2509 fi
2510   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511   return $ac_retval
2512
2513 } # ac_fn_cxx_try_cpp
2514
2515 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2516 # ------------------------------------------------
2517 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2518 ac_fn_cxx_check_header_preproc ()
2519 {
2520   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2522 $as_echo_n "checking for $2... " >&6; }
2523 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2524   $as_echo_n "(cached) " >&6
2525 else
2526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2527 /* end confdefs.h.  */
2528 #include <$2>
2529 _ACEOF
2530 if ac_fn_cxx_try_cpp "$LINENO"; then :
2531   eval "$3=yes"
2532 else
2533   eval "$3=no"
2534 fi
2535 rm -f conftest.err conftest.$ac_ext
2536 fi
2537 eval ac_res=\$$3
2538                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539 $as_echo "$ac_res" >&6; }
2540   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541
2542 } # ac_fn_cxx_check_header_preproc
2543
2544 # ac_fn_c_check_func LINENO FUNC VAR
2545 # ----------------------------------
2546 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2547 ac_fn_c_check_func ()
2548 {
2549   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 $as_echo_n "checking for $2... " >&6; }
2552 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553   $as_echo_n "(cached) " >&6
2554 else
2555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h.  */
2557 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2559 #define $2 innocuous_$2
2560
2561 /* System header to define __stub macros and hopefully few prototypes,
2562     which can conflict with char $2 (); below.
2563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2564     <limits.h> exists even on freestanding compilers.  */
2565
2566 #ifdef __STDC__
2567 # include <limits.h>
2568 #else
2569 # include <assert.h>
2570 #endif
2571
2572 #undef $2
2573
2574 /* Override any GCC internal prototype to avoid an error.
2575    Use char because int might match the return type of a GCC
2576    builtin and then its argument prototype would still apply.  */
2577 #ifdef __cplusplus
2578 extern "C"
2579 #endif
2580 char $2 ();
2581 /* The GNU C library defines this for functions which it implements
2582     to always fail with ENOSYS.  Some functions are actually named
2583     something starting with __ and the normal name is an alias.  */
2584 #if defined __stub_$2 || defined __stub___$2
2585 choke me
2586 #endif
2587
2588 int
2589 main ()
2590 {
2591 return $2 ();
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 if ac_fn_c_try_link "$LINENO"; then :
2597   eval "$3=yes"
2598 else
2599   eval "$3=no"
2600 fi
2601 rm -f core conftest.err conftest.$ac_objext \
2602     conftest$ac_exeext conftest.$ac_ext
2603 fi
2604 eval ac_res=\$$3
2605                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608
2609 } # ac_fn_c_check_func
2610
2611 # ac_fn_cxx_try_link LINENO
2612 # -------------------------
2613 # Try to link conftest.$ac_ext, and return whether this succeeded.
2614 ac_fn_cxx_try_link ()
2615 {
2616   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617   rm -f conftest.$ac_objext conftest$ac_exeext
2618   if { { ac_try="$ac_link"
2619 case "(($ac_try" in
2620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621   *) ac_try_echo=$ac_try;;
2622 esac
2623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624 $as_echo "$ac_try_echo"; } >&5
2625   (eval "$ac_link") 2>conftest.err
2626   ac_status=$?
2627   if test -s conftest.err; then
2628     grep -v '^ *+' conftest.err >conftest.er1
2629     cat conftest.er1 >&5
2630     mv -f conftest.er1 conftest.err
2631   fi
2632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633   test $ac_status = 0; } && {
2634          test -z "$ac_cxx_werror_flag" ||
2635          test ! -s conftest.err
2636        } && test -s conftest$ac_exeext && {
2637          test "$cross_compiling" = yes ||
2638          $as_test_x conftest$ac_exeext
2639        }; then :
2640   ac_retval=0
2641 else
2642   $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645         ac_retval=1
2646 fi
2647   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2648   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2649   # interfere with the next link command; also delete a directory that is
2650   # left behind by Apple's compiler.  We do this before executing the actions.
2651   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2652   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2653   return $ac_retval
2654
2655 } # ac_fn_cxx_try_link
2656 cat >config.log <<_ACEOF
2657 This file contains any messages produced by compilers while
2658 running configure, to aid debugging if configure makes a mistake.
2659
2660 It was created by $as_me, which was
2661 generated by GNU Autoconf 2.64.  Invocation command line was
2662
2663   $ $0 $@
2664
2665 _ACEOF
2666 exec 5>>config.log
2667 {
2668 cat <<_ASUNAME
2669 ## --------- ##
2670 ## Platform. ##
2671 ## --------- ##
2672
2673 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2674 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2675 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2676 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2677 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2678
2679 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2680 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2681
2682 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2683 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2684 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2685 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2686 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2687 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2688 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2689
2690 _ASUNAME
2691
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695   IFS=$as_save_IFS
2696   test -z "$as_dir" && as_dir=.
2697     $as_echo "PATH: $as_dir"
2698   done
2699 IFS=$as_save_IFS
2700
2701 } >&5
2702
2703 cat >&5 <<_ACEOF
2704
2705
2706 ## ----------- ##
2707 ## Core tests. ##
2708 ## ----------- ##
2709
2710 _ACEOF
2711
2712
2713 # Keep a trace of the command line.
2714 # Strip out --no-create and --no-recursion so they do not pile up.
2715 # Strip out --silent because we don't want to record it for future runs.
2716 # Also quote any args containing shell meta-characters.
2717 # Make two passes to allow for proper duplicate-argument suppression.
2718 ac_configure_args=
2719 ac_configure_args0=
2720 ac_configure_args1=
2721 ac_must_keep_next=false
2722 for ac_pass in 1 2
2723 do
2724   for ac_arg
2725   do
2726     case $ac_arg in
2727     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2728     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2729     | -silent | --silent | --silen | --sile | --sil)
2730       continue ;;
2731     *\'*)
2732       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2733     esac
2734     case $ac_pass in
2735     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2736     2)
2737       as_fn_append ac_configure_args1 " '$ac_arg'"
2738       if test $ac_must_keep_next = true; then
2739         ac_must_keep_next=false # Got value, back to normal.
2740       else
2741         case $ac_arg in
2742           *=* | --config-cache | -C | -disable-* | --disable-* \
2743           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2744           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2745           | -with-* | --with-* | -without-* | --without-* | --x)
2746             case "$ac_configure_args0 " in
2747               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2748             esac
2749             ;;
2750           -* ) ac_must_keep_next=true ;;
2751         esac
2752       fi
2753       as_fn_append ac_configure_args " '$ac_arg'"
2754       ;;
2755     esac
2756   done
2757 done
2758 { ac_configure_args0=; unset ac_configure_args0;}
2759 { ac_configure_args1=; unset ac_configure_args1;}
2760
2761 # When interrupted or exit'd, cleanup temporary files, and complete
2762 # config.log.  We remove comments because anyway the quotes in there
2763 # would cause problems or look ugly.
2764 # WARNING: Use '\'' to represent an apostrophe within the trap.
2765 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2766 trap 'exit_status=$?
2767   # Save into config.log some information that might help in debugging.
2768   {
2769     echo
2770
2771     cat <<\_ASBOX
2772 ## ---------------- ##
2773 ## Cache variables. ##
2774 ## ---------------- ##
2775 _ASBOX
2776     echo
2777     # The following way of writing the cache mishandles newlines in values,
2778 (
2779   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2780     eval ac_val=\$$ac_var
2781     case $ac_val in #(
2782     *${as_nl}*)
2783       case $ac_var in #(
2784       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2785 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2786       esac
2787       case $ac_var in #(
2788       _ | IFS | as_nl) ;; #(
2789       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2790       *) { eval $ac_var=; unset $ac_var;} ;;
2791       esac ;;
2792     esac
2793   done
2794   (set) 2>&1 |
2795     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2796     *${as_nl}ac_space=\ *)
2797       sed -n \
2798         "s/'\''/'\''\\\\'\'''\''/g;
2799           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2800       ;; #(
2801     *)
2802       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2803       ;;
2804     esac |
2805     sort
2806 )
2807     echo
2808
2809     cat <<\_ASBOX
2810 ## ----------------- ##
2811 ## Output variables. ##
2812 ## ----------------- ##
2813 _ASBOX
2814     echo
2815     for ac_var in $ac_subst_vars
2816     do
2817       eval ac_val=\$$ac_var
2818       case $ac_val in
2819       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820       esac
2821       $as_echo "$ac_var='\''$ac_val'\''"
2822     done | sort
2823     echo
2824
2825     if test -n "$ac_subst_files"; then
2826       cat <<\_ASBOX
2827 ## ------------------- ##
2828 ## File substitutions. ##
2829 ## ------------------- ##
2830 _ASBOX
2831       echo
2832       for ac_var in $ac_subst_files
2833       do
2834         eval ac_val=\$$ac_var
2835         case $ac_val in
2836         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2837         esac
2838         $as_echo "$ac_var='\''$ac_val'\''"
2839       done | sort
2840       echo
2841     fi
2842
2843     if test -s confdefs.h; then
2844       cat <<\_ASBOX
2845 ## ----------- ##
2846 ## confdefs.h. ##
2847 ## ----------- ##
2848 _ASBOX
2849       echo
2850       cat confdefs.h
2851       echo
2852     fi
2853     test "$ac_signal" != 0 &&
2854       $as_echo "$as_me: caught signal $ac_signal"
2855     $as_echo "$as_me: exit $exit_status"
2856   } >&5
2857   rm -f core *.core core.conftest.* &&
2858     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2859     exit $exit_status
2860 ' 0
2861 for ac_signal in 1 2 13 15; do
2862   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2863 done
2864 ac_signal=0
2865
2866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2867 rm -f -r conftest* confdefs.h
2868
2869 $as_echo "/* confdefs.h */" > confdefs.h
2870
2871 # Predefined preprocessor variables.
2872
2873 cat >>confdefs.h <<_ACEOF
2874 #define PACKAGE_NAME "$PACKAGE_NAME"
2875 _ACEOF
2876
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2879 _ACEOF
2880
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2883 _ACEOF
2884
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_STRING "$PACKAGE_STRING"
2887 _ACEOF
2888
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2891 _ACEOF
2892
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_URL "$PACKAGE_URL"
2895 _ACEOF
2896
2897
2898 # Let the site file select an alternate cache file if it wants to.
2899 # Prefer an explicitly selected file to automatically selected ones.
2900 ac_site_file1=NONE
2901 ac_site_file2=NONE
2902 if test -n "$CONFIG_SITE"; then
2903   ac_site_file1=$CONFIG_SITE
2904 elif test "x$prefix" != xNONE; then
2905   ac_site_file1=$prefix/share/config.site
2906   ac_site_file2=$prefix/etc/config.site
2907 else
2908   ac_site_file1=$ac_default_prefix/share/config.site
2909   ac_site_file2=$ac_default_prefix/etc/config.site
2910 fi
2911 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2912 do
2913   test "x$ac_site_file" = xNONE && continue
2914   if test -r "$ac_site_file"; then
2915     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2916 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2917     sed 's/^/| /' "$ac_site_file" >&5
2918     . "$ac_site_file"
2919   fi
2920 done
2921
2922 if test -r "$cache_file"; then
2923   # Some versions of bash will fail to source /dev/null (special
2924   # files actually), so we avoid doing that.
2925   if test -f "$cache_file"; then
2926     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2927 $as_echo "$as_me: loading cache $cache_file" >&6;}
2928     case $cache_file in
2929       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2930       *)                      . "./$cache_file";;
2931     esac
2932   fi
2933 else
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2935 $as_echo "$as_me: creating cache $cache_file" >&6;}
2936   >$cache_file
2937 fi
2938
2939 # Check that the precious variables saved in the cache have kept the same
2940 # value.
2941 ac_cache_corrupted=false
2942 for ac_var in $ac_precious_vars; do
2943   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2944   eval ac_new_set=\$ac_env_${ac_var}_set
2945   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2946   eval ac_new_val=\$ac_env_${ac_var}_value
2947   case $ac_old_set,$ac_new_set in
2948     set,)
2949       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2950 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2951       ac_cache_corrupted=: ;;
2952     ,set)
2953       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2954 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2955       ac_cache_corrupted=: ;;
2956     ,);;
2957     *)
2958       if test "x$ac_old_val" != "x$ac_new_val"; then
2959         # differences in whitespace do not lead to failure.
2960         ac_old_val_w=`echo x $ac_old_val`
2961         ac_new_val_w=`echo x $ac_new_val`
2962         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2963           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2964 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2965           ac_cache_corrupted=:
2966         else
2967           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2968 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2969           eval $ac_var=\$ac_old_val
2970         fi
2971         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2972 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2973         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2974 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2975       fi;;
2976   esac
2977   # Pass precious variables to config.status.
2978   if test "$ac_new_set" = set; then
2979     case $ac_new_val in
2980     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2981     *) ac_arg=$ac_var=$ac_new_val ;;
2982     esac
2983     case " $ac_configure_args " in
2984       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2985       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2986     esac
2987   fi
2988 done
2989 if $ac_cache_corrupted; then
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2993 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2994   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2995 fi
2996 ## -------------------- ##
2997 ## Main body of script. ##
2998 ## -------------------- ##
2999
3000 ac_ext=c
3001 ac_cpp='$CPP $CPPFLAGS'
3002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005
3006
3007
3008
3009
3010
3011 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3012
3013
3014 gcc_version=`cat $srcdir/BASE-VER`
3015
3016 # Determine the host, build, and target systems
3017 ac_aux_dir=
3018 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3019   for ac_t in install-sh install.sh shtool; do
3020     if test -f "$ac_dir/$ac_t"; then
3021       ac_aux_dir=$ac_dir
3022       ac_install_sh="$ac_aux_dir/$ac_t -c"
3023       break 2
3024     fi
3025   done
3026 done
3027 if test -z "$ac_aux_dir"; then
3028   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3029 fi
3030
3031 # These three variables are undocumented and unsupported,
3032 # and are intended to be withdrawn in a future Autoconf release.
3033 # They can cause serious problems if a builder's source tree is in a directory
3034 # whose full name contains unusual characters.
3035 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3036 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3037 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3038
3039
3040 # Make sure we can run config.sub.
3041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3042   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3043
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3045 $as_echo_n "checking build system type... " >&6; }
3046 if test "${ac_cv_build+set}" = set; then :
3047   $as_echo_n "(cached) " >&6
3048 else
3049   ac_build_alias=$build_alias
3050 test "x$ac_build_alias" = x &&
3051   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3052 test "x$ac_build_alias" = x &&
3053   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3055   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3056
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3059 $as_echo "$ac_cv_build" >&6; }
3060 case $ac_cv_build in
3061 *-*-*) ;;
3062 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3063 esac
3064 build=$ac_cv_build
3065 ac_save_IFS=$IFS; IFS='-'
3066 set x $ac_cv_build
3067 shift
3068 build_cpu=$1
3069 build_vendor=$2
3070 shift; shift
3071 # Remember, the first character of IFS is used to create $*,
3072 # except with old shells:
3073 build_os=$*
3074 IFS=$ac_save_IFS
3075 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3076
3077
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3079 $as_echo_n "checking host system type... " >&6; }
3080 if test "${ac_cv_host+set}" = set; then :
3081   $as_echo_n "(cached) " >&6
3082 else
3083   if test "x$host_alias" = x; then
3084   ac_cv_host=$ac_cv_build
3085 else
3086   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3087     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3088 fi
3089
3090 fi
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3092 $as_echo "$ac_cv_host" >&6; }
3093 case $ac_cv_host in
3094 *-*-*) ;;
3095 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3096 esac
3097 host=$ac_cv_host
3098 ac_save_IFS=$IFS; IFS='-'
3099 set x $ac_cv_host
3100 shift
3101 host_cpu=$1
3102 host_vendor=$2
3103 shift; shift
3104 # Remember, the first character of IFS is used to create $*,
3105 # except with old shells:
3106 host_os=$*
3107 IFS=$ac_save_IFS
3108 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3109
3110
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3112 $as_echo_n "checking target system type... " >&6; }
3113 if test "${ac_cv_target+set}" = set; then :
3114   $as_echo_n "(cached) " >&6
3115 else
3116   if test "x$target_alias" = x; then
3117   ac_cv_target=$ac_cv_host
3118 else
3119   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3120     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3121 fi
3122
3123 fi
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3125 $as_echo "$ac_cv_target" >&6; }
3126 case $ac_cv_target in
3127 *-*-*) ;;
3128 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3129 esac
3130 target=$ac_cv_target
3131 ac_save_IFS=$IFS; IFS='-'
3132 set x $ac_cv_target
3133 shift
3134 target_cpu=$1
3135 target_vendor=$2
3136 shift; shift
3137 # Remember, the first character of IFS is used to create $*,
3138 # except with old shells:
3139 target_os=$*
3140 IFS=$ac_save_IFS
3141 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3142
3143
3144 # The aliases save the names the user supplied, while $host etc.
3145 # will get canonicalized.
3146 test -n "$target_alias" &&
3147   test "$program_prefix$program_suffix$program_transform_name" = \
3148     NONENONEs,x,x, &&
3149   program_prefix=${target_alias}-
3150
3151 # Determine the noncanonical target name, for directory use.
3152  case ${build_alias} in
3153   "") build_noncanonical=${build} ;;
3154   *) build_noncanonical=${build_alias} ;;
3155 esac
3156
3157  case ${host_alias} in
3158   "") host_noncanonical=${build_noncanonical} ;;
3159   *) host_noncanonical=${host_alias} ;;
3160 esac
3161
3162  case ${target_alias} in
3163   "") target_noncanonical=${host_noncanonical} ;;
3164   *) target_noncanonical=${target_alias} ;;
3165 esac
3166
3167
3168
3169
3170 # Determine the target- and build-specific subdirectories
3171
3172 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3173 # have matching libraries, they should use host libraries: Makefile.tpl
3174 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3175 # However, they still use the build modules, because the corresponding
3176 # host modules (e.g. bison) are only built for the host when bootstrap
3177 # finishes. So:
3178 # - build_subdir is where we find build modules, and never changes.
3179 # - build_libsubdir is where we find build libraries, and can be overridden.
3180
3181 # Prefix 'build-' so this never conflicts with target_subdir.
3182 build_subdir="build-${build_noncanonical}"
3183
3184 # Check whether --with-build-libsubdir was given.
3185 if test "${with_build_libsubdir+set}" = set; then :
3186   withval=$with_build_libsubdir; build_libsubdir="$withval"
3187 else
3188   build_libsubdir="$build_subdir"
3189 fi
3190
3191 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3192 if ( test $srcdir = . && test -d gcc ) \
3193    || test -d $srcdir/../host-${host_noncanonical}; then
3194   host_subdir="host-${host_noncanonical}"
3195 else
3196   host_subdir=.
3197 fi
3198 # No prefix.
3199 target_subdir=${target_noncanonical}
3200
3201
3202 # Set program_transform_name
3203 test "$program_prefix" != NONE &&
3204   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3205 # Use a double $ so make ignores it.
3206 test "$program_suffix" != NONE &&
3207   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3208 # Double any \ or $.
3209 # By default was `s,x,x', remove it if useless.
3210 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3211 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3212
3213
3214 # Check for bogus environment variables.
3215 # Test if LIBRARY_PATH contains the notation for the current directory
3216 # since this would lead to problems installing/building glibc.
3217 # LIBRARY_PATH contains the current directory if one of the following
3218 # is true:
3219 # - one of the terminals (":" and ";") is the first or last sign
3220 # - two terminals occur directly after each other
3221 # - the path contains an element with a dot in it
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3223 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3224 case ${LIBRARY_PATH} in
3225   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3226     library_path_setting="contains current directory"
3227     ;;
3228   *)
3229     library_path_setting="ok"
3230     ;;
3231 esac
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3233 $as_echo "$library_path_setting" >&6; }
3234 if test "$library_path_setting" != "ok"; then
3235 as_fn_error "
3236 *** LIBRARY_PATH shouldn't contain the current directory when
3237 *** building gcc. Please change the environment variable
3238 *** and run configure again." "$LINENO" 5
3239 fi
3240
3241 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3242 # since this would lead to problems installing/building glibc.
3243 # GCC_EXEC_PREFIX contains the current directory if one of the following
3244 # is true:
3245 # - one of the terminals (":" and ";") is the first or last sign
3246 # - two terminals occur directly after each other
3247 # - the path contains an element with a dot in it
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3249 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3250 case ${GCC_EXEC_PREFIX} in
3251   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3252     gcc_exec_prefix_setting="contains current directory"
3253     ;;
3254   *)
3255     gcc_exec_prefix_setting="ok"
3256     ;;
3257 esac
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3259 $as_echo "$gcc_exec_prefix_setting" >&6; }
3260 if test "$gcc_exec_prefix_setting" != "ok"; then
3261 as_fn_error "
3262 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3263 *** building gcc. Please change the environment variable
3264 *** and run configure again." "$LINENO" 5
3265 fi
3266
3267 # -----------
3268 # Directories
3269 # -----------
3270
3271 # Specify the local prefix
3272 local_prefix=
3273
3274 # Check whether --with-local-prefix was given.
3275 if test "${with_local_prefix+set}" = set; then :
3276   withval=$with_local_prefix; case "${withval}" in
3277 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3278 no)     ;;
3279 *)      local_prefix=$with_local_prefix ;;
3280 esac
3281 fi
3282
3283
3284 # Default local prefix if it is empty
3285 if test x$local_prefix = x; then
3286         local_prefix=/usr/local
3287 fi
3288
3289 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3290 # passed in by the toplevel make and thus we'd get different behavior
3291 # depending on where we built the sources.
3292 gcc_gxx_include_dir=
3293 # Specify the g++ header file directory
3294
3295 # Check whether --with-gxx-include-dir was given.
3296 if test "${with_gxx_include_dir+set}" = set; then :
3297   withval=$with_gxx_include_dir; case "${withval}" in
3298 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3299 no)     ;;
3300 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3301 esac
3302 fi
3303
3304
3305 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3306 if test x${gcc_gxx_include_dir} = x; then
3307   if test x${enable_version_specific_runtime_libs} = xyes; then
3308     gcc_gxx_include_dir='${libsubdir}/include/c++'
3309   else
3310     libstdcxx_incdir='include/c++/$(version)'
3311     if test x$host != x$target; then
3312        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3313     fi
3314     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3315   fi
3316 fi
3317
3318
3319 # Check whether --with-cpp_install_dir was given.
3320 if test "${with_cpp_install_dir+set}" = set; then :
3321   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3322   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3323 elif test x$withval != xno; then
3324   cpp_install_dir=$withval
3325 fi
3326 fi
3327
3328
3329 # We would like to our source tree to be readonly.  However when releases or
3330 # pre-releases are generated, the flex/bison generated files as well as the
3331 # various formats of manuals need to be included along with the rest of the
3332 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3333 # just that.
3334
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3336 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3337     # Check whether --enable-generated-files-in-srcdir was given.
3338 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3339   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3340 else
3341   generated_files_in_srcdir=no
3342 fi
3343
3344
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3346 $as_echo "$generated_files_in_srcdir" >&6; }
3347
3348 if test "$generated_files_in_srcdir" = "yes"; then
3349   GENINSRC=''
3350 else
3351   GENINSRC='#'
3352 fi
3353
3354
3355 # -------------------
3356 # Find default linker
3357 # -------------------
3358
3359 # With GNU ld
3360
3361 # Check whether --with-gnu-ld was given.
3362 if test "${with_gnu_ld+set}" = set; then :
3363   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3364 else
3365   gnu_ld_flag=no
3366 fi
3367
3368
3369 # With pre-defined ld
3370
3371 # Check whether --with-ld was given.
3372 if test "${with_ld+set}" = set; then :
3373   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3374 fi
3375
3376 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3377   if test ! -x "$DEFAULT_LINKER"; then
3378     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3379   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3380     gnu_ld_flag=yes
3381   fi
3382
3383 cat >>confdefs.h <<_ACEOF
3384 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3385 _ACEOF
3386
3387 fi
3388
3389 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3390
3391 cat >>confdefs.h <<_ACEOF
3392 #define HAVE_GNU_LD $gnu_ld
3393 _ACEOF
3394
3395
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3397 $as_echo_n "checking whether a default linker was specified... " >&6; }
3398 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3399   if test x"$gnu_ld_flag" = x"no"; then
3400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3401 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3402   else
3403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3404 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3405   fi
3406 else
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411 # With demangler in GNU ld
3412
3413 # Check whether --with-demangler-in-ld was given.
3414 if test "${with_demangler_in_ld+set}" = set; then :
3415   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3416 else
3417   demangler_in_ld=yes
3418 fi
3419
3420
3421 # ----------------------
3422 # Find default assembler
3423 # ----------------------
3424
3425 # With GNU as
3426
3427 # Check whether --with-gnu-as was given.
3428 if test "${with_gnu_as+set}" = set; then :
3429   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3430 else
3431   gas_flag=no
3432 fi
3433
3434
3435
3436 # Check whether --with-as was given.
3437 if test "${with_as+set}" = set; then :
3438   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3439 fi
3440
3441 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3442   if test ! -x "$DEFAULT_ASSEMBLER"; then
3443     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3444   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3445     gas_flag=yes
3446   fi
3447
3448 cat >>confdefs.h <<_ACEOF
3449 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3450 _ACEOF
3451
3452 fi
3453
3454 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3455
3456 cat >>confdefs.h <<_ACEOF
3457 #define HAVE_GNU_AS $gnu_as
3458 _ACEOF
3459
3460
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3462 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3463 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3464   if test x"$gas_flag" = x"no"; then
3465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3466 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3467   else
3468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3469 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3470   fi
3471 else
3472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 fi
3475
3476 # ---------------
3477 # Find C compiler
3478 # ---------------
3479
3480 # If a non-executable a.out is present (e.g. created by GNU as above even if
3481 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3482 # file, even when creating an executable, so an execution test fails.
3483 # Remove possible default executable files to avoid this.
3484 #
3485 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3486 # Autoconf includes it.
3487 rm -f a.out a.exe b.out
3488
3489 # Find the native compiler
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 if test -n "$ac_tool_prefix"; then
3496   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_CC+set}" = set; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   if test -n "$CC"; then
3504   ac_cv_prog_CC="$CC" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511     for ac_exec_ext in '' $ac_executable_extensions; do
3512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518   done
3519 IFS=$as_save_IFS
3520
3521 fi
3522 fi
3523 CC=$ac_cv_prog_CC
3524 if test -n "$CC"; then
3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 $as_echo "$CC" >&6; }
3527 else
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3530 fi
3531
3532
3533 fi
3534 if test -z "$ac_cv_prog_CC"; then
3535   ac_ct_CC=$CC
3536   # Extract the first word of "gcc", so it can be a program name with args.
3537 set dummy gcc; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3541   $as_echo_n "(cached) " >&6
3542 else
3543   if test -n "$ac_ct_CC"; then
3544   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551     for ac_exec_ext in '' $ac_executable_extensions; do
3552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553     ac_cv_prog_ac_ct_CC="gcc"
3554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558   done
3559 IFS=$as_save_IFS
3560
3561 fi
3562 fi
3563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3564 if test -n "$ac_ct_CC"; then
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3566 $as_echo "$ac_ct_CC" >&6; }
3567 else
3568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 fi
3571
3572   if test "x$ac_ct_CC" = x; then
3573     CC=""
3574   else
3575     case $cross_compiling:$ac_tool_warned in
3576 yes:)
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579 ac_tool_warned=yes ;;
3580 esac
3581     CC=$ac_ct_CC
3582   fi
3583 else
3584   CC="$ac_cv_prog_CC"
3585 fi
3586
3587 if test -z "$CC"; then
3588           if test -n "$ac_tool_prefix"; then
3589     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3590 set dummy ${ac_tool_prefix}cc; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if test "${ac_cv_prog_CC+set}" = set; then :
3594   $as_echo_n "(cached) " >&6
3595 else
3596   if test -n "$CC"; then
3597   ac_cv_prog_CC="$CC" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602   IFS=$as_save_IFS
3603   test -z "$as_dir" && as_dir=.
3604     for ac_exec_ext in '' $ac_executable_extensions; do
3605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606     ac_cv_prog_CC="${ac_tool_prefix}cc"
3607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608     break 2
3609   fi
3610 done
3611   done
3612 IFS=$as_save_IFS
3613
3614 fi
3615 fi
3616 CC=$ac_cv_prog_CC
3617 if test -n "$CC"; then
3618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 $as_echo "$CC" >&6; }
3620 else
3621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3623 fi
3624
3625
3626   fi
3627 fi
3628 if test -z "$CC"; then
3629   # Extract the first word of "cc", so it can be a program name with args.
3630 set dummy cc; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if test "${ac_cv_prog_CC+set}" = set; then :
3634   $as_echo_n "(cached) " >&6
3635 else
3636   if test -n "$CC"; then
3637   ac_cv_prog_CC="$CC" # Let the user override the test.
3638 else
3639   ac_prog_rejected=no
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3642 do
3643   IFS=$as_save_IFS
3644   test -z "$as_dir" && as_dir=.
3645     for ac_exec_ext in '' $ac_executable_extensions; do
3646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3648        ac_prog_rejected=yes
3649        continue
3650      fi
3651     ac_cv_prog_CC="cc"
3652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653     break 2
3654   fi
3655 done
3656   done
3657 IFS=$as_save_IFS
3658
3659 if test $ac_prog_rejected = yes; then
3660   # We found a bogon in the path, so make sure we never use it.
3661   set dummy $ac_cv_prog_CC
3662   shift
3663   if test $# != 0; then
3664     # We chose a different compiler from the bogus one.
3665     # However, it has the same basename, so the bogon will be chosen
3666     # first if we set CC to just the basename; use the full file name.
3667     shift
3668     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3669   fi
3670 fi
3671 fi
3672 fi
3673 CC=$ac_cv_prog_CC
3674 if test -n "$CC"; then
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3677 else
3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3680 fi
3681
3682
3683 fi
3684 if test -z "$CC"; then
3685   if test -n "$ac_tool_prefix"; then
3686   for ac_prog in cl.exe
3687   do
3688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_CC+set}" = set; then :
3693   $as_echo_n "(cached) " >&6
3694 else
3695   if test -n "$CC"; then
3696   ac_cv_prog_CC="$CC" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701   IFS=$as_save_IFS
3702   test -z "$as_dir" && as_dir=.
3703     for ac_exec_ext in '' $ac_executable_extensions; do
3704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707     break 2
3708   fi
3709 done
3710   done
3711 IFS=$as_save_IFS
3712
3713 fi
3714 fi
3715 CC=$ac_cv_prog_CC
3716 if test -n "$CC"; then
3717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718 $as_echo "$CC" >&6; }
3719 else
3720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3722 fi
3723
3724
3725     test -n "$CC" && break
3726   done
3727 fi
3728 if test -z "$CC"; then
3729   ac_ct_CC=$CC
3730   for ac_prog in cl.exe
3731 do
3732   # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3737   $as_echo_n "(cached) " >&6
3738 else
3739   if test -n "$ac_ct_CC"; then
3740   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747     for ac_exec_ext in '' $ac_executable_extensions; do
3748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749     ac_cv_prog_ac_ct_CC="$ac_prog"
3750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751     break 2
3752   fi
3753 done
3754   done
3755 IFS=$as_save_IFS
3756
3757 fi
3758 fi
3759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760 if test -n "$ac_ct_CC"; then
3761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3762 $as_echo "$ac_ct_CC" >&6; }
3763 else
3764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3766 fi
3767
3768
3769   test -n "$ac_ct_CC" && break
3770 done
3771
3772   if test "x$ac_ct_CC" = x; then
3773     CC=""
3774   else
3775     case $cross_compiling:$ac_tool_warned in
3776 yes:)
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3779 ac_tool_warned=yes ;;
3780 esac
3781     CC=$ac_ct_CC
3782   fi
3783 fi
3784
3785 fi
3786
3787
3788 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error "no acceptable C compiler found in \$PATH
3791 See \`config.log' for more details." "$LINENO" 5; }
3792
3793 # Provide some information about the compiler.
3794 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3795 set X $ac_compile
3796 ac_compiler=$2
3797 for ac_option in --version -v -V -qversion; do
3798   { { ac_try="$ac_compiler $ac_option >&5"
3799 case "(($ac_try" in
3800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801   *) ac_try_echo=$ac_try;;
3802 esac
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3806   ac_status=$?
3807   if test -s conftest.err; then
3808     sed '10a\
3809 ... rest of stderr output deleted ...
3810          10q' conftest.err >conftest.er1
3811     cat conftest.er1 >&5
3812     rm -f conftest.er1 conftest.err
3813   fi
3814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815   test $ac_status = 0; }
3816 done
3817
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h.  */
3820
3821 int
3822 main ()
3823 {
3824
3825   ;
3826   return 0;
3827 }
3828 _ACEOF
3829 ac_clean_files_save=$ac_clean_files
3830 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3831 # Try to create an executable without -o first, disregard a.out.
3832 # It will help us diagnose broken compilers, and finding out an intuition
3833 # of exeext.
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3835 $as_echo_n "checking for C compiler default output file name... " >&6; }
3836 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3837
3838 # The possible output files:
3839 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3840
3841 ac_rmfiles=
3842 for ac_file in $ac_files
3843 do
3844   case $ac_file in
3845     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3846     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3847   esac
3848 done
3849 rm -f $ac_rmfiles
3850
3851 if { { ac_try="$ac_link_default"
3852 case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 $as_echo "$ac_try_echo"; } >&5
3858   (eval "$ac_link_default") 2>&5
3859   ac_status=$?
3860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861   test $ac_status = 0; }; then :
3862   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3863 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3864 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3865 # so that the user can short-circuit this test for compilers unknown to
3866 # Autoconf.
3867 for ac_file in $ac_files ''
3868 do
3869   test -f "$ac_file" || continue
3870   case $ac_file in
3871     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3872         ;;
3873     [ab].out )
3874         # We found the default executable, but exeext='' is most
3875         # certainly right.
3876         break;;
3877     *.* )
3878         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3879         then :; else
3880            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881         fi
3882         # We set ac_cv_exeext here because the later test for it is not
3883         # safe: cross compilers may not add the suffix if given an `-o'
3884         # argument, so we may need to know it at that point already.
3885         # Even if this section looks crufty: it has the advantage of
3886         # actually working.
3887         break;;
3888     * )
3889         break;;
3890   esac
3891 done
3892 test "$ac_cv_exeext" = no && ac_cv_exeext=
3893
3894 else
3895   ac_file=''
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3898 $as_echo "$ac_file" >&6; }
3899 if test -z "$ac_file"; then :
3900   $as_echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3902
3903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 { as_fn_set_status 77
3906 as_fn_error "C compiler cannot create executables
3907 See \`config.log' for more details." "$LINENO" 5; }; }
3908 fi
3909 ac_exeext=$ac_cv_exeext
3910
3911 # Check that the compiler produces executables we can run.  If not, either
3912 # the compiler is broken, or we cross compile.
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3914 $as_echo_n "checking whether the C compiler works... " >&6; }
3915 # If not cross compiling, check that we can run a simple program.
3916 if test "$cross_compiling" != yes; then
3917   if { ac_try='./$ac_file'
3918   { { case "(($ac_try" in
3919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920   *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924   (eval "$ac_try") 2>&5
3925   ac_status=$?
3926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927   test $ac_status = 0; }; }; then
3928     cross_compiling=no
3929   else
3930     if test "$cross_compiling" = maybe; then
3931         cross_compiling=yes
3932     else
3933         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935 as_fn_error "cannot run C compiled programs.
3936 If you meant to cross compile, use \`--host'.
3937 See \`config.log' for more details." "$LINENO" 5; }
3938     fi
3939   fi
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3942 $as_echo "yes" >&6; }
3943
3944 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3945 ac_clean_files=$ac_clean_files_save
3946 # Check that the compiler produces executables we can run.  If not, either
3947 # the compiler is broken, or we cross compile.
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3949 $as_echo_n "checking whether we are cross compiling... " >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3951 $as_echo "$cross_compiling" >&6; }
3952
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3954 $as_echo_n "checking for suffix of executables... " >&6; }
3955 if { { ac_try="$ac_link"
3956 case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3962   (eval "$ac_link") 2>&5
3963   ac_status=$?
3964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965   test $ac_status = 0; }; then :
3966   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3967 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3968 # work properly (i.e., refer to `conftest.exe'), while it won't with
3969 # `rm'.
3970 for ac_file in conftest.exe conftest conftest.*; do
3971   test -f "$ac_file" || continue
3972   case $ac_file in
3973     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3974     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3975           break;;
3976     * ) break;;
3977   esac
3978 done
3979 else
3980   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error "cannot compute suffix of executables: cannot compile and link
3983 See \`config.log' for more details." "$LINENO" 5; }
3984 fi
3985 rm -f conftest$ac_cv_exeext
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3987 $as_echo "$ac_cv_exeext" >&6; }
3988
3989 rm -f conftest.$ac_ext
3990 EXEEXT=$ac_cv_exeext
3991 ac_exeext=$EXEEXT
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3993 $as_echo_n "checking for suffix of object files... " >&6; }
3994 if test "${ac_cv_objext+set}" = set; then :
3995   $as_echo_n "(cached) " >&6
3996 else
3997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h.  */
3999
4000 int
4001 main ()
4002 {
4003
4004   ;
4005   return 0;
4006 }
4007 _ACEOF
4008 rm -f conftest.o conftest.obj
4009 if { { ac_try="$ac_compile"
4010 case "(($ac_try" in
4011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012   *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016   (eval "$ac_compile") 2>&5
4017   ac_status=$?
4018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019   test $ac_status = 0; }; then :
4020   for ac_file in conftest.o conftest.obj conftest.*; do
4021   test -f "$ac_file" || continue;
4022   case $ac_file in
4023     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4024     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4025        break;;
4026   esac
4027 done
4028 else
4029   $as_echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error "cannot compute suffix of object files: cannot compile
4035 See \`config.log' for more details." "$LINENO" 5; }
4036 fi
4037 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4040 $as_echo "$ac_cv_objext" >&6; }
4041 OBJEXT=$ac_cv_objext
4042 ac_objext=$OBJEXT
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4044 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4045 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4046   $as_echo_n "(cached) " >&6
4047 else
4048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h.  */
4050
4051 int
4052 main ()
4053 {
4054 #ifndef __GNUC__
4055        choke me
4056 #endif
4057
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063   ac_compiler_gnu=yes
4064 else
4065   ac_compiler_gnu=no
4066 fi
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4069
4070 fi
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4072 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4073 if test $ac_compiler_gnu = yes; then
4074   GCC=yes
4075 else
4076   GCC=
4077 fi
4078 ac_test_CFLAGS=${CFLAGS+set}
4079 ac_save_CFLAGS=$CFLAGS
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4081 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4082 if test "${ac_cv_prog_cc_g+set}" = set; then :
4083   $as_echo_n "(cached) " >&6
4084 else
4085   ac_save_c_werror_flag=$ac_c_werror_flag
4086    ac_c_werror_flag=yes
4087    ac_cv_prog_cc_g=no
4088    CFLAGS="-g"
4089    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h.  */
4091
4092 int
4093 main ()
4094 {
4095
4096   ;
4097   return 0;
4098 }
4099 _ACEOF
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101   ac_cv_prog_cc_g=yes
4102 else
4103   CFLAGS=""
4104       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h.  */
4106
4107 int
4108 main ()
4109 {
4110
4111   ;
4112   return 0;
4113 }
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116
4117 else
4118   ac_c_werror_flag=$ac_save_c_werror_flag
4119          CFLAGS="-g"
4120          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h.  */
4122
4123 int
4124 main ()
4125 {
4126
4127   ;
4128   return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"; then :
4132   ac_cv_prog_cc_g=yes
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139    ac_c_werror_flag=$ac_save_c_werror_flag
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4142 $as_echo "$ac_cv_prog_cc_g" >&6; }
4143 if test "$ac_test_CFLAGS" = set; then
4144   CFLAGS=$ac_save_CFLAGS
4145 elif test $ac_cv_prog_cc_g = yes; then
4146   if test "$GCC" = yes; then
4147     CFLAGS="-g -O2"
4148   else
4149     CFLAGS="-g"
4150   fi
4151 else
4152   if test "$GCC" = yes; then
4153     CFLAGS="-O2"
4154   else
4155     CFLAGS=
4156   fi
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4159 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4160 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4161   $as_echo_n "(cached) " >&6
4162 else
4163   ac_cv_prog_cc_c89=no
4164 ac_save_CC=$CC
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h.  */
4167 #include <stdarg.h>
4168 #include <stdio.h>
4169 #include <sys/types.h>
4170 #include <sys/stat.h>
4171 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4172 struct buf { int x; };
4173 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4174 static char *e (p, i)
4175      char **p;
4176      int i;
4177 {
4178   return p[i];
4179 }
4180 static char *f (char * (*g) (char **, int), char **p, ...)
4181 {
4182   char *s;
4183   va_list v;
4184   va_start (v,p);
4185   s = g (p, va_arg (v,int));
4186   va_end (v);
4187   return s;
4188 }
4189
4190 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4191    function prototypes and stuff, but not '\xHH' hex character constants.
4192    These don't provoke an error unfortunately, instead are silently treated
4193    as 'x'.  The following induces an error, until -std is added to get
4194    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4195    array size at least.  It's necessary to write '\x00'==0 to get something
4196    that's true only with -std.  */
4197 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4198
4199 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4200    inside strings and character constants.  */
4201 #define FOO(x) 'x'
4202 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4203
4204 int test (int i, double x);
4205 struct s1 {int (*f) (int a);};
4206 struct s2 {int (*f) (double a);};
4207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4208 int argc;
4209 char **argv;
4210 int
4211 main ()
4212 {
4213 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4214   ;
4215   return 0;
4216 }
4217 _ACEOF
4218 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4219         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4220 do
4221   CC="$ac_save_CC $ac_arg"
4222   if ac_fn_c_try_compile "$LINENO"; then :
4223   ac_cv_prog_cc_c89=$ac_arg
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext
4226   test "x$ac_cv_prog_cc_c89" != "xno" && break
4227 done
4228 rm -f conftest.$ac_ext
4229 CC=$ac_save_CC
4230
4231 fi
4232 # AC_CACHE_VAL
4233 case "x$ac_cv_prog_cc_c89" in
4234   x)
4235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4236 $as_echo "none needed" >&6; } ;;
4237   xno)
4238     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4239 $as_echo "unsupported" >&6; } ;;
4240   *)
4241     CC="$CC $ac_cv_prog_cc_c89"
4242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4243 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4244 esac
4245 if test "x$ac_cv_prog_cc_c89" != xno; then :
4246
4247 fi
4248
4249 ac_ext=c
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254
4255 if test "x$CC" != xcc; then
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4257 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4258 else
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4260 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4261 fi
4262 set dummy $CC; ac_cc=`$as_echo "$2" |
4263                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4264 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4265   $as_echo_n "(cached) " >&6
4266 else
4267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h.  */
4269
4270 int
4271 main ()
4272 {
4273
4274   ;
4275   return 0;
4276 }
4277 _ACEOF
4278 # Make sure it works both with $CC and with simple cc.
4279 # We do the test twice because some compilers refuse to overwrite an
4280 # existing .o file with -o, though they will create one.
4281 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4282 rm -f conftest2.*
4283 if { { case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288 $as_echo "$ac_try_echo"; } >&5
4289   (eval "$ac_try") 2>&5
4290   ac_status=$?
4291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4292   test $ac_status = 0; } &&
4293    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299   (eval "$ac_try") 2>&5
4300   ac_status=$?
4301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302   test $ac_status = 0; };
4303 then
4304   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4305   if test "x$CC" != xcc; then
4306     # Test first that cc exists at all.
4307     if { ac_try='cc -c conftest.$ac_ext >&5'
4308   { { case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313 $as_echo "$ac_try_echo"; } >&5
4314   (eval "$ac_try") 2>&5
4315   ac_status=$?
4316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317   test $ac_status = 0; }; }; then
4318       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4319       rm -f conftest2.*
4320       if { { case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326   (eval "$ac_try") 2>&5
4327   ac_status=$?
4328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329   test $ac_status = 0; } &&
4330          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332   *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336   (eval "$ac_try") 2>&5
4337   ac_status=$?
4338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339   test $ac_status = 0; };
4340       then
4341         # cc works too.
4342         :
4343       else
4344         # cc exists but doesn't like -o.
4345         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4346       fi
4347     fi
4348   fi
4349 else
4350   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4351 fi
4352 rm -f core conftest*
4353
4354 fi
4355 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4357 $as_echo "yes" >&6; }
4358 else
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361
4362 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4363
4364 fi
4365
4366 # expand $ac_aux_dir to an absolute path
4367 am_aux_dir=`cd $ac_aux_dir && pwd`
4368
4369 # FIXME: we rely on the cache variable name because
4370 # there is no other way.
4371 set dummy $CC
4372 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4373 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4374 if test "$am_t" != yes; then
4375    # Losing compiler, so override with the script.
4376    # FIXME: It is wrong to rewrite CC.
4377    # But if we don't then we get into trouble of one sort or another.
4378    # A longer-term fix would be to have automake use am__CC in this case,
4379    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4380    CC="$am_aux_dir/compile $CC"
4381 fi
4382
4383
4384 ac_ext=cpp
4385 ac_cpp='$CXXCPP $CPPFLAGS'
4386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4389 if test -z "$CXX"; then
4390   if test -n "$CCC"; then
4391     CXX=$CCC
4392   else
4393     if test -n "$ac_tool_prefix"; then
4394   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4395   do
4396     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if test "${ac_cv_prog_CXX+set}" = set; then :
4401   $as_echo_n "(cached) " >&6
4402 else
4403   if test -n "$CXX"; then
4404   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411     for ac_exec_ext in '' $ac_executable_extensions; do
4412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418   done
4419 IFS=$as_save_IFS
4420
4421 fi
4422 fi
4423 CXX=$ac_cv_prog_CXX
4424 if test -n "$CXX"; then
4425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4426 $as_echo "$CXX" >&6; }
4427 else
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4430 fi
4431
4432
4433     test -n "$CXX" && break
4434   done
4435 fi
4436 if test -z "$CXX"; then
4437   ac_ct_CXX=$CXX
4438   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4439 do
4440   # Extract the first word of "$ac_prog", so it can be a program name with args.
4441 set dummy $ac_prog; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4445   $as_echo_n "(cached) " >&6
4446 else
4447   if test -n "$ac_ct_CXX"; then
4448   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453   IFS=$as_save_IFS
4454   test -z "$as_dir" && as_dir=.
4455     for ac_exec_ext in '' $ac_executable_extensions; do
4456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457     ac_cv_prog_ac_ct_CXX="$ac_prog"
4458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459     break 2
4460   fi
4461 done
4462   done
4463 IFS=$as_save_IFS
4464
4465 fi
4466 fi
4467 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4468 if test -n "$ac_ct_CXX"; then
4469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4470 $as_echo "$ac_ct_CXX" >&6; }
4471 else
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4474 fi
4475
4476
4477   test -n "$ac_ct_CXX" && break
4478 done
4479
4480   if test "x$ac_ct_CXX" = x; then
4481     CXX="g++"
4482   else
4483     case $cross_compiling:$ac_tool_warned in
4484 yes:)
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4487 ac_tool_warned=yes ;;
4488 esac
4489     CXX=$ac_ct_CXX
4490   fi
4491 fi
4492
4493   fi
4494 fi
4495 # Provide some information about the compiler.
4496 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4497 set X $ac_compile
4498 ac_compiler=$2
4499 for ac_option in --version -v -V -qversion; do
4500   { { ac_try="$ac_compiler $ac_option >&5"
4501 case "(($ac_try" in
4502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503   *) ac_try_echo=$ac_try;;
4504 esac
4505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4506 $as_echo "$ac_try_echo"; } >&5
4507   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4508   ac_status=$?
4509   if test -s conftest.err; then
4510     sed '10a\
4511 ... rest of stderr output deleted ...
4512          10q' conftest.err >conftest.er1
4513     cat conftest.er1 >&5
4514     rm -f conftest.er1 conftest.err
4515   fi
4516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517   test $ac_status = 0; }
4518 done
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4521 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4522 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4523   $as_echo_n "(cached) " >&6
4524 else
4525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h.  */
4527
4528 int
4529 main ()
4530 {
4531 #ifndef __GNUC__
4532        choke me
4533 #endif
4534
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540   ac_compiler_gnu=yes
4541 else
4542   ac_compiler_gnu=no
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4546
4547 fi
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4549 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4550 if test $ac_compiler_gnu = yes; then
4551   GXX=yes
4552 else
4553   GXX=
4554 fi
4555 ac_test_CXXFLAGS=${CXXFLAGS+set}
4556 ac_save_CXXFLAGS=$CXXFLAGS
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4558 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4559 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4560   $as_echo_n "(cached) " >&6
4561 else
4562   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4563    ac_cxx_werror_flag=yes
4564    ac_cv_prog_cxx_g=no
4565    CXXFLAGS="-g"
4566    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h.  */
4568
4569 int
4570 main ()
4571 {
4572
4573   ;
4574   return 0;
4575 }
4576 _ACEOF
4577 if ac_fn_cxx_try_compile "$LINENO"; then :
4578   ac_cv_prog_cxx_g=yes
4579 else
4580   CXXFLAGS=""
4581       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h.  */
4583
4584 int
4585 main ()
4586 {
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 if ac_fn_cxx_try_compile "$LINENO"; then :
4593
4594 else
4595   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4596          CXXFLAGS="-g"
4597          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h.  */
4599
4600 int
4601 main ()
4602 {
4603
4604   ;
4605   return 0;
4606 }
4607 _ACEOF
4608 if ac_fn_cxx_try_compile "$LINENO"; then :
4609   ac_cv_prog_cxx_g=yes
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4617 fi
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4619 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4620 if test "$ac_test_CXXFLAGS" = set; then
4621   CXXFLAGS=$ac_save_CXXFLAGS
4622 elif test $ac_cv_prog_cxx_g = yes; then
4623   if test "$GXX" = yes; then
4624     CXXFLAGS="-g -O2"
4625   else
4626     CXXFLAGS="-g"
4627   fi
4628 else
4629   if test "$GXX" = yes; then
4630     CXXFLAGS="-O2"
4631   else
4632     CXXFLAGS=
4633   fi
4634 fi
4635 ac_ext=c
4636 ac_cpp='$CPP $CPPFLAGS'
4637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640
4641
4642
4643
4644 if test -n "$ac_tool_prefix"; then
4645   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4646 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4650   $as_echo_n "(cached) " >&6
4651 else
4652   if test -n "$GNATBIND"; then
4653   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658   IFS=$as_save_IFS
4659   test -z "$as_dir" && as_dir=.
4660     for ac_exec_ext in '' $ac_executable_extensions; do
4661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664     break 2
4665   fi
4666 done
4667   done
4668 IFS=$as_save_IFS
4669
4670 fi
4671 fi
4672 GNATBIND=$ac_cv_prog_GNATBIND
4673 if test -n "$GNATBIND"; then
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4675 $as_echo "$GNATBIND" >&6; }
4676 else
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4679 fi
4680
4681
4682 fi
4683 if test -z "$ac_cv_prog_GNATBIND"; then
4684   ac_ct_GNATBIND=$GNATBIND
4685   # Extract the first word of "gnatbind", so it can be a program name with args.
4686 set dummy gnatbind; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4690   $as_echo_n "(cached) " >&6
4691 else
4692   if test -n "$ac_ct_GNATBIND"; then
4693   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698   IFS=$as_save_IFS
4699   test -z "$as_dir" && as_dir=.
4700     for ac_exec_ext in '' $ac_executable_extensions; do
4701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704     break 2
4705   fi
4706 done
4707   done
4708 IFS=$as_save_IFS
4709
4710 fi
4711 fi
4712 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4713 if test -n "$ac_ct_GNATBIND"; then
4714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4715 $as_echo "$ac_ct_GNATBIND" >&6; }
4716 else
4717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4719 fi
4720
4721   if test "x$ac_ct_GNATBIND" = x; then
4722     GNATBIND="no"
4723   else
4724     case $cross_compiling:$ac_tool_warned in
4725 yes:)
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728 ac_tool_warned=yes ;;
4729 esac
4730     GNATBIND=$ac_ct_GNATBIND
4731   fi
4732 else
4733   GNATBIND="$ac_cv_prog_GNATBIND"
4734 fi
4735
4736 if test -n "$ac_tool_prefix"; then
4737   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4738 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   if test -n "$GNATMAKE"; then
4745   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4746 else
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750   IFS=$as_save_IFS
4751   test -z "$as_dir" && as_dir=.
4752     for ac_exec_ext in '' $ac_executable_extensions; do
4753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756     break 2
4757   fi
4758 done
4759   done
4760 IFS=$as_save_IFS
4761
4762 fi
4763 fi
4764 GNATMAKE=$ac_cv_prog_GNATMAKE
4765 if test -n "$GNATMAKE"; then
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4767 $as_echo "$GNATMAKE" >&6; }
4768 else
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4771 fi
4772
4773
4774 fi
4775 if test -z "$ac_cv_prog_GNATMAKE"; then
4776   ac_ct_GNATMAKE=$GNATMAKE
4777   # Extract the first word of "gnatmake", so it can be a program name with args.
4778 set dummy gnatmake; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4782   $as_echo_n "(cached) " >&6
4783 else
4784   if test -n "$ac_ct_GNATMAKE"; then
4785   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792     for ac_exec_ext in '' $ac_executable_extensions; do
4793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799   done
4800 IFS=$as_save_IFS
4801
4802 fi
4803 fi
4804 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4805 if test -n "$ac_ct_GNATMAKE"; then
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4807 $as_echo "$ac_ct_GNATMAKE" >&6; }
4808 else
4809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4811 fi
4812
4813   if test "x$ac_ct_GNATMAKE" = x; then
4814     GNATMAKE="no"
4815   else
4816     case $cross_compiling:$ac_tool_warned in
4817 yes:)
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4820 ac_tool_warned=yes ;;
4821 esac
4822     GNATMAKE=$ac_ct_GNATMAKE
4823   fi
4824 else
4825   GNATMAKE="$ac_cv_prog_GNATMAKE"
4826 fi
4827
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4829 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4830 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4831   $as_echo_n "(cached) " >&6
4832 else
4833   cat >conftest.adb <<EOF
4834 procedure conftest is begin null; end conftest;
4835 EOF
4836 acx_cv_cc_gcc_supports_ada=no
4837 # There is a bug in old released versions of GCC which causes the
4838 # driver to exit successfully when the appropriate language module
4839 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4840 # Therefore we must check for the error message as well as an
4841 # unsuccessful exit.
4842 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4843 # given a .adb file, but produce no object file.  So we must check
4844 # if an object file was really produced to guard against this.
4845 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4846 if test x"$errors" = x && test -f conftest.$ac_objext; then
4847   acx_cv_cc_gcc_supports_ada=yes
4848 fi
4849 rm -f conftest.*
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4852 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4853
4854 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4855   have_gnat=yes
4856 else
4857   have_gnat=no
4858 fi
4859
4860
4861 # autoconf is lame and doesn't give us any substitution variable for this.
4862 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4863   NO_MINUS_C_MINUS_O=yes
4864 else
4865   OUTPUT_OPTION='-o $@'
4866 fi
4867
4868
4869
4870 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4871 # optimizations to be activated explicitly by the toplevel.
4872 case "$CC" in
4873   */prev-gcc/xgcc*) ;;
4874   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4875 esac
4876
4877
4878 # Determine PICFLAG for target gnatlib.
4879
4880
4881
4882
4883 case "${target}" in
4884     # PIC is the default on some targets or must not be used.
4885     *-*-darwin*)
4886         # PIC is the default on this platform
4887         # Common symbols not allowed in MH_DYLIB files
4888         PICFLAG_FOR_TARGET=-fno-common
4889         ;;
4890     alpha*-dec-osf5*)
4891         # PIC is the default.
4892         ;;
4893     hppa*64*-*-hpux*)
4894         # PIC is the default for 64-bit PA HP-UX.
4895         ;;
4896     i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4897         ;;
4898     i[34567]86-*-interix3*)
4899         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4900         # Instead, we relocate shared libraries at runtime.
4901         ;;
4902     i[34567]86-*-nto-qnx*)
4903         # QNX uses GNU C++, but need to define -shared option too, otherwise
4904         # it will coredump.
4905         PICFLAG_FOR_TARGET='-fPIC -shared'
4906         ;;
4907     i[34567]86-pc-msdosdjgpp*)
4908         # DJGPP does not support shared libraries at all.
4909         ;;
4910     ia64*-*-hpux*)
4911         # On IA64 HP-UX, PIC is the default but the pic flag
4912         # sets the default TLS model and affects inlining.
4913         PICFLAG_FOR_TARGET=-fPIC
4914         ;;
4915     mips-sgi-irix6*)
4916         # PIC is the default.
4917         ;;
4918     rs6000-ibm-aix* | powerpc-ibm-aix*)
4919         # All AIX code is PIC.
4920         ;;
4921
4922     # Some targets support both -fPIC and -fpic, but prefer the latter.
4923     # FIXME: Why?
4924     i[34567]86-*-* | x86_64-*-*)
4925         PICFLAG_FOR_TARGET=-fpic
4926         ;;
4927     m68k-*-*)
4928         PICFLAG_FOR_TARGET=-fpic
4929         ;;
4930     s390*-*-*)
4931         PICFLAG_FOR_TARGET=-fpic
4932         ;;
4933     # FIXME: Override -fPIC default in libgcc only?
4934     sh-*-linux* | sh[2346lbe]*-*-linux*)
4935         PICFLAG_FOR_TARGET=-fpic
4936         ;;
4937     # FIXME: Simplify to sh*-*-netbsd*?
4938     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4939       sh64-*-netbsd* | sh64l*-*-netbsd*)
4940         PICFLAG_FOR_TARGET=-fpic
4941         ;;
4942     # Default to -fPIC unless specified otherwise.
4943     *)
4944         PICFLAG_FOR_TARGET=-fPIC
4945         ;;
4946 esac
4947
4948 # If the user explicitly uses -fpic/-fPIC, keep that.
4949 case "${CFLAGS_FOR_TARGET}" in
4950     *-fpic*)
4951         PICFLAG_FOR_TARGET=-fpic
4952         ;;
4953     *-fPIC*)
4954         PICFLAG_FOR_TARGET=-fPIC
4955         ;;
4956 esac
4957
4958
4959
4960 # -------------------------
4961 # Check C compiler features
4962 # -------------------------
4963
4964
4965 ac_ext=c
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4971 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4972 # On Suns, sometimes $CPP names a directory.
4973 if test -n "$CPP" && test -d "$CPP"; then
4974   CPP=
4975 fi
4976 if test -z "$CPP"; then
4977   if test "${ac_cv_prog_CPP+set}" = set; then :
4978   $as_echo_n "(cached) " >&6
4979 else
4980       # Double quotes because CPP needs to be expanded
4981     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4982     do
4983       ac_preproc_ok=false
4984 for ac_c_preproc_warn_flag in '' yes
4985 do
4986   # Use a header file that comes with gcc, so configuring glibc
4987   # with a fresh cross-compiler works.
4988   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989   # <limits.h> exists even on freestanding compilers.
4990   # On the NeXT, cc -E runs the code through the compiler's parser,
4991   # not just through cpp. "Syntax error" is here to catch this case.
4992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h.  */
4994 #ifdef __STDC__
4995 # include <limits.h>
4996 #else
4997 # include <assert.h>
4998 #endif
4999                      Syntax error
5000 _ACEOF
5001 if ac_fn_c_try_cpp "$LINENO"; then :
5002
5003 else
5004   # Broken: fails on valid input.
5005 continue
5006 fi
5007 rm -f conftest.err conftest.$ac_ext
5008
5009   # OK, works on sane cases.  Now check whether nonexistent headers
5010   # can be detected and how.
5011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h.  */
5013 #include <ac_nonexistent.h>
5014 _ACEOF
5015 if ac_fn_c_try_cpp "$LINENO"; then :
5016   # Broken: success on invalid input.
5017 continue
5018 else
5019   # Passes both tests.
5020 ac_preproc_ok=:
5021 break
5022 fi
5023 rm -f conftest.err conftest.$ac_ext
5024
5025 done
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027 rm -f conftest.err conftest.$ac_ext
5028 if $ac_preproc_ok; then :
5029   break
5030 fi
5031
5032     done
5033     ac_cv_prog_CPP=$CPP
5034
5035 fi
5036   CPP=$ac_cv_prog_CPP
5037 else
5038   ac_cv_prog_CPP=$CPP
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5041 $as_echo "$CPP" >&6; }
5042 ac_preproc_ok=false
5043 for ac_c_preproc_warn_flag in '' yes
5044 do
5045   # Use a header file that comes with gcc, so configuring glibc
5046   # with a fresh cross-compiler works.
5047   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048   # <limits.h> exists even on freestanding compilers.
5049   # On the NeXT, cc -E runs the code through the compiler's parser,
5050   # not just through cpp. "Syntax error" is here to catch this case.
5051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h.  */
5053 #ifdef __STDC__
5054 # include <limits.h>
5055 #else
5056 # include <assert.h>
5057 #endif
5058                      Syntax error
5059 _ACEOF
5060 if ac_fn_c_try_cpp "$LINENO"; then :
5061
5062 else
5063   # Broken: fails on valid input.
5064 continue
5065 fi
5066 rm -f conftest.err conftest.$ac_ext
5067
5068   # OK, works on sane cases.  Now check whether nonexistent headers
5069   # can be detected and how.
5070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h.  */
5072 #include <ac_nonexistent.h>
5073 _ACEOF
5074 if ac_fn_c_try_cpp "$LINENO"; then :
5075   # Broken: success on invalid input.
5076 continue
5077 else
5078   # Passes both tests.
5079 ac_preproc_ok=:
5080 break
5081 fi
5082 rm -f conftest.err conftest.$ac_ext
5083
5084 done
5085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5086 rm -f conftest.err conftest.$ac_ext
5087 if $ac_preproc_ok; then :
5088
5089 else
5090   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5092 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5093 See \`config.log' for more details." "$LINENO" 5; }
5094 fi
5095
5096 ac_ext=c
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5104 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5105 if test "${ac_cv_path_GREP+set}" = set; then :
5106   $as_echo_n "(cached) " >&6
5107 else
5108   if test -z "$GREP"; then
5109   ac_path_GREP_found=false
5110   # Loop through the user's path and test for each of PROGNAME-LIST
5111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116     for ac_prog in grep ggrep; do
5117     for ac_exec_ext in '' $ac_executable_extensions; do
5118       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5119       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5120 # Check for GNU ac_path_GREP and select it if it is found.
5121   # Check for GNU $ac_path_GREP
5122 case `"$ac_path_GREP" --version 2>&1` in
5123 *GNU*)
5124   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5125 *)
5126   ac_count=0
5127   $as_echo_n 0123456789 >"conftest.in"
5128   while :
5129   do
5130     cat "conftest.in" "conftest.in" >"conftest.tmp"
5131     mv "conftest.tmp" "conftest.in"
5132     cp "conftest.in" "conftest.nl"
5133     $as_echo 'GREP' >> "conftest.nl"
5134     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5135     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5136     as_fn_arith $ac_count + 1 && ac_count=$as_val
5137     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5138       # Best one so far, save it but keep looking for a better one
5139       ac_cv_path_GREP="$ac_path_GREP"
5140       ac_path_GREP_max=$ac_count
5141     fi
5142     # 10*(2^10) chars as input seems more than enough
5143     test $ac_count -gt 10 && break
5144   done
5145   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5146 esac
5147
5148       $ac_path_GREP_found && break 3
5149     done
5150   done
5151   done
5152 IFS=$as_save_IFS
5153   if test -z "$ac_cv_path_GREP"; then
5154     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5155   fi
5156 else
5157   ac_cv_path_GREP=$GREP
5158 fi
5159
5160 fi
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5162 $as_echo "$ac_cv_path_GREP" >&6; }
5163  GREP="$ac_cv_path_GREP"
5164
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5167 $as_echo_n "checking for egrep... " >&6; }
5168 if test "${ac_cv_path_EGREP+set}" = set; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5172    then ac_cv_path_EGREP="$GREP -E"
5173    else
5174      if test -z "$EGREP"; then
5175   ac_path_EGREP_found=false
5176   # Loop through the user's path and test for each of PROGNAME-LIST
5177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5179 do
5180   IFS=$as_save_IFS
5181   test -z "$as_dir" && as_dir=.
5182     for ac_prog in egrep; do
5183     for ac_exec_ext in '' $ac_executable_extensions; do
5184       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5185       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5186 # Check for GNU ac_path_EGREP and select it if it is found.
5187   # Check for GNU $ac_path_EGREP
5188 case `"$ac_path_EGREP" --version 2>&1` in
5189 *GNU*)
5190   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5191 *)
5192   ac_count=0
5193   $as_echo_n 0123456789 >"conftest.in"
5194   while :
5195   do
5196     cat "conftest.in" "conftest.in" >"conftest.tmp"
5197     mv "conftest.tmp" "conftest.in"
5198     cp "conftest.in" "conftest.nl"
5199     $as_echo 'EGREP' >> "conftest.nl"
5200     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5201     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5202     as_fn_arith $ac_count + 1 && ac_count=$as_val
5203     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5204       # Best one so far, save it but keep looking for a better one
5205       ac_cv_path_EGREP="$ac_path_EGREP"
5206       ac_path_EGREP_max=$ac_count
5207     fi
5208     # 10*(2^10) chars as input seems more than enough
5209     test $ac_count -gt 10 && break
5210   done
5211   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5212 esac
5213
5214       $ac_path_EGREP_found && break 3
5215     done
5216   done
5217   done
5218 IFS=$as_save_IFS
5219   if test -z "$ac_cv_path_EGREP"; then
5220     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5221   fi
5222 else
5223   ac_cv_path_EGREP=$EGREP
5224 fi
5225
5226    fi
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5229 $as_echo "$ac_cv_path_EGREP" >&6; }
5230  EGREP="$ac_cv_path_EGREP"
5231
5232
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5234 $as_echo_n "checking for ANSI C header files... " >&6; }
5235 if test "${ac_cv_header_stdc+set}" = set; then :
5236   $as_echo_n "(cached) " >&6
5237 else
5238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h.  */
5240 #include <stdlib.h>
5241 #include <stdarg.h>
5242 #include <string.h>
5243 #include <float.h>
5244
5245 int
5246 main ()
5247 {
5248
5249   ;
5250   return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_c_try_compile "$LINENO"; then :
5254   ac_cv_header_stdc=yes
5255 else
5256   ac_cv_header_stdc=no
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259
5260 if test $ac_cv_header_stdc = yes; then
5261   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h.  */
5264 #include <string.h>
5265
5266 _ACEOF
5267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5268   $EGREP "memchr" >/dev/null 2>&1; then :
5269
5270 else
5271   ac_cv_header_stdc=no
5272 fi
5273 rm -f conftest*
5274
5275 fi
5276
5277 if test $ac_cv_header_stdc = yes; then
5278   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h.  */
5281 #include <stdlib.h>
5282
5283 _ACEOF
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285   $EGREP "free" >/dev/null 2>&1; then :
5286
5287 else
5288   ac_cv_header_stdc=no
5289 fi
5290 rm -f conftest*
5291
5292 fi
5293
5294 if test $ac_cv_header_stdc = yes; then
5295   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5296   if test "$cross_compiling" = yes; then :
5297   :
5298 else
5299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h.  */
5301 #include <ctype.h>
5302 #include <stdlib.h>
5303 #if ((' ' & 0x0FF) == 0x020)
5304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5306 #else
5307 # define ISLOWER(c) \
5308                    (('a' <= (c) && (c) <= 'i') \
5309                      || ('j' <= (c) && (c) <= 'r') \
5310                      || ('s' <= (c) && (c) <= 'z'))
5311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5312 #endif
5313
5314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5315 int
5316 main ()
5317 {
5318   int i;
5319   for (i = 0; i < 256; i++)
5320     if (XOR (islower (i), ISLOWER (i))
5321         || toupper (i) != TOUPPER (i))
5322       return 2;
5323   return 0;
5324 }
5325 _ACEOF
5326 if ac_fn_c_try_run "$LINENO"; then :
5327
5328 else
5329   ac_cv_header_stdc=no
5330 fi
5331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5332   conftest.$ac_objext conftest.beam conftest.$ac_ext
5333 fi
5334
5335 fi
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5338 $as_echo "$ac_cv_header_stdc" >&6; }
5339 if test $ac_cv_header_stdc = yes; then
5340
5341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5342
5343 fi
5344
5345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5346 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5347                   inttypes.h stdint.h unistd.h
5348 do :
5349   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5351 "
5352 eval as_val=\$$as_ac_Header
5353    if test "x$as_val" = x""yes; then :
5354   cat >>confdefs.h <<_ACEOF
5355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5356 _ACEOF
5357
5358 fi
5359
5360 done
5361
5362
5363
5364   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5365 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5366   MINIX=yes
5367 else
5368   MINIX=
5369 fi
5370
5371
5372   if test "$MINIX" = yes; then
5373
5374 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5375
5376
5377 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5378
5379
5380 $as_echo "#define _MINIX 1" >>confdefs.h
5381
5382   fi
5383
5384
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5386 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5387 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h.  */
5392
5393 #         define __EXTENSIONS__ 1
5394           $ac_includes_default
5395 int
5396 main ()
5397 {
5398
5399   ;
5400   return 0;
5401 }
5402 _ACEOF
5403 if ac_fn_c_try_compile "$LINENO"; then :
5404   ac_cv_safe_to_define___extensions__=yes
5405 else
5406   ac_cv_safe_to_define___extensions__=no
5407 fi
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 fi
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5411 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5412   test $ac_cv_safe_to_define___extensions__ = yes &&
5413     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5414
5415   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5416
5417   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5418
5419   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5420
5421   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5422
5423
5424 ac_ext=c
5425 ac_cpp='$CPP $CPPFLAGS'
5426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5430 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5431 # On Suns, sometimes $CPP names a directory.
5432 if test -n "$CPP" && test -d "$CPP"; then
5433   CPP=
5434 fi
5435 if test -z "$CPP"; then
5436   if test "${ac_cv_prog_CPP+set}" = set; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439       # Double quotes because CPP needs to be expanded
5440     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5441     do
5442       ac_preproc_ok=false
5443 for ac_c_preproc_warn_flag in '' yes
5444 do
5445   # Use a header file that comes with gcc, so configuring glibc
5446   # with a fresh cross-compiler works.
5447   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5448   # <limits.h> exists even on freestanding compilers.
5449   # On the NeXT, cc -E runs the code through the compiler's parser,
5450   # not just through cpp. "Syntax error" is here to catch this case.
5451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h.  */
5453 #ifdef __STDC__
5454 # include <limits.h>
5455 #else
5456 # include <assert.h>
5457 #endif
5458                      Syntax error
5459 _ACEOF
5460 if ac_fn_c_try_cpp "$LINENO"; then :
5461
5462 else
5463   # Broken: fails on valid input.
5464 continue
5465 fi
5466 rm -f conftest.err conftest.$ac_ext
5467
5468   # OK, works on sane cases.  Now check whether nonexistent headers
5469   # can be detected and how.
5470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h.  */
5472 #include <ac_nonexistent.h>
5473 _ACEOF
5474 if ac_fn_c_try_cpp "$LINENO"; then :
5475   # Broken: success on invalid input.
5476 continue
5477 else
5478   # Passes both tests.
5479 ac_preproc_ok=:
5480 break
5481 fi
5482 rm -f conftest.err conftest.$ac_ext
5483
5484 done
5485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5486 rm -f conftest.err conftest.$ac_ext
5487 if $ac_preproc_ok; then :
5488   break
5489 fi
5490
5491     done
5492     ac_cv_prog_CPP=$CPP
5493
5494 fi
5495   CPP=$ac_cv_prog_CPP
5496 else
5497   ac_cv_prog_CPP=$CPP
5498 fi
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5500 $as_echo "$CPP" >&6; }
5501 ac_preproc_ok=false
5502 for ac_c_preproc_warn_flag in '' yes
5503 do
5504   # Use a header file that comes with gcc, so configuring glibc
5505   # with a fresh cross-compiler works.
5506   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5507   # <limits.h> exists even on freestanding compilers.
5508   # On the NeXT, cc -E runs the code through the compiler's parser,
5509   # not just through cpp. "Syntax error" is here to catch this case.
5510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h.  */
5512 #ifdef __STDC__
5513 # include <limits.h>
5514 #else
5515 # include <assert.h>
5516 #endif
5517                      Syntax error
5518 _ACEOF
5519 if ac_fn_c_try_cpp "$LINENO"; then :
5520
5521 else
5522   # Broken: fails on valid input.
5523 continue
5524 fi
5525 rm -f conftest.err conftest.$ac_ext
5526
5527   # OK, works on sane cases.  Now check whether nonexistent headers
5528   # can be detected and how.
5529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h.  */
5531 #include <ac_nonexistent.h>
5532 _ACEOF
5533 if ac_fn_c_try_cpp "$LINENO"; then :
5534   # Broken: success on invalid input.
5535 continue
5536 else
5537   # Passes both tests.
5538 ac_preproc_ok=:
5539 break
5540 fi
5541 rm -f conftest.err conftest.$ac_ext
5542
5543 done
5544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5545 rm -f conftest.err conftest.$ac_ext
5546 if $ac_preproc_ok; then :
5547
5548 else
5549   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5551 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5552 See \`config.log' for more details." "$LINENO" 5; }
5553 fi
5554
5555 ac_ext=c
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5562 $as_echo_n "checking for inline... " >&6; }
5563 if test "${ac_cv_c_inline+set}" = set; then :
5564   $as_echo_n "(cached) " >&6
5565 else
5566   ac_cv_c_inline=no
5567 for ac_kw in inline __inline__ __inline; do
5568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h.  */
5570 #ifndef __cplusplus
5571 typedef int foo_t;
5572 static $ac_kw foo_t static_foo () {return 0; }
5573 $ac_kw foo_t foo () {return 0; }
5574 #endif
5575
5576 _ACEOF
5577 if ac_fn_c_try_compile "$LINENO"; then :
5578   ac_cv_c_inline=$ac_kw
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581   test "$ac_cv_c_inline" != no && break
5582 done
5583
5584 fi
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5586 $as_echo "$ac_cv_c_inline" >&6; }
5587
5588 case $ac_cv_c_inline in
5589   inline | yes) ;;
5590   *)
5591     case $ac_cv_c_inline in
5592       no) ac_val=;;
5593       *) ac_val=$ac_cv_c_inline;;
5594     esac
5595     cat >>confdefs.h <<_ACEOF
5596 #ifndef __cplusplus
5597 #define inline $ac_val
5598 #endif
5599 _ACEOF
5600     ;;
5601 esac
5602
5603
5604 # Check whether --enable-largefile was given.
5605 if test "${enable_largefile+set}" = set; then :
5606   enableval=$enable_largefile;
5607 fi
5608
5609 if test "$enable_largefile" != no; then
5610
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5612 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5613 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5614   $as_echo_n "(cached) " >&6
5615 else
5616   ac_cv_sys_largefile_CC=no
5617      if test "$GCC" != yes; then
5618        ac_save_CC=$CC
5619        while :; do
5620          # IRIX 6.2 and later do not support large files by default,
5621          # so use the C compiler's -n32 option if that helps.
5622          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h.  */
5624 #include <sys/types.h>
5625  /* Check that off_t can represent 2**63 - 1 correctly.
5626     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5627     since some C++ compilers masquerading as C compilers
5628     incorrectly reject 9223372036854775807.  */
5629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5630   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5631                        && LARGE_OFF_T % 2147483647 == 1)
5632                       ? 1 : -1];
5633 int
5634 main ()
5635 {
5636
5637   ;
5638   return 0;
5639 }
5640 _ACEOF
5641          if ac_fn_c_try_compile "$LINENO"; then :
5642   break
5643 fi
5644 rm -f core conftest.err conftest.$ac_objext
5645          CC="$CC -n32"
5646          if ac_fn_c_try_compile "$LINENO"; then :
5647   ac_cv_sys_largefile_CC=' -n32'; break
5648 fi
5649 rm -f core conftest.err conftest.$ac_objext
5650          break
5651        done
5652        CC=$ac_save_CC
5653        rm -f conftest.$ac_ext
5654     fi
5655 fi
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5657 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5658   if test "$ac_cv_sys_largefile_CC" != no; then
5659     CC=$CC$ac_cv_sys_largefile_CC
5660   fi
5661
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5663 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5664 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5665   $as_echo_n "(cached) " >&6
5666 else
5667   while :; do
5668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h.  */
5670 #include <sys/types.h>
5671  /* Check that off_t can represent 2**63 - 1 correctly.
5672     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5673     since some C++ compilers masquerading as C compilers
5674     incorrectly reject 9223372036854775807.  */
5675 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5676   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5677                        && LARGE_OFF_T % 2147483647 == 1)
5678                       ? 1 : -1];
5679 int
5680 main ()
5681 {
5682
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"; then :
5688   ac_cv_sys_file_offset_bits=no; break
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h.  */
5693 #define _FILE_OFFSET_BITS 64
5694 #include <sys/types.h>
5695  /* Check that off_t can represent 2**63 - 1 correctly.
5696     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5697     since some C++ compilers masquerading as C compilers
5698     incorrectly reject 9223372036854775807.  */
5699 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5700   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5701                        && LARGE_OFF_T % 2147483647 == 1)
5702                       ? 1 : -1];
5703 int
5704 main ()
5705 {
5706
5707   ;
5708   return 0;
5709 }
5710 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712   ac_cv_sys_file_offset_bits=64; break
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715   ac_cv_sys_file_offset_bits=unknown
5716   break
5717 done
5718 fi
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5720 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5721 case $ac_cv_sys_file_offset_bits in #(
5722   no | unknown) ;;
5723   *)
5724 cat >>confdefs.h <<_ACEOF
5725 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5726 _ACEOF
5727 ;;
5728 esac
5729 rm -rf conftest*
5730   if test $ac_cv_sys_file_offset_bits = unknown; then
5731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5732 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5733 if test "${ac_cv_sys_large_files+set}" = set; then :
5734   $as_echo_n "(cached) " >&6
5735 else
5736   while :; do
5737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h.  */
5739 #include <sys/types.h>
5740  /* Check that off_t can represent 2**63 - 1 correctly.
5741     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5742     since some C++ compilers masquerading as C compilers
5743     incorrectly reject 9223372036854775807.  */
5744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5745   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5746                        && LARGE_OFF_T % 2147483647 == 1)
5747                       ? 1 : -1];
5748 int
5749 main ()
5750 {
5751
5752   ;
5753   return 0;
5754 }
5755 _ACEOF
5756 if ac_fn_c_try_compile "$LINENO"; then :
5757   ac_cv_sys_large_files=no; break
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h.  */
5762 #define _LARGE_FILES 1
5763 #include <sys/types.h>
5764  /* Check that off_t can represent 2**63 - 1 correctly.
5765     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5766     since some C++ compilers masquerading as C compilers
5767     incorrectly reject 9223372036854775807.  */
5768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5769   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5770                        && LARGE_OFF_T % 2147483647 == 1)
5771                       ? 1 : -1];
5772 int
5773 main ()
5774 {
5775
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781   ac_cv_sys_large_files=1; break
5782 fi
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784   ac_cv_sys_large_files=unknown
5785   break
5786 done
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5789 $as_echo "$ac_cv_sys_large_files" >&6; }
5790 case $ac_cv_sys_large_files in #(
5791   no | unknown) ;;
5792   *)
5793 cat >>confdefs.h <<_ACEOF
5794 #define _LARGE_FILES $ac_cv_sys_large_files
5795 _ACEOF
5796 ;;
5797 esac
5798 rm -rf conftest*
5799   fi
5800 fi
5801
5802
5803 # sizeof(char) is 1 by definition.
5804 # The cast to long int works around a bug in the HP C Compiler
5805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5807 # This bug is HP SR number 8606223364.
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5809 $as_echo_n "checking size of void *... " >&6; }
5810 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5814
5815 else
5816   if test "$ac_cv_type_void_p" = yes; then
5817      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5819 { as_fn_set_status 77
5820 as_fn_error "cannot compute sizeof (void *)
5821 See \`config.log' for more details." "$LINENO" 5; }; }
5822    else
5823      ac_cv_sizeof_void_p=0
5824    fi
5825 fi
5826
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5829 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5830
5831
5832
5833 cat >>confdefs.h <<_ACEOF
5834 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5835 _ACEOF
5836
5837
5838 # The cast to long int works around a bug in the HP C Compiler
5839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5841 # This bug is HP SR number 8606223364.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5843 $as_echo_n "checking size of short... " >&6; }
5844 if test "${ac_cv_sizeof_short+set}" = set; then :
5845   $as_echo_n "(cached) " >&6
5846 else
5847   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5848
5849 else
5850   if test "$ac_cv_type_short" = yes; then
5851      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 { as_fn_set_status 77
5854 as_fn_error "cannot compute sizeof (short)
5855 See \`config.log' for more details." "$LINENO" 5; }; }
5856    else
5857      ac_cv_sizeof_short=0
5858    fi
5859 fi
5860
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5863 $as_echo "$ac_cv_sizeof_short" >&6; }
5864
5865
5866
5867 cat >>confdefs.h <<_ACEOF
5868 #define SIZEOF_SHORT $ac_cv_sizeof_short
5869 _ACEOF
5870
5871
5872 # The cast to long int works around a bug in the HP C Compiler
5873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5875 # This bug is HP SR number 8606223364.
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5877 $as_echo_n "checking size of int... " >&6; }
5878 if test "${ac_cv_sizeof_int+set}" = set; then :
5879   $as_echo_n "(cached) " >&6
5880 else
5881   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5882
5883 else
5884   if test "$ac_cv_type_int" = yes; then
5885      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5887 { as_fn_set_status 77
5888 as_fn_error "cannot compute sizeof (int)
5889 See \`config.log' for more details." "$LINENO" 5; }; }
5890    else
5891      ac_cv_sizeof_int=0
5892    fi
5893 fi
5894
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5897 $as_echo "$ac_cv_sizeof_int" >&6; }
5898
5899
5900
5901 cat >>confdefs.h <<_ACEOF
5902 #define SIZEOF_INT $ac_cv_sizeof_int
5903 _ACEOF
5904
5905
5906 # The cast to long int works around a bug in the HP C Compiler
5907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5909 # This bug is HP SR number 8606223364.
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5911 $as_echo_n "checking size of long... " >&6; }
5912 if test "${ac_cv_sizeof_long+set}" = set; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5916
5917 else
5918   if test "$ac_cv_type_long" = yes; then
5919      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5921 { as_fn_set_status 77
5922 as_fn_error "cannot compute sizeof (long)
5923 See \`config.log' for more details." "$LINENO" 5; }; }
5924    else
5925      ac_cv_sizeof_long=0
5926    fi
5927 fi
5928
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5931 $as_echo "$ac_cv_sizeof_long" >&6; }
5932
5933
5934
5935 cat >>confdefs.h <<_ACEOF
5936 #define SIZEOF_LONG $ac_cv_sizeof_long
5937 _ACEOF
5938
5939
5940 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5941 if test "x$ac_cv_type_long_long" = x""yes; then :
5942
5943 cat >>confdefs.h <<_ACEOF
5944 #define HAVE_LONG_LONG 1
5945 _ACEOF
5946
5947 # The cast to long int works around a bug in the HP C Compiler
5948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5950 # This bug is HP SR number 8606223364.
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5952 $as_echo_n "checking size of long long... " >&6; }
5953 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5957
5958 else
5959   if test "$ac_cv_type_long_long" = yes; then
5960      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5962 { as_fn_set_status 77
5963 as_fn_error "cannot compute sizeof (long long)
5964 See \`config.log' for more details." "$LINENO" 5; }; }
5965    else
5966      ac_cv_sizeof_long_long=0
5967    fi
5968 fi
5969
5970 fi
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5972 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5973
5974
5975
5976 cat >>confdefs.h <<_ACEOF
5977 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5978 _ACEOF
5979
5980
5981 fi
5982
5983 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5984 if test "x$ac_cv_type___int64" = x""yes; then :
5985
5986 cat >>confdefs.h <<_ACEOF
5987 #define HAVE___INT64 1
5988 _ACEOF
5989
5990 # The cast to long int works around a bug in the HP C Compiler
5991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5993 # This bug is HP SR number 8606223364.
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5995 $as_echo_n "checking size of __int64... " >&6; }
5996 if test "${ac_cv_sizeof___int64+set}" = set; then :
5997   $as_echo_n "(cached) " >&6
5998 else
5999   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
6000
6001 else
6002   if test "$ac_cv_type___int64" = yes; then
6003      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005 { as_fn_set_status 77
6006 as_fn_error "cannot compute sizeof (__int64)
6007 See \`config.log' for more details." "$LINENO" 5; }; }
6008    else
6009      ac_cv_sizeof___int64=0
6010    fi
6011 fi
6012
6013 fi
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6015 $as_echo "$ac_cv_sizeof___int64" >&6; }
6016
6017
6018
6019 cat >>confdefs.h <<_ACEOF
6020 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6021 _ACEOF
6022
6023
6024 fi
6025
6026 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6027 case $ac_cv_c_int8_t in #(
6028   no|yes) ;; #(
6029   *)
6030
6031 cat >>confdefs.h <<_ACEOF
6032 #define int8_t $ac_cv_c_int8_t
6033 _ACEOF
6034 ;;
6035 esac
6036
6037 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6038 case $ac_cv_c_int16_t in #(
6039   no|yes) ;; #(
6040   *)
6041
6042 cat >>confdefs.h <<_ACEOF
6043 #define int16_t $ac_cv_c_int16_t
6044 _ACEOF
6045 ;;
6046 esac
6047
6048 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6049 case $ac_cv_c_int32_t in #(
6050   no|yes) ;; #(
6051   *)
6052
6053 cat >>confdefs.h <<_ACEOF
6054 #define int32_t $ac_cv_c_int32_t
6055 _ACEOF
6056 ;;
6057 esac
6058
6059 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6060 case $ac_cv_c_int64_t in #(
6061   no|yes) ;; #(
6062   *)
6063
6064 cat >>confdefs.h <<_ACEOF
6065 #define int64_t $ac_cv_c_int64_t
6066 _ACEOF
6067 ;;
6068 esac
6069
6070
6071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6072 $as_echo_n "checking for long long int... " >&6; }
6073 if test "${ac_cv_type_long_long_int+set}" = set; then :
6074   $as_echo_n "(cached) " >&6
6075 else
6076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h.  */
6078
6079   /* For now, do not test the preprocessor; as of 2007 there are too many
6080          implementations with broken preprocessors.  Perhaps this can
6081          be revisited in 2012.  In the meantime, code should not expect
6082          #if to work with literals wider than 32 bits.  */
6083       /* Test literals.  */
6084       long long int ll = 9223372036854775807ll;
6085       long long int nll = -9223372036854775807LL;
6086       unsigned long long int ull = 18446744073709551615ULL;
6087       /* Test constant expressions.   */
6088       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6089                      ? 1 : -1)];
6090       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6091                      ? 1 : -1)];
6092       int i = 63;
6093 int
6094 main ()
6095 {
6096 /* Test availability of runtime routines for shift and division.  */
6097       long long int llmax = 9223372036854775807ll;
6098       unsigned long long int ullmax = 18446744073709551615ull;
6099       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6100               | (llmax / ll) | (llmax % ll)
6101               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6102               | (ullmax / ull) | (ullmax % ull));
6103   ;
6104   return 0;
6105 }
6106
6107 _ACEOF
6108 if ac_fn_c_try_link "$LINENO"; then :
6109                         if test "$cross_compiling" = yes; then :
6110   ac_cv_type_long_long_int=yes
6111 else
6112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h.  */
6114 #include <limits.h>
6115                #ifndef LLONG_MAX
6116                # define HALF \
6117                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6118                # define LLONG_MAX (HALF - 1 + HALF)
6119                #endif
6120 int
6121 main ()
6122 {
6123 long long int n = 1;
6124                int i;
6125                for (i = 0; ; i++)
6126                  {
6127                    long long int m = n << i;
6128                    if (m >> i != n)
6129                      return 1;
6130                    if (LLONG_MAX / 2 < m)
6131                      break;
6132                  }
6133                return 0;
6134   ;
6135   return 0;
6136 }
6137 _ACEOF
6138 if ac_fn_c_try_run "$LINENO"; then :
6139   ac_cv_type_long_long_int=yes
6140 else
6141   ac_cv_type_long_long_int=no
6142 fi
6143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6144   conftest.$ac_objext conftest.beam conftest.$ac_ext
6145 fi
6146
6147 else
6148   ac_cv_type_long_long_int=no
6149 fi
6150 rm -f core conftest.err conftest.$ac_objext \
6151     conftest$ac_exeext conftest.$ac_ext
6152 fi
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6154 $as_echo "$ac_cv_type_long_long_int" >&6; }
6155   if test $ac_cv_type_long_long_int = yes; then
6156
6157 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6158
6159   fi
6160
6161
6162
6163   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6164 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6165
6166 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6167
6168 else
6169   test $ac_cv_type_long_long_int = yes \
6170        && ac_type='long long int' \
6171        || ac_type='long int'
6172
6173 cat >>confdefs.h <<_ACEOF
6174 #define intmax_t $ac_type
6175 _ACEOF
6176
6177 fi
6178
6179
6180
6181   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6182 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6183
6184 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6185
6186 else
6187   for ac_type in 'int' 'long int' 'long long int'; do
6188        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h.  */
6190 $ac_includes_default
6191 int
6192 main ()
6193 {
6194 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6195 test_array [0] = 0
6196
6197   ;
6198   return 0;
6199 }
6200 _ACEOF
6201 if ac_fn_c_try_compile "$LINENO"; then :
6202
6203 cat >>confdefs.h <<_ACEOF
6204 #define intptr_t $ac_type
6205 _ACEOF
6206
6207           ac_type=
6208 fi
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210        test -z "$ac_type" && break
6211      done
6212 fi
6213
6214
6215 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6216 case $ac_cv_c_uint8_t in #(
6217   no|yes) ;; #(
6218   *)
6219
6220 $as_echo "#define _UINT8_T 1" >>confdefs.h
6221
6222
6223 cat >>confdefs.h <<_ACEOF
6224 #define uint8_t $ac_cv_c_uint8_t
6225 _ACEOF
6226 ;;
6227   esac
6228
6229 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6230 case $ac_cv_c_uint16_t in #(
6231   no|yes) ;; #(
6232   *)
6233
6234
6235 cat >>confdefs.h <<_ACEOF
6236 #define uint16_t $ac_cv_c_uint16_t
6237 _ACEOF
6238 ;;
6239   esac
6240
6241 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6242 case $ac_cv_c_uint32_t in #(
6243   no|yes) ;; #(
6244   *)
6245
6246 $as_echo "#define _UINT32_T 1" >>confdefs.h
6247
6248
6249 cat >>confdefs.h <<_ACEOF
6250 #define uint32_t $ac_cv_c_uint32_t
6251 _ACEOF
6252 ;;
6253   esac
6254
6255 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6256 case $ac_cv_c_uint64_t in #(
6257   no|yes) ;; #(
6258   *)
6259
6260 $as_echo "#define _UINT64_T 1" >>confdefs.h
6261
6262
6263 cat >>confdefs.h <<_ACEOF
6264 #define uint64_t $ac_cv_c_uint64_t
6265 _ACEOF
6266 ;;
6267   esac
6268
6269
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6271 $as_echo_n "checking for unsigned long long int... " >&6; }
6272 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6273   $as_echo_n "(cached) " >&6
6274 else
6275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h.  */
6277
6278   /* For now, do not test the preprocessor; as of 2007 there are too many
6279          implementations with broken preprocessors.  Perhaps this can
6280          be revisited in 2012.  In the meantime, code should not expect
6281          #if to work with literals wider than 32 bits.  */
6282       /* Test literals.  */
6283       long long int ll = 9223372036854775807ll;
6284       long long int nll = -9223372036854775807LL;
6285       unsigned long long int ull = 18446744073709551615ULL;
6286       /* Test constant expressions.   */
6287       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6288                      ? 1 : -1)];
6289       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6290                      ? 1 : -1)];
6291       int i = 63;
6292 int
6293 main ()
6294 {
6295 /* Test availability of runtime routines for shift and division.  */
6296       long long int llmax = 9223372036854775807ll;
6297       unsigned long long int ullmax = 18446744073709551615ull;
6298       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6299               | (llmax / ll) | (llmax % ll)
6300               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6301               | (ullmax / ull) | (ullmax % ull));
6302   ;
6303   return 0;
6304 }
6305
6306 _ACEOF
6307 if ac_fn_c_try_link "$LINENO"; then :
6308   ac_cv_type_unsigned_long_long_int=yes
6309 else
6310   ac_cv_type_unsigned_long_long_int=no
6311 fi
6312 rm -f core conftest.err conftest.$ac_objext \
6313     conftest$ac_exeext conftest.$ac_ext
6314 fi
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6316 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6317   if test $ac_cv_type_unsigned_long_long_int = yes; then
6318
6319 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6320
6321   fi
6322
6323
6324
6325   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6326 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6327
6328 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6329
6330 else
6331   test $ac_cv_type_unsigned_long_long_int = yes \
6332        && ac_type='unsigned long long int' \
6333        || ac_type='unsigned long int'
6334
6335 cat >>confdefs.h <<_ACEOF
6336 #define uintmax_t $ac_type
6337 _ACEOF
6338
6339 fi
6340
6341
6342
6343   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6344 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6345
6346 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6347
6348 else
6349   for ac_type in 'unsigned int' 'unsigned long int' \
6350         'unsigned long long int'; do
6351        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h.  */
6353 $ac_includes_default
6354 int
6355 main ()
6356 {
6357 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6358 test_array [0] = 0
6359
6360   ;
6361   return 0;
6362 }
6363 _ACEOF
6364 if ac_fn_c_try_compile "$LINENO"; then :
6365
6366 cat >>confdefs.h <<_ACEOF
6367 #define uintptr_t $ac_type
6368 _ACEOF
6369
6370           ac_type=
6371 fi
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373        test -z "$ac_type" && break
6374      done
6375 fi
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391 # ---------------------
6392 # Warnings and checking
6393 # ---------------------
6394
6395 # Check $CC warning features (if it's GCC).
6396 # We want to use -pedantic, but we don't want warnings about
6397 # * 'long long'
6398 # * variadic macros
6399 # * overlong strings
6400 # So, we only use -pedantic if we can disable those warnings.
6401
6402 loose_warn=
6403 save_CFLAGS="$CFLAGS"
6404 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6405   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6406
6407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6408 $as_echo_n "checking whether $CC supports $option... " >&6; }
6409 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6410   $as_echo_n "(cached) " >&6
6411 else
6412   CFLAGS="$option"
6413     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h.  */
6415
6416 int
6417 main ()
6418 {
6419
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 if ac_fn_c_try_compile "$LINENO"; then :
6425   eval "$as_acx_Woption=yes"
6426 else
6427   eval "$as_acx_Woption=no"
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430
6431 fi
6432 eval ac_res=\$$as_acx_Woption
6433                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6434 $as_echo "$ac_res" >&6; }
6435   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6436   loose_warn="$loose_warn${loose_warn:+ }$option"
6437 fi
6438   done
6439 CFLAGS="$save_CFLAGS"
6440
6441 c_loose_warn=
6442 save_CFLAGS="$CFLAGS"
6443 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6444   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6445
6446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6447 $as_echo_n "checking whether $CC supports $option... " >&6; }
6448 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6449   $as_echo_n "(cached) " >&6
6450 else
6451   CFLAGS="$option"
6452     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h.  */
6454
6455 int
6456 main ()
6457 {
6458
6459   ;
6460   return 0;
6461 }
6462 _ACEOF
6463 if ac_fn_c_try_compile "$LINENO"; then :
6464   eval "$as_acx_Woption=yes"
6465 else
6466   eval "$as_acx_Woption=no"
6467 fi
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469
6470 fi
6471 eval ac_res=\$$as_acx_Woption
6472                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6473 $as_echo "$ac_res" >&6; }
6474   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6475   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6476 fi
6477   done
6478 CFLAGS="$save_CFLAGS"
6479
6480 strict_warn=
6481 save_CFLAGS="$CFLAGS"
6482 for option in -Wmissing-format-attribute; do
6483   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6484
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6486 $as_echo_n "checking whether $CC supports $option... " >&6; }
6487 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6488   $as_echo_n "(cached) " >&6
6489 else
6490   CFLAGS="$option"
6491     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h.  */
6493
6494 int
6495 main ()
6496 {
6497
6498   ;
6499   return 0;
6500 }
6501 _ACEOF
6502 if ac_fn_c_try_compile "$LINENO"; then :
6503   eval "$as_acx_Woption=yes"
6504 else
6505   eval "$as_acx_Woption=no"
6506 fi
6507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508
6509 fi
6510 eval ac_res=\$$as_acx_Woption
6511                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6512 $as_echo "$ac_res" >&6; }
6513   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6514   strict_warn="$strict_warn${strict_warn:+ }$option"
6515 fi
6516   done
6517 CFLAGS="$save_CFLAGS"
6518
6519 c_strict_warn=
6520 save_CFLAGS="$CFLAGS"
6521 for option in -Wold-style-definition -Wc++-compat; do
6522   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6523
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6525 $as_echo_n "checking whether $CC supports $option... " >&6; }
6526 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6527   $as_echo_n "(cached) " >&6
6528 else
6529   CFLAGS="$option"
6530     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h.  */
6532
6533 int
6534 main ()
6535 {
6536
6537   ;
6538   return 0;
6539 }
6540 _ACEOF
6541 if ac_fn_c_try_compile "$LINENO"; then :
6542   eval "$as_acx_Woption=yes"
6543 else
6544   eval "$as_acx_Woption=no"
6545 fi
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547
6548 fi
6549 eval ac_res=\$$as_acx_Woption
6550                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6551 $as_echo "$ac_res" >&6; }
6552   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6553   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6554 fi
6555   done
6556 CFLAGS="$save_CFLAGS"
6557
6558 if test "$GCC" = yes; then :
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6560 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6561 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6562   $as_echo_n "(cached) " >&6
6563 else
6564   save_CFLAGS="$CFLAGS"
6565 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h.  */
6568
6569 int
6570 main ()
6571 {
6572
6573   ;
6574   return 0;
6575 }
6576 _ACEOF
6577 if ac_fn_c_try_compile "$LINENO"; then :
6578   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6579 else
6580   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6581 fi
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 CFLAGS="$save_CFLAGS"
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6586 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6587 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6588   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6589 fi
6590
6591 fi
6592
6593 # Check whether --enable-werror-always was given.
6594 if test "${enable_werror_always+set}" = set; then :
6595   enableval=$enable_werror_always;
6596 else
6597   enable_werror_always=no
6598 fi
6599
6600 if test $enable_werror_always = yes; then :
6601   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6602 fi
6603
6604
6605
6606 # The above macros do nothing if the compiler is not GCC.  However, the
6607 # Makefile has more goo to add other flags, so these variables are used
6608 # to enable warnings only for GCC.
6609 warn_cflags=
6610 warn_cxxflags=
6611 if test "x$GCC" = "xyes"; then
6612   warn_cflags='$(GCC_WARN_CFLAGS)'
6613   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6614 fi
6615
6616
6617
6618 # Enable expensive internal checks
6619 is_release=
6620 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6621   is_release=yes
6622 fi
6623
6624 # Check whether --enable-checking was given.
6625 if test "${enable_checking+set}" = set; then :
6626   enableval=$enable_checking; ac_checking_flags="${enableval}"
6627 else
6628
6629 # Determine the default checks.
6630 if test x$is_release = x ; then
6631   ac_checking_flags=yes
6632 else
6633   ac_checking_flags=release
6634 fi
6635 fi
6636
6637 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6638 for check in release $ac_checking_flags
6639 do
6640         case $check in
6641         # these set all the flags to specific states
6642         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6643                         ac_fold_checking= ; ac_gc_checking=1 ;
6644                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6645                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6646                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6647                         ac_types_checking=1 ;;
6648         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6649                         ac_fold_checking= ; ac_gc_checking= ;
6650                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6651                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6652                         ac_tree_checking= ; ac_valgrind_checking= ;
6653                         ac_types_checking= ;;
6654         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6655                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6656                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6657                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6658                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6659                         ac_types_checking=1 ;;
6660         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6661                         ac_fold_checking= ; ac_gc_checking= ;
6662                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6663                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6664                         ac_tree_checking= ; ac_valgrind_checking= ;
6665                         ac_types_checking= ;;
6666         # these enable particular checks
6667         assert)         ac_assert_checking=1 ;;
6668         df)             ac_df_checking=1 ;;
6669         fold)           ac_fold_checking=1 ;;
6670         gc)             ac_gc_checking=1 ;;
6671         gcac)           ac_gc_always_collect=1 ;;
6672         gimple)         ac_gimple_checking=1 ;;
6673         misc)           ac_checking=1 ;;
6674         rtl)            ac_rtl_checking=1 ;;
6675         rtlflag)        ac_rtlflag_checking=1 ;;
6676         runtime)        ac_runtime_checking=1 ;;
6677         tree)           ac_tree_checking=1 ;;
6678         types)          ac_types_checking=1 ;;
6679         valgrind)       ac_valgrind_checking=1 ;;
6680         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6681         esac
6682 done
6683 IFS="$ac_save_IFS"
6684
6685 nocommon_flag=""
6686 if test x$ac_checking != x ; then
6687
6688 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6689
6690   nocommon_flag=-fno-common
6691 fi
6692
6693 if test x$ac_df_checking != x ; then
6694
6695 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6696
6697 fi
6698 if test x$ac_assert_checking != x ; then
6699
6700 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6701
6702 fi
6703 if test x$ac_gimple_checking != x ; then
6704
6705 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6706
6707 fi
6708
6709 if test x$ac_runtime_checking != x ; then
6710
6711 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6712
6713 fi
6714 if test x$ac_tree_checking != x ; then
6715
6716 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6717
6718   TREEBROWSER=tree-browser.o
6719 fi
6720 if test x$ac_types_checking != x ; then
6721
6722 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6723
6724 fi
6725
6726 if test x$ac_rtl_checking != x ; then
6727
6728 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6729
6730 fi
6731 if test x$ac_rtlflag_checking != x ; then
6732
6733 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6734
6735 fi
6736 if test x$ac_gc_checking != x ; then
6737
6738 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6739
6740 fi
6741 if test x$ac_gc_always_collect != x ; then
6742
6743 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6744
6745 fi
6746 if test x$ac_fold_checking != x ; then
6747
6748 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6749
6750 fi
6751 valgrind_path_defines=
6752 valgrind_command=
6753
6754 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6755 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6756   have_valgrind_h=yes
6757 else
6758   have_valgrind_h=no
6759 fi
6760
6761
6762
6763 if test x$ac_valgrind_checking != x ; then
6764   # It is certainly possible that there's valgrind but no valgrind.h.
6765   # GCC relies on making annotations so we must have both.
6766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6767 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h.  */
6770 #include <valgrind/memcheck.h>
6771 #ifndef VALGRIND_DISCARD
6772 #error VALGRIND_DISCARD not defined
6773 #endif
6774 _ACEOF
6775 if ac_fn_c_try_cpp "$LINENO"; then :
6776   gcc_cv_header_valgrind_memcheck_h=yes
6777 else
6778   gcc_cv_header_valgrind_memcheck_h=no
6779 fi
6780 rm -f conftest.err conftest.$ac_ext
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6782 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6784 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h.  */
6787 #include <memcheck.h>
6788 #ifndef VALGRIND_DISCARD
6789 #error VALGRIND_DISCARD not defined
6790 #endif
6791 _ACEOF
6792 if ac_fn_c_try_cpp "$LINENO"; then :
6793   gcc_cv_header_memcheck_h=yes
6794 else
6795   gcc_cv_header_memcheck_h=no
6796 fi
6797 rm -f conftest.err conftest.$ac_ext
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6799 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6800
6801 # Prepare PATH_SEPARATOR.
6802 # The user is always right.
6803 if test "${PATH_SEPARATOR+set}" != set; then
6804   echo "#! /bin/sh" >conf$$.sh
6805   echo  "exit 0"   >>conf$$.sh
6806   chmod +x conf$$.sh
6807   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6808     PATH_SEPARATOR=';'
6809   else
6810     PATH_SEPARATOR=:
6811   fi
6812   rm -f conf$$.sh
6813 fi
6814
6815 # Find out how to test for executable files. Don't use a zero-byte file,
6816 # as systems may use methods other than mode bits to determine executability.
6817 cat >conf$$.file <<_ASEOF
6818 #! /bin/sh
6819 exit 0
6820 _ASEOF
6821 chmod +x conf$$.file
6822 if test -x conf$$.file >/dev/null 2>&1; then
6823   ac_executable_p="test -x"
6824 else
6825   ac_executable_p="test -f"
6826 fi
6827 rm -f conf$$.file
6828
6829 # Extract the first word of "valgrind", so it can be a program name with args.
6830 set dummy valgrind; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6834   $as_echo_n "(cached) " >&6
6835 else
6836   case "$valgrind_path" in
6837   [\\/]* | ?:[\\/]*)
6838     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6839     ;;
6840   *)
6841     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6842     for ac_dir in $PATH; do
6843       IFS="$ac_save_IFS"
6844       test -z "$ac_dir" && ac_dir=.
6845       for ac_exec_ext in '' $ac_executable_extensions; do
6846         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6847           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6848             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6849             break 2
6850           fi
6851         fi
6852       done
6853     done
6854     IFS="$ac_save_IFS"
6855     ;;
6856 esac
6857 fi
6858 valgrind_path="$ac_cv_path_valgrind_path"
6859 if test -n "$valgrind_path"; then
6860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6861 $as_echo "$valgrind_path" >&6; }
6862 else
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866
6867   if test "x$valgrind_path" = "x" \
6868     || (test $have_valgrind_h = no \
6869         && test $gcc_cv_header_memcheck_h = no \
6870         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6871         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6872   fi
6873   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6874   valgrind_command="$valgrind_path -q"
6875
6876 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6877
6878   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6879
6880 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6881
6882   fi
6883   if test $gcc_cv_header_memcheck_h = yes; then
6884
6885 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6886
6887   fi
6888 fi
6889
6890
6891
6892 # Enable code coverage collection
6893 # Check whether --enable-coverage was given.
6894 if test "${enable_coverage+set}" = set; then :
6895   enableval=$enable_coverage; case "${enableval}" in
6896   yes|noopt)
6897     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6898     ;;
6899   opt)
6900     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6901     ;;
6902   no)
6903     # a.k.a. --disable-coverage
6904     coverage_flags=""
6905     ;;
6906   *)
6907     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6908     ;;
6909 esac
6910 else
6911   coverage_flags=""
6912 fi
6913
6914
6915
6916 # Check whether --enable-gather-detailed-mem-stats was given.
6917 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6918   enableval=$enable_gather_detailed_mem_stats;
6919 else
6920   enable_gather_detailed_mem_stats=no
6921 fi
6922
6923 if test x$enable_gather_detailed_mem_stats = xyes ; then
6924
6925 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6926
6927 fi
6928
6929 # -------------------------------
6930 # Miscenalleous configure options
6931 # -------------------------------
6932
6933 # See if we are building gcc with C++.
6934 # Check whether --enable-build-with-cxx was given.
6935 if test "${enable_build_with_cxx+set}" = set; then :
6936   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6937 else
6938   ENABLE_BUILD_WITH_CXX=no
6939 fi
6940
6941
6942 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6943
6944 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6945
6946 fi
6947
6948 # With stabs
6949
6950 # Check whether --with-stabs was given.
6951 if test "${with_stabs+set}" = set; then :
6952   withval=$with_stabs; stabs="$with_stabs"
6953 else
6954   stabs=no
6955 fi
6956
6957
6958 # Determine whether or not multilibs are enabled.
6959 # Check whether --enable-multilib was given.
6960 if test "${enable_multilib+set}" = set; then :
6961   enableval=$enable_multilib;
6962 else
6963   enable_multilib=yes
6964 fi
6965
6966
6967
6968 # Enable __cxa_atexit for C++.
6969 # Check whether --enable-__cxa_atexit was given.
6970 if test "${enable___cxa_atexit+set}" = set; then :
6971   enableval=$enable___cxa_atexit;
6972 fi
6973
6974
6975 # Enable C extension for decimal float if target supports it.
6976
6977 # Check whether --enable-decimal-float was given.
6978 if test "${enable_decimal_float+set}" = set; then :
6979   enableval=$enable_decimal_float;
6980   case $enable_decimal_float in
6981     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6982     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6983 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6984   esac
6985
6986 else
6987
6988   case $target in
6989     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6990     i?86*-*-mingw* | x86_64*-*-mingw* | \
6991     i?86*-*-cygwin*)
6992       enable_decimal_float=yes
6993       ;;
6994     *)
6995       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6996 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6997       enable_decimal_float=no
6998       ;;
6999   esac
7000
7001 fi
7002
7003
7004 # x86's use BID format instead of DPD
7005 case x$enable_decimal_float in
7006   xyes)
7007     case $target in
7008       i?86*-*-* | x86_64*-*-*)
7009         enable_decimal_float=bid
7010         ;;
7011       *)
7012         enable_decimal_float=dpd
7013         ;;
7014     esac
7015     default_decimal_float=$enable_decimal_float
7016     ;;
7017   xno)
7018     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7019     # dependency on libdecnumber.
7020     default_decimal_float=dpd
7021     ;;
7022 esac
7023
7024
7025
7026
7027 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7028
7029 cat >>confdefs.h <<_ACEOF
7030 #define ENABLE_DECIMAL_FLOAT $dfp
7031 _ACEOF
7032
7033
7034 # Use default_decimal_float for dependency.
7035 enable_decimal_float=$default_decimal_float
7036
7037 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7038
7039 cat >>confdefs.h <<_ACEOF
7040 #define ENABLE_DECIMAL_BID_FORMAT $bid
7041 _ACEOF
7042
7043
7044 # Enable C extension for fixed-point arithmetic.
7045 # Check whether --enable-fixed-point was given.
7046 if test "${enable_fixed_point+set}" = set; then :
7047   enableval=$enable_fixed_point;
7048 else
7049
7050   case $target in
7051     arm*)
7052       enable_fixed_point=yes
7053       ;;
7054
7055     mips*-*-*)
7056       case $host in
7057         mips*-sgi-irix*)
7058           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7059 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7060           enable_fixed_point=no
7061           ;;
7062         *)
7063           enable_fixed_point=yes
7064           ;;
7065       esac
7066       ;;
7067     *)
7068       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7069 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7070       enable_fixed_point=no
7071       ;;
7072   esac
7073
7074 fi
7075
7076
7077
7078 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7079
7080 cat >>confdefs.h <<_ACEOF
7081 #define ENABLE_FIXED_POINT $fixedpoint
7082 _ACEOF
7083
7084
7085 # Enable threads
7086 # Pass with no value to take the default
7087 # Pass with a value to specify a thread package
7088 # Check whether --enable-threads was given.
7089 if test "${enable_threads+set}" = set; then :
7090   enableval=$enable_threads;
7091 else
7092   enable_threads=''
7093 fi
7094
7095
7096 # Check whether --enable-tls was given.
7097 if test "${enable_tls+set}" = set; then :
7098   enableval=$enable_tls;
7099   case $enable_tls in
7100     yes | no) ;;
7101     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7102 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7103   esac
7104
7105 else
7106   enable_tls=''
7107 fi
7108
7109
7110 # Check whether --enable-objc-gc was given.
7111 if test "${enable_objc_gc+set}" = set; then :
7112   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7113         objc_boehm_gc=''
7114 else
7115         objc_boehm_gc=1
7116 fi
7117 else
7118   objc_boehm_gc=''
7119 fi
7120
7121
7122
7123 # Check whether --with-dwarf2 was given.
7124 if test "${with_dwarf2+set}" = set; then :
7125   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7126 else
7127   dwarf2=no
7128 fi
7129
7130
7131 # Check whether --enable-shared was given.
7132 if test "${enable_shared+set}" = set; then :
7133   enableval=$enable_shared;
7134   case $enable_shared in
7135   yes | no) ;;
7136   *)
7137     enable_shared=no
7138     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7139     for pkg in $enableval; do
7140       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7141         enable_shared=yes
7142       fi
7143     done
7144     IFS="$ac_save_ifs"
7145     ;;
7146   esac
7147
7148 else
7149   enable_shared=yes
7150 fi
7151
7152
7153
7154
7155 # Check whether --with-build-sysroot was given.
7156 if test "${with_build_sysroot+set}" = set; then :
7157   withval=$with_build_sysroot; if test x"$withval" != x ; then
7158      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7159    fi
7160 else
7161   SYSROOT_CFLAGS_FOR_TARGET=
7162 fi
7163
7164
7165
7166
7167 # Check whether --with-sysroot was given.
7168 if test "${with_sysroot+set}" = set; then :
7169   withval=$with_sysroot;
7170  case ${with_sysroot} in
7171  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7172  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7173  esac
7174
7175  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7176  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7177
7178  if test "x$prefix" = xNONE; then
7179   test_prefix=/usr/local
7180  else
7181   test_prefix=$prefix
7182  fi
7183  if test "x$exec_prefix" = xNONE; then
7184   test_exec_prefix=$test_prefix
7185  else
7186   test_exec_prefix=$exec_prefix
7187  fi
7188  case ${TARGET_SYSTEM_ROOT} in
7189  "${test_prefix}"|"${test_prefix}/"*|\
7190  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7191  '${prefix}'|'${prefix}/'*|\
7192  '${exec_prefix}'|'${exec_prefix}/'*)
7193    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7194    TARGET_SYSTEM_ROOT_DEFINE="$t"
7195    ;;
7196  esac
7197
7198 else
7199
7200  TARGET_SYSTEM_ROOT=
7201  TARGET_SYSTEM_ROOT_DEFINE=
7202  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7203
7204 fi
7205
7206
7207
7208
7209
7210
7211 # Check whether --with-specs was given.
7212 if test "${with_specs+set}" = set; then :
7213   withval=$with_specs; CONFIGURE_SPECS=$withval
7214 else
7215   CONFIGURE_SPECS=
7216
7217 fi
7218
7219
7220
7221
7222
7223 # Check whether --with-pkgversion was given.
7224 if test "${with_pkgversion+set}" = set; then :
7225   withval=$with_pkgversion; case "$withval" in
7226       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7227       no)  PKGVERSION= ;;
7228       *)   PKGVERSION="($withval) " ;;
7229      esac
7230 else
7231   PKGVERSION="(GCC) "
7232
7233 fi
7234
7235
7236
7237
7238
7239 # Check whether --with-bugurl was given.
7240 if test "${with_bugurl+set}" = set; then :
7241   withval=$with_bugurl; case "$withval" in
7242       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7243       no)  BUGURL=
7244            ;;
7245       *)   BUGURL="$withval"
7246            ;;
7247      esac
7248 else
7249   BUGURL="http://gcc.gnu.org/bugs.html"
7250
7251 fi
7252
7253   case ${BUGURL} in
7254   "")
7255     REPORT_BUGS_TO=
7256     REPORT_BUGS_TEXI=
7257     ;;
7258   *)
7259     REPORT_BUGS_TO="<$BUGURL>"
7260     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7261     ;;
7262   esac;
7263
7264
7265
7266
7267 # Sanity check enable_languages in case someone does not run the toplevel
7268 # configure # script.
7269 # Check whether --enable-languages was given.
7270 if test "${enable_languages+set}" = set; then :
7271   enableval=$enable_languages; case ,${enable_languages}, in
7272        ,,|,yes,)
7273                 # go safe -- we cannot be much sure without the toplevel
7274                 # configure's
7275                 # analysis of which target libs are present and usable
7276                 enable_languages=c
7277                 ;;
7278          *,all,*)
7279                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7280                 ;;
7281         *,c,*)
7282                 ;;
7283         *)
7284                 enable_languages=c,${enable_languages}
7285                 ;;
7286 esac
7287 else
7288   enable_languages=c
7289 fi
7290
7291
7292
7293 # Check whether --with-multilib-list was given.
7294 if test "${with_multilib_list+set}" = set; then :
7295   withval=$with_multilib_list; :
7296 else
7297   with_multilib_list=default
7298 fi
7299
7300
7301 # -------------------------
7302 # Checks for other programs
7303 # -------------------------
7304
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7306 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7307 set x ${MAKE-make}
7308 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7309 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   cat >conftest.make <<\_ACEOF
7313 SHELL = /bin/sh
7314 all:
7315         @echo '@@@%%%=$(MAKE)=@@@%%%'
7316 _ACEOF
7317 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7319   *@@@%%%=?*=@@@%%%*)
7320     eval ac_cv_prog_make_${ac_make}_set=yes;;
7321   *)
7322     eval ac_cv_prog_make_${ac_make}_set=no;;
7323 esac
7324 rm -f conftest.make
7325 fi
7326 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7328 $as_echo "yes" >&6; }
7329   SET_MAKE=
7330 else
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333   SET_MAKE="MAKE=${MAKE-make}"
7334 fi
7335
7336
7337 # Find some useful tools
7338 for ac_prog in gawk mawk nawk awk
7339 do
7340   # Extract the first word of "$ac_prog", so it can be a program name with args.
7341 set dummy $ac_prog; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if test "${ac_cv_prog_AWK+set}" = set; then :
7345   $as_echo_n "(cached) " >&6
7346 else
7347   if test -n "$AWK"; then
7348   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355     for ac_exec_ext in '' $ac_executable_extensions; do
7356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357     ac_cv_prog_AWK="$ac_prog"
7358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362   done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 AWK=$ac_cv_prog_AWK
7368 if test -n "$AWK"; then
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7370 $as_echo "$AWK" >&6; }
7371 else
7372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 fi
7375
7376
7377   test -n "$AWK" && break
7378 done
7379
7380 # We need awk to create options.c and options.h.
7381 # Bail out if it's missing.
7382 case ${AWK} in
7383   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7384 esac
7385
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7387 $as_echo_n "checking whether ln -s works... " >&6; }
7388 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   rm -f conftestdata_t
7392 echo >conftestdata_f
7393 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7394 then
7395   gcc_cv_prog_LN_S="ln -s"
7396 else
7397   if ln conftestdata_f conftestdata_t 2>/dev/null
7398   then
7399     gcc_cv_prog_LN_S=ln
7400   else
7401     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7402     then
7403       gcc_cv_prog_LN_S="cp -p"
7404     else
7405       gcc_cv_prog_LN_S=cp
7406     fi
7407   fi
7408 fi
7409 rm -f conftestdata_f conftestdata_t
7410
7411 fi
7412 LN_S="$gcc_cv_prog_LN_S"
7413 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7415 $as_echo "yes" >&6; }
7416 else
7417   if test "$gcc_cv_prog_LN_S" = "ln"; then
7418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7419 $as_echo "no, using ln" >&6; }
7420   else
7421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7422 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7423   fi
7424 fi
7425
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7427 $as_echo_n "checking whether ln works... " >&6; }
7428 if test "${acx_cv_prog_LN+set}" = set; then :
7429   $as_echo_n "(cached) " >&6
7430 else
7431   rm -f conftestdata_t
7432 echo >conftestdata_f
7433 if ln conftestdata_f conftestdata_t 2>/dev/null
7434 then
7435   acx_cv_prog_LN=ln
7436 else
7437   acx_cv_prog_LN=no
7438 fi
7439 rm -f conftestdata_f conftestdata_t
7440
7441 fi
7442 if test $acx_cv_prog_LN = no; then
7443   LN="$LN_S"
7444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7445 $as_echo "no, using $LN" >&6; }
7446 else
7447   LN="$acx_cv_prog_LN"
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7449 $as_echo "yes" >&6; }
7450 fi
7451
7452 if test -n "$ac_tool_prefix"; then
7453   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7454 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460   if test -n "$RANLIB"; then
7461   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468     for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475   done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 RANLIB=$ac_cv_prog_RANLIB
7481 if test -n "$RANLIB"; then
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7483 $as_echo "$RANLIB" >&6; }
7484 else
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487 fi
7488
7489
7490 fi
7491 if test -z "$ac_cv_prog_RANLIB"; then
7492   ac_ct_RANLIB=$RANLIB
7493   # Extract the first word of "ranlib", so it can be a program name with args.
7494 set dummy ranlib; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7498   $as_echo_n "(cached) " >&6
7499 else
7500   if test -n "$ac_ct_RANLIB"; then
7501   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508     for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_prog_ac_ct_RANLIB="ranlib"
7511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515   done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7521 if test -n "$ac_ct_RANLIB"; then
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7523 $as_echo "$ac_ct_RANLIB" >&6; }
7524 else
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529   if test "x$ac_ct_RANLIB" = x; then
7530     RANLIB=":"
7531   else
7532     case $cross_compiling:$ac_tool_warned in
7533 yes:)
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536 ac_tool_warned=yes ;;
7537 esac
7538     RANLIB=$ac_ct_RANLIB
7539   fi
7540 else
7541   RANLIB="$ac_cv_prog_RANLIB"
7542 fi
7543
7544 case "${host}" in
7545 *-*-darwin*)
7546   # By default, the Darwin ranlib will not treat common symbols as
7547   # definitions when  building the archive table of contents.  Other
7548   # ranlibs do that; pass an option to the Darwin ranlib that makes
7549   # it behave similarly.
7550   ranlib_flags="-c"
7551   ;;
7552 *)
7553   ranlib_flags=""
7554 esac
7555
7556
7557 # Find a good install program.  We prefer a C program (faster),
7558 # so one script is as good as another.  But avoid the broken or
7559 # incompatible versions:
7560 # SysV /etc/install, /usr/sbin/install
7561 # SunOS /usr/etc/install
7562 # IRIX /sbin/install
7563 # AIX /bin/install
7564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7566 # ./install, which can be erroneously created by make from ./install.sh.
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7568 $as_echo_n "checking for a BSD compatible install... " >&6; }
7569 if test -z "$INSTALL"; then
7570 if test "${ac_cv_path_install+set}" = set; then :
7571   $as_echo_n "(cached) " >&6
7572 else
7573     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7574   for ac_dir in $PATH; do
7575     # Account for people who put trailing slashes in PATH elements.
7576     case "$ac_dir/" in
7577     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7578     *)
7579       # OSF1 and SCO ODT 3.0 have their own names for install.
7580       for ac_prog in ginstall scoinst install; do
7581         if test -f $ac_dir/$ac_prog; then
7582           if test $ac_prog = install &&
7583             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7584             # AIX install.  It has an incompatible calling convention.
7585             # OSF/1 installbsd also uses dspmsg, but is usable.
7586             :
7587           else
7588             ac_cv_path_install="$ac_dir/$ac_prog -c"
7589             break 2
7590           fi
7591         fi
7592       done
7593       ;;
7594     esac
7595   done
7596   IFS="$ac_save_IFS"
7597
7598 fi
7599   if test "${ac_cv_path_install+set}" = set; then
7600     INSTALL="$ac_cv_path_install"
7601   else
7602     # As a last resort, use the slow shell script.  We don't cache a
7603     # path for INSTALL within a source directory, because that will
7604     # break other packages using the cache if that directory is
7605     # removed, or if the path is relative.
7606     INSTALL="$ac_install_sh"
7607   fi
7608 fi
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7610 $as_echo "$INSTALL" >&6; }
7611
7612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7613 # It thinks the first close brace ends the variable substitution.
7614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7615
7616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7617
7618
7619 # See if cmp has --ignore-initial.
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7621 $as_echo_n "checking for cmp's capabilities... " >&6; }
7622 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7623   $as_echo_n "(cached) " >&6
7624 else
7625    echo abfoo >t1
7626   echo cdfoo >t2
7627   gcc_cv_prog_cmp_skip=slowcompare
7628   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7629     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7630       :
7631     else
7632       gcc_cv_prog_cmp_skip=gnucompare
7633     fi
7634   fi
7635   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7636     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7637       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7638         :
7639       else
7640         gcc_cv_prog_cmp_skip=fastcompare
7641       fi
7642     fi
7643   fi
7644   rm t1 t2
7645
7646 fi
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7648 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7649 make_compare_target=$gcc_cv_prog_cmp_skip
7650
7651
7652
7653 # See if we have the mktemp command.
7654 # Extract the first word of "mktemp", so it can be a program name with args.
7655 set dummy mktemp; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7659   $as_echo_n "(cached) " >&6
7660 else
7661   if test -n "$have_mktemp_command"; then
7662   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667   IFS=$as_save_IFS
7668   test -z "$as_dir" && as_dir=.
7669     for ac_exec_ext in '' $ac_executable_extensions; do
7670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671     ac_cv_prog_have_mktemp_command="yes"
7672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673     break 2
7674   fi
7675 done
7676   done
7677 IFS=$as_save_IFS
7678
7679   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7680 fi
7681 fi
7682 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7683 if test -n "$have_mktemp_command"; then
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7685 $as_echo "$have_mktemp_command" >&6; }
7686 else
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7689 fi
7690
7691
7692
7693 # See if makeinfo has been installed and is modern enough
7694 # that we can use it.
7695
7696   # Extract the first word of "makeinfo", so it can be a program name with args.
7697 set dummy makeinfo; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7701   $as_echo_n "(cached) " >&6
7702 else
7703   if test -n "$MAKEINFO"; then
7704   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709   IFS=$as_save_IFS
7710   test -z "$as_dir" && as_dir=.
7711     for ac_exec_ext in '' $ac_executable_extensions; do
7712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713     ac_cv_prog_MAKEINFO="makeinfo"
7714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715     break 2
7716   fi
7717 done
7718   done
7719 IFS=$as_save_IFS
7720
7721 fi
7722 fi
7723 MAKEINFO=$ac_cv_prog_MAKEINFO
7724 if test -n "$MAKEINFO"; then
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7726 $as_echo "$MAKEINFO" >&6; }
7727 else
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732
7733   if test -n "$MAKEINFO"; then
7734     # Found it, now check the version.
7735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7736 $as_echo_n "checking for modern makeinfo... " >&6; }
7737 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7738   $as_echo_n "(cached) " >&6
7739 else
7740   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7741                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7742
7743                     case $ac_prog_version in
7744                       '')  gcc_cv_prog_makeinfo_modern=no;;
7745                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7746                       *)   gcc_cv_prog_makeinfo_modern=no;;
7747                     esac
7748
7749 fi
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7751 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7752   else
7753     gcc_cv_prog_makeinfo_modern=no
7754   fi
7755   if test $gcc_cv_prog_makeinfo_modern = no; then
7756     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7757   fi
7758
7759 if test $gcc_cv_prog_makeinfo_modern = no; then
7760   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7761 *** Makeinfo is missing or too old.
7762 *** Info documentation will not be built." >&5
7763 $as_echo "$as_me: WARNING:
7764 *** Makeinfo is missing or too old.
7765 *** Info documentation will not be built." >&2;}
7766   BUILD_INFO=
7767 else
7768   BUILD_INFO=info
7769 fi
7770
7771
7772 # Is pod2man recent enough to regenerate manpages?
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7774 $as_echo_n "checking for recent Pod::Man... " >&6; }
7775 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7777 $as_echo "yes" >&6; }
7778   GENERATED_MANPAGES=generated-manpages
7779 else
7780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7782   GENERATED_MANPAGES=
7783 fi
7784
7785
7786 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7787
7788 # How about lex?
7789 for ac_prog in flex
7790 do
7791   # Extract the first word of "$ac_prog", so it can be a program name with args.
7792 set dummy $ac_prog; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_FLEX+set}" = set; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798   if test -n "$FLEX"; then
7799   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7803 do
7804   IFS=$as_save_IFS
7805   test -z "$as_dir" && as_dir=.
7806     for ac_exec_ext in '' $ac_executable_extensions; do
7807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808     ac_cv_prog_FLEX="$ac_prog"
7809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810     break 2
7811   fi
7812 done
7813   done
7814 IFS=$as_save_IFS
7815
7816 fi
7817 fi
7818 FLEX=$ac_cv_prog_FLEX
7819 if test -n "$FLEX"; then
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7821 $as_echo "$FLEX" >&6; }
7822 else
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7825 fi
7826
7827
7828   test -n "$FLEX" && break
7829 done
7830 test -n "$FLEX" || FLEX="$MISSING flex"
7831
7832
7833 # Bison?
7834 for ac_prog in bison
7835 do
7836   # Extract the first word of "$ac_prog", so it can be a program name with args.
7837 set dummy $ac_prog; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if test "${ac_cv_prog_BISON+set}" = set; then :
7841   $as_echo_n "(cached) " >&6
7842 else
7843   if test -n "$BISON"; then
7844   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849   IFS=$as_save_IFS
7850   test -z "$as_dir" && as_dir=.
7851     for ac_exec_ext in '' $ac_executable_extensions; do
7852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853     ac_cv_prog_BISON="$ac_prog"
7854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855     break 2
7856   fi
7857 done
7858   done
7859 IFS=$as_save_IFS
7860
7861 fi
7862 fi
7863 BISON=$ac_cv_prog_BISON
7864 if test -n "$BISON"; then
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7866 $as_echo "$BISON" >&6; }
7867 else
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 fi
7871
7872
7873   test -n "$BISON" && break
7874 done
7875 test -n "$BISON" || BISON="$MISSING bison"
7876
7877
7878 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7879 # check for build == host before using them.
7880
7881 # NM
7882 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7883   && test -d ../binutils ; then
7884   NM='${objdir}/../binutils/nm-new'
7885 else
7886   # Extract the first word of "nm", so it can be a program name with args.
7887 set dummy nm; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_NM+set}" = set; then :
7891   $as_echo_n "(cached) " >&6
7892 else
7893   if test -n "$NM"; then
7894   ac_cv_prog_NM="$NM" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899   IFS=$as_save_IFS
7900   test -z "$as_dir" && as_dir=.
7901     for ac_exec_ext in '' $ac_executable_extensions; do
7902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903     ac_cv_prog_NM="nm"
7904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905     break 2
7906   fi
7907 done
7908   done
7909 IFS=$as_save_IFS
7910
7911   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7912 fi
7913 fi
7914 NM=$ac_cv_prog_NM
7915 if test -n "$NM"; then
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7917 $as_echo "$NM" >&6; }
7918 else
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 fi
7922
7923
7924 fi
7925
7926 # AR
7927 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7928   && test -d ../binutils ; then
7929   AR='${objdir}/../binutils/ar'
7930 else
7931   # Extract the first word of "ar", so it can be a program name with args.
7932 set dummy ar; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_prog_AR+set}" = set; then :
7936   $as_echo_n "(cached) " >&6
7937 else
7938   if test -n "$AR"; then
7939   ac_cv_prog_AR="$AR" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944   IFS=$as_save_IFS
7945   test -z "$as_dir" && as_dir=.
7946     for ac_exec_ext in '' $ac_executable_extensions; do
7947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948     ac_cv_prog_AR="ar"
7949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950     break 2
7951   fi
7952 done
7953   done
7954 IFS=$as_save_IFS
7955
7956   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7957 fi
7958 fi
7959 AR=$ac_cv_prog_AR
7960 if test -n "$AR"; then
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7962 $as_echo "$AR" >&6; }
7963 else
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967
7968
7969 fi
7970
7971
7972 # --------------------
7973 # Checks for C headers
7974 # --------------------
7975
7976 # Need to reject headers which give warnings, so that the -Werror bootstrap
7977 # works later. *sigh*  This needs to come before all header checks.
7978
7979 ac_c_preproc_warn_flag=yes
7980
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7982 $as_echo_n "checking for ANSI C header files... " >&6; }
7983 if test "${ac_cv_header_stdc+set}" = set; then :
7984   $as_echo_n "(cached) " >&6
7985 else
7986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h.  */
7988 #include <stdlib.h>
7989 #include <stdarg.h>
7990 #include <string.h>
7991 #include <float.h>
7992
7993 int
7994 main ()
7995 {
7996
7997   ;
7998   return 0;
7999 }
8000 _ACEOF
8001 if ac_fn_c_try_compile "$LINENO"; then :
8002   ac_cv_header_stdc=yes
8003 else
8004   ac_cv_header_stdc=no
8005 fi
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007
8008 if test $ac_cv_header_stdc = yes; then
8009   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h.  */
8012 #include <string.h>
8013
8014 _ACEOF
8015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8016   $EGREP "memchr" >/dev/null 2>&1; then :
8017
8018 else
8019   ac_cv_header_stdc=no
8020 fi
8021 rm -f conftest*
8022
8023 fi
8024
8025 if test $ac_cv_header_stdc = yes; then
8026   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h.  */
8029 #include <stdlib.h>
8030
8031 _ACEOF
8032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8033   $EGREP "free" >/dev/null 2>&1; then :
8034
8035 else
8036   ac_cv_header_stdc=no
8037 fi
8038 rm -f conftest*
8039
8040 fi
8041
8042 if test $ac_cv_header_stdc = yes; then
8043   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8044   if test "$cross_compiling" = yes; then :
8045   :
8046 else
8047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h.  */
8049 #include <ctype.h>
8050 #include <stdlib.h>
8051 #if ((' ' & 0x0FF) == 0x020)
8052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8054 #else
8055 # define ISLOWER(c) \
8056                    (('a' <= (c) && (c) <= 'i') \
8057                      || ('j' <= (c) && (c) <= 'r') \
8058                      || ('s' <= (c) && (c) <= 'z'))
8059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8060 #endif
8061
8062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8063 int
8064 main ()
8065 {
8066   int i;
8067   for (i = 0; i < 256; i++)
8068     if (XOR (islower (i), ISLOWER (i))
8069         || toupper (i) != TOUPPER (i))
8070       return 2;
8071   return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_run "$LINENO"; then :
8075
8076 else
8077   ac_cv_header_stdc=no
8078 fi
8079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8080   conftest.$ac_objext conftest.beam conftest.$ac_ext
8081 fi
8082
8083 fi
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8086 $as_echo "$ac_cv_header_stdc" >&6; }
8087 if test $ac_cv_header_stdc = yes; then
8088
8089 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8090
8091 fi
8092
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8094 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8095 if test "${ac_cv_header_time+set}" = set; then :
8096   $as_echo_n "(cached) " >&6
8097 else
8098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h.  */
8100 #include <sys/types.h>
8101 #include <sys/time.h>
8102 #include <time.h>
8103
8104 int
8105 main ()
8106 {
8107 if ((struct tm *) 0)
8108 return 0;
8109   ;
8110   return 0;
8111 }
8112 _ACEOF
8113 if ac_fn_c_try_compile "$LINENO"; then :
8114   ac_cv_header_time=yes
8115 else
8116   ac_cv_header_time=no
8117 fi
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 fi
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8121 $as_echo "$ac_cv_header_time" >&6; }
8122 if test $ac_cv_header_time = yes; then
8123
8124 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8125
8126 fi
8127
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8129 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8130 if test "${gcc_cv_header_string+set}" = set; then :
8131   $as_echo_n "(cached) " >&6
8132 else
8133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h.  */
8135 #include <string.h>
8136 #include <strings.h>
8137 int
8138 main ()
8139 {
8140
8141   ;
8142   return 0;
8143 }
8144 _ACEOF
8145 if ac_fn_c_try_compile "$LINENO"; then :
8146   gcc_cv_header_string=yes
8147 else
8148   gcc_cv_header_string=no
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 fi
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8153 $as_echo "$gcc_cv_header_string" >&6; }
8154 if test $gcc_cv_header_string = yes; then
8155
8156 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8157
8158 fi
8159
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8161 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8162 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8163   $as_echo_n "(cached) " >&6
8164 else
8165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h.  */
8167 #include <sys/types.h>
8168 #include <sys/wait.h>
8169 #ifndef WEXITSTATUS
8170 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8171 #endif
8172 #ifndef WIFEXITED
8173 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8174 #endif
8175
8176 int
8177 main ()
8178 {
8179   int s;
8180   wait (&s);
8181   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8182   ;
8183   return 0;
8184 }
8185 _ACEOF
8186 if ac_fn_c_try_compile "$LINENO"; then :
8187   ac_cv_header_sys_wait_h=yes
8188 else
8189   ac_cv_header_sys_wait_h=no
8190 fi
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 fi
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8194 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8195 if test $ac_cv_header_sys_wait_h = yes; then
8196
8197 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8198
8199 fi
8200
8201 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8202                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8203                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8204                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8205 do :
8206   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8207 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8208 eval as_val=\$$as_ac_Header
8209    if test "x$as_val" = x""yes; then :
8210   cat >>confdefs.h <<_ACEOF
8211 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8212 _ACEOF
8213
8214 fi
8215 done
8216
8217
8218 # Check for thread headers.
8219 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8220 if test "x$ac_cv_header_thread_h" = x""yes; then :
8221   have_thread_h=yes
8222 else
8223   have_thread_h=
8224 fi
8225
8226 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8227 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8228   have_pthread_h=yes
8229 else
8230   have_pthread_h=
8231 fi
8232
8233
8234 # These tests can't be done till we know if we have limits.h.
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8236 $as_echo_n "checking for CHAR_BIT... " >&6; }
8237 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8238   $as_echo_n "(cached) " >&6
8239 else
8240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h.  */
8242 #ifdef HAVE_LIMITS_H
8243 #include <limits.h>
8244 #endif
8245 #ifdef CHAR_BIT
8246 found
8247 #endif
8248 _ACEOF
8249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8250   $EGREP "found" >/dev/null 2>&1; then :
8251   gcc_cv_decl_char_bit=yes
8252 else
8253   gcc_cv_decl_char_bit=no
8254 fi
8255 rm -f conftest*
8256
8257
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8260 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8261 if test $gcc_cv_decl_char_bit = no; then
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8263 $as_echo_n "checking number of bits in a byte... " >&6; }
8264 if test "${gcc_cv_c_nbby+set}" = set; then :
8265   $as_echo_n "(cached) " >&6
8266 else
8267   i=8
8268  gcc_cv_c_nbby=
8269  while test $i -lt 65; do
8270    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h.  */
8272
8273 int
8274 main ()
8275 {
8276 switch(0) {
8277   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8278   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8279   ; }
8280   ;
8281   return 0;
8282 }
8283 _ACEOF
8284 if ac_fn_c_try_compile "$LINENO"; then :
8285   gcc_cv_c_nbby=$i; break
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288    i=`expr $i + 1`
8289  done
8290  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8291
8292 fi
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8294 $as_echo "$gcc_cv_c_nbby" >&6; }
8295 if test $gcc_cv_c_nbby = failed; then
8296   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8297 else
8298
8299 cat >>confdefs.h <<_ACEOF
8300 #define CHAR_BIT $gcc_cv_c_nbby
8301 _ACEOF
8302
8303 fi
8304 fi
8305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8306 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8307 if test "${ac_cv_c_bigendian+set}" = set; then :
8308   $as_echo_n "(cached) " >&6
8309 else
8310   ac_cv_c_bigendian=unknown
8311     # See if we're dealing with a universal compiler.
8312     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h.  */
8314 #ifndef __APPLE_CC__
8315                not a universal capable compiler
8316              #endif
8317              typedef int dummy;
8318
8319 _ACEOF
8320 if ac_fn_c_try_compile "$LINENO"; then :
8321
8322         # Check for potential -arch flags.  It is not universal unless
8323         # there are at least two -arch flags with different values.
8324         ac_arch=
8325         ac_prev=
8326         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8327          if test -n "$ac_prev"; then
8328            case $ac_word in
8329              i?86 | x86_64 | ppc | ppc64)
8330                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8331                  ac_arch=$ac_word
8332                else
8333                  ac_cv_c_bigendian=universal
8334                  break
8335                fi
8336                ;;
8337            esac
8338            ac_prev=
8339          elif test "x$ac_word" = "x-arch"; then
8340            ac_prev=arch
8341          fi
8342        done
8343 fi
8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345     if test $ac_cv_c_bigendian = unknown; then
8346       # See if sys/param.h defines the BYTE_ORDER macro.
8347       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h.  */
8349 #include <sys/types.h>
8350              #include <sys/param.h>
8351
8352 int
8353 main ()
8354 {
8355 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8356                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8357                      && LITTLE_ENDIAN)
8358               bogus endian macros
8359              #endif
8360
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 if ac_fn_c_try_compile "$LINENO"; then :
8366   # It does; now see whether it defined to BIG_ENDIAN or not.
8367          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h.  */
8369 #include <sys/types.h>
8370                 #include <sys/param.h>
8371
8372 int
8373 main ()
8374 {
8375 #if BYTE_ORDER != BIG_ENDIAN
8376                  not big endian
8377                 #endif
8378
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 if ac_fn_c_try_compile "$LINENO"; then :
8384   ac_cv_c_bigendian=yes
8385 else
8386   ac_cv_c_bigendian=no
8387 fi
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 fi
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391     fi
8392     if test $ac_cv_c_bigendian = unknown; then
8393       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8394       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h.  */
8396 #include <limits.h>
8397
8398 int
8399 main ()
8400 {
8401 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8402               bogus endian macros
8403              #endif
8404
8405   ;
8406   return 0;
8407 }
8408 _ACEOF
8409 if ac_fn_c_try_compile "$LINENO"; then :
8410   # It does; now see whether it defined to _BIG_ENDIAN or not.
8411          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h.  */
8413 #include <limits.h>
8414
8415 int
8416 main ()
8417 {
8418 #ifndef _BIG_ENDIAN
8419                  not big endian
8420                 #endif
8421
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 if ac_fn_c_try_compile "$LINENO"; then :
8427   ac_cv_c_bigendian=yes
8428 else
8429   ac_cv_c_bigendian=no
8430 fi
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 fi
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434     fi
8435     if test $ac_cv_c_bigendian = unknown; then
8436       # Compile a test program.
8437       if test "$cross_compiling" = yes; then :
8438   # Try to guess by grepping values from an object file.
8439          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h.  */
8441 short int ascii_mm[] =
8442                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8443                 short int ascii_ii[] =
8444                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8445                 int use_ascii (int i) {
8446                   return ascii_mm[i] + ascii_ii[i];
8447                 }
8448                 short int ebcdic_ii[] =
8449                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8450                 short int ebcdic_mm[] =
8451                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8452                 int use_ebcdic (int i) {
8453                   return ebcdic_mm[i] + ebcdic_ii[i];
8454                 }
8455                 extern int foo;
8456
8457 int
8458 main ()
8459 {
8460 return use_ascii (foo) == use_ebcdic (foo);
8461   ;
8462   return 0;
8463 }
8464 _ACEOF
8465 if ac_fn_c_try_compile "$LINENO"; then :
8466   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8467               ac_cv_c_bigendian=yes
8468             fi
8469             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8470               if test "$ac_cv_c_bigendian" = unknown; then
8471                 ac_cv_c_bigendian=no
8472               else
8473                 # finding both strings is unlikely to happen, but who knows?
8474                 ac_cv_c_bigendian=unknown
8475               fi
8476             fi
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 else
8480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h.  */
8482 $ac_includes_default
8483 int
8484 main ()
8485 {
8486
8487              /* Are we little or big endian?  From Harbison&Steele.  */
8488              union
8489              {
8490                long int l;
8491                char c[sizeof (long int)];
8492              } u;
8493              u.l = 1;
8494              return u.c[sizeof (long int) - 1] == 1;
8495
8496   ;
8497   return 0;
8498 }
8499 _ACEOF
8500 if ac_fn_c_try_run "$LINENO"; then :
8501   ac_cv_c_bigendian=no
8502 else
8503   ac_cv_c_bigendian=yes
8504 fi
8505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8506   conftest.$ac_objext conftest.beam conftest.$ac_ext
8507 fi
8508
8509     fi
8510 fi
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8512 $as_echo "$ac_cv_c_bigendian" >&6; }
8513  case $ac_cv_c_bigendian in #(
8514    yes)
8515      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8516 ;; #(
8517    no)
8518       ;; #(
8519    universal)
8520
8521 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8522
8523      ;; #(
8524    *)
8525      as_fn_error "unknown endianness
8526  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8527  esac
8528
8529
8530 # ----------------------
8531 # Checks for C++ headers
8532 # ----------------------
8533
8534 ac_ext=cpp
8535 ac_cpp='$CXXCPP $CPPFLAGS'
8536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8540 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8541 if test -z "$CXXCPP"; then
8542   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8543   $as_echo_n "(cached) " >&6
8544 else
8545       # Double quotes because CXXCPP needs to be expanded
8546     for CXXCPP in "$CXX -E" "/lib/cpp"
8547     do
8548       ac_preproc_ok=false
8549 for ac_cxx_preproc_warn_flag in '' yes
8550 do
8551   # Use a header file that comes with gcc, so configuring glibc
8552   # with a fresh cross-compiler works.
8553   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8554   # <limits.h> exists even on freestanding compilers.
8555   # On the NeXT, cc -E runs the code through the compiler's parser,
8556   # not just through cpp. "Syntax error" is here to catch this case.
8557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h.  */
8559 #ifdef __STDC__
8560 # include <limits.h>
8561 #else
8562 # include <assert.h>
8563 #endif
8564                      Syntax error
8565 _ACEOF
8566 if ac_fn_cxx_try_cpp "$LINENO"; then :
8567
8568 else
8569   # Broken: fails on valid input.
8570 continue
8571 fi
8572 rm -f conftest.err conftest.$ac_ext
8573
8574   # OK, works on sane cases.  Now check whether nonexistent headers
8575   # can be detected and how.
8576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h.  */
8578 #include <ac_nonexistent.h>
8579 _ACEOF
8580 if ac_fn_cxx_try_cpp "$LINENO"; then :
8581   # Broken: success on invalid input.
8582 continue
8583 else
8584   # Passes both tests.
8585 ac_preproc_ok=:
8586 break
8587 fi
8588 rm -f conftest.err conftest.$ac_ext
8589
8590 done
8591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8592 rm -f conftest.err conftest.$ac_ext
8593 if $ac_preproc_ok; then :
8594   break
8595 fi
8596
8597     done
8598     ac_cv_prog_CXXCPP=$CXXCPP
8599
8600 fi
8601   CXXCPP=$ac_cv_prog_CXXCPP
8602 else
8603   ac_cv_prog_CXXCPP=$CXXCPP
8604 fi
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8606 $as_echo "$CXXCPP" >&6; }
8607 ac_preproc_ok=false
8608 for ac_cxx_preproc_warn_flag in '' yes
8609 do
8610   # Use a header file that comes with gcc, so configuring glibc
8611   # with a fresh cross-compiler works.
8612   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8613   # <limits.h> exists even on freestanding compilers.
8614   # On the NeXT, cc -E runs the code through the compiler's parser,
8615   # not just through cpp. "Syntax error" is here to catch this case.
8616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h.  */
8618 #ifdef __STDC__
8619 # include <limits.h>
8620 #else
8621 # include <assert.h>
8622 #endif
8623                      Syntax error
8624 _ACEOF
8625 if ac_fn_cxx_try_cpp "$LINENO"; then :
8626
8627 else
8628   # Broken: fails on valid input.
8629 continue
8630 fi
8631 rm -f conftest.err conftest.$ac_ext
8632
8633   # OK, works on sane cases.  Now check whether nonexistent headers
8634   # can be detected and how.
8635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h.  */
8637 #include <ac_nonexistent.h>
8638 _ACEOF
8639 if ac_fn_cxx_try_cpp "$LINENO"; then :
8640   # Broken: success on invalid input.
8641 continue
8642 else
8643   # Passes both tests.
8644 ac_preproc_ok=:
8645 break
8646 fi
8647 rm -f conftest.err conftest.$ac_ext
8648
8649 done
8650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8651 rm -f conftest.err conftest.$ac_ext
8652 if $ac_preproc_ok; then :
8653
8654 else
8655   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8658 See \`config.log' for more details." >&5
8659 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8660 See \`config.log' for more details." >&2;}; }
8661 fi
8662
8663 ac_ext=c
8664 ac_cpp='$CPP $CPPFLAGS'
8665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8668
8669
8670 ac_ext=cpp
8671 ac_cpp='$CXXCPP $CPPFLAGS'
8672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8675
8676
8677
8678
8679 for ac_header in unordered_map
8680 do :
8681   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8682 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8683   cat >>confdefs.h <<_ACEOF
8684 #define HAVE_UNORDERED_MAP 1
8685 _ACEOF
8686
8687 fi
8688 done
8689
8690 for ac_header in tr1/unordered_map
8691 do :
8692   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8693 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8694   cat >>confdefs.h <<_ACEOF
8695 #define HAVE_TR1_UNORDERED_MAP 1
8696 _ACEOF
8697
8698 fi
8699 done
8700
8701 for ac_header in ext/hash_map
8702 do :
8703   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8704 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8705   cat >>confdefs.h <<_ACEOF
8706 #define HAVE_EXT_HASH_MAP 1
8707 _ACEOF
8708
8709 fi
8710 done
8711
8712
8713 ac_ext=c
8714 ac_cpp='$CPP $CPPFLAGS'
8715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8718
8719
8720 # --------
8721 # UNSORTED
8722 # --------
8723
8724
8725 # These libraries may be used by collect2.
8726 # We may need a special search path to get them linked.
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8728 $as_echo_n "checking for collect2 libraries... " >&6; }
8729 if test "${gcc_cv_collect2_libs+set}" = set; then :
8730   $as_echo_n "(cached) " >&6
8731 else
8732   save_LIBS="$LIBS"
8733 for libs in '' -lld -lmld \
8734                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8735                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8736 do
8737         LIBS="$libs"
8738         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h.  */
8740
8741 /* Override any GCC internal prototype to avoid an error.
8742    Use char because int might match the return type of a GCC
8743    builtin and then its argument prototype would still apply.  */
8744 #ifdef __cplusplus
8745 extern "C"
8746 #endif
8747 char ldopen ();
8748 int
8749 main ()
8750 {
8751 return ldopen ();
8752   ;
8753   return 0;
8754 }
8755 _ACEOF
8756 if ac_fn_c_try_link "$LINENO"; then :
8757   gcc_cv_collect2_libs="$libs"; break
8758 fi
8759 rm -f core conftest.err conftest.$ac_objext \
8760     conftest$ac_exeext conftest.$ac_ext
8761 done
8762 LIBS="$save_LIBS"
8763 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8764 fi
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8766 $as_echo "$gcc_cv_collect2_libs" >&6; }
8767 case $gcc_cv_collect2_libs in
8768         "none required")        ;;
8769         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8770 esac
8771
8772
8773 # When building Ada code on Alpha, we need exc_resume which is usually in
8774 # -lexc.  So test for it.
8775 save_LIBS="$LIBS"
8776 LIBS=
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8778 $as_echo_n "checking for library containing exc_resume... " >&6; }
8779 if test "${ac_cv_search_exc_resume+set}" = set; then :
8780   $as_echo_n "(cached) " >&6
8781 else
8782   ac_func_search_save_LIBS=$LIBS
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h.  */
8785
8786 /* Override any GCC internal prototype to avoid an error.
8787    Use char because int might match the return type of a GCC
8788    builtin and then its argument prototype would still apply.  */
8789 #ifdef __cplusplus
8790 extern "C"
8791 #endif
8792 char exc_resume ();
8793 int
8794 main ()
8795 {
8796 return exc_resume ();
8797   ;
8798   return 0;
8799 }
8800 _ACEOF
8801 for ac_lib in '' exc; do
8802   if test -z "$ac_lib"; then
8803     ac_res="none required"
8804   else
8805     ac_res=-l$ac_lib
8806     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8807   fi
8808   if ac_fn_c_try_link "$LINENO"; then :
8809   ac_cv_search_exc_resume=$ac_res
8810 fi
8811 rm -f core conftest.err conftest.$ac_objext \
8812     conftest$ac_exeext
8813   if test "${ac_cv_search_exc_resume+set}" = set; then :
8814   break
8815 fi
8816 done
8817 if test "${ac_cv_search_exc_resume+set}" = set; then :
8818
8819 else
8820   ac_cv_search_exc_resume=no
8821 fi
8822 rm conftest.$ac_ext
8823 LIBS=$ac_func_search_save_LIBS
8824 fi
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8826 $as_echo "$ac_cv_search_exc_resume" >&6; }
8827 ac_res=$ac_cv_search_exc_resume
8828 if test "$ac_res" != no; then :
8829   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8830
8831 fi
8832
8833 GNAT_LIBEXC="$LIBS"
8834 LIBS="$save_LIBS"
8835
8836
8837 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8838 save_LIBS="$LIBS"
8839 LIBS=
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8841 $as_echo_n "checking for library containing kstat_open... " >&6; }
8842 if test "${ac_cv_search_kstat_open+set}" = set; then :
8843   $as_echo_n "(cached) " >&6
8844 else
8845   ac_func_search_save_LIBS=$LIBS
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h.  */
8848
8849 /* Override any GCC internal prototype to avoid an error.
8850    Use char because int might match the return type of a GCC
8851    builtin and then its argument prototype would still apply.  */
8852 #ifdef __cplusplus
8853 extern "C"
8854 #endif
8855 char kstat_open ();
8856 int
8857 main ()
8858 {
8859 return kstat_open ();
8860   ;
8861   return 0;
8862 }
8863 _ACEOF
8864 for ac_lib in '' kstat; do
8865   if test -z "$ac_lib"; then
8866     ac_res="none required"
8867   else
8868     ac_res=-l$ac_lib
8869     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8870   fi
8871   if ac_fn_c_try_link "$LINENO"; then :
8872   ac_cv_search_kstat_open=$ac_res
8873 fi
8874 rm -f core conftest.err conftest.$ac_objext \
8875     conftest$ac_exeext
8876   if test "${ac_cv_search_kstat_open+set}" = set; then :
8877   break
8878 fi
8879 done
8880 if test "${ac_cv_search_kstat_open+set}" = set; then :
8881
8882 else
8883   ac_cv_search_kstat_open=no
8884 fi
8885 rm conftest.$ac_ext
8886 LIBS=$ac_func_search_save_LIBS
8887 fi
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8889 $as_echo "$ac_cv_search_kstat_open" >&6; }
8890 ac_res=$ac_cv_search_kstat_open
8891 if test "$ac_res" != no; then :
8892   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8893
8894 fi
8895
8896 EXTRA_GCC_LIBS="$LIBS"
8897 LIBS="$save_LIBS"
8898
8899
8900 # Some systems put ldexp and frexp in libm instead of libc; assume
8901 # they're both in the same place.  jcf-dump needs them.
8902 save_LIBS="$LIBS"
8903 LIBS=
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8905 $as_echo_n "checking for library containing ldexp... " >&6; }
8906 if test "${ac_cv_search_ldexp+set}" = set; then :
8907   $as_echo_n "(cached) " >&6
8908 else
8909   ac_func_search_save_LIBS=$LIBS
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h.  */
8912
8913 /* Override any GCC internal prototype to avoid an error.
8914    Use char because int might match the return type of a GCC
8915    builtin and then its argument prototype would still apply.  */
8916 #ifdef __cplusplus
8917 extern "C"
8918 #endif
8919 char ldexp ();
8920 int
8921 main ()
8922 {
8923 return ldexp ();
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 for ac_lib in '' m; do
8929   if test -z "$ac_lib"; then
8930     ac_res="none required"
8931   else
8932     ac_res=-l$ac_lib
8933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8934   fi
8935   if ac_fn_c_try_link "$LINENO"; then :
8936   ac_cv_search_ldexp=$ac_res
8937 fi
8938 rm -f core conftest.err conftest.$ac_objext \
8939     conftest$ac_exeext
8940   if test "${ac_cv_search_ldexp+set}" = set; then :
8941   break
8942 fi
8943 done
8944 if test "${ac_cv_search_ldexp+set}" = set; then :
8945
8946 else
8947   ac_cv_search_ldexp=no
8948 fi
8949 rm conftest.$ac_ext
8950 LIBS=$ac_func_search_save_LIBS
8951 fi
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8953 $as_echo "$ac_cv_search_ldexp" >&6; }
8954 ac_res=$ac_cv_search_ldexp
8955 if test "$ac_res" != no; then :
8956   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8957
8958 fi
8959
8960 LDEXP_LIB="$LIBS"
8961 LIBS="$save_LIBS"
8962
8963
8964 # Use <inttypes.h> only if it exists,
8965 # doesn't clash with <sys/types.h>, and declares intmax_t.
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8967 $as_echo_n "checking for inttypes.h... " >&6; }
8968 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8969   $as_echo_n "(cached) " >&6
8970 else
8971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h.  */
8973 #include <sys/types.h>
8974 #include <inttypes.h>
8975 int
8976 main ()
8977 {
8978 intmax_t i = -1;
8979   ;
8980   return 0;
8981 }
8982 _ACEOF
8983 if ac_fn_c_try_compile "$LINENO"; then :
8984   gcc_cv_header_inttypes_h=yes
8985 else
8986   gcc_cv_header_inttypes_h=no
8987 fi
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 fi
8990
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8992 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8993 if test $gcc_cv_header_inttypes_h = yes; then
8994
8995 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8996
8997 fi
8998
8999
9000
9001 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9002         sysconf strsignal getrusage nl_langinfo \
9003         gettimeofday mbstowcs wcswidth mmap setlocale \
9004         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
9005 do :
9006   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9007 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9008 eval as_val=\$$as_ac_var
9009    if test "x$as_val" = x""yes; then :
9010   cat >>confdefs.h <<_ACEOF
9011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9012 _ACEOF
9013
9014 fi
9015 done
9016
9017
9018 if test x$ac_cv_func_mbstowcs = xyes; then
9019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9020 $as_echo_n "checking whether mbstowcs works... " >&6; }
9021 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9022   $as_echo_n "(cached) " >&6
9023 else
9024       if test "$cross_compiling" = yes; then :
9025   gcc_cv_func_mbstowcs_works=yes
9026 else
9027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h.  */
9029 #include <stdlib.h>
9030 int main()
9031 {
9032   mbstowcs(0, "", 0);
9033   return 0;
9034 }
9035 _ACEOF
9036 if ac_fn_c_try_run "$LINENO"; then :
9037   gcc_cv_func_mbstowcs_works=yes
9038 else
9039   gcc_cv_func_mbstowcs_works=no
9040 fi
9041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9042   conftest.$ac_objext conftest.beam conftest.$ac_ext
9043 fi
9044
9045 fi
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9047 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9048   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9049
9050 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9051
9052   fi
9053 fi
9054
9055 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9056 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9057
9058 else
9059
9060 cat >>confdefs.h <<_ACEOF
9061 #define ssize_t int
9062 _ACEOF
9063
9064 fi
9065
9066 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9067 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9068
9069 else
9070
9071 cat >>confdefs.h <<_ACEOF
9072 #define caddr_t char *
9073 _ACEOF
9074
9075 fi
9076
9077
9078
9079 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9080 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9081   gcc_header_sys_mman_h=yes
9082 else
9083   gcc_header_sys_mman_h=no
9084 fi
9085
9086 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9087 if test "x$ac_cv_func_mmap" = x""yes; then :
9088   gcc_func_mmap=yes
9089 else
9090   gcc_func_mmap=no
9091 fi
9092
9093 if test "$gcc_header_sys_mman_h" != yes \
9094  || test "$gcc_func_mmap" != yes; then
9095    gcc_cv_func_mmap_file=no
9096    gcc_cv_func_mmap_dev_zero=no
9097    gcc_cv_func_mmap_anon=no
9098 else
9099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9100 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9101 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9102   $as_echo_n "(cached) " >&6
9103 else
9104   # Add a system to this blacklist if
9105    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9106    # memory area containing the same data that you'd get if you applied
9107    # read() to the same fd.  The only system known to have a problem here
9108    # is VMS, where text files have record structure.
9109    case "$host_os" in
9110      vms* | ultrix*)
9111         gcc_cv_func_mmap_file=no ;;
9112      *)
9113         gcc_cv_func_mmap_file=yes;;
9114    esac
9115 fi
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9117 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9119 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9120 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9121   $as_echo_n "(cached) " >&6
9122 else
9123   # Add a system to this blacklist if it has mmap() but /dev/zero
9124    # does not exist, or if mmapping /dev/zero does not give anonymous
9125    # zeroed pages with both the following properties:
9126    # 1. If you map N consecutive pages in with one call, and then
9127    #    unmap any subset of those pages, the pages that were not
9128    #    explicitly unmapped remain accessible.
9129    # 2. If you map two adjacent blocks of memory and then unmap them
9130    #    both at once, they must both go away.
9131    # Systems known to be in this category are Windows (all variants),
9132    # VMS, and Darwin.
9133    case "$host_os" in
9134      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9135         gcc_cv_func_mmap_dev_zero=no ;;
9136      *)
9137         gcc_cv_func_mmap_dev_zero=yes;;
9138    esac
9139 fi
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9141 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9142
9143    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9144    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9145 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9146 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9147   $as_echo_n "(cached) " >&6
9148 else
9149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h.  */
9151 #include <sys/types.h>
9152 #include <sys/mman.h>
9153 #include <unistd.h>
9154
9155 #ifndef MAP_ANONYMOUS
9156 #define MAP_ANONYMOUS MAP_ANON
9157 #endif
9158
9159 int
9160 main ()
9161 {
9162 int n = MAP_ANONYMOUS;
9163   ;
9164   return 0;
9165 }
9166 _ACEOF
9167 if ac_fn_c_try_compile "$LINENO"; then :
9168   gcc_cv_decl_map_anon=yes
9169 else
9170   gcc_cv_decl_map_anon=no
9171 fi
9172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9173 fi
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9175 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9176
9177    if test $gcc_cv_decl_map_anon = no; then
9178      gcc_cv_func_mmap_anon=no
9179    else
9180      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9181 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9182 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9183   $as_echo_n "(cached) " >&6
9184 else
9185   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9186    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9187    # doesn't give anonymous zeroed pages with the same properties listed
9188    # above for use of /dev/zero.
9189    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9190    case "$host_os" in
9191      vms* | cygwin* | pe | mingw* | sco* | udk* )
9192         gcc_cv_func_mmap_anon=no ;;
9193      *)
9194         gcc_cv_func_mmap_anon=yes;;
9195    esac
9196 fi
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9198 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9199    fi
9200 fi
9201
9202 if test $gcc_cv_func_mmap_file = yes; then
9203
9204 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9205
9206 fi
9207 if test $gcc_cv_func_mmap_dev_zero = yes; then
9208
9209 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9210
9211 fi
9212 if test $gcc_cv_func_mmap_anon = yes; then
9213
9214 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9215
9216 fi
9217
9218
9219 case "${host}" in
9220 *-*-*vms*)
9221   # Under VMS, vfork works very differently than on Unix. The standard test
9222   # won't work, and it isn't easily adaptable. It makes more sense to
9223   # just force it.
9224   ac_cv_func_vfork_works=yes
9225   ;;
9226 esac
9227 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9228 if test "x$ac_cv_type_pid_t" = x""yes; then :
9229
9230 else
9231
9232 cat >>confdefs.h <<_ACEOF
9233 #define pid_t int
9234 _ACEOF
9235
9236 fi
9237
9238 for ac_header in vfork.h
9239 do :
9240   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9241 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9242   cat >>confdefs.h <<_ACEOF
9243 #define HAVE_VFORK_H 1
9244 _ACEOF
9245
9246 fi
9247 done
9248
9249 for ac_func in fork vfork
9250 do :
9251   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9252 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9253 eval as_val=\$$as_ac_var
9254    if test "x$as_val" = x""yes; then :
9255   cat >>confdefs.h <<_ACEOF
9256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9257 _ACEOF
9258
9259 fi
9260 done
9261
9262 if test "x$ac_cv_func_fork" = xyes; then
9263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9264 $as_echo_n "checking for working fork... " >&6; }
9265 if test "${ac_cv_func_fork_works+set}" = set; then :
9266   $as_echo_n "(cached) " >&6
9267 else
9268   if test "$cross_compiling" = yes; then :
9269   ac_cv_func_fork_works=cross
9270 else
9271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h.  */
9273 $ac_includes_default
9274 int
9275 main ()
9276 {
9277
9278           /* By Ruediger Kuhlmann. */
9279           return fork () < 0;
9280
9281   ;
9282   return 0;
9283 }
9284 _ACEOF
9285 if ac_fn_c_try_run "$LINENO"; then :
9286   ac_cv_func_fork_works=yes
9287 else
9288   ac_cv_func_fork_works=no
9289 fi
9290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9291   conftest.$ac_objext conftest.beam conftest.$ac_ext
9292 fi
9293
9294 fi
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9296 $as_echo "$ac_cv_func_fork_works" >&6; }
9297
9298 else
9299   ac_cv_func_fork_works=$ac_cv_func_fork
9300 fi
9301 if test "x$ac_cv_func_fork_works" = xcross; then
9302   case $host in
9303     *-*-amigaos* | *-*-msdosdjgpp*)
9304       # Override, as these systems have only a dummy fork() stub
9305       ac_cv_func_fork_works=no
9306       ;;
9307     *)
9308       ac_cv_func_fork_works=yes
9309       ;;
9310   esac
9311   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9312 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9313 fi
9314 ac_cv_func_vfork_works=$ac_cv_func_vfork
9315 if test "x$ac_cv_func_vfork" = xyes; then
9316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9317 $as_echo_n "checking for working vfork... " >&6; }
9318 if test "${ac_cv_func_vfork_works+set}" = set; then :
9319   $as_echo_n "(cached) " >&6
9320 else
9321   if test "$cross_compiling" = yes; then :
9322   ac_cv_func_vfork_works=cross
9323 else
9324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h.  */
9326 /* Thanks to Paul Eggert for this test.  */
9327 $ac_includes_default
9328 #include <sys/wait.h>
9329 #ifdef HAVE_VFORK_H
9330 # include <vfork.h>
9331 #endif
9332 /* On some sparc systems, changes by the child to local and incoming
9333    argument registers are propagated back to the parent.  The compiler
9334    is told about this with #include <vfork.h>, but some compilers
9335    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9336    static variable whose address is put into a register that is
9337    clobbered by the vfork.  */
9338 static void
9339 #ifdef __cplusplus
9340 sparc_address_test (int arg)
9341 # else
9342 sparc_address_test (arg) int arg;
9343 #endif
9344 {
9345   static pid_t child;
9346   if (!child) {
9347     child = vfork ();
9348     if (child < 0) {
9349       perror ("vfork");
9350       _exit(2);
9351     }
9352     if (!child) {
9353       arg = getpid();
9354       write(-1, "", 0);
9355       _exit (arg);
9356     }
9357   }
9358 }
9359
9360 int
9361 main ()
9362 {
9363   pid_t parent = getpid ();
9364   pid_t child;
9365
9366   sparc_address_test (0);
9367
9368   child = vfork ();
9369
9370   if (child == 0) {
9371     /* Here is another test for sparc vfork register problems.  This
9372        test uses lots of local variables, at least as many local
9373        variables as main has allocated so far including compiler
9374        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9375        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9376        reuse the register of parent for one of the local variables,
9377        since it will think that parent can't possibly be used any more
9378        in this routine.  Assigning to the local variable will thus
9379        munge parent in the parent process.  */
9380     pid_t
9381       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9382       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9383     /* Convince the compiler that p..p7 are live; otherwise, it might
9384        use the same hardware register for all 8 local variables.  */
9385     if (p != p1 || p != p2 || p != p3 || p != p4
9386         || p != p5 || p != p6 || p != p7)
9387       _exit(1);
9388
9389     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9390        from child file descriptors.  If the child closes a descriptor
9391        before it execs or exits, this munges the parent's descriptor
9392        as well.  Test for this by closing stdout in the child.  */
9393     _exit(close(fileno(stdout)) != 0);
9394   } else {
9395     int status;
9396     struct stat st;
9397
9398     while (wait(&status) != child)
9399       ;
9400     return (
9401          /* Was there some problem with vforking?  */
9402          child < 0
9403
9404          /* Did the child fail?  (This shouldn't happen.)  */
9405          || status
9406
9407          /* Did the vfork/compiler bug occur?  */
9408          || parent != getpid()
9409
9410          /* Did the file descriptor bug occur?  */
9411          || fstat(fileno(stdout), &st) != 0
9412          );
9413   }
9414 }
9415 _ACEOF
9416 if ac_fn_c_try_run "$LINENO"; then :
9417   ac_cv_func_vfork_works=yes
9418 else
9419   ac_cv_func_vfork_works=no
9420 fi
9421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9422   conftest.$ac_objext conftest.beam conftest.$ac_ext
9423 fi
9424
9425 fi
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9427 $as_echo "$ac_cv_func_vfork_works" >&6; }
9428
9429 fi;
9430 if test "x$ac_cv_func_fork_works" = xcross; then
9431   ac_cv_func_vfork_works=$ac_cv_func_vfork
9432   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9433 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9434 fi
9435
9436 if test "x$ac_cv_func_vfork_works" = xyes; then
9437
9438 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9439
9440 else
9441
9442 $as_echo "#define vfork fork" >>confdefs.h
9443
9444 fi
9445 if test "x$ac_cv_func_fork_works" = xyes; then
9446
9447 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9448
9449 fi
9450
9451
9452 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9453 # iconv() prototype.
9454
9455       if test "X$prefix" = "XNONE"; then
9456     acl_final_prefix="$ac_default_prefix"
9457   else
9458     acl_final_prefix="$prefix"
9459   fi
9460   if test "X$exec_prefix" = "XNONE"; then
9461     acl_final_exec_prefix='${prefix}'
9462   else
9463     acl_final_exec_prefix="$exec_prefix"
9464   fi
9465   acl_save_prefix="$prefix"
9466   prefix="$acl_final_prefix"
9467   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9468   prefix="$acl_save_prefix"
9469
9470
9471 # Check whether --with-gnu-ld was given.
9472 if test "${with_gnu_ld+set}" = set; then :
9473   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9474 else
9475   with_gnu_ld=no
9476 fi
9477
9478 # Prepare PATH_SEPARATOR.
9479 # The user is always right.
9480 if test "${PATH_SEPARATOR+set}" != set; then
9481   echo "#! /bin/sh" >conf$$.sh
9482   echo  "exit 0"   >>conf$$.sh
9483   chmod +x conf$$.sh
9484   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9485     PATH_SEPARATOR=';'
9486   else
9487     PATH_SEPARATOR=:
9488   fi
9489   rm -f conf$$.sh
9490 fi
9491 ac_prog=ld
9492 if test "$GCC" = yes; then
9493   # Check if gcc -print-prog-name=ld gives a path.
9494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9495 $as_echo_n "checking for ld used by GCC... " >&6; }
9496   case $host in
9497   *-*-mingw*)
9498     # gcc leaves a trailing carriage return which upsets mingw
9499     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9500   *)
9501     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9502   esac
9503   case $ac_prog in
9504     # Accept absolute paths.
9505     [\\/]* | [A-Za-z]:[\\/]*)
9506       re_direlt='/[^/][^/]*/\.\./'
9507       # Canonicalize the path of ld
9508       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9509       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9510         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9511       done
9512       test -z "$LD" && LD="$ac_prog"
9513       ;;
9514   "")
9515     # If it fails, then pretend we aren't using GCC.
9516     ac_prog=ld
9517     ;;
9518   *)
9519     # If it is relative, then search for the first ld in PATH.
9520     with_gnu_ld=unknown
9521     ;;
9522   esac
9523 elif test "$with_gnu_ld" = yes; then
9524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9525 $as_echo_n "checking for GNU ld... " >&6; }
9526 else
9527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9528 $as_echo_n "checking for non-GNU ld... " >&6; }
9529 fi
9530 if test "${acl_cv_path_LD+set}" = set; then :
9531   $as_echo_n "(cached) " >&6
9532 else
9533   if test -z "$LD"; then
9534   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9535   for ac_dir in $PATH; do
9536     test -z "$ac_dir" && ac_dir=.
9537     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9538       acl_cv_path_LD="$ac_dir/$ac_prog"
9539       # Check to see if the program is GNU ld.  I'd rather use --version,
9540       # but apparently some GNU ld's only accept -v.
9541       # Break only if it was the GNU/non-GNU ld that we prefer.
9542       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9543         test "$with_gnu_ld" != no && break
9544       else
9545         test "$with_gnu_ld" != yes && break
9546       fi
9547     fi
9548   done
9549   IFS="$ac_save_ifs"
9550 else
9551   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9552 fi
9553 fi
9554
9555 LD="$acl_cv_path_LD"
9556 if test -n "$LD"; then
9557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9558 $as_echo "$LD" >&6; }
9559 else
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562 fi
9563 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9565 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9566 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9567   $as_echo_n "(cached) " >&6
9568 else
9569   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9570 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9571   acl_cv_prog_gnu_ld=yes
9572 else
9573   acl_cv_prog_gnu_ld=no
9574 fi
9575 fi
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9577 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9578 with_gnu_ld=$acl_cv_prog_gnu_ld
9579
9580
9581
9582                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9583 $as_echo_n "checking for shared library run path origin... " >&6; }
9584 if test "${acl_cv_rpath+set}" = set; then :
9585   $as_echo_n "(cached) " >&6
9586 else
9587
9588     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9589     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9590     . ./conftest.sh
9591     rm -f ./conftest.sh
9592     acl_cv_rpath=done
9593
9594 fi
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9596 $as_echo "$acl_cv_rpath" >&6; }
9597   wl="$acl_cv_wl"
9598   libext="$acl_cv_libext"
9599   shlibext="$acl_cv_shlibext"
9600   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9601   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9602   hardcode_direct="$acl_cv_hardcode_direct"
9603   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9604     # Check whether --enable-rpath was given.
9605 if test "${enable_rpath+set}" = set; then :
9606   enableval=$enable_rpath; :
9607 else
9608   enable_rpath=yes
9609 fi
9610
9611
9612
9613
9614
9615
9616
9617
9618     use_additional=yes
9619
9620   acl_save_prefix="$prefix"
9621   prefix="$acl_final_prefix"
9622   acl_save_exec_prefix="$exec_prefix"
9623   exec_prefix="$acl_final_exec_prefix"
9624
9625     eval additional_includedir=\"$includedir\"
9626     eval additional_libdir=\"$libdir\"
9627
9628   exec_prefix="$acl_save_exec_prefix"
9629   prefix="$acl_save_prefix"
9630
9631
9632 # Check whether --with-libiconv-prefix was given.
9633 if test "${with_libiconv_prefix+set}" = set; then :
9634   withval=$with_libiconv_prefix;
9635     if test "X$withval" = "Xno"; then
9636       use_additional=no
9637     else
9638       if test "X$withval" = "X"; then
9639
9640   acl_save_prefix="$prefix"
9641   prefix="$acl_final_prefix"
9642   acl_save_exec_prefix="$exec_prefix"
9643   exec_prefix="$acl_final_exec_prefix"
9644
9645           eval additional_includedir=\"$includedir\"
9646           eval additional_libdir=\"$libdir\"
9647
9648   exec_prefix="$acl_save_exec_prefix"
9649   prefix="$acl_save_prefix"
9650
9651       else
9652         additional_includedir="$withval/include"
9653         additional_libdir="$withval/lib"
9654       fi
9655     fi
9656
9657 fi
9658
9659       LIBICONV=
9660   LTLIBICONV=
9661   INCICONV=
9662   rpathdirs=
9663   ltrpathdirs=
9664   names_already_handled=
9665   names_next_round='iconv '
9666   while test -n "$names_next_round"; do
9667     names_this_round="$names_next_round"
9668     names_next_round=
9669     for name in $names_this_round; do
9670       already_handled=
9671       for n in $names_already_handled; do
9672         if test "$n" = "$name"; then
9673           already_handled=yes
9674           break
9675         fi
9676       done
9677       if test -z "$already_handled"; then
9678         names_already_handled="$names_already_handled $name"
9679                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9680         eval value=\"\$HAVE_LIB$uppername\"
9681         if test -n "$value"; then
9682           if test "$value" = yes; then
9683             eval value=\"\$LIB$uppername\"
9684             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9685             eval value=\"\$LTLIB$uppername\"
9686             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9687           else
9688                                     :
9689           fi
9690         else
9691                               found_dir=
9692           found_la=
9693           found_so=
9694           found_a=
9695           if test $use_additional = yes; then
9696             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9697               found_dir="$additional_libdir"
9698               found_so="$additional_libdir/lib$name.$shlibext"
9699               if test -f "$additional_libdir/lib$name.la"; then
9700                 found_la="$additional_libdir/lib$name.la"
9701               fi
9702             else
9703               if test -f "$additional_libdir/lib$name.$libext"; then
9704                 found_dir="$additional_libdir"
9705                 found_a="$additional_libdir/lib$name.$libext"
9706                 if test -f "$additional_libdir/lib$name.la"; then
9707                   found_la="$additional_libdir/lib$name.la"
9708                 fi
9709               fi
9710             fi
9711           fi
9712           if test "X$found_dir" = "X"; then
9713             for x in $LDFLAGS $LTLIBICONV; do
9714
9715   acl_save_prefix="$prefix"
9716   prefix="$acl_final_prefix"
9717   acl_save_exec_prefix="$exec_prefix"
9718   exec_prefix="$acl_final_exec_prefix"
9719   eval x=\"$x\"
9720   exec_prefix="$acl_save_exec_prefix"
9721   prefix="$acl_save_prefix"
9722
9723               case "$x" in
9724                 -L*)
9725                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9726                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9727                     found_dir="$dir"
9728                     found_so="$dir/lib$name.$shlibext"
9729                     if test -f "$dir/lib$name.la"; then
9730                       found_la="$dir/lib$name.la"
9731                     fi
9732                   else
9733                     if test -f "$dir/lib$name.$libext"; then
9734                       found_dir="$dir"
9735                       found_a="$dir/lib$name.$libext"
9736                       if test -f "$dir/lib$name.la"; then
9737                         found_la="$dir/lib$name.la"
9738                       fi
9739                     fi
9740                   fi
9741                   ;;
9742               esac
9743               if test "X$found_dir" != "X"; then
9744                 break
9745               fi
9746             done
9747           fi
9748           if test "X$found_dir" != "X"; then
9749                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9750             if test "X$found_so" != "X"; then
9751                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9752                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9753               else
9754                                                                                 haveit=
9755                 for x in $ltrpathdirs; do
9756                   if test "X$x" = "X$found_dir"; then
9757                     haveit=yes
9758                     break
9759                   fi
9760                 done
9761                 if test -z "$haveit"; then
9762                   ltrpathdirs="$ltrpathdirs $found_dir"
9763                 fi
9764                                 if test "$hardcode_direct" = yes; then
9765                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9766                 else
9767                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9768                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9769                                                             haveit=
9770                     for x in $rpathdirs; do
9771                       if test "X$x" = "X$found_dir"; then
9772                         haveit=yes
9773                         break
9774                       fi
9775                     done
9776                     if test -z "$haveit"; then
9777                       rpathdirs="$rpathdirs $found_dir"
9778                     fi
9779                   else
9780                                                                                 haveit=
9781                     for x in $LDFLAGS $LIBICONV; do
9782
9783   acl_save_prefix="$prefix"
9784   prefix="$acl_final_prefix"
9785   acl_save_exec_prefix="$exec_prefix"
9786   exec_prefix="$acl_final_exec_prefix"
9787   eval x=\"$x\"
9788   exec_prefix="$acl_save_exec_prefix"
9789   prefix="$acl_save_prefix"
9790
9791                       if test "X$x" = "X-L$found_dir"; then
9792                         haveit=yes
9793                         break
9794                       fi
9795                     done
9796                     if test -z "$haveit"; then
9797                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9798                     fi
9799                     if test "$hardcode_minus_L" != no; then
9800                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9801                     else
9802                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9803                     fi
9804                   fi
9805                 fi
9806               fi
9807             else
9808               if test "X$found_a" != "X"; then
9809                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9810               else
9811                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9812               fi
9813             fi
9814                         additional_includedir=
9815             case "$found_dir" in
9816               */lib | */lib/)
9817                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9818                 additional_includedir="$basedir/include"
9819                 ;;
9820             esac
9821             if test "X$additional_includedir" != "X"; then
9822                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9823                 haveit=
9824                 if test "X$additional_includedir" = "X/usr/local/include"; then
9825                   if test -n "$GCC"; then
9826                     case $host_os in
9827                       linux*) haveit=yes;;
9828                     esac
9829                   fi
9830                 fi
9831                 if test -z "$haveit"; then
9832                   for x in $CPPFLAGS $INCICONV; do
9833
9834   acl_save_prefix="$prefix"
9835   prefix="$acl_final_prefix"
9836   acl_save_exec_prefix="$exec_prefix"
9837   exec_prefix="$acl_final_exec_prefix"
9838   eval x=\"$x\"
9839   exec_prefix="$acl_save_exec_prefix"
9840   prefix="$acl_save_prefix"
9841
9842                     if test "X$x" = "X-I$additional_includedir"; then
9843                       haveit=yes
9844                       break
9845                     fi
9846                   done
9847                   if test -z "$haveit"; then
9848                     if test -d "$additional_includedir"; then
9849                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9850                     fi
9851                   fi
9852                 fi
9853               fi
9854             fi
9855                         if test -n "$found_la"; then
9856                                                         save_libdir="$libdir"
9857               case "$found_la" in
9858                 */* | *\\*) . "$found_la" ;;
9859                 *) . "./$found_la" ;;
9860               esac
9861               libdir="$save_libdir"
9862                             for dep in $dependency_libs; do
9863                 case "$dep" in
9864                   -L*)
9865                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9866                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9867                       haveit=
9868                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9869                         if test -n "$GCC"; then
9870                           case $host_os in
9871                             linux*) haveit=yes;;
9872                           esac
9873                         fi
9874                       fi
9875                       if test -z "$haveit"; then
9876                         haveit=
9877                         for x in $LDFLAGS $LIBICONV; do
9878
9879   acl_save_prefix="$prefix"
9880   prefix="$acl_final_prefix"
9881   acl_save_exec_prefix="$exec_prefix"
9882   exec_prefix="$acl_final_exec_prefix"
9883   eval x=\"$x\"
9884   exec_prefix="$acl_save_exec_prefix"
9885   prefix="$acl_save_prefix"
9886
9887                           if test "X$x" = "X-L$additional_libdir"; then
9888                             haveit=yes
9889                             break
9890                           fi
9891                         done
9892                         if test -z "$haveit"; then
9893                           if test -d "$additional_libdir"; then
9894                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9895                           fi
9896                         fi
9897                         haveit=
9898                         for x in $LDFLAGS $LTLIBICONV; do
9899
9900   acl_save_prefix="$prefix"
9901   prefix="$acl_final_prefix"
9902   acl_save_exec_prefix="$exec_prefix"
9903   exec_prefix="$acl_final_exec_prefix"
9904   eval x=\"$x\"
9905   exec_prefix="$acl_save_exec_prefix"
9906   prefix="$acl_save_prefix"
9907
9908                           if test "X$x" = "X-L$additional_libdir"; then
9909                             haveit=yes
9910                             break
9911                           fi
9912                         done
9913                         if test -z "$haveit"; then
9914                           if test -d "$additional_libdir"; then
9915                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9916                           fi
9917                         fi
9918                       fi
9919                     fi
9920                     ;;
9921                   -R*)
9922                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9923                     if test "$enable_rpath" != no; then
9924                                                                   haveit=
9925                       for x in $rpathdirs; do
9926                         if test "X$x" = "X$dir"; then
9927                           haveit=yes
9928                           break
9929                         fi
9930                       done
9931                       if test -z "$haveit"; then
9932                         rpathdirs="$rpathdirs $dir"
9933                       fi
9934                                                                   haveit=
9935                       for x in $ltrpathdirs; do
9936                         if test "X$x" = "X$dir"; then
9937                           haveit=yes
9938                           break
9939                         fi
9940                       done
9941                       if test -z "$haveit"; then
9942                         ltrpathdirs="$ltrpathdirs $dir"
9943                       fi
9944                     fi
9945                     ;;
9946                   -l*)
9947                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9948                     ;;
9949                   *.la)
9950                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9951                     ;;
9952                   *)
9953                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9954                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9955                     ;;
9956                 esac
9957               done
9958             fi
9959           else
9960                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9961             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9962           fi
9963         fi
9964       fi
9965     done
9966   done
9967   if test "X$rpathdirs" != "X"; then
9968     if test -n "$hardcode_libdir_separator"; then
9969                         alldirs=
9970       for found_dir in $rpathdirs; do
9971         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9972       done
9973             acl_save_libdir="$libdir"
9974       libdir="$alldirs"
9975       eval flag=\"$hardcode_libdir_flag_spec\"
9976       libdir="$acl_save_libdir"
9977       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9978     else
9979             for found_dir in $rpathdirs; do
9980         acl_save_libdir="$libdir"
9981         libdir="$found_dir"
9982         eval flag=\"$hardcode_libdir_flag_spec\"
9983         libdir="$acl_save_libdir"
9984         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9985       done
9986     fi
9987   fi
9988   if test "X$ltrpathdirs" != "X"; then
9989             for found_dir in $ltrpathdirs; do
9990       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9991     done
9992   fi
9993
9994
9995 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
9996   ac_ext=cpp
9997 ac_cpp='$CXXCPP $CPPFLAGS'
9998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10001
10002
10003
10004
10005
10006
10007           am_save_CPPFLAGS="$CPPFLAGS"
10008
10009   for element in $INCICONV; do
10010     haveit=
10011     for x in $CPPFLAGS; do
10012
10013   acl_save_prefix="$prefix"
10014   prefix="$acl_final_prefix"
10015   acl_save_exec_prefix="$exec_prefix"
10016   exec_prefix="$acl_final_exec_prefix"
10017   eval x=\"$x\"
10018   exec_prefix="$acl_save_exec_prefix"
10019   prefix="$acl_save_prefix"
10020
10021       if test "X$x" = "X$element"; then
10022         haveit=yes
10023         break
10024       fi
10025     done
10026     if test -z "$haveit"; then
10027       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10028     fi
10029   done
10030
10031
10032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10033 $as_echo_n "checking for iconv... " >&6; }
10034 if test "${am_cv_func_iconv+set}" = set; then :
10035   $as_echo_n "(cached) " >&6
10036 else
10037
10038     am_cv_func_iconv="no, consider installing GNU libiconv"
10039     am_cv_lib_iconv=no
10040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h.  */
10042 #include <stdlib.h>
10043 #include <iconv.h>
10044 int
10045 main ()
10046 {
10047 iconv_t cd = iconv_open("","");
10048        iconv(cd,NULL,NULL,NULL,NULL);
10049        iconv_close(cd);
10050   ;
10051   return 0;
10052 }
10053 _ACEOF
10054 if ac_fn_cxx_try_link "$LINENO"; then :
10055   am_cv_func_iconv=yes
10056 fi
10057 rm -f core conftest.err conftest.$ac_objext \
10058     conftest$ac_exeext conftest.$ac_ext
10059     if test "$am_cv_func_iconv" != yes; then
10060       am_save_LIBS="$LIBS"
10061       LIBS="$LIBS $LIBICONV"
10062       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063 /* end confdefs.h.  */
10064 #include <stdlib.h>
10065 #include <iconv.h>
10066 int
10067 main ()
10068 {
10069 iconv_t cd = iconv_open("","");
10070          iconv(cd,NULL,NULL,NULL,NULL);
10071          iconv_close(cd);
10072   ;
10073   return 0;
10074 }
10075 _ACEOF
10076 if ac_fn_cxx_try_link "$LINENO"; then :
10077   am_cv_lib_iconv=yes
10078         am_cv_func_iconv=yes
10079 fi
10080 rm -f core conftest.err conftest.$ac_objext \
10081     conftest$ac_exeext conftest.$ac_ext
10082       LIBS="$am_save_LIBS"
10083     fi
10084
10085 fi
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10087 $as_echo "$am_cv_func_iconv" >&6; }
10088   if test "$am_cv_func_iconv" = yes; then
10089
10090 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10091
10092   fi
10093   if test "$am_cv_lib_iconv" = yes; then
10094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10095 $as_echo_n "checking how to link with libiconv... " >&6; }
10096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10097 $as_echo "$LIBICONV" >&6; }
10098   else
10099             CPPFLAGS="$am_save_CPPFLAGS"
10100     LIBICONV=
10101     LTLIBICONV=
10102   fi
10103
10104
10105
10106   if test "$am_cv_func_iconv" = yes; then
10107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10108 $as_echo_n "checking for iconv declaration... " >&6; }
10109     if test "${am_cv_proto_iconv+set}" = set; then :
10110   $as_echo_n "(cached) " >&6
10111 else
10112
10113       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h.  */
10115
10116 #include <stdlib.h>
10117 #include <iconv.h>
10118 extern
10119 #ifdef __cplusplus
10120 "C"
10121 #endif
10122 #if defined(__STDC__) || defined(__cplusplus)
10123 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10124 #else
10125 size_t iconv();
10126 #endif
10127
10128 int
10129 main ()
10130 {
10131
10132   ;
10133   return 0;
10134 }
10135 _ACEOF
10136 if ac_fn_cxx_try_compile "$LINENO"; then :
10137   am_cv_proto_iconv_arg1=""
10138 else
10139   am_cv_proto_iconv_arg1="const"
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142       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);"
10143 fi
10144
10145     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10147          }$am_cv_proto_iconv" >&5
10148 $as_echo "${ac_t:-
10149          }$am_cv_proto_iconv" >&6; }
10150
10151 cat >>confdefs.h <<_ACEOF
10152 #define ICONV_CONST $am_cv_proto_iconv_arg1
10153 _ACEOF
10154
10155   fi
10156
10157    ac_ext=c
10158 ac_cpp='$CPP $CPPFLAGS'
10159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10162
10163 else
10164
10165
10166
10167
10168
10169           am_save_CPPFLAGS="$CPPFLAGS"
10170
10171   for element in $INCICONV; do
10172     haveit=
10173     for x in $CPPFLAGS; do
10174
10175   acl_save_prefix="$prefix"
10176   prefix="$acl_final_prefix"
10177   acl_save_exec_prefix="$exec_prefix"
10178   exec_prefix="$acl_final_exec_prefix"
10179   eval x=\"$x\"
10180   exec_prefix="$acl_save_exec_prefix"
10181   prefix="$acl_save_prefix"
10182
10183       if test "X$x" = "X$element"; then
10184         haveit=yes
10185         break
10186       fi
10187     done
10188     if test -z "$haveit"; then
10189       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10190     fi
10191   done
10192
10193
10194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10195 $as_echo_n "checking for iconv... " >&6; }
10196 if test "${am_cv_func_iconv+set}" = set; then :
10197   $as_echo_n "(cached) " >&6
10198 else
10199
10200     am_cv_func_iconv="no, consider installing GNU libiconv"
10201     am_cv_lib_iconv=no
10202     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h.  */
10204 #include <stdlib.h>
10205 #include <iconv.h>
10206 int
10207 main ()
10208 {
10209 iconv_t cd = iconv_open("","");
10210        iconv(cd,NULL,NULL,NULL,NULL);
10211        iconv_close(cd);
10212   ;
10213   return 0;
10214 }
10215 _ACEOF
10216 if ac_fn_c_try_link "$LINENO"; then :
10217   am_cv_func_iconv=yes
10218 fi
10219 rm -f core conftest.err conftest.$ac_objext \
10220     conftest$ac_exeext conftest.$ac_ext
10221     if test "$am_cv_func_iconv" != yes; then
10222       am_save_LIBS="$LIBS"
10223       LIBS="$LIBS $LIBICONV"
10224       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h.  */
10226 #include <stdlib.h>
10227 #include <iconv.h>
10228 int
10229 main ()
10230 {
10231 iconv_t cd = iconv_open("","");
10232          iconv(cd,NULL,NULL,NULL,NULL);
10233          iconv_close(cd);
10234   ;
10235   return 0;
10236 }
10237 _ACEOF
10238 if ac_fn_c_try_link "$LINENO"; then :
10239   am_cv_lib_iconv=yes
10240         am_cv_func_iconv=yes
10241 fi
10242 rm -f core conftest.err conftest.$ac_objext \
10243     conftest$ac_exeext conftest.$ac_ext
10244       LIBS="$am_save_LIBS"
10245     fi
10246
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10249 $as_echo "$am_cv_func_iconv" >&6; }
10250   if test "$am_cv_func_iconv" = yes; then
10251
10252 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10253
10254   fi
10255   if test "$am_cv_lib_iconv" = yes; then
10256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10257 $as_echo_n "checking how to link with libiconv... " >&6; }
10258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10259 $as_echo "$LIBICONV" >&6; }
10260   else
10261             CPPFLAGS="$am_save_CPPFLAGS"
10262     LIBICONV=
10263     LTLIBICONV=
10264   fi
10265
10266
10267
10268   if test "$am_cv_func_iconv" = yes; then
10269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10270 $as_echo_n "checking for iconv declaration... " >&6; }
10271     if test "${am_cv_proto_iconv+set}" = set; then :
10272   $as_echo_n "(cached) " >&6
10273 else
10274
10275       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h.  */
10277
10278 #include <stdlib.h>
10279 #include <iconv.h>
10280 extern
10281 #ifdef __cplusplus
10282 "C"
10283 #endif
10284 #if defined(__STDC__) || defined(__cplusplus)
10285 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10286 #else
10287 size_t iconv();
10288 #endif
10289
10290 int
10291 main ()
10292 {
10293
10294   ;
10295   return 0;
10296 }
10297 _ACEOF
10298 if ac_fn_c_try_compile "$LINENO"; then :
10299   am_cv_proto_iconv_arg1=""
10300 else
10301   am_cv_proto_iconv_arg1="const"
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304       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);"
10305 fi
10306
10307     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10309          }$am_cv_proto_iconv" >&5
10310 $as_echo "${ac_t:-
10311          }$am_cv_proto_iconv" >&6; }
10312
10313 cat >>confdefs.h <<_ACEOF
10314 #define ICONV_CONST $am_cv_proto_iconv_arg1
10315 _ACEOF
10316
10317   fi
10318
10319 fi
10320
10321 # Until we have in-tree GNU iconv:
10322 LIBICONV_DEP=
10323
10324
10325
10326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10327 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10328 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10329   $as_echo_n "(cached) " >&6
10330 else
10331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h.  */
10333 #include <locale.h>
10334 int
10335 main ()
10336 {
10337 return LC_MESSAGES
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10343   am_cv_val_LC_MESSAGES=yes
10344 else
10345   am_cv_val_LC_MESSAGES=no
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext \
10348     conftest$ac_exeext conftest.$ac_ext
10349 fi
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10351 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10352   if test $am_cv_val_LC_MESSAGES = yes; then
10353
10354 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10355
10356   fi
10357
10358
10359
10360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10361 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10362 if test "${am_cv_langinfo_codeset+set}" = set; then :
10363   $as_echo_n "(cached) " >&6
10364 else
10365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h.  */
10367 #include <langinfo.h>
10368 int
10369 main ()
10370 {
10371 char* cs = nl_langinfo(CODESET);
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 if ac_fn_c_try_link "$LINENO"; then :
10377   am_cv_langinfo_codeset=yes
10378 else
10379   am_cv_langinfo_codeset=no
10380 fi
10381 rm -f core conftest.err conftest.$ac_objext \
10382     conftest$ac_exeext conftest.$ac_ext
10383
10384 fi
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10386 $as_echo "$am_cv_langinfo_codeset" >&6; }
10387   if test $am_cv_langinfo_codeset = yes; then
10388
10389 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10390
10391   fi
10392
10393
10394 # We will need to find libiberty.h and ansidecl.h
10395 saved_CFLAGS="$CFLAGS"
10396 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10397 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10398         strsignal strstr strverscmp \
10399         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10400         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
10401 do
10402   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10404 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10405 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10406   $as_echo_n "(cached) " >&6
10407 else
10408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h.  */
10410 #undef $ac_tr_decl
10411 #define $ac_tr_decl 1
10412
10413 #include "ansidecl.h"
10414 #include "system.h"
10415
10416 int
10417 main ()
10418 {
10419 #ifndef $ac_func
10420 char *(*pfn) = (char *(*)) $ac_func ;
10421 #endif
10422   ;
10423   return 0;
10424 }
10425 _ACEOF
10426 if ac_fn_c_try_compile "$LINENO"; then :
10427   eval "gcc_cv_have_decl_$ac_func=yes"
10428 else
10429   eval "gcc_cv_have_decl_$ac_func=no"
10430 fi
10431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432 fi
10433
10434 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10436 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10437 #define $ac_tr_decl 1
10438 _ACEOF
10439
10440 else
10441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10443 #define $ac_tr_decl 0
10444 _ACEOF
10445
10446 fi
10447
10448 done
10449
10450
10451 for ac_func in getrlimit setrlimit getrusage
10452 do
10453   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10455 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10456 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10457   $as_echo_n "(cached) " >&6
10458 else
10459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h.  */
10461 #undef $ac_tr_decl
10462 #define $ac_tr_decl 1
10463
10464 #include "ansidecl.h"
10465 #include "system.h"
10466 #ifdef HAVE_SYS_RESOURCE_H
10467 #include <sys/resource.h>
10468 #endif
10469
10470
10471 int
10472 main ()
10473 {
10474 #ifndef $ac_func
10475 char *(*pfn) = (char *(*)) $ac_func ;
10476 #endif
10477   ;
10478   return 0;
10479 }
10480 _ACEOF
10481 if ac_fn_c_try_compile "$LINENO"; then :
10482   eval "gcc_cv_have_decl_$ac_func=yes"
10483 else
10484   eval "gcc_cv_have_decl_$ac_func=no"
10485 fi
10486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10487 fi
10488
10489 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10491 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10492 #define $ac_tr_decl 1
10493 _ACEOF
10494
10495 else
10496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10498 #define $ac_tr_decl 0
10499 _ACEOF
10500
10501 fi
10502
10503 done
10504
10505
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h.  */
10508
10509 #include "ansidecl.h"
10510 #include "system.h"
10511 #ifdef HAVE_SYS_RESOURCE_H
10512 #include <sys/resource.h>
10513 #endif
10514
10515 int
10516 main ()
10517 {
10518 rlim_t l = 0;
10519   ;
10520   return 0;
10521 }
10522 _ACEOF
10523 if ac_fn_c_try_compile "$LINENO"; then :
10524
10525 else
10526
10527 $as_echo "#define rlim_t long" >>confdefs.h
10528
10529 fi
10530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10531
10532 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10533 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10534 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10535 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10536 for ac_func in ldgetname
10537 do
10538   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10540 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10541 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10542   $as_echo_n "(cached) " >&6
10543 else
10544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h.  */
10546 #undef $ac_tr_decl
10547 #define $ac_tr_decl 1
10548
10549 #include "ansidecl.h"
10550 #include "system.h"
10551 #ifdef HAVE_LDFCN_H
10552 #undef FREAD
10553 #undef FWRITE
10554 #include <ldfcn.h>
10555 #endif
10556
10557
10558 int
10559 main ()
10560 {
10561 #ifndef $ac_func
10562 char *(*pfn) = (char *(*)) $ac_func ;
10563 #endif
10564   ;
10565   return 0;
10566 }
10567 _ACEOF
10568 if ac_fn_c_try_compile "$LINENO"; then :
10569   eval "gcc_cv_have_decl_$ac_func=yes"
10570 else
10571   eval "gcc_cv_have_decl_$ac_func=no"
10572 fi
10573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574 fi
10575
10576 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10578 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10579 #define $ac_tr_decl 1
10580 _ACEOF
10581
10582 else
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10585 #define $ac_tr_decl 0
10586 _ACEOF
10587
10588 fi
10589
10590 done
10591
10592
10593 for ac_func in times
10594 do
10595   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10597 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10598 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10599   $as_echo_n "(cached) " >&6
10600 else
10601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h.  */
10603 #undef $ac_tr_decl
10604 #define $ac_tr_decl 1
10605
10606 #include "ansidecl.h"
10607 #include "system.h"
10608 #ifdef HAVE_SYS_TIMES_H
10609 #include <sys/times.h>
10610 #endif
10611
10612
10613 int
10614 main ()
10615 {
10616 #ifndef $ac_func
10617 char *(*pfn) = (char *(*)) $ac_func ;
10618 #endif
10619   ;
10620   return 0;
10621 }
10622 _ACEOF
10623 if ac_fn_c_try_compile "$LINENO"; then :
10624   eval "gcc_cv_have_decl_$ac_func=yes"
10625 else
10626   eval "gcc_cv_have_decl_$ac_func=no"
10627 fi
10628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10629 fi
10630
10631 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10633 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10634 #define $ac_tr_decl 1
10635 _ACEOF
10636
10637 else
10638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10640 #define $ac_tr_decl 0
10641 _ACEOF
10642
10643 fi
10644
10645 done
10646
10647
10648 for ac_func in sigaltstack
10649 do
10650   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10652 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10653 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10654   $as_echo_n "(cached) " >&6
10655 else
10656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h.  */
10658 #undef $ac_tr_decl
10659 #define $ac_tr_decl 1
10660
10661 #include "ansidecl.h"
10662 #include "system.h"
10663 #include <signal.h>
10664
10665
10666 int
10667 main ()
10668 {
10669 #ifndef $ac_func
10670 char *(*pfn) = (char *(*)) $ac_func ;
10671 #endif
10672   ;
10673   return 0;
10674 }
10675 _ACEOF
10676 if ac_fn_c_try_compile "$LINENO"; then :
10677   eval "gcc_cv_have_decl_$ac_func=yes"
10678 else
10679   eval "gcc_cv_have_decl_$ac_func=no"
10680 fi
10681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682 fi
10683
10684 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10686 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10687 #define $ac_tr_decl 1
10688 _ACEOF
10689
10690 else
10691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10693 #define $ac_tr_decl 0
10694 _ACEOF
10695
10696 fi
10697
10698 done
10699
10700
10701 # More time-related stuff.
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10703 $as_echo_n "checking for struct tms... " >&6; }
10704 if test "${ac_cv_struct_tms+set}" = set; then :
10705   $as_echo_n "(cached) " >&6
10706 else
10707
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h.  */
10710
10711 #include "ansidecl.h"
10712 #include "system.h"
10713 #ifdef HAVE_SYS_TIMES_H
10714 #include <sys/times.h>
10715 #endif
10716
10717 int
10718 main ()
10719 {
10720 struct tms tms;
10721   ;
10722   return 0;
10723 }
10724 _ACEOF
10725 if ac_fn_c_try_compile "$LINENO"; then :
10726   ac_cv_struct_tms=yes
10727 else
10728   ac_cv_struct_tms=no
10729 fi
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 fi
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10733 $as_echo "$ac_cv_struct_tms" >&6; }
10734 if test $ac_cv_struct_tms = yes; then
10735
10736 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10737
10738 fi
10739
10740 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10741 # revisit after autoconf 2.50.
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10743 $as_echo_n "checking for clock_t... " >&6; }
10744 if test "${gcc_cv_type_clock_t+set}" = set; then :
10745   $as_echo_n "(cached) " >&6
10746 else
10747
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h.  */
10750
10751 #include "ansidecl.h"
10752 #include "system.h"
10753
10754 int
10755 main ()
10756 {
10757 clock_t x;
10758   ;
10759   return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_compile "$LINENO"; then :
10763   gcc_cv_type_clock_t=yes
10764 else
10765   gcc_cv_type_clock_t=no
10766 fi
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 fi
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10770 $as_echo "$gcc_cv_type_clock_t" >&6; }
10771 if test $gcc_cv_type_clock_t = yes; then
10772
10773 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10774
10775 fi
10776
10777 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10778 CFLAGS="$saved_CFLAGS"
10779
10780 # Check whether --enable-initfini-array was given.
10781 if test "${enable_initfini_array+set}" = set; then :
10782   enableval=$enable_initfini_array;
10783 else
10784
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10786 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10787 if test "${gcc_cv_initfini_array+set}" = set; then :
10788   $as_echo_n "(cached) " >&6
10789 else
10790     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10791     if test "$cross_compiling" = yes; then :
10792   gcc_cv_initfini_array=no
10793 else
10794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h.  */
10796
10797 #ifndef __ELF__
10798 #error Not an ELF OS
10799 #endif
10800 #ifdef __ia64__
10801 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10802    if it can be used.  */
10803 static int x = -1;
10804 int main (void) { return x; }
10805 int foo (void) { x = 0; }
10806 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10807 #else
10808 extern void abort ();
10809 static int count;
10810
10811 static void
10812 init1005 ()
10813 {
10814   if (count != 0)
10815     abort ();
10816   count = 1005;
10817 }
10818 void (*const init_array1005) ()
10819   __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10820   = { init1005 };
10821 static void
10822 fini1005 ()
10823 {
10824   if (count != 1005)
10825     abort ();
10826 }
10827 void (*const fini_array1005) ()
10828   __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10829   = { fini1005 };
10830
10831 static void
10832 ctor1007 ()
10833 {
10834   if (count != 1005)
10835     abort ();
10836   count = 1007;
10837 }
10838 void (*const ctors1007) ()
10839   __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10840   = { ctor1007 };
10841 static void
10842 dtor1007 ()
10843 {
10844   if (count != 1007)
10845     abort ();
10846   count = 1005;
10847 }
10848 void (*const dtors1007) ()
10849   __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10850   = { dtor1007 };
10851
10852 static void
10853 init65530 ()
10854 {
10855   if (count != 1007)
10856     abort ();
10857   count = 65530;
10858 }
10859 void (*const init_array65530) ()
10860   __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10861   = { init65530 };
10862 static void
10863 fini65530 ()
10864 {
10865   if (count != 65530)
10866     abort ();
10867   count = 1007;
10868 }
10869 void (*const fini_array65530) ()
10870   __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10871   = { fini65530 };
10872
10873 static void
10874 ctor65535 ()
10875 {
10876   if (count != 65530)
10877     abort ();
10878   count = 65535;
10879 }
10880 void (*const ctors65535) ()
10881   __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10882   = { ctor65535 };
10883 static void
10884 dtor65535 ()
10885 {
10886   if (count != 65535)
10887     abort ();
10888   count = 65530;
10889 }
10890 void (*const dtors65535) ()
10891   __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10892   = { dtor65535 };
10893
10894 int
10895 main ()
10896 {
10897   if (count != 65535)
10898     abort ();
10899   return 0;
10900 }
10901 #endif
10902
10903 _ACEOF
10904 if ac_fn_c_try_run "$LINENO"; then :
10905   gcc_cv_initfini_array=yes
10906 else
10907   gcc_cv_initfini_array=no
10908 fi
10909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10910   conftest.$ac_objext conftest.beam conftest.$ac_ext
10911 fi
10912
10913    else
10914      { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10915 $as_echo_n "checking cross compile... guessing... " >&6; }
10916      gcc_cv_initfini_array=no
10917    fi
10918 fi
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10920 $as_echo "$gcc_cv_initfini_array" >&6; }
10921   enable_initfini_array=$gcc_cv_initfini_array
10922
10923 fi
10924
10925 if test $enable_initfini_array = yes; then
10926
10927 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10928
10929 fi
10930
10931 # mkdir takes a single argument on some systems.
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10933 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10934 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10935   $as_echo_n "(cached) " >&6
10936 else
10937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h.  */
10939
10940 #include <sys/types.h>
10941 #ifdef HAVE_SYS_STAT_H
10942 # include <sys/stat.h>
10943 #endif
10944 #ifdef HAVE_UNISTD_H
10945 # include <unistd.h>
10946 #endif
10947 #ifdef HAVE_DIRECT_H
10948 # include <direct.h>
10949 #endif
10950 int
10951 main ()
10952 {
10953 mkdir ("foo", 0);
10954   ;
10955   return 0;
10956 }
10957 _ACEOF
10958 if ac_fn_c_try_compile "$LINENO"; then :
10959   gcc_cv_mkdir_takes_one_arg=no
10960 else
10961   gcc_cv_mkdir_takes_one_arg=yes
10962 fi
10963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10964 fi
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10966 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10967 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10968
10969 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10970
10971 fi
10972
10973
10974 # File extensions
10975 manext='.1'
10976 objext='.o'
10977
10978
10979
10980 # With Setjmp/Longjmp based exception handling.
10981 # Check whether --enable-sjlj-exceptions was given.
10982 if test "${enable_sjlj_exceptions+set}" = set; then :
10983   enableval=$enable_sjlj_exceptions; case $target in
10984   *-*-hpux10*)
10985     if test $enableval != yes; then
10986       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10987 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10988       enableval=yes
10989     fi
10990     ;;
10991 esac
10992 force_sjlj_exceptions=yes
10993 else
10994   case $target in
10995   *-*-hpux10*)
10996     force_sjlj_exceptions=yes
10997     enableval=yes
10998     ;;
10999   *)
11000     force_sjlj_exceptions=no
11001     ;;
11002 esac
11003 fi
11004
11005 if test $force_sjlj_exceptions = yes; then
11006   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11007
11008 cat >>confdefs.h <<_ACEOF
11009 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11010 _ACEOF
11011
11012 fi
11013
11014 # --------------------------------------------------------
11015 # Build, host, and target specific configuration fragments
11016 # --------------------------------------------------------
11017
11018 # Collect build-machine-specific information.
11019 . ${srcdir}/config.build
11020
11021 # Collect host-machine-specific information.
11022 . ${srcdir}/config.host
11023
11024 target_gtfiles=
11025
11026 # Collect target-machine-specific information.
11027 . ${srcdir}/config.gcc
11028
11029 extra_objs="${host_extra_objs} ${extra_objs}"
11030 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11031
11032 # Default the target-machine variables that were not explicitly set.
11033 if test x"$tm_file" = x
11034 then tm_file=$cpu_type/$cpu_type.h; fi
11035
11036 if test x"$extra_headers" = x
11037 then extra_headers=; fi
11038
11039 if test x$md_file = x
11040 then md_file=$cpu_type/$cpu_type.md; fi
11041
11042 if test x$out_file = x
11043 then out_file=$cpu_type/$cpu_type.c; fi
11044
11045 if test x"$tmake_file" = x
11046 then tmake_file=$cpu_type/t-$cpu_type
11047 fi
11048
11049 if test x"$dwarf2" = xyes
11050 then tm_file="$tm_file tm-dwarf2.h"
11051 fi
11052
11053 # Say what files are being used for the output code and MD file.
11054 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11055 echo "Using \`$srcdir/config/$md_file' as machine description file."
11056
11057 # If any of the xm_file variables contain nonexistent files, warn
11058 # about them and drop them.
11059
11060 bx=
11061 for x in $build_xm_file; do
11062   if    test -f $srcdir/config/$x
11063   then      bx="$bx $x"
11064   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11065 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11066   fi
11067 done
11068 build_xm_file="$bx"
11069
11070 hx=
11071 for x in $host_xm_file; do
11072   if    test -f $srcdir/config/$x
11073   then      hx="$hx $x"
11074   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11075 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11076   fi
11077 done
11078 host_xm_file="$hx"
11079
11080 tx=
11081 for x in $xm_file; do
11082   if    test -f $srcdir/config/$x
11083   then      tx="$tx $x"
11084   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11085 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11086   fi
11087 done
11088 xm_file="$tx"
11089
11090 count=a
11091 for f in $tm_file; do
11092         count=${count}x
11093 done
11094 if test $count = ax; then
11095         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11096 else
11097         echo "Using the following target machine macro files:"
11098         for f in $tm_file; do
11099                 echo "  $srcdir/config/$f"
11100         done
11101 fi
11102
11103 if test x$need_64bit_hwint = xyes; then
11104
11105 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11106
11107 fi
11108
11109 if test x$use_long_long_for_widest_fast_int = xyes; then
11110
11111 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11112
11113 fi
11114
11115 count=a
11116 for f in $host_xm_file; do
11117         count=${count}x
11118 done
11119 if test $count = a; then
11120         :
11121 elif test $count = ax; then
11122         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11123 else
11124         echo "Using the following host machine macro files:"
11125         for f in $host_xm_file; do
11126                 echo "  $srcdir/config/$f"
11127         done
11128 fi
11129 echo "Using ${out_host_hook_obj} for host machine hooks."
11130
11131 if test "$host_xm_file" != "$build_xm_file"; then
11132         count=a
11133         for f in $build_xm_file; do
11134                 count=${count}x
11135         done
11136         if test $count = a; then
11137                 :
11138         elif test $count = ax; then
11139                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11140         else
11141                 echo "Using the following build machine macro files:"
11142                 for f in $build_xm_file; do
11143                         echo "  $srcdir/config/$f"
11144                 done
11145         fi
11146 fi
11147
11148 case ${host} in
11149   powerpc*-*-darwin*)
11150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11151 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11152 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11153   $as_echo_n "(cached) " >&6
11154 else
11155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h.  */
11157
11158 #include <sys/cdefs.h>
11159 #include <sys/signal.h>
11160 #include <ucontext.h>
11161 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11162
11163 _ACEOF
11164 if ac_fn_c_try_compile "$LINENO"; then :
11165   gcc_cv_mcontext_underscores=no
11166 else
11167   gcc_cv_mcontext_underscores=yes
11168 fi
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170 fi
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11172 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11173       if test $gcc_cv_mcontext_underscores = yes; then
11174
11175 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11176
11177       fi
11178     ;;
11179 esac
11180
11181 # ---------
11182 # Threading
11183 # ---------
11184
11185 # Check if a valid thread package
11186 case ${enable_threads} in
11187   "" | no)
11188     # No threads
11189     target_thread_file='single'
11190     ;;
11191   yes)
11192     # default
11193     target_thread_file='single'
11194     ;;
11195   aix | dce | lynx | mipssde | posix | rtems | \
11196   single | tpf | vxworks | win32)
11197     target_thread_file=${enable_threads}
11198     ;;
11199   *)
11200     echo "${enable_threads} is an unknown thread package" 1>&2
11201     exit 1
11202     ;;
11203 esac
11204
11205 if test x${thread_file} = x; then
11206   # No thread file set by target-specific clauses in config.gcc,
11207   # so use file chosen by default logic above
11208   thread_file=${target_thread_file}
11209 fi
11210
11211 # Make gthr-default.h if we have a thread file.
11212 gthread_flags=
11213 if test $thread_file != single; then
11214   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11215   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11216     rm -f gthr-default.h-t
11217   else
11218     mv -f gthr-default.h-t gthr-default.h
11219   fi
11220   gthread_flags=-DHAVE_GTHR_DEFAULT
11221 fi
11222
11223
11224 # --------
11225 # UNSORTED
11226 # --------
11227
11228 use_cxa_atexit=no
11229 if test x$enable___cxa_atexit = xyes || \
11230    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11231   if test x$host = x$target; then
11232     case $host in
11233       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11234       # keyed to flag_use_cxa_atexit
11235       *-*-mingw32*)
11236         use_cxa_atexit=yes
11237         ;;
11238       *)
11239         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11240 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11241   use_cxa_atexit=yes
11242 else
11243   echo "__cxa_atexit can't be enabled on this target"
11244 fi
11245
11246         ;;
11247     esac
11248   else
11249     # We can't check for __cxa_atexit when building a cross, so assume
11250     # it is available
11251     use_cxa_atexit=yes
11252   fi
11253   if test x$use_cxa_atexit = xyes; then
11254
11255 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11256
11257   fi
11258 fi
11259
11260 # Look for a file containing extra machine modes.
11261 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11262   extra_modes_file='$(srcdir)'/config/${extra_modes}
11263
11264
11265 cat >>confdefs.h <<_ACEOF
11266 #define EXTRA_MODES_FILE "config/$extra_modes"
11267 _ACEOF
11268
11269 fi
11270
11271 # Convert extra_options into a form suitable for Makefile use.
11272 extra_opt_files=
11273 all_opt_files=
11274 for f in $extra_options; do
11275   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11276   all_opt_files="$all_opt_files $srcdir/config/$f"
11277 done
11278
11279
11280 # auto-host.h is the file containing items generated by autoconf and is
11281 # the first file included by config.h.
11282 # If host=build, it is correct to have bconfig include auto-host.h
11283 # as well.  If host!=build, we are in error and need to do more
11284 # work to find out the build config parameters.
11285 if test x$host = x$build
11286 then
11287         build_auto=auto-host.h
11288 else
11289         # We create a subdir, then run autoconf in the subdir.
11290         # To prevent recursion we set host and build for the new
11291         # invocation of configure to the build for this invocation
11292         # of configure.
11293         tempdir=build.$$
11294         rm -rf $tempdir
11295         mkdir $tempdir
11296         cd $tempdir
11297         case ${srcdir} in
11298         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11299         *) realsrcdir=../${srcdir};;
11300         esac
11301         saved_CFLAGS="${CFLAGS}"
11302         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11303         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11304         ${realsrcdir}/configure \
11305                 --enable-languages=${enable_languages-all} \
11306                 --target=$target_alias --host=$build_alias --build=$build_alias
11307         CFLAGS="${saved_CFLAGS}"
11308
11309         # We just finished tests for the build machine, so rename
11310         # the file auto-build.h in the gcc directory.
11311         mv auto-host.h ../auto-build.h
11312         cd ..
11313         rm -rf $tempdir
11314         build_auto=auto-build.h
11315 fi
11316
11317
11318 tm_file="${tm_file} defaults.h"
11319 tm_p_file="${tm_p_file} tm-preds.h"
11320 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11321 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11322 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11323 # put this back in temporarily.
11324 xm_file="auto-host.h ansidecl.h ${xm_file}"
11325
11326 # --------
11327 # UNSORTED
11328 # --------
11329
11330 # Compile in configure arguments.
11331 if test -f configargs.h ; then
11332         # Being re-configured.
11333         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11334         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11335 else
11336         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11337 fi
11338
11339 # Double all backslashes and backslash all quotes to turn
11340 # gcc_config_arguments into a C string.
11341 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11342 $gcc_config_arguments
11343 EOF
11344 gcc_config_arguments_str=`cat conftest.out`
11345 rm -f conftest.out
11346
11347 cat > configargs.h <<EOF
11348 /* Generated automatically. */
11349 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11350 static const char thread_model[] = "$thread_file";
11351
11352 static const struct {
11353   const char *name, *value;
11354 } configure_default_options[] = $configure_default_options;
11355 EOF
11356
11357 gcc_BASEVER=`cat $srcdir/BASE-VER`
11358 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11359 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11360 if test -f $srcdir/REVISION ; then
11361         gcc_REVISION=`cat $srcdir/REVISION`
11362 else
11363         gcc_REVISION=""
11364 fi
11365 cat > plugin-version.h <<EOF
11366 #include "configargs.h"
11367
11368 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11369 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11370 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11371 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11372
11373 static char basever[] = "$gcc_BASEVER";
11374 static char datestamp[] = "$gcc_DATESTAMP";
11375 static char devphase[] = "$gcc_DEVPHASE";
11376 static char revision[] = "$gcc_REVISION";
11377
11378 /* FIXME plugins: We should make the version information more precise.
11379    One way to do is to add a checksum. */
11380
11381 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11382                                                 devphase, revision,
11383                                                 configuration_arguments};
11384 EOF
11385
11386 # Internationalization
11387 # If we haven't got the data from the intl directory,
11388 # assume NLS is disabled.
11389 USE_NLS=no
11390 LIBINTL=
11391 LIBINTL_DEP=
11392 INCINTL=
11393 XGETTEXT=
11394 GMSGFMT=
11395 POSUB=
11396
11397 if test -f  ../intl/config.intl; then
11398   .  ../intl/config.intl
11399 fi
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11401 $as_echo_n "checking whether NLS is requested... " >&6; }
11402 if test x"$USE_NLS" != xyes; then
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405 else
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11407 $as_echo "yes" >&6; }
11408
11409 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11410
11411
11412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11413 $as_echo_n "checking for catalogs to be installed... " >&6; }
11414   # Look for .po and .gmo files in the source directory.
11415   CATALOGS=
11416   XLINGUAS=
11417   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11418     # If there aren't any .gmo files the shell will give us the
11419     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11420     # weeded out.
11421     case "$cat" in *\**)
11422       continue;;
11423     esac
11424     # The quadruple backslash is collapsed to a double backslash
11425     # by the backticks, then collapsed again by the double quotes,
11426     # leaving us with one backslash in the sed expression (right
11427     # before the dot that mustn't act as a wildcard).
11428     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11429     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11430     # The user is allowed to set LINGUAS to a list of languages to
11431     # install catalogs for.  If it's empty that means "all of them."
11432     if test "x$LINGUAS" = x; then
11433       CATALOGS="$CATALOGS $cat"
11434       XLINGUAS="$XLINGUAS $lang"
11435     else
11436       case "$LINGUAS" in *$lang*)
11437         CATALOGS="$CATALOGS $cat"
11438         XLINGUAS="$XLINGUAS $lang"
11439         ;;
11440       esac
11441     fi
11442   done
11443   LINGUAS="$XLINGUAS"
11444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11445 $as_echo "$LINGUAS" >&6; }
11446
11447
11448     DATADIRNAME=share
11449
11450   INSTOBJEXT=.mo
11451
11452   GENCAT=gencat
11453
11454   CATOBJEXT=.gmo
11455
11456 fi
11457
11458 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11459 # -liconv on the link line twice.
11460 case "$LIBINTL" in *$LIBICONV*)
11461         LIBICONV= ;;
11462 esac
11463
11464 # Check whether --enable-secureplt was given.
11465 if test "${enable_secureplt+set}" = set; then :
11466   enableval=$enable_secureplt;
11467 fi
11468
11469
11470 # Check whether --enable-leading-mingw64-underscores was given.
11471 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11472   enableval=$enable_leading_mingw64_underscores;
11473 fi
11474
11475 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11476
11477 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11478
11479 fi
11480
11481 # Check whether --enable-cld was given.
11482 if test "${enable_cld+set}" = set; then :
11483   enableval=$enable_cld;
11484 else
11485   enable_cld=no
11486 fi
11487
11488
11489 # Check whether --enable-frame-pointer was given.
11490 if test "${enable_frame_pointer+set}" = set; then :
11491   enableval=$enable_frame_pointer;
11492 else
11493
11494 case $target_os in
11495 linux* | darwin[8912]*)
11496   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11497   # DWARF2.
11498   enable_frame_pointer=no
11499   ;;
11500 *)
11501   enable_frame_pointer=yes
11502   ;;
11503 esac
11504
11505 fi
11506
11507
11508 # Windows32 Registry support for specifying GCC installation paths.
11509 # Check whether --enable-win32-registry was given.
11510 if test "${enable_win32_registry+set}" = set; then :
11511   enableval=$enable_win32_registry;
11512 fi
11513
11514
11515 case $host_os in
11516   win32 | pe | cygwin* | mingw32* | uwin*)
11517     if test "x$enable_win32_registry" != xno; then
11518       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11519 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11520 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11521   $as_echo_n "(cached) " >&6
11522 else
11523   ac_func_search_save_LIBS=$LIBS
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h.  */
11526
11527 /* Override any GCC internal prototype to avoid an error.
11528    Use char because int might match the return type of a GCC
11529    builtin and then its argument prototype would still apply.  */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char RegOpenKeyExA ();
11534 int
11535 main ()
11536 {
11537 return RegOpenKeyExA ();
11538   ;
11539   return 0;
11540 }
11541 _ACEOF
11542 for ac_lib in '' advapi32; do
11543   if test -z "$ac_lib"; then
11544     ac_res="none required"
11545   else
11546     ac_res=-l$ac_lib
11547     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11548   fi
11549   if ac_fn_c_try_link "$LINENO"; then :
11550   ac_cv_search_RegOpenKeyExA=$ac_res
11551 fi
11552 rm -f core conftest.err conftest.$ac_objext \
11553     conftest$ac_exeext
11554   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11555   break
11556 fi
11557 done
11558 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11559
11560 else
11561   ac_cv_search_RegOpenKeyExA=no
11562 fi
11563 rm conftest.$ac_ext
11564 LIBS=$ac_func_search_save_LIBS
11565 fi
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11567 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11568 ac_res=$ac_cv_search_RegOpenKeyExA
11569 if test "$ac_res" != no; then :
11570   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11571
11572 else
11573   enable_win32_registry=no
11574 fi
11575
11576     fi
11577
11578     if test "x$enable_win32_registry" != xno; then
11579
11580 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11581
11582
11583       if test "x$enable_win32_registry" != xyes \
11584          && test "x$enable_win32_registry" != x; then
11585
11586 cat >>confdefs.h <<_ACEOF
11587 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11588 _ACEOF
11589
11590       fi
11591     fi
11592   ;;
11593 esac
11594
11595 # Get an absolute path to the GCC top-level source directory
11596 holddir=`${PWDCMD-pwd}`
11597 cd $srcdir
11598 topdir=`${PWDCMD-pwd}`
11599 cd $holddir
11600
11601 # Conditionalize the makefile for this host machine.
11602 xmake_file=
11603 for f in ${host_xmake_file}
11604 do
11605         if test -f ${srcdir}/config/$f
11606         then
11607                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11608         fi
11609 done
11610
11611 # Conditionalize the makefile for this target machine.
11612 tmake_file_=
11613 for f in ${tmake_file}
11614 do
11615         if test -f ${srcdir}/config/$f
11616         then
11617                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11618         fi
11619 done
11620 tmake_file="${tmake_file_}"
11621
11622 out_object_file=`basename $out_file .c`.o
11623 common_out_object_file=`basename $common_out_file .c`.o
11624
11625 tm_file_list="options.h"
11626 tm_include_list="options.h insn-constants.h"
11627 for f in $tm_file; do
11628   case $f in
11629     ./* )
11630        f=`echo $f | sed 's/^..//'`
11631        tm_file_list="${tm_file_list} $f"
11632        tm_include_list="${tm_include_list} $f"
11633        ;;
11634     defaults.h )
11635        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11636        tm_include_list="${tm_include_list} $f"
11637        ;;
11638     * )
11639        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11640        tm_include_list="${tm_include_list} config/$f"
11641        ;;
11642   esac
11643 done
11644
11645 libgcc_tm_file_list=
11646 libgcc_tm_include_list=
11647 for f in $libgcc_tm_file; do
11648   libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11649   libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11650 done
11651
11652 tm_p_file_list=
11653 tm_p_include_list=
11654 for f in $tm_p_file; do
11655   case $f in
11656     tm-preds.h )
11657        tm_p_file_list="${tm_p_file_list} $f"
11658        tm_p_include_list="${tm_p_include_list} $f"
11659        ;;
11660     * )
11661        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11662        tm_p_include_list="${tm_p_include_list} config/$f"
11663   esac
11664 done
11665
11666 xm_file_list=
11667 xm_include_list=
11668 for f in $xm_file; do
11669   case $f in
11670     ansidecl.h )
11671        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11672        xm_include_list="${xm_include_list} $f"
11673        ;;
11674     auto-host.h )
11675        xm_file_list="${xm_file_list} $f"
11676        xm_include_list="${xm_include_list} $f"
11677        ;;
11678     * )
11679        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11680        xm_include_list="${xm_include_list} config/$f"
11681        ;;
11682   esac
11683 done
11684
11685 host_xm_file_list=
11686 host_xm_include_list=
11687 for f in $host_xm_file; do
11688   case $f in
11689     ansidecl.h )
11690        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11691        host_xm_include_list="${host_xm_include_list} $f"
11692        ;;
11693     auto-host.h )
11694        host_xm_file_list="${host_xm_file_list} $f"
11695        host_xm_include_list="${host_xm_include_list} $f"
11696        ;;
11697     * )
11698        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11699        host_xm_include_list="${host_xm_include_list} config/$f"
11700        ;;
11701   esac
11702 done
11703
11704 build_xm_file_list=
11705 for f in $build_xm_file; do
11706   case $f in
11707     ansidecl.h )
11708        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11709        build_xm_include_list="${build_xm_include_list} $f"
11710        ;;
11711     auto-build.h | auto-host.h )
11712        build_xm_file_list="${build_xm_file_list} $f"
11713        build_xm_include_list="${build_xm_include_list} $f"
11714        ;;
11715     * )
11716        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11717        build_xm_include_list="${build_xm_include_list} config/$f"
11718        ;;
11719   esac
11720 done
11721
11722 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11723 # cross-compiler which does not use the native headers and libraries.
11724 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11725 CROSS=
11726 ALL=all.internal
11727 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11728
11729 if test "x$with_build_sysroot" != x; then
11730   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11731 else
11732   # This value is used, even on a native system, because
11733   # CROSS_SYSTEM_HEADER_DIR is just
11734   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11735   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11736 fi
11737
11738 if test x$host != x$target
11739 then
11740         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11741         ALL=all.cross
11742         SYSTEM_HEADER_DIR=$build_system_header_dir
11743         case "$host","$target" in
11744         # Darwin crosses can use the host system's libraries and headers,
11745         # because of the fat library support.  Of course, it must be the
11746         # same version of Darwin on both sides.  Allow the user to
11747         # just say --target=foo-darwin without a version number to mean
11748         # "the version on this system".
11749             *-*-darwin*,*-*-darwin*)
11750                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11751                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11752                 if test $hostos = $targetos -o $targetos = darwin ; then
11753                     CROSS=
11754                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11755                     with_headers=yes
11756                 fi
11757                 ;;
11758
11759             i?86-*-*,x86_64-*-* \
11760             | powerpc*-*-*,powerpc64*-*-*)
11761                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11762         esac
11763
11764         case $target in
11765                 *-*-mingw*)
11766                         if test "x$with_headers" = x; then
11767                                 with_headers=yes
11768                         fi
11769                         ;;
11770                 *)
11771                         ;;
11772         esac
11773 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11774         SYSTEM_HEADER_DIR=$build_system_header_dir
11775 fi
11776
11777 # If this is a cross-compiler that does not
11778 # have its own set of headers then define
11779 # inhibit_libc
11780
11781 # If this is using newlib, without having the headers available now,
11782 # then define inhibit_libc in LIBGCC2_CFLAGS.
11783 # This prevents libgcc2 from containing any code which requires libc
11784 # support.
11785 : ${inhibit_libc=false}
11786 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11787        test x$with_newlib = xyes ; } &&
11788      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11789        inhibit_libc=true
11790 fi
11791
11792
11793 # When building gcc with a cross-compiler, we need to adjust things so
11794 # that the generator programs are still built with the native compiler.
11795 # Also, we cannot run fixincludes.
11796
11797 # These are the normal (build=host) settings:
11798 CC_FOR_BUILD='$(CC)'
11799 BUILD_CFLAGS='$(ALL_CFLAGS)'
11800 BUILD_LDFLAGS='$(LDFLAGS)'
11801 STMP_FIXINC=stmp-fixinc
11802
11803 # And these apply if build != host, or we are generating coverage data
11804 if test x$build != x$host || test "x$coverage_flags" != x
11805 then
11806     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11807     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11808 fi
11809
11810 # Expand extra_headers to include complete path.
11811 # This substitutes for lots of t-* files.
11812 extra_headers_list=
11813 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11814 for file in ${extra_headers} ; do
11815   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11816 done
11817
11818 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11819 if test x"$use_gcc_tgmath" = xyes
11820 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11821 fi
11822
11823 # Define collect2 in Makefile.
11824 case $host_can_use_collect2 in
11825   no) collect2= ;;
11826   *) collect2='collect2$(exeext)' ;;
11827 esac
11828
11829
11830 # Add a definition of USE_COLLECT2 if system wants one.
11831 case $use_collect2 in
11832   no) use_collect2= ;;
11833   "") ;;
11834   *)
11835     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11836     xm_defines="${xm_defines} USE_COLLECT2"
11837     case $host_can_use_collect2 in
11838       no)
11839         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11840         ;;
11841     esac
11842     ;;
11843 esac
11844
11845
11846 cat >>confdefs.h <<_ACEOF
11847 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11848 _ACEOF
11849
11850
11851 # ---------------------------
11852 # Assembler & linker features
11853 # ---------------------------
11854
11855 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11856 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11857 # However when ld-new is first executed from the build tree, libtool will
11858 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11859 # to the build tree.  While doing this we need to use the previous-stage
11860 # linker, or we have an infinite loop.  The presence of a shell script as
11861 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11862 # the gcc/collect-ld script.  So we need to know how libtool works, or
11863 # exec-tool will fail.
11864
11865
11866 case `pwd` in
11867   *\ * | *\     *)
11868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11869 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11870 esac
11871
11872
11873
11874 macro_version='2.2.7a'
11875 macro_revision='1.3134'
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889 ltmain="$ac_aux_dir/ltmain.sh"
11890
11891 # Backslashify metacharacters that are still active within
11892 # double-quoted strings.
11893 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11894
11895 # Same as above, but do not quote variable references.
11896 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11897
11898 # Sed substitution to delay expansion of an escaped shell variable in a
11899 # double_quote_subst'ed string.
11900 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11901
11902 # Sed substitution to delay expansion of an escaped single quote.
11903 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11904
11905 # Sed substitution to avoid accidental globbing in evaled expressions
11906 no_glob_subst='s/\*/\\\*/g'
11907
11908 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11909 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11910 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11911
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11913 $as_echo_n "checking how to print strings... " >&6; }
11914 # Test print first, because it will be a builtin if present.
11915 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11916    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11917   ECHO='print -r --'
11918 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11919   ECHO='printf %s\n'
11920 else
11921   # Use this function as a fallback that always works.
11922   func_fallback_echo ()
11923   {
11924     eval 'cat <<_LTECHO_EOF
11925 $1
11926 _LTECHO_EOF'
11927   }
11928   ECHO='func_fallback_echo'
11929 fi
11930
11931 # func_echo_all arg...
11932 # Invoke $ECHO with all args, space-separated.
11933 func_echo_all ()
11934 {
11935     $ECHO ""
11936 }
11937
11938 case "$ECHO" in
11939   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11940 $as_echo "printf" >&6; } ;;
11941   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11942 $as_echo "print -r" >&6; } ;;
11943   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11944 $as_echo "cat" >&6; } ;;
11945 esac
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11961 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11962 if test "${ac_cv_path_SED+set}" = set; then :
11963   $as_echo_n "(cached) " >&6
11964 else
11965             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11966      for ac_i in 1 2 3 4 5 6 7; do
11967        ac_script="$ac_script$as_nl$ac_script"
11968      done
11969      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11970      { ac_script=; unset ac_script;}
11971      if test -z "$SED"; then
11972   ac_path_SED_found=false
11973   # Loop through the user's path and test for each of PROGNAME-LIST
11974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11976 do
11977   IFS=$as_save_IFS
11978   test -z "$as_dir" && as_dir=.
11979     for ac_prog in sed gsed; do
11980     for ac_exec_ext in '' $ac_executable_extensions; do
11981       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11982       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11983 # Check for GNU ac_path_SED and select it if it is found.
11984   # Check for GNU $ac_path_SED
11985 case `"$ac_path_SED" --version 2>&1` in
11986 *GNU*)
11987   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11988 *)
11989   ac_count=0
11990   $as_echo_n 0123456789 >"conftest.in"
11991   while :
11992   do
11993     cat "conftest.in" "conftest.in" >"conftest.tmp"
11994     mv "conftest.tmp" "conftest.in"
11995     cp "conftest.in" "conftest.nl"
11996     $as_echo '' >> "conftest.nl"
11997     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11998     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11999     as_fn_arith $ac_count + 1 && ac_count=$as_val
12000     if test $ac_count -gt ${ac_path_SED_max-0}; then
12001       # Best one so far, save it but keep looking for a better one
12002       ac_cv_path_SED="$ac_path_SED"
12003       ac_path_SED_max=$ac_count
12004     fi
12005     # 10*(2^10) chars as input seems more than enough
12006     test $ac_count -gt 10 && break
12007   done
12008   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12009 esac
12010
12011       $ac_path_SED_found && break 3
12012     done
12013   done
12014   done
12015 IFS=$as_save_IFS
12016   if test -z "$ac_cv_path_SED"; then
12017     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12018   fi
12019 else
12020   ac_cv_path_SED=$SED
12021 fi
12022
12023 fi
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12025 $as_echo "$ac_cv_path_SED" >&6; }
12026  SED="$ac_cv_path_SED"
12027   rm -f conftest.sed
12028
12029 test -z "$SED" && SED=sed
12030 Xsed="$SED -e 1s/^X//"
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12043 $as_echo_n "checking for fgrep... " >&6; }
12044 if test "${ac_cv_path_FGREP+set}" = set; then :
12045   $as_echo_n "(cached) " >&6
12046 else
12047   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12048    then ac_cv_path_FGREP="$GREP -F"
12049    else
12050      if test -z "$FGREP"; then
12051   ac_path_FGREP_found=false
12052   # Loop through the user's path and test for each of PROGNAME-LIST
12053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12055 do
12056   IFS=$as_save_IFS
12057   test -z "$as_dir" && as_dir=.
12058     for ac_prog in fgrep; do
12059     for ac_exec_ext in '' $ac_executable_extensions; do
12060       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12061       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12062 # Check for GNU ac_path_FGREP and select it if it is found.
12063   # Check for GNU $ac_path_FGREP
12064 case `"$ac_path_FGREP" --version 2>&1` in
12065 *GNU*)
12066   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12067 *)
12068   ac_count=0
12069   $as_echo_n 0123456789 >"conftest.in"
12070   while :
12071   do
12072     cat "conftest.in" "conftest.in" >"conftest.tmp"
12073     mv "conftest.tmp" "conftest.in"
12074     cp "conftest.in" "conftest.nl"
12075     $as_echo 'FGREP' >> "conftest.nl"
12076     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12077     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12078     as_fn_arith $ac_count + 1 && ac_count=$as_val
12079     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12080       # Best one so far, save it but keep looking for a better one
12081       ac_cv_path_FGREP="$ac_path_FGREP"
12082       ac_path_FGREP_max=$ac_count
12083     fi
12084     # 10*(2^10) chars as input seems more than enough
12085     test $ac_count -gt 10 && break
12086   done
12087   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12088 esac
12089
12090       $ac_path_FGREP_found && break 3
12091     done
12092   done
12093   done
12094 IFS=$as_save_IFS
12095   if test -z "$ac_cv_path_FGREP"; then
12096     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12097   fi
12098 else
12099   ac_cv_path_FGREP=$FGREP
12100 fi
12101
12102    fi
12103 fi
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12105 $as_echo "$ac_cv_path_FGREP" >&6; }
12106  FGREP="$ac_cv_path_FGREP"
12107
12108
12109 test -z "$GREP" && GREP=grep
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129 # Check whether --with-gnu-ld was given.
12130 if test "${with_gnu_ld+set}" = set; then :
12131   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12132 else
12133   with_gnu_ld=no
12134 fi
12135
12136 ac_prog=ld
12137 if test "$GCC" = yes; then
12138   # Check if gcc -print-prog-name=ld gives a path.
12139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12140 $as_echo_n "checking for ld used by $CC... " >&6; }
12141   case $host in
12142   *-*-mingw*)
12143     # gcc leaves a trailing carriage return which upsets mingw
12144     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12145   *)
12146     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12147   esac
12148   case $ac_prog in
12149     # Accept absolute paths.
12150     [\\/]* | ?:[\\/]*)
12151       re_direlt='/[^/][^/]*/\.\./'
12152       # Canonicalize the pathname of ld
12153       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12154       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12155         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12156       done
12157       test -z "$LD" && LD="$ac_prog"
12158       ;;
12159   "")
12160     # If it fails, then pretend we aren't using GCC.
12161     ac_prog=ld
12162     ;;
12163   *)
12164     # If it is relative, then search for the first ld in PATH.
12165     with_gnu_ld=unknown
12166     ;;
12167   esac
12168 elif test "$with_gnu_ld" = yes; then
12169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12170 $as_echo_n "checking for GNU ld... " >&6; }
12171 else
12172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12173 $as_echo_n "checking for non-GNU ld... " >&6; }
12174 fi
12175 if test "${lt_cv_path_LD+set}" = set; then :
12176   $as_echo_n "(cached) " >&6
12177 else
12178   if test -z "$LD"; then
12179   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12180   for ac_dir in $PATH; do
12181     IFS="$lt_save_ifs"
12182     test -z "$ac_dir" && ac_dir=.
12183     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12184       lt_cv_path_LD="$ac_dir/$ac_prog"
12185       # Check to see if the program is GNU ld.  I'd rather use --version,
12186       # but apparently some variants of GNU ld only accept -v.
12187       # Break only if it was the GNU/non-GNU ld that we prefer.
12188       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12189       *GNU* | *'with BFD'*)
12190         test "$with_gnu_ld" != no && break
12191         ;;
12192       *)
12193         test "$with_gnu_ld" != yes && break
12194         ;;
12195       esac
12196     fi
12197   done
12198   IFS="$lt_save_ifs"
12199 else
12200   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12201 fi
12202 fi
12203
12204 LD="$lt_cv_path_LD"
12205 if test -n "$LD"; then
12206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12207 $as_echo "$LD" >&6; }
12208 else
12209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12211 fi
12212 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12214 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12215 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12216   $as_echo_n "(cached) " >&6
12217 else
12218   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12219 case `$LD -v 2>&1 </dev/null` in
12220 *GNU* | *'with BFD'*)
12221   lt_cv_prog_gnu_ld=yes
12222   ;;
12223 *)
12224   lt_cv_prog_gnu_ld=no
12225   ;;
12226 esac
12227 fi
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12229 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12230 with_gnu_ld=$lt_cv_prog_gnu_ld
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12241 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12242 if test "${lt_cv_path_NM+set}" = set; then :
12243   $as_echo_n "(cached) " >&6
12244 else
12245   if test -n "$NM"; then
12246   # Let the user override the test.
12247   lt_cv_path_NM="$NM"
12248 else
12249   lt_nm_to_check="${ac_tool_prefix}nm"
12250   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12251     lt_nm_to_check="$lt_nm_to_check nm"
12252   fi
12253   for lt_tmp_nm in $lt_nm_to_check; do
12254     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12255     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12256       IFS="$lt_save_ifs"
12257       test -z "$ac_dir" && ac_dir=.
12258       tmp_nm="$ac_dir/$lt_tmp_nm"
12259       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12260         # Check to see if the nm accepts a BSD-compat flag.
12261         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12262         #   nm: unknown option "B" ignored
12263         # Tru64's nm complains that /dev/null is an invalid object file
12264         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12265         */dev/null* | *'Invalid file or object type'*)
12266           lt_cv_path_NM="$tmp_nm -B"
12267           break
12268           ;;
12269         *)
12270           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12271           */dev/null*)
12272             lt_cv_path_NM="$tmp_nm -p"
12273             break
12274             ;;
12275           *)
12276             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12277             continue # so that we can try to find one that supports BSD flags
12278             ;;
12279           esac
12280           ;;
12281         esac
12282       fi
12283     done
12284     IFS="$lt_save_ifs"
12285   done
12286   : ${lt_cv_path_NM=no}
12287 fi
12288 fi
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12290 $as_echo "$lt_cv_path_NM" >&6; }
12291 if test "$lt_cv_path_NM" != "no"; then
12292   NM="$lt_cv_path_NM"
12293 else
12294   # Didn't find any BSD compatible name lister, look for dumpbin.
12295   if test -n "$DUMPBIN"; then :
12296     # Let the user override the test.
12297   else
12298     if test -n "$ac_tool_prefix"; then
12299   for ac_prog in dumpbin "link -dump"
12300   do
12301     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304 $as_echo_n "checking for $ac_word... " >&6; }
12305 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12306   $as_echo_n "(cached) " >&6
12307 else
12308   if test -n "$DUMPBIN"; then
12309   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12310 else
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $PATH
12313 do
12314   IFS=$as_save_IFS
12315   test -z "$as_dir" && as_dir=.
12316     for ac_exec_ext in '' $ac_executable_extensions; do
12317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12318     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320     break 2
12321   fi
12322 done
12323   done
12324 IFS=$as_save_IFS
12325
12326 fi
12327 fi
12328 DUMPBIN=$ac_cv_prog_DUMPBIN
12329 if test -n "$DUMPBIN"; then
12330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12331 $as_echo "$DUMPBIN" >&6; }
12332 else
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12335 fi
12336
12337
12338     test -n "$DUMPBIN" && break
12339   done
12340 fi
12341 if test -z "$DUMPBIN"; then
12342   ac_ct_DUMPBIN=$DUMPBIN
12343   for ac_prog in dumpbin "link -dump"
12344 do
12345   # Extract the first word of "$ac_prog", so it can be a program name with args.
12346 set dummy $ac_prog; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12350   $as_echo_n "(cached) " >&6
12351 else
12352   if test -n "$ac_ct_DUMPBIN"; then
12353   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12354 else
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12357 do
12358   IFS=$as_save_IFS
12359   test -z "$as_dir" && as_dir=.
12360     for ac_exec_ext in '' $ac_executable_extensions; do
12361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12362     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12364     break 2
12365   fi
12366 done
12367   done
12368 IFS=$as_save_IFS
12369
12370 fi
12371 fi
12372 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12373 if test -n "$ac_ct_DUMPBIN"; then
12374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12375 $as_echo "$ac_ct_DUMPBIN" >&6; }
12376 else
12377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12379 fi
12380
12381
12382   test -n "$ac_ct_DUMPBIN" && break
12383 done
12384
12385   if test "x$ac_ct_DUMPBIN" = x; then
12386     DUMPBIN=":"
12387   else
12388     case $cross_compiling:$ac_tool_warned in
12389 yes:)
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12392 ac_tool_warned=yes ;;
12393 esac
12394     DUMPBIN=$ac_ct_DUMPBIN
12395   fi
12396 fi
12397
12398     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12399     *COFF*)
12400       DUMPBIN="$DUMPBIN -symbols"
12401       ;;
12402     *)
12403       DUMPBIN=:
12404       ;;
12405     esac
12406   fi
12407
12408   if test "$DUMPBIN" != ":"; then
12409     NM="$DUMPBIN"
12410   fi
12411 fi
12412 test -z "$NM" && NM=nm
12413
12414
12415
12416
12417
12418
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12420 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12421 if test "${lt_cv_nm_interface+set}" = set; then :
12422   $as_echo_n "(cached) " >&6
12423 else
12424   lt_cv_nm_interface="BSD nm"
12425   echo "int some_variable = 0;" > conftest.$ac_ext
12426   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12427   (eval "$ac_compile" 2>conftest.err)
12428   cat conftest.err >&5
12429   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12430   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12431   cat conftest.err >&5
12432   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12433   cat conftest.out >&5
12434   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12435     lt_cv_nm_interface="MS dumpbin"
12436   fi
12437   rm -f conftest*
12438 fi
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12440 $as_echo "$lt_cv_nm_interface" >&6; }
12441
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12443 $as_echo_n "checking whether ln -s works... " >&6; }
12444 LN_S=$as_ln_s
12445 if test "$LN_S" = "ln -s"; then
12446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447 $as_echo "yes" >&6; }
12448 else
12449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12450 $as_echo "no, using $LN_S" >&6; }
12451 fi
12452
12453 # find the maximum length of command line arguments
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12455 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12456 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12457   $as_echo_n "(cached) " >&6
12458 else
12459     i=0
12460   teststring="ABCD"
12461
12462   case $build_os in
12463   msdosdjgpp*)
12464     # On DJGPP, this test can blow up pretty badly due to problems in libc
12465     # (any single argument exceeding 2000 bytes causes a buffer overrun
12466     # during glob expansion).  Even if it were fixed, the result of this
12467     # check would be larger than it should be.
12468     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12469     ;;
12470
12471   gnu*)
12472     # Under GNU Hurd, this test is not required because there is
12473     # no limit to the length of command line arguments.
12474     # Libtool will interpret -1 as no limit whatsoever
12475     lt_cv_sys_max_cmd_len=-1;
12476     ;;
12477
12478   cygwin* | mingw* | cegcc*)
12479     # On Win9x/ME, this test blows up -- it succeeds, but takes
12480     # about 5 minutes as the teststring grows exponentially.
12481     # Worse, since 9x/ME are not pre-emptively multitasking,
12482     # you end up with a "frozen" computer, even though with patience
12483     # the test eventually succeeds (with a max line length of 256k).
12484     # Instead, let's just punt: use the minimum linelength reported by
12485     # all of the supported platforms: 8192 (on NT/2K/XP).
12486     lt_cv_sys_max_cmd_len=8192;
12487     ;;
12488
12489   mint*)
12490     # On MiNT this can take a long time and run out of memory.
12491     lt_cv_sys_max_cmd_len=8192;
12492     ;;
12493
12494   amigaos*)
12495     # On AmigaOS with pdksh, this test takes hours, literally.
12496     # So we just punt and use a minimum line length of 8192.
12497     lt_cv_sys_max_cmd_len=8192;
12498     ;;
12499
12500   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12501     # This has been around since 386BSD, at least.  Likely further.
12502     if test -x /sbin/sysctl; then
12503       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12504     elif test -x /usr/sbin/sysctl; then
12505       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12506     else
12507       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12508     fi
12509     # And add a safety zone
12510     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12511     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12512     ;;
12513
12514   interix*)
12515     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12516     lt_cv_sys_max_cmd_len=196608
12517     ;;
12518
12519   osf*)
12520     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12521     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12522     # nice to cause kernel panics so lets avoid the loop below.
12523     # First set a reasonable default.
12524     lt_cv_sys_max_cmd_len=16384
12525     #
12526     if test -x /sbin/sysconfig; then
12527       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12528         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12529       esac
12530     fi
12531     ;;
12532   sco3.2v5*)
12533     lt_cv_sys_max_cmd_len=102400
12534     ;;
12535   sysv5* | sco5v6* | sysv4.2uw2*)
12536     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12537     if test -n "$kargmax"; then
12538       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12539     else
12540       lt_cv_sys_max_cmd_len=32768
12541     fi
12542     ;;
12543   *)
12544     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12545     if test -n "$lt_cv_sys_max_cmd_len"; then
12546       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12547       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12548     else
12549       # Make teststring a little bigger before we do anything with it.
12550       # a 1K string should be a reasonable start.
12551       for i in 1 2 3 4 5 6 7 8 ; do
12552         teststring=$teststring$teststring
12553       done
12554       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12555       # If test is not a shell built-in, we'll probably end up computing a
12556       # maximum length that is only half of the actual maximum length, but
12557       # we can't tell.
12558       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12559                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12560               test $i != 17 # 1/2 MB should be enough
12561       do
12562         i=`expr $i + 1`
12563         teststring=$teststring$teststring
12564       done
12565       # Only check the string length outside the loop.
12566       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12567       teststring=
12568       # Add a significant safety factor because C++ compilers can tack on
12569       # massive amounts of additional arguments before passing them to the
12570       # linker.  It appears as though 1/2 is a usable value.
12571       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12572     fi
12573     ;;
12574   esac
12575
12576 fi
12577
12578 if test -n $lt_cv_sys_max_cmd_len ; then
12579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12580 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12581 else
12582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12583 $as_echo "none" >&6; }
12584 fi
12585 max_cmd_len=$lt_cv_sys_max_cmd_len
12586
12587
12588
12589
12590
12591
12592 : ${CP="cp -f"}
12593 : ${MV="mv -f"}
12594 : ${RM="rm -f"}
12595
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12597 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12598 # Try some XSI features
12599 xsi_shell=no
12600 ( _lt_dummy="a/b/c"
12601   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12602       = c,a/b,, \
12603     && eval 'test $(( 1 + 1 )) -eq 2 \
12604     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12605   && xsi_shell=yes
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12607 $as_echo "$xsi_shell" >&6; }
12608
12609
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12611 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12612 lt_shell_append=no
12613 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12614     >/dev/null 2>&1 \
12615   && lt_shell_append=yes
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12617 $as_echo "$lt_shell_append" >&6; }
12618
12619
12620 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12621   lt_unset=unset
12622 else
12623   lt_unset=false
12624 fi
12625
12626
12627
12628
12629
12630 # test EBCDIC or ASCII
12631 case `echo X|tr X '\101'` in
12632  A) # ASCII based system
12633     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12634   lt_SP2NL='tr \040 \012'
12635   lt_NL2SP='tr \015\012 \040\040'
12636   ;;
12637  *) # EBCDIC based system
12638   lt_SP2NL='tr \100 \n'
12639   lt_NL2SP='tr \r\n \100\100'
12640   ;;
12641 esac
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12652 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12653 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12654   $as_echo_n "(cached) " >&6
12655 else
12656   lt_cv_ld_reload_flag='-r'
12657 fi
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12659 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12660 reload_flag=$lt_cv_ld_reload_flag
12661 case $reload_flag in
12662 "" | " "*) ;;
12663 *) reload_flag=" $reload_flag" ;;
12664 esac
12665 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12666 case $host_os in
12667   darwin*)
12668     if test "$GCC" = yes; then
12669       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12670     else
12671       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12672     fi
12673     ;;
12674 esac
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684 if test -n "$ac_tool_prefix"; then
12685   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12686 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12690   $as_echo_n "(cached) " >&6
12691 else
12692   if test -n "$OBJDUMP"; then
12693   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12694 else
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in $PATH
12697 do
12698   IFS=$as_save_IFS
12699   test -z "$as_dir" && as_dir=.
12700     for ac_exec_ext in '' $ac_executable_extensions; do
12701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12702     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704     break 2
12705   fi
12706 done
12707   done
12708 IFS=$as_save_IFS
12709
12710 fi
12711 fi
12712 OBJDUMP=$ac_cv_prog_OBJDUMP
12713 if test -n "$OBJDUMP"; then
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12715 $as_echo "$OBJDUMP" >&6; }
12716 else
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12719 fi
12720
12721
12722 fi
12723 if test -z "$ac_cv_prog_OBJDUMP"; then
12724   ac_ct_OBJDUMP=$OBJDUMP
12725   # Extract the first word of "objdump", so it can be a program name with args.
12726 set dummy objdump; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12730   $as_echo_n "(cached) " >&6
12731 else
12732   if test -n "$ac_ct_OBJDUMP"; then
12733   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12734 else
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736 for as_dir in $PATH
12737 do
12738   IFS=$as_save_IFS
12739   test -z "$as_dir" && as_dir=.
12740     for ac_exec_ext in '' $ac_executable_extensions; do
12741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12742     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744     break 2
12745   fi
12746 done
12747   done
12748 IFS=$as_save_IFS
12749
12750 fi
12751 fi
12752 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12753 if test -n "$ac_ct_OBJDUMP"; then
12754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12755 $as_echo "$ac_ct_OBJDUMP" >&6; }
12756 else
12757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 $as_echo "no" >&6; }
12759 fi
12760
12761   if test "x$ac_ct_OBJDUMP" = x; then
12762     OBJDUMP="false"
12763   else
12764     case $cross_compiling:$ac_tool_warned in
12765 yes:)
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12768 ac_tool_warned=yes ;;
12769 esac
12770     OBJDUMP=$ac_ct_OBJDUMP
12771   fi
12772 else
12773   OBJDUMP="$ac_cv_prog_OBJDUMP"
12774 fi
12775
12776 test -z "$OBJDUMP" && OBJDUMP=objdump
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12787 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12788 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12789   $as_echo_n "(cached) " >&6
12790 else
12791   lt_cv_file_magic_cmd='$MAGIC_CMD'
12792 lt_cv_file_magic_test_file=
12793 lt_cv_deplibs_check_method='unknown'
12794 # Need to set the preceding variable on all platforms that support
12795 # interlibrary dependencies.
12796 # 'none' -- dependencies not supported.
12797 # `unknown' -- same as none, but documents that we really don't know.
12798 # 'pass_all' -- all dependencies passed with no checks.
12799 # 'test_compile' -- check by making test program.
12800 # 'file_magic [[regex]]' -- check by looking for files in library path
12801 # which responds to the $file_magic_cmd with a given extended regex.
12802 # If you have `file' or equivalent on your system and you're not sure
12803 # whether `pass_all' will *always* work, you probably want this one.
12804
12805 case $host_os in
12806 aix[4-9]*)
12807   lt_cv_deplibs_check_method=pass_all
12808   ;;
12809
12810 beos*)
12811   lt_cv_deplibs_check_method=pass_all
12812   ;;
12813
12814 bsdi[45]*)
12815   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12816   lt_cv_file_magic_cmd='/usr/bin/file -L'
12817   lt_cv_file_magic_test_file=/shlib/libc.so
12818   ;;
12819
12820 cygwin*)
12821   # func_win32_libid is a shell function defined in ltmain.sh
12822   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12823   lt_cv_file_magic_cmd='func_win32_libid'
12824   ;;
12825
12826 mingw* | pw32*)
12827   # Base MSYS/MinGW do not provide the 'file' command needed by
12828   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12829   # unless we find 'file', for example because we are cross-compiling.
12830   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12831   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12832     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12833     lt_cv_file_magic_cmd='func_win32_libid'
12834   else
12835     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12836     lt_cv_file_magic_cmd='$OBJDUMP -f'
12837   fi
12838   ;;
12839
12840 cegcc*)
12841   # use the weaker test based on 'objdump'. See mingw*.
12842   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12843   lt_cv_file_magic_cmd='$OBJDUMP -f'
12844   ;;
12845
12846 darwin* | rhapsody*)
12847   lt_cv_deplibs_check_method=pass_all
12848   ;;
12849
12850 freebsd* | dragonfly*)
12851   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12852     case $host_cpu in
12853     i*86 )
12854       # Not sure whether the presence of OpenBSD here was a mistake.
12855       # Let's accept both of them until this is cleared up.
12856       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12857       lt_cv_file_magic_cmd=/usr/bin/file
12858       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12859       ;;
12860     esac
12861   else
12862     lt_cv_deplibs_check_method=pass_all
12863   fi
12864   ;;
12865
12866 gnu*)
12867   lt_cv_deplibs_check_method=pass_all
12868   ;;
12869
12870 haiku*)
12871   lt_cv_deplibs_check_method=pass_all
12872   ;;
12873
12874 hpux10.20* | hpux11*)
12875   lt_cv_file_magic_cmd=/usr/bin/file
12876   case $host_cpu in
12877   ia64*)
12878     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12879     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12880     ;;
12881   hppa*64*)
12882     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]'
12883     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12884     ;;
12885   *)
12886     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12887     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12888     ;;
12889   esac
12890   ;;
12891
12892 interix[3-9]*)
12893   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12894   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12895   ;;
12896
12897 irix5* | irix6* | nonstopux*)
12898   case $LD in
12899   *-32|*"-32 ") libmagic=32-bit;;
12900   *-n32|*"-n32 ") libmagic=N32;;
12901   *-64|*"-64 ") libmagic=64-bit;;
12902   *) libmagic=never-match;;
12903   esac
12904   lt_cv_deplibs_check_method=pass_all
12905   ;;
12906
12907 # This must be Linux ELF.
12908 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12909   lt_cv_deplibs_check_method=pass_all
12910   ;;
12911
12912 netbsd*)
12913   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12914     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12915   else
12916     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12917   fi
12918   ;;
12919
12920 newos6*)
12921   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12922   lt_cv_file_magic_cmd=/usr/bin/file
12923   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12924   ;;
12925
12926 *nto* | *qnx*)
12927   lt_cv_deplibs_check_method=pass_all
12928   ;;
12929
12930 openbsd*)
12931   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12932     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12933   else
12934     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12935   fi
12936   ;;
12937
12938 osf3* | osf4* | osf5*)
12939   lt_cv_deplibs_check_method=pass_all
12940   ;;
12941
12942 rdos*)
12943   lt_cv_deplibs_check_method=pass_all
12944   ;;
12945
12946 solaris*)
12947   lt_cv_deplibs_check_method=pass_all
12948   ;;
12949
12950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12951   lt_cv_deplibs_check_method=pass_all
12952   ;;
12953
12954 sysv4 | sysv4.3*)
12955   case $host_vendor in
12956   motorola)
12957     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]'
12958     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12959     ;;
12960   ncr)
12961     lt_cv_deplibs_check_method=pass_all
12962     ;;
12963   sequent)
12964     lt_cv_file_magic_cmd='/bin/file'
12965     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12966     ;;
12967   sni)
12968     lt_cv_file_magic_cmd='/bin/file'
12969     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12970     lt_cv_file_magic_test_file=/lib/libc.so
12971     ;;
12972   siemens)
12973     lt_cv_deplibs_check_method=pass_all
12974     ;;
12975   pc)
12976     lt_cv_deplibs_check_method=pass_all
12977     ;;
12978   esac
12979   ;;
12980
12981 tpf*)
12982   lt_cv_deplibs_check_method=pass_all
12983   ;;
12984 esac
12985
12986 fi
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12988 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12989 file_magic_cmd=$lt_cv_file_magic_cmd
12990 deplibs_check_method=$lt_cv_deplibs_check_method
12991 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004 if test -n "$ac_tool_prefix"; then
13005   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13006 set dummy ${ac_tool_prefix}ar; ac_word=$2
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008 $as_echo_n "checking for $ac_word... " >&6; }
13009 if test "${ac_cv_prog_AR+set}" = set; then :
13010   $as_echo_n "(cached) " >&6
13011 else
13012   if test -n "$AR"; then
13013   ac_cv_prog_AR="$AR" # Let the user override the test.
13014 else
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13017 do
13018   IFS=$as_save_IFS
13019   test -z "$as_dir" && as_dir=.
13020     for ac_exec_ext in '' $ac_executable_extensions; do
13021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022     ac_cv_prog_AR="${ac_tool_prefix}ar"
13023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024     break 2
13025   fi
13026 done
13027   done
13028 IFS=$as_save_IFS
13029
13030 fi
13031 fi
13032 AR=$ac_cv_prog_AR
13033 if test -n "$AR"; then
13034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13035 $as_echo "$AR" >&6; }
13036 else
13037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038 $as_echo "no" >&6; }
13039 fi
13040
13041
13042 fi
13043 if test -z "$ac_cv_prog_AR"; then
13044   ac_ct_AR=$AR
13045   # Extract the first word of "ar", so it can be a program name with args.
13046 set dummy ar; ac_word=$2
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13050   $as_echo_n "(cached) " >&6
13051 else
13052   if test -n "$ac_ct_AR"; then
13053   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13054 else
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13057 do
13058   IFS=$as_save_IFS
13059   test -z "$as_dir" && as_dir=.
13060     for ac_exec_ext in '' $ac_executable_extensions; do
13061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13062     ac_cv_prog_ac_ct_AR="ar"
13063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064     break 2
13065   fi
13066 done
13067   done
13068 IFS=$as_save_IFS
13069
13070 fi
13071 fi
13072 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13073 if test -n "$ac_ct_AR"; then
13074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13075 $as_echo "$ac_ct_AR" >&6; }
13076 else
13077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13079 fi
13080
13081   if test "x$ac_ct_AR" = x; then
13082     AR="false"
13083   else
13084     case $cross_compiling:$ac_tool_warned in
13085 yes:)
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13088 ac_tool_warned=yes ;;
13089 esac
13090     AR=$ac_ct_AR
13091   fi
13092 else
13093   AR="$ac_cv_prog_AR"
13094 fi
13095
13096 test -z "$AR" && AR=ar
13097 test -z "$AR_FLAGS" && AR_FLAGS=cru
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109 if test -n "$ac_tool_prefix"; then
13110   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13111 set dummy ${ac_tool_prefix}strip; ac_word=$2
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13113 $as_echo_n "checking for $ac_word... " >&6; }
13114 if test "${ac_cv_prog_STRIP+set}" = set; then :
13115   $as_echo_n "(cached) " >&6
13116 else
13117   if test -n "$STRIP"; then
13118   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13119 else
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13122 do
13123   IFS=$as_save_IFS
13124   test -z "$as_dir" && as_dir=.
13125     for ac_exec_ext in '' $ac_executable_extensions; do
13126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13127     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13129     break 2
13130   fi
13131 done
13132   done
13133 IFS=$as_save_IFS
13134
13135 fi
13136 fi
13137 STRIP=$ac_cv_prog_STRIP
13138 if test -n "$STRIP"; then
13139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13140 $as_echo "$STRIP" >&6; }
13141 else
13142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143 $as_echo "no" >&6; }
13144 fi
13145
13146
13147 fi
13148 if test -z "$ac_cv_prog_STRIP"; then
13149   ac_ct_STRIP=$STRIP
13150   # Extract the first word of "strip", so it can be a program name with args.
13151 set dummy strip; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153 $as_echo_n "checking for $ac_word... " >&6; }
13154 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13155   $as_echo_n "(cached) " >&6
13156 else
13157   if test -n "$ac_ct_STRIP"; then
13158   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13159 else
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13162 do
13163   IFS=$as_save_IFS
13164   test -z "$as_dir" && as_dir=.
13165     for ac_exec_ext in '' $ac_executable_extensions; do
13166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13167     ac_cv_prog_ac_ct_STRIP="strip"
13168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13169     break 2
13170   fi
13171 done
13172   done
13173 IFS=$as_save_IFS
13174
13175 fi
13176 fi
13177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13178 if test -n "$ac_ct_STRIP"; then
13179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13180 $as_echo "$ac_ct_STRIP" >&6; }
13181 else
13182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183 $as_echo "no" >&6; }
13184 fi
13185
13186   if test "x$ac_ct_STRIP" = x; then
13187     STRIP=":"
13188   else
13189     case $cross_compiling:$ac_tool_warned in
13190 yes:)
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13193 ac_tool_warned=yes ;;
13194 esac
13195     STRIP=$ac_ct_STRIP
13196   fi
13197 else
13198   STRIP="$ac_cv_prog_STRIP"
13199 fi
13200
13201 test -z "$STRIP" && STRIP=:
13202
13203
13204
13205
13206
13207
13208 if test -n "$ac_tool_prefix"; then
13209   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13210 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212 $as_echo_n "checking for $ac_word... " >&6; }
13213 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13214   $as_echo_n "(cached) " >&6
13215 else
13216   if test -n "$RANLIB"; then
13217   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13218 else
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13221 do
13222   IFS=$as_save_IFS
13223   test -z "$as_dir" && as_dir=.
13224     for ac_exec_ext in '' $ac_executable_extensions; do
13225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228     break 2
13229   fi
13230 done
13231   done
13232 IFS=$as_save_IFS
13233
13234 fi
13235 fi
13236 RANLIB=$ac_cv_prog_RANLIB
13237 if test -n "$RANLIB"; then
13238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13239 $as_echo "$RANLIB" >&6; }
13240 else
13241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13243 fi
13244
13245
13246 fi
13247 if test -z "$ac_cv_prog_RANLIB"; then
13248   ac_ct_RANLIB=$RANLIB
13249   # Extract the first word of "ranlib", so it can be a program name with args.
13250 set dummy ranlib; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252 $as_echo_n "checking for $ac_word... " >&6; }
13253 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13254   $as_echo_n "(cached) " >&6
13255 else
13256   if test -n "$ac_ct_RANLIB"; then
13257   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13258 else
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13261 do
13262   IFS=$as_save_IFS
13263   test -z "$as_dir" && as_dir=.
13264     for ac_exec_ext in '' $ac_executable_extensions; do
13265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266     ac_cv_prog_ac_ct_RANLIB="ranlib"
13267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268     break 2
13269   fi
13270 done
13271   done
13272 IFS=$as_save_IFS
13273
13274 fi
13275 fi
13276 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13277 if test -n "$ac_ct_RANLIB"; then
13278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13279 $as_echo "$ac_ct_RANLIB" >&6; }
13280 else
13281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13283 fi
13284
13285   if test "x$ac_ct_RANLIB" = x; then
13286     RANLIB=":"
13287   else
13288     case $cross_compiling:$ac_tool_warned in
13289 yes:)
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13292 ac_tool_warned=yes ;;
13293 esac
13294     RANLIB=$ac_ct_RANLIB
13295   fi
13296 else
13297   RANLIB="$ac_cv_prog_RANLIB"
13298 fi
13299
13300 test -z "$RANLIB" && RANLIB=:
13301
13302
13303
13304
13305
13306
13307 # Determine commands to create old-style static archives.
13308 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13309 old_postinstall_cmds='chmod 644 $oldlib'
13310 old_postuninstall_cmds=
13311
13312 if test -n "$RANLIB"; then
13313   case $host_os in
13314   openbsd*)
13315     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13316     ;;
13317   *)
13318     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13319     ;;
13320   esac
13321   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13322 fi
13323
13324 case $host_os in
13325   darwin*)
13326     lock_old_archive_extraction=yes ;;
13327   *)
13328     lock_old_archive_extraction=no ;;
13329 esac
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369 # If no C compiler was specified, use CC.
13370 LTCC=${LTCC-"$CC"}
13371
13372 # If no C compiler flags were specified, use CFLAGS.
13373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13374
13375 # Allow CC to be a program name with arguments.
13376 compiler=$CC
13377
13378
13379 # Check for command to grab the raw symbol name followed by C symbol from nm.
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13381 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13382 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13383   $as_echo_n "(cached) " >&6
13384 else
13385
13386 # These are sane defaults that work on at least a few old systems.
13387 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13388
13389 # Character class describing NM global symbol codes.
13390 symcode='[BCDEGRST]'
13391
13392 # Regexp to match symbols that can be accessed directly from C.
13393 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13394
13395 # Define system-specific variables.
13396 case $host_os in
13397 aix*)
13398   symcode='[BCDT]'
13399   ;;
13400 cygwin* | mingw* | pw32* | cegcc*)
13401   symcode='[ABCDGISTW]'
13402   ;;
13403 hpux*)
13404   if test "$host_cpu" = ia64; then
13405     symcode='[ABCDEGRST]'
13406   fi
13407   ;;
13408 irix* | nonstopux*)
13409   symcode='[BCDEGRST]'
13410   ;;
13411 osf*)
13412   symcode='[BCDEGQRST]'
13413   ;;
13414 solaris*)
13415   symcode='[BDRT]'
13416   ;;
13417 sco3.2v5*)
13418   symcode='[DT]'
13419   ;;
13420 sysv4.2uw2*)
13421   symcode='[DT]'
13422   ;;
13423 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13424   symcode='[ABDT]'
13425   ;;
13426 sysv4)
13427   symcode='[DFNSTU]'
13428   ;;
13429 esac
13430
13431 # If we're using GNU nm, then use its standard symbol codes.
13432 case `$NM -V 2>&1` in
13433 *GNU* | *'with BFD'*)
13434   symcode='[ABCDGIRSTW]' ;;
13435 esac
13436
13437 # Transform an extracted symbol line into a proper C declaration.
13438 # Some systems (esp. on ia64) link data and code symbols differently,
13439 # so use this general approach.
13440 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13441
13442 # Transform an extracted symbol line into symbol name and symbol address
13443 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13444 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'"
13445
13446 # Handle CRLF in mingw tool chain
13447 opt_cr=
13448 case $build_os in
13449 mingw*)
13450   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13451   ;;
13452 esac
13453
13454 # Try without a prefix underscore, then with it.
13455 for ac_symprfx in "" "_"; do
13456
13457   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13458   symxfrm="\\1 $ac_symprfx\\2 \\2"
13459
13460   # Write the raw and C identifiers.
13461   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13462     # Fake it for dumpbin and say T for any non-static function
13463     # and D for any global variable.
13464     # Also find C++ and __fastcall symbols from MSVC++,
13465     # which start with @ or ?.
13466     lt_cv_sys_global_symbol_pipe="$AWK '"\
13467 "     {last_section=section; section=\$ 3};"\
13468 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13469 "     \$ 0!~/External *\|/{next};"\
13470 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13471 "     {if(hide[section]) next};"\
13472 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13473 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13474 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13475 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13476 "     ' prfx=^$ac_symprfx"
13477   else
13478     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13479   fi
13480
13481   # Check to see that the pipe works correctly.
13482   pipe_works=no
13483
13484   rm -f conftest*
13485   cat > conftest.$ac_ext <<_LT_EOF
13486 #ifdef __cplusplus
13487 extern "C" {
13488 #endif
13489 char nm_test_var;
13490 void nm_test_func(void);
13491 void nm_test_func(void){}
13492 #ifdef __cplusplus
13493 }
13494 #endif
13495 int main(){nm_test_var='a';nm_test_func();return(0);}
13496 _LT_EOF
13497
13498   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13499   (eval $ac_compile) 2>&5
13500   ac_status=$?
13501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13502   test $ac_status = 0; }; then
13503     # Now try to grab the symbols.
13504     nlist=conftest.nm
13505     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13506   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13507   ac_status=$?
13508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13509   test $ac_status = 0; } && test -s "$nlist"; then
13510       # Try sorting and uniquifying the output.
13511       if sort "$nlist" | uniq > "$nlist"T; then
13512         mv -f "$nlist"T "$nlist"
13513       else
13514         rm -f "$nlist"T
13515       fi
13516
13517       # Make sure that we snagged all the symbols we need.
13518       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13519         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13520           cat <<_LT_EOF > conftest.$ac_ext
13521 #ifdef __cplusplus
13522 extern "C" {
13523 #endif
13524
13525 _LT_EOF
13526           # Now generate the symbol file.
13527           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13528
13529           cat <<_LT_EOF >> conftest.$ac_ext
13530
13531 /* The mapping between symbol names and symbols.  */
13532 const struct {
13533   const char *name;
13534   void       *address;
13535 }
13536 lt__PROGRAM__LTX_preloaded_symbols[] =
13537 {
13538   { "@PROGRAM@", (void *) 0 },
13539 _LT_EOF
13540           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13541           cat <<\_LT_EOF >> conftest.$ac_ext
13542   {0, (void *) 0}
13543 };
13544
13545 /* This works around a problem in FreeBSD linker */
13546 #ifdef FREEBSD_WORKAROUND
13547 static const void *lt_preloaded_setup() {
13548   return lt__PROGRAM__LTX_preloaded_symbols;
13549 }
13550 #endif
13551
13552 #ifdef __cplusplus
13553 }
13554 #endif
13555 _LT_EOF
13556           # Now try linking the two files.
13557           mv conftest.$ac_objext conftstm.$ac_objext
13558           lt_save_LIBS="$LIBS"
13559           lt_save_CFLAGS="$CFLAGS"
13560           LIBS="conftstm.$ac_objext"
13561           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13562           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13563   (eval $ac_link) 2>&5
13564   ac_status=$?
13565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13566   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13567             pipe_works=yes
13568           fi
13569           LIBS="$lt_save_LIBS"
13570           CFLAGS="$lt_save_CFLAGS"
13571         else
13572           echo "cannot find nm_test_func in $nlist" >&5
13573         fi
13574       else
13575         echo "cannot find nm_test_var in $nlist" >&5
13576       fi
13577     else
13578       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13579     fi
13580   else
13581     echo "$progname: failed program was:" >&5
13582     cat conftest.$ac_ext >&5
13583   fi
13584   rm -rf conftest* conftst*
13585
13586   # Do not use the global_symbol_pipe unless it works.
13587   if test "$pipe_works" = yes; then
13588     break
13589   else
13590     lt_cv_sys_global_symbol_pipe=
13591   fi
13592 done
13593
13594 fi
13595
13596 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13597   lt_cv_sys_global_symbol_to_cdecl=
13598 fi
13599 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13601 $as_echo "failed" >&6; }
13602 else
13603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13604 $as_echo "ok" >&6; }
13605 fi
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628 # Check whether --enable-libtool-lock was given.
13629 if test "${enable_libtool_lock+set}" = set; then :
13630   enableval=$enable_libtool_lock;
13631 fi
13632
13633 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13634
13635 # Some flags need to be propagated to the compiler or linker for good
13636 # libtool support.
13637 case $host in
13638 ia64-*-hpux*)
13639   # Find out which ABI we are using.
13640   echo 'int i;' > conftest.$ac_ext
13641   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13642   (eval $ac_compile) 2>&5
13643   ac_status=$?
13644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13645   test $ac_status = 0; }; then
13646     case `/usr/bin/file conftest.$ac_objext` in
13647       *ELF-32*)
13648         HPUX_IA64_MODE="32"
13649         ;;
13650       *ELF-64*)
13651         HPUX_IA64_MODE="64"
13652         ;;
13653     esac
13654   fi
13655   rm -rf conftest*
13656   ;;
13657 *-*-irix6*)
13658   # Find out which ABI we are using.
13659   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13660   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13661   (eval $ac_compile) 2>&5
13662   ac_status=$?
13663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13664   test $ac_status = 0; }; then
13665     if test "$lt_cv_prog_gnu_ld" = yes; then
13666       case `/usr/bin/file conftest.$ac_objext` in
13667         *32-bit*)
13668           LD="${LD-ld} -melf32bsmip"
13669           ;;
13670         *N32*)
13671           LD="${LD-ld} -melf32bmipn32"
13672           ;;
13673         *64-bit*)
13674           LD="${LD-ld} -melf64bmip"
13675         ;;
13676       esac
13677     else
13678       case `/usr/bin/file conftest.$ac_objext` in
13679         *32-bit*)
13680           LD="${LD-ld} -32"
13681           ;;
13682         *N32*)
13683           LD="${LD-ld} -n32"
13684           ;;
13685         *64-bit*)
13686           LD="${LD-ld} -64"
13687           ;;
13688       esac
13689     fi
13690   fi
13691   rm -rf conftest*
13692   ;;
13693
13694 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13695 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13696   # Find out which ABI we are using.
13697   echo 'int i;' > conftest.$ac_ext
13698   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13699   (eval $ac_compile) 2>&5
13700   ac_status=$?
13701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13702   test $ac_status = 0; }; then
13703     case `/usr/bin/file conftest.o` in
13704       *32-bit*)
13705         case $host in
13706           x86_64-*kfreebsd*-gnu)
13707             LD="${LD-ld} -m elf_i386_fbsd"
13708             ;;
13709           x86_64-*linux*)
13710             LD="${LD-ld} -m elf_i386"
13711             ;;
13712           ppc64-*linux*|powerpc64-*linux*)
13713             LD="${LD-ld} -m elf32ppclinux"
13714             ;;
13715           s390x-*linux*)
13716             LD="${LD-ld} -m elf_s390"
13717             ;;
13718           sparc64-*linux*)
13719             LD="${LD-ld} -m elf32_sparc"
13720             ;;
13721         esac
13722         ;;
13723       *64-bit*)
13724         case $host in
13725           x86_64-*kfreebsd*-gnu)
13726             LD="${LD-ld} -m elf_x86_64_fbsd"
13727             ;;
13728           x86_64-*linux*)
13729             LD="${LD-ld} -m elf_x86_64"
13730             ;;
13731           ppc*-*linux*|powerpc*-*linux*)
13732             LD="${LD-ld} -m elf64ppc"
13733             ;;
13734           s390*-*linux*|s390*-*tpf*)
13735             LD="${LD-ld} -m elf64_s390"
13736             ;;
13737           sparc*-*linux*)
13738             LD="${LD-ld} -m elf64_sparc"
13739             ;;
13740         esac
13741         ;;
13742     esac
13743   fi
13744   rm -rf conftest*
13745   ;;
13746
13747 *-*-sco3.2v5*)
13748   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13749   SAVE_CFLAGS="$CFLAGS"
13750   CFLAGS="$CFLAGS -belf"
13751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13752 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13753 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13754   $as_echo_n "(cached) " >&6
13755 else
13756   ac_ext=c
13757 ac_cpp='$CPP $CPPFLAGS'
13758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13761
13762      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h.  */
13764
13765 int
13766 main ()
13767 {
13768
13769   ;
13770   return 0;
13771 }
13772 _ACEOF
13773 if ac_fn_c_try_link "$LINENO"; then :
13774   lt_cv_cc_needs_belf=yes
13775 else
13776   lt_cv_cc_needs_belf=no
13777 fi
13778 rm -f core conftest.err conftest.$ac_objext \
13779     conftest$ac_exeext conftest.$ac_ext
13780      ac_ext=c
13781 ac_cpp='$CPP $CPPFLAGS'
13782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13785
13786 fi
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13788 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13789   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13790     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13791     CFLAGS="$SAVE_CFLAGS"
13792   fi
13793   ;;
13794 sparc*-*solaris*)
13795   # Find out which ABI we are using.
13796   echo 'int i;' > conftest.$ac_ext
13797   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13798   (eval $ac_compile) 2>&5
13799   ac_status=$?
13800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13801   test $ac_status = 0; }; then
13802     case `/usr/bin/file conftest.o` in
13803     *64-bit*)
13804       case $lt_cv_prog_gnu_ld in
13805       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13806       *)
13807         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13808           LD="${LD-ld} -64"
13809         fi
13810         ;;
13811       esac
13812       ;;
13813     esac
13814   fi
13815   rm -rf conftest*
13816   ;;
13817 esac
13818
13819 need_locks="$enable_libtool_lock"
13820
13821
13822   case $host_os in
13823     rhapsody* | darwin*)
13824     if test -n "$ac_tool_prefix"; then
13825   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13826 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828 $as_echo_n "checking for $ac_word... " >&6; }
13829 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13830   $as_echo_n "(cached) " >&6
13831 else
13832   if test -n "$DSYMUTIL"; then
13833   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13834 else
13835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836 for as_dir in $PATH
13837 do
13838   IFS=$as_save_IFS
13839   test -z "$as_dir" && as_dir=.
13840     for ac_exec_ext in '' $ac_executable_extensions; do
13841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13842     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13844     break 2
13845   fi
13846 done
13847   done
13848 IFS=$as_save_IFS
13849
13850 fi
13851 fi
13852 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13853 if test -n "$DSYMUTIL"; then
13854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13855 $as_echo "$DSYMUTIL" >&6; }
13856 else
13857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858 $as_echo "no" >&6; }
13859 fi
13860
13861
13862 fi
13863 if test -z "$ac_cv_prog_DSYMUTIL"; then
13864   ac_ct_DSYMUTIL=$DSYMUTIL
13865   # Extract the first word of "dsymutil", so it can be a program name with args.
13866 set dummy dsymutil; ac_word=$2
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13868 $as_echo_n "checking for $ac_word... " >&6; }
13869 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13870   $as_echo_n "(cached) " >&6
13871 else
13872   if test -n "$ac_ct_DSYMUTIL"; then
13873   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13874 else
13875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876 for as_dir in $PATH
13877 do
13878   IFS=$as_save_IFS
13879   test -z "$as_dir" && as_dir=.
13880     for ac_exec_ext in '' $ac_executable_extensions; do
13881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13882     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13884     break 2
13885   fi
13886 done
13887   done
13888 IFS=$as_save_IFS
13889
13890 fi
13891 fi
13892 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13893 if test -n "$ac_ct_DSYMUTIL"; then
13894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13895 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13896 else
13897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898 $as_echo "no" >&6; }
13899 fi
13900
13901   if test "x$ac_ct_DSYMUTIL" = x; then
13902     DSYMUTIL=":"
13903   else
13904     case $cross_compiling:$ac_tool_warned in
13905 yes:)
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13908 ac_tool_warned=yes ;;
13909 esac
13910     DSYMUTIL=$ac_ct_DSYMUTIL
13911   fi
13912 else
13913   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13914 fi
13915
13916     if test -n "$ac_tool_prefix"; then
13917   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13918 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920 $as_echo_n "checking for $ac_word... " >&6; }
13921 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13922   $as_echo_n "(cached) " >&6
13923 else
13924   if test -n "$NMEDIT"; then
13925   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13926 else
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13929 do
13930   IFS=$as_save_IFS
13931   test -z "$as_dir" && as_dir=.
13932     for ac_exec_ext in '' $ac_executable_extensions; do
13933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13934     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13936     break 2
13937   fi
13938 done
13939   done
13940 IFS=$as_save_IFS
13941
13942 fi
13943 fi
13944 NMEDIT=$ac_cv_prog_NMEDIT
13945 if test -n "$NMEDIT"; then
13946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13947 $as_echo "$NMEDIT" >&6; }
13948 else
13949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950 $as_echo "no" >&6; }
13951 fi
13952
13953
13954 fi
13955 if test -z "$ac_cv_prog_NMEDIT"; then
13956   ac_ct_NMEDIT=$NMEDIT
13957   # Extract the first word of "nmedit", so it can be a program name with args.
13958 set dummy nmedit; ac_word=$2
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13960 $as_echo_n "checking for $ac_word... " >&6; }
13961 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13962   $as_echo_n "(cached) " >&6
13963 else
13964   if test -n "$ac_ct_NMEDIT"; then
13965   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13966 else
13967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968 for as_dir in $PATH
13969 do
13970   IFS=$as_save_IFS
13971   test -z "$as_dir" && as_dir=.
13972     for ac_exec_ext in '' $ac_executable_extensions; do
13973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13974     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13976     break 2
13977   fi
13978 done
13979   done
13980 IFS=$as_save_IFS
13981
13982 fi
13983 fi
13984 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13985 if test -n "$ac_ct_NMEDIT"; then
13986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13987 $as_echo "$ac_ct_NMEDIT" >&6; }
13988 else
13989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 $as_echo "no" >&6; }
13991 fi
13992
13993   if test "x$ac_ct_NMEDIT" = x; then
13994     NMEDIT=":"
13995   else
13996     case $cross_compiling:$ac_tool_warned in
13997 yes:)
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14000 ac_tool_warned=yes ;;
14001 esac
14002     NMEDIT=$ac_ct_NMEDIT
14003   fi
14004 else
14005   NMEDIT="$ac_cv_prog_NMEDIT"
14006 fi
14007
14008     if test -n "$ac_tool_prefix"; then
14009   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14010 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14012 $as_echo_n "checking for $ac_word... " >&6; }
14013 if test "${ac_cv_prog_LIPO+set}" = set; then :
14014   $as_echo_n "(cached) " >&6
14015 else
14016   if test -n "$LIPO"; then
14017   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14018 else
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020 for as_dir in $PATH
14021 do
14022   IFS=$as_save_IFS
14023   test -z "$as_dir" && as_dir=.
14024     for ac_exec_ext in '' $ac_executable_extensions; do
14025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14026     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14028     break 2
14029   fi
14030 done
14031   done
14032 IFS=$as_save_IFS
14033
14034 fi
14035 fi
14036 LIPO=$ac_cv_prog_LIPO
14037 if test -n "$LIPO"; then
14038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14039 $as_echo "$LIPO" >&6; }
14040 else
14041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 $as_echo "no" >&6; }
14043 fi
14044
14045
14046 fi
14047 if test -z "$ac_cv_prog_LIPO"; then
14048   ac_ct_LIPO=$LIPO
14049   # Extract the first word of "lipo", so it can be a program name with args.
14050 set dummy lipo; ac_word=$2
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14052 $as_echo_n "checking for $ac_word... " >&6; }
14053 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14054   $as_echo_n "(cached) " >&6
14055 else
14056   if test -n "$ac_ct_LIPO"; then
14057   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14058 else
14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14061 do
14062   IFS=$as_save_IFS
14063   test -z "$as_dir" && as_dir=.
14064     for ac_exec_ext in '' $ac_executable_extensions; do
14065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14066     ac_cv_prog_ac_ct_LIPO="lipo"
14067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14068     break 2
14069   fi
14070 done
14071   done
14072 IFS=$as_save_IFS
14073
14074 fi
14075 fi
14076 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14077 if test -n "$ac_ct_LIPO"; then
14078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14079 $as_echo "$ac_ct_LIPO" >&6; }
14080 else
14081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082 $as_echo "no" >&6; }
14083 fi
14084
14085   if test "x$ac_ct_LIPO" = x; then
14086     LIPO=":"
14087   else
14088     case $cross_compiling:$ac_tool_warned in
14089 yes:)
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14092 ac_tool_warned=yes ;;
14093 esac
14094     LIPO=$ac_ct_LIPO
14095   fi
14096 else
14097   LIPO="$ac_cv_prog_LIPO"
14098 fi
14099
14100     if test -n "$ac_tool_prefix"; then
14101   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14102 set dummy ${ac_tool_prefix}otool; ac_word=$2
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14104 $as_echo_n "checking for $ac_word... " >&6; }
14105 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14106   $as_echo_n "(cached) " >&6
14107 else
14108   if test -n "$OTOOL"; then
14109   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14110 else
14111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112 for as_dir in $PATH
14113 do
14114   IFS=$as_save_IFS
14115   test -z "$as_dir" && as_dir=.
14116     for ac_exec_ext in '' $ac_executable_extensions; do
14117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14118     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14120     break 2
14121   fi
14122 done
14123   done
14124 IFS=$as_save_IFS
14125
14126 fi
14127 fi
14128 OTOOL=$ac_cv_prog_OTOOL
14129 if test -n "$OTOOL"; then
14130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14131 $as_echo "$OTOOL" >&6; }
14132 else
14133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14135 fi
14136
14137
14138 fi
14139 if test -z "$ac_cv_prog_OTOOL"; then
14140   ac_ct_OTOOL=$OTOOL
14141   # Extract the first word of "otool", so it can be a program name with args.
14142 set dummy otool; ac_word=$2
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14144 $as_echo_n "checking for $ac_word... " >&6; }
14145 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14146   $as_echo_n "(cached) " >&6
14147 else
14148   if test -n "$ac_ct_OTOOL"; then
14149   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14150 else
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14153 do
14154   IFS=$as_save_IFS
14155   test -z "$as_dir" && as_dir=.
14156     for ac_exec_ext in '' $ac_executable_extensions; do
14157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14158     ac_cv_prog_ac_ct_OTOOL="otool"
14159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14160     break 2
14161   fi
14162 done
14163   done
14164 IFS=$as_save_IFS
14165
14166 fi
14167 fi
14168 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14169 if test -n "$ac_ct_OTOOL"; then
14170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14171 $as_echo "$ac_ct_OTOOL" >&6; }
14172 else
14173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174 $as_echo "no" >&6; }
14175 fi
14176
14177   if test "x$ac_ct_OTOOL" = x; then
14178     OTOOL=":"
14179   else
14180     case $cross_compiling:$ac_tool_warned in
14181 yes:)
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14184 ac_tool_warned=yes ;;
14185 esac
14186     OTOOL=$ac_ct_OTOOL
14187   fi
14188 else
14189   OTOOL="$ac_cv_prog_OTOOL"
14190 fi
14191
14192     if test -n "$ac_tool_prefix"; then
14193   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14194 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14196 $as_echo_n "checking for $ac_word... " >&6; }
14197 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14198   $as_echo_n "(cached) " >&6
14199 else
14200   if test -n "$OTOOL64"; then
14201   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14202 else
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14205 do
14206   IFS=$as_save_IFS
14207   test -z "$as_dir" && as_dir=.
14208     for ac_exec_ext in '' $ac_executable_extensions; do
14209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14210     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14212     break 2
14213   fi
14214 done
14215   done
14216 IFS=$as_save_IFS
14217
14218 fi
14219 fi
14220 OTOOL64=$ac_cv_prog_OTOOL64
14221 if test -n "$OTOOL64"; then
14222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14223 $as_echo "$OTOOL64" >&6; }
14224 else
14225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14227 fi
14228
14229
14230 fi
14231 if test -z "$ac_cv_prog_OTOOL64"; then
14232   ac_ct_OTOOL64=$OTOOL64
14233   # Extract the first word of "otool64", so it can be a program name with args.
14234 set dummy otool64; ac_word=$2
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14236 $as_echo_n "checking for $ac_word... " >&6; }
14237 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14238   $as_echo_n "(cached) " >&6
14239 else
14240   if test -n "$ac_ct_OTOOL64"; then
14241   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14242 else
14243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14244 for as_dir in $PATH
14245 do
14246   IFS=$as_save_IFS
14247   test -z "$as_dir" && as_dir=.
14248     for ac_exec_ext in '' $ac_executable_extensions; do
14249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14250     ac_cv_prog_ac_ct_OTOOL64="otool64"
14251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14252     break 2
14253   fi
14254 done
14255   done
14256 IFS=$as_save_IFS
14257
14258 fi
14259 fi
14260 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14261 if test -n "$ac_ct_OTOOL64"; then
14262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14263 $as_echo "$ac_ct_OTOOL64" >&6; }
14264 else
14265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14267 fi
14268
14269   if test "x$ac_ct_OTOOL64" = x; then
14270     OTOOL64=":"
14271   else
14272     case $cross_compiling:$ac_tool_warned in
14273 yes:)
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14276 ac_tool_warned=yes ;;
14277 esac
14278     OTOOL64=$ac_ct_OTOOL64
14279   fi
14280 else
14281   OTOOL64="$ac_cv_prog_OTOOL64"
14282 fi
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14311 $as_echo_n "checking for -single_module linker flag... " >&6; }
14312 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14313   $as_echo_n "(cached) " >&6
14314 else
14315   lt_cv_apple_cc_single_mod=no
14316       if test -z "${LT_MULTI_MODULE}"; then
14317         # By default we will add the -single_module flag. You can override
14318         # by either setting the environment variable LT_MULTI_MODULE
14319         # non-empty at configure time, or by adding -multi_module to the
14320         # link flags.
14321         rm -rf libconftest.dylib*
14322         echo "int foo(void){return 1;}" > conftest.c
14323         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14324 -dynamiclib -Wl,-single_module conftest.c" >&5
14325         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14326           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14327         _lt_result=$?
14328         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14329           lt_cv_apple_cc_single_mod=yes
14330         else
14331           cat conftest.err >&5
14332         fi
14333         rm -rf libconftest.dylib*
14334         rm -f conftest.*
14335       fi
14336 fi
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14338 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14340 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14341 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14342   $as_echo_n "(cached) " >&6
14343 else
14344   lt_cv_ld_exported_symbols_list=no
14345       save_LDFLAGS=$LDFLAGS
14346       echo "_main" > conftest.sym
14347       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14348       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h.  */
14350
14351 int
14352 main ()
14353 {
14354
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"; then :
14360   lt_cv_ld_exported_symbols_list=yes
14361 else
14362   lt_cv_ld_exported_symbols_list=no
14363 fi
14364 rm -f core conftest.err conftest.$ac_objext \
14365     conftest$ac_exeext conftest.$ac_ext
14366         LDFLAGS="$save_LDFLAGS"
14367
14368 fi
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14370 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14372 $as_echo_n "checking for -force_load linker flag... " >&6; }
14373 if test "${lt_cv_ld_force_load+set}" = set; then :
14374   $as_echo_n "(cached) " >&6
14375 else
14376   lt_cv_ld_force_load=no
14377       cat > conftest.c << _LT_EOF
14378 int forced_loaded() { return 2;}
14379 _LT_EOF
14380       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14381       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14382       echo "$AR cru libconftest.a conftest.o" >&5
14383       $AR cru libconftest.a conftest.o 2>&5
14384       cat > conftest.c << _LT_EOF
14385 int main() { return 0;}
14386 _LT_EOF
14387       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14388       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14389       _lt_result=$?
14390       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14391         lt_cv_ld_force_load=yes
14392       else
14393         cat conftest.err >&5
14394       fi
14395         rm -f conftest.err libconftest.a conftest conftest.c
14396         rm -rf conftest.dSYM
14397
14398 fi
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14400 $as_echo "$lt_cv_ld_force_load" >&6; }
14401     case $host_os in
14402     rhapsody* | darwin1.[012])
14403       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14404     darwin1.*)
14405       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14406     darwin*) # darwin 5.x on
14407       # if running on 10.5 or later, the deployment target defaults
14408       # to the OS version, if on x86, and 10.4, the deployment
14409       # target defaults to 10.4. Don't you love it?
14410       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14411         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14412           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14413         10.[012]*)
14414           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14415         10.*)
14416           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14417       esac
14418     ;;
14419   esac
14420     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14421       _lt_dar_single_mod='$single_module'
14422     fi
14423     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14424       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14425     else
14426       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14427     fi
14428     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14429       _lt_dsymutil='~$DSYMUTIL $lib || :'
14430     else
14431       _lt_dsymutil=
14432     fi
14433     ;;
14434   esac
14435
14436 for ac_header in dlfcn.h
14437 do :
14438   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14439 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14440   cat >>confdefs.h <<_ACEOF
14441 #define HAVE_DLFCN_H 1
14442 _ACEOF
14443
14444 fi
14445 done
14446
14447
14448
14449
14450
14451 # Set options
14452
14453
14454
14455         enable_dlopen=no
14456
14457
14458   enable_win32_dll=no
14459
14460
14461             # Check whether --enable-shared was given.
14462 if test "${enable_shared+set}" = set; then :
14463   enableval=$enable_shared; p=${PACKAGE-default}
14464     case $enableval in
14465     yes) enable_shared=yes ;;
14466     no) enable_shared=no ;;
14467     *)
14468       enable_shared=no
14469       # Look at the argument we got.  We use all the common list separators.
14470       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14471       for pkg in $enableval; do
14472         IFS="$lt_save_ifs"
14473         if test "X$pkg" = "X$p"; then
14474           enable_shared=yes
14475         fi
14476       done
14477       IFS="$lt_save_ifs"
14478       ;;
14479     esac
14480 else
14481   enable_shared=yes
14482 fi
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492   # Check whether --enable-static was given.
14493 if test "${enable_static+set}" = set; then :
14494   enableval=$enable_static; p=${PACKAGE-default}
14495     case $enableval in
14496     yes) enable_static=yes ;;
14497     no) enable_static=no ;;
14498     *)
14499      enable_static=no
14500       # Look at the argument we got.  We use all the common list separators.
14501       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14502       for pkg in $enableval; do
14503         IFS="$lt_save_ifs"
14504         if test "X$pkg" = "X$p"; then
14505           enable_static=yes
14506         fi
14507       done
14508       IFS="$lt_save_ifs"
14509       ;;
14510     esac
14511 else
14512   enable_static=yes
14513 fi
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524 # Check whether --with-pic was given.
14525 if test "${with_pic+set}" = set; then :
14526   withval=$with_pic; pic_mode="$withval"
14527 else
14528   pic_mode=default
14529 fi
14530
14531
14532 test -z "$pic_mode" && pic_mode=default
14533
14534
14535
14536
14537
14538
14539
14540   # Check whether --enable-fast-install was given.
14541 if test "${enable_fast_install+set}" = set; then :
14542   enableval=$enable_fast_install; p=${PACKAGE-default}
14543     case $enableval in
14544     yes) enable_fast_install=yes ;;
14545     no) enable_fast_install=no ;;
14546     *)
14547       enable_fast_install=no
14548       # Look at the argument we got.  We use all the common list separators.
14549       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14550       for pkg in $enableval; do
14551         IFS="$lt_save_ifs"
14552         if test "X$pkg" = "X$p"; then
14553           enable_fast_install=yes
14554         fi
14555       done
14556       IFS="$lt_save_ifs"
14557       ;;
14558     esac
14559 else
14560   enable_fast_install=yes
14561 fi
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573 # This can be used to rebuild libtool when needed
14574 LIBTOOL_DEPS="$ltmain"
14575
14576 # Always use our own libtool.
14577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604 test -z "$LN_S" && LN_S="ln -s"
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619 if test -n "${ZSH_VERSION+set}" ; then
14620    setopt NO_GLOB_SUBST
14621 fi
14622
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14624 $as_echo_n "checking for objdir... " >&6; }
14625 if test "${lt_cv_objdir+set}" = set; then :
14626   $as_echo_n "(cached) " >&6
14627 else
14628   rm -f .libs 2>/dev/null
14629 mkdir .libs 2>/dev/null
14630 if test -d .libs; then
14631   lt_cv_objdir=.libs
14632 else
14633   # MS-DOS does not allow filenames that begin with a dot.
14634   lt_cv_objdir=_libs
14635 fi
14636 rmdir .libs 2>/dev/null
14637 fi
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14639 $as_echo "$lt_cv_objdir" >&6; }
14640 objdir=$lt_cv_objdir
14641
14642
14643
14644
14645
14646 cat >>confdefs.h <<_ACEOF
14647 #define LT_OBJDIR "$lt_cv_objdir/"
14648 _ACEOF
14649
14650
14651
14652
14653 case $host_os in
14654 aix3*)
14655   # AIX sometimes has problems with the GCC collect2 program.  For some
14656   # reason, if we set the COLLECT_NAMES environment variable, the problems
14657   # vanish in a puff of smoke.
14658   if test "X${COLLECT_NAMES+set}" != Xset; then
14659     COLLECT_NAMES=
14660     export COLLECT_NAMES
14661   fi
14662   ;;
14663 esac
14664
14665 # Global variables:
14666 ofile=libtool
14667 can_build_shared=yes
14668
14669 # All known linkers require a `.a' archive for static linking (except MSVC,
14670 # which needs '.lib').
14671 libext=a
14672
14673 with_gnu_ld="$lt_cv_prog_gnu_ld"
14674
14675 old_CC="$CC"
14676 old_CFLAGS="$CFLAGS"
14677
14678 # Set sane defaults for various variables
14679 test -z "$CC" && CC=cc
14680 test -z "$LTCC" && LTCC=$CC
14681 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14682 test -z "$LD" && LD=ld
14683 test -z "$ac_objext" && ac_objext=o
14684
14685 for cc_temp in $compiler""; do
14686   case $cc_temp in
14687     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14688     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14689     \-*) ;;
14690     *) break;;
14691   esac
14692 done
14693 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14694
14695
14696 # Only perform the check for file, if the check method requires it
14697 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14698 case $deplibs_check_method in
14699 file_magic*)
14700   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14702 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14703 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14704   $as_echo_n "(cached) " >&6
14705 else
14706   case $MAGIC_CMD in
14707 [\\/*] |  ?:[\\/]*)
14708   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14709   ;;
14710 *)
14711   lt_save_MAGIC_CMD="$MAGIC_CMD"
14712   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14713   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14714   for ac_dir in $ac_dummy; do
14715     IFS="$lt_save_ifs"
14716     test -z "$ac_dir" && ac_dir=.
14717     if test -f $ac_dir/${ac_tool_prefix}file; then
14718       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14719       if test -n "$file_magic_test_file"; then
14720         case $deplibs_check_method in
14721         "file_magic "*)
14722           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14723           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14724           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14725             $EGREP "$file_magic_regex" > /dev/null; then
14726             :
14727           else
14728             cat <<_LT_EOF 1>&2
14729
14730 *** Warning: the command libtool uses to detect shared libraries,
14731 *** $file_magic_cmd, produces output that libtool cannot recognize.
14732 *** The result is that libtool may fail to recognize shared libraries
14733 *** as such.  This will affect the creation of libtool libraries that
14734 *** depend on shared libraries, but programs linked with such libtool
14735 *** libraries will work regardless of this problem.  Nevertheless, you
14736 *** may want to report the problem to your system manager and/or to
14737 *** bug-libtool@gnu.org
14738
14739 _LT_EOF
14740           fi ;;
14741         esac
14742       fi
14743       break
14744     fi
14745   done
14746   IFS="$lt_save_ifs"
14747   MAGIC_CMD="$lt_save_MAGIC_CMD"
14748   ;;
14749 esac
14750 fi
14751
14752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14753 if test -n "$MAGIC_CMD"; then
14754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14755 $as_echo "$MAGIC_CMD" >&6; }
14756 else
14757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14759 fi
14760
14761
14762
14763
14764
14765 if test -z "$lt_cv_path_MAGIC_CMD"; then
14766   if test -n "$ac_tool_prefix"; then
14767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14768 $as_echo_n "checking for file... " >&6; }
14769 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14770   $as_echo_n "(cached) " >&6
14771 else
14772   case $MAGIC_CMD in
14773 [\\/*] |  ?:[\\/]*)
14774   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14775   ;;
14776 *)
14777   lt_save_MAGIC_CMD="$MAGIC_CMD"
14778   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14779   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14780   for ac_dir in $ac_dummy; do
14781     IFS="$lt_save_ifs"
14782     test -z "$ac_dir" && ac_dir=.
14783     if test -f $ac_dir/file; then
14784       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14785       if test -n "$file_magic_test_file"; then
14786         case $deplibs_check_method in
14787         "file_magic "*)
14788           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14789           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14790           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14791             $EGREP "$file_magic_regex" > /dev/null; then
14792             :
14793           else
14794             cat <<_LT_EOF 1>&2
14795
14796 *** Warning: the command libtool uses to detect shared libraries,
14797 *** $file_magic_cmd, produces output that libtool cannot recognize.
14798 *** The result is that libtool may fail to recognize shared libraries
14799 *** as such.  This will affect the creation of libtool libraries that
14800 *** depend on shared libraries, but programs linked with such libtool
14801 *** libraries will work regardless of this problem.  Nevertheless, you
14802 *** may want to report the problem to your system manager and/or to
14803 *** bug-libtool@gnu.org
14804
14805 _LT_EOF
14806           fi ;;
14807         esac
14808       fi
14809       break
14810     fi
14811   done
14812   IFS="$lt_save_ifs"
14813   MAGIC_CMD="$lt_save_MAGIC_CMD"
14814   ;;
14815 esac
14816 fi
14817
14818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14819 if test -n "$MAGIC_CMD"; then
14820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14821 $as_echo "$MAGIC_CMD" >&6; }
14822 else
14823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14824 $as_echo "no" >&6; }
14825 fi
14826
14827
14828   else
14829     MAGIC_CMD=:
14830   fi
14831 fi
14832
14833   fi
14834   ;;
14835 esac
14836
14837 # Use C for the default configuration in the libtool script
14838
14839 lt_save_CC="$CC"
14840 ac_ext=c
14841 ac_cpp='$CPP $CPPFLAGS'
14842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14845
14846
14847 # Source file extension for C test sources.
14848 ac_ext=c
14849
14850 # Object file extension for compiled C test sources.
14851 objext=o
14852 objext=$objext
14853
14854 # Code to be used in simple compile tests
14855 lt_simple_compile_test_code="int some_variable = 0;"
14856
14857 # Code to be used in simple link tests
14858 lt_simple_link_test_code='int main(){return(0);}'
14859
14860
14861
14862
14863
14864
14865
14866 # If no C compiler was specified, use CC.
14867 LTCC=${LTCC-"$CC"}
14868
14869 # If no C compiler flags were specified, use CFLAGS.
14870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14871
14872 # Allow CC to be a program name with arguments.
14873 compiler=$CC
14874
14875 # Save the default compiler, since it gets overwritten when the other
14876 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14877 compiler_DEFAULT=$CC
14878
14879 # save warnings/boilerplate of simple test code
14880 ac_outfile=conftest.$ac_objext
14881 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14883 _lt_compiler_boilerplate=`cat conftest.err`
14884 $RM conftest*
14885
14886 ac_outfile=conftest.$ac_objext
14887 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14889 _lt_linker_boilerplate=`cat conftest.err`
14890 $RM -r conftest*
14891
14892
14893 ## CAVEAT EMPTOR:
14894 ## There is no encapsulation within the following macros, do not change
14895 ## the running order or otherwise move them around unless you know exactly
14896 ## what you are doing...
14897 if test -n "$compiler"; then
14898
14899 lt_prog_compiler_no_builtin_flag=
14900
14901 if test "$GCC" = yes; then
14902   case $cc_basename in
14903   nvcc*)
14904     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14905   *)
14906     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14907   esac
14908
14909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14910 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14911 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14912   $as_echo_n "(cached) " >&6
14913 else
14914   lt_cv_prog_compiler_rtti_exceptions=no
14915    ac_outfile=conftest.$ac_objext
14916    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14917    lt_compiler_flag="-fno-rtti -fno-exceptions"
14918    # Insert the option either (1) after the last *FLAGS variable, or
14919    # (2) before a word containing "conftest.", or (3) at the end.
14920    # Note that $ac_compile itself does not contain backslashes and begins
14921    # with a dollar sign (not a hyphen), so the echo should work correctly.
14922    # The option is referenced via a variable to avoid confusing sed.
14923    lt_compile=`echo "$ac_compile" | $SED \
14924    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14925    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14926    -e 's:$: $lt_compiler_flag:'`
14927    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14928    (eval "$lt_compile" 2>conftest.err)
14929    ac_status=$?
14930    cat conftest.err >&5
14931    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932    if (exit $ac_status) && test -s "$ac_outfile"; then
14933      # The compiler can only warn and ignore the option if not recognized
14934      # So say no if there are warnings other than the usual output.
14935      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14936      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14937      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14938        lt_cv_prog_compiler_rtti_exceptions=yes
14939      fi
14940    fi
14941    $RM conftest*
14942
14943 fi
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14945 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14946
14947 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14948     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14949 else
14950     :
14951 fi
14952
14953 fi
14954
14955
14956
14957
14958
14959
14960   lt_prog_compiler_wl=
14961 lt_prog_compiler_pic=
14962 lt_prog_compiler_static=
14963
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14965 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14966
14967   if test "$GCC" = yes; then
14968     lt_prog_compiler_wl='-Wl,'
14969     lt_prog_compiler_static='-static'
14970
14971     case $host_os in
14972       aix*)
14973       # All AIX code is PIC.
14974       if test "$host_cpu" = ia64; then
14975         # AIX 5 now supports IA64 processor
14976         lt_prog_compiler_static='-Bstatic'
14977       fi
14978       ;;
14979
14980     amigaos*)
14981       case $host_cpu in
14982       powerpc)
14983             # see comment about AmigaOS4 .so support
14984             lt_prog_compiler_pic='-fPIC'
14985         ;;
14986       m68k)
14987             # FIXME: we need at least 68020 code to build shared libraries, but
14988             # adding the `-m68020' flag to GCC prevents building anything better,
14989             # like `-m68040'.
14990             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14991         ;;
14992       esac
14993       ;;
14994
14995     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14996       # PIC is the default for these OSes.
14997       ;;
14998
14999     mingw* | cygwin* | pw32* | os2* | cegcc*)
15000       # This hack is so that the source file can tell whether it is being
15001       # built for inclusion in a dll (and should export symbols for example).
15002       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15003       # (--disable-auto-import) libraries
15004       lt_prog_compiler_pic='-DDLL_EXPORT'
15005       ;;
15006
15007     darwin* | rhapsody*)
15008       # PIC is the default on this platform
15009       # Common symbols not allowed in MH_DYLIB files
15010       lt_prog_compiler_pic='-fno-common'
15011       ;;
15012
15013     haiku*)
15014       # PIC is the default for Haiku.
15015       # The "-static" flag exists, but is broken.
15016       lt_prog_compiler_static=
15017       ;;
15018
15019     hpux*)
15020       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15021       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15022       # sets the default TLS model and affects inlining.
15023       case $host_cpu in
15024       hppa*64*)
15025         # +Z the default
15026         ;;
15027       *)
15028         lt_prog_compiler_pic='-fPIC'
15029         ;;
15030       esac
15031       ;;
15032
15033     interix[3-9]*)
15034       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15035       # Instead, we relocate shared libraries at runtime.
15036       ;;
15037
15038     msdosdjgpp*)
15039       # Just because we use GCC doesn't mean we suddenly get shared libraries
15040       # on systems that don't support them.
15041       lt_prog_compiler_can_build_shared=no
15042       enable_shared=no
15043       ;;
15044
15045     *nto* | *qnx*)
15046       # QNX uses GNU C++, but need to define -shared option too, otherwise
15047       # it will coredump.
15048       lt_prog_compiler_pic='-fPIC -shared'
15049       ;;
15050
15051     sysv4*MP*)
15052       if test -d /usr/nec; then
15053         lt_prog_compiler_pic=-Kconform_pic
15054       fi
15055       ;;
15056
15057     *)
15058       lt_prog_compiler_pic='-fPIC'
15059       ;;
15060     esac
15061
15062     case $cc_basename in
15063     nvcc*) # Cuda Compiler Driver 2.2
15064       lt_prog_compiler_wl='-Xlinker '
15065       lt_prog_compiler_pic='-Xcompiler -fPIC'
15066       ;;
15067     esac
15068   else
15069     # PORTME Check for flag to pass linker flags through the system compiler.
15070     case $host_os in
15071     aix*)
15072       lt_prog_compiler_wl='-Wl,'
15073       if test "$host_cpu" = ia64; then
15074         # AIX 5 now supports IA64 processor
15075         lt_prog_compiler_static='-Bstatic'
15076       else
15077         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15078       fi
15079       ;;
15080
15081     mingw* | cygwin* | pw32* | os2* | cegcc*)
15082       # This hack is so that the source file can tell whether it is being
15083       # built for inclusion in a dll (and should export symbols for example).
15084       lt_prog_compiler_pic='-DDLL_EXPORT'
15085       ;;
15086
15087     hpux9* | hpux10* | hpux11*)
15088       lt_prog_compiler_wl='-Wl,'
15089       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15090       # not for PA HP-UX.
15091       case $host_cpu in
15092       hppa*64*|ia64*)
15093         # +Z the default
15094         ;;
15095       *)
15096         lt_prog_compiler_pic='+Z'
15097         ;;
15098       esac
15099       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15100       lt_prog_compiler_static='${wl}-a ${wl}archive'
15101       ;;
15102
15103     irix5* | irix6* | nonstopux*)
15104       lt_prog_compiler_wl='-Wl,'
15105       # PIC (with -KPIC) is the default.
15106       lt_prog_compiler_static='-non_shared'
15107       ;;
15108
15109     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15110       case $cc_basename in
15111       # old Intel for x86_64 which still supported -KPIC.
15112       ecc*)
15113         lt_prog_compiler_wl='-Wl,'
15114         lt_prog_compiler_pic='-KPIC'
15115         lt_prog_compiler_static='-static'
15116         ;;
15117       # icc used to be incompatible with GCC.
15118       # ICC 10 doesn't accept -KPIC any more.
15119       icc* | ifort*)
15120         lt_prog_compiler_wl='-Wl,'
15121         lt_prog_compiler_pic='-fPIC'
15122         lt_prog_compiler_static='-static'
15123         ;;
15124       # Lahey Fortran 8.1.
15125       lf95*)
15126         lt_prog_compiler_wl='-Wl,'
15127         lt_prog_compiler_pic='--shared'
15128         lt_prog_compiler_static='--static'
15129         ;;
15130       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15131         # Portland Group compilers (*not* the Pentium gcc compiler,
15132         # which looks to be a dead project)
15133         lt_prog_compiler_wl='-Wl,'
15134         lt_prog_compiler_pic='-fpic'
15135         lt_prog_compiler_static='-Bstatic'
15136         ;;
15137       ccc*)
15138         lt_prog_compiler_wl='-Wl,'
15139         # All Alpha code is PIC.
15140         lt_prog_compiler_static='-non_shared'
15141         ;;
15142       xl* | bgxl* | bgf* | mpixl*)
15143         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15144         lt_prog_compiler_wl='-Wl,'
15145         lt_prog_compiler_pic='-qpic'
15146         lt_prog_compiler_static='-qstaticlink'
15147         ;;
15148       *)
15149         case `$CC -V 2>&1 | sed 5q` in
15150         *Sun\ F* | *Sun*Fortran*)
15151           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15152           lt_prog_compiler_pic='-KPIC'
15153           lt_prog_compiler_static='-Bstatic'
15154           lt_prog_compiler_wl=''
15155           ;;
15156         *Sun\ C*)
15157           # Sun C 5.9
15158           lt_prog_compiler_pic='-KPIC'
15159           lt_prog_compiler_static='-Bstatic'
15160           lt_prog_compiler_wl='-Wl,'
15161           ;;
15162         esac
15163         ;;
15164       esac
15165       ;;
15166
15167     newsos6)
15168       lt_prog_compiler_pic='-KPIC'
15169       lt_prog_compiler_static='-Bstatic'
15170       ;;
15171
15172     *nto* | *qnx*)
15173       # QNX uses GNU C++, but need to define -shared option too, otherwise
15174       # it will coredump.
15175       lt_prog_compiler_pic='-fPIC -shared'
15176       ;;
15177
15178     osf3* | osf4* | osf5*)
15179       lt_prog_compiler_wl='-Wl,'
15180       # All OSF/1 code is PIC.
15181       lt_prog_compiler_static='-non_shared'
15182       ;;
15183
15184     rdos*)
15185       lt_prog_compiler_static='-non_shared'
15186       ;;
15187
15188     solaris*)
15189       lt_prog_compiler_pic='-KPIC'
15190       lt_prog_compiler_static='-Bstatic'
15191       case $cc_basename in
15192       f77* | f90* | f95*)
15193         lt_prog_compiler_wl='-Qoption ld ';;
15194       *)
15195         lt_prog_compiler_wl='-Wl,';;
15196       esac
15197       ;;
15198
15199     sunos4*)
15200       lt_prog_compiler_wl='-Qoption ld '
15201       lt_prog_compiler_pic='-PIC'
15202       lt_prog_compiler_static='-Bstatic'
15203       ;;
15204
15205     sysv4 | sysv4.2uw2* | sysv4.3*)
15206       lt_prog_compiler_wl='-Wl,'
15207       lt_prog_compiler_pic='-KPIC'
15208       lt_prog_compiler_static='-Bstatic'
15209       ;;
15210
15211     sysv4*MP*)
15212       if test -d /usr/nec ;then
15213         lt_prog_compiler_pic='-Kconform_pic'
15214         lt_prog_compiler_static='-Bstatic'
15215       fi
15216       ;;
15217
15218     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15219       lt_prog_compiler_wl='-Wl,'
15220       lt_prog_compiler_pic='-KPIC'
15221       lt_prog_compiler_static='-Bstatic'
15222       ;;
15223
15224     unicos*)
15225       lt_prog_compiler_wl='-Wl,'
15226       lt_prog_compiler_can_build_shared=no
15227       ;;
15228
15229     uts4*)
15230       lt_prog_compiler_pic='-pic'
15231       lt_prog_compiler_static='-Bstatic'
15232       ;;
15233
15234     *)
15235       lt_prog_compiler_can_build_shared=no
15236       ;;
15237     esac
15238   fi
15239
15240 case $host_os in
15241   # For platforms which do not support PIC, -DPIC is meaningless:
15242   *djgpp*)
15243     lt_prog_compiler_pic=
15244     ;;
15245   *)
15246     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15247     ;;
15248 esac
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15250 $as_echo "$lt_prog_compiler_pic" >&6; }
15251
15252
15253
15254
15255
15256
15257 #
15258 # Check to make sure the PIC flag actually works.
15259 #
15260 if test -n "$lt_prog_compiler_pic"; then
15261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15262 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15263 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15264   $as_echo_n "(cached) " >&6
15265 else
15266   lt_cv_prog_compiler_pic_works=no
15267    ac_outfile=conftest.$ac_objext
15268    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15269    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15270    # Insert the option either (1) after the last *FLAGS variable, or
15271    # (2) before a word containing "conftest.", or (3) at the end.
15272    # Note that $ac_compile itself does not contain backslashes and begins
15273    # with a dollar sign (not a hyphen), so the echo should work correctly.
15274    # The option is referenced via a variable to avoid confusing sed.
15275    lt_compile=`echo "$ac_compile" | $SED \
15276    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15277    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15278    -e 's:$: $lt_compiler_flag:'`
15279    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15280    (eval "$lt_compile" 2>conftest.err)
15281    ac_status=$?
15282    cat conftest.err >&5
15283    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284    if (exit $ac_status) && test -s "$ac_outfile"; then
15285      # The compiler can only warn and ignore the option if not recognized
15286      # So say no if there are warnings other than the usual output.
15287      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15288      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15289      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15290        lt_cv_prog_compiler_pic_works=yes
15291      fi
15292    fi
15293    $RM conftest*
15294
15295 fi
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15297 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15298
15299 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15300     case $lt_prog_compiler_pic in
15301      "" | " "*) ;;
15302      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15303      esac
15304 else
15305     lt_prog_compiler_pic=
15306      lt_prog_compiler_can_build_shared=no
15307 fi
15308
15309 fi
15310
15311
15312
15313
15314
15315
15316 #
15317 # Check to make sure the static flag actually works.
15318 #
15319 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15321 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15322 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15323   $as_echo_n "(cached) " >&6
15324 else
15325   lt_cv_prog_compiler_static_works=no
15326    save_LDFLAGS="$LDFLAGS"
15327    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15328    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15329    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15330      # The linker can only warn and ignore the option if not recognized
15331      # So say no if there are warnings
15332      if test -s conftest.err; then
15333        # Append any errors to the config.log.
15334        cat conftest.err 1>&5
15335        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15336        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15337        if diff conftest.exp conftest.er2 >/dev/null; then
15338          lt_cv_prog_compiler_static_works=yes
15339        fi
15340      else
15341        lt_cv_prog_compiler_static_works=yes
15342      fi
15343    fi
15344    $RM -r conftest*
15345    LDFLAGS="$save_LDFLAGS"
15346
15347 fi
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15349 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15350
15351 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15352     :
15353 else
15354     lt_prog_compiler_static=
15355 fi
15356
15357
15358
15359
15360
15361
15362
15363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15364 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15365 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15366   $as_echo_n "(cached) " >&6
15367 else
15368   lt_cv_prog_compiler_c_o=no
15369    $RM -r conftest 2>/dev/null
15370    mkdir conftest
15371    cd conftest
15372    mkdir out
15373    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15374
15375    lt_compiler_flag="-o out/conftest2.$ac_objext"
15376    # Insert the option either (1) after the last *FLAGS variable, or
15377    # (2) before a word containing "conftest.", or (3) at the end.
15378    # Note that $ac_compile itself does not contain backslashes and begins
15379    # with a dollar sign (not a hyphen), so the echo should work correctly.
15380    lt_compile=`echo "$ac_compile" | $SED \
15381    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15382    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15383    -e 's:$: $lt_compiler_flag:'`
15384    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15385    (eval "$lt_compile" 2>out/conftest.err)
15386    ac_status=$?
15387    cat out/conftest.err >&5
15388    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15390    then
15391      # The compiler can only warn and ignore the option if not recognized
15392      # So say no if there are warnings
15393      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15394      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15395      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15396        lt_cv_prog_compiler_c_o=yes
15397      fi
15398    fi
15399    chmod u+w . 2>&5
15400    $RM conftest*
15401    # SGI C++ compiler will create directory out/ii_files/ for
15402    # template instantiation
15403    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15404    $RM out/* && rmdir out
15405    cd ..
15406    $RM -r conftest
15407    $RM conftest*
15408
15409 fi
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15411 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15412
15413
15414
15415
15416
15417
15418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15419 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15420 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15421   $as_echo_n "(cached) " >&6
15422 else
15423   lt_cv_prog_compiler_c_o=no
15424    $RM -r conftest 2>/dev/null
15425    mkdir conftest
15426    cd conftest
15427    mkdir out
15428    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15429
15430    lt_compiler_flag="-o out/conftest2.$ac_objext"
15431    # Insert the option either (1) after the last *FLAGS variable, or
15432    # (2) before a word containing "conftest.", or (3) at the end.
15433    # Note that $ac_compile itself does not contain backslashes and begins
15434    # with a dollar sign (not a hyphen), so the echo should work correctly.
15435    lt_compile=`echo "$ac_compile" | $SED \
15436    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15437    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15438    -e 's:$: $lt_compiler_flag:'`
15439    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15440    (eval "$lt_compile" 2>out/conftest.err)
15441    ac_status=$?
15442    cat out/conftest.err >&5
15443    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15445    then
15446      # The compiler can only warn and ignore the option if not recognized
15447      # So say no if there are warnings
15448      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15449      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15450      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15451        lt_cv_prog_compiler_c_o=yes
15452      fi
15453    fi
15454    chmod u+w . 2>&5
15455    $RM conftest*
15456    # SGI C++ compiler will create directory out/ii_files/ for
15457    # template instantiation
15458    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15459    $RM out/* && rmdir out
15460    cd ..
15461    $RM -r conftest
15462    $RM conftest*
15463
15464 fi
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15466 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15467
15468
15469
15470
15471 hard_links="nottested"
15472 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15473   # do not overwrite the value of need_locks provided by the user
15474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15475 $as_echo_n "checking if we can lock with hard links... " >&6; }
15476   hard_links=yes
15477   $RM conftest*
15478   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15479   touch conftest.a
15480   ln conftest.a conftest.b 2>&5 || hard_links=no
15481   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15483 $as_echo "$hard_links" >&6; }
15484   if test "$hard_links" = no; then
15485     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15486 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15487     need_locks=warn
15488   fi
15489 else
15490   need_locks=no
15491 fi
15492
15493
15494
15495
15496
15497
15498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15499 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15500
15501   runpath_var=
15502   allow_undefined_flag=
15503   always_export_symbols=no
15504   archive_cmds=
15505   archive_expsym_cmds=
15506   compiler_needs_object=no
15507   enable_shared_with_static_runtimes=no
15508   export_dynamic_flag_spec=
15509   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15510   hardcode_automatic=no
15511   hardcode_direct=no
15512   hardcode_direct_absolute=no
15513   hardcode_libdir_flag_spec=
15514   hardcode_libdir_flag_spec_ld=
15515   hardcode_libdir_separator=
15516   hardcode_minus_L=no
15517   hardcode_shlibpath_var=unsupported
15518   inherit_rpath=no
15519   link_all_deplibs=unknown
15520   module_cmds=
15521   module_expsym_cmds=
15522   old_archive_from_new_cmds=
15523   old_archive_from_expsyms_cmds=
15524   thread_safe_flag_spec=
15525   whole_archive_flag_spec=
15526   # include_expsyms should be a list of space-separated symbols to be *always*
15527   # included in the symbol list
15528   include_expsyms=
15529   # exclude_expsyms can be an extended regexp of symbols to exclude
15530   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15531   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15532   # as well as any symbol that contains `d'.
15533   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15534   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15535   # platforms (ab)use it in PIC code, but their linkers get confused if
15536   # the symbol is explicitly referenced.  Since portable code cannot
15537   # rely on this symbol name, it's probably fine to never include it in
15538   # preloaded symbol tables.
15539   # Exclude shared library initialization/finalization symbols.
15540   extract_expsyms_cmds=
15541
15542   case $host_os in
15543   cygwin* | mingw* | pw32* | cegcc*)
15544     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15545     # When not using gcc, we currently assume that we are using
15546     # Microsoft Visual C++.
15547     if test "$GCC" != yes; then
15548       with_gnu_ld=no
15549     fi
15550     ;;
15551   interix*)
15552     # we just hope/assume this is gcc and not c89 (= MSVC++)
15553     with_gnu_ld=yes
15554     ;;
15555   openbsd*)
15556     with_gnu_ld=no
15557     ;;
15558   esac
15559
15560   ld_shlibs=yes
15561
15562   # On some targets, GNU ld is compatible enough with the native linker
15563   # that we're better off using the native interface for both.
15564   lt_use_gnu_ld_interface=no
15565   if test "$with_gnu_ld" = yes; then
15566     case $host_os in
15567       aix*)
15568         # The AIX port of GNU ld has always aspired to compatibility
15569         # with the native linker.  However, as the warning in the GNU ld
15570         # block says, versions before 2.19.5* couldn't really create working
15571         # shared libraries, regardless of the interface used.
15572         case `$LD -v 2>&1` in
15573           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15574           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15575           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15576           *)
15577             lt_use_gnu_ld_interface=yes
15578             ;;
15579         esac
15580         ;;
15581       *)
15582         lt_use_gnu_ld_interface=yes
15583         ;;
15584     esac
15585   fi
15586
15587   if test "$lt_use_gnu_ld_interface" = yes; then
15588     # If archive_cmds runs LD, not CC, wlarc should be empty
15589     wlarc='${wl}'
15590
15591     # Set some defaults for GNU ld with shared library support. These
15592     # are reset later if shared libraries are not supported. Putting them
15593     # here allows them to be overridden if necessary.
15594     runpath_var=LD_RUN_PATH
15595     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15596     export_dynamic_flag_spec='${wl}--export-dynamic'
15597     # ancient GNU ld didn't support --whole-archive et. al.
15598     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15599       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15600     else
15601       whole_archive_flag_spec=
15602     fi
15603     supports_anon_versioning=no
15604     case `$LD -v 2>&1` in
15605       *GNU\ gold*) supports_anon_versioning=yes ;;
15606       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15607       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15608       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15609       *\ 2.11.*) ;; # other 2.11 versions
15610       *) supports_anon_versioning=yes ;;
15611     esac
15612
15613     # See if GNU ld supports shared libraries.
15614     case $host_os in
15615     aix[3-9]*)
15616       # On AIX/PPC, the GNU linker is very broken
15617       if test "$host_cpu" != ia64; then
15618         ld_shlibs=no
15619         cat <<_LT_EOF 1>&2
15620
15621 *** Warning: the GNU linker, at least up to release 2.19, is reported
15622 *** to be unable to reliably create shared libraries on AIX.
15623 *** Therefore, libtool is disabling shared libraries support.  If you
15624 *** really care for shared libraries, you may want to install binutils
15625 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15626 *** You will then need to restart the configuration process.
15627
15628 _LT_EOF
15629       fi
15630       ;;
15631
15632     amigaos*)
15633       case $host_cpu in
15634       powerpc)
15635             # see comment about AmigaOS4 .so support
15636             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15637             archive_expsym_cmds=''
15638         ;;
15639       m68k)
15640             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)'
15641             hardcode_libdir_flag_spec='-L$libdir'
15642             hardcode_minus_L=yes
15643         ;;
15644       esac
15645       ;;
15646
15647     beos*)
15648       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15649         allow_undefined_flag=unsupported
15650         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15651         # support --undefined.  This deserves some investigation.  FIXME
15652         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15653       else
15654         ld_shlibs=no
15655       fi
15656       ;;
15657
15658     cygwin* | mingw* | pw32* | cegcc*)
15659       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15660       # as there is no search path for DLLs.
15661       hardcode_libdir_flag_spec='-L$libdir'
15662       export_dynamic_flag_spec='${wl}--export-all-symbols'
15663       allow_undefined_flag=unsupported
15664       always_export_symbols=no
15665       enable_shared_with_static_runtimes=yes
15666       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15667
15668       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15669         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15670         # If the export-symbols file already is a .def file (1st line
15671         # is EXPORTS), use it as is; otherwise, prepend...
15672         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15673           cp $export_symbols $output_objdir/$soname.def;
15674         else
15675           echo EXPORTS > $output_objdir/$soname.def;
15676           cat $export_symbols >> $output_objdir/$soname.def;
15677         fi~
15678         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15679       else
15680         ld_shlibs=no
15681       fi
15682       ;;
15683
15684     haiku*)
15685       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15686       link_all_deplibs=yes
15687       ;;
15688
15689     interix[3-9]*)
15690       hardcode_direct=no
15691       hardcode_shlibpath_var=no
15692       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15693       export_dynamic_flag_spec='${wl}-E'
15694       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15695       # Instead, shared libraries are loaded at an image base (0x10000000 by
15696       # default) and relocated if they conflict, which is a slow very memory
15697       # consuming and fragmenting process.  To avoid this, we pick a random,
15698       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15699       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15700       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15701       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'
15702       ;;
15703
15704     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15705       tmp_diet=no
15706       if test "$host_os" = linux-dietlibc; then
15707         case $cc_basename in
15708           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15709         esac
15710       fi
15711       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15712          && test "$tmp_diet" = no
15713       then
15714         tmp_addflag=
15715         tmp_sharedflag='-shared'
15716         case $cc_basename,$host_cpu in
15717         pgcc*)                          # Portland Group C compiler
15718           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'
15719           tmp_addflag=' $pic_flag'
15720           ;;
15721         pgf77* | pgf90* | pgf95* | pgfortran*)
15722                                         # Portland Group f77 and f90 compilers
15723           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'
15724           tmp_addflag=' $pic_flag -Mnomain' ;;
15725         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15726           tmp_addflag=' -i_dynamic' ;;
15727         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15728           tmp_addflag=' -i_dynamic -nofor_main' ;;
15729         ifc* | ifort*)                  # Intel Fortran compiler
15730           tmp_addflag=' -nofor_main' ;;
15731         lf95*)                          # Lahey Fortran 8.1
15732           whole_archive_flag_spec=
15733           tmp_sharedflag='--shared' ;;
15734         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15735           tmp_sharedflag='-qmkshrobj'
15736           tmp_addflag= ;;
15737         nvcc*)  # Cuda Compiler Driver 2.2
15738           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'
15739           compiler_needs_object=yes
15740           ;;
15741         esac
15742         case `$CC -V 2>&1 | sed 5q` in
15743         *Sun\ C*)                       # Sun C 5.9
15744           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'
15745           compiler_needs_object=yes
15746           tmp_sharedflag='-G' ;;
15747         *Sun\ F*)                       # Sun Fortran 8.3
15748           tmp_sharedflag='-G' ;;
15749         esac
15750         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15751
15752         if test "x$supports_anon_versioning" = xyes; then
15753           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15754             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15755             echo "local: *; };" >> $output_objdir/$libname.ver~
15756             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15757         fi
15758
15759         case $cc_basename in
15760         xlf* | bgf* | bgxlf* | mpixlf*)
15761           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15762           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15763           hardcode_libdir_flag_spec=
15764           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15765           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15766           if test "x$supports_anon_versioning" = xyes; then
15767             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15768               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15769               echo "local: *; };" >> $output_objdir/$libname.ver~
15770               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15771           fi
15772           ;;
15773         esac
15774       else
15775         ld_shlibs=no
15776       fi
15777       ;;
15778
15779     netbsd*)
15780       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15781         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15782         wlarc=
15783       else
15784         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15785         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15786       fi
15787       ;;
15788
15789     solaris*)
15790       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15791         ld_shlibs=no
15792         cat <<_LT_EOF 1>&2
15793
15794 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15795 *** create shared libraries on Solaris systems.  Therefore, libtool
15796 *** is disabling shared libraries support.  We urge you to upgrade GNU
15797 *** binutils to release 2.9.1 or newer.  Another option is to modify
15798 *** your PATH or compiler configuration so that the native linker is
15799 *** used, and then restart.
15800
15801 _LT_EOF
15802       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15803         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15804         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15805       else
15806         ld_shlibs=no
15807       fi
15808       ;;
15809
15810     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15811       case `$LD -v 2>&1` in
15812         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15813         ld_shlibs=no
15814         cat <<_LT_EOF 1>&2
15815
15816 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15817 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15818 *** is disabling shared libraries support.  We urge you to upgrade GNU
15819 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15820 *** your PATH or compiler configuration so that the native linker is
15821 *** used, and then restart.
15822
15823 _LT_EOF
15824         ;;
15825         *)
15826           # For security reasons, it is highly recommended that you always
15827           # use absolute paths for naming shared libraries, and exclude the
15828           # DT_RUNPATH tag from executables and libraries.  But doing so
15829           # requires that you compile everything twice, which is a pain.
15830           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15831             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15832             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15833             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15834           else
15835             ld_shlibs=no
15836           fi
15837         ;;
15838       esac
15839       ;;
15840
15841     sunos4*)
15842       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15843       wlarc=
15844       hardcode_direct=yes
15845       hardcode_shlibpath_var=no
15846       ;;
15847
15848     *)
15849       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15850         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15851         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15852       else
15853         ld_shlibs=no
15854       fi
15855       ;;
15856     esac
15857
15858     if test "$ld_shlibs" = no; then
15859       runpath_var=
15860       hardcode_libdir_flag_spec=
15861       export_dynamic_flag_spec=
15862       whole_archive_flag_spec=
15863     fi
15864   else
15865     # PORTME fill in a description of your system's linker (not GNU ld)
15866     case $host_os in
15867     aix3*)
15868       allow_undefined_flag=unsupported
15869       always_export_symbols=yes
15870       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'
15871       # Note: this linker hardcodes the directories in LIBPATH if there
15872       # are no directories specified by -L.
15873       hardcode_minus_L=yes
15874       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15875         # Neither direct hardcoding nor static linking is supported with a
15876         # broken collect2.
15877         hardcode_direct=unsupported
15878       fi
15879       ;;
15880
15881     aix[4-9]*)
15882       if test "$host_cpu" = ia64; then
15883         # On IA64, the linker does run time linking by default, so we don't
15884         # have to do anything special.
15885         aix_use_runtimelinking=no
15886         exp_sym_flag='-Bexport'
15887         no_entry_flag=""
15888       else
15889         # If we're using GNU nm, then we don't want the "-C" option.
15890         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15891         # Also, AIX nm treats weak defined symbols like other global
15892         # defined symbols, whereas GNU nm marks them as "W".
15893         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15894           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'
15895         else
15896           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'
15897         fi
15898         aix_use_runtimelinking=no
15899
15900         # Test if we are trying to use run time linking or normal
15901         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15902         # need to do runtime linking.
15903         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15904           for ld_flag in $LDFLAGS; do
15905           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15906             aix_use_runtimelinking=yes
15907             break
15908           fi
15909           done
15910           ;;
15911         esac
15912
15913         exp_sym_flag='-bexport'
15914         no_entry_flag='-bnoentry'
15915       fi
15916
15917       # When large executables or shared objects are built, AIX ld can
15918       # have problems creating the table of contents.  If linking a library
15919       # or program results in "error TOC overflow" add -mminimal-toc to
15920       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15921       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15922
15923       archive_cmds=''
15924       hardcode_direct=yes
15925       hardcode_direct_absolute=yes
15926       hardcode_libdir_separator=':'
15927       link_all_deplibs=yes
15928       file_list_spec='${wl}-f,'
15929
15930       if test "$GCC" = yes; then
15931         case $host_os in aix4.[012]|aix4.[012].*)
15932         # We only want to do this on AIX 4.2 and lower, the check
15933         # below for broken collect2 doesn't work under 4.3+
15934           collect2name=`${CC} -print-prog-name=collect2`
15935           if test -f "$collect2name" &&
15936            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15937           then
15938           # We have reworked collect2
15939           :
15940           else
15941           # We have old collect2
15942           hardcode_direct=unsupported
15943           # It fails to find uninstalled libraries when the uninstalled
15944           # path is not listed in the libpath.  Setting hardcode_minus_L
15945           # to unsupported forces relinking
15946           hardcode_minus_L=yes
15947           hardcode_libdir_flag_spec='-L$libdir'
15948           hardcode_libdir_separator=
15949           fi
15950           ;;
15951         esac
15952         shared_flag='-shared'
15953         if test "$aix_use_runtimelinking" = yes; then
15954           shared_flag="$shared_flag "'${wl}-G'
15955         fi
15956       else
15957         # not using gcc
15958         if test "$host_cpu" = ia64; then
15959         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15960         # chokes on -Wl,-G. The following line is correct:
15961           shared_flag='-G'
15962         else
15963           if test "$aix_use_runtimelinking" = yes; then
15964             shared_flag='${wl}-G'
15965           else
15966             shared_flag='${wl}-bM:SRE'
15967           fi
15968         fi
15969       fi
15970
15971       export_dynamic_flag_spec='${wl}-bexpall'
15972       # It seems that -bexpall does not export symbols beginning with
15973       # underscore (_), so it is better to generate a list of symbols to export.
15974       always_export_symbols=yes
15975       if test "$aix_use_runtimelinking" = yes; then
15976         # Warning - without using the other runtime loading flags (-brtl),
15977         # -berok will link without error, but may produce a broken library.
15978         allow_undefined_flag='-berok'
15979         # Determine the default libpath from the value encoded in an
15980         # empty executable.
15981         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h.  */
15983
15984 int
15985 main ()
15986 {
15987
15988   ;
15989   return 0;
15990 }
15991 _ACEOF
15992 if ac_fn_c_try_link "$LINENO"; then :
15993
15994 lt_aix_libpath_sed='
15995     /Import File Strings/,/^$/ {
15996         /^0/ {
15997             s/^0  *\(.*\)$/\1/
15998             p
15999         }
16000     }'
16001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16002 # Check for a 64-bit object if we didn't find anything.
16003 if test -z "$aix_libpath"; then
16004   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16005 fi
16006 fi
16007 rm -f core conftest.err conftest.$ac_objext \
16008     conftest$ac_exeext conftest.$ac_ext
16009 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16010
16011         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16012         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"
16013       else
16014         if test "$host_cpu" = ia64; then
16015           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16016           allow_undefined_flag="-z nodefs"
16017           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"
16018         else
16019          # Determine the default libpath from the value encoded in an
16020          # empty executable.
16021          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h.  */
16023
16024 int
16025 main ()
16026 {
16027
16028   ;
16029   return 0;
16030 }
16031 _ACEOF
16032 if ac_fn_c_try_link "$LINENO"; then :
16033
16034 lt_aix_libpath_sed='
16035     /Import File Strings/,/^$/ {
16036         /^0/ {
16037             s/^0  *\(.*\)$/\1/
16038             p
16039         }
16040     }'
16041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16042 # Check for a 64-bit object if we didn't find anything.
16043 if test -z "$aix_libpath"; then
16044   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16045 fi
16046 fi
16047 rm -f core conftest.err conftest.$ac_objext \
16048     conftest$ac_exeext conftest.$ac_ext
16049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16050
16051          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16052           # Warning - without using the other run time loading flags,
16053           # -berok will link without error, but may produce a broken library.
16054           no_undefined_flag=' ${wl}-bernotok'
16055           allow_undefined_flag=' ${wl}-berok'
16056           if test "$with_gnu_ld" = yes; then
16057             # We only use this code for GNU lds that support --whole-archive.
16058             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16059           else
16060             # Exported symbols can be pulled into shared objects from archives
16061             whole_archive_flag_spec='$convenience'
16062           fi
16063           archive_cmds_need_lc=yes
16064           # This is similar to how AIX traditionally builds its shared libraries.
16065           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'
16066         fi
16067       fi
16068       ;;
16069
16070     amigaos*)
16071       case $host_cpu in
16072       powerpc)
16073             # see comment about AmigaOS4 .so support
16074             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16075             archive_expsym_cmds=''
16076         ;;
16077       m68k)
16078             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)'
16079             hardcode_libdir_flag_spec='-L$libdir'
16080             hardcode_minus_L=yes
16081         ;;
16082       esac
16083       ;;
16084
16085     bsdi[45]*)
16086       export_dynamic_flag_spec=-rdynamic
16087       ;;
16088
16089     cygwin* | mingw* | pw32* | cegcc*)
16090       # When not using gcc, we currently assume that we are using
16091       # Microsoft Visual C++.
16092       # hardcode_libdir_flag_spec is actually meaningless, as there is
16093       # no search path for DLLs.
16094       hardcode_libdir_flag_spec=' '
16095       allow_undefined_flag=unsupported
16096       # Tell ltmain to make .lib files, not .a files.
16097       libext=lib
16098       # Tell ltmain to make .dll files, not .so files.
16099       shrext_cmds=".dll"
16100       # FIXME: Setting linknames here is a bad hack.
16101       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16102       # The linker will automatically build a .lib file if we build a DLL.
16103       old_archive_from_new_cmds='true'
16104       # FIXME: Should let the user specify the lib program.
16105       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16106       fix_srcfile_path='`cygpath -w "$srcfile"`'
16107       enable_shared_with_static_runtimes=yes
16108       ;;
16109
16110     darwin* | rhapsody*)
16111
16112
16113   archive_cmds_need_lc=no
16114   hardcode_direct=no
16115   hardcode_automatic=yes
16116   hardcode_shlibpath_var=unsupported
16117   if test "$lt_cv_ld_force_load" = "yes"; then
16118     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\"`'
16119   else
16120     whole_archive_flag_spec=''
16121   fi
16122   link_all_deplibs=yes
16123   allow_undefined_flag="$_lt_dar_allow_undefined"
16124   case $cc_basename in
16125      ifort*) _lt_dar_can_shared=yes ;;
16126      *) _lt_dar_can_shared=$GCC ;;
16127   esac
16128   if test "$_lt_dar_can_shared" = "yes"; then
16129     output_verbose_link_cmd=func_echo_all
16130     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16131     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16132     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}"
16133     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}"
16134
16135   else
16136   ld_shlibs=no
16137   fi
16138
16139       ;;
16140
16141     dgux*)
16142       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143       hardcode_libdir_flag_spec='-L$libdir'
16144       hardcode_shlibpath_var=no
16145       ;;
16146
16147     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16148     # support.  Future versions do this automatically, but an explicit c++rt0.o
16149     # does not break anything, and helps significantly (at the cost of a little
16150     # extra space).
16151     freebsd2.2*)
16152       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16153       hardcode_libdir_flag_spec='-R$libdir'
16154       hardcode_direct=yes
16155       hardcode_shlibpath_var=no
16156       ;;
16157
16158     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16159     freebsd2*)
16160       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16161       hardcode_direct=yes
16162       hardcode_minus_L=yes
16163       hardcode_shlibpath_var=no
16164       ;;
16165
16166     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16167     freebsd* | dragonfly*)
16168       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16169       hardcode_libdir_flag_spec='-R$libdir'
16170       hardcode_direct=yes
16171       hardcode_shlibpath_var=no
16172       ;;
16173
16174     hpux9*)
16175       if test "$GCC" = yes; then
16176         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'
16177       else
16178         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'
16179       fi
16180       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16181       hardcode_libdir_separator=:
16182       hardcode_direct=yes
16183
16184       # hardcode_minus_L: Not really in the search PATH,
16185       # but as the default location of the library.
16186       hardcode_minus_L=yes
16187       export_dynamic_flag_spec='${wl}-E'
16188       ;;
16189
16190     hpux10*)
16191       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16192         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16193       else
16194         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16195       fi
16196       if test "$with_gnu_ld" = no; then
16197         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16198         hardcode_libdir_flag_spec_ld='+b $libdir'
16199         hardcode_libdir_separator=:
16200         hardcode_direct=yes
16201         hardcode_direct_absolute=yes
16202         export_dynamic_flag_spec='${wl}-E'
16203         # hardcode_minus_L: Not really in the search PATH,
16204         # but as the default location of the library.
16205         hardcode_minus_L=yes
16206       fi
16207       ;;
16208
16209     hpux11*)
16210       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16211         case $host_cpu in
16212         hppa*64*)
16213           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16214           ;;
16215         ia64*)
16216           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16217           ;;
16218         *)
16219           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16220           ;;
16221         esac
16222       else
16223         case $host_cpu in
16224         hppa*64*)
16225           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16226           ;;
16227         ia64*)
16228           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16229           ;;
16230         *)
16231
16232           # Older versions of the 11.00 compiler do not understand -b yet
16233           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16234           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16235 $as_echo_n "checking if $CC understands -b... " >&6; }
16236 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16237   $as_echo_n "(cached) " >&6
16238 else
16239   lt_cv_prog_compiler__b=no
16240    save_LDFLAGS="$LDFLAGS"
16241    LDFLAGS="$LDFLAGS -b"
16242    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16243    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16244      # The linker can only warn and ignore the option if not recognized
16245      # So say no if there are warnings
16246      if test -s conftest.err; then
16247        # Append any errors to the config.log.
16248        cat conftest.err 1>&5
16249        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16250        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16251        if diff conftest.exp conftest.er2 >/dev/null; then
16252          lt_cv_prog_compiler__b=yes
16253        fi
16254      else
16255        lt_cv_prog_compiler__b=yes
16256      fi
16257    fi
16258    $RM -r conftest*
16259    LDFLAGS="$save_LDFLAGS"
16260
16261 fi
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16263 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16264
16265 if test x"$lt_cv_prog_compiler__b" = xyes; then
16266     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16267 else
16268     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16269 fi
16270
16271           ;;
16272         esac
16273       fi
16274       if test "$with_gnu_ld" = no; then
16275         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16276         hardcode_libdir_separator=:
16277
16278         case $host_cpu in
16279         hppa*64*|ia64*)
16280           hardcode_direct=no
16281           hardcode_shlibpath_var=no
16282           ;;
16283         *)
16284           hardcode_direct=yes
16285           hardcode_direct_absolute=yes
16286           export_dynamic_flag_spec='${wl}-E'
16287
16288           # hardcode_minus_L: Not really in the search PATH,
16289           # but as the default location of the library.
16290           hardcode_minus_L=yes
16291           ;;
16292         esac
16293       fi
16294       ;;
16295
16296     irix5* | irix6* | nonstopux*)
16297       if test "$GCC" = yes; then
16298         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'
16299         # Try to use the -exported_symbol ld option, if it does not
16300         # work, assume that -exports_file does not work either and
16301         # implicitly export all symbols.
16302         save_LDFLAGS="$LDFLAGS"
16303         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16304         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h.  */
16306 int foo(void) {}
16307 _ACEOF
16308 if ac_fn_c_try_link "$LINENO"; then :
16309   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'
16310
16311 fi
16312 rm -f core conftest.err conftest.$ac_objext \
16313     conftest$ac_exeext conftest.$ac_ext
16314         LDFLAGS="$save_LDFLAGS"
16315       else
16316         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'
16317         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'
16318       fi
16319       archive_cmds_need_lc='no'
16320       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16321       hardcode_libdir_separator=:
16322       inherit_rpath=yes
16323       link_all_deplibs=yes
16324       ;;
16325
16326     netbsd*)
16327       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16328         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16329       else
16330         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16331       fi
16332       hardcode_libdir_flag_spec='-R$libdir'
16333       hardcode_direct=yes
16334       hardcode_shlibpath_var=no
16335       ;;
16336
16337     newsos6)
16338       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16339       hardcode_direct=yes
16340       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16341       hardcode_libdir_separator=:
16342       hardcode_shlibpath_var=no
16343       ;;
16344
16345     *nto* | *qnx*)
16346       ;;
16347
16348     openbsd*)
16349       if test -f /usr/libexec/ld.so; then
16350         hardcode_direct=yes
16351         hardcode_shlibpath_var=no
16352         hardcode_direct_absolute=yes
16353         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16354           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16355           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16356           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16357           export_dynamic_flag_spec='${wl}-E'
16358         else
16359           case $host_os in
16360            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16361              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16362              hardcode_libdir_flag_spec='-R$libdir'
16363              ;;
16364            *)
16365              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16366              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16367              ;;
16368           esac
16369         fi
16370       else
16371         ld_shlibs=no
16372       fi
16373       ;;
16374
16375     os2*)
16376       hardcode_libdir_flag_spec='-L$libdir'
16377       hardcode_minus_L=yes
16378       allow_undefined_flag=unsupported
16379       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'
16380       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16381       ;;
16382
16383     osf3*)
16384       if test "$GCC" = yes; then
16385         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16386         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'
16387       else
16388         allow_undefined_flag=' -expect_unresolved \*'
16389         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'
16390       fi
16391       archive_cmds_need_lc='no'
16392       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16393       hardcode_libdir_separator=:
16394       ;;
16395
16396     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16397       if test "$GCC" = yes; then
16398         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16399         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'
16400         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16401       else
16402         allow_undefined_flag=' -expect_unresolved \*'
16403         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'
16404         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~
16405         $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'
16406
16407         # Both c and cxx compiler support -rpath directly
16408         hardcode_libdir_flag_spec='-rpath $libdir'
16409       fi
16410       archive_cmds_need_lc='no'
16411       hardcode_libdir_separator=:
16412       ;;
16413
16414     solaris*)
16415       no_undefined_flag=' -z defs'
16416       if test "$GCC" = yes; then
16417         wlarc='${wl}'
16418         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16419         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16420           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16421       else
16422         case `$CC -V 2>&1` in
16423         *"Compilers 5.0"*)
16424           wlarc=''
16425           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16426           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16427           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16428           ;;
16429         *)
16430           wlarc='${wl}'
16431           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16432           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16433           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16434           ;;
16435         esac
16436       fi
16437       hardcode_libdir_flag_spec='-R$libdir'
16438       hardcode_shlibpath_var=no
16439       case $host_os in
16440       solaris2.[0-5] | solaris2.[0-5].*) ;;
16441       *)
16442         # The compiler driver will combine and reorder linker options,
16443         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16444         # but is careful enough not to reorder.
16445         # Supported since Solaris 2.6 (maybe 2.5.1?)
16446         if test "$GCC" = yes; then
16447           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16448         else
16449           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16450         fi
16451         ;;
16452       esac
16453       link_all_deplibs=yes
16454       ;;
16455
16456     sunos4*)
16457       if test "x$host_vendor" = xsequent; then
16458         # Use $CC to link under sequent, because it throws in some extra .o
16459         # files that make .init and .fini sections work.
16460         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16461       else
16462         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16463       fi
16464       hardcode_libdir_flag_spec='-L$libdir'
16465       hardcode_direct=yes
16466       hardcode_minus_L=yes
16467       hardcode_shlibpath_var=no
16468       ;;
16469
16470     sysv4)
16471       case $host_vendor in
16472         sni)
16473           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16474           hardcode_direct=yes # is this really true???
16475         ;;
16476         siemens)
16477           ## LD is ld it makes a PLAMLIB
16478           ## CC just makes a GrossModule.
16479           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16480           reload_cmds='$CC -r -o $output$reload_objs'
16481           hardcode_direct=no
16482         ;;
16483         motorola)
16484           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16485           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16486         ;;
16487       esac
16488       runpath_var='LD_RUN_PATH'
16489       hardcode_shlibpath_var=no
16490       ;;
16491
16492     sysv4.3*)
16493       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16494       hardcode_shlibpath_var=no
16495       export_dynamic_flag_spec='-Bexport'
16496       ;;
16497
16498     sysv4*MP*)
16499       if test -d /usr/nec; then
16500         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501         hardcode_shlibpath_var=no
16502         runpath_var=LD_RUN_PATH
16503         hardcode_runpath_var=yes
16504         ld_shlibs=yes
16505       fi
16506       ;;
16507
16508     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16509       no_undefined_flag='${wl}-z,text'
16510       archive_cmds_need_lc=no
16511       hardcode_shlibpath_var=no
16512       runpath_var='LD_RUN_PATH'
16513
16514       if test "$GCC" = yes; then
16515         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16516         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16517       else
16518         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16519         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16520       fi
16521       ;;
16522
16523     sysv5* | sco3.2v5* | sco5v6*)
16524       # Note: We can NOT use -z defs as we might desire, because we do not
16525       # link with -lc, and that would cause any symbols used from libc to
16526       # always be unresolved, which means just about no library would
16527       # ever link correctly.  If we're not using GNU ld we use -z text
16528       # though, which does catch some bad symbols but isn't as heavy-handed
16529       # as -z defs.
16530       no_undefined_flag='${wl}-z,text'
16531       allow_undefined_flag='${wl}-z,nodefs'
16532       archive_cmds_need_lc=no
16533       hardcode_shlibpath_var=no
16534       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16535       hardcode_libdir_separator=':'
16536       link_all_deplibs=yes
16537       export_dynamic_flag_spec='${wl}-Bexport'
16538       runpath_var='LD_RUN_PATH'
16539
16540       if test "$GCC" = yes; then
16541         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16542         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16543       else
16544         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16545         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16546       fi
16547       ;;
16548
16549     uts4*)
16550       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16551       hardcode_libdir_flag_spec='-L$libdir'
16552       hardcode_shlibpath_var=no
16553       ;;
16554
16555     *)
16556       ld_shlibs=no
16557       ;;
16558     esac
16559
16560     if test x$host_vendor = xsni; then
16561       case $host in
16562       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16563         export_dynamic_flag_spec='${wl}-Blargedynsym'
16564         ;;
16565       esac
16566     fi
16567   fi
16568
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16570 $as_echo "$ld_shlibs" >&6; }
16571 test "$ld_shlibs" = no && can_build_shared=no
16572
16573 with_gnu_ld=$with_gnu_ld
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589 #
16590 # Do we need to explicitly link libc?
16591 #
16592 case "x$archive_cmds_need_lc" in
16593 x|xyes)
16594   # Assume -lc should be added
16595   archive_cmds_need_lc=yes
16596
16597   if test "$enable_shared" = yes && test "$GCC" = yes; then
16598     case $archive_cmds in
16599     *'~'*)
16600       # FIXME: we may have to deal with multi-command sequences.
16601       ;;
16602     '$CC '*)
16603       # Test whether the compiler implicitly links with -lc since on some
16604       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16605       # to ld, don't add -lc before -lgcc.
16606       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16607 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16608 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16609   $as_echo_n "(cached) " >&6
16610 else
16611   $RM conftest*
16612         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16613
16614         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16615   (eval $ac_compile) 2>&5
16616   ac_status=$?
16617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16618   test $ac_status = 0; } 2>conftest.err; then
16619           soname=conftest
16620           lib=conftest
16621           libobjs=conftest.$ac_objext
16622           deplibs=
16623           wl=$lt_prog_compiler_wl
16624           pic_flag=$lt_prog_compiler_pic
16625           compiler_flags=-v
16626           linker_flags=-v
16627           verstring=
16628           output_objdir=.
16629           libname=conftest
16630           lt_save_allow_undefined_flag=$allow_undefined_flag
16631           allow_undefined_flag=
16632           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16633   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16634   ac_status=$?
16635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16636   test $ac_status = 0; }
16637           then
16638             lt_cv_archive_cmds_need_lc=no
16639           else
16640             lt_cv_archive_cmds_need_lc=yes
16641           fi
16642           allow_undefined_flag=$lt_save_allow_undefined_flag
16643         else
16644           cat conftest.err 1>&5
16645         fi
16646         $RM conftest*
16647
16648 fi
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16650 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16651       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16652       ;;
16653     esac
16654   fi
16655   ;;
16656 esac
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
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16815 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16816
16817 if test "$GCC" = yes; then
16818   case $host_os in
16819     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16820     *) lt_awk_arg="/^libraries:/" ;;
16821   esac
16822   case $host_os in
16823     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16824     *) lt_sed_strip_eq="s,=/,/,g" ;;
16825   esac
16826   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16827   case $lt_search_path_spec in
16828   *\;*)
16829     # if the path contains ";" then we assume it to be the separator
16830     # otherwise default to the standard path separator (i.e. ":") - it is
16831     # assumed that no part of a normal pathname contains ";" but that should
16832     # okay in the real world where ";" in dirpaths is itself problematic.
16833     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16834     ;;
16835   *)
16836     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16837     ;;
16838   esac
16839   # Ok, now we have the path, separated by spaces, we can step through it
16840   # and add multilib dir if necessary.
16841   lt_tmp_lt_search_path_spec=
16842   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16843   for lt_sys_path in $lt_search_path_spec; do
16844     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16845       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16846     else
16847       test -d "$lt_sys_path" && \
16848         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16849     fi
16850   done
16851   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16852 BEGIN {RS=" "; FS="/|\n";} {
16853   lt_foo="";
16854   lt_count=0;
16855   for (lt_i = NF; lt_i > 0; lt_i--) {
16856     if ($lt_i != "" && $lt_i != ".") {
16857       if ($lt_i == "..") {
16858         lt_count++;
16859       } else {
16860         if (lt_count == 0) {
16861           lt_foo="/" $lt_i lt_foo;
16862         } else {
16863           lt_count--;
16864         }
16865       }
16866     }
16867   }
16868   if (lt_foo != "") { lt_freq[lt_foo]++; }
16869   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16870 }'`
16871   # AWK program above erroneously prepends '/' to C:/dos/paths
16872   # for these hosts.
16873   case $host_os in
16874     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16875       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16876   esac
16877   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16878 else
16879   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16880 fi
16881 library_names_spec=
16882 libname_spec='lib$name'
16883 soname_spec=
16884 shrext_cmds=".so"
16885 postinstall_cmds=
16886 postuninstall_cmds=
16887 finish_cmds=
16888 finish_eval=
16889 shlibpath_var=
16890 shlibpath_overrides_runpath=unknown
16891 version_type=none
16892 dynamic_linker="$host_os ld.so"
16893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16894 need_lib_prefix=unknown
16895 hardcode_into_libs=no
16896
16897 # when you set need_version to no, make sure it does not cause -set_version
16898 # flags to be left without arguments
16899 need_version=unknown
16900
16901 case $host_os in
16902 aix3*)
16903   version_type=linux
16904   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16905   shlibpath_var=LIBPATH
16906
16907   # AIX 3 has no versioning support, so we append a major version to the name.
16908   soname_spec='${libname}${release}${shared_ext}$major'
16909   ;;
16910
16911 aix[4-9]*)
16912   version_type=linux
16913   need_lib_prefix=no
16914   need_version=no
16915   hardcode_into_libs=yes
16916   if test "$host_cpu" = ia64; then
16917     # AIX 5 supports IA64
16918     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16919     shlibpath_var=LD_LIBRARY_PATH
16920   else
16921     # With GCC up to 2.95.x, collect2 would create an import file
16922     # for dependence libraries.  The import file would start with
16923     # the line `#! .'.  This would cause the generated library to
16924     # depend on `.', always an invalid library.  This was fixed in
16925     # development snapshots of GCC prior to 3.0.
16926     case $host_os in
16927       aix4 | aix4.[01] | aix4.[01].*)
16928       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16929            echo ' yes '
16930            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16931         :
16932       else
16933         can_build_shared=no
16934       fi
16935       ;;
16936     esac
16937     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16938     # soname into executable. Probably we can add versioning support to
16939     # collect2, so additional links can be useful in future.
16940     if test "$aix_use_runtimelinking" = yes; then
16941       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16942       # instead of lib<name>.a to let people know that these are not
16943       # typical AIX shared libraries.
16944       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945     else
16946       # We preserve .a as extension for shared libraries through AIX4.2
16947       # and later when we are not doing run time linking.
16948       library_names_spec='${libname}${release}.a $libname.a'
16949       soname_spec='${libname}${release}${shared_ext}$major'
16950     fi
16951     shlibpath_var=LIBPATH
16952   fi
16953   ;;
16954
16955 amigaos*)
16956   case $host_cpu in
16957   powerpc)
16958     # Since July 2007 AmigaOS4 officially supports .so libraries.
16959     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961     ;;
16962   m68k)
16963     library_names_spec='$libname.ixlibrary $libname.a'
16964     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16965     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'
16966     ;;
16967   esac
16968   ;;
16969
16970 beos*)
16971   library_names_spec='${libname}${shared_ext}'
16972   dynamic_linker="$host_os ld.so"
16973   shlibpath_var=LIBRARY_PATH
16974   ;;
16975
16976 bsdi[45]*)
16977   version_type=linux
16978   need_version=no
16979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980   soname_spec='${libname}${release}${shared_ext}$major'
16981   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16982   shlibpath_var=LD_LIBRARY_PATH
16983   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16984   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16985   # the default ld.so.conf also contains /usr/contrib/lib and
16986   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16987   # libtool to hard-code these into programs
16988   ;;
16989
16990 cygwin* | mingw* | pw32* | cegcc*)
16991   version_type=windows
16992   shrext_cmds=".dll"
16993   need_version=no
16994   need_lib_prefix=no
16995
16996   case $GCC,$host_os in
16997   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16998     library_names_spec='$libname.dll.a'
16999     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17000     postinstall_cmds='base_file=`basename \${file}`~
17001       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17002       dldir=$destdir/`dirname \$dlpath`~
17003       test -d \$dldir || mkdir -p \$dldir~
17004       $install_prog $dir/$dlname \$dldir/$dlname~
17005       chmod a+x \$dldir/$dlname~
17006       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17007         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17008       fi'
17009     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17010       dlpath=$dir/\$dldll~
17011        $RM \$dlpath'
17012     shlibpath_overrides_runpath=yes
17013
17014     case $host_os in
17015     cygwin*)
17016       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17017       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17018
17019       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17020       ;;
17021     mingw* | cegcc*)
17022       # MinGW DLLs use traditional 'lib' prefix
17023       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17024       ;;
17025     pw32*)
17026       # pw32 DLLs use 'pw' prefix rather than 'lib'
17027       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17028       ;;
17029     esac
17030     ;;
17031
17032   *)
17033     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17034     ;;
17035   esac
17036   dynamic_linker='Win32 ld.exe'
17037   # FIXME: first we should search . and the directory the executable is in
17038   shlibpath_var=PATH
17039   ;;
17040
17041 darwin* | rhapsody*)
17042   dynamic_linker="$host_os dyld"
17043   version_type=darwin
17044   need_lib_prefix=no
17045   need_version=no
17046   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17047   soname_spec='${libname}${release}${major}$shared_ext'
17048   shlibpath_overrides_runpath=yes
17049   shlibpath_var=DYLD_LIBRARY_PATH
17050   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17051
17052   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17053   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17054   ;;
17055
17056 dgux*)
17057   version_type=linux
17058   need_lib_prefix=no
17059   need_version=no
17060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17061   soname_spec='${libname}${release}${shared_ext}$major'
17062   shlibpath_var=LD_LIBRARY_PATH
17063   ;;
17064
17065 freebsd* | dragonfly*)
17066   # DragonFly does not have aout.  When/if they implement a new
17067   # versioning mechanism, adjust this.
17068   if test -x /usr/bin/objformat; then
17069     objformat=`/usr/bin/objformat`
17070   else
17071     case $host_os in
17072     freebsd[123]*) objformat=aout ;;
17073     *) objformat=elf ;;
17074     esac
17075   fi
17076   version_type=freebsd-$objformat
17077   case $version_type in
17078     freebsd-elf*)
17079       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17080       need_version=no
17081       need_lib_prefix=no
17082       ;;
17083     freebsd-*)
17084       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17085       need_version=yes
17086       ;;
17087   esac
17088   shlibpath_var=LD_LIBRARY_PATH
17089   case $host_os in
17090   freebsd2*)
17091     shlibpath_overrides_runpath=yes
17092     ;;
17093   freebsd3.[01]* | freebsdelf3.[01]*)
17094     shlibpath_overrides_runpath=yes
17095     hardcode_into_libs=yes
17096     ;;
17097   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17098   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17099     shlibpath_overrides_runpath=no
17100     hardcode_into_libs=yes
17101     ;;
17102   *) # from 4.6 on, and DragonFly
17103     shlibpath_overrides_runpath=yes
17104     hardcode_into_libs=yes
17105     ;;
17106   esac
17107   ;;
17108
17109 gnu*)
17110   version_type=linux
17111   need_lib_prefix=no
17112   need_version=no
17113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17114   soname_spec='${libname}${release}${shared_ext}$major'
17115   shlibpath_var=LD_LIBRARY_PATH
17116   hardcode_into_libs=yes
17117   ;;
17118
17119 haiku*)
17120   version_type=linux
17121   need_lib_prefix=no
17122   need_version=no
17123   dynamic_linker="$host_os runtime_loader"
17124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17125   soname_spec='${libname}${release}${shared_ext}$major'
17126   shlibpath_var=LIBRARY_PATH
17127   shlibpath_overrides_runpath=yes
17128   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17129   hardcode_into_libs=yes
17130   ;;
17131
17132 hpux9* | hpux10* | hpux11*)
17133   # Give a soname corresponding to the major version so that dld.sl refuses to
17134   # link against other versions.
17135   version_type=sunos
17136   need_lib_prefix=no
17137   need_version=no
17138   case $host_cpu in
17139   ia64*)
17140     shrext_cmds='.so'
17141     hardcode_into_libs=yes
17142     dynamic_linker="$host_os dld.so"
17143     shlibpath_var=LD_LIBRARY_PATH
17144     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146     soname_spec='${libname}${release}${shared_ext}$major'
17147     if test "X$HPUX_IA64_MODE" = X32; then
17148       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17149     else
17150       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17151     fi
17152     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17153     ;;
17154   hppa*64*)
17155     shrext_cmds='.sl'
17156     hardcode_into_libs=yes
17157     dynamic_linker="$host_os dld.sl"
17158     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17159     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161     soname_spec='${libname}${release}${shared_ext}$major'
17162     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17163     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17164     ;;
17165   *)
17166     shrext_cmds='.sl'
17167     dynamic_linker="$host_os dld.sl"
17168     shlibpath_var=SHLIB_PATH
17169     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171     soname_spec='${libname}${release}${shared_ext}$major'
17172     ;;
17173   esac
17174   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17175   postinstall_cmds='chmod 555 $lib'
17176   # or fails outright, so override atomically:
17177   install_override_mode=555
17178   ;;
17179
17180 interix[3-9]*)
17181   version_type=linux
17182   need_lib_prefix=no
17183   need_version=no
17184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17185   soname_spec='${libname}${release}${shared_ext}$major'
17186   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17187   shlibpath_var=LD_LIBRARY_PATH
17188   shlibpath_overrides_runpath=no
17189   hardcode_into_libs=yes
17190   ;;
17191
17192 irix5* | irix6* | nonstopux*)
17193   case $host_os in
17194     nonstopux*) version_type=nonstopux ;;
17195     *)
17196         if test "$lt_cv_prog_gnu_ld" = yes; then
17197                 version_type=linux
17198         else
17199                 version_type=irix
17200         fi ;;
17201   esac
17202   need_lib_prefix=no
17203   need_version=no
17204   soname_spec='${libname}${release}${shared_ext}$major'
17205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17206   case $host_os in
17207   irix5* | nonstopux*)
17208     libsuff= shlibsuff=
17209     ;;
17210   *)
17211     case $LD in # libtool.m4 will add one of these switches to LD
17212     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17213       libsuff= shlibsuff= libmagic=32-bit;;
17214     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17215       libsuff=32 shlibsuff=N32 libmagic=N32;;
17216     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17217       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17218     *) libsuff= shlibsuff= libmagic=never-match;;
17219     esac
17220     ;;
17221   esac
17222   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17223   shlibpath_overrides_runpath=no
17224   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17225   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17226   hardcode_into_libs=yes
17227   ;;
17228
17229 # No shared lib support for Linux oldld, aout, or coff.
17230 linux*oldld* | linux*aout* | linux*coff*)
17231   dynamic_linker=no
17232   ;;
17233
17234 # This must be Linux ELF.
17235 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17236   version_type=linux
17237   need_lib_prefix=no
17238   need_version=no
17239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17240   soname_spec='${libname}${release}${shared_ext}$major'
17241   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17242   shlibpath_var=LD_LIBRARY_PATH
17243   shlibpath_overrides_runpath=no
17244
17245   # Some binutils ld are patched to set DT_RUNPATH
17246   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17247   $as_echo_n "(cached) " >&6
17248 else
17249   lt_cv_shlibpath_overrides_runpath=no
17250     save_LDFLAGS=$LDFLAGS
17251     save_libdir=$libdir
17252     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17253          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17254     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255 /* end confdefs.h.  */
17256
17257 int
17258 main ()
17259 {
17260
17261   ;
17262   return 0;
17263 }
17264 _ACEOF
17265 if ac_fn_c_try_link "$LINENO"; then :
17266   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17267   lt_cv_shlibpath_overrides_runpath=yes
17268 fi
17269 fi
17270 rm -f core conftest.err conftest.$ac_objext \
17271     conftest$ac_exeext conftest.$ac_ext
17272     LDFLAGS=$save_LDFLAGS
17273     libdir=$save_libdir
17274
17275 fi
17276
17277   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17278
17279   # This implies no fast_install, which is unacceptable.
17280   # Some rework will be needed to allow for fast_install
17281   # before this can be enabled.
17282   hardcode_into_libs=yes
17283
17284   # Append ld.so.conf contents to the search path
17285   if test -f /etc/ld.so.conf; then
17286     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' ' '`
17287     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17288   fi
17289
17290   # We used to test for /lib/ld.so.1 and disable shared libraries on
17291   # powerpc, because MkLinux only supported shared libraries with the
17292   # GNU dynamic linker.  Since this was broken with cross compilers,
17293   # most powerpc-linux boxes support dynamic linking these days and
17294   # people can always --disable-shared, the test was removed, and we
17295   # assume the GNU/Linux dynamic linker is in use.
17296   dynamic_linker='GNU/Linux ld.so'
17297   ;;
17298
17299 netbsd*)
17300   version_type=sunos
17301   need_lib_prefix=no
17302   need_version=no
17303   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17305     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17306     dynamic_linker='NetBSD (a.out) ld.so'
17307   else
17308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17309     soname_spec='${libname}${release}${shared_ext}$major'
17310     dynamic_linker='NetBSD ld.elf_so'
17311   fi
17312   shlibpath_var=LD_LIBRARY_PATH
17313   shlibpath_overrides_runpath=yes
17314   hardcode_into_libs=yes
17315   ;;
17316
17317 newsos6)
17318   version_type=linux
17319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17320   shlibpath_var=LD_LIBRARY_PATH
17321   shlibpath_overrides_runpath=yes
17322   ;;
17323
17324 *nto* | *qnx*)
17325   version_type=qnx
17326   need_lib_prefix=no
17327   need_version=no
17328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329   soname_spec='${libname}${release}${shared_ext}$major'
17330   shlibpath_var=LD_LIBRARY_PATH
17331   shlibpath_overrides_runpath=no
17332   hardcode_into_libs=yes
17333   dynamic_linker='ldqnx.so'
17334   ;;
17335
17336 openbsd*)
17337   version_type=sunos
17338   sys_lib_dlsearch_path_spec="/usr/lib"
17339   need_lib_prefix=no
17340   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17341   case $host_os in
17342     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17343     *)                          need_version=no  ;;
17344   esac
17345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17346   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17347   shlibpath_var=LD_LIBRARY_PATH
17348   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17349     case $host_os in
17350       openbsd2.[89] | openbsd2.[89].*)
17351         shlibpath_overrides_runpath=no
17352         ;;
17353       *)
17354         shlibpath_overrides_runpath=yes
17355         ;;
17356       esac
17357   else
17358     shlibpath_overrides_runpath=yes
17359   fi
17360   ;;
17361
17362 os2*)
17363   libname_spec='$name'
17364   shrext_cmds=".dll"
17365   need_lib_prefix=no
17366   library_names_spec='$libname${shared_ext} $libname.a'
17367   dynamic_linker='OS/2 ld.exe'
17368   shlibpath_var=LIBPATH
17369   ;;
17370
17371 osf3* | osf4* | osf5*)
17372   version_type=osf
17373   need_lib_prefix=no
17374   need_version=no
17375   soname_spec='${libname}${release}${shared_ext}$major'
17376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377   shlibpath_var=LD_LIBRARY_PATH
17378   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17379   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17380   ;;
17381
17382 rdos*)
17383   dynamic_linker=no
17384   ;;
17385
17386 solaris*)
17387   version_type=linux
17388   need_lib_prefix=no
17389   need_version=no
17390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391   soname_spec='${libname}${release}${shared_ext}$major'
17392   shlibpath_var=LD_LIBRARY_PATH
17393   shlibpath_overrides_runpath=yes
17394   hardcode_into_libs=yes
17395   # ldd complains unless libraries are executable
17396   postinstall_cmds='chmod +x $lib'
17397   ;;
17398
17399 sunos4*)
17400   version_type=sunos
17401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17403   shlibpath_var=LD_LIBRARY_PATH
17404   shlibpath_overrides_runpath=yes
17405   if test "$with_gnu_ld" = yes; then
17406     need_lib_prefix=no
17407   fi
17408   need_version=yes
17409   ;;
17410
17411 sysv4 | sysv4.3*)
17412   version_type=linux
17413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17414   soname_spec='${libname}${release}${shared_ext}$major'
17415   shlibpath_var=LD_LIBRARY_PATH
17416   case $host_vendor in
17417     sni)
17418       shlibpath_overrides_runpath=no
17419       need_lib_prefix=no
17420       runpath_var=LD_RUN_PATH
17421       ;;
17422     siemens)
17423       need_lib_prefix=no
17424       ;;
17425     motorola)
17426       need_lib_prefix=no
17427       need_version=no
17428       shlibpath_overrides_runpath=no
17429       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17430       ;;
17431   esac
17432   ;;
17433
17434 sysv4*MP*)
17435   if test -d /usr/nec ;then
17436     version_type=linux
17437     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17438     soname_spec='$libname${shared_ext}.$major'
17439     shlibpath_var=LD_LIBRARY_PATH
17440   fi
17441   ;;
17442
17443 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17444   version_type=freebsd-elf
17445   need_lib_prefix=no
17446   need_version=no
17447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17448   soname_spec='${libname}${release}${shared_ext}$major'
17449   shlibpath_var=LD_LIBRARY_PATH
17450   shlibpath_overrides_runpath=yes
17451   hardcode_into_libs=yes
17452   if test "$with_gnu_ld" = yes; then
17453     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17454   else
17455     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17456     case $host_os in
17457       sco3.2v5*)
17458         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17459         ;;
17460     esac
17461   fi
17462   sys_lib_dlsearch_path_spec='/usr/lib'
17463   ;;
17464
17465 tpf*)
17466   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17467   version_type=linux
17468   need_lib_prefix=no
17469   need_version=no
17470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471   shlibpath_var=LD_LIBRARY_PATH
17472   shlibpath_overrides_runpath=no
17473   hardcode_into_libs=yes
17474   ;;
17475
17476 uts4*)
17477   version_type=linux
17478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17479   soname_spec='${libname}${release}${shared_ext}$major'
17480   shlibpath_var=LD_LIBRARY_PATH
17481   ;;
17482
17483 *)
17484   dynamic_linker=no
17485   ;;
17486 esac
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17488 $as_echo "$dynamic_linker" >&6; }
17489 test "$dynamic_linker" = no && can_build_shared=no
17490
17491 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17492 if test "$GCC" = yes; then
17493   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17494 fi
17495
17496 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17497   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17498 fi
17499 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17500   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17501 fi
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17595 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17596 hardcode_action=
17597 if test -n "$hardcode_libdir_flag_spec" ||
17598    test -n "$runpath_var" ||
17599    test "X$hardcode_automatic" = "Xyes" ; then
17600
17601   # We can hardcode non-existent directories.
17602   if test "$hardcode_direct" != no &&
17603      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17604      # have to relink, otherwise we might link with an installed library
17605      # when we should be linking with a yet-to-be-installed one
17606      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17607      test "$hardcode_minus_L" != no; then
17608     # Linking always hardcodes the temporary library directory.
17609     hardcode_action=relink
17610   else
17611     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17612     hardcode_action=immediate
17613   fi
17614 else
17615   # We cannot hardcode anything, or else we can only hardcode existing
17616   # directories.
17617   hardcode_action=unsupported
17618 fi
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17620 $as_echo "$hardcode_action" >&6; }
17621
17622 if test "$hardcode_action" = relink ||
17623    test "$inherit_rpath" = yes; then
17624   # Fast installation is not supported
17625   enable_fast_install=no
17626 elif test "$shlibpath_overrides_runpath" = yes ||
17627      test "$enable_shared" = no; then
17628   # Fast installation is not necessary
17629   enable_fast_install=needless
17630 fi
17631
17632
17633
17634
17635
17636
17637   if test "x$enable_dlopen" != xyes; then
17638   enable_dlopen=unknown
17639   enable_dlopen_self=unknown
17640   enable_dlopen_self_static=unknown
17641 else
17642   lt_cv_dlopen=no
17643   lt_cv_dlopen_libs=
17644
17645   case $host_os in
17646   beos*)
17647     lt_cv_dlopen="load_add_on"
17648     lt_cv_dlopen_libs=
17649     lt_cv_dlopen_self=yes
17650     ;;
17651
17652   mingw* | pw32* | cegcc*)
17653     lt_cv_dlopen="LoadLibrary"
17654     lt_cv_dlopen_libs=
17655     ;;
17656
17657   cygwin*)
17658     lt_cv_dlopen="dlopen"
17659     lt_cv_dlopen_libs=
17660     ;;
17661
17662   darwin*)
17663   # if libdl is installed we need to link against it
17664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17667   $as_echo_n "(cached) " >&6
17668 else
17669   ac_check_lib_save_LIBS=$LIBS
17670 LIBS="-ldl  $LIBS"
17671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h.  */
17673
17674 /* Override any GCC internal prototype to avoid an error.
17675    Use char because int might match the return type of a GCC
17676    builtin and then its argument prototype would still apply.  */
17677 #ifdef __cplusplus
17678 extern "C"
17679 #endif
17680 char dlopen ();
17681 int
17682 main ()
17683 {
17684 return dlopen ();
17685   ;
17686   return 0;
17687 }
17688 _ACEOF
17689 if ac_fn_c_try_link "$LINENO"; then :
17690   ac_cv_lib_dl_dlopen=yes
17691 else
17692   ac_cv_lib_dl_dlopen=no
17693 fi
17694 rm -f core conftest.err conftest.$ac_objext \
17695     conftest$ac_exeext conftest.$ac_ext
17696 LIBS=$ac_check_lib_save_LIBS
17697 fi
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17699 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17700 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17701   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17702 else
17703
17704     lt_cv_dlopen="dyld"
17705     lt_cv_dlopen_libs=
17706     lt_cv_dlopen_self=yes
17707
17708 fi
17709
17710     ;;
17711
17712   *)
17713     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17714 if test "x$ac_cv_func_shl_load" = x""yes; then :
17715   lt_cv_dlopen="shl_load"
17716 else
17717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17718 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17719 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17720   $as_echo_n "(cached) " >&6
17721 else
17722   ac_check_lib_save_LIBS=$LIBS
17723 LIBS="-ldld  $LIBS"
17724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725 /* end confdefs.h.  */
17726
17727 /* Override any GCC internal prototype to avoid an error.
17728    Use char because int might match the return type of a GCC
17729    builtin and then its argument prototype would still apply.  */
17730 #ifdef __cplusplus
17731 extern "C"
17732 #endif
17733 char shl_load ();
17734 int
17735 main ()
17736 {
17737 return shl_load ();
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 if ac_fn_c_try_link "$LINENO"; then :
17743   ac_cv_lib_dld_shl_load=yes
17744 else
17745   ac_cv_lib_dld_shl_load=no
17746 fi
17747 rm -f core conftest.err conftest.$ac_objext \
17748     conftest$ac_exeext conftest.$ac_ext
17749 LIBS=$ac_check_lib_save_LIBS
17750 fi
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17752 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17753 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17754   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17755 else
17756   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17757 if test "x$ac_cv_func_dlopen" = x""yes; then :
17758   lt_cv_dlopen="dlopen"
17759 else
17760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17761 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17762 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17763   $as_echo_n "(cached) " >&6
17764 else
17765   ac_check_lib_save_LIBS=$LIBS
17766 LIBS="-ldl  $LIBS"
17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17768 /* end confdefs.h.  */
17769
17770 /* Override any GCC internal prototype to avoid an error.
17771    Use char because int might match the return type of a GCC
17772    builtin and then its argument prototype would still apply.  */
17773 #ifdef __cplusplus
17774 extern "C"
17775 #endif
17776 char dlopen ();
17777 int
17778 main ()
17779 {
17780 return dlopen ();
17781   ;
17782   return 0;
17783 }
17784 _ACEOF
17785 if ac_fn_c_try_link "$LINENO"; then :
17786   ac_cv_lib_dl_dlopen=yes
17787 else
17788   ac_cv_lib_dl_dlopen=no
17789 fi
17790 rm -f core conftest.err conftest.$ac_objext \
17791     conftest$ac_exeext conftest.$ac_ext
17792 LIBS=$ac_check_lib_save_LIBS
17793 fi
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17795 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17796 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17797   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17798 else
17799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17800 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17801 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17802   $as_echo_n "(cached) " >&6
17803 else
17804   ac_check_lib_save_LIBS=$LIBS
17805 LIBS="-lsvld  $LIBS"
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h.  */
17808
17809 /* Override any GCC internal prototype to avoid an error.
17810    Use char because int might match the return type of a GCC
17811    builtin and then its argument prototype would still apply.  */
17812 #ifdef __cplusplus
17813 extern "C"
17814 #endif
17815 char dlopen ();
17816 int
17817 main ()
17818 {
17819 return dlopen ();
17820   ;
17821   return 0;
17822 }
17823 _ACEOF
17824 if ac_fn_c_try_link "$LINENO"; then :
17825   ac_cv_lib_svld_dlopen=yes
17826 else
17827   ac_cv_lib_svld_dlopen=no
17828 fi
17829 rm -f core conftest.err conftest.$ac_objext \
17830     conftest$ac_exeext conftest.$ac_ext
17831 LIBS=$ac_check_lib_save_LIBS
17832 fi
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17834 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17835 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17836   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17837 else
17838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17839 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17840 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17841   $as_echo_n "(cached) " >&6
17842 else
17843   ac_check_lib_save_LIBS=$LIBS
17844 LIBS="-ldld  $LIBS"
17845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h.  */
17847
17848 /* Override any GCC internal prototype to avoid an error.
17849    Use char because int might match the return type of a GCC
17850    builtin and then its argument prototype would still apply.  */
17851 #ifdef __cplusplus
17852 extern "C"
17853 #endif
17854 char dld_link ();
17855 int
17856 main ()
17857 {
17858 return dld_link ();
17859   ;
17860   return 0;
17861 }
17862 _ACEOF
17863 if ac_fn_c_try_link "$LINENO"; then :
17864   ac_cv_lib_dld_dld_link=yes
17865 else
17866   ac_cv_lib_dld_dld_link=no
17867 fi
17868 rm -f core conftest.err conftest.$ac_objext \
17869     conftest$ac_exeext conftest.$ac_ext
17870 LIBS=$ac_check_lib_save_LIBS
17871 fi
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17873 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17874 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17875   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17876 fi
17877
17878
17879 fi
17880
17881
17882 fi
17883
17884
17885 fi
17886
17887
17888 fi
17889
17890
17891 fi
17892
17893     ;;
17894   esac
17895
17896   if test "x$lt_cv_dlopen" != xno; then
17897     enable_dlopen=yes
17898   else
17899     enable_dlopen=no
17900   fi
17901
17902   case $lt_cv_dlopen in
17903   dlopen)
17904     save_CPPFLAGS="$CPPFLAGS"
17905     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17906
17907     save_LDFLAGS="$LDFLAGS"
17908     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17909
17910     save_LIBS="$LIBS"
17911     LIBS="$lt_cv_dlopen_libs $LIBS"
17912
17913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17914 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17915 if test "${lt_cv_dlopen_self+set}" = set; then :
17916   $as_echo_n "(cached) " >&6
17917 else
17918           if test "$cross_compiling" = yes; then :
17919   lt_cv_dlopen_self=cross
17920 else
17921   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17922   lt_status=$lt_dlunknown
17923   cat > conftest.$ac_ext <<_LT_EOF
17924 #line 17924 "configure"
17925 #include "confdefs.h"
17926
17927 #if HAVE_DLFCN_H
17928 #include <dlfcn.h>
17929 #endif
17930
17931 #include <stdio.h>
17932
17933 #ifdef RTLD_GLOBAL
17934 #  define LT_DLGLOBAL           RTLD_GLOBAL
17935 #else
17936 #  ifdef DL_GLOBAL
17937 #    define LT_DLGLOBAL         DL_GLOBAL
17938 #  else
17939 #    define LT_DLGLOBAL         0
17940 #  endif
17941 #endif
17942
17943 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17944    find out it does not work in some platform. */
17945 #ifndef LT_DLLAZY_OR_NOW
17946 #  ifdef RTLD_LAZY
17947 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17948 #  else
17949 #    ifdef DL_LAZY
17950 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17951 #    else
17952 #      ifdef RTLD_NOW
17953 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17954 #      else
17955 #        ifdef DL_NOW
17956 #          define LT_DLLAZY_OR_NOW      DL_NOW
17957 #        else
17958 #          define LT_DLLAZY_OR_NOW      0
17959 #        endif
17960 #      endif
17961 #    endif
17962 #  endif
17963 #endif
17964
17965 /* When -fvisbility=hidden is used, assume the code has been annotated
17966    correspondingly for the symbols needed.  */
17967 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17968 void fnord () __attribute__((visibility("default")));
17969 #endif
17970
17971 void fnord () { int i=42; }
17972 int main ()
17973 {
17974   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17975   int status = $lt_dlunknown;
17976
17977   if (self)
17978     {
17979       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17980       else
17981         {
17982           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17983           else puts (dlerror ());
17984         }
17985       /* dlclose (self); */
17986     }
17987   else
17988     puts (dlerror ());
17989
17990   return status;
17991 }
17992 _LT_EOF
17993   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17994   (eval $ac_link) 2>&5
17995   ac_status=$?
17996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17997   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17998     (./conftest; exit; ) >&5 2>/dev/null
17999     lt_status=$?
18000     case x$lt_status in
18001       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18002       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18003       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18004     esac
18005   else :
18006     # compilation failed
18007     lt_cv_dlopen_self=no
18008   fi
18009 fi
18010 rm -fr conftest*
18011
18012
18013 fi
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18015 $as_echo "$lt_cv_dlopen_self" >&6; }
18016
18017     if test "x$lt_cv_dlopen_self" = xyes; then
18018       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18019       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18020 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18021 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18022   $as_echo_n "(cached) " >&6
18023 else
18024           if test "$cross_compiling" = yes; then :
18025   lt_cv_dlopen_self_static=cross
18026 else
18027   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18028   lt_status=$lt_dlunknown
18029   cat > conftest.$ac_ext <<_LT_EOF
18030 #line 18030 "configure"
18031 #include "confdefs.h"
18032
18033 #if HAVE_DLFCN_H
18034 #include <dlfcn.h>
18035 #endif
18036
18037 #include <stdio.h>
18038
18039 #ifdef RTLD_GLOBAL
18040 #  define LT_DLGLOBAL           RTLD_GLOBAL
18041 #else
18042 #  ifdef DL_GLOBAL
18043 #    define LT_DLGLOBAL         DL_GLOBAL
18044 #  else
18045 #    define LT_DLGLOBAL         0
18046 #  endif
18047 #endif
18048
18049 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18050    find out it does not work in some platform. */
18051 #ifndef LT_DLLAZY_OR_NOW
18052 #  ifdef RTLD_LAZY
18053 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18054 #  else
18055 #    ifdef DL_LAZY
18056 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18057 #    else
18058 #      ifdef RTLD_NOW
18059 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18060 #      else
18061 #        ifdef DL_NOW
18062 #          define LT_DLLAZY_OR_NOW      DL_NOW
18063 #        else
18064 #          define LT_DLLAZY_OR_NOW      0
18065 #        endif
18066 #      endif
18067 #    endif
18068 #  endif
18069 #endif
18070
18071 /* When -fvisbility=hidden is used, assume the code has been annotated
18072    correspondingly for the symbols needed.  */
18073 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18074 void fnord () __attribute__((visibility("default")));
18075 #endif
18076
18077 void fnord () { int i=42; }
18078 int main ()
18079 {
18080   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18081   int status = $lt_dlunknown;
18082
18083   if (self)
18084     {
18085       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18086       else
18087         {
18088           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18089           else puts (dlerror ());
18090         }
18091       /* dlclose (self); */
18092     }
18093   else
18094     puts (dlerror ());
18095
18096   return status;
18097 }
18098 _LT_EOF
18099   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18100   (eval $ac_link) 2>&5
18101   ac_status=$?
18102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18103   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18104     (./conftest; exit; ) >&5 2>/dev/null
18105     lt_status=$?
18106     case x$lt_status in
18107       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18108       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18109       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18110     esac
18111   else :
18112     # compilation failed
18113     lt_cv_dlopen_self_static=no
18114   fi
18115 fi
18116 rm -fr conftest*
18117
18118
18119 fi
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18121 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18122     fi
18123
18124     CPPFLAGS="$save_CPPFLAGS"
18125     LDFLAGS="$save_LDFLAGS"
18126     LIBS="$save_LIBS"
18127     ;;
18128   esac
18129
18130   case $lt_cv_dlopen_self in
18131   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18132   *) enable_dlopen_self=unknown ;;
18133   esac
18134
18135   case $lt_cv_dlopen_self_static in
18136   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18137   *) enable_dlopen_self_static=unknown ;;
18138   esac
18139 fi
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157 striplib=
18158 old_striplib=
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18160 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18161 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18162   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18163   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18165 $as_echo "yes" >&6; }
18166 else
18167 # FIXME - insert some real tests, host_os isn't really good enough
18168   case $host_os in
18169   darwin*)
18170     if test -n "$STRIP" ; then
18171       striplib="$STRIP -x"
18172       old_striplib="$STRIP -S"
18173       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18174 $as_echo "yes" >&6; }
18175     else
18176       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177 $as_echo "no" >&6; }
18178     fi
18179     ;;
18180   *)
18181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18182 $as_echo "no" >&6; }
18183     ;;
18184   esac
18185 fi
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198   # Report which library types will actually be built
18199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18200 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18202 $as_echo "$can_build_shared" >&6; }
18203
18204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18205 $as_echo_n "checking whether to build shared libraries... " >&6; }
18206   test "$can_build_shared" = "no" && enable_shared=no
18207
18208   # On AIX, shared libraries and static libraries use the same namespace, and
18209   # are all built from PIC.
18210   case $host_os in
18211   aix3*)
18212     test "$enable_shared" = yes && enable_static=no
18213     if test -n "$RANLIB"; then
18214       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18215       postinstall_cmds='$RANLIB $lib'
18216     fi
18217     ;;
18218
18219   aix[4-9]*)
18220     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18221       test "$enable_shared" = yes && enable_static=no
18222     fi
18223     ;;
18224   esac
18225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18226 $as_echo "$enable_shared" >&6; }
18227
18228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18229 $as_echo_n "checking whether to build static libraries... " >&6; }
18230   # Make sure either enable_shared or enable_static is yes.
18231   test "$enable_shared" = yes || enable_static=yes
18232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18233 $as_echo "$enable_static" >&6; }
18234
18235
18236
18237
18238 fi
18239 ac_ext=c
18240 ac_cpp='$CPP $CPPFLAGS'
18241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18244
18245 CC="$lt_save_CC"
18246
18247       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18248     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18249     (test "X$CXX" != "Xg++"))) ; then
18250   ac_ext=cpp
18251 ac_cpp='$CXXCPP $CPPFLAGS'
18252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18256 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18257 if test -z "$CXXCPP"; then
18258   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18259   $as_echo_n "(cached) " >&6
18260 else
18261       # Double quotes because CXXCPP needs to be expanded
18262     for CXXCPP in "$CXX -E" "/lib/cpp"
18263     do
18264       ac_preproc_ok=false
18265 for ac_cxx_preproc_warn_flag in '' yes
18266 do
18267   # Use a header file that comes with gcc, so configuring glibc
18268   # with a fresh cross-compiler works.
18269   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18270   # <limits.h> exists even on freestanding compilers.
18271   # On the NeXT, cc -E runs the code through the compiler's parser,
18272   # not just through cpp. "Syntax error" is here to catch this case.
18273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h.  */
18275 #ifdef __STDC__
18276 # include <limits.h>
18277 #else
18278 # include <assert.h>
18279 #endif
18280                      Syntax error
18281 _ACEOF
18282 if ac_fn_cxx_try_cpp "$LINENO"; then :
18283
18284 else
18285   # Broken: fails on valid input.
18286 continue
18287 fi
18288 rm -f conftest.err conftest.$ac_ext
18289
18290   # OK, works on sane cases.  Now check whether nonexistent headers
18291   # can be detected and how.
18292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h.  */
18294 #include <ac_nonexistent.h>
18295 _ACEOF
18296 if ac_fn_cxx_try_cpp "$LINENO"; then :
18297   # Broken: success on invalid input.
18298 continue
18299 else
18300   # Passes both tests.
18301 ac_preproc_ok=:
18302 break
18303 fi
18304 rm -f conftest.err conftest.$ac_ext
18305
18306 done
18307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18308 rm -f conftest.err conftest.$ac_ext
18309 if $ac_preproc_ok; then :
18310   break
18311 fi
18312
18313     done
18314     ac_cv_prog_CXXCPP=$CXXCPP
18315
18316 fi
18317   CXXCPP=$ac_cv_prog_CXXCPP
18318 else
18319   ac_cv_prog_CXXCPP=$CXXCPP
18320 fi
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18322 $as_echo "$CXXCPP" >&6; }
18323 ac_preproc_ok=false
18324 for ac_cxx_preproc_warn_flag in '' yes
18325 do
18326   # Use a header file that comes with gcc, so configuring glibc
18327   # with a fresh cross-compiler works.
18328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18329   # <limits.h> exists even on freestanding compilers.
18330   # On the NeXT, cc -E runs the code through the compiler's parser,
18331   # not just through cpp. "Syntax error" is here to catch this case.
18332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h.  */
18334 #ifdef __STDC__
18335 # include <limits.h>
18336 #else
18337 # include <assert.h>
18338 #endif
18339                      Syntax error
18340 _ACEOF
18341 if ac_fn_cxx_try_cpp "$LINENO"; then :
18342
18343 else
18344   # Broken: fails on valid input.
18345 continue
18346 fi
18347 rm -f conftest.err conftest.$ac_ext
18348
18349   # OK, works on sane cases.  Now check whether nonexistent headers
18350   # can be detected and how.
18351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h.  */
18353 #include <ac_nonexistent.h>
18354 _ACEOF
18355 if ac_fn_cxx_try_cpp "$LINENO"; then :
18356   # Broken: success on invalid input.
18357 continue
18358 else
18359   # Passes both tests.
18360 ac_preproc_ok=:
18361 break
18362 fi
18363 rm -f conftest.err conftest.$ac_ext
18364
18365 done
18366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18367 rm -f conftest.err conftest.$ac_ext
18368 if $ac_preproc_ok; then :
18369
18370 else
18371   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18373 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18374 See \`config.log' for more details." "$LINENO" 5; }
18375 fi
18376
18377 ac_ext=c
18378 ac_cpp='$CPP $CPPFLAGS'
18379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18382
18383 else
18384   _lt_caught_CXX_error=yes
18385 fi
18386
18387 ac_ext=cpp
18388 ac_cpp='$CXXCPP $CPPFLAGS'
18389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18392
18393 archive_cmds_need_lc_CXX=no
18394 allow_undefined_flag_CXX=
18395 always_export_symbols_CXX=no
18396 archive_expsym_cmds_CXX=
18397 compiler_needs_object_CXX=no
18398 export_dynamic_flag_spec_CXX=
18399 hardcode_direct_CXX=no
18400 hardcode_direct_absolute_CXX=no
18401 hardcode_libdir_flag_spec_CXX=
18402 hardcode_libdir_flag_spec_ld_CXX=
18403 hardcode_libdir_separator_CXX=
18404 hardcode_minus_L_CXX=no
18405 hardcode_shlibpath_var_CXX=unsupported
18406 hardcode_automatic_CXX=no
18407 inherit_rpath_CXX=no
18408 module_cmds_CXX=
18409 module_expsym_cmds_CXX=
18410 link_all_deplibs_CXX=unknown
18411 old_archive_cmds_CXX=$old_archive_cmds
18412 reload_flag_CXX=$reload_flag
18413 reload_cmds_CXX=$reload_cmds
18414 no_undefined_flag_CXX=
18415 whole_archive_flag_spec_CXX=
18416 enable_shared_with_static_runtimes_CXX=no
18417
18418 # Source file extension for C++ test sources.
18419 ac_ext=cpp
18420
18421 # Object file extension for compiled C++ test sources.
18422 objext=o
18423 objext_CXX=$objext
18424
18425 # No sense in running all these tests if we already determined that
18426 # the CXX compiler isn't working.  Some variables (like enable_shared)
18427 # are currently assumed to apply to all compilers on this platform,
18428 # and will be corrupted by setting them based on a non-working compiler.
18429 if test "$_lt_caught_CXX_error" != yes; then
18430   # Code to be used in simple compile tests
18431   lt_simple_compile_test_code="int some_variable = 0;"
18432
18433   # Code to be used in simple link tests
18434   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18435
18436   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18437
18438
18439
18440
18441
18442
18443 # If no C compiler was specified, use CC.
18444 LTCC=${LTCC-"$CC"}
18445
18446 # If no C compiler flags were specified, use CFLAGS.
18447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18448
18449 # Allow CC to be a program name with arguments.
18450 compiler=$CC
18451
18452
18453   # save warnings/boilerplate of simple test code
18454   ac_outfile=conftest.$ac_objext
18455 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18456 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18457 _lt_compiler_boilerplate=`cat conftest.err`
18458 $RM conftest*
18459
18460   ac_outfile=conftest.$ac_objext
18461 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18462 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18463 _lt_linker_boilerplate=`cat conftest.err`
18464 $RM -r conftest*
18465
18466
18467   # Allow CC to be a program name with arguments.
18468   lt_save_CC=$CC
18469   lt_save_LD=$LD
18470   lt_save_GCC=$GCC
18471   GCC=$GXX
18472   lt_save_with_gnu_ld=$with_gnu_ld
18473   lt_save_path_LD=$lt_cv_path_LD
18474   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18475     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18476   else
18477     $as_unset lt_cv_prog_gnu_ld
18478   fi
18479   if test -n "${lt_cv_path_LDCXX+set}"; then
18480     lt_cv_path_LD=$lt_cv_path_LDCXX
18481   else
18482     $as_unset lt_cv_path_LD
18483   fi
18484   test -z "${LDCXX+set}" || LD=$LDCXX
18485   CC=${CXX-"c++"}
18486   compiler=$CC
18487   compiler_CXX=$CC
18488   for cc_temp in $compiler""; do
18489   case $cc_temp in
18490     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18491     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18492     \-*) ;;
18493     *) break;;
18494   esac
18495 done
18496 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18497
18498
18499   if test -n "$compiler"; then
18500     # We don't want -fno-exception when compiling C++ code, so set the
18501     # no_builtin_flag separately
18502     if test "$GXX" = yes; then
18503       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18504     else
18505       lt_prog_compiler_no_builtin_flag_CXX=
18506     fi
18507
18508     if test "$GXX" = yes; then
18509       # Set up default GNU C++ configuration
18510
18511
18512
18513 # Check whether --with-gnu-ld was given.
18514 if test "${with_gnu_ld+set}" = set; then :
18515   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18516 else
18517   with_gnu_ld=no
18518 fi
18519
18520 ac_prog=ld
18521 if test "$GCC" = yes; then
18522   # Check if gcc -print-prog-name=ld gives a path.
18523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18524 $as_echo_n "checking for ld used by $CC... " >&6; }
18525   case $host in
18526   *-*-mingw*)
18527     # gcc leaves a trailing carriage return which upsets mingw
18528     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18529   *)
18530     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18531   esac
18532   case $ac_prog in
18533     # Accept absolute paths.
18534     [\\/]* | ?:[\\/]*)
18535       re_direlt='/[^/][^/]*/\.\./'
18536       # Canonicalize the pathname of ld
18537       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18538       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18539         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18540       done
18541       test -z "$LD" && LD="$ac_prog"
18542       ;;
18543   "")
18544     # If it fails, then pretend we aren't using GCC.
18545     ac_prog=ld
18546     ;;
18547   *)
18548     # If it is relative, then search for the first ld in PATH.
18549     with_gnu_ld=unknown
18550     ;;
18551   esac
18552 elif test "$with_gnu_ld" = yes; then
18553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18554 $as_echo_n "checking for GNU ld... " >&6; }
18555 else
18556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18557 $as_echo_n "checking for non-GNU ld... " >&6; }
18558 fi
18559 if test "${lt_cv_path_LD+set}" = set; then :
18560   $as_echo_n "(cached) " >&6
18561 else
18562   if test -z "$LD"; then
18563   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18564   for ac_dir in $PATH; do
18565     IFS="$lt_save_ifs"
18566     test -z "$ac_dir" && ac_dir=.
18567     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18568       lt_cv_path_LD="$ac_dir/$ac_prog"
18569       # Check to see if the program is GNU ld.  I'd rather use --version,
18570       # but apparently some variants of GNU ld only accept -v.
18571       # Break only if it was the GNU/non-GNU ld that we prefer.
18572       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18573       *GNU* | *'with BFD'*)
18574         test "$with_gnu_ld" != no && break
18575         ;;
18576       *)
18577         test "$with_gnu_ld" != yes && break
18578         ;;
18579       esac
18580     fi
18581   done
18582   IFS="$lt_save_ifs"
18583 else
18584   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18585 fi
18586 fi
18587
18588 LD="$lt_cv_path_LD"
18589 if test -n "$LD"; then
18590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18591 $as_echo "$LD" >&6; }
18592 else
18593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18594 $as_echo "no" >&6; }
18595 fi
18596 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18598 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18599 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18600   $as_echo_n "(cached) " >&6
18601 else
18602   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18603 case `$LD -v 2>&1 </dev/null` in
18604 *GNU* | *'with BFD'*)
18605   lt_cv_prog_gnu_ld=yes
18606   ;;
18607 *)
18608   lt_cv_prog_gnu_ld=no
18609   ;;
18610 esac
18611 fi
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18613 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18614 with_gnu_ld=$lt_cv_prog_gnu_ld
18615
18616
18617
18618
18619
18620
18621
18622       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18623       # archiving commands below assume that GNU ld is being used.
18624       if test "$with_gnu_ld" = yes; then
18625         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18626         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'
18627
18628         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18629         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18630
18631         # If archive_cmds runs LD, not CC, wlarc should be empty
18632         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18633         #     investigate it a little bit more. (MM)
18634         wlarc='${wl}'
18635
18636         # ancient GNU ld didn't support --whole-archive et. al.
18637         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18638           $GREP 'no-whole-archive' > /dev/null; then
18639           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18640         else
18641           whole_archive_flag_spec_CXX=
18642         fi
18643       else
18644         with_gnu_ld=no
18645         wlarc=
18646
18647         # A generic and very simple default shared library creation
18648         # command for GNU C++ for the case where it uses the native
18649         # linker, instead of GNU ld.  If possible, this setting should
18650         # overridden to take advantage of the native linker features on
18651         # the platform it is being used on.
18652         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18653       fi
18654
18655       # Commands to make compiler produce verbose output that lists
18656       # what "hidden" libraries, object files and flags are used when
18657       # linking a shared library.
18658       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18659
18660     else
18661       GXX=no
18662       with_gnu_ld=no
18663       wlarc=
18664     fi
18665
18666     # PORTME: fill in a description of your system's C++ link characteristics
18667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18668 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18669     ld_shlibs_CXX=yes
18670     case $host_os in
18671       aix3*)
18672         # FIXME: insert proper C++ library support
18673         ld_shlibs_CXX=no
18674         ;;
18675       aix[4-9]*)
18676         if test "$host_cpu" = ia64; then
18677           # On IA64, the linker does run time linking by default, so we don't
18678           # have to do anything special.
18679           aix_use_runtimelinking=no
18680           exp_sym_flag='-Bexport'
18681           no_entry_flag=""
18682         else
18683           aix_use_runtimelinking=no
18684
18685           # Test if we are trying to use run time linking or normal
18686           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18687           # need to do runtime linking.
18688           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18689             for ld_flag in $LDFLAGS; do
18690               case $ld_flag in
18691               *-brtl*)
18692                 aix_use_runtimelinking=yes
18693                 break
18694                 ;;
18695               esac
18696             done
18697             ;;
18698           esac
18699
18700           exp_sym_flag='-bexport'
18701           no_entry_flag='-bnoentry'
18702         fi
18703
18704         # When large executables or shared objects are built, AIX ld can
18705         # have problems creating the table of contents.  If linking a library
18706         # or program results in "error TOC overflow" add -mminimal-toc to
18707         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18708         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18709
18710         archive_cmds_CXX=''
18711         hardcode_direct_CXX=yes
18712         hardcode_direct_absolute_CXX=yes
18713         hardcode_libdir_separator_CXX=':'
18714         link_all_deplibs_CXX=yes
18715         file_list_spec_CXX='${wl}-f,'
18716
18717         if test "$GXX" = yes; then
18718           case $host_os in aix4.[012]|aix4.[012].*)
18719           # We only want to do this on AIX 4.2 and lower, the check
18720           # below for broken collect2 doesn't work under 4.3+
18721           collect2name=`${CC} -print-prog-name=collect2`
18722           if test -f "$collect2name" &&
18723              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18724           then
18725             # We have reworked collect2
18726             :
18727           else
18728             # We have old collect2
18729             hardcode_direct_CXX=unsupported
18730             # It fails to find uninstalled libraries when the uninstalled
18731             # path is not listed in the libpath.  Setting hardcode_minus_L
18732             # to unsupported forces relinking
18733             hardcode_minus_L_CXX=yes
18734             hardcode_libdir_flag_spec_CXX='-L$libdir'
18735             hardcode_libdir_separator_CXX=
18736           fi
18737           esac
18738           shared_flag='-shared'
18739           if test "$aix_use_runtimelinking" = yes; then
18740             shared_flag="$shared_flag "'${wl}-G'
18741           fi
18742         else
18743           # not using gcc
18744           if test "$host_cpu" = ia64; then
18745           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18746           # chokes on -Wl,-G. The following line is correct:
18747           shared_flag='-G'
18748           else
18749             if test "$aix_use_runtimelinking" = yes; then
18750               shared_flag='${wl}-G'
18751             else
18752               shared_flag='${wl}-bM:SRE'
18753             fi
18754           fi
18755         fi
18756
18757         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18758         # It seems that -bexpall does not export symbols beginning with
18759         # underscore (_), so it is better to generate a list of symbols to
18760         # export.
18761         always_export_symbols_CXX=yes
18762         if test "$aix_use_runtimelinking" = yes; then
18763           # Warning - without using the other runtime loading flags (-brtl),
18764           # -berok will link without error, but may produce a broken library.
18765           allow_undefined_flag_CXX='-berok'
18766           # Determine the default libpath from the value encoded in an empty
18767           # executable.
18768           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h.  */
18770
18771 int
18772 main ()
18773 {
18774
18775   ;
18776   return 0;
18777 }
18778 _ACEOF
18779 if ac_fn_cxx_try_link "$LINENO"; then :
18780
18781 lt_aix_libpath_sed='
18782     /Import File Strings/,/^$/ {
18783         /^0/ {
18784             s/^0  *\(.*\)$/\1/
18785             p
18786         }
18787     }'
18788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18789 # Check for a 64-bit object if we didn't find anything.
18790 if test -z "$aix_libpath"; then
18791   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18792 fi
18793 fi
18794 rm -f core conftest.err conftest.$ac_objext \
18795     conftest$ac_exeext conftest.$ac_ext
18796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18797
18798           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18799
18800           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"
18801         else
18802           if test "$host_cpu" = ia64; then
18803             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18804             allow_undefined_flag_CXX="-z nodefs"
18805             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"
18806           else
18807             # Determine the default libpath from the value encoded in an
18808             # empty executable.
18809             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18810 /* end confdefs.h.  */
18811
18812 int
18813 main ()
18814 {
18815
18816   ;
18817   return 0;
18818 }
18819 _ACEOF
18820 if ac_fn_cxx_try_link "$LINENO"; then :
18821
18822 lt_aix_libpath_sed='
18823     /Import File Strings/,/^$/ {
18824         /^0/ {
18825             s/^0  *\(.*\)$/\1/
18826             p
18827         }
18828     }'
18829 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18830 # Check for a 64-bit object if we didn't find anything.
18831 if test -z "$aix_libpath"; then
18832   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18833 fi
18834 fi
18835 rm -f core conftest.err conftest.$ac_objext \
18836     conftest$ac_exeext conftest.$ac_ext
18837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18838
18839             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18840             # Warning - without using the other run time loading flags,
18841             # -berok will link without error, but may produce a broken library.
18842             no_undefined_flag_CXX=' ${wl}-bernotok'
18843             allow_undefined_flag_CXX=' ${wl}-berok'
18844             if test "$with_gnu_ld" = yes; then
18845               # We only use this code for GNU lds that support --whole-archive.
18846               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18847             else
18848               # Exported symbols can be pulled into shared objects from archives
18849               whole_archive_flag_spec_CXX='$convenience'
18850             fi
18851             archive_cmds_need_lc_CXX=yes
18852             # This is similar to how AIX traditionally builds its shared
18853             # libraries.
18854             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'
18855           fi
18856         fi
18857         ;;
18858
18859       beos*)
18860         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18861           allow_undefined_flag_CXX=unsupported
18862           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18863           # support --undefined.  This deserves some investigation.  FIXME
18864           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18865         else
18866           ld_shlibs_CXX=no
18867         fi
18868         ;;
18869
18870       chorus*)
18871         case $cc_basename in
18872           *)
18873           # FIXME: insert proper C++ library support
18874           ld_shlibs_CXX=no
18875           ;;
18876         esac
18877         ;;
18878
18879       cygwin* | mingw* | pw32* | cegcc*)
18880         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18881         # as there is no search path for DLLs.
18882         hardcode_libdir_flag_spec_CXX='-L$libdir'
18883         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18884         allow_undefined_flag_CXX=unsupported
18885         always_export_symbols_CXX=no
18886         enable_shared_with_static_runtimes_CXX=yes
18887
18888         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18889           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'
18890           # If the export-symbols file already is a .def file (1st line
18891           # is EXPORTS), use it as is; otherwise, prepend...
18892           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18893             cp $export_symbols $output_objdir/$soname.def;
18894           else
18895             echo EXPORTS > $output_objdir/$soname.def;
18896             cat $export_symbols >> $output_objdir/$soname.def;
18897           fi~
18898           $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'
18899         else
18900           ld_shlibs_CXX=no
18901         fi
18902         ;;
18903       darwin* | rhapsody*)
18904
18905
18906   archive_cmds_need_lc_CXX=no
18907   hardcode_direct_CXX=no
18908   hardcode_automatic_CXX=yes
18909   hardcode_shlibpath_var_CXX=unsupported
18910   if test "$lt_cv_ld_force_load" = "yes"; then
18911     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\"`'
18912   else
18913     whole_archive_flag_spec_CXX=''
18914   fi
18915   link_all_deplibs_CXX=yes
18916   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18917   case $cc_basename in
18918      ifort*) _lt_dar_can_shared=yes ;;
18919      *) _lt_dar_can_shared=$GCC ;;
18920   esac
18921   if test "$_lt_dar_can_shared" = "yes"; then
18922     output_verbose_link_cmd=func_echo_all
18923     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}"
18924     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18925     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}"
18926     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}"
18927        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18928       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}"
18929       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}"
18930     fi
18931
18932   else
18933   ld_shlibs_CXX=no
18934   fi
18935
18936         ;;
18937
18938       dgux*)
18939         case $cc_basename in
18940           ec++*)
18941             # FIXME: insert proper C++ library support
18942             ld_shlibs_CXX=no
18943             ;;
18944           ghcx*)
18945             # Green Hills C++ Compiler
18946             # FIXME: insert proper C++ library support
18947             ld_shlibs_CXX=no
18948             ;;
18949           *)
18950             # FIXME: insert proper C++ library support
18951             ld_shlibs_CXX=no
18952             ;;
18953         esac
18954         ;;
18955
18956       freebsd[12]*)
18957         # C++ shared libraries reported to be fairly broken before
18958         # switch to ELF
18959         ld_shlibs_CXX=no
18960         ;;
18961
18962       freebsd-elf*)
18963         archive_cmds_need_lc_CXX=no
18964         ;;
18965
18966       freebsd* | dragonfly*)
18967         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18968         # conventions
18969         ld_shlibs_CXX=yes
18970         ;;
18971
18972       gnu*)
18973         ;;
18974
18975       haiku*)
18976         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18977         link_all_deplibs_CXX=yes
18978         ;;
18979
18980       hpux9*)
18981         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18982         hardcode_libdir_separator_CXX=:
18983         export_dynamic_flag_spec_CXX='${wl}-E'
18984         hardcode_direct_CXX=yes
18985         hardcode_minus_L_CXX=yes # Not in the search PATH,
18986                                              # but as the default
18987                                              # location of the library.
18988
18989         case $cc_basename in
18990           CC*)
18991             # FIXME: insert proper C++ library support
18992             ld_shlibs_CXX=no
18993             ;;
18994           aCC*)
18995             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'
18996             # Commands to make compiler produce verbose output that lists
18997             # what "hidden" libraries, object files and flags are used when
18998             # linking a shared library.
18999             #
19000             # There doesn't appear to be a way to prevent this compiler from
19001             # explicitly linking system object files so we need to strip them
19002             # from the output so that they don't get included in the library
19003             # dependencies.
19004             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"'
19005             ;;
19006           *)
19007             if test "$GXX" = yes; then
19008               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'
19009             else
19010               # FIXME: insert proper C++ library support
19011               ld_shlibs_CXX=no
19012             fi
19013             ;;
19014         esac
19015         ;;
19016
19017       hpux10*|hpux11*)
19018         if test $with_gnu_ld = no; then
19019           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19020           hardcode_libdir_separator_CXX=:
19021
19022           case $host_cpu in
19023             hppa*64*|ia64*)
19024               ;;
19025             *)
19026               export_dynamic_flag_spec_CXX='${wl}-E'
19027               ;;
19028           esac
19029         fi
19030         case $host_cpu in
19031           hppa*64*|ia64*)
19032             hardcode_direct_CXX=no
19033             hardcode_shlibpath_var_CXX=no
19034             ;;
19035           *)
19036             hardcode_direct_CXX=yes
19037             hardcode_direct_absolute_CXX=yes
19038             hardcode_minus_L_CXX=yes # Not in the search PATH,
19039                                                  # but as the default
19040                                                  # location of the library.
19041             ;;
19042         esac
19043
19044         case $cc_basename in
19045           CC*)
19046             # FIXME: insert proper C++ library support
19047             ld_shlibs_CXX=no
19048             ;;
19049           aCC*)
19050             case $host_cpu in
19051               hppa*64*)
19052                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19053                 ;;
19054               ia64*)
19055                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19056                 ;;
19057               *)
19058                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19059                 ;;
19060             esac
19061             # Commands to make compiler produce verbose output that lists
19062             # what "hidden" libraries, object files and flags are used when
19063             # linking a shared library.
19064             #
19065             # There doesn't appear to be a way to prevent this compiler from
19066             # explicitly linking system object files so we need to strip them
19067             # from the output so that they don't get included in the library
19068             # dependencies.
19069             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"'
19070             ;;
19071           *)
19072             if test "$GXX" = yes; then
19073               if test $with_gnu_ld = no; then
19074                 case $host_cpu in
19075                   hppa*64*)
19076                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19077                     ;;
19078                   ia64*)
19079                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19080                     ;;
19081                   *)
19082                     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'
19083                     ;;
19084                 esac
19085               fi
19086             else
19087               # FIXME: insert proper C++ library support
19088               ld_shlibs_CXX=no
19089             fi
19090             ;;
19091         esac
19092         ;;
19093
19094       interix[3-9]*)
19095         hardcode_direct_CXX=no
19096         hardcode_shlibpath_var_CXX=no
19097         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19098         export_dynamic_flag_spec_CXX='${wl}-E'
19099         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19100         # Instead, shared libraries are loaded at an image base (0x10000000 by
19101         # default) and relocated if they conflict, which is a slow very memory
19102         # consuming and fragmenting process.  To avoid this, we pick a random,
19103         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19104         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19105         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'
19106         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'
19107         ;;
19108       irix5* | irix6*)
19109         case $cc_basename in
19110           CC*)
19111             # SGI C++
19112             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'
19113
19114             # Archives containing C++ object files must be created using
19115             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19116             # necessary to make sure instantiated templates are included
19117             # in the archive.
19118             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19119             ;;
19120           *)
19121             if test "$GXX" = yes; then
19122               if test "$with_gnu_ld" = no; then
19123                 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'
19124               else
19125                 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'
19126               fi
19127             fi
19128             link_all_deplibs_CXX=yes
19129             ;;
19130         esac
19131         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19132         hardcode_libdir_separator_CXX=:
19133         inherit_rpath_CXX=yes
19134         ;;
19135
19136       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19137         case $cc_basename in
19138           KCC*)
19139             # Kuck and Associates, Inc. (KAI) C++ Compiler
19140
19141             # KCC will only create a shared library if the output file
19142             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19143             # to its proper name (with version) after linking.
19144             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'
19145             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'
19146             # Commands to make compiler produce verbose output that lists
19147             # what "hidden" libraries, object files and flags are used when
19148             # linking a shared library.
19149             #
19150             # There doesn't appear to be a way to prevent this compiler from
19151             # explicitly linking system object files so we need to strip them
19152             # from the output so that they don't get included in the library
19153             # dependencies.
19154             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"'
19155
19156             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19157             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19158
19159             # Archives containing C++ object files must be created using
19160             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19161             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19162             ;;
19163           icpc* | ecpc* )
19164             # Intel C++
19165             with_gnu_ld=yes
19166             # version 8.0 and above of icpc choke on multiply defined symbols
19167             # if we add $predep_objects and $postdep_objects, however 7.1 and
19168             # earlier do not add the objects themselves.
19169             case `$CC -V 2>&1` in
19170               *"Version 7."*)
19171                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172                 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'
19173                 ;;
19174               *)  # Version 8.0 or newer
19175                 tmp_idyn=
19176                 case $host_cpu in
19177                   ia64*) tmp_idyn=' -i_dynamic';;
19178                 esac
19179                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19180                 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'
19181                 ;;
19182             esac
19183             archive_cmds_need_lc_CXX=no
19184             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19185             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19186             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19187             ;;
19188           pgCC* | pgcpp*)
19189             # Portland Group C++ compiler
19190             case `$CC -V` in
19191             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19192               prelink_cmds_CXX='tpldir=Template.dir~
19193                 rm -rf $tpldir~
19194                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19195                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19196               old_archive_cmds_CXX='tpldir=Template.dir~
19197                 rm -rf $tpldir~
19198                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19199                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19200                 $RANLIB $oldlib'
19201               archive_cmds_CXX='tpldir=Template.dir~
19202                 rm -rf $tpldir~
19203                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19204                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19205               archive_expsym_cmds_CXX='tpldir=Template.dir~
19206                 rm -rf $tpldir~
19207                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19208                 $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'
19209               ;;
19210             *) # Version 6 and above use weak symbols
19211               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19212               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'
19213               ;;
19214             esac
19215
19216             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19217             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19218             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'
19219             ;;
19220           cxx*)
19221             # Compaq C++
19222             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19223             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'
19224
19225             runpath_var=LD_RUN_PATH
19226             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19227             hardcode_libdir_separator_CXX=:
19228
19229             # Commands to make compiler produce verbose output that lists
19230             # what "hidden" libraries, object files and flags are used when
19231             # linking a shared library.
19232             #
19233             # There doesn't appear to be a way to prevent this compiler from
19234             # explicitly linking system object files so we need to strip them
19235             # from the output so that they don't get included in the library
19236             # dependencies.
19237             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'
19238             ;;
19239           xl* | mpixl* | bgxl*)
19240             # IBM XL 8.0 on PPC, with GNU ld
19241             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19242             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19243             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19244             if test "x$supports_anon_versioning" = xyes; then
19245               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19246                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19247                 echo "local: *; };" >> $output_objdir/$libname.ver~
19248                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19249             fi
19250             ;;
19251           *)
19252             case `$CC -V 2>&1 | sed 5q` in
19253             *Sun\ C*)
19254               # Sun C++ 5.9
19255               no_undefined_flag_CXX=' -zdefs'
19256               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19257               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'
19258               hardcode_libdir_flag_spec_CXX='-R$libdir'
19259               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'
19260               compiler_needs_object_CXX=yes
19261
19262               # Not sure whether something based on
19263               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19264               # would be better.
19265               output_verbose_link_cmd='func_echo_all'
19266
19267               # Archives containing C++ object files must be created using
19268               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19269               # necessary to make sure instantiated templates are included
19270               # in the archive.
19271               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19272               ;;
19273             esac
19274             ;;
19275         esac
19276         ;;
19277
19278       lynxos*)
19279         # FIXME: insert proper C++ library support
19280         ld_shlibs_CXX=no
19281         ;;
19282
19283       m88k*)
19284         # FIXME: insert proper C++ library support
19285         ld_shlibs_CXX=no
19286         ;;
19287
19288       mvs*)
19289         case $cc_basename in
19290           cxx*)
19291             # FIXME: insert proper C++ library support
19292             ld_shlibs_CXX=no
19293             ;;
19294           *)
19295             # FIXME: insert proper C++ library support
19296             ld_shlibs_CXX=no
19297             ;;
19298         esac
19299         ;;
19300
19301       netbsd*)
19302         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19303           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19304           wlarc=
19305           hardcode_libdir_flag_spec_CXX='-R$libdir'
19306           hardcode_direct_CXX=yes
19307           hardcode_shlibpath_var_CXX=no
19308         fi
19309         # Workaround some broken pre-1.5 toolchains
19310         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19311         ;;
19312
19313       *nto* | *qnx*)
19314         ld_shlibs_CXX=yes
19315         ;;
19316
19317       openbsd2*)
19318         # C++ shared libraries are fairly broken
19319         ld_shlibs_CXX=no
19320         ;;
19321
19322       openbsd*)
19323         if test -f /usr/libexec/ld.so; then
19324           hardcode_direct_CXX=yes
19325           hardcode_shlibpath_var_CXX=no
19326           hardcode_direct_absolute_CXX=yes
19327           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19328           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19329           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19330             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19331             export_dynamic_flag_spec_CXX='${wl}-E'
19332             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19333           fi
19334           output_verbose_link_cmd=func_echo_all
19335         else
19336           ld_shlibs_CXX=no
19337         fi
19338         ;;
19339
19340       osf3* | osf4* | osf5*)
19341         case $cc_basename in
19342           KCC*)
19343             # Kuck and Associates, Inc. (KAI) C++ Compiler
19344
19345             # KCC will only create a shared library if the output file
19346             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19347             # to its proper name (with version) after linking.
19348             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'
19349
19350             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19351             hardcode_libdir_separator_CXX=:
19352
19353             # Archives containing C++ object files must be created using
19354             # the KAI C++ compiler.
19355             case $host in
19356               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19357               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19358             esac
19359             ;;
19360           RCC*)
19361             # Rational C++ 2.4.1
19362             # FIXME: insert proper C++ library support
19363             ld_shlibs_CXX=no
19364             ;;
19365           cxx*)
19366             case $host in
19367               osf3*)
19368                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19369                 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'
19370                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19371                 ;;
19372               *)
19373                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19374                 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'
19375                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19376                   echo "-hidden">> $lib.exp~
19377                   $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~
19378                   $RM $lib.exp'
19379                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19380                 ;;
19381             esac
19382
19383             hardcode_libdir_separator_CXX=:
19384
19385             # Commands to make compiler produce verbose output that lists
19386             # what "hidden" libraries, object files and flags are used when
19387             # linking a shared library.
19388             #
19389             # There doesn't appear to be a way to prevent this compiler from
19390             # explicitly linking system object files so we need to strip them
19391             # from the output so that they don't get included in the library
19392             # dependencies.
19393             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"'
19394             ;;
19395           *)
19396             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19397               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19398               case $host in
19399                 osf3*)
19400                   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'
19401                   ;;
19402                 *)
19403                   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'
19404                   ;;
19405               esac
19406
19407               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19408               hardcode_libdir_separator_CXX=:
19409
19410               # Commands to make compiler produce verbose output that lists
19411               # what "hidden" libraries, object files and flags are used when
19412               # linking a shared library.
19413               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19414
19415             else
19416               # FIXME: insert proper C++ library support
19417               ld_shlibs_CXX=no
19418             fi
19419             ;;
19420         esac
19421         ;;
19422
19423       psos*)
19424         # FIXME: insert proper C++ library support
19425         ld_shlibs_CXX=no
19426         ;;
19427
19428       sunos4*)
19429         case $cc_basename in
19430           CC*)
19431             # Sun C++ 4.x
19432             # FIXME: insert proper C++ library support
19433             ld_shlibs_CXX=no
19434             ;;
19435           lcc*)
19436             # Lucid
19437             # FIXME: insert proper C++ library support
19438             ld_shlibs_CXX=no
19439             ;;
19440           *)
19441             # FIXME: insert proper C++ library support
19442             ld_shlibs_CXX=no
19443             ;;
19444         esac
19445         ;;
19446
19447       solaris*)
19448         case $cc_basename in
19449           CC*)
19450             # Sun C++ 4.2, 5.x and Centerline C++
19451             archive_cmds_need_lc_CXX=yes
19452             no_undefined_flag_CXX=' -zdefs'
19453             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19454             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19455               $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'
19456
19457             hardcode_libdir_flag_spec_CXX='-R$libdir'
19458             hardcode_shlibpath_var_CXX=no
19459             case $host_os in
19460               solaris2.[0-5] | solaris2.[0-5].*) ;;
19461               *)
19462                 # The compiler driver will combine and reorder linker options,
19463                 # but understands `-z linker_flag'.
19464                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19465                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19466                 ;;
19467             esac
19468             link_all_deplibs_CXX=yes
19469
19470             output_verbose_link_cmd='func_echo_all'
19471
19472             # Archives containing C++ object files must be created using
19473             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19474             # necessary to make sure instantiated templates are included
19475             # in the archive.
19476             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19477             ;;
19478           gcx*)
19479             # Green Hills C++ Compiler
19480             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19481
19482             # The C++ compiler must be used to create the archive.
19483             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19484             ;;
19485           *)
19486             # GNU C++ compiler with Solaris linker
19487             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19488               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19489               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19490                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19491                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19492                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19493
19494                 # Commands to make compiler produce verbose output that lists
19495                 # what "hidden" libraries, object files and flags are used when
19496                 # linking a shared library.
19497                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19498               else
19499                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19500                 # platform.
19501                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19502                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19503                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19504
19505                 # Commands to make compiler produce verbose output that lists
19506                 # what "hidden" libraries, object files and flags are used when
19507                 # linking a shared library.
19508                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19509               fi
19510
19511               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19512               case $host_os in
19513                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19514                 *)
19515                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19516                   ;;
19517               esac
19518             fi
19519             ;;
19520         esac
19521         ;;
19522
19523     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19524       no_undefined_flag_CXX='${wl}-z,text'
19525       archive_cmds_need_lc_CXX=no
19526       hardcode_shlibpath_var_CXX=no
19527       runpath_var='LD_RUN_PATH'
19528
19529       case $cc_basename in
19530         CC*)
19531           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19532           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19533           ;;
19534         *)
19535           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19536           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19537           ;;
19538       esac
19539       ;;
19540
19541       sysv5* | sco3.2v5* | sco5v6*)
19542         # Note: We can NOT use -z defs as we might desire, because we do not
19543         # link with -lc, and that would cause any symbols used from libc to
19544         # always be unresolved, which means just about no library would
19545         # ever link correctly.  If we're not using GNU ld we use -z text
19546         # though, which does catch some bad symbols but isn't as heavy-handed
19547         # as -z defs.
19548         no_undefined_flag_CXX='${wl}-z,text'
19549         allow_undefined_flag_CXX='${wl}-z,nodefs'
19550         archive_cmds_need_lc_CXX=no
19551         hardcode_shlibpath_var_CXX=no
19552         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19553         hardcode_libdir_separator_CXX=':'
19554         link_all_deplibs_CXX=yes
19555         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19556         runpath_var='LD_RUN_PATH'
19557
19558         case $cc_basename in
19559           CC*)
19560             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19563               '"$old_archive_cmds_CXX"
19564             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19565               '"$reload_cmds_CXX"
19566             ;;
19567           *)
19568             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19569             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19570             ;;
19571         esac
19572       ;;
19573
19574       tandem*)
19575         case $cc_basename in
19576           NCC*)
19577             # NonStop-UX NCC 3.20
19578             # FIXME: insert proper C++ library support
19579             ld_shlibs_CXX=no
19580             ;;
19581           *)
19582             # FIXME: insert proper C++ library support
19583             ld_shlibs_CXX=no
19584             ;;
19585         esac
19586         ;;
19587
19588       vxworks*)
19589         # FIXME: insert proper C++ library support
19590         ld_shlibs_CXX=no
19591         ;;
19592
19593       *)
19594         # FIXME: insert proper C++ library support
19595         ld_shlibs_CXX=no
19596         ;;
19597     esac
19598
19599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19600 $as_echo "$ld_shlibs_CXX" >&6; }
19601     test "$ld_shlibs_CXX" = no && can_build_shared=no
19602
19603     GCC_CXX="$GXX"
19604     LD_CXX="$LD"
19605
19606     ## CAVEAT EMPTOR:
19607     ## There is no encapsulation within the following macros, do not change
19608     ## the running order or otherwise move them around unless you know exactly
19609     ## what you are doing...
19610     # Dependencies to place before and after the object being linked:
19611 predep_objects_CXX=
19612 postdep_objects_CXX=
19613 predeps_CXX=
19614 postdeps_CXX=
19615 compiler_lib_search_path_CXX=
19616
19617 cat > conftest.$ac_ext <<_LT_EOF
19618 class Foo
19619 {
19620 public:
19621   Foo (void) { a = 0; }
19622 private:
19623   int a;
19624 };
19625 _LT_EOF
19626
19627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19628   (eval $ac_compile) 2>&5
19629   ac_status=$?
19630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19631   test $ac_status = 0; }; then
19632   # Parse the compiler output and extract the necessary
19633   # objects, libraries and library flags.
19634
19635   # Sentinel used to keep track of whether or not we are before
19636   # the conftest object file.
19637   pre_test_object_deps_done=no
19638
19639   for p in `eval "$output_verbose_link_cmd"`; do
19640     case $p in
19641
19642     -L* | -R* | -l*)
19643        # Some compilers place space between "-{L,R}" and the path.
19644        # Remove the space.
19645        if test $p = "-L" ||
19646           test $p = "-R"; then
19647          prev=$p
19648          continue
19649        else
19650          prev=
19651        fi
19652
19653        if test "$pre_test_object_deps_done" = no; then
19654          case $p in
19655          -L* | -R*)
19656            # Internal compiler library paths should come after those
19657            # provided the user.  The postdeps already come after the
19658            # user supplied libs so there is no need to process them.
19659            if test -z "$compiler_lib_search_path_CXX"; then
19660              compiler_lib_search_path_CXX="${prev}${p}"
19661            else
19662              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19663            fi
19664            ;;
19665          # The "-l" case would never come before the object being
19666          # linked, so don't bother handling this case.
19667          esac
19668        else
19669          if test -z "$postdeps_CXX"; then
19670            postdeps_CXX="${prev}${p}"
19671          else
19672            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19673          fi
19674        fi
19675        ;;
19676
19677     *.$objext)
19678        # This assumes that the test object file only shows up
19679        # once in the compiler output.
19680        if test "$p" = "conftest.$objext"; then
19681          pre_test_object_deps_done=yes
19682          continue
19683        fi
19684
19685        if test "$pre_test_object_deps_done" = no; then
19686          if test -z "$predep_objects_CXX"; then
19687            predep_objects_CXX="$p"
19688          else
19689            predep_objects_CXX="$predep_objects_CXX $p"
19690          fi
19691        else
19692          if test -z "$postdep_objects_CXX"; then
19693            postdep_objects_CXX="$p"
19694          else
19695            postdep_objects_CXX="$postdep_objects_CXX $p"
19696          fi
19697        fi
19698        ;;
19699
19700     *) ;; # Ignore the rest.
19701
19702     esac
19703   done
19704
19705   # Clean up.
19706   rm -f a.out a.exe
19707 else
19708   echo "libtool.m4: error: problem compiling CXX test program"
19709 fi
19710
19711 $RM -f confest.$objext
19712
19713 # PORTME: override above test on systems where it is broken
19714 case $host_os in
19715 interix[3-9]*)
19716   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19717   # hack all around it, let's just trust "g++" to DTRT.
19718   predep_objects_CXX=
19719   postdep_objects_CXX=
19720   postdeps_CXX=
19721   ;;
19722
19723 linux*)
19724   case `$CC -V 2>&1 | sed 5q` in
19725   *Sun\ C*)
19726     # Sun C++ 5.9
19727
19728     # The more standards-conforming stlport4 library is
19729     # incompatible with the Cstd library. Avoid specifying
19730     # it if it's in CXXFLAGS. Ignore libCrun as
19731     # -library=stlport4 depends on it.
19732     case " $CXX $CXXFLAGS " in
19733     *" -library=stlport4 "*)
19734       solaris_use_stlport4=yes
19735       ;;
19736     esac
19737
19738     if test "$solaris_use_stlport4" != yes; then
19739       postdeps_CXX='-library=Cstd -library=Crun'
19740     fi
19741     ;;
19742   esac
19743   ;;
19744
19745 solaris*)
19746   case $cc_basename in
19747   CC*)
19748     # The more standards-conforming stlport4 library is
19749     # incompatible with the Cstd library. Avoid specifying
19750     # it if it's in CXXFLAGS. Ignore libCrun as
19751     # -library=stlport4 depends on it.
19752     case " $CXX $CXXFLAGS " in
19753     *" -library=stlport4 "*)
19754       solaris_use_stlport4=yes
19755       ;;
19756     esac
19757
19758     # Adding this requires a known-good setup of shared libraries for
19759     # Sun compiler versions before 5.6, else PIC objects from an old
19760     # archive will be linked into the output, leading to subtle bugs.
19761     if test "$solaris_use_stlport4" != yes; then
19762       postdeps_CXX='-library=Cstd -library=Crun'
19763     fi
19764     ;;
19765   esac
19766   ;;
19767 esac
19768
19769
19770 case " $postdeps_CXX " in
19771 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19772 esac
19773  compiler_lib_search_dirs_CXX=
19774 if test -n "${compiler_lib_search_path_CXX}"; then
19775  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19776 fi
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808     lt_prog_compiler_wl_CXX=
19809 lt_prog_compiler_pic_CXX=
19810 lt_prog_compiler_static_CXX=
19811
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19813 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19814
19815   # C++ specific cases for pic, static, wl, etc.
19816   if test "$GXX" = yes; then
19817     lt_prog_compiler_wl_CXX='-Wl,'
19818     lt_prog_compiler_static_CXX='-static'
19819
19820     case $host_os in
19821     aix*)
19822       # All AIX code is PIC.
19823       if test "$host_cpu" = ia64; then
19824         # AIX 5 now supports IA64 processor
19825         lt_prog_compiler_static_CXX='-Bstatic'
19826       fi
19827       ;;
19828
19829     amigaos*)
19830       case $host_cpu in
19831       powerpc)
19832             # see comment about AmigaOS4 .so support
19833             lt_prog_compiler_pic_CXX='-fPIC'
19834         ;;
19835       m68k)
19836             # FIXME: we need at least 68020 code to build shared libraries, but
19837             # adding the `-m68020' flag to GCC prevents building anything better,
19838             # like `-m68040'.
19839             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19840         ;;
19841       esac
19842       ;;
19843
19844     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19845       # PIC is the default for these OSes.
19846       ;;
19847     mingw* | cygwin* | os2* | pw32* | cegcc*)
19848       # This hack is so that the source file can tell whether it is being
19849       # built for inclusion in a dll (and should export symbols for example).
19850       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19851       # (--disable-auto-import) libraries
19852       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19853       ;;
19854     darwin* | rhapsody*)
19855       # PIC is the default on this platform
19856       # Common symbols not allowed in MH_DYLIB files
19857       lt_prog_compiler_pic_CXX='-fno-common'
19858       ;;
19859     *djgpp*)
19860       # DJGPP does not support shared libraries at all
19861       lt_prog_compiler_pic_CXX=
19862       ;;
19863     haiku*)
19864       # PIC is the default for Haiku.
19865       # The "-static" flag exists, but is broken.
19866       lt_prog_compiler_static_CXX=
19867       ;;
19868     interix[3-9]*)
19869       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19870       # Instead, we relocate shared libraries at runtime.
19871       ;;
19872     sysv4*MP*)
19873       if test -d /usr/nec; then
19874         lt_prog_compiler_pic_CXX=-Kconform_pic
19875       fi
19876       ;;
19877     hpux*)
19878       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19879       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19880       # sets the default TLS model and affects inlining.
19881       case $host_cpu in
19882       hppa*64*)
19883         ;;
19884       *)
19885         lt_prog_compiler_pic_CXX='-fPIC'
19886         ;;
19887       esac
19888       ;;
19889     *qnx* | *nto*)
19890       # QNX uses GNU C++, but need to define -shared option too, otherwise
19891       # it will coredump.
19892       lt_prog_compiler_pic_CXX='-fPIC -shared'
19893       ;;
19894     *)
19895       lt_prog_compiler_pic_CXX='-fPIC'
19896       ;;
19897     esac
19898   else
19899     case $host_os in
19900       aix[4-9]*)
19901         # All AIX code is PIC.
19902         if test "$host_cpu" = ia64; then
19903           # AIX 5 now supports IA64 processor
19904           lt_prog_compiler_static_CXX='-Bstatic'
19905         else
19906           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19907         fi
19908         ;;
19909       chorus*)
19910         case $cc_basename in
19911         cxch68*)
19912           # Green Hills C++ Compiler
19913           # _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"
19914           ;;
19915         esac
19916         ;;
19917       dgux*)
19918         case $cc_basename in
19919           ec++*)
19920             lt_prog_compiler_pic_CXX='-KPIC'
19921             ;;
19922           ghcx*)
19923             # Green Hills C++ Compiler
19924             lt_prog_compiler_pic_CXX='-pic'
19925             ;;
19926           *)
19927             ;;
19928         esac
19929         ;;
19930       freebsd* | dragonfly*)
19931         # FreeBSD uses GNU C++
19932         ;;
19933       hpux9* | hpux10* | hpux11*)
19934         case $cc_basename in
19935           CC*)
19936             lt_prog_compiler_wl_CXX='-Wl,'
19937             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19938             if test "$host_cpu" != ia64; then
19939               lt_prog_compiler_pic_CXX='+Z'
19940             fi
19941             ;;
19942           aCC*)
19943             lt_prog_compiler_wl_CXX='-Wl,'
19944             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19945             case $host_cpu in
19946             hppa*64*|ia64*)
19947               # +Z the default
19948               ;;
19949             *)
19950               lt_prog_compiler_pic_CXX='+Z'
19951               ;;
19952             esac
19953             ;;
19954           *)
19955             ;;
19956         esac
19957         ;;
19958       interix*)
19959         # This is c89, which is MS Visual C++ (no shared libs)
19960         # Anyone wants to do a port?
19961         ;;
19962       irix5* | irix6* | nonstopux*)
19963         case $cc_basename in
19964           CC*)
19965             lt_prog_compiler_wl_CXX='-Wl,'
19966             lt_prog_compiler_static_CXX='-non_shared'
19967             # CC pic flag -KPIC is the default.
19968             ;;
19969           *)
19970             ;;
19971         esac
19972         ;;
19973       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19974         case $cc_basename in
19975           KCC*)
19976             # KAI C++ Compiler
19977             lt_prog_compiler_wl_CXX='--backend -Wl,'
19978             lt_prog_compiler_pic_CXX='-fPIC'
19979             ;;
19980           ecpc* )
19981             # old Intel C++ for x86_64 which still supported -KPIC.
19982             lt_prog_compiler_wl_CXX='-Wl,'
19983             lt_prog_compiler_pic_CXX='-KPIC'
19984             lt_prog_compiler_static_CXX='-static'
19985             ;;
19986           icpc* )
19987             # Intel C++, used to be incompatible with GCC.
19988             # ICC 10 doesn't accept -KPIC any more.
19989             lt_prog_compiler_wl_CXX='-Wl,'
19990             lt_prog_compiler_pic_CXX='-fPIC'
19991             lt_prog_compiler_static_CXX='-static'
19992             ;;
19993           pgCC* | pgcpp*)
19994             # Portland Group C++ compiler
19995             lt_prog_compiler_wl_CXX='-Wl,'
19996             lt_prog_compiler_pic_CXX='-fpic'
19997             lt_prog_compiler_static_CXX='-Bstatic'
19998             ;;
19999           cxx*)
20000             # Compaq C++
20001             # Make sure the PIC flag is empty.  It appears that all Alpha
20002             # Linux and Compaq Tru64 Unix objects are PIC.
20003             lt_prog_compiler_pic_CXX=
20004             lt_prog_compiler_static_CXX='-non_shared'
20005             ;;
20006           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20007             # IBM XL 8.0, 9.0 on PPC and BlueGene
20008             lt_prog_compiler_wl_CXX='-Wl,'
20009             lt_prog_compiler_pic_CXX='-qpic'
20010             lt_prog_compiler_static_CXX='-qstaticlink'
20011             ;;
20012           *)
20013             case `$CC -V 2>&1 | sed 5q` in
20014             *Sun\ C*)
20015               # Sun C++ 5.9
20016               lt_prog_compiler_pic_CXX='-KPIC'
20017               lt_prog_compiler_static_CXX='-Bstatic'
20018               lt_prog_compiler_wl_CXX='-Qoption ld '
20019               ;;
20020             esac
20021             ;;
20022         esac
20023         ;;
20024       lynxos*)
20025         ;;
20026       m88k*)
20027         ;;
20028       mvs*)
20029         case $cc_basename in
20030           cxx*)
20031             lt_prog_compiler_pic_CXX='-W c,exportall'
20032             ;;
20033           *)
20034             ;;
20035         esac
20036         ;;
20037       netbsd*)
20038         ;;
20039       *qnx* | *nto*)
20040         # QNX uses GNU C++, but need to define -shared option too, otherwise
20041         # it will coredump.
20042         lt_prog_compiler_pic_CXX='-fPIC -shared'
20043         ;;
20044       osf3* | osf4* | osf5*)
20045         case $cc_basename in
20046           KCC*)
20047             lt_prog_compiler_wl_CXX='--backend -Wl,'
20048             ;;
20049           RCC*)
20050             # Rational C++ 2.4.1
20051             lt_prog_compiler_pic_CXX='-pic'
20052             ;;
20053           cxx*)
20054             # Digital/Compaq C++
20055             lt_prog_compiler_wl_CXX='-Wl,'
20056             # Make sure the PIC flag is empty.  It appears that all Alpha
20057             # Linux and Compaq Tru64 Unix objects are PIC.
20058             lt_prog_compiler_pic_CXX=
20059             lt_prog_compiler_static_CXX='-non_shared'
20060             ;;
20061           *)
20062             ;;
20063         esac
20064         ;;
20065       psos*)
20066         ;;
20067       solaris*)
20068         case $cc_basename in
20069           CC*)
20070             # Sun C++ 4.2, 5.x and Centerline C++
20071             lt_prog_compiler_pic_CXX='-KPIC'
20072             lt_prog_compiler_static_CXX='-Bstatic'
20073             lt_prog_compiler_wl_CXX='-Qoption ld '
20074             ;;
20075           gcx*)
20076             # Green Hills C++ Compiler
20077             lt_prog_compiler_pic_CXX='-PIC'
20078             ;;
20079           *)
20080             ;;
20081         esac
20082         ;;
20083       sunos4*)
20084         case $cc_basename in
20085           CC*)
20086             # Sun C++ 4.x
20087             lt_prog_compiler_pic_CXX='-pic'
20088             lt_prog_compiler_static_CXX='-Bstatic'
20089             ;;
20090           lcc*)
20091             # Lucid
20092             lt_prog_compiler_pic_CXX='-pic'
20093             ;;
20094           *)
20095             ;;
20096         esac
20097         ;;
20098       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20099         case $cc_basename in
20100           CC*)
20101             lt_prog_compiler_wl_CXX='-Wl,'
20102             lt_prog_compiler_pic_CXX='-KPIC'
20103             lt_prog_compiler_static_CXX='-Bstatic'
20104             ;;
20105         esac
20106         ;;
20107       tandem*)
20108         case $cc_basename in
20109           NCC*)
20110             # NonStop-UX NCC 3.20
20111             lt_prog_compiler_pic_CXX='-KPIC'
20112             ;;
20113           *)
20114             ;;
20115         esac
20116         ;;
20117       vxworks*)
20118         ;;
20119       *)
20120         lt_prog_compiler_can_build_shared_CXX=no
20121         ;;
20122     esac
20123   fi
20124
20125 case $host_os in
20126   # For platforms which do not support PIC, -DPIC is meaningless:
20127   *djgpp*)
20128     lt_prog_compiler_pic_CXX=
20129     ;;
20130   *)
20131     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20132     ;;
20133 esac
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20135 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20136
20137
20138
20139 #
20140 # Check to make sure the PIC flag actually works.
20141 #
20142 if test -n "$lt_prog_compiler_pic_CXX"; then
20143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20144 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20145 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20146   $as_echo_n "(cached) " >&6
20147 else
20148   lt_cv_prog_compiler_pic_works_CXX=no
20149    ac_outfile=conftest.$ac_objext
20150    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20151    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20152    # Insert the option either (1) after the last *FLAGS variable, or
20153    # (2) before a word containing "conftest.", or (3) at the end.
20154    # Note that $ac_compile itself does not contain backslashes and begins
20155    # with a dollar sign (not a hyphen), so the echo should work correctly.
20156    # The option is referenced via a variable to avoid confusing sed.
20157    lt_compile=`echo "$ac_compile" | $SED \
20158    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20159    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20160    -e 's:$: $lt_compiler_flag:'`
20161    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20162    (eval "$lt_compile" 2>conftest.err)
20163    ac_status=$?
20164    cat conftest.err >&5
20165    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166    if (exit $ac_status) && test -s "$ac_outfile"; then
20167      # The compiler can only warn and ignore the option if not recognized
20168      # So say no if there are warnings other than the usual output.
20169      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20170      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20171      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20172        lt_cv_prog_compiler_pic_works_CXX=yes
20173      fi
20174    fi
20175    $RM conftest*
20176
20177 fi
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20179 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20180
20181 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20182     case $lt_prog_compiler_pic_CXX in
20183      "" | " "*) ;;
20184      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20185      esac
20186 else
20187     lt_prog_compiler_pic_CXX=
20188      lt_prog_compiler_can_build_shared_CXX=no
20189 fi
20190
20191 fi
20192
20193
20194
20195 #
20196 # Check to make sure the static flag actually works.
20197 #
20198 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20200 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20201 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20202   $as_echo_n "(cached) " >&6
20203 else
20204   lt_cv_prog_compiler_static_works_CXX=no
20205    save_LDFLAGS="$LDFLAGS"
20206    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20207    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20208    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20209      # The linker can only warn and ignore the option if not recognized
20210      # So say no if there are warnings
20211      if test -s conftest.err; then
20212        # Append any errors to the config.log.
20213        cat conftest.err 1>&5
20214        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20215        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20216        if diff conftest.exp conftest.er2 >/dev/null; then
20217          lt_cv_prog_compiler_static_works_CXX=yes
20218        fi
20219      else
20220        lt_cv_prog_compiler_static_works_CXX=yes
20221      fi
20222    fi
20223    $RM -r conftest*
20224    LDFLAGS="$save_LDFLAGS"
20225
20226 fi
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20228 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20229
20230 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20231     :
20232 else
20233     lt_prog_compiler_static_CXX=
20234 fi
20235
20236
20237
20238
20239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20240 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20241 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20242   $as_echo_n "(cached) " >&6
20243 else
20244   lt_cv_prog_compiler_c_o_CXX=no
20245    $RM -r conftest 2>/dev/null
20246    mkdir conftest
20247    cd conftest
20248    mkdir out
20249    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20250
20251    lt_compiler_flag="-o out/conftest2.$ac_objext"
20252    # Insert the option either (1) after the last *FLAGS variable, or
20253    # (2) before a word containing "conftest.", or (3) at the end.
20254    # Note that $ac_compile itself does not contain backslashes and begins
20255    # with a dollar sign (not a hyphen), so the echo should work correctly.
20256    lt_compile=`echo "$ac_compile" | $SED \
20257    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20258    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20259    -e 's:$: $lt_compiler_flag:'`
20260    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20261    (eval "$lt_compile" 2>out/conftest.err)
20262    ac_status=$?
20263    cat out/conftest.err >&5
20264    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20266    then
20267      # The compiler can only warn and ignore the option if not recognized
20268      # So say no if there are warnings
20269      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20270      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20271      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20272        lt_cv_prog_compiler_c_o_CXX=yes
20273      fi
20274    fi
20275    chmod u+w . 2>&5
20276    $RM conftest*
20277    # SGI C++ compiler will create directory out/ii_files/ for
20278    # template instantiation
20279    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20280    $RM out/* && rmdir out
20281    cd ..
20282    $RM -r conftest
20283    $RM conftest*
20284
20285 fi
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20287 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20288
20289
20290
20291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20292 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20293 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20294   $as_echo_n "(cached) " >&6
20295 else
20296   lt_cv_prog_compiler_c_o_CXX=no
20297    $RM -r conftest 2>/dev/null
20298    mkdir conftest
20299    cd conftest
20300    mkdir out
20301    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20302
20303    lt_compiler_flag="-o out/conftest2.$ac_objext"
20304    # Insert the option either (1) after the last *FLAGS variable, or
20305    # (2) before a word containing "conftest.", or (3) at the end.
20306    # Note that $ac_compile itself does not contain backslashes and begins
20307    # with a dollar sign (not a hyphen), so the echo should work correctly.
20308    lt_compile=`echo "$ac_compile" | $SED \
20309    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20310    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20311    -e 's:$: $lt_compiler_flag:'`
20312    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20313    (eval "$lt_compile" 2>out/conftest.err)
20314    ac_status=$?
20315    cat out/conftest.err >&5
20316    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20318    then
20319      # The compiler can only warn and ignore the option if not recognized
20320      # So say no if there are warnings
20321      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20322      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20323      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20324        lt_cv_prog_compiler_c_o_CXX=yes
20325      fi
20326    fi
20327    chmod u+w . 2>&5
20328    $RM conftest*
20329    # SGI C++ compiler will create directory out/ii_files/ for
20330    # template instantiation
20331    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20332    $RM out/* && rmdir out
20333    cd ..
20334    $RM -r conftest
20335    $RM conftest*
20336
20337 fi
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20339 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20340
20341
20342
20343
20344 hard_links="nottested"
20345 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20346   # do not overwrite the value of need_locks provided by the user
20347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20348 $as_echo_n "checking if we can lock with hard links... " >&6; }
20349   hard_links=yes
20350   $RM conftest*
20351   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20352   touch conftest.a
20353   ln conftest.a conftest.b 2>&5 || hard_links=no
20354   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20356 $as_echo "$hard_links" >&6; }
20357   if test "$hard_links" = no; then
20358     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20359 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20360     need_locks=warn
20361   fi
20362 else
20363   need_locks=no
20364 fi
20365
20366
20367
20368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20369 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20370
20371   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20372   case $host_os in
20373   aix[4-9]*)
20374     # If we're using GNU nm, then we don't want the "-C" option.
20375     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20376     # Also, AIX nm treats weak defined symbols like other global defined
20377     # symbols, whereas GNU nm marks them as "W".
20378     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20379       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'
20380     else
20381       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'
20382     fi
20383     ;;
20384   pw32*)
20385     export_symbols_cmds_CXX="$ltdll_cmds"
20386   ;;
20387   cygwin* | mingw* | cegcc*)
20388     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'
20389   ;;
20390   *)
20391     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20392   ;;
20393   esac
20394   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20395
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20397 $as_echo "$ld_shlibs_CXX" >&6; }
20398 test "$ld_shlibs_CXX" = no && can_build_shared=no
20399
20400 with_gnu_ld_CXX=$with_gnu_ld
20401
20402
20403
20404
20405
20406
20407 #
20408 # Do we need to explicitly link libc?
20409 #
20410 case "x$archive_cmds_need_lc_CXX" in
20411 x|xyes)
20412   # Assume -lc should be added
20413   archive_cmds_need_lc_CXX=yes
20414
20415   if test "$enable_shared" = yes && test "$GCC" = yes; then
20416     case $archive_cmds_CXX in
20417     *'~'*)
20418       # FIXME: we may have to deal with multi-command sequences.
20419       ;;
20420     '$CC '*)
20421       # Test whether the compiler implicitly links with -lc since on some
20422       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20423       # to ld, don't add -lc before -lgcc.
20424       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20425 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20426 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20427   $as_echo_n "(cached) " >&6
20428 else
20429   $RM conftest*
20430         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20431
20432         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20433   (eval $ac_compile) 2>&5
20434   ac_status=$?
20435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20436   test $ac_status = 0; } 2>conftest.err; then
20437           soname=conftest
20438           lib=conftest
20439           libobjs=conftest.$ac_objext
20440           deplibs=
20441           wl=$lt_prog_compiler_wl_CXX
20442           pic_flag=$lt_prog_compiler_pic_CXX
20443           compiler_flags=-v
20444           linker_flags=-v
20445           verstring=
20446           output_objdir=.
20447           libname=conftest
20448           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20449           allow_undefined_flag_CXX=
20450           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20451   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20452   ac_status=$?
20453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20454   test $ac_status = 0; }
20455           then
20456             lt_cv_archive_cmds_need_lc_CXX=no
20457           else
20458             lt_cv_archive_cmds_need_lc_CXX=yes
20459           fi
20460           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20461         else
20462           cat conftest.err 1>&5
20463         fi
20464         $RM conftest*
20465
20466 fi
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20468 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20469       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20470       ;;
20471     esac
20472   fi
20473   ;;
20474 esac
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20540 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20541
20542 library_names_spec=
20543 libname_spec='lib$name'
20544 soname_spec=
20545 shrext_cmds=".so"
20546 postinstall_cmds=
20547 postuninstall_cmds=
20548 finish_cmds=
20549 finish_eval=
20550 shlibpath_var=
20551 shlibpath_overrides_runpath=unknown
20552 version_type=none
20553 dynamic_linker="$host_os ld.so"
20554 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20555 need_lib_prefix=unknown
20556 hardcode_into_libs=no
20557
20558 # when you set need_version to no, make sure it does not cause -set_version
20559 # flags to be left without arguments
20560 need_version=unknown
20561
20562 case $host_os in
20563 aix3*)
20564   version_type=linux
20565   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20566   shlibpath_var=LIBPATH
20567
20568   # AIX 3 has no versioning support, so we append a major version to the name.
20569   soname_spec='${libname}${release}${shared_ext}$major'
20570   ;;
20571
20572 aix[4-9]*)
20573   version_type=linux
20574   need_lib_prefix=no
20575   need_version=no
20576   hardcode_into_libs=yes
20577   if test "$host_cpu" = ia64; then
20578     # AIX 5 supports IA64
20579     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20580     shlibpath_var=LD_LIBRARY_PATH
20581   else
20582     # With GCC up to 2.95.x, collect2 would create an import file
20583     # for dependence libraries.  The import file would start with
20584     # the line `#! .'.  This would cause the generated library to
20585     # depend on `.', always an invalid library.  This was fixed in
20586     # development snapshots of GCC prior to 3.0.
20587     case $host_os in
20588       aix4 | aix4.[01] | aix4.[01].*)
20589       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20590            echo ' yes '
20591            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20592         :
20593       else
20594         can_build_shared=no
20595       fi
20596       ;;
20597     esac
20598     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20599     # soname into executable. Probably we can add versioning support to
20600     # collect2, so additional links can be useful in future.
20601     if test "$aix_use_runtimelinking" = yes; then
20602       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20603       # instead of lib<name>.a to let people know that these are not
20604       # typical AIX shared libraries.
20605       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20606     else
20607       # We preserve .a as extension for shared libraries through AIX4.2
20608       # and later when we are not doing run time linking.
20609       library_names_spec='${libname}${release}.a $libname.a'
20610       soname_spec='${libname}${release}${shared_ext}$major'
20611     fi
20612     shlibpath_var=LIBPATH
20613   fi
20614   ;;
20615
20616 amigaos*)
20617   case $host_cpu in
20618   powerpc)
20619     # Since July 2007 AmigaOS4 officially supports .so libraries.
20620     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20622     ;;
20623   m68k)
20624     library_names_spec='$libname.ixlibrary $libname.a'
20625     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20626     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'
20627     ;;
20628   esac
20629   ;;
20630
20631 beos*)
20632   library_names_spec='${libname}${shared_ext}'
20633   dynamic_linker="$host_os ld.so"
20634   shlibpath_var=LIBRARY_PATH
20635   ;;
20636
20637 bsdi[45]*)
20638   version_type=linux
20639   need_version=no
20640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20641   soname_spec='${libname}${release}${shared_ext}$major'
20642   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20643   shlibpath_var=LD_LIBRARY_PATH
20644   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20645   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20646   # the default ld.so.conf also contains /usr/contrib/lib and
20647   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20648   # libtool to hard-code these into programs
20649   ;;
20650
20651 cygwin* | mingw* | pw32* | cegcc*)
20652   version_type=windows
20653   shrext_cmds=".dll"
20654   need_version=no
20655   need_lib_prefix=no
20656
20657   case $GCC,$host_os in
20658   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20659     library_names_spec='$libname.dll.a'
20660     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20661     postinstall_cmds='base_file=`basename \${file}`~
20662       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20663       dldir=$destdir/`dirname \$dlpath`~
20664       test -d \$dldir || mkdir -p \$dldir~
20665       $install_prog $dir/$dlname \$dldir/$dlname~
20666       chmod a+x \$dldir/$dlname~
20667       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20668         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20669       fi'
20670     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20671       dlpath=$dir/\$dldll~
20672        $RM \$dlpath'
20673     shlibpath_overrides_runpath=yes
20674
20675     case $host_os in
20676     cygwin*)
20677       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20678       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20679
20680       ;;
20681     mingw* | cegcc*)
20682       # MinGW DLLs use traditional 'lib' prefix
20683       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20684       ;;
20685     pw32*)
20686       # pw32 DLLs use 'pw' prefix rather than 'lib'
20687       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20688       ;;
20689     esac
20690     ;;
20691
20692   *)
20693     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20694     ;;
20695   esac
20696   dynamic_linker='Win32 ld.exe'
20697   # FIXME: first we should search . and the directory the executable is in
20698   shlibpath_var=PATH
20699   ;;
20700
20701 darwin* | rhapsody*)
20702   dynamic_linker="$host_os dyld"
20703   version_type=darwin
20704   need_lib_prefix=no
20705   need_version=no
20706   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20707   soname_spec='${libname}${release}${major}$shared_ext'
20708   shlibpath_overrides_runpath=yes
20709   shlibpath_var=DYLD_LIBRARY_PATH
20710   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20711
20712   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20713   ;;
20714
20715 dgux*)
20716   version_type=linux
20717   need_lib_prefix=no
20718   need_version=no
20719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20720   soname_spec='${libname}${release}${shared_ext}$major'
20721   shlibpath_var=LD_LIBRARY_PATH
20722   ;;
20723
20724 freebsd* | dragonfly*)
20725   # DragonFly does not have aout.  When/if they implement a new
20726   # versioning mechanism, adjust this.
20727   if test -x /usr/bin/objformat; then
20728     objformat=`/usr/bin/objformat`
20729   else
20730     case $host_os in
20731     freebsd[123]*) objformat=aout ;;
20732     *) objformat=elf ;;
20733     esac
20734   fi
20735   version_type=freebsd-$objformat
20736   case $version_type in
20737     freebsd-elf*)
20738       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20739       need_version=no
20740       need_lib_prefix=no
20741       ;;
20742     freebsd-*)
20743       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20744       need_version=yes
20745       ;;
20746   esac
20747   shlibpath_var=LD_LIBRARY_PATH
20748   case $host_os in
20749   freebsd2*)
20750     shlibpath_overrides_runpath=yes
20751     ;;
20752   freebsd3.[01]* | freebsdelf3.[01]*)
20753     shlibpath_overrides_runpath=yes
20754     hardcode_into_libs=yes
20755     ;;
20756   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20757   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20758     shlibpath_overrides_runpath=no
20759     hardcode_into_libs=yes
20760     ;;
20761   *) # from 4.6 on, and DragonFly
20762     shlibpath_overrides_runpath=yes
20763     hardcode_into_libs=yes
20764     ;;
20765   esac
20766   ;;
20767
20768 gnu*)
20769   version_type=linux
20770   need_lib_prefix=no
20771   need_version=no
20772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20773   soname_spec='${libname}${release}${shared_ext}$major'
20774   shlibpath_var=LD_LIBRARY_PATH
20775   hardcode_into_libs=yes
20776   ;;
20777
20778 haiku*)
20779   version_type=linux
20780   need_lib_prefix=no
20781   need_version=no
20782   dynamic_linker="$host_os runtime_loader"
20783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20784   soname_spec='${libname}${release}${shared_ext}$major'
20785   shlibpath_var=LIBRARY_PATH
20786   shlibpath_overrides_runpath=yes
20787   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20788   hardcode_into_libs=yes
20789   ;;
20790
20791 hpux9* | hpux10* | hpux11*)
20792   # Give a soname corresponding to the major version so that dld.sl refuses to
20793   # link against other versions.
20794   version_type=sunos
20795   need_lib_prefix=no
20796   need_version=no
20797   case $host_cpu in
20798   ia64*)
20799     shrext_cmds='.so'
20800     hardcode_into_libs=yes
20801     dynamic_linker="$host_os dld.so"
20802     shlibpath_var=LD_LIBRARY_PATH
20803     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20804     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20805     soname_spec='${libname}${release}${shared_ext}$major'
20806     if test "X$HPUX_IA64_MODE" = X32; then
20807       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20808     else
20809       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20810     fi
20811     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20812     ;;
20813   hppa*64*)
20814     shrext_cmds='.sl'
20815     hardcode_into_libs=yes
20816     dynamic_linker="$host_os dld.sl"
20817     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20818     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20820     soname_spec='${libname}${release}${shared_ext}$major'
20821     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20822     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20823     ;;
20824   *)
20825     shrext_cmds='.sl'
20826     dynamic_linker="$host_os dld.sl"
20827     shlibpath_var=SHLIB_PATH
20828     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20829     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20830     soname_spec='${libname}${release}${shared_ext}$major'
20831     ;;
20832   esac
20833   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20834   postinstall_cmds='chmod 555 $lib'
20835   # or fails outright, so override atomically:
20836   install_override_mode=555
20837   ;;
20838
20839 interix[3-9]*)
20840   version_type=linux
20841   need_lib_prefix=no
20842   need_version=no
20843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20844   soname_spec='${libname}${release}${shared_ext}$major'
20845   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20846   shlibpath_var=LD_LIBRARY_PATH
20847   shlibpath_overrides_runpath=no
20848   hardcode_into_libs=yes
20849   ;;
20850
20851 irix5* | irix6* | nonstopux*)
20852   case $host_os in
20853     nonstopux*) version_type=nonstopux ;;
20854     *)
20855         if test "$lt_cv_prog_gnu_ld" = yes; then
20856                 version_type=linux
20857         else
20858                 version_type=irix
20859         fi ;;
20860   esac
20861   need_lib_prefix=no
20862   need_version=no
20863   soname_spec='${libname}${release}${shared_ext}$major'
20864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20865   case $host_os in
20866   irix5* | nonstopux*)
20867     libsuff= shlibsuff=
20868     ;;
20869   *)
20870     case $LD in # libtool.m4 will add one of these switches to LD
20871     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20872       libsuff= shlibsuff= libmagic=32-bit;;
20873     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20874       libsuff=32 shlibsuff=N32 libmagic=N32;;
20875     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20876       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20877     *) libsuff= shlibsuff= libmagic=never-match;;
20878     esac
20879     ;;
20880   esac
20881   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20882   shlibpath_overrides_runpath=no
20883   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20884   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20885   hardcode_into_libs=yes
20886   ;;
20887
20888 # No shared lib support for Linux oldld, aout, or coff.
20889 linux*oldld* | linux*aout* | linux*coff*)
20890   dynamic_linker=no
20891   ;;
20892
20893 # This must be Linux ELF.
20894 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20895   version_type=linux
20896   need_lib_prefix=no
20897   need_version=no
20898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20899   soname_spec='${libname}${release}${shared_ext}$major'
20900   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20901   shlibpath_var=LD_LIBRARY_PATH
20902   shlibpath_overrides_runpath=no
20903
20904   # Some binutils ld are patched to set DT_RUNPATH
20905   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20906   $as_echo_n "(cached) " >&6
20907 else
20908   lt_cv_shlibpath_overrides_runpath=no
20909     save_LDFLAGS=$LDFLAGS
20910     save_libdir=$libdir
20911     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20912          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20913     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20914 /* end confdefs.h.  */
20915
20916 int
20917 main ()
20918 {
20919
20920   ;
20921   return 0;
20922 }
20923 _ACEOF
20924 if ac_fn_cxx_try_link "$LINENO"; then :
20925   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20926   lt_cv_shlibpath_overrides_runpath=yes
20927 fi
20928 fi
20929 rm -f core conftest.err conftest.$ac_objext \
20930     conftest$ac_exeext conftest.$ac_ext
20931     LDFLAGS=$save_LDFLAGS
20932     libdir=$save_libdir
20933
20934 fi
20935
20936   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20937
20938   # This implies no fast_install, which is unacceptable.
20939   # Some rework will be needed to allow for fast_install
20940   # before this can be enabled.
20941   hardcode_into_libs=yes
20942
20943   # Append ld.so.conf contents to the search path
20944   if test -f /etc/ld.so.conf; then
20945     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' ' '`
20946     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20947   fi
20948
20949   # We used to test for /lib/ld.so.1 and disable shared libraries on
20950   # powerpc, because MkLinux only supported shared libraries with the
20951   # GNU dynamic linker.  Since this was broken with cross compilers,
20952   # most powerpc-linux boxes support dynamic linking these days and
20953   # people can always --disable-shared, the test was removed, and we
20954   # assume the GNU/Linux dynamic linker is in use.
20955   dynamic_linker='GNU/Linux ld.so'
20956   ;;
20957
20958 netbsd*)
20959   version_type=sunos
20960   need_lib_prefix=no
20961   need_version=no
20962   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20963     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20964     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20965     dynamic_linker='NetBSD (a.out) ld.so'
20966   else
20967     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20968     soname_spec='${libname}${release}${shared_ext}$major'
20969     dynamic_linker='NetBSD ld.elf_so'
20970   fi
20971   shlibpath_var=LD_LIBRARY_PATH
20972   shlibpath_overrides_runpath=yes
20973   hardcode_into_libs=yes
20974   ;;
20975
20976 newsos6)
20977   version_type=linux
20978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979   shlibpath_var=LD_LIBRARY_PATH
20980   shlibpath_overrides_runpath=yes
20981   ;;
20982
20983 *nto* | *qnx*)
20984   version_type=qnx
20985   need_lib_prefix=no
20986   need_version=no
20987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20988   soname_spec='${libname}${release}${shared_ext}$major'
20989   shlibpath_var=LD_LIBRARY_PATH
20990   shlibpath_overrides_runpath=no
20991   hardcode_into_libs=yes
20992   dynamic_linker='ldqnx.so'
20993   ;;
20994
20995 openbsd*)
20996   version_type=sunos
20997   sys_lib_dlsearch_path_spec="/usr/lib"
20998   need_lib_prefix=no
20999   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21000   case $host_os in
21001     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21002     *)                          need_version=no  ;;
21003   esac
21004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21005   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21006   shlibpath_var=LD_LIBRARY_PATH
21007   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21008     case $host_os in
21009       openbsd2.[89] | openbsd2.[89].*)
21010         shlibpath_overrides_runpath=no
21011         ;;
21012       *)
21013         shlibpath_overrides_runpath=yes
21014         ;;
21015       esac
21016   else
21017     shlibpath_overrides_runpath=yes
21018   fi
21019   ;;
21020
21021 os2*)
21022   libname_spec='$name'
21023   shrext_cmds=".dll"
21024   need_lib_prefix=no
21025   library_names_spec='$libname${shared_ext} $libname.a'
21026   dynamic_linker='OS/2 ld.exe'
21027   shlibpath_var=LIBPATH
21028   ;;
21029
21030 osf3* | osf4* | osf5*)
21031   version_type=osf
21032   need_lib_prefix=no
21033   need_version=no
21034   soname_spec='${libname}${release}${shared_ext}$major'
21035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21036   shlibpath_var=LD_LIBRARY_PATH
21037   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21038   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21039   ;;
21040
21041 rdos*)
21042   dynamic_linker=no
21043   ;;
21044
21045 solaris*)
21046   version_type=linux
21047   need_lib_prefix=no
21048   need_version=no
21049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21050   soname_spec='${libname}${release}${shared_ext}$major'
21051   shlibpath_var=LD_LIBRARY_PATH
21052   shlibpath_overrides_runpath=yes
21053   hardcode_into_libs=yes
21054   # ldd complains unless libraries are executable
21055   postinstall_cmds='chmod +x $lib'
21056   ;;
21057
21058 sunos4*)
21059   version_type=sunos
21060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21061   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21062   shlibpath_var=LD_LIBRARY_PATH
21063   shlibpath_overrides_runpath=yes
21064   if test "$with_gnu_ld" = yes; then
21065     need_lib_prefix=no
21066   fi
21067   need_version=yes
21068   ;;
21069
21070 sysv4 | sysv4.3*)
21071   version_type=linux
21072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21073   soname_spec='${libname}${release}${shared_ext}$major'
21074   shlibpath_var=LD_LIBRARY_PATH
21075   case $host_vendor in
21076     sni)
21077       shlibpath_overrides_runpath=no
21078       need_lib_prefix=no
21079       runpath_var=LD_RUN_PATH
21080       ;;
21081     siemens)
21082       need_lib_prefix=no
21083       ;;
21084     motorola)
21085       need_lib_prefix=no
21086       need_version=no
21087       shlibpath_overrides_runpath=no
21088       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21089       ;;
21090   esac
21091   ;;
21092
21093 sysv4*MP*)
21094   if test -d /usr/nec ;then
21095     version_type=linux
21096     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21097     soname_spec='$libname${shared_ext}.$major'
21098     shlibpath_var=LD_LIBRARY_PATH
21099   fi
21100   ;;
21101
21102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21103   version_type=freebsd-elf
21104   need_lib_prefix=no
21105   need_version=no
21106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21107   soname_spec='${libname}${release}${shared_ext}$major'
21108   shlibpath_var=LD_LIBRARY_PATH
21109   shlibpath_overrides_runpath=yes
21110   hardcode_into_libs=yes
21111   if test "$with_gnu_ld" = yes; then
21112     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21113   else
21114     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21115     case $host_os in
21116       sco3.2v5*)
21117         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21118         ;;
21119     esac
21120   fi
21121   sys_lib_dlsearch_path_spec='/usr/lib'
21122   ;;
21123
21124 tpf*)
21125   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21126   version_type=linux
21127   need_lib_prefix=no
21128   need_version=no
21129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21130   shlibpath_var=LD_LIBRARY_PATH
21131   shlibpath_overrides_runpath=no
21132   hardcode_into_libs=yes
21133   ;;
21134
21135 uts4*)
21136   version_type=linux
21137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21138   soname_spec='${libname}${release}${shared_ext}$major'
21139   shlibpath_var=LD_LIBRARY_PATH
21140   ;;
21141
21142 *)
21143   dynamic_linker=no
21144   ;;
21145 esac
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21147 $as_echo "$dynamic_linker" >&6; }
21148 test "$dynamic_linker" = no && can_build_shared=no
21149
21150 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21151 if test "$GCC" = yes; then
21152   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21153 fi
21154
21155 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21156   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21157 fi
21158 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21159   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21160 fi
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21200 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21201 hardcode_action_CXX=
21202 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21203    test -n "$runpath_var_CXX" ||
21204    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21205
21206   # We can hardcode non-existent directories.
21207   if test "$hardcode_direct_CXX" != no &&
21208      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21209      # have to relink, otherwise we might link with an installed library
21210      # when we should be linking with a yet-to-be-installed one
21211      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21212      test "$hardcode_minus_L_CXX" != no; then
21213     # Linking always hardcodes the temporary library directory.
21214     hardcode_action_CXX=relink
21215   else
21216     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21217     hardcode_action_CXX=immediate
21218   fi
21219 else
21220   # We cannot hardcode anything, or else we can only hardcode existing
21221   # directories.
21222   hardcode_action_CXX=unsupported
21223 fi
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21225 $as_echo "$hardcode_action_CXX" >&6; }
21226
21227 if test "$hardcode_action_CXX" = relink ||
21228    test "$inherit_rpath_CXX" = yes; then
21229   # Fast installation is not supported
21230   enable_fast_install=no
21231 elif test "$shlibpath_overrides_runpath" = yes ||
21232      test "$enable_shared" = no; then
21233   # Fast installation is not necessary
21234   enable_fast_install=needless
21235 fi
21236
21237
21238
21239
21240
21241
21242
21243   fi # test -n "$compiler"
21244
21245   CC=$lt_save_CC
21246   LDCXX=$LD
21247   LD=$lt_save_LD
21248   GCC=$lt_save_GCC
21249   with_gnu_ld=$lt_save_with_gnu_ld
21250   lt_cv_path_LDCXX=$lt_cv_path_LD
21251   lt_cv_path_LD=$lt_save_path_LD
21252   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21253   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21254 fi # test "$_lt_caught_CXX_error" != yes
21255
21256 ac_ext=c
21257 ac_cpp='$CPP $CPPFLAGS'
21258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277 # Only expand once:
21278
21279
21280
21281
21282
21283 # Identify the assembler which will work hand-in-glove with the newly
21284 # built GCC, so that we can examine its features.  This is the assembler
21285 # which will be driven by the driver program.
21286 #
21287 # If build != host, and we aren't building gas in-tree, we identify a
21288 # build->target assembler and hope that it will have the same features
21289 # as the host->target assembler we'll be using.
21290 gcc_cv_gas_major_version=
21291 gcc_cv_gas_minor_version=
21292 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21293
21294 if test "${gcc_cv_as+set}" = set; then :
21295
21296 else
21297
21298 if test -x "$DEFAULT_ASSEMBLER"; then
21299         gcc_cv_as="$DEFAULT_ASSEMBLER"
21300 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21301      && test -f ../gas/Makefile \
21302      && test x$build = x$host; then
21303         gcc_cv_as=../gas/as-new$build_exeext
21304 elif test -x as$build_exeext; then
21305         # Build using assembler in the current directory.
21306         gcc_cv_as=./as$build_exeext
21307 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21308         gcc_cv_as="$AS_FOR_TARGET"
21309 else
21310         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21311 set dummy $AS_FOR_TARGET; ac_word=$2
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21313 $as_echo_n "checking for $ac_word... " >&6; }
21314 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21315   $as_echo_n "(cached) " >&6
21316 else
21317   case $gcc_cv_as in
21318   [\\/]* | ?:[\\/]*)
21319   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21320   ;;
21321   *)
21322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21323 for as_dir in $PATH
21324 do
21325   IFS=$as_save_IFS
21326   test -z "$as_dir" && as_dir=.
21327     for ac_exec_ext in '' $ac_executable_extensions; do
21328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21329     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21331     break 2
21332   fi
21333 done
21334   done
21335 IFS=$as_save_IFS
21336
21337   ;;
21338 esac
21339 fi
21340 gcc_cv_as=$ac_cv_path_gcc_cv_as
21341 if test -n "$gcc_cv_as"; then
21342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21343 $as_echo "$gcc_cv_as" >&6; }
21344 else
21345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21346 $as_echo "no" >&6; }
21347 fi
21348
21349
21350 fi
21351 fi
21352
21353 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21354
21355 case "$ORIGINAL_AS_FOR_TARGET" in
21356   ./as | ./as$build_exeext) ;;
21357   *) ac_config_files="$ac_config_files as:exec-tool.in"
21358  ;;
21359 esac
21360
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21362 $as_echo_n "checking what assembler to use... " >&6; }
21363 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21364   # Single tree build which includes gas.  We want to prefer it
21365   # over whatever linker top-level may have detected, since
21366   # we'll use what we're building after installation anyway.
21367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21368 $as_echo "newly built gas" >&6; }
21369   in_tree_gas=yes
21370   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21371 for f in $gcc_cv_as_bfd_srcdir/configure \
21372          $gcc_cv_as_gas_srcdir/configure \
21373          $gcc_cv_as_gas_srcdir/configure.in \
21374          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21375   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21376   if test x$gcc_cv_gas_version != x; then
21377     break
21378   fi
21379 done
21380 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21381 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21382 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21383 case $gcc_cv_gas_patch_version in
21384   "") gcc_cv_gas_patch_version="0" ;;
21385 esac
21386 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21387                             + $gcc_cv_gas_minor_version \) \* 1000 \
21388                             + $gcc_cv_gas_patch_version`
21389
21390   in_tree_gas_is_elf=no
21391   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21392      || (grep 'obj_format = multi' ../gas/Makefile \
21393          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21394   then
21395     in_tree_gas_is_elf=yes
21396   fi
21397 else
21398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21399 $as_echo "$gcc_cv_as" >&6; }
21400   in_tree_gas=no
21401 fi
21402
21403 # Identify the linker which will work hand-in-glove with the newly
21404 # built GCC, so that we can examine its features.  This is the linker
21405 # which will be driven by the driver program.
21406 #
21407 # If build != host, and we aren't building gas in-tree, we identify a
21408 # build->target linker and hope that it will have the same features
21409 # as the host->target linker we'll be using.
21410 gcc_cv_gld_major_version=
21411 gcc_cv_gld_minor_version=
21412 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21413 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21414
21415 if test "${gcc_cv_ld+set}" = set; then :
21416
21417 else
21418
21419 if test -x "$DEFAULT_LINKER"; then
21420         gcc_cv_ld="$DEFAULT_LINKER"
21421 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21422      && test -f ../ld/Makefile \
21423      && test x$build = x$host; then
21424         gcc_cv_ld=../ld/ld-new$build_exeext
21425 elif test -x collect-ld$build_exeext; then
21426         # Build using linker in the current directory.
21427         gcc_cv_ld=./collect-ld$build_exeext
21428 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21429         gcc_cv_ld="$LD_FOR_TARGET"
21430 else
21431         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21432 set dummy $LD_FOR_TARGET; ac_word=$2
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21434 $as_echo_n "checking for $ac_word... " >&6; }
21435 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21436   $as_echo_n "(cached) " >&6
21437 else
21438   case $gcc_cv_ld in
21439   [\\/]* | ?:[\\/]*)
21440   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21441   ;;
21442   *)
21443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21444 for as_dir in $PATH
21445 do
21446   IFS=$as_save_IFS
21447   test -z "$as_dir" && as_dir=.
21448     for ac_exec_ext in '' $ac_executable_extensions; do
21449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21450     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21452     break 2
21453   fi
21454 done
21455   done
21456 IFS=$as_save_IFS
21457
21458   ;;
21459 esac
21460 fi
21461 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21462 if test -n "$gcc_cv_ld"; then
21463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21464 $as_echo "$gcc_cv_ld" >&6; }
21465 else
21466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21467 $as_echo "no" >&6; }
21468 fi
21469
21470
21471 fi
21472 fi
21473
21474 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21475 PLUGIN_LD=`basename $gcc_cv_ld`
21476
21477 # Check whether --with-plugin-ld was given.
21478 if test "${with_plugin_ld+set}" = set; then :
21479   withval=$with_plugin_ld; if test x"$withval" != x; then
21480    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21481    PLUGIN_LD="$withval"
21482  fi
21483 fi
21484
21485
21486
21487 cat >>confdefs.h <<_ACEOF
21488 #define PLUGIN_LD "$PLUGIN_LD"
21489 _ACEOF
21490
21491
21492 # Check to see if we are using gold instead of ld
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21494 $as_echo_n "checking whether we are using gold... " >&6; }
21495 ld_is_gold=no
21496 if test x$gcc_cv_ld != x; then
21497   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21498      | grep "GNU gold" > /dev/null; then
21499     ld_is_gold=yes
21500   fi
21501 fi
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21503 $as_echo "$ld_is_gold" >&6; }
21504
21505 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21506
21507 case "$ORIGINAL_LD_FOR_TARGET" in
21508   ./collect-ld | ./collect-ld$build_exeext) ;;
21509   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21510  ;;
21511 esac
21512
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21514 $as_echo_n "checking what linker to use... " >&6; }
21515 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21516    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21517         # Single tree build which includes ld.  We want to prefer it
21518         # over whatever linker top-level may have detected, since
21519         # we'll use what we're building after installation anyway.
21520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21521 $as_echo "newly built ld" >&6; }
21522         in_tree_ld=yes
21523         in_tree_ld_is_elf=no
21524         if (grep 'EMUL = .*elf' ../ld/Makefile \
21525             || grep 'EMUL = .*linux' ../ld/Makefile \
21526             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21527           in_tree_ld_is_elf=yes
21528         elif test "$ld_is_gold" = yes; then
21529           in_tree_ld_is_elf=yes
21530         fi
21531         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
21532         do
21533                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21534                 if test x$gcc_cv_gld_version != x; then
21535                         break
21536                 fi
21537         done
21538         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21539         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21540 else
21541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21542 $as_echo "$gcc_cv_ld" >&6; }
21543         in_tree_ld=no
21544 fi
21545
21546 # Figure out what nm we will be using.
21547 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21548 if test "${gcc_cv_nm+set}" = set; then :
21549
21550 else
21551
21552 if test -f $gcc_cv_binutils_srcdir/configure.in \
21553      && test -f ../binutils/Makefile \
21554      && test x$build = x$host; then
21555         gcc_cv_nm=../binutils/nm-new$build_exeext
21556 elif test -x nm$build_exeext; then
21557         gcc_cv_nm=./nm$build_exeext
21558 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21559         gcc_cv_nm="$NM_FOR_TARGET"
21560 else
21561         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21562 set dummy $NM_FOR_TARGET; ac_word=$2
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21564 $as_echo_n "checking for $ac_word... " >&6; }
21565 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21566   $as_echo_n "(cached) " >&6
21567 else
21568   case $gcc_cv_nm in
21569   [\\/]* | ?:[\\/]*)
21570   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21571   ;;
21572   *)
21573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21574 for as_dir in $PATH
21575 do
21576   IFS=$as_save_IFS
21577   test -z "$as_dir" && as_dir=.
21578     for ac_exec_ext in '' $ac_executable_extensions; do
21579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21580     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21582     break 2
21583   fi
21584 done
21585   done
21586 IFS=$as_save_IFS
21587
21588   ;;
21589 esac
21590 fi
21591 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21592 if test -n "$gcc_cv_nm"; then
21593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21594 $as_echo "$gcc_cv_nm" >&6; }
21595 else
21596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21597 $as_echo "no" >&6; }
21598 fi
21599
21600
21601 fi
21602 fi
21603
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21605 $as_echo_n "checking what nm to use... " >&6; }
21606 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21607         # Single tree build which includes binutils.
21608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21609 $as_echo "newly built nm" >&6; }
21610         in_tree_nm=yes
21611 else
21612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21613 $as_echo "$gcc_cv_nm" >&6; }
21614         in_tree_nm=no
21615 fi
21616
21617 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21618
21619 case "$ORIGINAL_NM_FOR_TARGET" in
21620   ./nm | ./nm$build_exeext) ;;
21621   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21622  ;;
21623 esac
21624
21625
21626 # Figure out what objdump we will be using.
21627 if test "${gcc_cv_objdump+set}" = set; then :
21628
21629 else
21630
21631 if test -f $gcc_cv_binutils_srcdir/configure.in \
21632      && test -f ../binutils/Makefile \
21633      && test x$build = x$host; then
21634         # Single tree build which includes binutils.
21635         gcc_cv_objdump=../binutils/objdump$build_exeext
21636 elif test -x objdump$build_exeext; then
21637         gcc_cv_objdump=./objdump$build_exeext
21638 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21639         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21640 else
21641         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21642 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21644 $as_echo_n "checking for $ac_word... " >&6; }
21645 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21646   $as_echo_n "(cached) " >&6
21647 else
21648   case $gcc_cv_objdump in
21649   [\\/]* | ?:[\\/]*)
21650   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21651   ;;
21652   *)
21653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21654 for as_dir in $PATH
21655 do
21656   IFS=$as_save_IFS
21657   test -z "$as_dir" && as_dir=.
21658     for ac_exec_ext in '' $ac_executable_extensions; do
21659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21660     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21662     break 2
21663   fi
21664 done
21665   done
21666 IFS=$as_save_IFS
21667
21668   ;;
21669 esac
21670 fi
21671 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21672 if test -n "$gcc_cv_objdump"; then
21673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21674 $as_echo "$gcc_cv_objdump" >&6; }
21675 else
21676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21677 $as_echo "no" >&6; }
21678 fi
21679
21680
21681 fi
21682 fi
21683
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21685 $as_echo_n "checking what objdump to use... " >&6; }
21686 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21687         # Single tree build which includes binutils.
21688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21689 $as_echo "newly built objdump" >&6; }
21690 elif test x$gcc_cv_objdump = x; then
21691         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21692 $as_echo "not found" >&6; }
21693 else
21694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21695 $as_echo "$gcc_cv_objdump" >&6; }
21696 fi
21697
21698 # Figure out what readelf we will be using.
21699 if test "${gcc_cv_readelf+set}" = set; then :
21700
21701 else
21702
21703 if test -f $gcc_cv_binutils_srcdir/configure.in \
21704      && test -f ../binutils/Makefile \
21705      && test x$build = x$host; then
21706         # Single tree build which includes binutils.
21707         gcc_cv_readelf=../binutils/readelf$build_exeext
21708 elif test -x readelf$build_exeext; then
21709         gcc_cv_readelf=./readelf$build_exeext
21710 else
21711         # Extract the first word of "readelf", so it can be a program name with args.
21712 set dummy readelf; ac_word=$2
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21714 $as_echo_n "checking for $ac_word... " >&6; }
21715 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21716   $as_echo_n "(cached) " >&6
21717 else
21718   case $gcc_cv_readelf in
21719   [\\/]* | ?:[\\/]*)
21720   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21721   ;;
21722   *)
21723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21724 for as_dir in $PATH
21725 do
21726   IFS=$as_save_IFS
21727   test -z "$as_dir" && as_dir=.
21728     for ac_exec_ext in '' $ac_executable_extensions; do
21729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21730     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21732     break 2
21733   fi
21734 done
21735   done
21736 IFS=$as_save_IFS
21737
21738   ;;
21739 esac
21740 fi
21741 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21742 if test -n "$gcc_cv_readelf"; then
21743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21744 $as_echo "$gcc_cv_readelf" >&6; }
21745 else
21746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21747 $as_echo "no" >&6; }
21748 fi
21749
21750
21751 fi
21752 fi
21753
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21755 $as_echo_n "checking what readelf to use... " >&6; }
21756 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21757         # Single tree build which includes binutils.
21758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21759 $as_echo "newly built readelf" >&6; }
21760 elif test x$gcc_cv_readelf = x; then
21761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21762 $as_echo "not found" >&6; }
21763 else
21764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21765 $as_echo "$gcc_cv_readelf" >&6; }
21766 fi
21767
21768 # Figure out what assembler alignment features are present.
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21770 $as_echo_n "checking assembler flags... " >&6; }
21771 if test "${gcc_cv_as_flags+set}" = set; then :
21772   $as_echo_n "(cached) " >&6
21773 else
21774    case "$target" in
21775   i[34567]86-*-linux*)
21776         gcc_cv_as_flags="--32"
21777     ;;
21778   powerpc*-*-darwin*)
21779         gcc_cv_as_flags="-arch ppc"
21780     ;;
21781   *)
21782     gcc_cv_as_flags=" "
21783     ;;
21784   esac
21785 fi
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21787 $as_echo "$gcc_cv_as_flags" >&6; }
21788
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21790 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21791 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21792   $as_echo_n "(cached) " >&6
21793 else
21794   gcc_cv_as_balign_and_p2align=no
21795     if test $in_tree_gas = yes; then
21796     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21797   then gcc_cv_as_balign_and_p2align=yes
21798 fi
21799   elif test x$gcc_cv_as != x; then
21800     $as_echo '.balign 4
21801 .p2align 2' > conftest.s
21802     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21803   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21804   (eval $ac_try) 2>&5
21805   ac_status=$?
21806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21807   test $ac_status = 0; }; }
21808     then
21809         gcc_cv_as_balign_and_p2align=yes
21810     else
21811       echo "configure: failed program was" >&5
21812       cat conftest.s >&5
21813     fi
21814     rm -f conftest.o conftest.s
21815   fi
21816 fi
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21818 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21819 if test $gcc_cv_as_balign_and_p2align = yes; then
21820
21821 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21822
21823 fi
21824
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21826 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21827 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21828   $as_echo_n "(cached) " >&6
21829 else
21830   gcc_cv_as_max_skip_p2align=no
21831     if test $in_tree_gas = yes; then
21832     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21833   then gcc_cv_as_max_skip_p2align=yes
21834 fi
21835   elif test x$gcc_cv_as != x; then
21836     $as_echo '.p2align 4,,7' > conftest.s
21837     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21838   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21839   (eval $ac_try) 2>&5
21840   ac_status=$?
21841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21842   test $ac_status = 0; }; }
21843     then
21844         gcc_cv_as_max_skip_p2align=yes
21845     else
21846       echo "configure: failed program was" >&5
21847       cat conftest.s >&5
21848     fi
21849     rm -f conftest.o conftest.s
21850   fi
21851 fi
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21853 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21854 if test $gcc_cv_as_max_skip_p2align = yes; then
21855
21856 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21857
21858 fi
21859
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21861 $as_echo_n "checking assembler for .literal16... " >&6; }
21862 if test "${gcc_cv_as_literal16+set}" = set; then :
21863   $as_echo_n "(cached) " >&6
21864 else
21865   gcc_cv_as_literal16=no
21866     if test $in_tree_gas = yes; then
21867     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21868   then gcc_cv_as_literal16=yes
21869 fi
21870   elif test x$gcc_cv_as != x; then
21871     $as_echo '.literal16' > conftest.s
21872     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21873   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21874   (eval $ac_try) 2>&5
21875   ac_status=$?
21876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21877   test $ac_status = 0; }; }
21878     then
21879         gcc_cv_as_literal16=yes
21880     else
21881       echo "configure: failed program was" >&5
21882       cat conftest.s >&5
21883     fi
21884     rm -f conftest.o conftest.s
21885   fi
21886 fi
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21888 $as_echo "$gcc_cv_as_literal16" >&6; }
21889 if test $gcc_cv_as_literal16 = yes; then
21890
21891 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21892
21893 fi
21894
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21896 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21897 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21898   $as_echo_n "(cached) " >&6
21899 else
21900   gcc_cv_as_subsection_m1=no
21901     if test $in_tree_gas = yes; then
21902     if test $in_tree_gas_is_elf = yes \
21903   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21904   then gcc_cv_as_subsection_m1=yes
21905 fi
21906   elif test x$gcc_cv_as != x; then
21907     $as_echo 'conftest_label1: .word 0
21908 .subsection -1
21909 conftest_label2: .word 0
21910 .previous' > conftest.s
21911     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21912   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21913   (eval $ac_try) 2>&5
21914   ac_status=$?
21915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21916   test $ac_status = 0; }; }
21917     then
21918         if test x$gcc_cv_nm != x; then
21919     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21920     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21921     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21922     then :
21923     else gcc_cv_as_subsection_m1=yes
21924     fi
21925     rm -f conftest.nm1 conftest.nm2
21926   fi
21927     else
21928       echo "configure: failed program was" >&5
21929       cat conftest.s >&5
21930     fi
21931     rm -f conftest.o conftest.s
21932   fi
21933 fi
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21935 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21936 if test $gcc_cv_as_subsection_m1 = yes; then
21937
21938 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21939
21940 fi
21941
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21943 $as_echo_n "checking assembler for .weak... " >&6; }
21944 if test "${gcc_cv_as_weak+set}" = set; then :
21945   $as_echo_n "(cached) " >&6
21946 else
21947   gcc_cv_as_weak=no
21948     if test $in_tree_gas = yes; then
21949     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21950   then gcc_cv_as_weak=yes
21951 fi
21952   elif test x$gcc_cv_as != x; then
21953     $as_echo '  .weak foobar' > conftest.s
21954     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21955   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21956   (eval $ac_try) 2>&5
21957   ac_status=$?
21958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21959   test $ac_status = 0; }; }
21960     then
21961         gcc_cv_as_weak=yes
21962     else
21963       echo "configure: failed program was" >&5
21964       cat conftest.s >&5
21965     fi
21966     rm -f conftest.o conftest.s
21967   fi
21968 fi
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21970 $as_echo "$gcc_cv_as_weak" >&6; }
21971 if test $gcc_cv_as_weak = yes; then
21972
21973 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21974
21975 fi
21976
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21978 $as_echo_n "checking assembler for .weakref... " >&6; }
21979 if test "${gcc_cv_as_weakref+set}" = set; then :
21980   $as_echo_n "(cached) " >&6
21981 else
21982   gcc_cv_as_weakref=no
21983     if test $in_tree_gas = yes; then
21984     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21985   then gcc_cv_as_weakref=yes
21986 fi
21987   elif test x$gcc_cv_as != x; then
21988     $as_echo '  .weakref foobar, barfnot' > conftest.s
21989     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21990   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21991   (eval $ac_try) 2>&5
21992   ac_status=$?
21993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21994   test $ac_status = 0; }; }
21995     then
21996         gcc_cv_as_weakref=yes
21997     else
21998       echo "configure: failed program was" >&5
21999       cat conftest.s >&5
22000     fi
22001     rm -f conftest.o conftest.s
22002   fi
22003 fi
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22005 $as_echo "$gcc_cv_as_weakref" >&6; }
22006 if test $gcc_cv_as_weakref = yes; then
22007
22008 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22009
22010 fi
22011
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22013 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22014 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22015   $as_echo_n "(cached) " >&6
22016 else
22017   gcc_cv_as_nsubspa_comdat=no
22018     if test $in_tree_gas = yes; then
22019     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22020   then gcc_cv_as_nsubspa_comdat=yes
22021 fi
22022   elif test x$gcc_cv_as != x; then
22023     $as_echo '  .SPACE $TEXT$
22024         .NSUBSPA $CODE$,COMDAT' > conftest.s
22025     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22026   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22027   (eval $ac_try) 2>&5
22028   ac_status=$?
22029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22030   test $ac_status = 0; }; }
22031     then
22032         gcc_cv_as_nsubspa_comdat=yes
22033     else
22034       echo "configure: failed program was" >&5
22035       cat conftest.s >&5
22036     fi
22037     rm -f conftest.o conftest.s
22038   fi
22039 fi
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22041 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22042 if test $gcc_cv_as_nsubspa_comdat = yes; then
22043
22044 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22045
22046 fi
22047
22048 # .hidden needs to be supported in both the assembler and the linker,
22049 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22050 # This is irritatingly difficult to feature test for; we have to check the
22051 # date string after the version number.  If we've got an in-tree
22052 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22053 # to be safe.
22054 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22056 $as_echo_n "checking assembler for .hidden... " >&6; }
22057 if test "${gcc_cv_as_hidden+set}" = set; then :
22058   $as_echo_n "(cached) " >&6
22059 else
22060   gcc_cv_as_hidden=no
22061     if test $in_tree_gas = yes; then
22062     if test $in_tree_gas_is_elf = yes \
22063   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22064   then gcc_cv_as_hidden=yes
22065 fi
22066   elif test x$gcc_cv_as != x; then
22067     $as_echo '  .hidden foobar
22068 foobar:' > conftest.s
22069     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22070   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22071   (eval $ac_try) 2>&5
22072   ac_status=$?
22073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22074   test $ac_status = 0; }; }
22075     then
22076
22077 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22078 # STV_HIDDEN, so disable .hidden support if so.
22079 case "${target}" in
22080   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22081     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22082       cat > conftest.s <<EOF
22083 .globl hidden
22084         .hidden hidden
22085 hidden:
22086 .globl default
22087         .set    default,hidden
22088 EOF
22089       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22090         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22091         grep '\.hidden default' > /dev/null; then
22092         gcc_cv_as_hidden=no
22093       else
22094         gcc_cv_as_hidden=yes
22095       fi
22096     else
22097       # Assume bug is present if objdump is missing.
22098       gcc_cv_as_hidden=no
22099     fi
22100     ;;
22101   *)
22102     gcc_cv_as_hidden=yes
22103     ;;
22104 esac
22105     else
22106       echo "configure: failed program was" >&5
22107       cat conftest.s >&5
22108     fi
22109     rm -f conftest.o conftest.s
22110   fi
22111 fi
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22113 $as_echo "$gcc_cv_as_hidden" >&6; }
22114
22115 case "${target}" in
22116   *-*-darwin*)
22117     # Darwin as has some visibility support, though with a different syntax.
22118     gcc_cv_as_hidden=yes
22119     ;;
22120 esac
22121
22122 # gnu_indirect_function type is an extension proposed at
22123 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22124 # selection of function implementation
22125 # Check whether --enable-gnu-indirect-function was given.
22126 if test "${enable_gnu_indirect_function+set}" = set; then :
22127   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22128     yes | no) ;;
22129     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22130 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22131   esac
22132 else
22133   enable_gnu_indirect_function="$default_gnu_indirect_function"
22134 fi
22135
22136 if test x$enable_gnu_indirect_function = xyes; then
22137
22138 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22139
22140 fi
22141
22142 if test $in_tree_ld != yes ; then
22143   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22144   if echo "$ld_ver" | grep GNU > /dev/null; then
22145     if test x"$ld_is_gold" = xyes; then
22146       # GNU gold --version looks like this:
22147       #
22148       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22149       #
22150       # We extract the binutils version which is more familiar and specific
22151       # than the gold version.
22152       ld_vers=`echo $ld_ver | sed -n \
22153           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22154     else
22155       # GNU ld --version looks like this:
22156       #
22157       # GNU ld (GNU Binutils) 2.21.51.20110225
22158       ld_vers=`echo $ld_ver | sed -n \
22159           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22160     fi
22161     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'`
22162     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22163     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22164     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22165   else
22166     case "${target}" in
22167       *-*-solaris2*)
22168         #
22169         # Solaris 2 ld -V output looks like this for a regular version:
22170         #
22171         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22172         #
22173         # but test versions add stuff at the end:
22174         #
22175         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22176         #
22177         ld_ver=`$gcc_cv_ld -V 2>&1`
22178         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22179           ld_vers=`echo $ld_ver | sed -n \
22180             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22181           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22182           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22183         fi
22184         ;;
22185     esac
22186   fi
22187 fi
22188
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22190 $as_echo_n "checking linker for .hidden support... " >&6; }
22191 if test "${gcc_cv_ld_hidden+set}" = set; then :
22192   $as_echo_n "(cached) " >&6
22193 else
22194   if test $in_tree_ld = yes ; then
22195   gcc_cv_ld_hidden=no
22196   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 \
22197      && test $in_tree_ld_is_elf = yes; then
22198      gcc_cv_ld_hidden=yes
22199   fi
22200 else
22201   gcc_cv_ld_hidden=yes
22202   if test x"$ld_is_gold" = xyes; then
22203     :
22204   elif echo "$ld_ver" | grep GNU > /dev/null; then
22205     if test 0"$ld_date" -lt 20020404; then
22206       if test -n "$ld_date"; then
22207         # If there was date string, but was earlier than 2002-04-04, fail
22208         gcc_cv_ld_hidden=no
22209       elif test -z "$ld_vers"; then
22210         # If there was no date string nor ld version number, something is wrong
22211         gcc_cv_ld_hidden=no
22212       else
22213         test -z "$ld_vers_patch" && ld_vers_patch=0
22214         if test "$ld_vers_major" -lt 2; then
22215           gcc_cv_ld_hidden=no
22216         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22217           gcc_cv_ld_hidden="no"
22218         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22219           gcc_cv_ld_hidden=no
22220         fi
22221       fi
22222     fi
22223   else
22224     case "${target}" in
22225       *-*-darwin*)
22226         # Darwin ld has some visibility support.
22227         gcc_cv_ld_hidden=yes
22228         ;;
22229       hppa64*-*-hpux* | ia64*-*-hpux*)
22230         gcc_cv_ld_hidden=yes
22231         ;;
22232       *-*-solaris2.8*)
22233         # .hidden support was backported to Solaris 8, starting with ld
22234         # version 1.276.
22235         if test "$ld_vers_minor" -ge 276; then
22236           gcc_cv_ld_hidden=yes
22237         else
22238           gcc_cv_ld_hidden=no
22239         fi
22240         ;;
22241       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22242         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22243         # .symbolic was only added in Solaris 9 12/02.
22244         gcc_cv_ld_hidden=yes
22245         ;;
22246       *)
22247         gcc_cv_ld_hidden=no
22248         ;;
22249     esac
22250   fi
22251 fi
22252 fi
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22254 $as_echo "$gcc_cv_ld_hidden" >&6; }
22255 libgcc_visibility=no
22256
22257
22258 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22259   libgcc_visibility=yes
22260
22261 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22262
22263 fi
22264
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22266 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22267 gcc_cv_ld_ro_rw_mix=unknown
22268 if test $in_tree_ld = yes ; then
22269   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 \
22270      && test $in_tree_ld_is_elf = yes; then
22271     gcc_cv_ld_ro_rw_mix=read-write
22272   fi
22273 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22274   echo '.section myfoosect, "a"' > conftest1.s
22275   echo '.section myfoosect, "aw"' > conftest2.s
22276   echo '.byte 1' >> conftest2.s
22277   echo '.section myfoosect, "a"' > conftest3.s
22278   echo '.byte 0' >> conftest3.s
22279   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22280      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22281      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22282      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22283         conftest2.o conftest3.o > /dev/null 2>&1; then
22284     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22285                          | sed -e '/myfoosect/!d' -e N`
22286     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22287       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22288         gcc_cv_ld_ro_rw_mix=read-only
22289       else
22290         gcc_cv_ld_ro_rw_mix=read-write
22291       fi
22292     fi
22293   fi
22294   rm -f conftest.* conftest[123].*
22295 fi
22296 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22297
22298 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22299
22300 fi
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22302 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22303
22304 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22306 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22307 if test "${gcc_cv_as_leb128+set}" = set; then :
22308   $as_echo_n "(cached) " >&6
22309 else
22310   gcc_cv_as_leb128=no
22311     if test $in_tree_gas = yes; then
22312     if test $in_tree_gas_is_elf = yes \
22313   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22314   then gcc_cv_as_leb128=yes
22315 fi
22316   elif test x$gcc_cv_as != x; then
22317     $as_echo '  .data
22318         .uleb128 L2 - L1
22319 L1:
22320         .uleb128 1280
22321         .sleb128 -1010
22322 L2:' > conftest.s
22323     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22324   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22325   (eval $ac_try) 2>&5
22326   ac_status=$?
22327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22328   test $ac_status = 0; }; }
22329     then
22330         # GAS versions before 2.11 do not support uleb128,
22331   # despite appearing to.
22332   # ??? There exists an elf-specific test that will crash
22333   # the assembler.  Perhaps it's better to figure out whether
22334   # arbitrary sections are supported and try the test.
22335   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22336   if echo "$as_ver" | grep GNU > /dev/null; then
22337     as_vers=`echo $as_ver | sed -n \
22338         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22339     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22340     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22341     if test $as_major -eq 2 && test $as_minor -lt 11
22342     then :
22343     else gcc_cv_as_leb128=yes
22344     fi
22345   fi
22346     else
22347       echo "configure: failed program was" >&5
22348       cat conftest.s >&5
22349     fi
22350     rm -f conftest.o conftest.s
22351   fi
22352 fi
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22354 $as_echo "$gcc_cv_as_leb128" >&6; }
22355 if test $gcc_cv_as_leb128 = yes; then
22356
22357 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22358
22359 fi
22360
22361 # Check if we have assembler support for unwind directives.
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22363 $as_echo_n "checking assembler for cfi directives... " >&6; }
22364 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22365   $as_echo_n "(cached) " >&6
22366 else
22367   gcc_cv_as_cfi_directive=no
22368   if test x$gcc_cv_as != x; then
22369     $as_echo '  .text
22370         .cfi_startproc
22371         .cfi_offset 0, 0
22372         .cfi_same_value 1
22373         .cfi_def_cfa 1, 2
22374         .cfi_escape 1, 2, 3, 4, 5
22375         .cfi_endproc' > conftest.s
22376     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22377   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22378   (eval $ac_try) 2>&5
22379   ac_status=$?
22380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22381   test $ac_status = 0; }; }
22382     then
22383         case "$target" in
22384   *-*-solaris*)
22385     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22386     # read-only and read-write sections, we need to make sure that the
22387     # assembler used emits read-write .eh_frame sections.
22388     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22389       if test "x$gcc_cv_objdump" != x; then
22390         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22391                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22392           gcc_cv_as_cfi_directive=no
22393         else
22394           case "$target" in
22395             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22396               # On Solaris/x86, make sure that GCC and gas agree on using
22397               # read-only .eh_frame sections for 64-bit.
22398               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22399                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22400                         sed -e /.eh_frame/!d -e N | \
22401                         grep READONLY > /dev/null; then
22402                 gcc_cv_as_cfi_directive=yes
22403               else
22404                 gcc_cv_as_cfi_directive=no
22405               fi
22406               ;;
22407             *)
22408               gcc_cv_as_cfi_directive=yes
22409               ;;
22410           esac
22411         fi
22412       else
22413         # no objdump, err on the side of caution
22414         gcc_cv_as_cfi_directive=no
22415       fi
22416     else
22417       gcc_cv_as_cfi_directive=yes
22418     fi
22419     ;;
22420   *-*-*)
22421     gcc_cv_as_cfi_directive=yes
22422     ;;
22423 esac
22424     else
22425       echo "configure: failed program was" >&5
22426       cat conftest.s >&5
22427     fi
22428     rm -f conftest.o conftest.s
22429   fi
22430 fi
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22432 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22433
22434 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22436 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22437 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22438   $as_echo_n "(cached) " >&6
22439 else
22440   gcc_cv_as_cfi_advance_working=no
22441   if test x$gcc_cv_as != x; then
22442     $as_echo '  .text
22443         .cfi_startproc
22444         .cfi_adjust_cfa_offset 64
22445         .skip 75040, 0
22446         .cfi_adjust_cfa_offset 128
22447         .cfi_endproc' > conftest.s
22448     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22449   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22450   (eval $ac_try) 2>&5
22451   ac_status=$?
22452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22453   test $ac_status = 0; }; }
22454     then
22455
22456 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22457     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22458    gcc_cv_as_cfi_advance_working=yes
22459 fi
22460
22461     else
22462       echo "configure: failed program was" >&5
22463       cat conftest.s >&5
22464     fi
22465     rm -f conftest.o conftest.s
22466   fi
22467 fi
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22469 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22470
22471 else
22472   # no objdump, err on the side of caution
22473   gcc_cv_as_cfi_advance_working=no
22474 fi
22475
22476
22477 cat >>confdefs.h <<_ACEOF
22478 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22479        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22480 _ACEOF
22481
22482
22483
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22485 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22486 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22487   $as_echo_n "(cached) " >&6
22488 else
22489   gcc_cv_as_cfi_personality_directive=no
22490   if test x$gcc_cv_as != x; then
22491     $as_echo '  .text
22492         .cfi_startproc
22493         .cfi_personality 0, symbol
22494         .cfi_endproc' > conftest.s
22495     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22496   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22497   (eval $ac_try) 2>&5
22498   ac_status=$?
22499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22500   test $ac_status = 0; }; }
22501     then
22502         gcc_cv_as_cfi_personality_directive=yes
22503     else
22504       echo "configure: failed program was" >&5
22505       cat conftest.s >&5
22506     fi
22507     rm -f conftest.o conftest.s
22508   fi
22509 fi
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22511 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22512
22513
22514 cat >>confdefs.h <<_ACEOF
22515 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22516     then echo 1; else echo 0; fi`
22517 _ACEOF
22518
22519
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22521 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22522 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22523   $as_echo_n "(cached) " >&6
22524 else
22525   gcc_cv_as_cfi_sections_directive=no
22526   if test x$gcc_cv_as != x; then
22527     $as_echo '  .text
22528         .cfi_sections .debug_frame, .eh_frame
22529         .cfi_startproc
22530         .cfi_endproc' > conftest.s
22531     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
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; }; }
22537     then
22538         case $target_os in
22539   win32 | pe | cygwin* | mingw32* | uwin*)
22540     # Need to check that we generated the correct relocation for the
22541     # .debug_frame section.  This was fixed for binutils 2.21.
22542     gcc_cv_as_cfi_sections_directive=no
22543     if test "x$gcc_cv_objdump" != x; then
22544      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22545         grep secrel > /dev/null; then
22546       gcc_cv_as_cfi_sections_directive=yes
22547      fi
22548     fi
22549     ;;
22550   *)
22551     gcc_cv_as_cfi_sections_directive=yes
22552     ;;
22553 esac
22554     else
22555       echo "configure: failed program was" >&5
22556       cat conftest.s >&5
22557     fi
22558     rm -f conftest.o conftest.s
22559   fi
22560 fi
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22562 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22563
22564
22565
22566 cat >>confdefs.h <<_ACEOF
22567 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22568     then echo 1; else echo 0; fi`
22569 _ACEOF
22570
22571
22572 # GAS versions up to and including 2.11.0 may mis-optimize
22573 # .eh_frame data.
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22575 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22576 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22577   $as_echo_n "(cached) " >&6
22578 else
22579   gcc_cv_as_eh_frame=no
22580     if test $in_tree_gas = yes; then
22581     if test $in_tree_gas_is_elf = yes \
22582   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22583   then gcc_cv_as_eh_frame=yes
22584 fi
22585   elif test x$gcc_cv_as != x; then
22586     $as_echo '  .text
22587 .LFB1:
22588         .4byte  0
22589 .L1:
22590         .4byte  0
22591 .LFE1:
22592         .section        .eh_frame,"aw",@progbits
22593 __FRAME_BEGIN__:
22594         .4byte  .LECIE1-.LSCIE1
22595 .LSCIE1:
22596         .4byte  0x0
22597         .byte   0x1
22598         .ascii "z\0"
22599         .byte   0x1
22600         .byte   0x78
22601         .byte   0x1a
22602         .byte   0x0
22603         .byte   0x4
22604         .4byte  1
22605         .p2align 1
22606 .LECIE1:
22607 .LSFDE1:
22608         .4byte  .LEFDE1-.LASFDE1
22609 .LASFDE1:
22610         .4byte  .LASFDE1-__FRAME_BEGIN__
22611         .4byte  .LFB1
22612         .4byte  .LFE1-.LFB1
22613         .byte   0x4
22614         .4byte  .LFE1-.LFB1
22615         .byte   0x4
22616         .4byte  .L1-.LFB1
22617 .LEFDE1:' > conftest.s
22618     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22619   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22620   (eval $ac_try) 2>&5
22621   ac_status=$?
22622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22623   test $ac_status = 0; }; }
22624     then
22625           cat > conftest.lit <<EOF
22626  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22627  0010 01000000 12000000 18000000 00000000  ................
22628  0020 08000000 04080000 0044               .........D      
22629 EOF
22630 cat > conftest.big <<EOF
22631  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22632  0010 00000001 00000012 00000018 00000000  ................
22633  0020 00000008 04000000 0844               .........D      
22634 EOF
22635   # If the assembler didn't choke, and we can objdump,
22636   # and we got the correct data, then succeed.
22637   # The text in the here-document typically retains its unix-style line
22638   # endings, while the output of objdump will use host line endings.
22639   # Therefore, use diff -b for the comparisons.
22640   if test x$gcc_cv_objdump != x \
22641   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22642      | tail -3 > conftest.got \
22643   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22644     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22645   then
22646     gcc_cv_as_eh_frame=yes
22647   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22648   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22649   (eval $ac_try) 2>&5
22650   ac_status=$?
22651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22652   test $ac_status = 0; }; }; then
22653     gcc_cv_as_eh_frame=buggy
22654   else
22655     # Uh oh, what do we do now?
22656     gcc_cv_as_eh_frame=no
22657   fi
22658     else
22659       echo "configure: failed program was" >&5
22660       cat conftest.s >&5
22661     fi
22662     rm -f conftest.o conftest.s
22663   fi
22664 fi
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22666 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22667
22668
22669 if test $gcc_cv_as_eh_frame = buggy; then
22670
22671 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22672
22673 fi
22674
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22676 $as_echo_n "checking assembler for section merging support... " >&6; }
22677 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22678   $as_echo_n "(cached) " >&6
22679 else
22680   gcc_cv_as_shf_merge=no
22681     if test $in_tree_gas = yes; then
22682     if test $in_tree_gas_is_elf = yes \
22683   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22684   then gcc_cv_as_shf_merge=yes
22685 fi
22686   elif test x$gcc_cv_as != x; then
22687     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22688     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22689   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22690   (eval $ac_try) 2>&5
22691   ac_status=$?
22692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22693   test $ac_status = 0; }; }
22694     then
22695         gcc_cv_as_shf_merge=yes
22696     else
22697       echo "configure: failed program was" >&5
22698       cat conftest.s >&5
22699     fi
22700     rm -f conftest.o conftest.s
22701   fi
22702 fi
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22704 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22705
22706 if test $gcc_cv_as_shf_merge = no; then
22707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22708 $as_echo_n "checking assembler for section merging support... " >&6; }
22709 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22710   $as_echo_n "(cached) " >&6
22711 else
22712   gcc_cv_as_shf_merge=no
22713     if test $in_tree_gas = yes; then
22714     if test $in_tree_gas_is_elf = yes \
22715   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22716   then gcc_cv_as_shf_merge=yes
22717 fi
22718   elif test x$gcc_cv_as != x; then
22719     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22720     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22721   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22722   (eval $ac_try) 2>&5
22723   ac_status=$?
22724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22725   test $ac_status = 0; }; }
22726     then
22727         gcc_cv_as_shf_merge=yes
22728     else
22729       echo "configure: failed program was" >&5
22730       cat conftest.s >&5
22731     fi
22732     rm -f conftest.o conftest.s
22733   fi
22734 fi
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22736 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22737
22738 fi
22739
22740 cat >>confdefs.h <<_ACEOF
22741 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22742 _ACEOF
22743
22744
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22746 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22747 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22748   $as_echo_n "(cached) " >&6
22749 else
22750   gcc_cv_as_comdat_group=no
22751     if test $in_tree_gas = yes; then
22752     if test $in_tree_gas_is_elf = yes \
22753   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22754   then gcc_cv_as_comdat_group=yes
22755 fi
22756   elif test x$gcc_cv_as != x; then
22757     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22758     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22759   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22760   (eval $ac_try) 2>&5
22761   ac_status=$?
22762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22763   test $ac_status = 0; }; }
22764     then
22765         gcc_cv_as_comdat_group=yes
22766     else
22767       echo "configure: failed program was" >&5
22768       cat conftest.s >&5
22769     fi
22770     rm -f conftest.o conftest.s
22771   fi
22772 fi
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22774 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22775
22776 if test $gcc_cv_as_comdat_group = yes; then
22777   gcc_cv_as_comdat_group_percent=no
22778   gcc_cv_as_comdat_group_group=no
22779 else
22780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22781 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22782 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22783   $as_echo_n "(cached) " >&6
22784 else
22785   gcc_cv_as_comdat_group_percent=no
22786     if test $in_tree_gas = yes; then
22787     if test $in_tree_gas_is_elf = yes \
22788   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22789   then gcc_cv_as_comdat_group_percent=yes
22790 fi
22791   elif test x$gcc_cv_as != x; then
22792     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22793     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22794   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22795   (eval $ac_try) 2>&5
22796   ac_status=$?
22797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22798   test $ac_status = 0; }; }
22799     then
22800         gcc_cv_as_comdat_group_percent=yes
22801     else
22802       echo "configure: failed program was" >&5
22803       cat conftest.s >&5
22804     fi
22805     rm -f conftest.o conftest.s
22806   fi
22807 fi
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22809 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22810
22811  if test $gcc_cv_as_comdat_group_percent = yes; then
22812    gcc_cv_as_comdat_group_group=no
22813  else
22814    case "${target}" in
22815      # Sun as uses a completely different syntax.
22816      *-*-solaris2*)
22817        case "${target}" in
22818          sparc*-*-solaris2*)
22819            conftest_s='
22820                .group foo,".text%foo",#comdat
22821                .section ".text%foo", #alloc,#execinstr,#progbits
22822                .globl foo
22823              foo:
22824              '
22825            ;;
22826          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22827            conftest_s='
22828                .group foo,.text%foo,#comdat
22829                .section .text%foo, "ax", @progbits
22830                .globl  foo
22831              foo:
22832              '
22833            ;;
22834        esac
22835        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22836 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22837 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22838   $as_echo_n "(cached) " >&6
22839 else
22840   gcc_cv_as_comdat_group_group=no
22841   if test x$gcc_cv_as != x; then
22842     $as_echo "$conftest_s" > conftest.s
22843     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22844   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22845   (eval $ac_try) 2>&5
22846   ac_status=$?
22847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22848   test $ac_status = 0; }; }
22849     then
22850         gcc_cv_as_comdat_group_group=yes
22851     else
22852       echo "configure: failed program was" >&5
22853       cat conftest.s >&5
22854     fi
22855     rm -f conftest.o conftest.s
22856   fi
22857 fi
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22859 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22860
22861        ;;
22862    esac
22863  fi
22864 fi
22865 if test x"$ld_is_gold" = xyes; then
22866   comdat_group=yes
22867 elif test $in_tree_ld = yes ; then
22868   comdat_group=no
22869   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 \
22870      && test $in_tree_ld_is_elf = yes; then
22871      comdat_group=yes
22872   fi
22873 elif echo "$ld_ver" | grep GNU > /dev/null; then
22874   comdat_group=yes
22875   if test 0"$ld_date" -lt 20050308; then
22876     if test -n "$ld_date"; then
22877       # If there was date string, but was earlier than 2005-03-08, fail
22878       comdat_group=no
22879     elif test "$ld_vers_major" -lt 2; then
22880       comdat_group=no
22881     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22882       comdat_group=no
22883     fi
22884   fi
22885 else
22886   case "${target}" in
22887     *-*-solaris2.1[1-9]*)
22888       comdat_group=no
22889       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22890       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22891       # version 1.688.
22892       #
22893       # If using Sun as for COMDAT group as emitted by GCC, one needs at
22894       # least ld version 1.2267.
22895       if test "$ld_vers_major" -gt 1; then
22896         comdat_group=yes
22897       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22898         comdat_group=yes
22899       elif test "$ld_vers_minor" -ge 2267; then
22900         comdat_group=yes
22901       fi
22902       ;;
22903     *)
22904       # Assume linkers other than GNU ld don't support COMDAT group.
22905       comdat_group=no
22906       ;;
22907   esac
22908 fi
22909 # Allow overriding the automatic COMDAT group tests above.
22910 # Check whether --enable-comdat was given.
22911 if test "${enable_comdat+set}" = set; then :
22912   enableval=$enable_comdat; comdat_group="$enable_comdat"
22913 fi
22914
22915 if test $comdat_group = no; then
22916   gcc_cv_as_comdat_group=no
22917   gcc_cv_as_comdat_group_percent=no
22918   gcc_cv_as_comdat_group_group=no
22919 fi
22920
22921 cat >>confdefs.h <<_ACEOF
22922 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22923     || test $gcc_cv_as_comdat_group_percent = yes \
22924     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22925 _ACEOF
22926
22927
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22929 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22930 if test "${gcc_cv_as_discriminator+set}" = set; then :
22931   $as_echo_n "(cached) " >&6
22932 else
22933   gcc_cv_as_discriminator=no
22934     if test $in_tree_gas = yes; then
22935     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22936   then gcc_cv_as_discriminator=yes
22937 fi
22938   elif test x$gcc_cv_as != x; then
22939     $as_echo '  .text
22940         .file 1 "conf.c"
22941         .loc 1 1 0 discriminator 1' > conftest.s
22942     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22943   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22944   (eval $ac_try) 2>&5
22945   ac_status=$?
22946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22947   test $ac_status = 0; }; }
22948     then
22949         gcc_cv_as_discriminator=yes
22950     else
22951       echo "configure: failed program was" >&5
22952       cat conftest.s >&5
22953     fi
22954     rm -f conftest.o conftest.s
22955   fi
22956 fi
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22958 $as_echo "$gcc_cv_as_discriminator" >&6; }
22959 if test $gcc_cv_as_discriminator = yes; then
22960
22961 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22962
22963 fi
22964
22965 # Thread-local storage - the check is heavily parameterized.
22966 conftest_s=
22967 tls_first_major=
22968 tls_first_minor=
22969 tls_as_opt=
22970 case "$target" in
22971   alpha*-*-*)
22972     conftest_s='
22973         .section ".tdata","awT",@progbits
22974 foo:    .long   25
22975         .text
22976         ldq     $27,__tls_get_addr($29)         !literal!1
22977         lda     $16,foo($29)                    !tlsgd!1
22978         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22979         ldq     $27,__tls_get_addr($29)         !literal!2
22980         lda     $16,foo($29)                    !tlsldm!2
22981         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22982         ldq     $1,foo($29)                     !gotdtprel
22983         ldah    $2,foo($29)                     !dtprelhi
22984         lda     $3,foo($2)                      !dtprello
22985         lda     $4,foo($29)                     !dtprel
22986         ldq     $1,foo($29)                     !gottprel
22987         ldah    $2,foo($29)                     !tprelhi
22988         lda     $3,foo($2)                      !tprello
22989         lda     $4,foo($29)                     !tprel'
22990         tls_first_major=2
22991         tls_first_minor=13
22992         tls_as_opt=--fatal-warnings
22993         ;;
22994   cris-*-*|crisv32-*-*)
22995     conftest_s='
22996         .section ".tdata","awT",@progbits
22997 x:      .long   25
22998         .text
22999         move.d x:IE,$r10
23000         nop'
23001         tls_first_major=2
23002         tls_first_minor=20
23003         tls_as_opt=--fatal-warnings
23004         ;;
23005   frv*-*-*)
23006     conftest_s='
23007         .section ".tdata","awT",@progbits
23008 x:      .long   25
23009         .text
23010         call    #gettlsoff(x)'
23011         tls_first_major=2
23012         tls_first_minor=14
23013         ;;
23014   hppa*-*-linux*)
23015     conftest_s='
23016 t1:     .reg    %r20
23017 t2:     .reg    %r21
23018 gp:     .reg    %r19
23019         .section ".tdata","awT",@progbits
23020 foo:    .long   25
23021         .text
23022         .align  4
23023         addil LT%foo-$tls_gdidx$,gp
23024         ldo RT%foo-$tls_gdidx$(%r1),%arg0
23025         b __tls_get_addr
23026         nop
23027         addil LT%foo-$tls_ldidx$,gp
23028         b __tls_get_addr
23029         ldo RT%foo-$tls_ldidx$(%r1),%arg0
23030         addil LR%foo-$tls_dtpoff$,%ret0
23031         ldo RR%foo-$tls_dtpoff$(%r1),%t1
23032         mfctl %cr27,%t1
23033         addil LT%foo-$tls_ieoff$,gp
23034         ldw RT%foo-$tls_ieoff$(%r1),%t2
23035         add %t1,%t2,%t3
23036         mfctl %cr27,%t1
23037         addil LR%foo-$tls_leoff$,%t1
23038         ldo RR%foo-$tls_leoff$(%r1),%t2'
23039         tls_first_major=2
23040         tls_first_minor=15
23041         tls_as_opt=--fatal-warnings
23042         ;;
23043   arm*-*-*)
23044     conftest_s='
23045         .section ".tdata","awT",%progbits
23046 foo:    .long   25
23047         .text
23048 .word foo(gottpoff)
23049 .word foo(tpoff)
23050 .word foo(tlsgd)
23051 .word foo(tlsldm)
23052 .word foo(tlsldo)'
23053         tls_first_major=2
23054         tls_first_minor=17
23055         ;;
23056   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23057     case "$target" in
23058       i[34567]86-*-solaris2.*)
23059         on_solaris=yes
23060         tga_func=___tls_get_addr
23061         ;;
23062       x86_64-*-solaris2.1[0-9]*)
23063         on_solaris=yes
23064         tga_func=__tls_get_addr
23065         ;;
23066       *)
23067         on_solaris=no
23068         ;;
23069     esac
23070     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23071       conftest_s='
23072         .section .tdata,"awt",@progbits'
23073       tls_first_major=0
23074       tls_first_minor=0
23075
23076 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23077
23078     else
23079       conftest_s='
23080         .section ".tdata","awT",@progbits'
23081       tls_first_major=2
23082       tls_first_minor=14
23083       tls_as_opt="--fatal-warnings"
23084     fi
23085     conftest_s="$conftest_s
23086 foo:    .long   25
23087         .text
23088         movl    %gs:0, %eax
23089         leal    foo@tlsgd(,%ebx,1), %eax
23090         leal    foo@tlsldm(%ebx), %eax
23091         leal    foo@dtpoff(%eax), %edx
23092         movl    foo@gottpoff(%ebx), %eax
23093         subl    foo@gottpoff(%ebx), %eax
23094         addl    foo@gotntpoff(%ebx), %eax
23095         movl    foo@indntpoff, %eax
23096         movl    \$foo@tpoff, %eax
23097         subl    \$foo@tpoff, %eax
23098         leal    foo@ntpoff(%ecx), %eax"
23099     ;;
23100   x86_64-*-*)
23101     conftest_s='
23102         .section ".tdata","awT",@progbits
23103 foo:    .long   25
23104         .text
23105         movq    %fs:0, %rax
23106         leaq    foo@TLSGD(%rip), %rdi
23107         leaq    foo@TLSLD(%rip), %rdi
23108         leaq    foo@DTPOFF(%rax), %rdx
23109         movq    foo@GOTTPOFF(%rip), %rax
23110         movq    $foo@TPOFF, %rax'
23111         tls_first_major=2
23112         tls_first_minor=14
23113         tls_as_opt=--fatal-warnings
23114         ;;
23115   ia64-*-*)
23116     conftest_s='
23117         .section ".tdata","awT",@progbits
23118 foo:    data8   25
23119         .text
23120         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23121         addl    r17 = @ltoff(@dtprel(foo#)), gp
23122         addl    r18 = @ltoff(@tprel(foo#)), gp
23123         addl    r19 = @dtprel(foo#), gp
23124         adds    r21 = @dtprel(foo#), r13
23125         movl    r23 = @dtprel(foo#)
23126         addl    r20 = @tprel(foo#), gp
23127         adds    r22 = @tprel(foo#), r13
23128         movl    r24 = @tprel(foo#)'
23129         tls_first_major=2
23130         tls_first_minor=13
23131         tls_as_opt=--fatal-warnings
23132         ;;
23133   mips*-*-*)
23134     conftest_s='
23135         .section .tdata,"awT",@progbits
23136 x:
23137         .word 2
23138         .text
23139         addiu $4, $28, %tlsgd(x)
23140         addiu $4, $28, %tlsldm(x)
23141         lui $4, %dtprel_hi(x)
23142         addiu $4, $4, %dtprel_lo(x)
23143         lw $4, %gottprel(x)($28)
23144         lui $4, %tprel_hi(x)
23145         addiu $4, $4, %tprel_lo(x)'
23146         tls_first_major=2
23147         tls_first_minor=16
23148         tls_as_opt='-32 --fatal-warnings'
23149         ;;
23150   m68k-*-*)
23151     conftest_s='
23152         .section .tdata,"awT",@progbits
23153 x:
23154         .word 2
23155         .text
23156 foo:
23157         move.l x@TLSGD(%a5),%a0
23158         move.l x@TLSLDM(%a5),%a0
23159         move.l x@TLSLDO(%a5),%a0
23160         move.l x@TLSIE(%a5),%a0
23161         move.l x@TLSLE(%a5),%a0'
23162         tls_first_major=2
23163         tls_first_minor=19
23164         tls_as_opt='--fatal-warnings'
23165         ;;
23166   powerpc-*-*)
23167     conftest_s='
23168         .section ".tdata","awT",@progbits
23169         .align 2
23170 ld0:    .space 4
23171 ld1:    .space 4
23172 x1:     .space 4
23173 x2:     .space 4
23174 x3:     .space 4
23175         .text
23176         addi 3,31,ld0@got@tlsgd
23177         bl __tls_get_addr
23178         addi 3,31,x1@got@tlsld
23179         bl __tls_get_addr
23180         addi 9,3,x1@dtprel
23181         addis 9,3,x2@dtprel@ha
23182         addi 9,9,x2@dtprel@l
23183         lwz 9,x3@got@tprel(31)
23184         add 9,9,x@tls
23185         addi 9,2,x1@tprel
23186         addis 9,2,x2@tprel@ha
23187         addi 9,9,x2@tprel@l'
23188         tls_first_major=2
23189         tls_first_minor=14
23190         tls_as_opt="-a32 --fatal-warnings"
23191         ;;
23192   powerpc64-*-*)
23193     conftest_s='
23194         .section ".tdata","awT",@progbits
23195         .align 3
23196 ld0:    .space 8
23197 ld1:    .space 8
23198 x1:     .space 8
23199 x2:     .space 8
23200 x3:     .space 8
23201         .text
23202         addi 3,2,ld0@got@tlsgd
23203         bl .__tls_get_addr
23204         nop
23205         addi 3,2,ld1@toc
23206         bl .__tls_get_addr
23207         nop
23208         addi 3,2,x1@got@tlsld
23209         bl .__tls_get_addr
23210         nop
23211         addi 9,3,x1@dtprel
23212         bl .__tls_get_addr
23213         nop
23214         addis 9,3,x2@dtprel@ha
23215         addi 9,9,x2@dtprel@l
23216         bl .__tls_get_addr
23217         nop
23218         ld 9,x3@got@dtprel(2)
23219         add 9,9,3
23220         bl .__tls_get_addr
23221         nop'
23222         tls_first_major=2
23223         tls_first_minor=14
23224         tls_as_opt="-a64 --fatal-warnings"
23225         ;;
23226   s390-*-*)
23227     conftest_s='
23228         .section ".tdata","awT",@progbits
23229 foo:    .long   25
23230         .text
23231         .long   foo@TLSGD
23232         .long   foo@TLSLDM
23233         .long   foo@DTPOFF
23234         .long   foo@NTPOFF
23235         .long   foo@GOTNTPOFF
23236         .long   foo@INDNTPOFF
23237         l       %r1,foo@GOTNTPOFF(%r12)
23238         l       %r1,0(%r1):tls_load:foo
23239         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23240         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23241         tls_first_major=2
23242         tls_first_minor=14
23243         tls_as_opt="-m31 --fatal-warnings"
23244         ;;
23245   s390x-*-*)
23246     conftest_s='
23247         .section ".tdata","awT",@progbits
23248 foo:    .long   25
23249         .text
23250         .quad   foo@TLSGD
23251         .quad   foo@TLSLDM
23252         .quad   foo@DTPOFF
23253         .quad   foo@NTPOFF
23254         .quad   foo@GOTNTPOFF
23255         lg      %r1,foo@GOTNTPOFF(%r12)
23256         larl    %r1,foo@INDNTPOFF
23257         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23258         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23259         tls_first_major=2
23260         tls_first_minor=14
23261         tls_as_opt="-m64 -Aesame --fatal-warnings"
23262         ;;
23263   sh-*-* | sh[34]-*-*)
23264     conftest_s='
23265         .section ".tdata","awT",@progbits
23266 foo:    .long   25
23267         .text
23268         .long   foo@TLSGD
23269         .long   foo@TLSLDM
23270         .long   foo@DTPOFF
23271         .long   foo@GOTTPOFF
23272         .long   foo@TPOFF'
23273         tls_first_major=2
23274         tls_first_minor=13
23275         tls_as_opt=--fatal-warnings
23276         ;;
23277   sparc*-*-*)
23278     case "$target" in
23279       sparc*-sun-solaris2.*)
23280         on_solaris=yes
23281         tga_func=__tls_get_addr
23282         ;;
23283       *)
23284         on_solaris=no
23285         ;;
23286     esac
23287     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23288       conftest_s='
23289         .section ".tdata",#alloc,#write,#tls'
23290         tls_first_major=0
23291         tls_first_minor=0
23292     else
23293       conftest_s='
23294         .section ".tdata","awT",@progbits'
23295         tls_first_major=2
23296         tls_first_minor=14
23297         tls_as_opt="-32 --fatal-warnings"
23298     fi
23299     conftest_s="$conftest_s
23300 foo:    .long   25
23301         .text
23302         sethi   %tgd_hi22(foo), %o0
23303         add     %o0, %tgd_lo10(foo), %o1
23304         add     %l7, %o1, %o0, %tgd_add(foo)
23305         call    __tls_get_addr, %tgd_call(foo)
23306         sethi   %tldm_hi22(foo), %l1
23307         add     %l1, %tldm_lo10(foo), %l2
23308         add     %l7, %l2, %o0, %tldm_add(foo)
23309         call    __tls_get_addr, %tldm_call(foo)
23310         sethi   %tldo_hix22(foo), %l3
23311         xor     %l3, %tldo_lox10(foo), %l4
23312         add     %o0, %l4, %l5, %tldo_add(foo)
23313         sethi   %tie_hi22(foo), %o3
23314         add     %o3, %tie_lo10(foo), %o3
23315         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23316         add     %g7, %o2, %o4, %tie_add(foo)
23317         sethi   %tle_hix22(foo), %l1
23318         xor     %l1, %tle_lox10(foo), %o5
23319         ld      [%g7 + %o5], %o1"
23320         ;;
23321   xtensa*-*-*)
23322     conftest_s='
23323         .section ".tdata","awT",@progbits
23324 foo:    .long   25
23325         .text
23326         movi    a8, foo@TLSFUNC
23327         movi    a10, foo@TLSARG
23328         callx8.tls a8, foo@TLSCALL'
23329         tls_first_major=2
23330         tls_first_minor=19
23331         ;;
23332 esac
23333 set_have_as_tls=no
23334 if test "x$enable_tls" = xno ; then
23335   : # TLS explicitly disabled.
23336 elif test "x$enable_tls" = xyes ; then
23337   set_have_as_tls=yes # TLS explicitly enabled.
23338 elif test -z "$tls_first_major"; then
23339   : # If we don't have a check, assume no support.
23340 else
23341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23342 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23343 if test "${gcc_cv_as_tls+set}" = set; then :
23344   $as_echo_n "(cached) " >&6
23345 else
23346   gcc_cv_as_tls=no
23347     if test $in_tree_gas = yes; then
23348     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23349   then gcc_cv_as_tls=yes
23350 fi
23351   elif test x$gcc_cv_as != x; then
23352     $as_echo "$conftest_s" > conftest.s
23353     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23354   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23355   (eval $ac_try) 2>&5
23356   ac_status=$?
23357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23358   test $ac_status = 0; }; }
23359     then
23360         gcc_cv_as_tls=yes
23361     else
23362       echo "configure: failed program was" >&5
23363       cat conftest.s >&5
23364     fi
23365     rm -f conftest.o conftest.s
23366   fi
23367 fi
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23369 $as_echo "$gcc_cv_as_tls" >&6; }
23370 if test $gcc_cv_as_tls = yes; then
23371   set_have_as_tls=yes
23372 fi
23373 fi
23374 case "$target" in
23375   *-*-irix6*)
23376     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23377     # with TLS support are in use, native TLS cannot work.
23378     set_have_as_tls=no
23379     ;;
23380   *-*-osf*)
23381     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23382     # gld with TLS support are in use, native TLS cannot work.
23383     set_have_as_tls=no
23384     ;;
23385   # TLS was introduced in the Solaris 9 FCS release and backported to
23386   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
23387   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23388   # ld and GCC don't support any longer.
23389   *-*-solaris2.*)
23390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23391 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23392     ld_tls_support=no
23393     # Check ld and ld.so.1 TLS support.
23394     if echo "$ld_ver" | grep GNU > /dev/null; then
23395       # Assume all interesting versions of GNU ld have TLS support.
23396       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23397       ld_tls_support=yes
23398     else
23399       case "$target" in
23400         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23401         i?86-*-solaris2.8)
23402           min_tls_ld_vers_minor=280
23403           ;;
23404         # Solaris 8/SPARC ld has TLS support since version 1.272.
23405         sparc*-*-solaris2.8)
23406           min_tls_ld_vers_minor=272
23407           ;;
23408         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23409         i?86-*-solaris2.9)
23410           min_tls_ld_vers_minor=374
23411           ;;
23412         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23413         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23414           min_tls_ld_vers_minor=343
23415           ;;
23416       esac
23417       if test "$ld_vers_major" -gt 1 || \
23418         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23419         ld_tls_support=yes
23420       else
23421         set_have_as_tls=no
23422       fi
23423     fi
23424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23425 $as_echo "$ld_tls_support" >&6; }
23426
23427     save_LIBS="$LIBS"
23428     save_LDFLAGS="$LDFLAGS"
23429     LIBS=
23430     LDFLAGS=
23431
23432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23433 $as_echo_n "checking alternate thread library... " >&6; }
23434     case "$target" in
23435       # TLS support was backported to Solaris 8 patches, but only lives in
23436       # the alternate thread library which became the default in Solaris 9.
23437       # We want to always use that, irrespective of TLS support.
23438       *-*-solaris2.8)
23439         # Take multilib subdir into account.  There's no spec to handle
23440         # this.  The 64 symlink exists since Solaris 8.
23441         lwp_dir=/usr/lib/lwp
23442         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23443         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23444         ;;
23445       *-*-solaris2*)
23446         lwp_dir="none"
23447         lwp_spec=""
23448         ;;
23449     esac
23450     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23451
23452 cat >>confdefs.h <<_ACEOF
23453 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23454 _ACEOF
23455
23456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23457 $as_echo "$lwp_dir" >&6; }
23458
23459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23460 $as_echo_n "checking library containing $tga_func... " >&6; }
23461     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23462     # (32-bit x86) only lived in libthread, so check for that.  Keep
23463     # set_have_as_tls if found, disable if not.
23464     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23466 $as_echo_n "checking for library containing $tga_func... " >&6; }
23467 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23468   $as_echo_n "(cached) " >&6
23469 else
23470   ac_func_search_save_LIBS=$LIBS
23471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23472 /* end confdefs.h.  */
23473
23474 /* Override any GCC internal prototype to avoid an error.
23475    Use char because int might match the return type of a GCC
23476    builtin and then its argument prototype would still apply.  */
23477 #ifdef __cplusplus
23478 extern "C"
23479 #endif
23480 char $tga_func ();
23481 int
23482 main ()
23483 {
23484 return $tga_func ();
23485   ;
23486   return 0;
23487 }
23488 _ACEOF
23489 for ac_lib in '' thread; do
23490   if test -z "$ac_lib"; then
23491     ac_res="none required"
23492   else
23493     ac_res=-l$ac_lib
23494     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23495   fi
23496   if ac_fn_c_try_link "$LINENO"; then :
23497   eval "$as_ac_Search=\$ac_res"
23498 fi
23499 rm -f core conftest.err conftest.$ac_objext \
23500     conftest$ac_exeext
23501   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23502   break
23503 fi
23504 done
23505 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23506
23507 else
23508   eval "$as_ac_Search=no"
23509 fi
23510 rm conftest.$ac_ext
23511 LIBS=$ac_func_search_save_LIBS
23512 fi
23513 eval ac_res=\$$as_ac_Search
23514                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23515 $as_echo "$ac_res" >&6; }
23516 eval ac_res=\$$as_ac_Search
23517 if test "$ac_res" != no; then :
23518   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23519
23520 else
23521   set_have_as_tls=no
23522 fi
23523
23524     # Clear LIBS if we cannot support TLS.
23525     if test $set_have_as_tls = no; then
23526       LIBS=
23527     fi
23528     # Always define LIB_TLS_SPEC, even without TLS support.
23529
23530 cat >>confdefs.h <<_ACEOF
23531 #define LIB_TLS_SPEC "$LIBS"
23532 _ACEOF
23533
23534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23535 $as_echo "$LIBS" >&6; }
23536
23537     LIBS="$save_LIBS"
23538     LDFLAGS="$save_LDFLAGS"
23539     ;;
23540 esac
23541 if test $set_have_as_tls = yes ; then
23542
23543 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23544
23545 fi
23546
23547 # Target-specific assembler checks.
23548
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23550 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23551 gcc_cv_ld_static_dynamic=no
23552 gcc_cv_ld_static_option='-Bstatic'
23553 gcc_cv_ld_dynamic_option='-Bdynamic'
23554 if test $in_tree_ld = yes ; then
23555   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
23556     gcc_cv_ld_static_dynamic=yes
23557   fi
23558 elif test x$gcc_cv_ld != x; then
23559   # Check if linker supports -Bstatic/-Bdynamic option
23560   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23561      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23562       gcc_cv_ld_static_dynamic=yes
23563   else
23564     case "$target" in
23565       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23566       alpha*-dec-osf*)
23567         gcc_cv_ld_static_dynamic=yes
23568         gcc_cv_ld_static_option="-noso"
23569         gcc_cv_ld_dynamic_option="-so_archive"
23570         ;;
23571       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23572       mips-sgi-irix6*)
23573         gcc_cv_ld_static_dynamic=yes
23574         ;;
23575       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23576       *-*-solaris2*)
23577         gcc_cv_ld_static_dynamic=yes
23578         ;;
23579     esac
23580   fi
23581 fi
23582 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23583
23584 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23585
23586
23587 cat >>confdefs.h <<_ACEOF
23588 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23589 _ACEOF
23590
23591
23592 cat >>confdefs.h <<_ACEOF
23593 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23594 _ACEOF
23595
23596 fi
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23598 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23599
23600 if test x"$demangler_in_ld" = xyes; then
23601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23602 $as_echo_n "checking linker --demangle support... " >&6; }
23603   gcc_cv_ld_demangle=no
23604   if test $in_tree_ld = yes; then
23605     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 \
23606       gcc_cv_ld_demangle=yes
23607     fi
23608   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23609     # Check if the GNU linker supports --demangle option
23610     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23611       gcc_cv_ld_demangle=yes
23612     fi
23613   fi
23614   if test x"$gcc_cv_ld_demangle" = xyes; then
23615
23616 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23617
23618   fi
23619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23620 $as_echo "$gcc_cv_ld_demangle" >&6; }
23621 fi
23622
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23624 $as_echo_n "checking linker plugin support... " >&6; }
23625 gcc_cv_lto_plugin=0
23626 if test -f liblto_plugin.la; then
23627   save_ld_ver="$ld_ver"
23628   save_ld_vers_major="$ld_vers_major"
23629   save_ld_vers_minor="$ld_vers_minor"
23630   save_ld_is_gold="$ld_is_gold"
23631
23632   ld_is_gold=no
23633
23634   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23635     ld_ver="GNU ld"
23636     # FIXME: ld_is_gold?
23637     ld_vers_major="$gcc_cv_gld_major_version"
23638     ld_vers_minor="$gcc_cv_gld_minor_version"
23639   else
23640     # Determine plugin linker version.
23641     # FIXME: Partial duplicate from above, generalize.
23642     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23643     if echo "$ld_ver" | grep GNU > /dev/null; then
23644       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23645         ld_is_gold=yes
23646         ld_vers=`echo $ld_ver | sed -n \
23647             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23648       else
23649         ld_vers=`echo $ld_ver | sed -n \
23650             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23651       fi
23652       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23653       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23654     fi
23655   fi
23656
23657   # Determine plugin support.
23658   if echo "$ld_ver" | grep GNU > /dev/null; then
23659     # Require GNU ld or gold 2.21+ for plugin support by default.
23660     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23661       gcc_cv_lto_plugin=2
23662     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23663     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23664       gcc_cv_lto_plugin=1
23665     fi
23666   fi
23667
23668   ld_ver="$save_ld_ver"
23669   ld_vers_major="$save_ld_vers_major"
23670   ld_vers_minor="$save_ld_vers_minor"
23671   ld_is_gold="$save_ld_is_gold"
23672 fi
23673
23674 cat >>confdefs.h <<_ACEOF
23675 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23676 _ACEOF
23677
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23679 $as_echo "$gcc_cv_lto_plugin" >&6; }
23680
23681 case "$target" in
23682   # All TARGET_ABI_OSF targets.
23683   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23684     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23685 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23686 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23687   $as_echo_n "(cached) " >&6
23688 else
23689   gcc_cv_as_alpha_explicit_relocs=no
23690     if test $in_tree_gas = yes; then
23691     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23692   then gcc_cv_as_alpha_explicit_relocs=yes
23693 fi
23694   elif test x$gcc_cv_as != x; then
23695     $as_echo '  .set nomacro
23696         .text
23697         extbl   $3, $2, $3      !lituse_bytoff!1
23698         ldq     $2, a($29)      !literal!1
23699         ldq     $4, b($29)      !literal!2
23700         ldq_u   $3, 0($2)       !lituse_base!1
23701         ldq     $27, f($29)     !literal!5
23702         jsr     $26, ($27), f   !lituse_jsr!5
23703         ldah    $29, 0($26)     !gpdisp!3
23704         lda     $0, c($29)      !gprel
23705         ldah    $1, d($29)      !gprelhigh
23706         lda     $1, d($1)       !gprellow
23707         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23708     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23709   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23710   (eval $ac_try) 2>&5
23711   ac_status=$?
23712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23713   test $ac_status = 0; }; }
23714     then
23715         gcc_cv_as_alpha_explicit_relocs=yes
23716     else
23717       echo "configure: failed program was" >&5
23718       cat conftest.s >&5
23719     fi
23720     rm -f conftest.o conftest.s
23721   fi
23722 fi
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23724 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23725 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23726
23727 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23728
23729 fi
23730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23731 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23732 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23733   $as_echo_n "(cached) " >&6
23734 else
23735   gcc_cv_as_alpha_jsrdirect_relocs=no
23736     if test $in_tree_gas = yes; then
23737     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23738   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23739 fi
23740   elif test x$gcc_cv_as != x; then
23741     $as_echo '  .set nomacro
23742         .text
23743         ldq     $27, a($29)     !literal!1
23744         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23745     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23746   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23747   (eval $ac_try) 2>&5
23748   ac_status=$?
23749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23750   test $ac_status = 0; }; }
23751     then
23752         gcc_cv_as_alpha_jsrdirect_relocs=yes
23753     else
23754       echo "configure: failed program was" >&5
23755       cat conftest.s >&5
23756     fi
23757     rm -f conftest.o conftest.s
23758   fi
23759 fi
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23761 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23762 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23763
23764 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23765
23766 fi
23767     ;;
23768
23769   cris-*-*)
23770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23771 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23772 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23773   $as_echo_n "(cached) " >&6
23774 else
23775   gcc_cv_as_cris_no_mul_bug=no
23776     if test $in_tree_gas = yes; then
23777     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23778   then gcc_cv_as_cris_no_mul_bug=yes
23779 fi
23780   elif test x$gcc_cv_as != x; then
23781     $as_echo '.text' > conftest.s
23782     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23783   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23784   (eval $ac_try) 2>&5
23785   ac_status=$?
23786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23787   test $ac_status = 0; }; }
23788     then
23789         gcc_cv_as_cris_no_mul_bug=yes
23790     else
23791       echo "configure: failed program was" >&5
23792       cat conftest.s >&5
23793     fi
23794     rm -f conftest.o conftest.s
23795   fi
23796 fi
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23798 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23799 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23800
23801 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23802
23803 fi
23804     ;;
23805
23806   sparc*-*-*)
23807     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23808 $as_echo_n "checking assembler for .register... " >&6; }
23809 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23810   $as_echo_n "(cached) " >&6
23811 else
23812   gcc_cv_as_sparc_register_op=no
23813   if test x$gcc_cv_as != x; then
23814     $as_echo '.register %g2, #scratch' > conftest.s
23815     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23816   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23817   (eval $ac_try) 2>&5
23818   ac_status=$?
23819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23820   test $ac_status = 0; }; }
23821     then
23822         gcc_cv_as_sparc_register_op=yes
23823     else
23824       echo "configure: failed program was" >&5
23825       cat conftest.s >&5
23826     fi
23827     rm -f conftest.o conftest.s
23828   fi
23829 fi
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23831 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23832 if test $gcc_cv_as_sparc_register_op = yes; then
23833
23834 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23835
23836 fi
23837
23838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23839 $as_echo_n "checking assembler for -relax option... " >&6; }
23840 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23841   $as_echo_n "(cached) " >&6
23842 else
23843   gcc_cv_as_sparc_relax=no
23844   if test x$gcc_cv_as != x; then
23845     $as_echo '.text' > conftest.s
23846     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23847   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23848   (eval $ac_try) 2>&5
23849   ac_status=$?
23850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23851   test $ac_status = 0; }; }
23852     then
23853         gcc_cv_as_sparc_relax=yes
23854     else
23855       echo "configure: failed program was" >&5
23856       cat conftest.s >&5
23857     fi
23858     rm -f conftest.o conftest.s
23859   fi
23860 fi
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23862 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23863 if test $gcc_cv_as_sparc_relax = yes; then
23864
23865 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23866
23867 fi
23868
23869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23870 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23871 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23872   $as_echo_n "(cached) " >&6
23873 else
23874   gcc_cv_as_sparc_gotdata_op=no
23875   if test x$gcc_cv_as != x; then
23876     $as_echo '.text
23877 .align 4
23878 foo:
23879         nop
23880 bar:
23881         sethi %gdop_hix22(foo), %g1
23882         xor    %g1, %gdop_lox10(foo), %g1
23883         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23884     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23885   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23886   (eval $ac_try) 2>&5
23887   ac_status=$?
23888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23889   test $ac_status = 0; }; }
23890     then
23891         if test x$gcc_cv_ld != x \
23892        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23893          if test x$gcc_cv_objdump != x; then
23894            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23895               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23896                gcc_cv_as_sparc_gotdata_op=no
23897            else
23898                gcc_cv_as_sparc_gotdata_op=yes
23899            fi
23900          fi
23901        fi
23902        rm -f conftest
23903     else
23904       echo "configure: failed program was" >&5
23905       cat conftest.s >&5
23906     fi
23907     rm -f conftest.o conftest.s
23908   fi
23909 fi
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23911 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23912 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23913
23914 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23915
23916 fi
23917
23918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23919 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23920 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23921   $as_echo_n "(cached) " >&6
23922 else
23923   gcc_cv_as_sparc_ua_pcrel=no
23924   if test x$gcc_cv_as != x; then
23925     $as_echo '.text
23926 foo:
23927         nop
23928 .data
23929 .align 4
23930 .byte 0
23931 .uaword %r_disp32(foo)' > conftest.s
23932     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23933   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23934   (eval $ac_try) 2>&5
23935   ac_status=$?
23936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23937   test $ac_status = 0; }; }
23938     then
23939         if test x$gcc_cv_ld != x \
23940        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23941          gcc_cv_as_sparc_ua_pcrel=yes
23942        fi
23943        rm -f conftest
23944     else
23945       echo "configure: failed program was" >&5
23946       cat conftest.s >&5
23947     fi
23948     rm -f conftest.o conftest.s
23949   fi
23950 fi
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23952 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23953 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23954
23955 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23956
23957
23958       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23959 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23960 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23961   $as_echo_n "(cached) " >&6
23962 else
23963   gcc_cv_as_sparc_ua_pcrel_hidden=no
23964   if test x$gcc_cv_as != x; then
23965     $as_echo '.data
23966 .align 4
23967 .byte 0x31
23968 .uaword %r_disp32(foo)
23969 .byte 0x32, 0x33, 0x34
23970 .global foo
23971 .hidden foo
23972 foo:
23973 .skip 4' > conftest.s
23974     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23975   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23976   (eval $ac_try) 2>&5
23977   ac_status=$?
23978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23979   test $ac_status = 0; }; }
23980     then
23981         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23982          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23983          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23984             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23985             if $gcc_cv_objdump -R conftest 2> /dev/null \
23986                | grep 'DISP32' > /dev/null 2>&1; then
23987                 :
23988             else
23989                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23990             fi
23991          fi
23992          rm -f conftest
23993     else
23994       echo "configure: failed program was" >&5
23995       cat conftest.s >&5
23996     fi
23997     rm -f conftest.o conftest.s
23998   fi
23999 fi
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24001 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24002 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24003
24004 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24005
24006 fi
24007
24008 fi # unaligned pcrel relocs
24009
24010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24011 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24012 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24013   $as_echo_n "(cached) " >&6
24014 else
24015   gcc_cv_as_sparc_offsetable_lo10=no
24016   if test x$gcc_cv_as != x; then
24017     $as_echo '.text
24018         or %g1, %lo(ab) + 12, %g1
24019         or %g1, %lo(ab + 12), %g1' > conftest.s
24020     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24021   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24022   (eval $ac_try) 2>&5
24023   ac_status=$?
24024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24025   test $ac_status = 0; }; }
24026     then
24027         if test x$gcc_cv_objdump != x \
24028        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24029           | grep ' 82106000 82106000' > /dev/null 2>&1; then
24030          gcc_cv_as_sparc_offsetable_lo10=yes
24031        fi
24032     else
24033       echo "configure: failed program was" >&5
24034       cat conftest.s >&5
24035     fi
24036     rm -f conftest.o conftest.s
24037   fi
24038 fi
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24040 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24041 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24042
24043 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24044
24045 fi
24046
24047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24048 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24049 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24050   $as_echo_n "(cached) " >&6
24051 else
24052   gcc_cv_as_sparc_fmaf=no
24053   if test x$gcc_cv_as != x; then
24054     $as_echo '.text
24055        .align 4
24056        fmaddd %f0, %f2, %f4, %f6
24057        addxccc %g1, %g2, %g3
24058        fsrl32 %f2, %f4, %f8
24059        fnaddd %f10, %f12, %f14' > conftest.s
24060     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24061   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24062   (eval $ac_try) 2>&5
24063   ac_status=$?
24064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24065   test $ac_status = 0; }; }
24066     then
24067         gcc_cv_as_sparc_fmaf=yes
24068     else
24069       echo "configure: failed program was" >&5
24070       cat conftest.s >&5
24071     fi
24072     rm -f conftest.o conftest.s
24073   fi
24074 fi
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24076 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24077 if test $gcc_cv_as_sparc_fmaf = yes; then
24078
24079 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24080
24081 fi
24082     ;;
24083
24084   i[34567]86-*-* | x86_64-*-*)
24085     case $target_os in
24086       cygwin*)
24087         # Full C++ conformance when using a shared libstdc++-v3 requires some
24088         # support from the Cygwin DLL, which in more recent versions exports
24089         # wrappers to aid in interposing and redirecting operators new, delete,
24090         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24091         # are configuring for a version of Cygwin that exports the wrappers.
24092         if test x$host = x$target; then
24093           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24094 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24095   gcc_ac_cygwin_dll_wrappers=yes
24096 else
24097   gcc_ac_cygwin_dll_wrappers=no
24098 fi
24099
24100         else
24101           # Can't check presence of libc functions during cross-compile, so
24102           # we just have to assume we're building for an up-to-date target.
24103           gcc_ac_cygwin_dll_wrappers=yes
24104         fi
24105
24106 cat >>confdefs.h <<_ACEOF
24107 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24108 _ACEOF
24109
24110     esac
24111     case $target_os in
24112       cygwin* | pe | mingw32*)
24113         # Recent binutils allows the three-operand form of ".comm" on PE.  This
24114         # definition is used unconditionally to initialise the default state of
24115         # the target option variable that governs usage of the feature.
24116         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24117 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24118 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24119   $as_echo_n "(cached) " >&6
24120 else
24121   gcc_cv_as_comm_has_align=no
24122     if test $in_tree_gas = yes; then
24123     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24124   then gcc_cv_as_comm_has_align=yes
24125 fi
24126   elif test x$gcc_cv_as != x; then
24127     $as_echo '.comm foo,1,32' > conftest.s
24128     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24129   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130   (eval $ac_try) 2>&5
24131   ac_status=$?
24132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133   test $ac_status = 0; }; }
24134     then
24135         gcc_cv_as_comm_has_align=yes
24136     else
24137       echo "configure: failed program was" >&5
24138       cat conftest.s >&5
24139     fi
24140     rm -f conftest.o conftest.s
24141   fi
24142 fi
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24144 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24145
24146
24147 cat >>confdefs.h <<_ACEOF
24148 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24149 _ACEOF
24150
24151         # Used for DWARF 2 in PE
24152         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24153 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24154 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24155   $as_echo_n "(cached) " >&6
24156 else
24157   gcc_cv_as_ix86_pe_secrel32=no
24158     if test $in_tree_gas = yes; then
24159     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24160   then gcc_cv_as_ix86_pe_secrel32=yes
24161 fi
24162   elif test x$gcc_cv_as != x; then
24163     $as_echo '.text
24164 foo:    nop
24165 .data
24166         .secrel32 foo' > conftest.s
24167     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24168   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24169   (eval $ac_try) 2>&5
24170   ac_status=$?
24171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24172   test $ac_status = 0; }; }
24173     then
24174         if test x$gcc_cv_ld != x \
24175            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24176              gcc_cv_as_ix86_pe_secrel32=yes
24177            fi
24178            rm -f conftest
24179     else
24180       echo "configure: failed program was" >&5
24181       cat conftest.s >&5
24182     fi
24183     rm -f conftest.o conftest.s
24184   fi
24185 fi
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24187 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24188 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24189
24190 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24191
24192 fi
24193         # Test if the assembler supports the extended form of the .section
24194         # directive that specifies section alignment.  LTO support uses this,
24195         # but normally only after installation, so we warn but don't fail the
24196         # configure if LTO is enabled but the assembler does not support it.
24197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24198 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24199 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24200   $as_echo_n "(cached) " >&6
24201 else
24202   gcc_cv_as_section_has_align=no
24203     if test $in_tree_gas = yes; then
24204     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24205   then gcc_cv_as_section_has_align=yes
24206 fi
24207   elif test x$gcc_cv_as != x; then
24208     $as_echo '.section lto_test,"dr0"' > conftest.s
24209     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24210   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24211   (eval $ac_try) 2>&5
24212   ac_status=$?
24213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24214   test $ac_status = 0; }; }
24215     then
24216         gcc_cv_as_section_has_align=yes
24217     else
24218       echo "configure: failed program was" >&5
24219       cat conftest.s >&5
24220     fi
24221     rm -f conftest.o conftest.s
24222   fi
24223 fi
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24225 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24226
24227         if test x$gcc_cv_as_section_has_align != xyes; then
24228           case ",$enable_languages," in
24229             *,lto,*)
24230               { $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
24231 $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;}
24232               ;;
24233           esac
24234         fi
24235         # Test if the assembler supports the section flag 'e' for specifying
24236         # an excluded section.
24237         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24238 $as_echo_n "checking assembler for .section with e... " >&6; }
24239 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24240   $as_echo_n "(cached) " >&6
24241 else
24242   gcc_cv_as_section_has_e=no
24243     if test $in_tree_gas = yes; then
24244     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24245   then gcc_cv_as_section_has_e=yes
24246 fi
24247   elif test x$gcc_cv_as != x; then
24248     $as_echo '.section foo1,"e"
24249 .byte 0,0,0,0' > 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_section_has_e=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_section_has_e" >&5
24266 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24267
24268
24269 cat >>confdefs.h <<_ACEOF
24270 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24271 _ACEOF
24272
24273         ;;
24274     esac
24275
24276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24277 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24278 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24279   $as_echo_n "(cached) " >&6
24280 else
24281   gcc_cv_as_ix86_filds=no
24282   if test x$gcc_cv_as != x; then
24283     $as_echo 'filds mem; fists mem' > conftest.s
24284     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24285   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24286   (eval $ac_try) 2>&5
24287   ac_status=$?
24288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24289   test $ac_status = 0; }; }
24290     then
24291         gcc_cv_as_ix86_filds=yes
24292     else
24293       echo "configure: failed program was" >&5
24294       cat conftest.s >&5
24295     fi
24296     rm -f conftest.o conftest.s
24297   fi
24298 fi
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24300 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24301 if test $gcc_cv_as_ix86_filds = yes; then
24302
24303 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24304
24305 fi
24306
24307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24308 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24309 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24310   $as_echo_n "(cached) " >&6
24311 else
24312   gcc_cv_as_ix86_fildq=no
24313   if test x$gcc_cv_as != x; then
24314     $as_echo 'fildq mem; fistpq mem' > conftest.s
24315     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24316   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24317   (eval $ac_try) 2>&5
24318   ac_status=$?
24319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24320   test $ac_status = 0; }; }
24321     then
24322         gcc_cv_as_ix86_fildq=yes
24323     else
24324       echo "configure: failed program was" >&5
24325       cat conftest.s >&5
24326     fi
24327     rm -f conftest.o conftest.s
24328   fi
24329 fi
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24331 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24332 if test $gcc_cv_as_ix86_fildq = yes; then
24333
24334 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24335
24336 fi
24337
24338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24339 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24340 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24341   $as_echo_n "(cached) " >&6
24342 else
24343   gcc_cv_as_ix86_cmov_sun_syntax=no
24344   if test x$gcc_cv_as != x; then
24345     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24346     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24347   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24348   (eval $ac_try) 2>&5
24349   ac_status=$?
24350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24351   test $ac_status = 0; }; }
24352     then
24353         gcc_cv_as_ix86_cmov_sun_syntax=yes
24354     else
24355       echo "configure: failed program was" >&5
24356       cat conftest.s >&5
24357     fi
24358     rm -f conftest.o conftest.s
24359   fi
24360 fi
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24362 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24363 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24364
24365 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24366
24367 fi
24368
24369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24370 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24371 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24372   $as_echo_n "(cached) " >&6
24373 else
24374   gcc_cv_as_ix86_ffreep=no
24375   if test x$gcc_cv_as != x; then
24376     $as_echo 'ffreep %st(1)' > conftest.s
24377     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24378   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24379   (eval $ac_try) 2>&5
24380   ac_status=$?
24381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24382   test $ac_status = 0; }; }
24383     then
24384         gcc_cv_as_ix86_ffreep=yes
24385     else
24386       echo "configure: failed program was" >&5
24387       cat conftest.s >&5
24388     fi
24389     rm -f conftest.o conftest.s
24390   fi
24391 fi
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24393 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24394 if test $gcc_cv_as_ix86_ffreep = yes; then
24395
24396 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24397
24398 fi
24399
24400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24401 $as_echo_n "checking assembler for .quad directive... " >&6; }
24402 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24403   $as_echo_n "(cached) " >&6
24404 else
24405   gcc_cv_as_ix86_quad=no
24406   if test x$gcc_cv_as != x; then
24407     $as_echo '.quad 0' > conftest.s
24408     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24409   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24410   (eval $ac_try) 2>&5
24411   ac_status=$?
24412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24413   test $ac_status = 0; }; }
24414     then
24415         gcc_cv_as_ix86_quad=yes
24416     else
24417       echo "configure: failed program was" >&5
24418       cat conftest.s >&5
24419     fi
24420     rm -f conftest.o conftest.s
24421   fi
24422 fi
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24424 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24425 if test $gcc_cv_as_ix86_quad = yes; then
24426
24427 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24428
24429 fi
24430
24431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24432 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24433 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24434   $as_echo_n "(cached) " >&6
24435 else
24436   gcc_cv_as_ix86_sahf=no
24437   if test x$gcc_cv_as != x; then
24438     $as_echo '.code64
24439        sahf' > conftest.s
24440     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24441   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24442   (eval $ac_try) 2>&5
24443   ac_status=$?
24444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24445   test $ac_status = 0; }; }
24446     then
24447         gcc_cv_as_ix86_sahf=yes
24448     else
24449       echo "configure: failed program was" >&5
24450       cat conftest.s >&5
24451     fi
24452     rm -f conftest.o conftest.s
24453   fi
24454 fi
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24456 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24457 if test $gcc_cv_as_ix86_sahf = yes; then
24458
24459 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24460
24461 fi
24462
24463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24464 $as_echo_n "checking assembler for swap suffix... " >&6; }
24465 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24466   $as_echo_n "(cached) " >&6
24467 else
24468   gcc_cv_as_ix86_swap=no
24469   if test x$gcc_cv_as != x; then
24470     $as_echo 'movl.s %esp, %ebp' > conftest.s
24471     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24472   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24473   (eval $ac_try) 2>&5
24474   ac_status=$?
24475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24476   test $ac_status = 0; }; }
24477     then
24478         gcc_cv_as_ix86_swap=yes
24479     else
24480       echo "configure: failed program was" >&5
24481       cat conftest.s >&5
24482     fi
24483     rm -f conftest.o conftest.s
24484   fi
24485 fi
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24487 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24488 if test $gcc_cv_as_ix86_swap = yes; then
24489
24490 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24491
24492 fi
24493
24494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24495 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24496 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24497   $as_echo_n "(cached) " >&6
24498 else
24499   gcc_cv_as_ix86_diff_sect_delta=no
24500   if test x$gcc_cv_as != x; then
24501     $as_echo '.section .rodata
24502 .L1:
24503         .long .L2-.L1
24504         .long .L3-.L1
24505         .text
24506 .L3:    nop
24507 .L2:    nop' > conftest.s
24508     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24509   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510   (eval $ac_try) 2>&5
24511   ac_status=$?
24512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513   test $ac_status = 0; }; }
24514     then
24515         gcc_cv_as_ix86_diff_sect_delta=yes
24516     else
24517       echo "configure: failed program was" >&5
24518       cat conftest.s >&5
24519     fi
24520     rm -f conftest.o conftest.s
24521   fi
24522 fi
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24524 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24525 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24526
24527 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24528
24529 fi
24530
24531     # These two are used unconditionally by i386.[ch]; it is to be defined
24532     # to 1 if the feature is present, 0 otherwise.
24533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24534 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24535 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24536   $as_echo_n "(cached) " >&6
24537 else
24538   gcc_cv_as_ix86_gotoff_in_data=no
24539     if test $in_tree_gas = yes; then
24540     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24541   then gcc_cv_as_ix86_gotoff_in_data=yes
24542 fi
24543   elif test x$gcc_cv_as != x; then
24544     $as_echo '  .text
24545 .L0:
24546         nop
24547         .data
24548         .long .L0@GOTOFF' > conftest.s
24549     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24550   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24551   (eval $ac_try) 2>&5
24552   ac_status=$?
24553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24554   test $ac_status = 0; }; }
24555     then
24556         gcc_cv_as_ix86_gotoff_in_data=yes
24557     else
24558       echo "configure: failed program was" >&5
24559       cat conftest.s >&5
24560     fi
24561     rm -f conftest.o conftest.s
24562   fi
24563 fi
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24565 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24566
24567
24568 cat >>confdefs.h <<_ACEOF
24569 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24570 _ACEOF
24571
24572
24573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24574 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24575 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24576   $as_echo_n "(cached) " >&6
24577 else
24578   gcc_cv_as_ix86_rep_lock_prefix=no
24579   if test x$gcc_cv_as != x; then
24580     $as_echo 'rep movsl
24581          lock addl %edi, (%eax,%esi)
24582          lock orl $0, (%esp)' > conftest.s
24583     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24584   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24585   (eval $ac_try) 2>&5
24586   ac_status=$?
24587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24588   test $ac_status = 0; }; }
24589     then
24590         gcc_cv_as_ix86_rep_lock_prefix=yes
24591     else
24592       echo "configure: failed program was" >&5
24593       cat conftest.s >&5
24594     fi
24595     rm -f conftest.o conftest.s
24596   fi
24597 fi
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24599 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24600 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24601
24602 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24603
24604 fi
24605
24606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24607 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24608 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24609   $as_echo_n "(cached) " >&6
24610 else
24611   gcc_cv_as_ix86_tlsgdplt=no
24612   if test x$gcc_cv_as != x; then
24613     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24614     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24615   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24616   (eval $ac_try) 2>&5
24617   ac_status=$?
24618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24619   test $ac_status = 0; }; }
24620     then
24621         gcc_cv_as_ix86_tlsgdplt=yes
24622     else
24623       echo "configure: failed program was" >&5
24624       cat conftest.s >&5
24625     fi
24626     rm -f conftest.o conftest.s
24627   fi
24628 fi
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24630 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24631 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24632
24633 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24634
24635 fi
24636
24637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24638 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24639 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24640   $as_echo_n "(cached) " >&6
24641 else
24642   gcc_cv_as_ix86_tlsldmplt=no
24643   if test x$gcc_cv_as != x; then
24644     $as_echo 'call    tls_ld@tlsldmplt' > conftest.s
24645     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24646   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24647   (eval $ac_try) 2>&5
24648   ac_status=$?
24649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650   test $ac_status = 0; }; }
24651     then
24652         gcc_cv_as_ix86_tlsldmplt=yes
24653     else
24654       echo "configure: failed program was" >&5
24655       cat conftest.s >&5
24656     fi
24657     rm -f conftest.o conftest.s
24658   fi
24659 fi
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24661 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24662 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24663
24664 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24665
24666 fi
24667
24668     ;;
24669
24670   ia64*-*-*)
24671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24672 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24673 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24674   $as_echo_n "(cached) " >&6
24675 else
24676   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24677     if test $in_tree_gas = yes; then
24678     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24679   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24680 fi
24681   elif test x$gcc_cv_as != x; then
24682     $as_echo '  .text
24683         addl r15 = @ltoffx(x#), gp
24684         ;;
24685         ld8.mov r16 = [r15], x#' > conftest.s
24686     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24687   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24688   (eval $ac_try) 2>&5
24689   ac_status=$?
24690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24691   test $ac_status = 0; }; }
24692     then
24693         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24694     else
24695       echo "configure: failed program was" >&5
24696       cat conftest.s >&5
24697     fi
24698     rm -f conftest.o conftest.s
24699   fi
24700 fi
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24702 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24703 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24704
24705 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24706
24707 fi
24708
24709     ;;
24710
24711   powerpc*-*-*)
24712     case $target in
24713       *-*-aix*) conftest_s='    .machine "pwr5"
24714         .csect .text[PR]
24715         mfcr 3,128';;
24716       *-*-darwin*)
24717         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24718 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24719 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24720   $as_echo_n "(cached) " >&6
24721 else
24722   gcc_cv_as_machine_directive=no
24723   if test x$gcc_cv_as != x; then
24724     $as_echo '  .machine ppc7400' > conftest.s
24725     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24726   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24727   (eval $ac_try) 2>&5
24728   ac_status=$?
24729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24730   test $ac_status = 0; }; }
24731     then
24732         gcc_cv_as_machine_directive=yes
24733     else
24734       echo "configure: failed program was" >&5
24735       cat conftest.s >&5
24736     fi
24737     rm -f conftest.o conftest.s
24738   fi
24739 fi
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24741 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24742
24743         if test x$gcc_cv_as_machine_directive != xyes; then
24744           echo "*** This target requires an assembler supporting \".machine\"" >&2
24745           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24746           test x$build = x$target && exit 1
24747         fi
24748         conftest_s='    .text
24749         mfcr r3,128';;
24750       *) conftest_s='   .machine power4
24751         .text
24752         mfcr 3,128';;
24753     esac
24754
24755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24756 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24757 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24758   $as_echo_n "(cached) " >&6
24759 else
24760   gcc_cv_as_powerpc_mfcrf=no
24761     if test $in_tree_gas = yes; then
24762     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24763   then gcc_cv_as_powerpc_mfcrf=yes
24764 fi
24765   elif test x$gcc_cv_as != x; then
24766     $as_echo "$conftest_s" > conftest.s
24767     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24768   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24769   (eval $ac_try) 2>&5
24770   ac_status=$?
24771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24772   test $ac_status = 0; }; }
24773     then
24774         gcc_cv_as_powerpc_mfcrf=yes
24775     else
24776       echo "configure: failed program was" >&5
24777       cat conftest.s >&5
24778     fi
24779     rm -f conftest.o conftest.s
24780   fi
24781 fi
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24783 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24784 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24785
24786 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24787
24788 fi
24789
24790     case $target in
24791       *-*-aix*) conftest_s='    .machine "pwr5"
24792         .csect .text[PR]
24793         popcntb 3,3';;
24794       *) conftest_s='   .machine power5
24795         .text
24796         popcntb 3,3';;
24797     esac
24798
24799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24800 $as_echo_n "checking assembler for popcntb support... " >&6; }
24801 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24802   $as_echo_n "(cached) " >&6
24803 else
24804   gcc_cv_as_powerpc_popcntb=no
24805     if test $in_tree_gas = yes; then
24806     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24807   then gcc_cv_as_powerpc_popcntb=yes
24808 fi
24809   elif test x$gcc_cv_as != x; then
24810     $as_echo "$conftest_s" > conftest.s
24811     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24812   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24813   (eval $ac_try) 2>&5
24814   ac_status=$?
24815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24816   test $ac_status = 0; }; }
24817     then
24818         gcc_cv_as_powerpc_popcntb=yes
24819     else
24820       echo "configure: failed program was" >&5
24821       cat conftest.s >&5
24822     fi
24823     rm -f conftest.o conftest.s
24824   fi
24825 fi
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24827 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24828 if test $gcc_cv_as_powerpc_popcntb = yes; then
24829
24830 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24831
24832 fi
24833
24834     case $target in
24835       *-*-aix*) conftest_s='    .machine "pwr5x"
24836         .csect .text[PR]
24837         frin 1,1';;
24838       *) conftest_s='   .machine power5
24839         .text
24840         frin 1,1';;
24841     esac
24842
24843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24844 $as_echo_n "checking assembler for fp round support... " >&6; }
24845 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24846   $as_echo_n "(cached) " >&6
24847 else
24848   gcc_cv_as_powerpc_fprnd=no
24849     if test $in_tree_gas = yes; then
24850     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24851   then gcc_cv_as_powerpc_fprnd=yes
24852 fi
24853   elif test x$gcc_cv_as != x; then
24854     $as_echo "$conftest_s" > conftest.s
24855     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24856   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24857   (eval $ac_try) 2>&5
24858   ac_status=$?
24859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24860   test $ac_status = 0; }; }
24861     then
24862         gcc_cv_as_powerpc_fprnd=yes
24863     else
24864       echo "configure: failed program was" >&5
24865       cat conftest.s >&5
24866     fi
24867     rm -f conftest.o conftest.s
24868   fi
24869 fi
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24871 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24872 if test $gcc_cv_as_powerpc_fprnd = yes; then
24873
24874 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24875
24876 fi
24877
24878     case $target in
24879       *-*-aix*) conftest_s='    .machine "pwr6"
24880         .csect .text[PR]
24881         mffgpr 1,3';;
24882       *) conftest_s='   .machine power6
24883         .text
24884         mffgpr 1,3';;
24885     esac
24886
24887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24888 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24889 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24890   $as_echo_n "(cached) " >&6
24891 else
24892   gcc_cv_as_powerpc_mfpgpr=no
24893     if test $in_tree_gas = yes; then
24894     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24895   then gcc_cv_as_powerpc_mfpgpr=yes
24896 fi
24897   elif test x$gcc_cv_as != x; then
24898     $as_echo "$conftest_s" > conftest.s
24899     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24900   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24901   (eval $ac_try) 2>&5
24902   ac_status=$?
24903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24904   test $ac_status = 0; }; }
24905     then
24906         gcc_cv_as_powerpc_mfpgpr=yes
24907     else
24908       echo "configure: failed program was" >&5
24909       cat conftest.s >&5
24910     fi
24911     rm -f conftest.o conftest.s
24912   fi
24913 fi
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24915 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24916 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24917
24918 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24919
24920 fi
24921
24922     case $target in
24923       *-*-aix*) conftest_s='    .csect .text[PR]
24924 LCF..0:
24925         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24926       *-*-darwin*)
24927         conftest_s='    .text
24928 LCF0:
24929         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24930       *) conftest_s='   .text
24931 .LCF0:
24932         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24933     esac
24934
24935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24936 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24937 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24938   $as_echo_n "(cached) " >&6
24939 else
24940   gcc_cv_as_powerpc_rel16=no
24941     if test $in_tree_gas = yes; then
24942     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24943   then gcc_cv_as_powerpc_rel16=yes
24944 fi
24945   elif test x$gcc_cv_as != x; then
24946     $as_echo "$conftest_s" > conftest.s
24947     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24948   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24949   (eval $ac_try) 2>&5
24950   ac_status=$?
24951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24952   test $ac_status = 0; }; }
24953     then
24954         gcc_cv_as_powerpc_rel16=yes
24955     else
24956       echo "configure: failed program was" >&5
24957       cat conftest.s >&5
24958     fi
24959     rm -f conftest.o conftest.s
24960   fi
24961 fi
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24963 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24964 if test $gcc_cv_as_powerpc_rel16 = yes; then
24965
24966 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24967
24968 fi
24969
24970     case $target in
24971       *-*-aix*) conftest_s='    .machine "pwr6"
24972         .csect .text[PR]
24973         cmpb 3,4,5';;
24974       *) conftest_s='   .machine power6
24975         .text
24976         cmpb 3,4,5';;
24977     esac
24978
24979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24980 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24981 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24982   $as_echo_n "(cached) " >&6
24983 else
24984   gcc_cv_as_powerpc_cmpb=no
24985     if test $in_tree_gas = yes; then
24986     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24987   then gcc_cv_as_powerpc_cmpb=yes
24988 fi
24989   elif test x$gcc_cv_as != x; then
24990     $as_echo "$conftest_s" > conftest.s
24991     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24992   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24993   (eval $ac_try) 2>&5
24994   ac_status=$?
24995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24996   test $ac_status = 0; }; }
24997     then
24998         gcc_cv_as_powerpc_cmpb=yes
24999     else
25000       echo "configure: failed program was" >&5
25001       cat conftest.s >&5
25002     fi
25003     rm -f conftest.o conftest.s
25004   fi
25005 fi
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25007 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25008 if test $gcc_cv_as_powerpc_cmpb = yes; then
25009
25010 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25011
25012 fi
25013
25014     case $target in
25015       *-*-aix*) conftest_s='    .machine "pwr6"
25016         .csect .text[PR]
25017         dadd 1,2,3';;
25018       *) conftest_s='   .machine power6
25019         .text
25020         dadd 1,2,3';;
25021     esac
25022
25023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25024 $as_echo_n "checking assembler for decimal float support... " >&6; }
25025 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25026   $as_echo_n "(cached) " >&6
25027 else
25028   gcc_cv_as_powerpc_dfp=no
25029     if test $in_tree_gas = yes; then
25030     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25031   then gcc_cv_as_powerpc_dfp=yes
25032 fi
25033   elif test x$gcc_cv_as != x; then
25034     $as_echo "$conftest_s" > conftest.s
25035     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25036   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25037   (eval $ac_try) 2>&5
25038   ac_status=$?
25039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25040   test $ac_status = 0; }; }
25041     then
25042         gcc_cv_as_powerpc_dfp=yes
25043     else
25044       echo "configure: failed program was" >&5
25045       cat conftest.s >&5
25046     fi
25047     rm -f conftest.o conftest.s
25048   fi
25049 fi
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25051 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25052 if test $gcc_cv_as_powerpc_dfp = yes; then
25053
25054 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25055
25056 fi
25057
25058     case $target in
25059       *-*-aix*) conftest_s='    .machine "pwr7"
25060         .csect .text[PR]
25061         lxvd2x 1,2,3';;
25062       *) conftest_s='   .machine power7
25063         .text
25064         lxvd2x 1,2,3';;
25065     esac
25066
25067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25068 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25069 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25070   $as_echo_n "(cached) " >&6
25071 else
25072   gcc_cv_as_powerpc_vsx=no
25073     if test $in_tree_gas = yes; then
25074     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25075   then gcc_cv_as_powerpc_vsx=yes
25076 fi
25077   elif test x$gcc_cv_as != x; then
25078     $as_echo "$conftest_s" > conftest.s
25079     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25080   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25081   (eval $ac_try) 2>&5
25082   ac_status=$?
25083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25084   test $ac_status = 0; }; }
25085     then
25086         gcc_cv_as_powerpc_vsx=yes
25087     else
25088       echo "configure: failed program was" >&5
25089       cat conftest.s >&5
25090     fi
25091     rm -f conftest.o conftest.s
25092   fi
25093 fi
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25095 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25096 if test $gcc_cv_as_powerpc_vsx = yes; then
25097
25098 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25099
25100 fi
25101
25102     case $target in
25103       *-*-aix*) conftest_s='    .machine "pwr7"
25104         .csect .text[PR]
25105         popcntd 3,3';;
25106       *) conftest_s='   .machine power7
25107         .text
25108         popcntd 3,3';;
25109     esac
25110
25111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25112 $as_echo_n "checking assembler for popcntd support... " >&6; }
25113 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25114   $as_echo_n "(cached) " >&6
25115 else
25116   gcc_cv_as_powerpc_popcntd=no
25117     if test $in_tree_gas = yes; then
25118     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25119   then gcc_cv_as_powerpc_popcntd=yes
25120 fi
25121   elif test x$gcc_cv_as != x; then
25122     $as_echo "$conftest_s" > conftest.s
25123     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25124   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25125   (eval $ac_try) 2>&5
25126   ac_status=$?
25127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25128   test $ac_status = 0; }; }
25129     then
25130         gcc_cv_as_powerpc_popcntd=yes
25131     else
25132       echo "configure: failed program was" >&5
25133       cat conftest.s >&5
25134     fi
25135     rm -f conftest.o conftest.s
25136   fi
25137 fi
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25139 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25140 if test $gcc_cv_as_powerpc_popcntd = yes; then
25141
25142 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25143
25144 fi
25145
25146     case $target in
25147       *-*-aix*) conftest_s='    .csect .text[PR]
25148         lwsync';;
25149       *) conftest_s='   .text
25150         lwsync';;
25151     esac
25152
25153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25154 $as_echo_n "checking assembler for lwsync support... " >&6; }
25155 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25156   $as_echo_n "(cached) " >&6
25157 else
25158   gcc_cv_as_powerpc_lwsync=no
25159     if test $in_tree_gas = yes; then
25160     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25161   then gcc_cv_as_powerpc_lwsync=yes
25162 fi
25163   elif test x$gcc_cv_as != x; then
25164     $as_echo "$conftest_s" > conftest.s
25165     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25166   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25167   (eval $ac_try) 2>&5
25168   ac_status=$?
25169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25170   test $ac_status = 0; }; }
25171     then
25172         gcc_cv_as_powerpc_lwsync=yes
25173     else
25174       echo "configure: failed program was" >&5
25175       cat conftest.s >&5
25176     fi
25177     rm -f conftest.o conftest.s
25178   fi
25179 fi
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25181 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25182 if test $gcc_cv_as_powerpc_lwsync = yes; then
25183
25184 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25185
25186 fi
25187
25188     case $target in
25189       *-*-aix*) conftest_s='    .machine "476"
25190         .csect .text[PR]
25191         dci 0';;
25192       *) conftest_s='   .machine "476"
25193         .text
25194         dci 0';;
25195     esac
25196
25197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25198 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25199 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25200   $as_echo_n "(cached) " >&6
25201 else
25202   gcc_cv_as_powerpc_dci=no
25203     if test $in_tree_gas = yes; then
25204     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25205   then gcc_cv_as_powerpc_dci=yes
25206 fi
25207   elif test x$gcc_cv_as != x; then
25208     $as_echo "$conftest_s" > conftest.s
25209     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25210   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25211   (eval $ac_try) 2>&5
25212   ac_status=$?
25213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214   test $ac_status = 0; }; }
25215     then
25216         gcc_cv_as_powerpc_dci=yes
25217     else
25218       echo "configure: failed program was" >&5
25219       cat conftest.s >&5
25220     fi
25221     rm -f conftest.o conftest.s
25222   fi
25223 fi
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25225 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25226 if test $gcc_cv_as_powerpc_dci = yes; then
25227
25228 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25229
25230 fi
25231
25232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25233 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25234 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25235   $as_echo_n "(cached) " >&6
25236 else
25237   gcc_cv_as_powerpc_gnu_attribute=no
25238     if test $in_tree_gas = yes; then
25239     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25240   then gcc_cv_as_powerpc_gnu_attribute=yes
25241 fi
25242   elif test x$gcc_cv_as != x; then
25243     $as_echo '.gnu_attribute 4,1' > conftest.s
25244     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25245   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25246   (eval $ac_try) 2>&5
25247   ac_status=$?
25248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25249   test $ac_status = 0; }; }
25250     then
25251         gcc_cv_as_powerpc_gnu_attribute=yes
25252     else
25253       echo "configure: failed program was" >&5
25254       cat conftest.s >&5
25255     fi
25256     rm -f conftest.o conftest.s
25257   fi
25258 fi
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25260 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25261 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25262
25263 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25264
25265 fi
25266
25267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25268 $as_echo_n "checking assembler for tls marker support... " >&6; }
25269 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25270   $as_echo_n "(cached) " >&6
25271 else
25272   gcc_cv_as_powerpc_tls_markers=no
25273     if test $in_tree_gas = yes; then
25274     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25275   then gcc_cv_as_powerpc_tls_markers=yes
25276 fi
25277   elif test x$gcc_cv_as != x; then
25278     $as_echo ' bl __tls_get_addr(x@tlsgd)' > 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_powerpc_tls_markers=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_powerpc_tls_markers" >&5
25295 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25296 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25297
25298 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25299
25300 fi
25301
25302     case $target in
25303       *-*-aix*)
25304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25305 $as_echo_n "checking assembler for .ref support... " >&6; }
25306 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25307   $as_echo_n "(cached) " >&6
25308 else
25309   gcc_cv_as_aix_ref=no
25310     if test $in_tree_gas = yes; then
25311     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25312   then :
25313 fi
25314   elif test x$gcc_cv_as != x; then
25315     $as_echo '  .csect stuff[rw]
25316              stuff:
25317                 .long 1
25318                 .extern sym
25319                 .ref sym
25320           ' > conftest.s
25321     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25322   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25323   (eval $ac_try) 2>&5
25324   ac_status=$?
25325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25326   test $ac_status = 0; }; }
25327     then
25328         gcc_cv_as_aix_ref=yes
25329     else
25330       echo "configure: failed program was" >&5
25331       cat conftest.s >&5
25332     fi
25333     rm -f conftest.o conftest.s
25334   fi
25335 fi
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25337 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25338 if test $gcc_cv_as_aix_ref = yes; then
25339
25340 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25341
25342 fi
25343         ;;
25344     esac
25345     ;;
25346
25347   mips*-*-*)
25348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25349 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25350 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25351   $as_echo_n "(cached) " >&6
25352 else
25353   gcc_cv_as_mips_explicit_relocs=no
25354     if test $in_tree_gas = yes; then
25355     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25356   then gcc_cv_as_mips_explicit_relocs=yes
25357 fi
25358   elif test x$gcc_cv_as != x; then
25359     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25360     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25361   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25362   (eval $ac_try) 2>&5
25363   ac_status=$?
25364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25365   test $ac_status = 0; }; }
25366     then
25367         gcc_cv_as_mips_explicit_relocs=yes
25368     else
25369       echo "configure: failed program was" >&5
25370       cat conftest.s >&5
25371     fi
25372     rm -f conftest.o conftest.s
25373   fi
25374 fi
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25376 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25377 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25378   if test x$target_cpu_default = x
25379        then target_cpu_default=MASK_EXPLICIT_RELOCS
25380        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25381        fi
25382 fi
25383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25384 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25385 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25386   $as_echo_n "(cached) " >&6
25387 else
25388   gcc_cv_as_mips_no_shared=no
25389     if test $in_tree_gas = yes; then
25390     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25391   then gcc_cv_as_mips_no_shared=yes
25392 fi
25393   elif test x$gcc_cv_as != x; then
25394     $as_echo 'nop' > conftest.s
25395     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25396   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25397   (eval $ac_try) 2>&5
25398   ac_status=$?
25399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25400   test $ac_status = 0; }; }
25401     then
25402         gcc_cv_as_mips_no_shared=yes
25403     else
25404       echo "configure: failed program was" >&5
25405       cat conftest.s >&5
25406     fi
25407     rm -f conftest.o conftest.s
25408   fi
25409 fi
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25411 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25412 if test $gcc_cv_as_mips_no_shared = yes; then
25413
25414 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25415
25416 fi
25417
25418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25419 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25420 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25421   $as_echo_n "(cached) " >&6
25422 else
25423   gcc_cv_as_mips_gnu_attribute=no
25424     if test $in_tree_gas = yes; then
25425     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25426   then gcc_cv_as_mips_gnu_attribute=yes
25427 fi
25428   elif test x$gcc_cv_as != x; then
25429     $as_echo '.gnu_attribute 4,1' > conftest.s
25430     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25431   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432   (eval $ac_try) 2>&5
25433   ac_status=$?
25434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435   test $ac_status = 0; }; }
25436     then
25437         gcc_cv_as_mips_gnu_attribute=yes
25438     else
25439       echo "configure: failed program was" >&5
25440       cat conftest.s >&5
25441     fi
25442     rm -f conftest.o conftest.s
25443   fi
25444 fi
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25446 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25447 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25448
25449 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25450
25451 fi
25452
25453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25454 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25455 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25456   $as_echo_n "(cached) " >&6
25457 else
25458   gcc_cv_as_mips_dtprelword=no
25459     if test $in_tree_gas = yes; then
25460     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25461   then gcc_cv_as_mips_dtprelword=yes
25462 fi
25463   elif test x$gcc_cv_as != x; then
25464     $as_echo '.section .tdata,"awT",@progbits
25465 x:
25466         .word 2
25467         .text
25468         .dtprelword x+0x8000' > conftest.s
25469     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25470   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25471   (eval $ac_try) 2>&5
25472   ac_status=$?
25473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474   test $ac_status = 0; }; }
25475     then
25476         gcc_cv_as_mips_dtprelword=yes
25477     else
25478       echo "configure: failed program was" >&5
25479       cat conftest.s >&5
25480     fi
25481     rm -f conftest.o conftest.s
25482   fi
25483 fi
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25485 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25486 if test $gcc_cv_as_mips_dtprelword = yes; then
25487
25488 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25489
25490 fi
25491
25492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25493 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25494 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25495   $as_echo_n "(cached) " >&6
25496 else
25497   gcc_cv_as_mips_dspr1_mult=no
25498   if test x$gcc_cv_as != x; then
25499     $as_echo '  .set    mips32r2
25500         .set    nodspr2
25501         .set    dsp
25502         madd    $ac3,$4,$5
25503         maddu   $ac3,$4,$5
25504         msub    $ac3,$4,$5
25505         msubu   $ac3,$4,$5
25506         mult    $ac3,$4,$5
25507         multu   $ac3,$4,$5' > conftest.s
25508     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25509   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25510   (eval $ac_try) 2>&5
25511   ac_status=$?
25512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25513   test $ac_status = 0; }; }
25514     then
25515         gcc_cv_as_mips_dspr1_mult=yes
25516     else
25517       echo "configure: failed program was" >&5
25518       cat conftest.s >&5
25519     fi
25520     rm -f conftest.o conftest.s
25521   fi
25522 fi
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25524 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25525 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25526
25527 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25528
25529 fi
25530
25531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25532 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25533     gcc_cv_as_ld_jalr_reloc=no
25534     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25535       if test $in_tree_ld = yes ; then
25536         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 \
25537            && test $in_tree_ld_is_elf = yes; then
25538           gcc_cv_as_ld_jalr_reloc=yes
25539         fi
25540       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25541         echo '  .ent x' > conftest.s
25542         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25543         echo '  ld $25,%call16(y)($28)' >> conftest.s
25544         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25545         echo '1:        jalr $25' >> conftest.s
25546         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25547         echo '1:        jalr $25' >> conftest.s
25548         echo '  .end x' >> conftest.s
25549         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25550            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25551           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25552              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25553             gcc_cv_as_ld_jalr_reloc=yes
25554           fi
25555         fi
25556         rm -f conftest.*
25557       fi
25558     fi
25559     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25560       if test x$target_cpu_default = x; then
25561         target_cpu_default=MASK_RELAX_PIC_CALLS
25562       else
25563         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25564       fi
25565     fi
25566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25567 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25568
25569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25570 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25571 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25572   $as_echo_n "(cached) " >&6
25573 else
25574   gcc_cv_ld_mips_personality_relaxation=no
25575        if test $in_tree_ld = yes ; then
25576          if test "$gcc_cv_gld_major_version" -eq 2 \
25577                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25578                  -o "$gcc_cv_gld_major_version" -gt 2; then
25579            gcc_cv_ld_mips_personality_relaxation=yes
25580          fi
25581        elif test x$gcc_cv_as != x \
25582                  -a x$gcc_cv_ld != x \
25583                  -a x$gcc_cv_readelf != x ; then
25584          cat > conftest.s <<EOF
25585         .cfi_startproc
25586         .cfi_personality 0x80,indirect_ptr
25587         .ent test
25588 test:
25589         nop
25590         .end test
25591         .cfi_endproc
25592
25593         .section .data,"aw",@progbits
25594 indirect_ptr:
25595         .dc.a personality
25596 EOF
25597          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25598             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25599            if $gcc_cv_readelf -d conftest 2>&1 \
25600               | grep TEXTREL > /dev/null 2>&1; then
25601              :
25602            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25603                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25604              :
25605            else
25606              gcc_cv_ld_mips_personality_relaxation=yes
25607            fi
25608          fi
25609        fi
25610        rm -f conftest.s conftest.o conftest
25611 fi
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25613 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25614     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25615
25616 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25617
25618     fi
25619     ;;
25620 esac
25621
25622 # Mips and HP-UX need the GNU assembler.
25623 # Linux on IA64 might be able to use the Intel assembler.
25624
25625 case "$target" in
25626   mips*-*-* | *-*-hpux* )
25627     if test x$gas_flag = xyes \
25628        || test x"$host" != x"$build" \
25629        || test ! -x "$gcc_cv_as" \
25630        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25631       :
25632     else
25633       echo "*** This configuration requires the GNU assembler" >&2
25634       exit 1
25635     fi
25636     ;;
25637 esac
25638
25639 # ??? Not all targets support dwarf2 debug_line, even within a version
25640 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25641 # info to the output file.  So, as supported targets are added to gas 2.11,
25642 # add some instruction here to (also) show we expect this might work.
25643 # ??? Once 2.11 is released, probably need to add first known working
25644 # version to the per-target configury.
25645 case "$cpu_type" in
25646   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25647   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25648     insn="nop"
25649     ;;
25650   ia64 | s390)
25651     insn="nop 0"
25652     ;;
25653   mmix)
25654     insn="swym 0"
25655     ;;
25656 esac
25657 if test x"$insn" != x; then
25658  conftest_s="\
25659         .file 1 \"conftest.s\"
25660         .loc 1 3 0
25661         $insn"
25662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25663 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25664 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25665   $as_echo_n "(cached) " >&6
25666 else
25667   gcc_cv_as_dwarf2_debug_line=no
25668     if test $in_tree_gas = yes; then
25669     if test $in_tree_gas_is_elf = yes \
25670   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25671   then gcc_cv_as_dwarf2_debug_line=yes
25672 fi
25673   elif test x$gcc_cv_as != x; then
25674     $as_echo "$conftest_s" > conftest.s
25675     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25676   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25677   (eval $ac_try) 2>&5
25678   ac_status=$?
25679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25680   test $ac_status = 0; }; }
25681     then
25682         if test x$gcc_cv_objdump != x \
25683    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25684       | grep debug_line > /dev/null 2>&1; then
25685      gcc_cv_as_dwarf2_debug_line=yes
25686    fi
25687     else
25688       echo "configure: failed program was" >&5
25689       cat conftest.s >&5
25690     fi
25691     rm -f conftest.o conftest.s
25692   fi
25693 fi
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25695 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25696
25697
25698 # The .debug_line file table must be in the exact order that
25699 # we specified the files, since these indices are also used
25700 # by DW_AT_decl_file.  Approximate this test by testing if
25701 # the assembler bitches if the same index is assigned twice.
25702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25703 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25704 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25705   $as_echo_n "(cached) " >&6
25706 else
25707   gcc_cv_as_dwarf2_file_buggy=no
25708   if test x$gcc_cv_as != x; then
25709     $as_echo '  .file 1 "foo.s"
25710         .file 1 "bar.s"' > conftest.s
25711     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25712   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25713   (eval $ac_try) 2>&5
25714   ac_status=$?
25715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25716   test $ac_status = 0; }; }
25717     then
25718         gcc_cv_as_dwarf2_file_buggy=yes
25719     else
25720       echo "configure: failed program was" >&5
25721       cat conftest.s >&5
25722     fi
25723     rm -f conftest.o conftest.s
25724   fi
25725 fi
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25727 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25728
25729
25730  if test $gcc_cv_as_dwarf2_debug_line = yes \
25731  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25732
25733 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25734
25735  fi
25736
25737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25738 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25739 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25740   $as_echo_n "(cached) " >&6
25741 else
25742   gcc_cv_as_gdwarf2_flag=no
25743     if test $in_tree_gas = yes; then
25744     if test $in_tree_gas_is_elf = yes \
25745   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25746   then gcc_cv_as_gdwarf2_flag=yes
25747 fi
25748   elif test x$gcc_cv_as != x; then
25749     $as_echo "$insn" > conftest.s
25750     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25751   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25752   (eval $ac_try) 2>&5
25753   ac_status=$?
25754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25755   test $ac_status = 0; }; }
25756     then
25757         gcc_cv_as_gdwarf2_flag=yes
25758     else
25759       echo "configure: failed program was" >&5
25760       cat conftest.s >&5
25761     fi
25762     rm -f conftest.o conftest.s
25763   fi
25764 fi
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25766 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25767 if test $gcc_cv_as_gdwarf2_flag = yes; then
25768
25769 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25770
25771 fi
25772
25773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25774 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25775 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25776   $as_echo_n "(cached) " >&6
25777 else
25778   gcc_cv_as_gstabs_flag=no
25779     if test $in_tree_gas = yes; then
25780     if test $in_tree_gas_is_elf = yes \
25781   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25782   then gcc_cv_as_gstabs_flag=yes
25783 fi
25784   elif test x$gcc_cv_as != x; then
25785     $as_echo "$insn" > conftest.s
25786     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25787   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25788   (eval $ac_try) 2>&5
25789   ac_status=$?
25790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25791   test $ac_status = 0; }; }
25792     then
25793         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25794    # and warns about it, but still exits successfully.  So check for
25795    # this.
25796    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25797   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25798   (eval $ac_try) 2>&5
25799   ac_status=$?
25800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25801   test $ac_status = 0; }; }
25802    then :
25803    else gcc_cv_as_gstabs_flag=yes
25804    fi
25805     else
25806       echo "configure: failed program was" >&5
25807       cat conftest.s >&5
25808     fi
25809     rm -f conftest.o conftest.s
25810   fi
25811 fi
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25813 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25814 if test $gcc_cv_as_gstabs_flag = yes; then
25815
25816 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25817
25818 fi
25819
25820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25821 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25822 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25823   $as_echo_n "(cached) " >&6
25824 else
25825   gcc_cv_as_debug_prefix_map_flag=no
25826     if test $in_tree_gas = yes; then
25827     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25828   then gcc_cv_as_debug_prefix_map_flag=yes
25829 fi
25830   elif test x$gcc_cv_as != x; then
25831     $as_echo "$insn" > conftest.s
25832     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25833   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25834   (eval $ac_try) 2>&5
25835   ac_status=$?
25836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25837   test $ac_status = 0; }; }
25838     then
25839         gcc_cv_as_debug_prefix_map_flag=yes
25840     else
25841       echo "configure: failed program was" >&5
25842       cat conftest.s >&5
25843     fi
25844     rm -f conftest.o conftest.s
25845   fi
25846 fi
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25848 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25849 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25850
25851 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25852
25853 fi
25854 fi
25855
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25857 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25858 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25859   $as_echo_n "(cached) " >&6
25860 else
25861   gcc_cv_as_lcomm_with_alignment=no
25862   if test x$gcc_cv_as != x; then
25863     $as_echo '.lcomm bar,4,16' > conftest.s
25864     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25865   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25866   (eval $ac_try) 2>&5
25867   ac_status=$?
25868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25869   test $ac_status = 0; }; }
25870     then
25871         gcc_cv_as_lcomm_with_alignment=yes
25872     else
25873       echo "configure: failed program was" >&5
25874       cat conftest.s >&5
25875     fi
25876     rm -f conftest.o conftest.s
25877   fi
25878 fi
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25880 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25881 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25882
25883 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25884
25885 fi
25886
25887 # Check whether --enable-gnu-unique-object was given.
25888 if test "${enable_gnu_unique_object+set}" = set; then :
25889   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25890     yes | no) ;;
25891     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25892 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25893   esac
25894 else
25895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25896 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25897 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25898   $as_echo_n "(cached) " >&6
25899 else
25900   gcc_cv_as_gnu_unique_object=no
25901     if test $in_tree_gas = yes; then
25902     if test $in_tree_gas_is_elf = yes \
25903   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25904   then gcc_cv_as_gnu_unique_object=yes
25905 fi
25906   elif test x$gcc_cv_as != x; then
25907     $as_echo '.type foo, @gnu_unique_object' > conftest.s
25908     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25909   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25910   (eval $ac_try) 2>&5
25911   ac_status=$?
25912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25913   test $ac_status = 0; }; }
25914     then
25915         gcc_cv_as_gnu_unique_object=yes
25916     else
25917       echo "configure: failed program was" >&5
25918       cat conftest.s >&5
25919     fi
25920     rm -f conftest.o conftest.s
25921   fi
25922 fi
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25924 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25925 if test $gcc_cv_as_gnu_unique_object = yes; then
25926   # Also check for ld.so support, i.e. glibc 2.11 or higher.
25927    if test x$host = x$build -a x$host = x$target &&
25928        ldd --version 2>/dev/null &&
25929        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25930       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25931       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25932       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25933       if test "$glibcnum" -ge 2011 ; then
25934         enable_gnu_unique_object=yes
25935       fi
25936     fi
25937 fi
25938 fi
25939
25940 if test x$enable_gnu_unique_object = xyes; then
25941
25942 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25943
25944 fi
25945
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25947 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25948 if test "${gcc_cv_as_line_zero+set}" = set; then :
25949   $as_echo_n "(cached) " >&6
25950 else
25951   gcc_cv_as_line_zero=no
25952   if test $in_tree_gas = yes; then
25953     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25954   then gcc_cv_as_line_zero=yes
25955 fi
25956   elif test "x$gcc_cv_as" != x; then
25957     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25958     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25959   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25960   (eval $ac_try) 2>&5
25961   ac_status=$?
25962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25963   test $ac_status = 0; }; } &&
25964        test "x`cat conftest.out`" = x
25965     then
25966       gcc_cv_as_line_zero=yes
25967     else
25968       echo "configure: failed program was" >&5
25969       cat conftest.s >&5
25970       echo "configure: error output was" >&5
25971       cat conftest.out >&5
25972     fi
25973     rm -f conftest.o conftest.s conftest.out
25974   fi
25975 fi
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25977 $as_echo "$gcc_cv_as_line_zero" >&6; }
25978 if test "x$gcc_cv_as_line_zero" = xyes; then
25979
25980 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25981
25982 fi
25983
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25985 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25986 gcc_cv_ld_eh_frame_hdr=no
25987 if test $in_tree_ld = yes ; then
25988   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 \
25989      && test $in_tree_ld_is_elf = yes; then
25990     gcc_cv_ld_eh_frame_hdr=yes
25991   fi
25992 elif test x$gcc_cv_ld != x; then
25993   if echo "$ld_ver" | grep GNU > /dev/null; then
25994     # Check if linker supports --eh-frame-hdr option
25995     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25996       gcc_cv_ld_eh_frame_hdr=yes
25997     fi
25998   else
25999     case "$target" in
26000       *-*-solaris2*)
26001         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26002         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26003           gcc_cv_ld_eh_frame_hdr=yes
26004         fi
26005         ;;
26006     esac
26007   fi
26008 fi
26009
26010 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26011
26012 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26013
26014 fi
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26016 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26017
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26019 $as_echo_n "checking linker position independent executable support... " >&6; }
26020 gcc_cv_ld_pie=no
26021 if test $in_tree_ld = yes ; then
26022   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 \
26023      && test $in_tree_ld_is_elf = yes; then
26024     gcc_cv_ld_pie=yes
26025   fi
26026 elif test x$gcc_cv_ld != x; then
26027         # Check if linker supports -pie option
26028         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26029                 gcc_cv_ld_pie=yes
26030         fi
26031 fi
26032 if test x"$gcc_cv_ld_pie" = xyes; then
26033
26034 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26035
26036 fi
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26038 $as_echo "$gcc_cv_ld_pie" >&6; }
26039
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26041 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26042 gcc_cv_ld_eh_gc_sections=no
26043 if test $in_tree_ld = yes ; then
26044   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 \
26045      && test $in_tree_ld_is_elf = yes; then
26046     gcc_cv_ld_eh_gc_sections=yes
26047   fi
26048 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26049   cat > conftest.s <<EOF
26050         .section        .text
26051 .globl _start
26052         .type _start, @function
26053 _start:
26054         .long foo
26055         .size _start, .-_start
26056         .section        .text.foo,"ax",@progbits
26057         .type foo, @function
26058 foo:
26059         .long 0
26060         .size foo, .-foo
26061         .section        .gcc_except_table.foo,"a",@progbits
26062 .L0:
26063         .long 0
26064         .section        .eh_frame,"a",@progbits
26065         .long .L0
26066 EOF
26067   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26068     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26069          | grep "gc-sections option ignored" > /dev/null; then
26070       gcc_cv_ld_eh_gc_sections=no
26071     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26072          | grep gcc_except_table > /dev/null; then
26073       gcc_cv_ld_eh_gc_sections=yes
26074       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26075       if test x$gcc_cv_as_comdat_group != xyes; then
26076         gcc_cv_ld_eh_gc_sections=no
26077         cat > conftest.s <<EOF
26078         .section        .text
26079 .globl _start
26080         .type _start, @function
26081 _start:
26082         .long foo
26083         .size _start, .-_start
26084         .section        .gnu.linkonce.t.foo,"ax",@progbits
26085         .type foo, @function
26086 foo:
26087         .long 0
26088         .size foo, .-foo
26089         .section        .gcc_except_table.foo,"a",@progbits
26090 .L0:
26091         .long 0
26092         .section        .eh_frame,"a",@progbits
26093         .long .L0
26094 EOF
26095         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26096           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26097                | grep "gc-sections option ignored" > /dev/null; then
26098             gcc_cv_ld_eh_gc_sections=no
26099           elif $gcc_cv_objdump -h conftest 2> /dev/null \
26100                | grep gcc_except_table > /dev/null; then
26101             gcc_cv_ld_eh_gc_sections=yes
26102           fi
26103         fi
26104       fi
26105     fi
26106   fi
26107   rm -f conftest.s conftest.o conftest
26108 fi
26109 case "$target" in
26110   hppa*-*-linux*)
26111     # ??? This apparently exposes a binutils bug with PC-relative relocations.
26112     gcc_cv_ld_eh_gc_sections=no
26113     ;;
26114 esac
26115 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26116
26117 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26118
26119 fi
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26121 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26122
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26124 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26125 gcc_cv_ld_eh_gc_sections_bug=no
26126 if test $in_tree_ld = yes ; then
26127   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 \
26128      && test $in_tree_ld_is_elf = yes; then
26129     gcc_cv_ld_eh_gc_sections_bug=yes
26130   fi
26131 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
26132   gcc_cv_ld_eh_gc_sections_bug=yes
26133   cat > conftest.s <<EOF
26134         .section        .text
26135 .globl _start
26136         .type _start, @function
26137 _start:
26138         .long foo
26139         .size _start, .-_start
26140         .section        .text.startup.foo,"ax",@progbits
26141         .type foo, @function
26142 foo:
26143         .long 0
26144         .size foo, .-foo
26145         .section        .gcc_except_table.foo,"a",@progbits
26146 .L0:
26147         .long 0
26148         .section        .eh_frame,"a",@progbits
26149         .long .L0
26150 EOF
26151   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26152     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26153          | grep "gc-sections option ignored" > /dev/null; then
26154       :
26155     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26156          | grep gcc_except_table > /dev/null; then
26157       gcc_cv_ld_eh_gc_sections_bug=no
26158     fi
26159   fi
26160   rm -f conftest.s conftest.o conftest
26161 fi
26162 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26163
26164 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26165
26166 fi
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26168 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26169
26170 # --------
26171 # UNSORTED
26172 # --------
26173
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26175 $as_echo_n "checking linker --as-needed support... " >&6; }
26176 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26177   $as_echo_n "(cached) " >&6
26178 else
26179   gcc_cv_ld_as_needed=no
26180 if test $in_tree_ld = yes ; then
26181   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 \
26182      && test $in_tree_ld_is_elf = yes; then
26183     gcc_cv_ld_as_needed=yes
26184   fi
26185 elif test x$gcc_cv_ld != x; then
26186         # Check if linker supports --as-needed and --no-as-needed options
26187         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26188                 gcc_cv_ld_as_needed=yes
26189         fi
26190 fi
26191
26192 fi
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26194 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26195 if test x"$gcc_cv_ld_as_needed" = xyes; then
26196
26197 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26198
26199 fi
26200
26201 case "$target:$tm_file" in
26202   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26204 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26205 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26206   $as_echo_n "(cached) " >&6
26207 else
26208   gcc_cv_ld_no_dot_syms=no
26209     if test $in_tree_ld = yes ; then
26210       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
26211         gcc_cv_ld_no_dot_syms=yes
26212       fi
26213     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26214       cat > conftest1.s <<EOF
26215         .text
26216         bl .foo
26217 EOF
26218       cat > conftest2.s <<EOF
26219         .section ".opd","aw"
26220         .align 3
26221         .globl foo
26222         .type foo,@function
26223 foo:
26224         .quad .LEfoo,.TOC.@tocbase,0
26225         .text
26226 .LEfoo:
26227         blr
26228         .size foo,.-.LEfoo
26229 EOF
26230       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26231          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26232          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26233         gcc_cv_ld_no_dot_syms=yes
26234       fi
26235       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26236     fi
26237
26238 fi
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26240 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26241     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26242
26243 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26244
26245     fi
26246
26247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26248 $as_echo_n "checking linker large toc support... " >&6; }
26249 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26250   $as_echo_n "(cached) " >&6
26251 else
26252   gcc_cv_ld_large_toc=no
26253     if test $in_tree_ld = yes ; then
26254       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
26255         gcc_cv_ld_large_toc=yes
26256       fi
26257     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26258       cat > conftest.s <<EOF
26259         .section ".tbss","awT",@nobits
26260         .align 3
26261 ie0:    .space 8
26262         .global _start
26263         .text
26264 _start:
26265         addis 9,13,ie0@got@tprel@ha
26266         ld 9,ie0@got@tprel@l(9)
26267 EOF
26268       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26269          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26270         gcc_cv_ld_large_toc=yes
26271       fi
26272       rm -f conftest conftest.o conftest.s
26273     fi
26274
26275 fi
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26277 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26278     if test x"$gcc_cv_ld_large_toc" = xyes; then
26279
26280 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26281
26282     fi
26283     ;;
26284 esac
26285
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26287 $as_echo_n "checking linker --build-id support... " >&6; }
26288 if test "${gcc_cv_ld_buildid+set}" = set; then :
26289   $as_echo_n "(cached) " >&6
26290 else
26291   gcc_cv_ld_buildid=no
26292   if test $in_tree_ld = yes ; then
26293     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26294        "$gcc_cv_gld_minor_version" -ge 18 -o \
26295        "$gcc_cv_gld_major_version" -gt 2 \
26296        && test $in_tree_ld_is_elf = yes; then
26297       gcc_cv_ld_buildid=yes
26298     fi
26299   elif test x$gcc_cv_ld != x; then
26300     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26301       gcc_cv_ld_buildid=yes
26302     fi
26303   fi
26304 fi
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26306 $as_echo "$gcc_cv_ld_buildid" >&6; }
26307 if test x"$gcc_cv_ld_buildid" = xyes; then
26308
26309 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26310
26311 fi
26312
26313 # Check whether --enable-linker-build-id was given.
26314 if test "${enable_linker_build_id+set}" = set; then :
26315   enableval=$enable_linker_build_id;
26316 else
26317   enable_linker_build_id=no
26318 fi
26319
26320
26321 if test x"$enable_linker_build_id" = xyes; then
26322   if test x"$gcc_cv_ld_buildid" = xyes; then
26323
26324 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26325
26326   else
26327     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26328 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26329   fi
26330 fi
26331
26332 # In binutils 2.21, GNU ld gained support for new emulations fully
26333 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26335 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26336 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26337   $as_echo_n "(cached) " >&6
26338 else
26339   gcc_cv_ld_sol2_emulation=no
26340   if test $in_tree_ld = yes ; then
26341     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26342        "$gcc_cv_gld_minor_version" -ge 21 -o \
26343        "$gcc_cv_gld_major_version" -gt 2 \
26344        && test $in_tree_ld_is_elf = yes; then
26345       gcc_cv_ld_sol2_emulation=yes
26346     fi
26347   elif test x$gcc_cv_ld != x; then
26348     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26349        grep _sol2 > /dev/null; then
26350       gcc_cv_ld_sol2_emulation=yes
26351     fi
26352   fi
26353 fi
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26355 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26356 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26357
26358 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26359
26360 fi
26361
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26363 $as_echo_n "checking linker --sysroot support... " >&6; }
26364 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26365   $as_echo_n "(cached) " >&6
26366 else
26367   gcc_cv_ld_sysroot=no
26368   if test $in_tree_ld = yes ; then
26369       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
26370         gcc_cv_ld_sysroot=yes
26371       fi
26372   elif test x$gcc_cv_ld != x; then
26373     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26374       gcc_cv_ld_sysroot=yes
26375     fi
26376   fi
26377 fi
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26379 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26380 if test x"$gcc_cv_ld_sysroot" = xyes; then
26381
26382 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26383
26384 fi
26385
26386 if test x$with_sysroot = x && test x$host = x$target \
26387    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26388    && test "$prefix" != "NONE"; then
26389
26390 cat >>confdefs.h <<_ACEOF
26391 #define PREFIX_INCLUDE_DIR "$prefix/include"
26392 _ACEOF
26393
26394 fi
26395
26396 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26397   if test "x$with_headers" != x; then
26398     target_header_dir=$with_headers
26399   elif test "x$with_sysroot" = x; then
26400     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26401   elif test "x$with_build_sysroot" != "x"; then
26402     target_header_dir="${with_build_sysroot}/usr/include"
26403   elif test "x$with_sysroot" = xyes; then
26404     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26405   else
26406     target_header_dir="${with_sysroot}/usr/include"
26407   fi
26408 else
26409   target_header_dir=/usr/include
26410 fi
26411
26412 # Test for stack protector support in target C library.
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26414 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26415 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26416   $as_echo_n "(cached) " >&6
26417 else
26418   gcc_cv_libc_provides_ssp=no
26419     case "$target" in
26420        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26421       # glibc 2.4 and later provides __stack_chk_fail and
26422       # either __stack_chk_guard, or TLS access to stack guard canary.
26423       if test -f $target_header_dir/features.h \
26424          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26425             $target_header_dir/features.h > /dev/null; then
26426         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26427            $target_header_dir/features.h > /dev/null; then
26428           gcc_cv_libc_provides_ssp=yes
26429         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26430              $target_header_dir/features.h > /dev/null \
26431              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26432              $target_header_dir/features.h > /dev/null; then
26433           gcc_cv_libc_provides_ssp=yes
26434         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26435              $target_header_dir/features.h > /dev/null && \
26436              test -f $target_header_dir/bits/uClibc_config.h && \
26437              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26438              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26439           gcc_cv_libc_provides_ssp=yes
26440         fi
26441       fi
26442         ;;
26443        *-*-gnu*)
26444          # Avoid complicated tests (see
26445          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26446          # simply assert that glibc does provide this, which is true for all
26447          # realistically usable GNU/Hurd configurations.
26448          gcc_cv_libc_provides_ssp=yes;;
26449        *-*-darwin* | *-*-freebsd*)
26450          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26451 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26452   gcc_cv_libc_provides_ssp=yes
26453 else
26454   echo "no __stack_chk_fail on this target"
26455 fi
26456
26457         ;;
26458   *) gcc_cv_libc_provides_ssp=no ;;
26459     esac
26460 fi
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26462 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26463
26464 if test x$gcc_cv_libc_provides_ssp = xyes; then
26465
26466 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26467
26468 fi
26469
26470 # Test for <sys/sdt.h> on the target.
26471
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26473 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26474 have_sys_sdt_h=no
26475 if test -f $target_header_dir/sys/sdt.h; then
26476
26477 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26478
26479 fi
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26481 $as_echo "$have_sys_sdt_h" >&6; }
26482
26483 # Check if TFmode long double should be used by default or not.
26484 # Some glibc targets used DFmode long double, but with glibc 2.4
26485 # and later they can use TFmode.
26486 case "$target" in
26487   powerpc*-*-linux* | \
26488   sparc*-*-linux* | \
26489   s390*-*-linux* | \
26490   alpha*-*-linux*)
26491
26492 # Check whether --with-long-double-128 was given.
26493 if test "${with_long_double_128+set}" = set; then :
26494   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26495 else
26496   gcc_cv_target_ldbl128=no
26497       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26498         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26499       && gcc_cv_target_ldbl128=yes
26500
26501 fi
26502
26503     ;;
26504 esac
26505 if test x$gcc_cv_target_ldbl128 = xyes; then
26506
26507 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26508
26509 fi
26510
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26512 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26513 gcc_cv_target_dl_iterate_phdr=unknown
26514 case "$target" in
26515   *-*-solaris2*)
26516     # <link.h> needs both a dl_iterate_phdr declaration and support for
26517     # compilation with largefile support.
26518     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26519       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26520       gcc_cv_target_dl_iterate_phdr=yes
26521     else
26522       gcc_cv_target_dl_iterate_phdr=no
26523     fi
26524     ;;
26525 esac
26526
26527 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26528
26529 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26530
26531 fi
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26533 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26534
26535 # Find out what GC implementation we want, or may, use.
26536
26537 # Check whether --with-gc was given.
26538 if test "${with_gc+set}" = set; then :
26539   withval=$with_gc; case "$withval" in
26540   page)
26541     GGC=ggc-$withval
26542     ;;
26543   zone)
26544     GGC=ggc-$withval
26545
26546 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26547
26548     ;;
26549   *)
26550     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26551     ;;
26552 esac
26553 else
26554   GGC=ggc-page
26555 fi
26556
26557
26558 echo "Using $GGC for garbage collection."
26559
26560 # Libraries to use on the host.  This will normally be set by the top
26561 # level Makefile.  Here we simply capture the value for our Makefile.
26562 if test -z "${HOST_LIBS+set}"; then
26563   HOST_LIBS=
26564 fi
26565
26566
26567 # Use the system's zlib library.
26568 zlibdir=-L../zlib
26569 zlibinc="-I\$(srcdir)/../zlib"
26570
26571 # Check whether --with-system-zlib was given.
26572 if test "${with_system_zlib+set}" = set; then :
26573   withval=$with_system_zlib; zlibdir=
26574 zlibinc=
26575
26576 fi
26577
26578
26579
26580
26581
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26583 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26584     # Check whether --enable-maintainer-mode was given.
26585 if test "${enable_maintainer_mode+set}" = set; then :
26586   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26587 else
26588   maintainer_mode=no
26589 fi
26590
26591
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26593 $as_echo "$maintainer_mode" >&6; }
26594
26595 if test "$maintainer_mode" = "yes"; then
26596   MAINT=''
26597 else
26598   MAINT='#'
26599 fi
26600
26601 # --------------
26602 # Language hooks
26603 # --------------
26604
26605 # Make empty files to contain the specs and options for each language.
26606 # Then add #include lines to for a compiler that has specs and/or options.
26607
26608 subdirs=
26609 lang_opt_files=
26610 lang_specs_files=
26611 lang_tree_files=
26612 # These (without "all_") are set in each config-lang.in.
26613 # `language' must be a single word so is spelled singularly.
26614 all_languages=
26615 all_compilers=
26616 all_outputs='Makefile'
26617 # List of language makefile fragments.
26618 all_lang_makefrags=
26619 # Additional files for gengtype
26620 all_gtfiles="$target_gtfiles"
26621
26622 # These are the languages that are set in --enable-languages,
26623 # and are available in the GCC tree.
26624 all_selected_languages=
26625
26626 # Add the language fragments.
26627 # Languages are added via two mechanisms.  Some information must be
26628 # recorded in makefile variables, these are defined in config-lang.in.
26629 # We accumulate them and plug them into the main Makefile.
26630 # The other mechanism is a set of hooks for each of the main targets
26631 # like `clean', `install', etc.
26632
26633 language_hooks="Make-hooks"
26634
26635 for lang in ${srcdir}/*/config-lang.in
26636 do
26637         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26638
26639         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26640         if test "x$lang_alias" = x
26641         then
26642               echo "$lang doesn't set \$language." 1>&2
26643               exit 1
26644         fi
26645         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26646         subdirs="$subdirs $subdir"
26647
26648         # $gcc_subdir is where the gcc integration files are to be found
26649         # for a language, both for internal compiler purposes (compiler
26650         # sources implementing front-end to GCC tree converters), and for
26651         # build infrastructure purposes (Make-lang.in, etc.)
26652         #
26653         # This will be <subdir> (relative to $srcdir) if a line like
26654         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26655         # is found in <langdir>/config-lang.in, and will remain <langdir>
26656         # otherwise.
26657         #
26658         # Except for the language alias (fetched above), the regular
26659         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26660         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26661         # only this and the language alias.
26662
26663         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26664         if [ "$gcc_subdir" = "" ]; then
26665            gcc_subdir="$subdir"
26666         fi
26667
26668         case ",$enable_languages," in
26669         *,$lang_alias,*)
26670             all_selected_languages="$all_selected_languages $lang_alias"
26671             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26672                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26673             fi
26674             ;;
26675         esac
26676
26677         language=
26678         boot_language=
26679         compilers=
26680         outputs=
26681         gtfiles=
26682         subdir_requires=
26683         . ${srcdir}/$gcc_subdir/config-lang.in
26684         if test "x$language" = x
26685         then
26686                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26687                 exit 1
26688         fi
26689
26690         ok=:
26691         case ",$enable_languages," in
26692                 *,$lang_alias,*) ;;
26693                 *)
26694                         for i in $subdir_requires; do
26695                                 test -f "${srcdir}/$i/config-lang.in" && continue
26696                                 ok=false
26697                                 break
26698                         done
26699                 ;;
26700         esac
26701         $ok || continue
26702
26703         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26704         if test -f $srcdir/$gcc_subdir/lang.opt; then
26705             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26706             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26707         fi
26708         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26709             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26710         fi
26711         all_languages="$all_languages $language"
26712         all_compilers="$all_compilers $compilers"
26713         all_outputs="$all_outputs $outputs"
26714         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26715         case ",$enable_languages," in
26716                 *,lto,*)
26717
26718 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26719
26720                     enable_lto=yes
26721
26722                     ;;
26723                 *) ;;
26724         esac
26725 done
26726
26727 # Pick up gtfiles for c
26728 gtfiles=
26729 . ${srcdir}/c-config-lang.in
26730 all_gtfiles="$all_gtfiles [c] $gtfiles"
26731
26732 check_languages=
26733 for language in $all_selected_languages
26734 do
26735         check_languages="$check_languages check-$language"
26736 done
26737
26738 # We link each language in with a set of hooks, reached indirectly via
26739 # lang.${target}.  Only do so for selected languages.
26740
26741 rm -f Make-hooks
26742 touch Make-hooks
26743 target_list="all.cross start.encap rest.encap tags \
26744         install-common install-man install-info install-pdf install-html dvi \
26745         pdf html uninstall info man srcextra srcman srcinfo \
26746         mostlyclean clean distclean maintainer-clean install-plugin"
26747
26748 for t in $target_list
26749 do
26750         x=
26751         for lang in $all_selected_languages
26752         do
26753                 x="$x $lang.$t"
26754         done
26755         echo "lang.$t: $x" >> Make-hooks
26756 done
26757
26758 # --------
26759 # Option include files
26760 # --------
26761
26762 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26763 option_includes="option-includes.mk"
26764
26765
26766 # --------
26767 # UNSORTED
26768 # --------
26769
26770 # Create .gdbinit.
26771
26772 echo "dir ." > .gdbinit
26773 echo "dir ${srcdir}" >> .gdbinit
26774 if test x$gdb_needs_out_file_path = xyes
26775 then
26776         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26777 fi
26778 if test "x$subdirs" != x; then
26779         for s in $subdirs
26780         do
26781                 echo "dir ${srcdir}/$s" >> .gdbinit
26782         done
26783 fi
26784 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26785
26786 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26787
26788
26789
26790 # Find a directory in which to install a shared libgcc.
26791
26792 # Check whether --enable-version-specific-runtime-libs was given.
26793 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26794   enableval=$enable_version_specific_runtime_libs;
26795 fi
26796
26797
26798
26799 # Check whether --with-slibdir was given.
26800 if test "${with_slibdir+set}" = set; then :
26801   withval=$with_slibdir; slibdir="$with_slibdir"
26802 else
26803   if test "${enable_version_specific_runtime_libs+set}" = set; then
26804   slibdir='$(libsubdir)'
26805 elif test "$host" != "$target"; then
26806   slibdir='$(build_tooldir)/lib'
26807 else
26808   slibdir='$(libdir)'
26809 fi
26810 fi
26811
26812
26813
26814 # Substitute configuration variables
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881 # Echo link setup.
26882 if test x${build} = x${host} ; then
26883   if test x${host} = x${target} ; then
26884     echo "Links are now set up to build a native compiler for ${target}." 1>&2
26885   else
26886     echo "Links are now set up to build a cross-compiler" 1>&2
26887     echo " from ${host} to ${target}." 1>&2
26888   fi
26889 else
26890   if test x${host} = x${target} ; then
26891     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26892     echo " for ${target}." 1>&2
26893   else
26894     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26895     echo " from ${host} to ${target}." 1>&2
26896   fi
26897 fi
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907 if test "x${CLOOGLIBS}" != "x" ; then
26908
26909 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26910
26911 fi
26912
26913 # Check for plugin support
26914 # Check whether --enable-plugin was given.
26915 if test "${enable_plugin+set}" = set; then :
26916   enableval=$enable_plugin; enable_plugin=$enableval
26917 else
26918   enable_plugin=yes; default_plugin=yes
26919 fi
26920
26921
26922 pluginlibs=
26923
26924 case "${host}" in
26925   *-*-darwin*)
26926     if test x$build = x$host; then
26927       export_sym_check="nm${exeext} -g"
26928     elif test x$host = x$target; then
26929       export_sym_check="$gcc_cv_nm -g"
26930     else
26931       export_sym_check=
26932     fi
26933   ;;
26934   *)
26935     if test x$build = x$host; then
26936       export_sym_check="objdump${exeext} -T"
26937     elif test x$host = x$target; then
26938       export_sym_check="$gcc_cv_objdump -T"
26939     else
26940       export_sym_check=
26941     fi
26942   ;;
26943 esac
26944
26945 if test x"$enable_plugin" = x"yes"; then
26946
26947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26948 $as_echo_n "checking for exported symbols... " >&6; }
26949   if test "x$export_sym_check" != x; then
26950     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26951     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26952     if $export_sym_check conftest | grep foobar > /dev/null; then
26953       : # No need to use a flag
26954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26955 $as_echo "yes" >&6; }
26956     else
26957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26958 $as_echo "yes" >&6; }
26959       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26960 $as_echo_n "checking for -rdynamic... " >&6; }
26961       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26962       if $export_sym_check conftest | grep foobar > /dev/null; then
26963         plugin_rdynamic=yes
26964         pluginlibs="-rdynamic"
26965       else
26966         plugin_rdynamic=no
26967         enable_plugin=no
26968       fi
26969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26970 $as_echo "$plugin_rdynamic" >&6; }
26971     fi
26972   else
26973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26974 $as_echo "unable to check" >&6; }
26975   fi
26976
26977   # Check -ldl
26978   saved_LIBS="$LIBS"
26979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26980 $as_echo_n "checking for library containing dlopen... " >&6; }
26981 if test "${ac_cv_search_dlopen+set}" = set; then :
26982   $as_echo_n "(cached) " >&6
26983 else
26984   ac_func_search_save_LIBS=$LIBS
26985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26986 /* end confdefs.h.  */
26987
26988 /* Override any GCC internal prototype to avoid an error.
26989    Use char because int might match the return type of a GCC
26990    builtin and then its argument prototype would still apply.  */
26991 #ifdef __cplusplus
26992 extern "C"
26993 #endif
26994 char dlopen ();
26995 int
26996 main ()
26997 {
26998 return dlopen ();
26999   ;
27000   return 0;
27001 }
27002 _ACEOF
27003 for ac_lib in '' dl; do
27004   if test -z "$ac_lib"; then
27005     ac_res="none required"
27006   else
27007     ac_res=-l$ac_lib
27008     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27009   fi
27010   if ac_fn_c_try_link "$LINENO"; then :
27011   ac_cv_search_dlopen=$ac_res
27012 fi
27013 rm -f core conftest.err conftest.$ac_objext \
27014     conftest$ac_exeext
27015   if test "${ac_cv_search_dlopen+set}" = set; then :
27016   break
27017 fi
27018 done
27019 if test "${ac_cv_search_dlopen+set}" = set; then :
27020
27021 else
27022   ac_cv_search_dlopen=no
27023 fi
27024 rm conftest.$ac_ext
27025 LIBS=$ac_func_search_save_LIBS
27026 fi
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27028 $as_echo "$ac_cv_search_dlopen" >&6; }
27029 ac_res=$ac_cv_search_dlopen
27030 if test "$ac_res" != no; then :
27031   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27032
27033 fi
27034
27035   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27036     pluginlibs="$pluginlibs -ldl"
27037   fi
27038   LIBS="$saved_LIBS"
27039
27040   # Check that we can build shared objects with -fPIC -shared
27041   saved_LDFLAGS="$LDFLAGS"
27042   saved_CFLAGS="$CFLAGS"
27043   case "${host}" in
27044     *-*-darwin*)
27045       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27046       CFLAGS="$CFLAGS -fPIC"
27047       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27048     ;;
27049     *)
27050       CFLAGS="$CFLAGS -fPIC"
27051       LDFLAGS="$LDFLAGS -fPIC -shared"
27052     ;;
27053   esac
27054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27055 $as_echo_n "checking for -fPIC -shared... " >&6; }
27056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27057 /* end confdefs.h.  */
27058 extern int X;
27059 int
27060 main ()
27061 {
27062 return X == 0;
27063   ;
27064   return 0;
27065 }
27066 _ACEOF
27067 if ac_fn_c_try_link "$LINENO"; then :
27068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27069 $as_echo "yes" >&6; }; have_pic_shared=yes
27070 else
27071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27072 $as_echo "no" >&6; }; have_pic_shared=no
27073 fi
27074 rm -f core conftest.err conftest.$ac_objext \
27075     conftest$ac_exeext conftest.$ac_ext
27076   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27077     pluginlibs=
27078     enable_plugin=no
27079   fi
27080   LDFLAGS="$saved_LDFLAGS"
27081   CFLAGS="$saved_CFLAGS"
27082
27083   # If plugin support had been requested but not available, fail.
27084   if test x"$enable_plugin" = x"no" ; then
27085     if test x"$default_plugin" != x"yes"; then
27086       as_fn_error "
27087 Building GCC with plugin support requires a host that supports
27088 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27089     fi
27090   fi
27091 fi
27092
27093
27094
27095 if test x"$enable_plugin" = x"yes"; then
27096
27097 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27098
27099 fi
27100
27101
27102 # Check whether --enable-libquadmath-support was given.
27103 if test "${enable_libquadmath_support+set}" = set; then :
27104   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27105 else
27106   ENABLE_LIBQUADMATH_SUPPORT=yes
27107 fi
27108
27109 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27110
27111 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27112
27113 fi
27114
27115
27116 # Specify what hash style to use by default.
27117
27118 # Check whether --with-linker-hash-style was given.
27119 if test "${with_linker_hash_style+set}" = set; then :
27120   withval=$with_linker_hash_style; case x"$withval" in
27121    xsysv)
27122      LINKER_HASH_STYLE=sysv
27123      ;;
27124    xgnu)
27125      LINKER_HASH_STYLE=gnu
27126      ;;
27127    xboth)
27128      LINKER_HASH_STYLE=both
27129      ;;
27130    *)
27131      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27132      ;;
27133  esac
27134 else
27135   LINKER_HASH_STYLE=''
27136 fi
27137
27138 if test x"${LINKER_HASH_STYLE}" != x; then
27139
27140 cat >>confdefs.h <<_ACEOF
27141 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27142 _ACEOF
27143
27144 fi
27145
27146 # Configure the subdirectories
27147 # AC_CONFIG_SUBDIRS($subdirs)
27148
27149 # Create the Makefile
27150 # and configure language subdirectories
27151 ac_config_files="$ac_config_files $all_outputs"
27152
27153
27154 ac_config_commands="$ac_config_commands default"
27155
27156 cat >confcache <<\_ACEOF
27157 # This file is a shell script that caches the results of configure
27158 # tests run on this system so they can be shared between configure
27159 # scripts and configure runs, see configure's option --config-cache.
27160 # It is not useful on other systems.  If it contains results you don't
27161 # want to keep, you may remove or edit it.
27162 #
27163 # config.status only pays attention to the cache file if you give it
27164 # the --recheck option to rerun configure.
27165 #
27166 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27167 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27168 # following values.
27169
27170 _ACEOF
27171
27172 # The following way of writing the cache mishandles newlines in values,
27173 # but we know of no workaround that is simple, portable, and efficient.
27174 # So, we kill variables containing newlines.
27175 # Ultrix sh set writes to stderr and can't be redirected directly,
27176 # and sets the high bit in the cache file unless we assign to the vars.
27177 (
27178   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27179     eval ac_val=\$$ac_var
27180     case $ac_val in #(
27181     *${as_nl}*)
27182       case $ac_var in #(
27183       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27184 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27185       esac
27186       case $ac_var in #(
27187       _ | IFS | as_nl) ;; #(
27188       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27189       *) { eval $ac_var=; unset $ac_var;} ;;
27190       esac ;;
27191     esac
27192   done
27193
27194   (set) 2>&1 |
27195     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27196     *${as_nl}ac_space=\ *)
27197       # `set' does not quote correctly, so add quotes: double-quote
27198       # substitution turns \\\\ into \\, and sed turns \\ into \.
27199       sed -n \
27200         "s/'/'\\\\''/g;
27201           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27202       ;; #(
27203     *)
27204       # `set' quotes correctly as required by POSIX, so do not add quotes.
27205       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27206       ;;
27207     esac |
27208     sort
27209 ) |
27210   sed '
27211      /^ac_cv_env_/b end
27212      t clear
27213      :clear
27214      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27215      t end
27216      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27217      :end' >>confcache
27218 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27219   if test -w "$cache_file"; then
27220     test "x$cache_file" != "x/dev/null" &&
27221       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27222 $as_echo "$as_me: updating cache $cache_file" >&6;}
27223     cat confcache >$cache_file
27224   else
27225     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27226 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27227   fi
27228 fi
27229 rm -f confcache
27230
27231 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27232 # Let make expand exec_prefix.
27233 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27234
27235 DEFS=-DHAVE_CONFIG_H
27236
27237 ac_libobjs=
27238 ac_ltlibobjs=
27239 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27240   # 1. Remove the extension, and $U if already installed.
27241   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27242   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27243   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27244   #    will be set to the directory where LIBOBJS objects are built.
27245   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27246   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27247 done
27248 LIBOBJS=$ac_libobjs
27249
27250 LTLIBOBJS=$ac_ltlibobjs
27251
27252
27253
27254
27255 : ${CONFIG_STATUS=./config.status}
27256 ac_write_fail=0
27257 ac_clean_files_save=$ac_clean_files
27258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27260 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27261 as_write_fail=0
27262 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27263 #! $SHELL
27264 # Generated by $as_me.
27265 # Run this file to recreate the current configuration.
27266 # Compiler output produced by configure, useful for debugging
27267 # configure, is in config.log if it exists.
27268
27269 debug=false
27270 ac_cs_recheck=false
27271 ac_cs_silent=false
27272
27273 SHELL=\${CONFIG_SHELL-$SHELL}
27274 export SHELL
27275 _ASEOF
27276 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27277 ## -------------------- ##
27278 ## M4sh Initialization. ##
27279 ## -------------------- ##
27280
27281 # Be more Bourne compatible
27282 DUALCASE=1; export DUALCASE # for MKS sh
27283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27284   emulate sh
27285   NULLCMD=:
27286   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27287   # is contrary to our usage.  Disable this feature.
27288   alias -g '${1+"$@"}'='"$@"'
27289   setopt NO_GLOB_SUBST
27290 else
27291   case `(set -o) 2>/dev/null` in #(
27292   *posix*) :
27293     set -o posix ;; #(
27294   *) :
27295      ;;
27296 esac
27297 fi
27298
27299
27300 as_nl='
27301 '
27302 export as_nl
27303 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27304 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27305 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27307 # Prefer a ksh shell builtin over an external printf program on Solaris,
27308 # but without wasting forks for bash or zsh.
27309 if test -z "$BASH_VERSION$ZSH_VERSION" \
27310     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27311   as_echo='print -r --'
27312   as_echo_n='print -rn --'
27313 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27314   as_echo='printf %s\n'
27315   as_echo_n='printf %s'
27316 else
27317   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27318     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27319     as_echo_n='/usr/ucb/echo -n'
27320   else
27321     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27322     as_echo_n_body='eval
27323       arg=$1;
27324       case $arg in #(
27325       *"$as_nl"*)
27326         expr "X$arg" : "X\\(.*\\)$as_nl";
27327         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27328       esac;
27329       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27330     '
27331     export as_echo_n_body
27332     as_echo_n='sh -c $as_echo_n_body as_echo'
27333   fi
27334   export as_echo_body
27335   as_echo='sh -c $as_echo_body as_echo'
27336 fi
27337
27338 # The user is always right.
27339 if test "${PATH_SEPARATOR+set}" != set; then
27340   PATH_SEPARATOR=:
27341   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27342     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27343       PATH_SEPARATOR=';'
27344   }
27345 fi
27346
27347
27348 # IFS
27349 # We need space, tab and new line, in precisely that order.  Quoting is
27350 # there to prevent editors from complaining about space-tab.
27351 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27352 # splitting by setting IFS to empty value.)
27353 IFS=" ""        $as_nl"
27354
27355 # Find who we are.  Look in the path if we contain no directory separator.
27356 case $0 in #((
27357   *[\\/]* ) as_myself=$0 ;;
27358   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27359 for as_dir in $PATH
27360 do
27361   IFS=$as_save_IFS
27362   test -z "$as_dir" && as_dir=.
27363     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27364   done
27365 IFS=$as_save_IFS
27366
27367      ;;
27368 esac
27369 # We did not find ourselves, most probably we were run as `sh COMMAND'
27370 # in which case we are not to be found in the path.
27371 if test "x$as_myself" = x; then
27372   as_myself=$0
27373 fi
27374 if test ! -f "$as_myself"; then
27375   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27376   exit 1
27377 fi
27378
27379 # Unset variables that we do not need and which cause bugs (e.g. in
27380 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27381 # suppresses any "Segmentation fault" message there.  '((' could
27382 # trigger a bug in pdksh 5.2.14.
27383 for as_var in BASH_ENV ENV MAIL MAILPATH
27384 do eval test x\${$as_var+set} = xset \
27385   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27386 done
27387 PS1='$ '
27388 PS2='> '
27389 PS4='+ '
27390
27391 # NLS nuisances.
27392 LC_ALL=C
27393 export LC_ALL
27394 LANGUAGE=C
27395 export LANGUAGE
27396
27397 # CDPATH.
27398 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27399
27400
27401 # as_fn_error ERROR [LINENO LOG_FD]
27402 # ---------------------------------
27403 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27404 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27405 # script with status $?, using 1 if that was 0.
27406 as_fn_error ()
27407 {
27408   as_status=$?; test $as_status -eq 0 && as_status=1
27409   if test "$3"; then
27410     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27411     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27412   fi
27413   $as_echo "$as_me: error: $1" >&2
27414   as_fn_exit $as_status
27415 } # as_fn_error
27416
27417
27418 # as_fn_set_status STATUS
27419 # -----------------------
27420 # Set $? to STATUS, without forking.
27421 as_fn_set_status ()
27422 {
27423   return $1
27424 } # as_fn_set_status
27425
27426 # as_fn_exit STATUS
27427 # -----------------
27428 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27429 as_fn_exit ()
27430 {
27431   set +e
27432   as_fn_set_status $1
27433   exit $1
27434 } # as_fn_exit
27435
27436 # as_fn_unset VAR
27437 # ---------------
27438 # Portably unset VAR.
27439 as_fn_unset ()
27440 {
27441   { eval $1=; unset $1;}
27442 }
27443 as_unset=as_fn_unset
27444 # as_fn_append VAR VALUE
27445 # ----------------------
27446 # Append the text in VALUE to the end of the definition contained in VAR. Take
27447 # advantage of any shell optimizations that allow amortized linear growth over
27448 # repeated appends, instead of the typical quadratic growth present in naive
27449 # implementations.
27450 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27451   eval 'as_fn_append ()
27452   {
27453     eval $1+=\$2
27454   }'
27455 else
27456   as_fn_append ()
27457   {
27458     eval $1=\$$1\$2
27459   }
27460 fi # as_fn_append
27461
27462 # as_fn_arith ARG...
27463 # ------------------
27464 # Perform arithmetic evaluation on the ARGs, and store the result in the
27465 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27466 # must be portable across $(()) and expr.
27467 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27468   eval 'as_fn_arith ()
27469   {
27470     as_val=$(( $* ))
27471   }'
27472 else
27473   as_fn_arith ()
27474   {
27475     as_val=`expr "$@" || test $? -eq 1`
27476   }
27477 fi # as_fn_arith
27478
27479
27480 if expr a : '\(a\)' >/dev/null 2>&1 &&
27481    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27482   as_expr=expr
27483 else
27484   as_expr=false
27485 fi
27486
27487 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27488   as_basename=basename
27489 else
27490   as_basename=false
27491 fi
27492
27493 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27494   as_dirname=dirname
27495 else
27496   as_dirname=false
27497 fi
27498
27499 as_me=`$as_basename -- "$0" ||
27500 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27501          X"$0" : 'X\(//\)$' \| \
27502          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27503 $as_echo X/"$0" |
27504     sed '/^.*\/\([^/][^/]*\)\/*$/{
27505             s//\1/
27506             q
27507           }
27508           /^X\/\(\/\/\)$/{
27509             s//\1/
27510             q
27511           }
27512           /^X\/\(\/\).*/{
27513             s//\1/
27514             q
27515           }
27516           s/.*/./; q'`
27517
27518 # Avoid depending upon Character Ranges.
27519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27522 as_cr_digits='0123456789'
27523 as_cr_alnum=$as_cr_Letters$as_cr_digits
27524
27525 ECHO_C= ECHO_N= ECHO_T=
27526 case `echo -n x` in #(((((
27527 -n*)
27528   case `echo 'xy\c'` in
27529   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27530   xy)  ECHO_C='\c';;
27531   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27532        ECHO_T=' ';;
27533   esac;;
27534 *)
27535   ECHO_N='-n';;
27536 esac
27537
27538 rm -f conf$$ conf$$.exe conf$$.file
27539 if test -d conf$$.dir; then
27540   rm -f conf$$.dir/conf$$.file
27541 else
27542   rm -f conf$$.dir
27543   mkdir conf$$.dir 2>/dev/null
27544 fi
27545 if (echo >conf$$.file) 2>/dev/null; then
27546   if ln -s conf$$.file conf$$ 2>/dev/null; then
27547     as_ln_s='ln -s'
27548     # ... but there are two gotchas:
27549     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27550     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27551     # In both cases, we have to default to `cp -p'.
27552     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27553       as_ln_s='cp -p'
27554   elif ln conf$$.file conf$$ 2>/dev/null; then
27555     as_ln_s=ln
27556   else
27557     as_ln_s='cp -p'
27558   fi
27559 else
27560   as_ln_s='cp -p'
27561 fi
27562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27563 rmdir conf$$.dir 2>/dev/null
27564
27565
27566 # as_fn_mkdir_p
27567 # -------------
27568 # Create "$as_dir" as a directory, including parents if necessary.
27569 as_fn_mkdir_p ()
27570 {
27571
27572   case $as_dir in #(
27573   -*) as_dir=./$as_dir;;
27574   esac
27575   test -d "$as_dir" || eval $as_mkdir_p || {
27576     as_dirs=
27577     while :; do
27578       case $as_dir in #(
27579       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27580       *) as_qdir=$as_dir;;
27581       esac
27582       as_dirs="'$as_qdir' $as_dirs"
27583       as_dir=`$as_dirname -- "$as_dir" ||
27584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27585          X"$as_dir" : 'X\(//\)[^/]' \| \
27586          X"$as_dir" : 'X\(//\)$' \| \
27587          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27588 $as_echo X"$as_dir" |
27589     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27590             s//\1/
27591             q
27592           }
27593           /^X\(\/\/\)[^/].*/{
27594             s//\1/
27595             q
27596           }
27597           /^X\(\/\/\)$/{
27598             s//\1/
27599             q
27600           }
27601           /^X\(\/\).*/{
27602             s//\1/
27603             q
27604           }
27605           s/.*/./; q'`
27606       test -d "$as_dir" && break
27607     done
27608     test -z "$as_dirs" || eval "mkdir $as_dirs"
27609   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27610
27611
27612 } # as_fn_mkdir_p
27613 if mkdir -p . 2>/dev/null; then
27614   as_mkdir_p='mkdir -p "$as_dir"'
27615 else
27616   test -d ./-p && rmdir ./-p
27617   as_mkdir_p=false
27618 fi
27619
27620 if test -x / >/dev/null 2>&1; then
27621   as_test_x='test -x'
27622 else
27623   if ls -dL / >/dev/null 2>&1; then
27624     as_ls_L_option=L
27625   else
27626     as_ls_L_option=
27627   fi
27628   as_test_x='
27629     eval sh -c '\''
27630       if test -d "$1"; then
27631         test -d "$1/.";
27632       else
27633         case $1 in #(
27634         -*)set "./$1";;
27635         esac;
27636         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27637         ???[sx]*):;;*)false;;esac;fi
27638     '\'' sh
27639   '
27640 fi
27641 as_executable_p=$as_test_x
27642
27643 # Sed expression to map a string onto a valid CPP name.
27644 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27645
27646 # Sed expression to map a string onto a valid variable name.
27647 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27648
27649
27650 exec 6>&1
27651 ## ----------------------------------- ##
27652 ## Main body of $CONFIG_STATUS script. ##
27653 ## ----------------------------------- ##
27654 _ASEOF
27655 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27656
27657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27658 # Save the log message, to keep $0 and so on meaningful, and to
27659 # report actual input values of CONFIG_FILES etc. instead of their
27660 # values after options handling.
27661 ac_log="
27662 This file was extended by $as_me, which was
27663 generated by GNU Autoconf 2.64.  Invocation command line was
27664
27665   CONFIG_FILES    = $CONFIG_FILES
27666   CONFIG_HEADERS  = $CONFIG_HEADERS
27667   CONFIG_LINKS    = $CONFIG_LINKS
27668   CONFIG_COMMANDS = $CONFIG_COMMANDS
27669   $ $0 $@
27670
27671 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27672 "
27673
27674 _ACEOF
27675
27676 case $ac_config_files in *"
27677 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27678 esac
27679
27680 case $ac_config_headers in *"
27681 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27682 esac
27683
27684
27685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27686 # Files that config.status was made for.
27687 config_files="$ac_config_files"
27688 config_headers="$ac_config_headers"
27689 config_commands="$ac_config_commands"
27690
27691 _ACEOF
27692
27693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27694 ac_cs_usage="\
27695 \`$as_me' instantiates files and other configuration actions
27696 from templates according to the current configuration.  Unless the files
27697 and actions are specified as TAGs, all are instantiated by default.
27698
27699 Usage: $0 [OPTION]... [TAG]...
27700
27701   -h, --help       print this help, then exit
27702   -V, --version    print version number and configuration settings, then exit
27703   -q, --quiet, --silent
27704                    do not print progress messages
27705   -d, --debug      don't remove temporary files
27706       --recheck    update $as_me by reconfiguring in the same conditions
27707       --file=FILE[:TEMPLATE]
27708                    instantiate the configuration file FILE
27709       --header=FILE[:TEMPLATE]
27710                    instantiate the configuration header FILE
27711
27712 Configuration files:
27713 $config_files
27714
27715 Configuration headers:
27716 $config_headers
27717
27718 Configuration commands:
27719 $config_commands
27720
27721 Report bugs to the package provider."
27722
27723 _ACEOF
27724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27725 ac_cs_version="\\
27726 config.status
27727 configured by $0, generated by GNU Autoconf 2.64,
27728   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27729
27730 Copyright (C) 2009 Free Software Foundation, Inc.
27731 This config.status script is free software; the Free Software Foundation
27732 gives unlimited permission to copy, distribute and modify it."
27733
27734 ac_pwd='$ac_pwd'
27735 srcdir='$srcdir'
27736 AWK='$AWK'
27737 test -n "\$AWK" || AWK=awk
27738 _ACEOF
27739
27740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27741 # The default lists apply if the user does not specify any file.
27742 ac_need_defaults=:
27743 while test $# != 0
27744 do
27745   case $1 in
27746   --*=*)
27747     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27748     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27749     ac_shift=:
27750     ;;
27751   *)
27752     ac_option=$1
27753     ac_optarg=$2
27754     ac_shift=shift
27755     ;;
27756   esac
27757
27758   case $ac_option in
27759   # Handling of the options.
27760   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27761     ac_cs_recheck=: ;;
27762   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27763     $as_echo "$ac_cs_version"; exit ;;
27764   --debug | --debu | --deb | --de | --d | -d )
27765     debug=: ;;
27766   --file | --fil | --fi | --f )
27767     $ac_shift
27768     case $ac_optarg in
27769     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27770     esac
27771     as_fn_append CONFIG_FILES " '$ac_optarg'"
27772     ac_need_defaults=false;;
27773   --header | --heade | --head | --hea )
27774     $ac_shift
27775     case $ac_optarg in
27776     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27777     esac
27778     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27779     ac_need_defaults=false;;
27780   --he | --h)
27781     # Conflict between --help and --header
27782     as_fn_error "ambiguous option: \`$1'
27783 Try \`$0 --help' for more information.";;
27784   --help | --hel | -h )
27785     $as_echo "$ac_cs_usage"; exit ;;
27786   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27787   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27788     ac_cs_silent=: ;;
27789
27790   # This is an error.
27791   -*) as_fn_error "unrecognized option: \`$1'
27792 Try \`$0 --help' for more information." ;;
27793
27794   *) as_fn_append ac_config_targets " $1"
27795      ac_need_defaults=false ;;
27796
27797   esac
27798   shift
27799 done
27800
27801 ac_configure_extra_args=
27802
27803 if $ac_cs_silent; then
27804   exec 6>/dev/null
27805   ac_configure_extra_args="$ac_configure_extra_args --silent"
27806 fi
27807
27808 _ACEOF
27809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27810 if \$ac_cs_recheck; then
27811   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27812   shift
27813   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27814   CONFIG_SHELL='$SHELL'
27815   export CONFIG_SHELL
27816   exec "\$@"
27817 fi
27818
27819 _ACEOF
27820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27821 exec 5>>config.log
27822 {
27823   echo
27824   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27825 ## Running $as_me. ##
27826 _ASBOX
27827   $as_echo "$ac_log"
27828 } >&5
27829
27830 _ACEOF
27831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27832 #
27833 # INIT-COMMANDS
27834 #
27835 subdirs='$subdirs'
27836
27837 _ACEOF
27838
27839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27840
27841 # Handling of arguments.
27842 for ac_config_target in $ac_config_targets
27843 do
27844   case $ac_config_target in
27845     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27846     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27847     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27848     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27849     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27850     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27851
27852   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27853   esac
27854 done
27855
27856
27857 # If the user did not use the arguments to specify the items to instantiate,
27858 # then the envvar interface is used.  Set only those that are not.
27859 # We use the long form for the default assignment because of an extremely
27860 # bizarre bug on SunOS 4.1.3.
27861 if $ac_need_defaults; then
27862   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27863   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27864   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27865 fi
27866
27867 # Have a temporary directory for convenience.  Make it in the build tree
27868 # simply because there is no reason against having it here, and in addition,
27869 # creating and moving files from /tmp can sometimes cause problems.
27870 # Hook for its removal unless debugging.
27871 # Note that there is a small window in which the directory will not be cleaned:
27872 # after its creation but before its name has been assigned to `$tmp'.
27873 $debug ||
27874 {
27875   tmp=
27876   trap 'exit_status=$?
27877   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27878 ' 0
27879   trap 'as_fn_exit 1' 1 2 13 15
27880 }
27881 # Create a (secure) tmp directory for tmp files.
27882
27883 {
27884   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27885   test -n "$tmp" && test -d "$tmp"
27886 }  ||
27887 {
27888   tmp=./conf$$-$RANDOM
27889   (umask 077 && mkdir "$tmp")
27890 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27891
27892 # Set up the scripts for CONFIG_FILES section.
27893 # No need to generate them if there are no CONFIG_FILES.
27894 # This happens for instance with `./config.status config.h'.
27895 if test -n "$CONFIG_FILES"; then
27896
27897 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27898   ac_cs_awk_getline=:
27899   ac_cs_awk_pipe_init=
27900   ac_cs_awk_read_file='
27901       while ((getline aline < (F[key])) > 0)
27902         print(aline)
27903       close(F[key])'
27904   ac_cs_awk_pipe_fini=
27905 else
27906   ac_cs_awk_getline=false
27907   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27908   ac_cs_awk_read_file='
27909       print "|#_!!_#|"
27910       print "cat " F[key] " &&"
27911       '$ac_cs_awk_pipe_init
27912   # The final `:' finishes the AND list.
27913   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27914 fi
27915 ac_cr=`echo X | tr X '\015'`
27916 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27917 # But we know of no other shell where ac_cr would be empty at this
27918 # point, so we can use a bashism as a fallback.
27919 if test "x$ac_cr" = x; then
27920   eval ac_cr=\$\'\\r\'
27921 fi
27922 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27923 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27924   ac_cs_awk_cr='\r'
27925 else
27926   ac_cs_awk_cr=$ac_cr
27927 fi
27928
27929 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27930 _ACEOF
27931
27932 # Create commands to substitute file output variables.
27933 {
27934   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27935   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27936   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27937   echo "_ACAWK" &&
27938   echo "_ACEOF"
27939 } >conf$$files.sh &&
27940 . ./conf$$files.sh ||
27941   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27942 rm -f conf$$files.sh
27943
27944 {
27945   echo "cat >conf$$subs.awk <<_ACEOF" &&
27946   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27947   echo "_ACEOF"
27948 } >conf$$subs.sh ||
27949   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27950 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27951 ac_delim='%!_!# '
27952 for ac_last_try in false false false false false :; do
27953   . ./conf$$subs.sh ||
27954     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27955
27956   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27957   if test $ac_delim_n = $ac_delim_num; then
27958     break
27959   elif $ac_last_try; then
27960     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27961   else
27962     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27963   fi
27964 done
27965 rm -f conf$$subs.sh
27966
27967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27968 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27969 _ACEOF
27970 sed -n '
27971 h
27972 s/^/S["/; s/!.*/"]=/
27973 p
27974 g
27975 s/^[^!]*!//
27976 :repl
27977 t repl
27978 s/'"$ac_delim"'$//
27979 t delim
27980 :nl
27981 h
27982 s/\(.\{148\}\).*/\1/
27983 t more1
27984 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27985 p
27986 n
27987 b repl
27988 :more1
27989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27990 p
27991 g
27992 s/.\{148\}//
27993 t nl
27994 :delim
27995 h
27996 s/\(.\{148\}\).*/\1/
27997 t more2
27998 s/["\\]/\\&/g; s/^/"/; s/$/"/
27999 p
28000 b
28001 :more2
28002 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28003 p
28004 g
28005 s/.\{148\}//
28006 t delim
28007 ' <conf$$subs.awk | sed '
28008 /^[^""]/{
28009   N
28010   s/\n//
28011 }
28012 ' >>$CONFIG_STATUS || ac_write_fail=1
28013 rm -f conf$$subs.awk
28014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28015 _ACAWK
28016 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28017   for (key in S) S_is_set[key] = 1
28018   FS = "\a"
28019   \$ac_cs_awk_pipe_init
28020 }
28021 {
28022   line = $ 0
28023   nfields = split(line, field, "@")
28024   substed = 0
28025   len = length(field[1])
28026   for (i = 2; i < nfields; i++) {
28027     key = field[i]
28028     keylen = length(key)
28029     if (S_is_set[key]) {
28030       value = S[key]
28031       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28032       len += length(value) + length(field[++i])
28033       substed = 1
28034     } else
28035       len += 1 + keylen
28036   }
28037   if (nfields == 3 && !substed) {
28038     key = field[2]
28039     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
28040       \$ac_cs_awk_read_file
28041       next
28042     }
28043   }
28044   print line
28045 }
28046 \$ac_cs_awk_pipe_fini
28047 _ACAWK
28048 _ACEOF
28049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28050 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28051   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28052 else
28053   cat
28054 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28055   || as_fn_error "could not setup config files machinery" "$LINENO" 5
28056 _ACEOF
28057
28058 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28059 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28060 # trailing colons and then remove the whole line if VPATH becomes empty
28061 # (actually we leave an empty line to preserve line numbers).
28062 if test "x$srcdir" = x.; then
28063   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28064 s/:*\$(srcdir):*/:/
28065 s/:*\${srcdir}:*/:/
28066 s/:*@srcdir@:*/:/
28067 s/^\([^=]*=[     ]*\):*/\1/
28068 s/:*$//
28069 s/^[^=]*=[       ]*$//
28070 }'
28071 fi
28072
28073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28074 fi # test -n "$CONFIG_FILES"
28075
28076 # Set up the scripts for CONFIG_HEADERS section.
28077 # No need to generate them if there are no CONFIG_HEADERS.
28078 # This happens for instance with `./config.status Makefile'.
28079 if test -n "$CONFIG_HEADERS"; then
28080 cat >"$tmp/defines.awk" <<\_ACAWK ||
28081 BEGIN {
28082 _ACEOF
28083
28084 # Transform confdefs.h into an awk script `defines.awk', embedded as
28085 # here-document in config.status, that substitutes the proper values into
28086 # config.h.in to produce config.h.
28087
28088 # Create a delimiter string that does not exist in confdefs.h, to ease
28089 # handling of long lines.
28090 ac_delim='%!_!# '
28091 for ac_last_try in false false :; do
28092   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28093   if test -z "$ac_t"; then
28094     break
28095   elif $ac_last_try; then
28096     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28097   else
28098     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28099   fi
28100 done
28101
28102 # For the awk script, D is an array of macro values keyed by name,
28103 # likewise P contains macro parameters if any.  Preserve backslash
28104 # newline sequences.
28105
28106 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28107 sed -n '
28108 s/.\{148\}/&'"$ac_delim"'/g
28109 t rset
28110 :rset
28111 s/^[     ]*#[    ]*define[       ][      ]*/ /
28112 t def
28113 d
28114 :def
28115 s/\\$//
28116 t bsnl
28117 s/["\\]/\\&/g
28118 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28119 D["\1"]=" \3"/p
28120 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28121 d
28122 :bsnl
28123 s/["\\]/\\&/g
28124 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28125 D["\1"]=" \3\\\\\\n"\\/p
28126 t cont
28127 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28128 t cont
28129 d
28130 :cont
28131 n
28132 s/.\{148\}/&'"$ac_delim"'/g
28133 t clear
28134 :clear
28135 s/\\$//
28136 t bsnlc
28137 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28138 d
28139 :bsnlc
28140 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28141 b cont
28142 ' <confdefs.h | sed '
28143 s/'"$ac_delim"'/"\\\
28144 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28145
28146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28147   for (key in D) D_is_set[key] = 1
28148   FS = "\a"
28149 }
28150 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28151   line = \$ 0
28152   split(line, arg, " ")
28153   if (arg[1] == "#") {
28154     defundef = arg[2]
28155     mac1 = arg[3]
28156   } else {
28157     defundef = substr(arg[1], 2)
28158     mac1 = arg[2]
28159   }
28160   split(mac1, mac2, "(") #)
28161   macro = mac2[1]
28162   prefix = substr(line, 1, index(line, defundef) - 1)
28163   if (D_is_set[macro]) {
28164     # Preserve the white space surrounding the "#".
28165     print prefix "define", macro P[macro] D[macro]
28166     next
28167   } else {
28168     # Replace #undef with comments.  This is necessary, for example,
28169     # in the case of _POSIX_SOURCE, which is predefined and required
28170     # on some systems where configure will not decide to define it.
28171     if (defundef == "undef") {
28172       print "/*", prefix defundef, macro, "*/"
28173       next
28174     }
28175   }
28176 }
28177 { print }
28178 _ACAWK
28179 _ACEOF
28180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28181   as_fn_error "could not setup config headers machinery" "$LINENO" 5
28182 fi # test -n "$CONFIG_HEADERS"
28183
28184
28185 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28186 shift
28187 for ac_tag
28188 do
28189   case $ac_tag in
28190   :[FHLC]) ac_mode=$ac_tag; continue;;
28191   esac
28192   case $ac_mode$ac_tag in
28193   :[FHL]*:*);;
28194   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28195   :[FH]-) ac_tag=-:-;;
28196   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28197   esac
28198   ac_save_IFS=$IFS
28199   IFS=:
28200   set x $ac_tag
28201   IFS=$ac_save_IFS
28202   shift
28203   ac_file=$1
28204   shift
28205
28206   case $ac_mode in
28207   :L) ac_source=$1;;
28208   :[FH])
28209     ac_file_inputs=
28210     for ac_f
28211     do
28212       case $ac_f in
28213       -) ac_f="$tmp/stdin";;
28214       *) # Look for the file first in the build tree, then in the source tree
28215          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28216          # because $ac_f cannot contain `:'.
28217          test -f "$ac_f" ||
28218            case $ac_f in
28219            [\\/$]*) false;;
28220            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28221            esac ||
28222            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28223       esac
28224       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28225       as_fn_append ac_file_inputs " '$ac_f'"
28226     done
28227
28228     # Let's still pretend it is `configure' which instantiates (i.e., don't
28229     # use $as_me), people would be surprised to read:
28230     #    /* config.h.  Generated by config.status.  */
28231     configure_input='Generated from '`
28232           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28233         `' by configure.'
28234     if test x"$ac_file" != x-; then
28235       configure_input="$ac_file.  $configure_input"
28236       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28237 $as_echo "$as_me: creating $ac_file" >&6;}
28238     fi
28239     # Neutralize special characters interpreted by sed in replacement strings.
28240     case $configure_input in #(
28241     *\&* | *\|* | *\\* )
28242        ac_sed_conf_input=`$as_echo "$configure_input" |
28243        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28244     *) ac_sed_conf_input=$configure_input;;
28245     esac
28246
28247     case $ac_tag in
28248     *:-:* | *:-) cat >"$tmp/stdin" \
28249       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28250     esac
28251     ;;
28252   esac
28253
28254   ac_dir=`$as_dirname -- "$ac_file" ||
28255 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28256          X"$ac_file" : 'X\(//\)[^/]' \| \
28257          X"$ac_file" : 'X\(//\)$' \| \
28258          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28259 $as_echo X"$ac_file" |
28260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28261             s//\1/
28262             q
28263           }
28264           /^X\(\/\/\)[^/].*/{
28265             s//\1/
28266             q
28267           }
28268           /^X\(\/\/\)$/{
28269             s//\1/
28270             q
28271           }
28272           /^X\(\/\).*/{
28273             s//\1/
28274             q
28275           }
28276           s/.*/./; q'`
28277   as_dir="$ac_dir"; as_fn_mkdir_p
28278   ac_builddir=.
28279
28280 case "$ac_dir" in
28281 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28282 *)
28283   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28284   # A ".." for each directory in $ac_dir_suffix.
28285   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28286   case $ac_top_builddir_sub in
28287   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28288   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28289   esac ;;
28290 esac
28291 ac_abs_top_builddir=$ac_pwd
28292 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28293 # for backward compatibility:
28294 ac_top_builddir=$ac_top_build_prefix
28295
28296 case $srcdir in
28297   .)  # We are building in place.
28298     ac_srcdir=.
28299     ac_top_srcdir=$ac_top_builddir_sub
28300     ac_abs_top_srcdir=$ac_pwd ;;
28301   [\\/]* | ?:[\\/]* )  # Absolute name.
28302     ac_srcdir=$srcdir$ac_dir_suffix;
28303     ac_top_srcdir=$srcdir
28304     ac_abs_top_srcdir=$srcdir ;;
28305   *) # Relative name.
28306     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28307     ac_top_srcdir=$ac_top_build_prefix$srcdir
28308     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28309 esac
28310 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28311
28312
28313   case $ac_mode in
28314   :F)
28315   #
28316   # CONFIG_FILE
28317   #
28318
28319 _ACEOF
28320
28321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28322 # If the template does not know about datarootdir, expand it.
28323 # FIXME: This hack should be removed a few years after 2.60.
28324 ac_datarootdir_hack=; ac_datarootdir_seen=
28325 ac_sed_dataroot='
28326 /datarootdir/ {
28327   p
28328   q
28329 }
28330 /@datadir@/p
28331 /@docdir@/p
28332 /@infodir@/p
28333 /@localedir@/p
28334 /@mandir@/p'
28335 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28336 *datarootdir*) ac_datarootdir_seen=yes;;
28337 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28338   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28339 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28340 _ACEOF
28341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28342   ac_datarootdir_hack='
28343   s&@datadir@&$datadir&g
28344   s&@docdir@&$docdir&g
28345   s&@infodir@&$infodir&g
28346   s&@localedir@&$localedir&g
28347   s&@mandir@&$mandir&g
28348   s&\\\${datarootdir}&$datarootdir&g' ;;
28349 esac
28350 _ACEOF
28351
28352 # Neutralize VPATH when `$srcdir' = `.'.
28353 # Shell code in configure.ac might set extrasub.
28354 # FIXME: do we really want to maintain this feature?
28355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28356 ac_sed_extra="$ac_vpsub
28357 $extrasub
28358 _ACEOF
28359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28360 :t
28361 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28362 s|@configure_input@|$ac_sed_conf_input|;t t
28363 s&@top_builddir@&$ac_top_builddir_sub&;t t
28364 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28365 s&@srcdir@&$ac_srcdir&;t t
28366 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28367 s&@top_srcdir@&$ac_top_srcdir&;t t
28368 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28369 s&@builddir@&$ac_builddir&;t t
28370 s&@abs_builddir@&$ac_abs_builddir&;t t
28371 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28372 $ac_datarootdir_hack
28373 "
28374 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28375 if $ac_cs_awk_getline; then
28376   $AWK -f "$tmp/subs.awk"
28377 else
28378   $AWK -f "$tmp/subs.awk" | $SHELL
28379 fi >$tmp/out \
28380   || as_fn_error "could not create $ac_file" "$LINENO" 5
28381
28382 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28383   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28384   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28385   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28386 which seems to be undefined.  Please make sure it is defined." >&5
28387 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28388 which seems to be undefined.  Please make sure it is defined." >&2;}
28389
28390   rm -f "$tmp/stdin"
28391   case $ac_file in
28392   -) cat "$tmp/out" && rm -f "$tmp/out";;
28393   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28394   esac \
28395   || as_fn_error "could not create $ac_file" "$LINENO" 5
28396  ;;
28397   :H)
28398   #
28399   # CONFIG_HEADER
28400   #
28401   if test x"$ac_file" != x-; then
28402     {
28403       $as_echo "/* $configure_input  */" \
28404       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28405     } >"$tmp/config.h" \
28406       || as_fn_error "could not create $ac_file" "$LINENO" 5
28407     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28408       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28409 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28410     else
28411       rm -f "$ac_file"
28412       mv "$tmp/config.h" "$ac_file" \
28413         || as_fn_error "could not create $ac_file" "$LINENO" 5
28414     fi
28415   else
28416     $as_echo "/* $configure_input  */" \
28417       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28418       || as_fn_error "could not create -" "$LINENO" 5
28419   fi
28420  ;;
28421
28422   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28423 $as_echo "$as_me: executing $ac_file commands" >&6;}
28424  ;;
28425   esac
28426
28427
28428   case $ac_file$ac_mode in
28429     "as":F) chmod +x as ;;
28430     "collect-ld":F) chmod +x collect-ld ;;
28431     "nm":F) chmod +x nm ;;
28432     "default":C)
28433 case ${CONFIG_HEADERS} in
28434   *auto-host.h:config.in*)
28435   echo > cstamp-h ;;
28436 esac
28437 # Make sure all the subdirs exist.
28438 for d in $subdirs doc build common c-family
28439 do
28440     test -d $d || mkdir $d
28441 done
28442  ;;
28443
28444   esac
28445 done # for ac_tag
28446
28447
28448 as_fn_exit 0
28449 _ACEOF
28450 ac_clean_files=$ac_clean_files_save
28451
28452 test $ac_write_fail = 0 ||
28453   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28454
28455
28456 # configure is writing to config.log, and then calls config.status.
28457 # config.status does its own redirection, appending to config.log.
28458 # Unfortunately, on DOS this fails, as config.log is still kept open
28459 # by configure, so config.status won't be able to write to it; its
28460 # output is simply discarded.  So we exec the FD to /dev/null,
28461 # effectively closing config.log, so it can be properly (re)opened and
28462 # appended to by config.status.  When coming back to configure, we
28463 # need to make the FD available again.
28464 if test "$no_create" != yes; then
28465   ac_cs_success=:
28466   ac_config_status_args=
28467   test "$silent" = yes &&
28468     ac_config_status_args="$ac_config_status_args --quiet"
28469   exec 5>/dev/null
28470   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28471   exec 5>>config.log
28472   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28473   # would make configure fail if this is the last instruction.
28474   $ac_cs_success || as_fn_exit $?
28475 fi
28476 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28477   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28478 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28479 fi
28480
28481