OSDN Git Service

Properly test for madvise on Solaris 10 (PR bootstrap/50777)
[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 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXCPP
743 AR
744 NM
745 BISON
746 FLEX
747 GENERATED_MANPAGES
748 BUILD_INFO
749 MAKEINFO
750 have_mktemp_command
751 make_compare_target
752 INSTALL_DATA
753 INSTALL_PROGRAM
754 INSTALL
755 ranlib_flags
756 RANLIB
757 LN
758 LN_S
759 AWK
760 SET_MAKE
761 REPORT_BUGS_TEXI
762 REPORT_BUGS_TO
763 PKGVERSION
764 CONFIGURE_SPECS
765 CROSS_SYSTEM_HEADER_DIR
766 TARGET_SYSTEM_ROOT_DEFINE
767 TARGET_SYSTEM_ROOT
768 SYSROOT_CFLAGS_FOR_TARGET
769 enable_shared
770 enable_fixed_point
771 enable_decimal_float
772 enable_multilib
773 ENABLE_BUILD_WITH_CXX
774 coverage_flags
775 valgrind_command
776 valgrind_path_defines
777 valgrind_path
778 TREEBROWSER
779 nocommon_flag
780 warn_cxxflags
781 warn_cflags
782 c_strict_warn
783 strict_warn
784 c_loose_warn
785 loose_warn
786 EGREP
787 GREP
788 CPP
789 PICFLAG_FOR_TARGET
790 OUTPUT_OPTION
791 NO_MINUS_C_MINUS_O
792 GNATMAKE
793 GNATBIND
794 ac_ct_CXX
795 CXXFLAGS
796 CXX
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
803 CC
804 GENINSRC
805 target_subdir
806 host_subdir
807 build_subdir
808 build_libsubdir
809 target_noncanonical
810 target_os
811 target_vendor
812 target_cpu
813 target
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 target_alias
823 host_alias
824 build_alias
825 LIBS
826 ECHO_T
827 ECHO_N
828 ECHO_C
829 DEFS
830 mandir
831 localedir
832 libdir
833 psdir
834 pdfdir
835 dvidir
836 htmldir
837 infodir
838 docdir
839 oldincludedir
840 includedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files='option_includes
861 language_hooks'
862 ac_user_opts='
863 enable_option_checking
864 with_build_libsubdir
865 with_local_prefix
866 with_gxx_include_dir
867 with_cpp_install_dir
868 enable_generated_files_in_srcdir
869 with_gnu_ld
870 with_ld
871 with_demangler_in_ld
872 with_gnu_as
873 with_as
874 enable_largefile
875 enable_werror_always
876 enable_checking
877 enable_coverage
878 enable_gather_detailed_mem_stats
879 enable_build_with_cxx
880 with_stabs
881 enable_multilib
882 enable___cxa_atexit
883 enable_decimal_float
884 enable_fixed_point
885 enable_threads
886 enable_tls
887 enable_objc_gc
888 with_dwarf2
889 enable_shared
890 with_native_system_header_dir
891 with_build_sysroot
892 with_sysroot
893 with_specs
894 with_pkgversion
895 with_bugurl
896 enable_languages
897 with_multilib_list
898 enable_rpath
899 with_libiconv_prefix
900 enable_initfini_array
901 enable_sjlj_exceptions
902 enable_secureplt
903 enable_leading_mingw64_underscores
904 enable_cld
905 enable_frame_pointer
906 enable_win32_registry
907 enable_static
908 with_pic
909 enable_fast_install
910 enable_libtool_lock
911 with_plugin_ld
912 enable_gnu_indirect_function
913 enable_comdat
914 enable_gnu_unique_object
915 enable_linker_build_id
916 with_long_double_128
917 with_gc
918 with_system_zlib
919 enable_maintainer_mode
920 enable_version_specific_runtime_libs
921 with_slibdir
922 enable_plugin
923 enable_libquadmath_support
924 with_linker_hash_style
925 '
926       ac_precious_vars='build_alias
927 host_alias
928 target_alias
929 CC
930 CFLAGS
931 LDFLAGS
932 LIBS
933 CPPFLAGS
934 CXX
935 CXXFLAGS
936 CCC
937 CPP
938 CXXCPP
939 GMPLIBS
940 GMPINC
941 PPLLIBS
942 PPLINC
943 CLOOGLIBS
944 CLOOGINC'
945
946
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
968
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
994
995 ac_prev=
996 ac_dashdash=
997 for ac_option
998 do
999   # If the previous option needs an argument, assign it.
1000   if test -n "$ac_prev"; then
1001     eval $ac_prev=\$ac_option
1002     ac_prev=
1003     continue
1004   fi
1005
1006   case $ac_option in
1007   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008   *)    ac_optarg=yes ;;
1009   esac
1010
1011   # Accept the important Cygnus configure options, so we can diagnose typos.
1012
1013   case $ac_dashdash$ac_option in
1014   --)
1015     ac_dashdash=yes ;;
1016
1017   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018     ac_prev=bindir ;;
1019   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020     bindir=$ac_optarg ;;
1021
1022   -build | --build | --buil | --bui | --bu)
1023     ac_prev=build_alias ;;
1024   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025     build_alias=$ac_optarg ;;
1026
1027   -cache-file | --cache-file | --cache-fil | --cache-fi \
1028   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029     ac_prev=cache_file ;;
1030   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032     cache_file=$ac_optarg ;;
1033
1034   --config-cache | -C)
1035     cache_file=config.cache ;;
1036
1037   -datadir | --datadir | --datadi | --datad)
1038     ac_prev=datadir ;;
1039   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040     datadir=$ac_optarg ;;
1041
1042   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043   | --dataroo | --dataro | --datar)
1044     ac_prev=datarootdir ;;
1045   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047     datarootdir=$ac_optarg ;;
1048
1049   -disable-* | --disable-*)
1050     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053       as_fn_error "invalid feature name: $ac_useropt"
1054     ac_useropt_orig=$ac_useropt
1055     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056     case $ac_user_opts in
1057       *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061          ac_unrecognized_sep=', ';;
1062     esac
1063     eval enable_$ac_useropt=no ;;
1064
1065   -docdir | --docdir | --docdi | --doc | --do)
1066     ac_prev=docdir ;;
1067   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068     docdir=$ac_optarg ;;
1069
1070   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071     ac_prev=dvidir ;;
1072   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073     dvidir=$ac_optarg ;;
1074
1075   -enable-* | --enable-*)
1076     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077     # Reject names that are not valid shell variable names.
1078     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079       as_fn_error "invalid feature name: $ac_useropt"
1080     ac_useropt_orig=$ac_useropt
1081     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082     case $ac_user_opts in
1083       *"
1084 "enable_$ac_useropt"
1085 "*) ;;
1086       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087          ac_unrecognized_sep=', ';;
1088     esac
1089     eval enable_$ac_useropt=\$ac_optarg ;;
1090
1091   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093   | --exec | --exe | --ex)
1094     ac_prev=exec_prefix ;;
1095   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097   | --exec=* | --exe=* | --ex=*)
1098     exec_prefix=$ac_optarg ;;
1099
1100   -gas | --gas | --ga | --g)
1101     # Obsolete; use --with-gas.
1102     with_gas=yes ;;
1103
1104   -help | --help | --hel | --he | -h)
1105     ac_init_help=long ;;
1106   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107     ac_init_help=recursive ;;
1108   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109     ac_init_help=short ;;
1110
1111   -host | --host | --hos | --ho)
1112     ac_prev=host_alias ;;
1113   -host=* | --host=* | --hos=* | --ho=*)
1114     host_alias=$ac_optarg ;;
1115
1116   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117     ac_prev=htmldir ;;
1118   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119   | --ht=*)
1120     htmldir=$ac_optarg ;;
1121
1122   -includedir | --includedir | --includedi | --included | --include \
1123   | --includ | --inclu | --incl | --inc)
1124     ac_prev=includedir ;;
1125   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126   | --includ=* | --inclu=* | --incl=* | --inc=*)
1127     includedir=$ac_optarg ;;
1128
1129   -infodir | --infodir | --infodi | --infod | --info | --inf)
1130     ac_prev=infodir ;;
1131   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132     infodir=$ac_optarg ;;
1133
1134   -libdir | --libdir | --libdi | --libd)
1135     ac_prev=libdir ;;
1136   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137     libdir=$ac_optarg ;;
1138
1139   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140   | --libexe | --libex | --libe)
1141     ac_prev=libexecdir ;;
1142   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143   | --libexe=* | --libex=* | --libe=*)
1144     libexecdir=$ac_optarg ;;
1145
1146   -localedir | --localedir | --localedi | --localed | --locale)
1147     ac_prev=localedir ;;
1148   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149     localedir=$ac_optarg ;;
1150
1151   -localstatedir | --localstatedir | --localstatedi | --localstated \
1152   | --localstate | --localstat | --localsta | --localst | --locals)
1153     ac_prev=localstatedir ;;
1154   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156     localstatedir=$ac_optarg ;;
1157
1158   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159     ac_prev=mandir ;;
1160   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161     mandir=$ac_optarg ;;
1162
1163   -nfp | --nfp | --nf)
1164     # Obsolete; use --without-fp.
1165     with_fp=no ;;
1166
1167   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168   | --no-cr | --no-c | -n)
1169     no_create=yes ;;
1170
1171   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173     no_recursion=yes ;;
1174
1175   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177   | --oldin | --oldi | --old | --ol | --o)
1178     ac_prev=oldincludedir ;;
1179   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182     oldincludedir=$ac_optarg ;;
1183
1184   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185     ac_prev=prefix ;;
1186   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187     prefix=$ac_optarg ;;
1188
1189   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190   | --program-pre | --program-pr | --program-p)
1191     ac_prev=program_prefix ;;
1192   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194     program_prefix=$ac_optarg ;;
1195
1196   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197   | --program-suf | --program-su | --program-s)
1198     ac_prev=program_suffix ;;
1199   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201     program_suffix=$ac_optarg ;;
1202
1203   -program-transform-name | --program-transform-name \
1204   | --program-transform-nam | --program-transform-na \
1205   | --program-transform-n | --program-transform- \
1206   | --program-transform | --program-transfor \
1207   | --program-transfo | --program-transf \
1208   | --program-trans | --program-tran \
1209   | --progr-tra | --program-tr | --program-t)
1210     ac_prev=program_transform_name ;;
1211   -program-transform-name=* | --program-transform-name=* \
1212   | --program-transform-nam=* | --program-transform-na=* \
1213   | --program-transform-n=* | --program-transform-=* \
1214   | --program-transform=* | --program-transfor=* \
1215   | --program-transfo=* | --program-transf=* \
1216   | --program-trans=* | --program-tran=* \
1217   | --progr-tra=* | --program-tr=* | --program-t=*)
1218     program_transform_name=$ac_optarg ;;
1219
1220   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221     ac_prev=pdfdir ;;
1222   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223     pdfdir=$ac_optarg ;;
1224
1225   -psdir | --psdir | --psdi | --psd | --ps)
1226     ac_prev=psdir ;;
1227   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228     psdir=$ac_optarg ;;
1229
1230   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231   | -silent | --silent | --silen | --sile | --sil)
1232     silent=yes ;;
1233
1234   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235     ac_prev=sbindir ;;
1236   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237   | --sbi=* | --sb=*)
1238     sbindir=$ac_optarg ;;
1239
1240   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242   | --sharedst | --shareds | --shared | --share | --shar \
1243   | --sha | --sh)
1244     ac_prev=sharedstatedir ;;
1245   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248   | --sha=* | --sh=*)
1249     sharedstatedir=$ac_optarg ;;
1250
1251   -site | --site | --sit)
1252     ac_prev=site ;;
1253   -site=* | --site=* | --sit=*)
1254     site=$ac_optarg ;;
1255
1256   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257     ac_prev=srcdir ;;
1258   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259     srcdir=$ac_optarg ;;
1260
1261   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262   | --syscon | --sysco | --sysc | --sys | --sy)
1263     ac_prev=sysconfdir ;;
1264   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266     sysconfdir=$ac_optarg ;;
1267
1268   -target | --target | --targe | --targ | --tar | --ta | --t)
1269     ac_prev=target_alias ;;
1270   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271     target_alias=$ac_optarg ;;
1272
1273   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274     verbose=yes ;;
1275
1276   -version | --version | --versio | --versi | --vers | -V)
1277     ac_init_version=: ;;
1278
1279   -with-* | --with-*)
1280     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281     # Reject names that are not valid shell variable names.
1282     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283       as_fn_error "invalid package name: $ac_useropt"
1284     ac_useropt_orig=$ac_useropt
1285     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286     case $ac_user_opts in
1287       *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291          ac_unrecognized_sep=', ';;
1292     esac
1293     eval with_$ac_useropt=\$ac_optarg ;;
1294
1295   -without-* | --without-*)
1296     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297     # Reject names that are not valid shell variable names.
1298     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299       as_fn_error "invalid package name: $ac_useropt"
1300     ac_useropt_orig=$ac_useropt
1301     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302     case $ac_user_opts in
1303       *"
1304 "with_$ac_useropt"
1305 "*) ;;
1306       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307          ac_unrecognized_sep=', ';;
1308     esac
1309     eval with_$ac_useropt=no ;;
1310
1311   --x)
1312     # Obsolete; use --with-x.
1313     with_x=yes ;;
1314
1315   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316   | --x-incl | --x-inc | --x-in | --x-i)
1317     ac_prev=x_includes ;;
1318   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320     x_includes=$ac_optarg ;;
1321
1322   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324     ac_prev=x_libraries ;;
1325   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327     x_libraries=$ac_optarg ;;
1328
1329   -*) as_fn_error "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1331     ;;
1332
1333   *=*)
1334     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335     # Reject names that are not valid shell variable names.
1336     case $ac_envvar in #(
1337       '' | [0-9]* | *[!_$as_cr_alnum]* )
1338       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339     esac
1340     eval $ac_envvar=\$ac_optarg
1341     export $ac_envvar ;;
1342
1343   *)
1344     # FIXME: should be removed in autoconf 3.0.
1345     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349     ;;
1350
1351   esac
1352 done
1353
1354 if test -n "$ac_prev"; then
1355   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356   as_fn_error "missing argument to $ac_option"
1357 fi
1358
1359 if test -n "$ac_unrecognized_opts"; then
1360   case $enable_option_checking in
1361     no) ;;
1362     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364   esac
1365 fi
1366
1367 # Check all directory arguments for consistency.
1368 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369                 datadir sysconfdir sharedstatedir localstatedir includedir \
1370                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371                 libdir localedir mandir
1372 do
1373   eval ac_val=\$$ac_var
1374   # Remove trailing slashes.
1375   case $ac_val in
1376     */ )
1377       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378       eval $ac_var=\$ac_val;;
1379   esac
1380   # Be sure to have absolute directory names.
1381   case $ac_val in
1382     [\\/$]* | ?:[\\/]* )  continue;;
1383     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384   esac
1385   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1386 done
1387
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1394
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397   if test "x$build_alias" = x; then
1398     cross_compiling=maybe
1399     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400     If a cross compiler is detected then cross compile mode will be used." >&2
1401   elif test "x$build_alias" != "x$host_alias"; then
1402     cross_compiling=yes
1403   fi
1404 fi
1405
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409 test "$silent" = yes && exec 6>/dev/null
1410
1411
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415   as_fn_error "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417   as_fn_error "pwd does not report name of working directory"
1418
1419
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422   ac_srcdir_defaulted=yes
1423   # Try the directory containing this script, then the parent directory.
1424   ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426          X"$as_myself" : 'X\(//\)[^/]' \| \
1427          X"$as_myself" : 'X\(//\)$' \| \
1428          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\/\)[^/].*/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\/\)$/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\).*/{
1443             s//\1/
1444             q
1445           }
1446           s/.*/./; q'`
1447   srcdir=$ac_confdir
1448   if test ! -r "$srcdir/$ac_unique_file"; then
1449     srcdir=..
1450   fi
1451 else
1452   ac_srcdir_defaulted=no
1453 fi
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1457 fi
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461         pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464   srcdir=.
1465 fi
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474   eval ac_env_${ac_var}_value=\$${ac_var}
1475   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1478
1479 #
1480 # Report the --help message.
1481 #
1482 if test "$ac_init_help" = "long"; then
1483   # Omit some internal or obsolete options to make the list less imposing.
1484   # This message is too long to be a string in the A/UX 3.1 sh.
1485   cat <<_ACEOF
1486 \`configure' configures this package to adapt to many kinds of systems.
1487
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE.  See below for descriptions of some of the useful variables.
1492
1493 Defaults for the options are specified in brackets.
1494
1495 Configuration:
1496   -h, --help              display this help and exit
1497       --help=short        display options specific to this package
1498       --help=recursive    display the short help of all the included packages
1499   -V, --version           display version information and exit
1500   -q, --quiet, --silent   do not print \`checking...' messages
1501       --cache-file=FILE   cache test results in FILE [disabled]
1502   -C, --config-cache      alias for \`--cache-file=config.cache'
1503   -n, --no-create         do not create output files
1504       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1505
1506 Installation directories:
1507   --prefix=PREFIX         install architecture-independent files in PREFIX
1508                           [$ac_default_prefix]
1509   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1510                           [PREFIX]
1511
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1516
1517 For better control, use the options below.
1518
1519 Fine tuning of the installation directories:
1520   --bindir=DIR            user executables [EPREFIX/bin]
1521   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1522   --libexecdir=DIR        program executables [EPREFIX/libexec]
1523   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1524   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1525   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1526   --libdir=DIR            object code libraries [EPREFIX/lib]
1527   --includedir=DIR        C header files [PREFIX/include]
1528   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1529   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1530   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1531   --infodir=DIR           info documentation [DATAROOTDIR/info]
1532   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1533   --mandir=DIR            man documentation [DATAROOTDIR/man]
1534   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1535   --htmldir=DIR           html documentation [DOCDIR]
1536   --dvidir=DIR            dvi documentation [DOCDIR]
1537   --pdfdir=DIR            pdf documentation [DOCDIR]
1538   --psdir=DIR             ps documentation [DOCDIR]
1539 _ACEOF
1540
1541   cat <<\_ACEOF
1542
1543 Program names:
1544   --program-prefix=PREFIX            prepend PREFIX to installed program names
1545   --program-suffix=SUFFIX            append SUFFIX to installed program names
1546   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1547
1548 System types:
1549   --build=BUILD     configure for building on BUILD [guessed]
1550   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1551   --target=TARGET   configure for building compilers for TARGET [HOST]
1552 _ACEOF
1553 fi
1554
1555 if test -n "$ac_init_help"; then
1556
1557   cat <<\_ACEOF
1558
1559 Optional Features:
1560   --disable-option-checking  ignore unrecognized --enable/--with options
1561   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1562   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1563   --enable-generated-files-in-srcdir
1564                           put copies of generated files in source dir intended
1565                           for creating source tarballs for users without
1566                           texinfo bison or flex
1567   --disable-largefile     omit support for large files
1568   --enable-werror-always  enable -Werror despite compiler version
1569   --enable-checking[=LIST]
1570                           enable expensive run-time checks. With LIST, enable
1571                           only specific categories of checks. Categories are:
1572                           yes,no,all,none,release. Flags are:
1573                           assert,df,fold,gc,gcac,gimple,misc,
1574                           rtlflag,rtl,runtime,tree,valgrind,types
1575   --enable-coverage[=LEVEL]
1576                           enable compiler's code coverage collection. Use to
1577                           measure compiler performance and locate unused parts
1578                           of the compiler. With LEVEL, specify optimization.
1579                           Values are opt, noopt, default is noopt
1580   --enable-gather-detailed-mem-stats
1581                           enable detailed memory allocation stats gathering
1582   --enable-build-with-cxx build with C++ compiler instead of C compiler
1583   --enable-multilib       enable library support for multiple ABIs
1584   --enable-__cxa_atexit   enable __cxa_atexit for C++
1585   --enable-decimal-float={no,yes,bid,dpd}
1586                         enable decimal float extension to C.  Selecting 'bid'
1587                         or 'dpd' choses which decimal floating point format
1588                         to use
1589   --enable-fixed-point    enable fixed-point arithmetic extension to C
1590   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1591                           package
1592   --enable-tls            enable or disable generation of tls code overriding
1593                           the assembler check for tls support
1594   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1595                           GNU Objective-C runtime
1596   --disable-shared        don't provide a shared libgcc
1597   --enable-languages=LIST specify which front-ends to build
1598   --disable-rpath         do not hardcode runtime library paths
1599   --enable-initfini-array       use .init_array/.fini_array sections
1600   --enable-sjlj-exceptions
1601                           arrange to use setjmp/longjmp exception handling
1602   --enable-secureplt      enable -msecure-plt by default for PowerPC
1603   --enable-leading-mingw64-underscores
1604                           enable leading underscores on 64 bit mingw targets
1605   --enable-cld            enable -mcld by default for 32bit x86
1606   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1607                           x86
1608   --disable-win32-registry
1609                           disable lookup of installation paths in the Registry
1610                           on Windows hosts
1611   --enable-win32-registry enable registry lookup (default)
1612   --enable-win32-registry=KEY
1613                           use KEY instead of GCC version as the last portion
1614                           of the registry key
1615   --enable-shared[=PKGS]  build shared libraries [default=yes]
1616   --enable-static[=PKGS]  build static libraries [default=yes]
1617   --enable-fast-install[=PKGS]
1618                           optimize for fast installation [default=yes]
1619   --disable-libtool-lock  avoid locking (might break parallel builds)
1620   --enable-gnu-indirect-function
1621                           enable the use of the @gnu_indirect_function to
1622                           glibc systems
1623   --enable-comdat         enable COMDAT group support
1624   --enable-gnu-unique-object
1625                           enable the use of the @gnu_unique_object ELF
1626                           extension on glibc systems
1627   --enable-linker-build-id
1628                           compiler will always pass --build-id to linker
1629   --enable-maintainer-mode
1630                           enable make rules and dependencies not useful (and
1631                           sometimes confusing) to the casual installer
1632   --enable-version-specific-runtime-libs
1633                           specify that runtime libraries should be installed
1634                           in a compiler-specific directory
1635   --enable-plugin         enable plugin support
1636   --disable-libquadmath-support
1637                           disable libquadmath support for Fortran
1638
1639 Optional Packages:
1640   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1641   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1642   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1643   --with-local-prefix=DIR specifies directory to put local include
1644   --with-gxx-include-dir=DIR
1645                           specifies directory to put g++ header files
1646   --with-cpp-install-dir=DIR
1647                           install the user visible C preprocessor in DIR
1648                           (relative to PREFIX) as well as PREFIX/bin
1649   --with-gnu-ld           arrange to work with GNU ld
1650   --with-ld               arrange to use the specified ld (full pathname)
1651   --with-demangler-in-ld  try to use demangler in GNU ld
1652   --with-gnu-as           arrange to work with GNU as
1653   --with-as               arrange to use the specified as (full pathname)
1654   --with-stabs            arrange to use stabs instead of host debug format
1655   --with-dwarf2           force the default debug format to be DWARF 2
1656   --with-native-system-header-dir=dir
1657                           use dir as the directory to look for standard
1658                           system header files in.  Defaults to /usr/include.
1659   --with-build-sysroot=sysroot
1660                           use sysroot as the system root during the build
1661   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1662   --with-specs=SPECS      add SPECS to driver command-line processing
1663   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1664   --with-bugurl=URL       Direct users to URL to report a bug
1665   --with-multilib-list    select multilibs (SH and x86-64 only)
1666   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1667   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1668   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1669   --with-pic              try to use only PIC/non-PIC objects [default=use
1670                           both]
1671   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1672   --with-plugin-ld=[ARG]  specify the plugin linker
1673   --with-long-double-128  use 128-bit long double by default
1674   --with-gc={page,zone}   choose the garbage collection mechanism to use with
1675                           the compiler
1676   --with-system-zlib      use installed libz
1677   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1678   --with-linker-hash-style={sysv,gnu,both}
1679                           specify the linker hash style
1680
1681 Some influential environment variables:
1682   CC          C compiler command
1683   CFLAGS      C compiler flags
1684   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1685               nonstandard directory <lib dir>
1686   LIBS        libraries to pass to the linker, e.g. -l<library>
1687   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1688               you have headers in a nonstandard directory <include dir>
1689   CXX         C++ compiler command
1690   CXXFLAGS    C++ compiler flags
1691   CPP         C preprocessor
1692   CXXCPP      C++ preprocessor
1693   GMPLIBS     How to link GMP
1694   GMPINC      How to find GMP include files
1695   PPLLIBS     How to link PPL
1696   PPLINC      How to find PPL include files
1697   CLOOGLIBS   How to link CLOOG
1698   CLOOGINC    How to find CLOOG include files
1699
1700 Use these variables to override the choices made by `configure' or to help
1701 it to find libraries and programs with nonstandard names/locations.
1702
1703 Report bugs to the package provider.
1704 _ACEOF
1705 ac_status=$?
1706 fi
1707
1708 if test "$ac_init_help" = "recursive"; then
1709   # If there are subdirs, report their specific --help.
1710   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1711     test -d "$ac_dir" ||
1712       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1713       continue
1714     ac_builddir=.
1715
1716 case "$ac_dir" in
1717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *)
1719   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1720   # A ".." for each directory in $ac_dir_suffix.
1721   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1722   case $ac_top_builddir_sub in
1723   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1725   esac ;;
1726 esac
1727 ac_abs_top_builddir=$ac_pwd
1728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1729 # for backward compatibility:
1730 ac_top_builddir=$ac_top_build_prefix
1731
1732 case $srcdir in
1733   .)  # We are building in place.
1734     ac_srcdir=.
1735     ac_top_srcdir=$ac_top_builddir_sub
1736     ac_abs_top_srcdir=$ac_pwd ;;
1737   [\\/]* | ?:[\\/]* )  # Absolute name.
1738     ac_srcdir=$srcdir$ac_dir_suffix;
1739     ac_top_srcdir=$srcdir
1740     ac_abs_top_srcdir=$srcdir ;;
1741   *) # Relative name.
1742     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1743     ac_top_srcdir=$ac_top_build_prefix$srcdir
1744     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1745 esac
1746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1747
1748     cd "$ac_dir" || { ac_status=$?; continue; }
1749     # Check for guested configure.
1750     if test -f "$ac_srcdir/configure.gnu"; then
1751       echo &&
1752       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1753     elif test -f "$ac_srcdir/configure"; then
1754       echo &&
1755       $SHELL "$ac_srcdir/configure" --help=recursive
1756     else
1757       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1758     fi || ac_status=$?
1759     cd "$ac_pwd" || { ac_status=$?; break; }
1760   done
1761 fi
1762
1763 test -n "$ac_init_help" && exit $ac_status
1764 if $ac_init_version; then
1765   cat <<\_ACEOF
1766 configure
1767 generated by GNU Autoconf 2.64
1768
1769 Copyright (C) 2009 Free Software Foundation, Inc.
1770 This configure script is free software; the Free Software Foundation
1771 gives unlimited permission to copy, distribute and modify it.
1772 _ACEOF
1773   exit
1774 fi
1775
1776 ## ------------------------ ##
1777 ## Autoconf initialization. ##
1778 ## ------------------------ ##
1779
1780 # ac_fn_c_try_compile LINENO
1781 # --------------------------
1782 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_compile ()
1784 {
1785   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786   rm -f conftest.$ac_objext
1787   if { { ac_try="$ac_compile"
1788 case "(($ac_try" in
1789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790   *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794   (eval "$ac_compile") 2>conftest.err
1795   ac_status=$?
1796   if test -s conftest.err; then
1797     grep -v '^ *+' conftest.err >conftest.er1
1798     cat conftest.er1 >&5
1799     mv -f conftest.er1 conftest.err
1800   fi
1801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802   test $ac_status = 0; } && {
1803          test -z "$ac_c_werror_flag" ||
1804          test ! -s conftest.err
1805        } && test -s conftest.$ac_objext; then :
1806   ac_retval=0
1807 else
1808   $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811         ac_retval=1
1812 fi
1813   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814   return $ac_retval
1815
1816 } # ac_fn_c_try_compile
1817
1818 # ac_fn_cxx_try_compile LINENO
1819 # ----------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_cxx_try_compile ()
1822 {
1823   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824   rm -f conftest.$ac_objext
1825   if { { ac_try="$ac_compile"
1826 case "(($ac_try" in
1827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828   *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832   (eval "$ac_compile") 2>conftest.err
1833   ac_status=$?
1834   if test -s conftest.err; then
1835     grep -v '^ *+' conftest.err >conftest.er1
1836     cat conftest.er1 >&5
1837     mv -f conftest.er1 conftest.err
1838   fi
1839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840   test $ac_status = 0; } && {
1841          test -z "$ac_cxx_werror_flag" ||
1842          test ! -s conftest.err
1843        } && test -s conftest.$ac_objext; then :
1844   ac_retval=0
1845 else
1846   $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1848
1849         ac_retval=1
1850 fi
1851   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852   return $ac_retval
1853
1854 } # ac_fn_cxx_try_compile
1855
1856 # ac_fn_c_try_cpp LINENO
1857 # ----------------------
1858 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_c_try_cpp ()
1860 {
1861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862   if { { ac_try="$ac_cpp conftest.$ac_ext"
1863 case "(($ac_try" in
1864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865   *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1870   ac_status=$?
1871   if test -s conftest.err; then
1872     grep -v '^ *+' conftest.err >conftest.er1
1873     cat conftest.er1 >&5
1874     mv -f conftest.er1 conftest.err
1875   fi
1876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877   test $ac_status = 0; } >/dev/null && {
1878          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1879          test ! -s conftest.err
1880        }; then :
1881   ac_retval=0
1882 else
1883   $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1885
1886     ac_retval=1
1887 fi
1888   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889   return $ac_retval
1890
1891 } # ac_fn_c_try_cpp
1892
1893 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1896 # the include files in INCLUDES and setting the cache variable VAR
1897 # accordingly.
1898 ac_fn_c_check_header_mongrel ()
1899 {
1900   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905   $as_echo_n "(cached) " >&6
1906 fi
1907 eval ac_res=\$$3
1908                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 else
1911   # Is the header compilable?
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1913 $as_echo_n "checking $2 usability... " >&6; }
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h.  */
1916 $4
1917 #include <$2>
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920   ac_header_compiler=yes
1921 else
1922   ac_header_compiler=no
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1926 $as_echo "$ac_header_compiler" >&6; }
1927
1928 # Is the header present?
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1930 $as_echo_n "checking $2 presence... " >&6; }
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h.  */
1933 #include <$2>
1934 _ACEOF
1935 if ac_fn_c_try_cpp "$LINENO"; then :
1936   ac_header_preproc=yes
1937 else
1938   ac_header_preproc=no
1939 fi
1940 rm -f conftest.err conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1942 $as_echo "$ac_header_preproc" >&6; }
1943
1944 # So?  What about this header?
1945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1946   yes:no: )
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1948 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1950 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1951     ;;
1952   no:yes:* )
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1954 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1956 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1958 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1959     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1960 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963     ;;
1964 esac
1965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968   $as_echo_n "(cached) " >&6
1969 else
1970   eval "$3=\$ac_header_compiler"
1971 fi
1972 eval ac_res=\$$3
1973                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 fi
1976   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977
1978 } # ac_fn_c_check_header_mongrel
1979
1980 # ac_fn_c_try_run LINENO
1981 # ----------------------
1982 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1983 # that executables *can* be run.
1984 ac_fn_c_try_run ()
1985 {
1986   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987   if { { ac_try="$ac_link"
1988 case "(($ac_try" in
1989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990   *) ac_try_echo=$ac_try;;
1991 esac
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994   (eval "$ac_link") 2>&5
1995   ac_status=$?
1996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1998   { { case "(($ac_try" in
1999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000   *) ac_try_echo=$ac_try;;
2001 esac
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004   (eval "$ac_try") 2>&5
2005   ac_status=$?
2006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007   test $ac_status = 0; }; }; then :
2008   ac_retval=0
2009 else
2010   $as_echo "$as_me: program exited with status $ac_status" >&5
2011        $as_echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014        ac_retval=$ac_status
2015 fi
2016   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018   return $ac_retval
2019
2020 } # ac_fn_c_try_run
2021
2022 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2023 # -------------------------------------------------------
2024 # Tests whether HEADER exists and can be compiled using the include files in
2025 # INCLUDES, setting the cache variable VAR accordingly.
2026 ac_fn_c_check_header_compile ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032   $as_echo_n "(cached) " >&6
2033 else
2034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $4
2037 #include <$2>
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   eval "$3=yes"
2041 else
2042   eval "$3=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 eval ac_res=\$$3
2047                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050
2051 } # ac_fn_c_check_header_compile
2052
2053 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2054 # --------------------------------------------
2055 # Tries to find the compile-time value of EXPR in a program that includes
2056 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2057 # computed
2058 ac_fn_c_compute_int ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   if test "$cross_compiling" = yes; then
2062     # Depending upon the size, compute the lo and hi bounds.
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h.  */
2065 $4
2066 int
2067 main ()
2068 {
2069 static int test_array [1 - 2 * !(($2) >= 0)];
2070 test_array [0] = 0
2071
2072   ;
2073   return 0;
2074 }
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077   ac_lo=0 ac_mid=0
2078   while :; do
2079     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h.  */
2081 $4
2082 int
2083 main ()
2084 {
2085 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086 test_array [0] = 0
2087
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093   ac_hi=$ac_mid; break
2094 else
2095   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2096                         if test $ac_lo -le $ac_mid; then
2097                           ac_lo= ac_hi=
2098                           break
2099                         fi
2100                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103   done
2104 else
2105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h.  */
2107 $4
2108 int
2109 main ()
2110 {
2111 static int test_array [1 - 2 * !(($2) < 0)];
2112 test_array [0] = 0
2113
2114   ;
2115   return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119   ac_hi=-1 ac_mid=-1
2120   while :; do
2121     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $4
2124 int
2125 main ()
2126 {
2127 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2128 test_array [0] = 0
2129
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135   ac_lo=$ac_mid; break
2136 else
2137   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2138                         if test $ac_mid -le $ac_hi; then
2139                           ac_lo= ac_hi=
2140                           break
2141                         fi
2142                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145   done
2146 else
2147   ac_lo= ac_hi=
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 # Binary search between lo and hi bounds.
2153 while test "x$ac_lo" != "x$ac_hi"; do
2154   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h.  */
2157 $4
2158 int
2159 main ()
2160 {
2161 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2162 test_array [0] = 0
2163
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169   ac_hi=$ac_mid
2170 else
2171   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2172 fi
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 done
2175 case $ac_lo in #((
2176 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2177 '') ac_retval=1 ;;
2178 esac
2179   else
2180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h.  */
2182 $4
2183 static long int longval () { return $2; }
2184 static unsigned long int ulongval () { return $2; }
2185 #include <stdio.h>
2186 #include <stdlib.h>
2187 int
2188 main ()
2189 {
2190
2191   FILE *f = fopen ("conftest.val", "w");
2192   if (! f)
2193     return 1;
2194   if (($2) < 0)
2195     {
2196       long int i = longval ();
2197       if (i != ($2))
2198         return 1;
2199       fprintf (f, "%ld", i);
2200     }
2201   else
2202     {
2203       unsigned long int i = ulongval ();
2204       if (i != ($2))
2205         return 1;
2206       fprintf (f, "%lu", i);
2207     }
2208   /* Do not output a trailing newline, as this causes \r\n confusion
2209      on some platforms.  */
2210   return ferror (f) || fclose (f) != 0;
2211
2212   ;
2213   return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_c_try_run "$LINENO"; then :
2217   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2218 else
2219   ac_retval=1
2220 fi
2221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2222   conftest.$ac_objext conftest.beam conftest.$ac_ext
2223 rm -f conftest.val
2224
2225   fi
2226   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227   return $ac_retval
2228
2229 } # ac_fn_c_compute_int
2230
2231 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2232 # -------------------------------------------
2233 # Tests whether TYPE exists after having included INCLUDES, setting cache
2234 # variable VAR accordingly.
2235 ac_fn_c_check_type ()
2236 {
2237   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2241   $as_echo_n "(cached) " >&6
2242 else
2243   eval "$3=no"
2244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h.  */
2246 $4
2247 int
2248 main ()
2249 {
2250 if (sizeof ($2))
2251          return 0;
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 $4
2260 int
2261 main ()
2262 {
2263 if (sizeof (($2)))
2264             return 0;
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270
2271 else
2272   eval "$3=yes"
2273 fi
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 fi
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 fi
2278 eval ac_res=\$$3
2279                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280 $as_echo "$ac_res" >&6; }
2281   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2282
2283 } # ac_fn_c_check_type
2284
2285 # ac_fn_c_find_intX_t LINENO BITS VAR
2286 # -----------------------------------
2287 # Finds a signed integer type with width BITS, setting cache variable VAR
2288 # accordingly.
2289 ac_fn_c_find_intX_t ()
2290 {
2291   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2293 $as_echo_n "checking for int$2_t... " >&6; }
2294 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2295   $as_echo_n "(cached) " >&6
2296 else
2297   eval "$3=no"
2298      for ac_type in int$2_t 'int' 'long int' \
2299          'long long int' 'short int' 'signed char'; do
2300        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 $ac_includes_default
2303 int
2304 main ()
2305 {
2306 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2307 test_array [0] = 0
2308
2309   ;
2310   return 0;
2311 }
2312 _ACEOF
2313 if ac_fn_c_try_compile "$LINENO"; then :
2314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h.  */
2316 $ac_includes_default
2317 int
2318 main ()
2319 {
2320 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2321                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2322 test_array [0] = 0
2323
2324   ;
2325   return 0;
2326 }
2327 _ACEOF
2328 if ac_fn_c_try_compile "$LINENO"; then :
2329
2330 else
2331   case $ac_type in #(
2332   int$2_t) :
2333     eval "$3=yes" ;; #(
2334   *) :
2335     eval "$3=\$ac_type" ;;
2336 esac
2337 fi
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 fi
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341        eval as_val=\$$3
2342    if test "x$as_val" = x""no; then :
2343
2344 else
2345   break
2346 fi
2347      done
2348 fi
2349 eval ac_res=\$$3
2350                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2353
2354 } # ac_fn_c_find_intX_t
2355
2356 # ac_fn_c_try_link LINENO
2357 # -----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded.
2359 ac_fn_c_try_link ()
2360 {
2361   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362   rm -f conftest.$ac_objext conftest$ac_exeext
2363   if { { ac_try="$ac_link"
2364 case "(($ac_try" in
2365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366   *) ac_try_echo=$ac_try;;
2367 esac
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370   (eval "$ac_link") 2>conftest.err
2371   ac_status=$?
2372   if test -s conftest.err; then
2373     grep -v '^ *+' conftest.err >conftest.er1
2374     cat conftest.er1 >&5
2375     mv -f conftest.er1 conftest.err
2376   fi
2377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378   test $ac_status = 0; } && {
2379          test -z "$ac_c_werror_flag" ||
2380          test ! -s conftest.err
2381        } && test -s conftest$ac_exeext && {
2382          test "$cross_compiling" = yes ||
2383          $as_test_x conftest$ac_exeext
2384        }; then :
2385   ac_retval=0
2386 else
2387   $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390         ac_retval=1
2391 fi
2392   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2393   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2394   # interfere with the next link command; also delete a directory that is
2395   # left behind by Apple's compiler.  We do this before executing the actions.
2396   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2397   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398   return $ac_retval
2399
2400 } # ac_fn_c_try_link
2401
2402 # ac_fn_c_find_uintX_t LINENO BITS VAR
2403 # ------------------------------------
2404 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2405 # accordingly.
2406 ac_fn_c_find_uintX_t ()
2407 {
2408   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2410 $as_echo_n "checking for uint$2_t... " >&6; }
2411 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   eval "$3=no"
2415      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2416          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2417        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h.  */
2419 $ac_includes_default
2420 int
2421 main ()
2422 {
2423 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2424 test_array [0] = 0
2425
2426   ;
2427   return 0;
2428 }
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431   case $ac_type in #(
2432   uint$2_t) :
2433     eval "$3=yes" ;; #(
2434   *) :
2435     eval "$3=\$ac_type" ;;
2436 esac
2437 fi
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439        eval as_val=\$$3
2440    if test "x$as_val" = x""no; then :
2441
2442 else
2443   break
2444 fi
2445      done
2446 fi
2447 eval ac_res=\$$3
2448                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451
2452 } # ac_fn_c_find_uintX_t
2453
2454 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2455 # ----------------------------------------------
2456 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2457 ac_fn_c_check_header_preproc ()
2458 {
2459   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2461 $as_echo_n "checking for $2... " >&6; }
2462 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2463   $as_echo_n "(cached) " >&6
2464 else
2465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h.  */
2467 #include <$2>
2468 _ACEOF
2469 if ac_fn_c_try_cpp "$LINENO"; then :
2470   eval "$3=yes"
2471 else
2472   eval "$3=no"
2473 fi
2474 rm -f conftest.err conftest.$ac_ext
2475 fi
2476 eval ac_res=\$$3
2477                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2480
2481 } # ac_fn_c_check_header_preproc
2482
2483 # ac_fn_cxx_try_cpp LINENO
2484 # ------------------------
2485 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2486 ac_fn_cxx_try_cpp ()
2487 {
2488   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489   if { { ac_try="$ac_cpp conftest.$ac_ext"
2490 case "(($ac_try" in
2491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492   *) ac_try_echo=$ac_try;;
2493 esac
2494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2495 $as_echo "$ac_try_echo"; } >&5
2496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2497   ac_status=$?
2498   if test -s conftest.err; then
2499     grep -v '^ *+' conftest.err >conftest.er1
2500     cat conftest.er1 >&5
2501     mv -f conftest.er1 conftest.err
2502   fi
2503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2504   test $ac_status = 0; } >/dev/null && {
2505          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2506          test ! -s conftest.err
2507        }; then :
2508   ac_retval=0
2509 else
2510   $as_echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512
2513     ac_retval=1
2514 fi
2515   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2516   return $ac_retval
2517
2518 } # ac_fn_cxx_try_cpp
2519
2520 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2521 # ------------------------------------------------
2522 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2523 ac_fn_cxx_check_header_preproc ()
2524 {
2525   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 $as_echo_n "checking for $2... " >&6; }
2528 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2529   $as_echo_n "(cached) " >&6
2530 else
2531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h.  */
2533 #include <$2>
2534 _ACEOF
2535 if ac_fn_cxx_try_cpp "$LINENO"; then :
2536   eval "$3=yes"
2537 else
2538   eval "$3=no"
2539 fi
2540 rm -f conftest.err conftest.$ac_ext
2541 fi
2542 eval ac_res=\$$3
2543                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2546
2547 } # ac_fn_cxx_check_header_preproc
2548
2549 # ac_fn_c_check_func LINENO FUNC VAR
2550 # ----------------------------------
2551 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2552 ac_fn_c_check_func ()
2553 {
2554   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2556 $as_echo_n "checking for $2... " >&6; }
2557 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2558   $as_echo_n "(cached) " >&6
2559 else
2560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h.  */
2562 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2564 #define $2 innocuous_$2
2565
2566 /* System header to define __stub macros and hopefully few prototypes,
2567     which can conflict with char $2 (); below.
2568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2569     <limits.h> exists even on freestanding compilers.  */
2570
2571 #ifdef __STDC__
2572 # include <limits.h>
2573 #else
2574 # include <assert.h>
2575 #endif
2576
2577 #undef $2
2578
2579 /* Override any GCC internal prototype to avoid an error.
2580    Use char because int might match the return type of a GCC
2581    builtin and then its argument prototype would still apply.  */
2582 #ifdef __cplusplus
2583 extern "C"
2584 #endif
2585 char $2 ();
2586 /* The GNU C library defines this for functions which it implements
2587     to always fail with ENOSYS.  Some functions are actually named
2588     something starting with __ and the normal name is an alias.  */
2589 #if defined __stub_$2 || defined __stub___$2
2590 choke me
2591 #endif
2592
2593 int
2594 main ()
2595 {
2596 return $2 ();
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 if ac_fn_c_try_link "$LINENO"; then :
2602   eval "$3=yes"
2603 else
2604   eval "$3=no"
2605 fi
2606 rm -f core conftest.err conftest.$ac_objext \
2607     conftest$ac_exeext conftest.$ac_ext
2608 fi
2609 eval ac_res=\$$3
2610                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2612   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2613
2614 } # ac_fn_c_check_func
2615
2616 # ac_fn_cxx_try_link LINENO
2617 # -------------------------
2618 # Try to link conftest.$ac_ext, and return whether this succeeded.
2619 ac_fn_cxx_try_link ()
2620 {
2621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2622   rm -f conftest.$ac_objext conftest$ac_exeext
2623   if { { ac_try="$ac_link"
2624 case "(($ac_try" in
2625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626   *) ac_try_echo=$ac_try;;
2627 esac
2628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2629 $as_echo "$ac_try_echo"; } >&5
2630   (eval "$ac_link") 2>conftest.err
2631   ac_status=$?
2632   if test -s conftest.err; then
2633     grep -v '^ *+' conftest.err >conftest.er1
2634     cat conftest.er1 >&5
2635     mv -f conftest.er1 conftest.err
2636   fi
2637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638   test $ac_status = 0; } && {
2639          test -z "$ac_cxx_werror_flag" ||
2640          test ! -s conftest.err
2641        } && test -s conftest$ac_exeext && {
2642          test "$cross_compiling" = yes ||
2643          $as_test_x conftest$ac_exeext
2644        }; then :
2645   ac_retval=0
2646 else
2647   $as_echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650         ac_retval=1
2651 fi
2652   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2653   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2654   # interfere with the next link command; also delete a directory that is
2655   # left behind by Apple's compiler.  We do this before executing the actions.
2656   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2657   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2658   return $ac_retval
2659
2660 } # ac_fn_cxx_try_link
2661 cat >config.log <<_ACEOF
2662 This file contains any messages produced by compilers while
2663 running configure, to aid debugging if configure makes a mistake.
2664
2665 It was created by $as_me, which was
2666 generated by GNU Autoconf 2.64.  Invocation command line was
2667
2668   $ $0 $@
2669
2670 _ACEOF
2671 exec 5>>config.log
2672 {
2673 cat <<_ASUNAME
2674 ## --------- ##
2675 ## Platform. ##
2676 ## --------- ##
2677
2678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2683
2684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2685 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2686
2687 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2688 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2690 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2691 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2692 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2693 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2694
2695 _ASUNAME
2696
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700   IFS=$as_save_IFS
2701   test -z "$as_dir" && as_dir=.
2702     $as_echo "PATH: $as_dir"
2703   done
2704 IFS=$as_save_IFS
2705
2706 } >&5
2707
2708 cat >&5 <<_ACEOF
2709
2710
2711 ## ----------- ##
2712 ## Core tests. ##
2713 ## ----------- ##
2714
2715 _ACEOF
2716
2717
2718 # Keep a trace of the command line.
2719 # Strip out --no-create and --no-recursion so they do not pile up.
2720 # Strip out --silent because we don't want to record it for future runs.
2721 # Also quote any args containing shell meta-characters.
2722 # Make two passes to allow for proper duplicate-argument suppression.
2723 ac_configure_args=
2724 ac_configure_args0=
2725 ac_configure_args1=
2726 ac_must_keep_next=false
2727 for ac_pass in 1 2
2728 do
2729   for ac_arg
2730   do
2731     case $ac_arg in
2732     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2733     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2734     | -silent | --silent | --silen | --sile | --sil)
2735       continue ;;
2736     *\'*)
2737       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2738     esac
2739     case $ac_pass in
2740     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2741     2)
2742       as_fn_append ac_configure_args1 " '$ac_arg'"
2743       if test $ac_must_keep_next = true; then
2744         ac_must_keep_next=false # Got value, back to normal.
2745       else
2746         case $ac_arg in
2747           *=* | --config-cache | -C | -disable-* | --disable-* \
2748           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2749           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2750           | -with-* | --with-* | -without-* | --without-* | --x)
2751             case "$ac_configure_args0 " in
2752               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2753             esac
2754             ;;
2755           -* ) ac_must_keep_next=true ;;
2756         esac
2757       fi
2758       as_fn_append ac_configure_args " '$ac_arg'"
2759       ;;
2760     esac
2761   done
2762 done
2763 { ac_configure_args0=; unset ac_configure_args0;}
2764 { ac_configure_args1=; unset ac_configure_args1;}
2765
2766 # When interrupted or exit'd, cleanup temporary files, and complete
2767 # config.log.  We remove comments because anyway the quotes in there
2768 # would cause problems or look ugly.
2769 # WARNING: Use '\'' to represent an apostrophe within the trap.
2770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2771 trap 'exit_status=$?
2772   # Save into config.log some information that might help in debugging.
2773   {
2774     echo
2775
2776     cat <<\_ASBOX
2777 ## ---------------- ##
2778 ## Cache variables. ##
2779 ## ---------------- ##
2780 _ASBOX
2781     echo
2782     # The following way of writing the cache mishandles newlines in values,
2783 (
2784   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2785     eval ac_val=\$$ac_var
2786     case $ac_val in #(
2787     *${as_nl}*)
2788       case $ac_var in #(
2789       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2790 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2791       esac
2792       case $ac_var in #(
2793       _ | IFS | as_nl) ;; #(
2794       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2795       *) { eval $ac_var=; unset $ac_var;} ;;
2796       esac ;;
2797     esac
2798   done
2799   (set) 2>&1 |
2800     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2801     *${as_nl}ac_space=\ *)
2802       sed -n \
2803         "s/'\''/'\''\\\\'\'''\''/g;
2804           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2805       ;; #(
2806     *)
2807       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2808       ;;
2809     esac |
2810     sort
2811 )
2812     echo
2813
2814     cat <<\_ASBOX
2815 ## ----------------- ##
2816 ## Output variables. ##
2817 ## ----------------- ##
2818 _ASBOX
2819     echo
2820     for ac_var in $ac_subst_vars
2821     do
2822       eval ac_val=\$$ac_var
2823       case $ac_val in
2824       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2825       esac
2826       $as_echo "$ac_var='\''$ac_val'\''"
2827     done | sort
2828     echo
2829
2830     if test -n "$ac_subst_files"; then
2831       cat <<\_ASBOX
2832 ## ------------------- ##
2833 ## File substitutions. ##
2834 ## ------------------- ##
2835 _ASBOX
2836       echo
2837       for ac_var in $ac_subst_files
2838       do
2839         eval ac_val=\$$ac_var
2840         case $ac_val in
2841         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2842         esac
2843         $as_echo "$ac_var='\''$ac_val'\''"
2844       done | sort
2845       echo
2846     fi
2847
2848     if test -s confdefs.h; then
2849       cat <<\_ASBOX
2850 ## ----------- ##
2851 ## confdefs.h. ##
2852 ## ----------- ##
2853 _ASBOX
2854       echo
2855       cat confdefs.h
2856       echo
2857     fi
2858     test "$ac_signal" != 0 &&
2859       $as_echo "$as_me: caught signal $ac_signal"
2860     $as_echo "$as_me: exit $exit_status"
2861   } >&5
2862   rm -f core *.core core.conftest.* &&
2863     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2864     exit $exit_status
2865 ' 0
2866 for ac_signal in 1 2 13 15; do
2867   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2868 done
2869 ac_signal=0
2870
2871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2872 rm -f -r conftest* confdefs.h
2873
2874 $as_echo "/* confdefs.h */" > confdefs.h
2875
2876 # Predefined preprocessor variables.
2877
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_NAME "$PACKAGE_NAME"
2880 _ACEOF
2881
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2884 _ACEOF
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2888 _ACEOF
2889
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_STRING "$PACKAGE_STRING"
2892 _ACEOF
2893
2894 cat >>confdefs.h <<_ACEOF
2895 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2896 _ACEOF
2897
2898 cat >>confdefs.h <<_ACEOF
2899 #define PACKAGE_URL "$PACKAGE_URL"
2900 _ACEOF
2901
2902
2903 # Let the site file select an alternate cache file if it wants to.
2904 # Prefer an explicitly selected file to automatically selected ones.
2905 ac_site_file1=NONE
2906 ac_site_file2=NONE
2907 if test -n "$CONFIG_SITE"; then
2908   ac_site_file1=$CONFIG_SITE
2909 elif test "x$prefix" != xNONE; then
2910   ac_site_file1=$prefix/share/config.site
2911   ac_site_file2=$prefix/etc/config.site
2912 else
2913   ac_site_file1=$ac_default_prefix/share/config.site
2914   ac_site_file2=$ac_default_prefix/etc/config.site
2915 fi
2916 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2917 do
2918   test "x$ac_site_file" = xNONE && continue
2919   if test -r "$ac_site_file"; then
2920     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2921 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2922     sed 's/^/| /' "$ac_site_file" >&5
2923     . "$ac_site_file"
2924   fi
2925 done
2926
2927 if test -r "$cache_file"; then
2928   # Some versions of bash will fail to source /dev/null (special
2929   # files actually), so we avoid doing that.
2930   if test -f "$cache_file"; then
2931     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2932 $as_echo "$as_me: loading cache $cache_file" >&6;}
2933     case $cache_file in
2934       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2935       *)                      . "./$cache_file";;
2936     esac
2937   fi
2938 else
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2940 $as_echo "$as_me: creating cache $cache_file" >&6;}
2941   >$cache_file
2942 fi
2943
2944 # Check that the precious variables saved in the cache have kept the same
2945 # value.
2946 ac_cache_corrupted=false
2947 for ac_var in $ac_precious_vars; do
2948   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2949   eval ac_new_set=\$ac_env_${ac_var}_set
2950   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2951   eval ac_new_val=\$ac_env_${ac_var}_value
2952   case $ac_old_set,$ac_new_set in
2953     set,)
2954       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2955 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2956       ac_cache_corrupted=: ;;
2957     ,set)
2958       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2959 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2960       ac_cache_corrupted=: ;;
2961     ,);;
2962     *)
2963       if test "x$ac_old_val" != "x$ac_new_val"; then
2964         # differences in whitespace do not lead to failure.
2965         ac_old_val_w=`echo x $ac_old_val`
2966         ac_new_val_w=`echo x $ac_new_val`
2967         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2968           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2969 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2970           ac_cache_corrupted=:
2971         else
2972           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2973 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2974           eval $ac_var=\$ac_old_val
2975         fi
2976         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2977 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2978         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2979 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2980       fi;;
2981   esac
2982   # Pass precious variables to config.status.
2983   if test "$ac_new_set" = set; then
2984     case $ac_new_val in
2985     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2986     *) ac_arg=$ac_var=$ac_new_val ;;
2987     esac
2988     case " $ac_configure_args " in
2989       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2990       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2991     esac
2992   fi
2993 done
2994 if $ac_cache_corrupted; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2998 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2999   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3000 fi
3001 ## -------------------- ##
3002 ## Main body of script. ##
3003 ## -------------------- ##
3004
3005 ac_ext=c
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010
3011
3012
3013
3014
3015
3016 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3017
3018
3019 gcc_version=`cat $srcdir/BASE-VER`
3020
3021 # Determine the host, build, and target systems
3022 ac_aux_dir=
3023 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3024   for ac_t in install-sh install.sh shtool; do
3025     if test -f "$ac_dir/$ac_t"; then
3026       ac_aux_dir=$ac_dir
3027       ac_install_sh="$ac_aux_dir/$ac_t -c"
3028       break 2
3029     fi
3030   done
3031 done
3032 if test -z "$ac_aux_dir"; then
3033   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3034 fi
3035
3036 # These three variables are undocumented and unsupported,
3037 # and are intended to be withdrawn in a future Autoconf release.
3038 # They can cause serious problems if a builder's source tree is in a directory
3039 # whose full name contains unusual characters.
3040 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3041 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3042 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3043
3044
3045 # Make sure we can run config.sub.
3046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3047   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3048
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3050 $as_echo_n "checking build system type... " >&6; }
3051 if test "${ac_cv_build+set}" = set; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   ac_build_alias=$build_alias
3055 test "x$ac_build_alias" = x &&
3056   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3057 test "x$ac_build_alias" = x &&
3058   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3059 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3060   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3061
3062 fi
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3064 $as_echo "$ac_cv_build" >&6; }
3065 case $ac_cv_build in
3066 *-*-*) ;;
3067 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3068 esac
3069 build=$ac_cv_build
3070 ac_save_IFS=$IFS; IFS='-'
3071 set x $ac_cv_build
3072 shift
3073 build_cpu=$1
3074 build_vendor=$2
3075 shift; shift
3076 # Remember, the first character of IFS is used to create $*,
3077 # except with old shells:
3078 build_os=$*
3079 IFS=$ac_save_IFS
3080 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3081
3082
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3084 $as_echo_n "checking host system type... " >&6; }
3085 if test "${ac_cv_host+set}" = set; then :
3086   $as_echo_n "(cached) " >&6
3087 else
3088   if test "x$host_alias" = x; then
3089   ac_cv_host=$ac_cv_build
3090 else
3091   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3092     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3093 fi
3094
3095 fi
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3097 $as_echo "$ac_cv_host" >&6; }
3098 case $ac_cv_host in
3099 *-*-*) ;;
3100 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3101 esac
3102 host=$ac_cv_host
3103 ac_save_IFS=$IFS; IFS='-'
3104 set x $ac_cv_host
3105 shift
3106 host_cpu=$1
3107 host_vendor=$2
3108 shift; shift
3109 # Remember, the first character of IFS is used to create $*,
3110 # except with old shells:
3111 host_os=$*
3112 IFS=$ac_save_IFS
3113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3114
3115
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3117 $as_echo_n "checking target system type... " >&6; }
3118 if test "${ac_cv_target+set}" = set; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test "x$target_alias" = x; then
3122   ac_cv_target=$ac_cv_host
3123 else
3124   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3125     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3126 fi
3127
3128 fi
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3130 $as_echo "$ac_cv_target" >&6; }
3131 case $ac_cv_target in
3132 *-*-*) ;;
3133 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3134 esac
3135 target=$ac_cv_target
3136 ac_save_IFS=$IFS; IFS='-'
3137 set x $ac_cv_target
3138 shift
3139 target_cpu=$1
3140 target_vendor=$2
3141 shift; shift
3142 # Remember, the first character of IFS is used to create $*,
3143 # except with old shells:
3144 target_os=$*
3145 IFS=$ac_save_IFS
3146 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3147
3148
3149 # The aliases save the names the user supplied, while $host etc.
3150 # will get canonicalized.
3151 test -n "$target_alias" &&
3152   test "$program_prefix$program_suffix$program_transform_name" = \
3153     NONENONEs,x,x, &&
3154   program_prefix=${target_alias}-
3155
3156 # Determine the noncanonical target name, for directory use.
3157  case ${build_alias} in
3158   "") build_noncanonical=${build} ;;
3159   *) build_noncanonical=${build_alias} ;;
3160 esac
3161
3162  case ${host_alias} in
3163   "") host_noncanonical=${build_noncanonical} ;;
3164   *) host_noncanonical=${host_alias} ;;
3165 esac
3166
3167  case ${target_alias} in
3168   "") target_noncanonical=${host_noncanonical} ;;
3169   *) target_noncanonical=${target_alias} ;;
3170 esac
3171
3172
3173
3174
3175 # Determine the target- and build-specific subdirectories
3176
3177 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3178 # have matching libraries, they should use host libraries: Makefile.tpl
3179 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3180 # However, they still use the build modules, because the corresponding
3181 # host modules (e.g. bison) are only built for the host when bootstrap
3182 # finishes. So:
3183 # - build_subdir is where we find build modules, and never changes.
3184 # - build_libsubdir is where we find build libraries, and can be overridden.
3185
3186 # Prefix 'build-' so this never conflicts with target_subdir.
3187 build_subdir="build-${build_noncanonical}"
3188
3189 # Check whether --with-build-libsubdir was given.
3190 if test "${with_build_libsubdir+set}" = set; then :
3191   withval=$with_build_libsubdir; build_libsubdir="$withval"
3192 else
3193   build_libsubdir="$build_subdir"
3194 fi
3195
3196 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3197 if ( test $srcdir = . && test -d gcc ) \
3198    || test -d $srcdir/../host-${host_noncanonical}; then
3199   host_subdir="host-${host_noncanonical}"
3200 else
3201   host_subdir=.
3202 fi
3203 # No prefix.
3204 target_subdir=${target_noncanonical}
3205
3206
3207 # Set program_transform_name
3208 test "$program_prefix" != NONE &&
3209   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3210 # Use a double $ so make ignores it.
3211 test "$program_suffix" != NONE &&
3212   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3213 # Double any \ or $.
3214 # By default was `s,x,x', remove it if useless.
3215 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3216 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3217
3218
3219 # Check for bogus environment variables.
3220 # Test if LIBRARY_PATH contains the notation for the current directory
3221 # since this would lead to problems installing/building glibc.
3222 # LIBRARY_PATH contains the current directory if one of the following
3223 # is true:
3224 # - one of the terminals (":" and ";") is the first or last sign
3225 # - two terminals occur directly after each other
3226 # - the path contains an element with a dot in it
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3228 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3229 case ${LIBRARY_PATH} in
3230   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3231     library_path_setting="contains current directory"
3232     ;;
3233   *)
3234     library_path_setting="ok"
3235     ;;
3236 esac
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3238 $as_echo "$library_path_setting" >&6; }
3239 if test "$library_path_setting" != "ok"; then
3240 as_fn_error "
3241 *** LIBRARY_PATH shouldn't contain the current directory when
3242 *** building gcc. Please change the environment variable
3243 *** and run configure again." "$LINENO" 5
3244 fi
3245
3246 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3247 # since this would lead to problems installing/building glibc.
3248 # GCC_EXEC_PREFIX contains the current directory if one of the following
3249 # is true:
3250 # - one of the terminals (":" and ";") is the first or last sign
3251 # - two terminals occur directly after each other
3252 # - the path contains an element with a dot in it
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3254 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3255 case ${GCC_EXEC_PREFIX} in
3256   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3257     gcc_exec_prefix_setting="contains current directory"
3258     ;;
3259   *)
3260     gcc_exec_prefix_setting="ok"
3261     ;;
3262 esac
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3264 $as_echo "$gcc_exec_prefix_setting" >&6; }
3265 if test "$gcc_exec_prefix_setting" != "ok"; then
3266 as_fn_error "
3267 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3268 *** building gcc. Please change the environment variable
3269 *** and run configure again." "$LINENO" 5
3270 fi
3271
3272 # -----------
3273 # Directories
3274 # -----------
3275
3276 # Specify the local prefix
3277 local_prefix=
3278
3279 # Check whether --with-local-prefix was given.
3280 if test "${with_local_prefix+set}" = set; then :
3281   withval=$with_local_prefix; case "${withval}" in
3282 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3283 no)     ;;
3284 *)      local_prefix=$with_local_prefix ;;
3285 esac
3286 fi
3287
3288
3289 # Default local prefix if it is empty
3290 if test x$local_prefix = x; then
3291         local_prefix=/usr/local
3292 fi
3293
3294 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3295 # passed in by the toplevel make and thus we'd get different behavior
3296 # depending on where we built the sources.
3297 gcc_gxx_include_dir=
3298 # Specify the g++ header file directory
3299
3300 # Check whether --with-gxx-include-dir was given.
3301 if test "${with_gxx_include_dir+set}" = set; then :
3302   withval=$with_gxx_include_dir; case "${withval}" in
3303 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3304 no)     ;;
3305 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3306 esac
3307 fi
3308
3309
3310 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3311 if test x${gcc_gxx_include_dir} = x; then
3312   if test x${enable_version_specific_runtime_libs} = xyes; then
3313     gcc_gxx_include_dir='${libsubdir}/include/c++'
3314   else
3315     libstdcxx_incdir='include/c++/$(version)'
3316     if test x$host != x$target; then
3317        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3318     fi
3319     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3320   fi
3321 fi
3322
3323
3324 # Check whether --with-cpp_install_dir was given.
3325 if test "${with_cpp_install_dir+set}" = set; then :
3326   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3327   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3328 elif test x$withval != xno; then
3329   cpp_install_dir=$withval
3330 fi
3331 fi
3332
3333
3334 # We would like to our source tree to be readonly.  However when releases or
3335 # pre-releases are generated, the flex/bison generated files as well as the
3336 # various formats of manuals need to be included along with the rest of the
3337 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3338 # just that.
3339
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3341 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3342     # Check whether --enable-generated-files-in-srcdir was given.
3343 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3344   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3345 else
3346   generated_files_in_srcdir=no
3347 fi
3348
3349
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3351 $as_echo "$generated_files_in_srcdir" >&6; }
3352
3353 if test "$generated_files_in_srcdir" = "yes"; then
3354   GENINSRC=''
3355 else
3356   GENINSRC='#'
3357 fi
3358
3359
3360 # -------------------
3361 # Find default linker
3362 # -------------------
3363
3364 # With GNU ld
3365
3366 # Check whether --with-gnu-ld was given.
3367 if test "${with_gnu_ld+set}" = set; then :
3368   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3369 else
3370   gnu_ld_flag=no
3371 fi
3372
3373
3374 # With pre-defined ld
3375
3376 # Check whether --with-ld was given.
3377 if test "${with_ld+set}" = set; then :
3378   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3379 fi
3380
3381 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3382   if test ! -x "$DEFAULT_LINKER"; then
3383     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3384   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3385     gnu_ld_flag=yes
3386   fi
3387
3388 cat >>confdefs.h <<_ACEOF
3389 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3390 _ACEOF
3391
3392 fi
3393
3394 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3395
3396 cat >>confdefs.h <<_ACEOF
3397 #define HAVE_GNU_LD $gnu_ld
3398 _ACEOF
3399
3400
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3402 $as_echo_n "checking whether a default linker was specified... " >&6; }
3403 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3404   if test x"$gnu_ld_flag" = x"no"; then
3405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3406 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3407   else
3408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3409 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3410   fi
3411 else
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415
3416 # With demangler in GNU ld
3417
3418 # Check whether --with-demangler-in-ld was given.
3419 if test "${with_demangler_in_ld+set}" = set; then :
3420   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3421 else
3422   demangler_in_ld=yes
3423 fi
3424
3425
3426 # ----------------------
3427 # Find default assembler
3428 # ----------------------
3429
3430 # With GNU as
3431
3432 # Check whether --with-gnu-as was given.
3433 if test "${with_gnu_as+set}" = set; then :
3434   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3435 else
3436   gas_flag=no
3437 fi
3438
3439
3440
3441 # Check whether --with-as was given.
3442 if test "${with_as+set}" = set; then :
3443   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3444 fi
3445
3446 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3447   if test ! -x "$DEFAULT_ASSEMBLER"; then
3448     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3449   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3450     gas_flag=yes
3451   fi
3452
3453 cat >>confdefs.h <<_ACEOF
3454 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3455 _ACEOF
3456
3457 fi
3458
3459 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3460
3461 cat >>confdefs.h <<_ACEOF
3462 #define HAVE_GNU_AS $gnu_as
3463 _ACEOF
3464
3465
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3467 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3468 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3469   if test x"$gas_flag" = x"no"; then
3470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3471 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3472   else
3473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3474 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3475   fi
3476 else
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 fi
3480
3481 # ---------------
3482 # Find C compiler
3483 # ---------------
3484
3485 # If a non-executable a.out is present (e.g. created by GNU as above even if
3486 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3487 # file, even when creating an executable, so an execution test fails.
3488 # Remove possible default executable files to avoid this.
3489 #
3490 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3491 # Autoconf includes it.
3492 rm -f a.out a.exe b.out
3493
3494 # Find the native compiler
3495 ac_ext=c
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 if test -n "$ac_tool_prefix"; then
3501   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3502 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if test "${ac_cv_prog_CC+set}" = set; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508   if test -n "$CC"; then
3509   ac_cv_prog_CC="$CC" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514   IFS=$as_save_IFS
3515   test -z "$as_dir" && as_dir=.
3516     for ac_exec_ext in '' $ac_executable_extensions; do
3517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520     break 2
3521   fi
3522 done
3523   done
3524 IFS=$as_save_IFS
3525
3526 fi
3527 fi
3528 CC=$ac_cv_prog_CC
3529 if test -n "$CC"; then
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3532 else
3533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3535 fi
3536
3537
3538 fi
3539 if test -z "$ac_cv_prog_CC"; then
3540   ac_ct_CC=$CC
3541   # Extract the first word of "gcc", so it can be a program name with args.
3542 set dummy gcc; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3546   $as_echo_n "(cached) " >&6
3547 else
3548   if test -n "$ac_ct_CC"; then
3549   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554   IFS=$as_save_IFS
3555   test -z "$as_dir" && as_dir=.
3556     for ac_exec_ext in '' $ac_executable_extensions; do
3557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3558     ac_cv_prog_ac_ct_CC="gcc"
3559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560     break 2
3561   fi
3562 done
3563   done
3564 IFS=$as_save_IFS
3565
3566 fi
3567 fi
3568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3569 if test -n "$ac_ct_CC"; then
3570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3571 $as_echo "$ac_ct_CC" >&6; }
3572 else
3573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 fi
3576
3577   if test "x$ac_ct_CC" = x; then
3578     CC=""
3579   else
3580     case $cross_compiling:$ac_tool_warned in
3581 yes:)
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3584 ac_tool_warned=yes ;;
3585 esac
3586     CC=$ac_ct_CC
3587   fi
3588 else
3589   CC="$ac_cv_prog_CC"
3590 fi
3591
3592 if test -z "$CC"; then
3593           if test -n "$ac_tool_prefix"; then
3594     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3595 set dummy ${ac_tool_prefix}cc; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if test "${ac_cv_prog_CC+set}" = set; then :
3599   $as_echo_n "(cached) " >&6
3600 else
3601   if test -n "$CC"; then
3602   ac_cv_prog_CC="$CC" # Let the user override the test.
3603 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3606 do
3607   IFS=$as_save_IFS
3608   test -z "$as_dir" && as_dir=.
3609     for ac_exec_ext in '' $ac_executable_extensions; do
3610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611     ac_cv_prog_CC="${ac_tool_prefix}cc"
3612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613     break 2
3614   fi
3615 done
3616   done
3617 IFS=$as_save_IFS
3618
3619 fi
3620 fi
3621 CC=$ac_cv_prog_CC
3622 if test -n "$CC"; then
3623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3624 $as_echo "$CC" >&6; }
3625 else
3626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 fi
3629
3630
3631   fi
3632 fi
3633 if test -z "$CC"; then
3634   # Extract the first word of "cc", so it can be a program name with args.
3635 set dummy cc; ac_word=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if test "${ac_cv_prog_CC+set}" = set; then :
3639   $as_echo_n "(cached) " >&6
3640 else
3641   if test -n "$CC"; then
3642   ac_cv_prog_CC="$CC" # Let the user override the test.
3643 else
3644   ac_prog_rejected=no
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648   IFS=$as_save_IFS
3649   test -z "$as_dir" && as_dir=.
3650     for ac_exec_ext in '' $ac_executable_extensions; do
3651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653        ac_prog_rejected=yes
3654        continue
3655      fi
3656     ac_cv_prog_CC="cc"
3657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658     break 2
3659   fi
3660 done
3661   done
3662 IFS=$as_save_IFS
3663
3664 if test $ac_prog_rejected = yes; then
3665   # We found a bogon in the path, so make sure we never use it.
3666   set dummy $ac_cv_prog_CC
3667   shift
3668   if test $# != 0; then
3669     # We chose a different compiler from the bogus one.
3670     # However, it has the same basename, so the bogon will be chosen
3671     # first if we set CC to just the basename; use the full file name.
3672     shift
3673     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3674   fi
3675 fi
3676 fi
3677 fi
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3682 else
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3685 fi
3686
3687
3688 fi
3689 if test -z "$CC"; then
3690   if test -n "$ac_tool_prefix"; then
3691   for ac_prog in cl.exe
3692   do
3693     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if test "${ac_cv_prog_CC+set}" = set; then :
3698   $as_echo_n "(cached) " >&6
3699 else
3700   if test -n "$CC"; then
3701   ac_cv_prog_CC="$CC" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708     for ac_exec_ext in '' $ac_executable_extensions; do
3709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712     break 2
3713   fi
3714 done
3715   done
3716 IFS=$as_save_IFS
3717
3718 fi
3719 fi
3720 CC=$ac_cv_prog_CC
3721 if test -n "$CC"; then
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3723 $as_echo "$CC" >&6; }
3724 else
3725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 fi
3728
3729
3730     test -n "$CC" && break
3731   done
3732 fi
3733 if test -z "$CC"; then
3734   ac_ct_CC=$CC
3735   for ac_prog in cl.exe
3736 do
3737   # Extract the first word of "$ac_prog", so it can be a program name with args.
3738 set dummy $ac_prog; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   if test -n "$ac_ct_CC"; then
3745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752     for ac_exec_ext in '' $ac_executable_extensions; do
3753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754     ac_cv_prog_ac_ct_CC="$ac_prog"
3755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756     break 2
3757   fi
3758 done
3759   done
3760 IFS=$as_save_IFS
3761
3762 fi
3763 fi
3764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3765 if test -n "$ac_ct_CC"; then
3766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3767 $as_echo "$ac_ct_CC" >&6; }
3768 else
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3771 fi
3772
3773
3774   test -n "$ac_ct_CC" && break
3775 done
3776
3777   if test "x$ac_ct_CC" = x; then
3778     CC=""
3779   else
3780     case $cross_compiling:$ac_tool_warned in
3781 yes:)
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3784 ac_tool_warned=yes ;;
3785 esac
3786     CC=$ac_ct_CC
3787   fi
3788 fi
3789
3790 fi
3791
3792
3793 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error "no acceptable C compiler found in \$PATH
3796 See \`config.log' for more details." "$LINENO" 5; }
3797
3798 # Provide some information about the compiler.
3799 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3800 set X $ac_compile
3801 ac_compiler=$2
3802 for ac_option in --version -v -V -qversion; do
3803   { { ac_try="$ac_compiler $ac_option >&5"
3804 case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3811   ac_status=$?
3812   if test -s conftest.err; then
3813     sed '10a\
3814 ... rest of stderr output deleted ...
3815          10q' conftest.err >conftest.er1
3816     cat conftest.er1 >&5
3817     rm -f conftest.er1 conftest.err
3818   fi
3819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820   test $ac_status = 0; }
3821 done
3822
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h.  */
3825
3826 int
3827 main ()
3828 {
3829
3830   ;
3831   return 0;
3832 }
3833 _ACEOF
3834 ac_clean_files_save=$ac_clean_files
3835 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3836 # Try to create an executable without -o first, disregard a.out.
3837 # It will help us diagnose broken compilers, and finding out an intuition
3838 # of exeext.
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3840 $as_echo_n "checking for C compiler default output file name... " >&6; }
3841 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3842
3843 # The possible output files:
3844 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3845
3846 ac_rmfiles=
3847 for ac_file in $ac_files
3848 do
3849   case $ac_file in
3850     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3851     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3852   esac
3853 done
3854 rm -f $ac_rmfiles
3855
3856 if { { ac_try="$ac_link_default"
3857 case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863   (eval "$ac_link_default") 2>&5
3864   ac_status=$?
3865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866   test $ac_status = 0; }; then :
3867   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3868 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3869 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3870 # so that the user can short-circuit this test for compilers unknown to
3871 # Autoconf.
3872 for ac_file in $ac_files ''
3873 do
3874   test -f "$ac_file" || continue
3875   case $ac_file in
3876     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3877         ;;
3878     [ab].out )
3879         # We found the default executable, but exeext='' is most
3880         # certainly right.
3881         break;;
3882     *.* )
3883         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3884         then :; else
3885            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3886         fi
3887         # We set ac_cv_exeext here because the later test for it is not
3888         # safe: cross compilers may not add the suffix if given an `-o'
3889         # argument, so we may need to know it at that point already.
3890         # Even if this section looks crufty: it has the advantage of
3891         # actually working.
3892         break;;
3893     * )
3894         break;;
3895   esac
3896 done
3897 test "$ac_cv_exeext" = no && ac_cv_exeext=
3898
3899 else
3900   ac_file=''
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3903 $as_echo "$ac_file" >&6; }
3904 if test -z "$ac_file"; then :
3905   $as_echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 { as_fn_set_status 77
3911 as_fn_error "C compiler cannot create executables
3912 See \`config.log' for more details." "$LINENO" 5; }; }
3913 fi
3914 ac_exeext=$ac_cv_exeext
3915
3916 # Check that the compiler produces executables we can run.  If not, either
3917 # the compiler is broken, or we cross compile.
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3919 $as_echo_n "checking whether the C compiler works... " >&6; }
3920 # If not cross compiling, check that we can run a simple program.
3921 if test "$cross_compiling" != yes; then
3922   if { ac_try='./$ac_file'
3923   { { case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929   (eval "$ac_try") 2>&5
3930   ac_status=$?
3931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932   test $ac_status = 0; }; }; then
3933     cross_compiling=no
3934   else
3935     if test "$cross_compiling" = maybe; then
3936         cross_compiling=yes
3937     else
3938         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "cannot run C compiled programs.
3941 If you meant to cross compile, use \`--host'.
3942 See \`config.log' for more details." "$LINENO" 5; }
3943     fi
3944   fi
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3948
3949 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3950 ac_clean_files=$ac_clean_files_save
3951 # Check that the compiler produces executables we can run.  If not, either
3952 # the compiler is broken, or we cross compile.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3954 $as_echo_n "checking whether we are cross compiling... " >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3956 $as_echo "$cross_compiling" >&6; }
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3959 $as_echo_n "checking for suffix of executables... " >&6; }
3960 if { { ac_try="$ac_link"
3961 case "(($ac_try" in
3962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963   *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967   (eval "$ac_link") 2>&5
3968   ac_status=$?
3969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970   test $ac_status = 0; }; then :
3971   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3972 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3973 # work properly (i.e., refer to `conftest.exe'), while it won't with
3974 # `rm'.
3975 for ac_file in conftest.exe conftest conftest.*; do
3976   test -f "$ac_file" || continue
3977   case $ac_file in
3978     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3979     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980           break;;
3981     * ) break;;
3982   esac
3983 done
3984 else
3985   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 as_fn_error "cannot compute suffix of executables: cannot compile and link
3988 See \`config.log' for more details." "$LINENO" 5; }
3989 fi
3990 rm -f conftest$ac_cv_exeext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3992 $as_echo "$ac_cv_exeext" >&6; }
3993
3994 rm -f conftest.$ac_ext
3995 EXEEXT=$ac_cv_exeext
3996 ac_exeext=$EXEEXT
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3998 $as_echo_n "checking for suffix of object files... " >&6; }
3999 if test "${ac_cv_objext+set}" = set; then :
4000   $as_echo_n "(cached) " >&6
4001 else
4002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h.  */
4004
4005 int
4006 main ()
4007 {
4008
4009   ;
4010   return 0;
4011 }
4012 _ACEOF
4013 rm -f conftest.o conftest.obj
4014 if { { ac_try="$ac_compile"
4015 case "(($ac_try" in
4016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017   *) ac_try_echo=$ac_try;;
4018 esac
4019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020 $as_echo "$ac_try_echo"; } >&5
4021   (eval "$ac_compile") 2>&5
4022   ac_status=$?
4023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024   test $ac_status = 0; }; then :
4025   for ac_file in conftest.o conftest.obj conftest.*; do
4026   test -f "$ac_file" || continue;
4027   case $ac_file in
4028     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4029     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4030        break;;
4031   esac
4032 done
4033 else
4034   $as_echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error "cannot compute suffix of object files: cannot compile
4040 See \`config.log' for more details." "$LINENO" 5; }
4041 fi
4042 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4045 $as_echo "$ac_cv_objext" >&6; }
4046 OBJEXT=$ac_cv_objext
4047 ac_objext=$OBJEXT
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4049 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4050 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h.  */
4055
4056 int
4057 main ()
4058 {
4059 #ifndef __GNUC__
4060        choke me
4061 #endif
4062
4063   ;
4064   return 0;
4065 }
4066 _ACEOF
4067 if ac_fn_c_try_compile "$LINENO"; then :
4068   ac_compiler_gnu=yes
4069 else
4070   ac_compiler_gnu=no
4071 fi
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4074
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4077 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4078 if test $ac_compiler_gnu = yes; then
4079   GCC=yes
4080 else
4081   GCC=
4082 fi
4083 ac_test_CFLAGS=${CFLAGS+set}
4084 ac_save_CFLAGS=$CFLAGS
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4086 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4087 if test "${ac_cv_prog_cc_g+set}" = set; then :
4088   $as_echo_n "(cached) " >&6
4089 else
4090   ac_save_c_werror_flag=$ac_c_werror_flag
4091    ac_c_werror_flag=yes
4092    ac_cv_prog_cc_g=no
4093    CFLAGS="-g"
4094    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h.  */
4096
4097 int
4098 main ()
4099 {
4100
4101   ;
4102   return 0;
4103 }
4104 _ACEOF
4105 if ac_fn_c_try_compile "$LINENO"; then :
4106   ac_cv_prog_cc_g=yes
4107 else
4108   CFLAGS=""
4109       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h.  */
4111
4112 int
4113 main ()
4114 {
4115
4116   ;
4117   return 0;
4118 }
4119 _ACEOF
4120 if ac_fn_c_try_compile "$LINENO"; then :
4121
4122 else
4123   ac_c_werror_flag=$ac_save_c_werror_flag
4124          CFLAGS="-g"
4125          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h.  */
4127
4128 int
4129 main ()
4130 {
4131
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137   ac_cv_prog_cc_g=yes
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144    ac_c_werror_flag=$ac_save_c_werror_flag
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4147 $as_echo "$ac_cv_prog_cc_g" >&6; }
4148 if test "$ac_test_CFLAGS" = set; then
4149   CFLAGS=$ac_save_CFLAGS
4150 elif test $ac_cv_prog_cc_g = yes; then
4151   if test "$GCC" = yes; then
4152     CFLAGS="-g -O2"
4153   else
4154     CFLAGS="-g"
4155   fi
4156 else
4157   if test "$GCC" = yes; then
4158     CFLAGS="-O2"
4159   else
4160     CFLAGS=
4161   fi
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4164 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4165 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4166   $as_echo_n "(cached) " >&6
4167 else
4168   ac_cv_prog_cc_c89=no
4169 ac_save_CC=$CC
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h.  */
4172 #include <stdarg.h>
4173 #include <stdio.h>
4174 #include <sys/types.h>
4175 #include <sys/stat.h>
4176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4177 struct buf { int x; };
4178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4179 static char *e (p, i)
4180      char **p;
4181      int i;
4182 {
4183   return p[i];
4184 }
4185 static char *f (char * (*g) (char **, int), char **p, ...)
4186 {
4187   char *s;
4188   va_list v;
4189   va_start (v,p);
4190   s = g (p, va_arg (v,int));
4191   va_end (v);
4192   return s;
4193 }
4194
4195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4196    function prototypes and stuff, but not '\xHH' hex character constants.
4197    These don't provoke an error unfortunately, instead are silently treated
4198    as 'x'.  The following induces an error, until -std is added to get
4199    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4200    array size at least.  It's necessary to write '\x00'==0 to get something
4201    that's true only with -std.  */
4202 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4203
4204 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4205    inside strings and character constants.  */
4206 #define FOO(x) 'x'
4207 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4208
4209 int test (int i, double x);
4210 struct s1 {int (*f) (int a);};
4211 struct s2 {int (*f) (double a);};
4212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4213 int argc;
4214 char **argv;
4215 int
4216 main ()
4217 {
4218 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4224         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4225 do
4226   CC="$ac_save_CC $ac_arg"
4227   if ac_fn_c_try_compile "$LINENO"; then :
4228   ac_cv_prog_cc_c89=$ac_arg
4229 fi
4230 rm -f core conftest.err conftest.$ac_objext
4231   test "x$ac_cv_prog_cc_c89" != "xno" && break
4232 done
4233 rm -f conftest.$ac_ext
4234 CC=$ac_save_CC
4235
4236 fi
4237 # AC_CACHE_VAL
4238 case "x$ac_cv_prog_cc_c89" in
4239   x)
4240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241 $as_echo "none needed" >&6; } ;;
4242   xno)
4243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4244 $as_echo "unsupported" >&6; } ;;
4245   *)
4246     CC="$CC $ac_cv_prog_cc_c89"
4247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4248 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4249 esac
4250 if test "x$ac_cv_prog_cc_c89" != xno; then :
4251
4252 fi
4253
4254 ac_ext=c
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259
4260 if test "x$CC" != xcc; then
4261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4262 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4263 else
4264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4265 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4266 fi
4267 set dummy $CC; ac_cc=`$as_echo "$2" |
4268                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4269 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h.  */
4274
4275 int
4276 main ()
4277 {
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 # Make sure it works both with $CC and with simple cc.
4284 # We do the test twice because some compilers refuse to overwrite an
4285 # existing .o file with -o, though they will create one.
4286 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4287 rm -f conftest2.*
4288 if { { case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294   (eval "$ac_try") 2>&5
4295   ac_status=$?
4296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297   test $ac_status = 0; } &&
4298    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304   (eval "$ac_try") 2>&5
4305   ac_status=$?
4306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307   test $ac_status = 0; };
4308 then
4309   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4310   if test "x$CC" != xcc; then
4311     # Test first that cc exists at all.
4312     if { ac_try='cc -c conftest.$ac_ext >&5'
4313   { { case "(($ac_try" in
4314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315   *) ac_try_echo=$ac_try;;
4316 esac
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319   (eval "$ac_try") 2>&5
4320   ac_status=$?
4321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322   test $ac_status = 0; }; }; then
4323       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4324       rm -f conftest2.*
4325       if { { case "(($ac_try" in
4326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327   *) ac_try_echo=$ac_try;;
4328 esac
4329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330 $as_echo "$ac_try_echo"; } >&5
4331   (eval "$ac_try") 2>&5
4332   ac_status=$?
4333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4334   test $ac_status = 0; } &&
4335          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341   (eval "$ac_try") 2>&5
4342   ac_status=$?
4343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344   test $ac_status = 0; };
4345       then
4346         # cc works too.
4347         :
4348       else
4349         # cc exists but doesn't like -o.
4350         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4351       fi
4352     fi
4353   fi
4354 else
4355   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4356 fi
4357 rm -f core conftest*
4358
4359 fi
4360 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4362 $as_echo "yes" >&6; }
4363 else
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366
4367 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4368
4369 fi
4370
4371 # expand $ac_aux_dir to an absolute path
4372 am_aux_dir=`cd $ac_aux_dir && pwd`
4373
4374 # FIXME: we rely on the cache variable name because
4375 # there is no other way.
4376 set dummy $CC
4377 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4378 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4379 if test "$am_t" != yes; then
4380    # Losing compiler, so override with the script.
4381    # FIXME: It is wrong to rewrite CC.
4382    # But if we don't then we get into trouble of one sort or another.
4383    # A longer-term fix would be to have automake use am__CC in this case,
4384    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4385    CC="$am_aux_dir/compile $CC"
4386 fi
4387
4388
4389 ac_ext=cpp
4390 ac_cpp='$CXXCPP $CPPFLAGS'
4391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4394 if test -z "$CXX"; then
4395   if test -n "$CCC"; then
4396     CXX=$CCC
4397   else
4398     if test -n "$ac_tool_prefix"; then
4399   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4400   do
4401     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if test "${ac_cv_prog_CXX+set}" = set; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408   if test -n "$CXX"; then
4409   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416     for ac_exec_ext in '' $ac_executable_extensions; do
4417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420     break 2
4421   fi
4422 done
4423   done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 CXX=$ac_cv_prog_CXX
4429 if test -n "$CXX"; then
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4431 $as_echo "$CXX" >&6; }
4432 else
4433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4435 fi
4436
4437
4438     test -n "$CXX" && break
4439   done
4440 fi
4441 if test -z "$CXX"; then
4442   ac_ct_CXX=$CXX
4443   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4444 do
4445   # Extract the first word of "$ac_prog", so it can be a program name with args.
4446 set dummy $ac_prog; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4450   $as_echo_n "(cached) " >&6
4451 else
4452   if test -n "$ac_ct_CXX"; then
4453   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460     for ac_exec_ext in '' $ac_executable_extensions; do
4461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462     ac_cv_prog_ac_ct_CXX="$ac_prog"
4463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467   done
4468 IFS=$as_save_IFS
4469
4470 fi
4471 fi
4472 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4473 if test -n "$ac_ct_CXX"; then
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4475 $as_echo "$ac_ct_CXX" >&6; }
4476 else
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4479 fi
4480
4481
4482   test -n "$ac_ct_CXX" && break
4483 done
4484
4485   if test "x$ac_ct_CXX" = x; then
4486     CXX="g++"
4487   else
4488     case $cross_compiling:$ac_tool_warned in
4489 yes:)
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4492 ac_tool_warned=yes ;;
4493 esac
4494     CXX=$ac_ct_CXX
4495   fi
4496 fi
4497
4498   fi
4499 fi
4500 # Provide some information about the compiler.
4501 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4502 set X $ac_compile
4503 ac_compiler=$2
4504 for ac_option in --version -v -V -qversion; do
4505   { { ac_try="$ac_compiler $ac_option >&5"
4506 case "(($ac_try" in
4507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508   *) ac_try_echo=$ac_try;;
4509 esac
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 $as_echo "$ac_try_echo"; } >&5
4512   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4513   ac_status=$?
4514   if test -s conftest.err; then
4515     sed '10a\
4516 ... rest of stderr output deleted ...
4517          10q' conftest.err >conftest.er1
4518     cat conftest.er1 >&5
4519     rm -f conftest.er1 conftest.err
4520   fi
4521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522   test $ac_status = 0; }
4523 done
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4526 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4527 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4528   $as_echo_n "(cached) " >&6
4529 else
4530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h.  */
4532
4533 int
4534 main ()
4535 {
4536 #ifndef __GNUC__
4537        choke me
4538 #endif
4539
4540   ;
4541   return 0;
4542 }
4543 _ACEOF
4544 if ac_fn_cxx_try_compile "$LINENO"; then :
4545   ac_compiler_gnu=yes
4546 else
4547   ac_compiler_gnu=no
4548 fi
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4551
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4554 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4555 if test $ac_compiler_gnu = yes; then
4556   GXX=yes
4557 else
4558   GXX=
4559 fi
4560 ac_test_CXXFLAGS=${CXXFLAGS+set}
4561 ac_save_CXXFLAGS=$CXXFLAGS
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4563 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4564 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4568    ac_cxx_werror_flag=yes
4569    ac_cv_prog_cxx_g=no
4570    CXXFLAGS="-g"
4571    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h.  */
4573
4574 int
4575 main ()
4576 {
4577
4578   ;
4579   return 0;
4580 }
4581 _ACEOF
4582 if ac_fn_cxx_try_compile "$LINENO"; then :
4583   ac_cv_prog_cxx_g=yes
4584 else
4585   CXXFLAGS=""
4586       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h.  */
4588
4589 int
4590 main ()
4591 {
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 if ac_fn_cxx_try_compile "$LINENO"; then :
4598
4599 else
4600   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4601          CXXFLAGS="-g"
4602          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h.  */
4604
4605 int
4606 main ()
4607 {
4608
4609   ;
4610   return 0;
4611 }
4612 _ACEOF
4613 if ac_fn_cxx_try_compile "$LINENO"; then :
4614   ac_cv_prog_cxx_g=yes
4615 fi
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4624 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4625 if test "$ac_test_CXXFLAGS" = set; then
4626   CXXFLAGS=$ac_save_CXXFLAGS
4627 elif test $ac_cv_prog_cxx_g = yes; then
4628   if test "$GXX" = yes; then
4629     CXXFLAGS="-g -O2"
4630   else
4631     CXXFLAGS="-g"
4632   fi
4633 else
4634   if test "$GXX" = yes; then
4635     CXXFLAGS="-O2"
4636   else
4637     CXXFLAGS=
4638   fi
4639 fi
4640 ac_ext=c
4641 ac_cpp='$CPP $CPPFLAGS'
4642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645
4646
4647
4648
4649 if test -n "$ac_tool_prefix"; then
4650   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4651 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4655   $as_echo_n "(cached) " >&6
4656 else
4657   if test -n "$GNATBIND"; then
4658   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665     for ac_exec_ext in '' $ac_executable_extensions; do
4666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672   done
4673 IFS=$as_save_IFS
4674
4675 fi
4676 fi
4677 GNATBIND=$ac_cv_prog_GNATBIND
4678 if test -n "$GNATBIND"; then
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4680 $as_echo "$GNATBIND" >&6; }
4681 else
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4685
4686
4687 fi
4688 if test -z "$ac_cv_prog_GNATBIND"; then
4689   ac_ct_GNATBIND=$GNATBIND
4690   # Extract the first word of "gnatbind", so it can be a program name with args.
4691 set dummy gnatbind; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4695   $as_echo_n "(cached) " >&6
4696 else
4697   if test -n "$ac_ct_GNATBIND"; then
4698   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705     for ac_exec_ext in '' $ac_executable_extensions; do
4706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712   done
4713 IFS=$as_save_IFS
4714
4715 fi
4716 fi
4717 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4718 if test -n "$ac_ct_GNATBIND"; then
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4720 $as_echo "$ac_ct_GNATBIND" >&6; }
4721 else
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4724 fi
4725
4726   if test "x$ac_ct_GNATBIND" = x; then
4727     GNATBIND="no"
4728   else
4729     case $cross_compiling:$ac_tool_warned in
4730 yes:)
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733 ac_tool_warned=yes ;;
4734 esac
4735     GNATBIND=$ac_ct_GNATBIND
4736   fi
4737 else
4738   GNATBIND="$ac_cv_prog_GNATBIND"
4739 fi
4740
4741 if test -n "$ac_tool_prefix"; then
4742   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4743 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4747   $as_echo_n "(cached) " >&6
4748 else
4749   if test -n "$GNATMAKE"; then
4750   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757     for ac_exec_ext in '' $ac_executable_extensions; do
4758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764   done
4765 IFS=$as_save_IFS
4766
4767 fi
4768 fi
4769 GNATMAKE=$ac_cv_prog_GNATMAKE
4770 if test -n "$GNATMAKE"; then
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4772 $as_echo "$GNATMAKE" >&6; }
4773 else
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4776 fi
4777
4778
4779 fi
4780 if test -z "$ac_cv_prog_GNATMAKE"; then
4781   ac_ct_GNATMAKE=$GNATMAKE
4782   # Extract the first word of "gnatmake", so it can be a program name with args.
4783 set dummy gnatmake; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   if test -n "$ac_ct_GNATMAKE"; then
4790   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797     for ac_exec_ext in '' $ac_executable_extensions; do
4798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801     break 2
4802   fi
4803 done
4804   done
4805 IFS=$as_save_IFS
4806
4807 fi
4808 fi
4809 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4810 if test -n "$ac_ct_GNATMAKE"; then
4811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4812 $as_echo "$ac_ct_GNATMAKE" >&6; }
4813 else
4814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4816 fi
4817
4818   if test "x$ac_ct_GNATMAKE" = x; then
4819     GNATMAKE="no"
4820   else
4821     case $cross_compiling:$ac_tool_warned in
4822 yes:)
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4825 ac_tool_warned=yes ;;
4826 esac
4827     GNATMAKE=$ac_ct_GNATMAKE
4828   fi
4829 else
4830   GNATMAKE="$ac_cv_prog_GNATMAKE"
4831 fi
4832
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4834 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4835 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4836   $as_echo_n "(cached) " >&6
4837 else
4838   cat >conftest.adb <<EOF
4839 procedure conftest is begin null; end conftest;
4840 EOF
4841 acx_cv_cc_gcc_supports_ada=no
4842 # There is a bug in old released versions of GCC which causes the
4843 # driver to exit successfully when the appropriate language module
4844 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4845 # Therefore we must check for the error message as well as an
4846 # unsuccessful exit.
4847 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4848 # given a .adb file, but produce no object file.  So we must check
4849 # if an object file was really produced to guard against this.
4850 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4851 if test x"$errors" = x && test -f conftest.$ac_objext; then
4852   acx_cv_cc_gcc_supports_ada=yes
4853 fi
4854 rm -f conftest.*
4855 fi
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4857 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4858
4859 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4860   have_gnat=yes
4861 else
4862   have_gnat=no
4863 fi
4864
4865
4866 # autoconf is lame and doesn't give us any substitution variable for this.
4867 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4868   NO_MINUS_C_MINUS_O=yes
4869 else
4870   OUTPUT_OPTION='-o $@'
4871 fi
4872
4873
4874
4875 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4876 # optimizations to be activated explicitly by the toplevel.
4877 case "$CC" in
4878   */prev-gcc/xgcc*) ;;
4879   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4880 esac
4881
4882
4883 # Determine PICFLAG for target gnatlib.
4884
4885
4886
4887
4888 case "${target}" in
4889     # PIC is the default on some targets or must not be used.
4890     *-*-darwin*)
4891         # PIC is the default on this platform
4892         # Common symbols not allowed in MH_DYLIB files
4893         PICFLAG_FOR_TARGET=-fno-common
4894         ;;
4895     alpha*-dec-osf5*)
4896         # PIC is the default.
4897         ;;
4898     hppa*64*-*-hpux*)
4899         # PIC is the default for 64-bit PA HP-UX.
4900         ;;
4901     i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4902         ;;
4903     i[34567]86-*-interix3*)
4904         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4905         # Instead, we relocate shared libraries at runtime.
4906         ;;
4907     i[34567]86-*-nto-qnx*)
4908         # QNX uses GNU C++, but need to define -shared option too, otherwise
4909         # it will coredump.
4910         PICFLAG_FOR_TARGET='-fPIC -shared'
4911         ;;
4912     i[34567]86-pc-msdosdjgpp*)
4913         # DJGPP does not support shared libraries at all.
4914         ;;
4915     ia64*-*-hpux*)
4916         # On IA64 HP-UX, PIC is the default but the pic flag
4917         # sets the default TLS model and affects inlining.
4918         PICFLAG_FOR_TARGET=-fPIC
4919         ;;
4920     mips-sgi-irix6*)
4921         # PIC is the default.
4922         ;;
4923     rs6000-ibm-aix* | powerpc-ibm-aix*)
4924         # All AIX code is PIC.
4925         ;;
4926
4927     # Some targets support both -fPIC and -fpic, but prefer the latter.
4928     # FIXME: Why?
4929     i[34567]86-*-* | x86_64-*-*)
4930         PICFLAG_FOR_TARGET=-fpic
4931         ;;
4932     m68k-*-*)
4933         PICFLAG_FOR_TARGET=-fpic
4934         ;;
4935     s390*-*-*)
4936         PICFLAG_FOR_TARGET=-fpic
4937         ;;
4938     # FIXME: Override -fPIC default in libgcc only?
4939     sh-*-linux* | sh[2346lbe]*-*-linux*)
4940         PICFLAG_FOR_TARGET=-fpic
4941         ;;
4942     # FIXME: Simplify to sh*-*-netbsd*?
4943     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4944       sh64-*-netbsd* | sh64l*-*-netbsd*)
4945         PICFLAG_FOR_TARGET=-fpic
4946         ;;
4947     # Default to -fPIC unless specified otherwise.
4948     *)
4949         PICFLAG_FOR_TARGET=-fPIC
4950         ;;
4951 esac
4952
4953 # If the user explicitly uses -fpic/-fPIC, keep that.
4954 case "${CFLAGS_FOR_TARGET}" in
4955     *-fpic*)
4956         PICFLAG_FOR_TARGET=-fpic
4957         ;;
4958     *-fPIC*)
4959         PICFLAG_FOR_TARGET=-fPIC
4960         ;;
4961 esac
4962
4963
4964
4965 # -------------------------
4966 # Check C compiler features
4967 # -------------------------
4968
4969
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4976 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4977 # On Suns, sometimes $CPP names a directory.
4978 if test -n "$CPP" && test -d "$CPP"; then
4979   CPP=
4980 fi
4981 if test -z "$CPP"; then
4982   if test "${ac_cv_prog_CPP+set}" = set; then :
4983   $as_echo_n "(cached) " >&6
4984 else
4985       # Double quotes because CPP needs to be expanded
4986     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4987     do
4988       ac_preproc_ok=false
4989 for ac_c_preproc_warn_flag in '' yes
4990 do
4991   # Use a header file that comes with gcc, so configuring glibc
4992   # with a fresh cross-compiler works.
4993   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4994   # <limits.h> exists even on freestanding compilers.
4995   # On the NeXT, cc -E runs the code through the compiler's parser,
4996   # not just through cpp. "Syntax error" is here to catch this case.
4997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h.  */
4999 #ifdef __STDC__
5000 # include <limits.h>
5001 #else
5002 # include <assert.h>
5003 #endif
5004                      Syntax error
5005 _ACEOF
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5007
5008 else
5009   # Broken: fails on valid input.
5010 continue
5011 fi
5012 rm -f conftest.err conftest.$ac_ext
5013
5014   # OK, works on sane cases.  Now check whether nonexistent headers
5015   # can be detected and how.
5016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h.  */
5018 #include <ac_nonexistent.h>
5019 _ACEOF
5020 if ac_fn_c_try_cpp "$LINENO"; then :
5021   # Broken: success on invalid input.
5022 continue
5023 else
5024   # Passes both tests.
5025 ac_preproc_ok=:
5026 break
5027 fi
5028 rm -f conftest.err conftest.$ac_ext
5029
5030 done
5031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032 rm -f conftest.err conftest.$ac_ext
5033 if $ac_preproc_ok; then :
5034   break
5035 fi
5036
5037     done
5038     ac_cv_prog_CPP=$CPP
5039
5040 fi
5041   CPP=$ac_cv_prog_CPP
5042 else
5043   ac_cv_prog_CPP=$CPP
5044 fi
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5046 $as_echo "$CPP" >&6; }
5047 ac_preproc_ok=false
5048 for ac_c_preproc_warn_flag in '' yes
5049 do
5050   # Use a header file that comes with gcc, so configuring glibc
5051   # with a fresh cross-compiler works.
5052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053   # <limits.h> exists even on freestanding compilers.
5054   # On the NeXT, cc -E runs the code through the compiler's parser,
5055   # not just through cpp. "Syntax error" is here to catch this case.
5056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h.  */
5058 #ifdef __STDC__
5059 # include <limits.h>
5060 #else
5061 # include <assert.h>
5062 #endif
5063                      Syntax error
5064 _ACEOF
5065 if ac_fn_c_try_cpp "$LINENO"; then :
5066
5067 else
5068   # Broken: fails on valid input.
5069 continue
5070 fi
5071 rm -f conftest.err conftest.$ac_ext
5072
5073   # OK, works on sane cases.  Now check whether nonexistent headers
5074   # can be detected and how.
5075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h.  */
5077 #include <ac_nonexistent.h>
5078 _ACEOF
5079 if ac_fn_c_try_cpp "$LINENO"; then :
5080   # Broken: success on invalid input.
5081 continue
5082 else
5083   # Passes both tests.
5084 ac_preproc_ok=:
5085 break
5086 fi
5087 rm -f conftest.err conftest.$ac_ext
5088
5089 done
5090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5091 rm -f conftest.err conftest.$ac_ext
5092 if $ac_preproc_ok; then :
5093
5094 else
5095   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5097 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5098 See \`config.log' for more details." "$LINENO" 5; }
5099 fi
5100
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5109 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5110 if test "${ac_cv_path_GREP+set}" = set; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   if test -z "$GREP"; then
5114   ac_path_GREP_found=false
5115   # Loop through the user's path and test for each of PROGNAME-LIST
5116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121     for ac_prog in grep ggrep; do
5122     for ac_exec_ext in '' $ac_executable_extensions; do
5123       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5124       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5125 # Check for GNU ac_path_GREP and select it if it is found.
5126   # Check for GNU $ac_path_GREP
5127 case `"$ac_path_GREP" --version 2>&1` in
5128 *GNU*)
5129   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5130 *)
5131   ac_count=0
5132   $as_echo_n 0123456789 >"conftest.in"
5133   while :
5134   do
5135     cat "conftest.in" "conftest.in" >"conftest.tmp"
5136     mv "conftest.tmp" "conftest.in"
5137     cp "conftest.in" "conftest.nl"
5138     $as_echo 'GREP' >> "conftest.nl"
5139     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5140     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5141     as_fn_arith $ac_count + 1 && ac_count=$as_val
5142     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5143       # Best one so far, save it but keep looking for a better one
5144       ac_cv_path_GREP="$ac_path_GREP"
5145       ac_path_GREP_max=$ac_count
5146     fi
5147     # 10*(2^10) chars as input seems more than enough
5148     test $ac_count -gt 10 && break
5149   done
5150   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5151 esac
5152
5153       $ac_path_GREP_found && break 3
5154     done
5155   done
5156   done
5157 IFS=$as_save_IFS
5158   if test -z "$ac_cv_path_GREP"; then
5159     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5160   fi
5161 else
5162   ac_cv_path_GREP=$GREP
5163 fi
5164
5165 fi
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5167 $as_echo "$ac_cv_path_GREP" >&6; }
5168  GREP="$ac_cv_path_GREP"
5169
5170
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5172 $as_echo_n "checking for egrep... " >&6; }
5173 if test "${ac_cv_path_EGREP+set}" = set; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5177    then ac_cv_path_EGREP="$GREP -E"
5178    else
5179      if test -z "$EGREP"; then
5180   ac_path_EGREP_found=false
5181   # Loop through the user's path and test for each of PROGNAME-LIST
5182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5184 do
5185   IFS=$as_save_IFS
5186   test -z "$as_dir" && as_dir=.
5187     for ac_prog in egrep; do
5188     for ac_exec_ext in '' $ac_executable_extensions; do
5189       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5190       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5191 # Check for GNU ac_path_EGREP and select it if it is found.
5192   # Check for GNU $ac_path_EGREP
5193 case `"$ac_path_EGREP" --version 2>&1` in
5194 *GNU*)
5195   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5196 *)
5197   ac_count=0
5198   $as_echo_n 0123456789 >"conftest.in"
5199   while :
5200   do
5201     cat "conftest.in" "conftest.in" >"conftest.tmp"
5202     mv "conftest.tmp" "conftest.in"
5203     cp "conftest.in" "conftest.nl"
5204     $as_echo 'EGREP' >> "conftest.nl"
5205     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5206     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5207     as_fn_arith $ac_count + 1 && ac_count=$as_val
5208     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5209       # Best one so far, save it but keep looking for a better one
5210       ac_cv_path_EGREP="$ac_path_EGREP"
5211       ac_path_EGREP_max=$ac_count
5212     fi
5213     # 10*(2^10) chars as input seems more than enough
5214     test $ac_count -gt 10 && break
5215   done
5216   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5217 esac
5218
5219       $ac_path_EGREP_found && break 3
5220     done
5221   done
5222   done
5223 IFS=$as_save_IFS
5224   if test -z "$ac_cv_path_EGREP"; then
5225     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5226   fi
5227 else
5228   ac_cv_path_EGREP=$EGREP
5229 fi
5230
5231    fi
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5234 $as_echo "$ac_cv_path_EGREP" >&6; }
5235  EGREP="$ac_cv_path_EGREP"
5236
5237
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5239 $as_echo_n "checking for ANSI C header files... " >&6; }
5240 if test "${ac_cv_header_stdc+set}" = set; then :
5241   $as_echo_n "(cached) " >&6
5242 else
5243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h.  */
5245 #include <stdlib.h>
5246 #include <stdarg.h>
5247 #include <string.h>
5248 #include <float.h>
5249
5250 int
5251 main ()
5252 {
5253
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259   ac_cv_header_stdc=yes
5260 else
5261   ac_cv_header_stdc=no
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264
5265 if test $ac_cv_header_stdc = yes; then
5266   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h.  */
5269 #include <string.h>
5270
5271 _ACEOF
5272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5273   $EGREP "memchr" >/dev/null 2>&1; then :
5274
5275 else
5276   ac_cv_header_stdc=no
5277 fi
5278 rm -f conftest*
5279
5280 fi
5281
5282 if test $ac_cv_header_stdc = yes; then
5283   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 #include <stdlib.h>
5287
5288 _ACEOF
5289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290   $EGREP "free" >/dev/null 2>&1; then :
5291
5292 else
5293   ac_cv_header_stdc=no
5294 fi
5295 rm -f conftest*
5296
5297 fi
5298
5299 if test $ac_cv_header_stdc = yes; then
5300   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5301   if test "$cross_compiling" = yes; then :
5302   :
5303 else
5304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h.  */
5306 #include <ctype.h>
5307 #include <stdlib.h>
5308 #if ((' ' & 0x0FF) == 0x020)
5309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5311 #else
5312 # define ISLOWER(c) \
5313                    (('a' <= (c) && (c) <= 'i') \
5314                      || ('j' <= (c) && (c) <= 'r') \
5315                      || ('s' <= (c) && (c) <= 'z'))
5316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5317 #endif
5318
5319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5320 int
5321 main ()
5322 {
5323   int i;
5324   for (i = 0; i < 256; i++)
5325     if (XOR (islower (i), ISLOWER (i))
5326         || toupper (i) != TOUPPER (i))
5327       return 2;
5328   return 0;
5329 }
5330 _ACEOF
5331 if ac_fn_c_try_run "$LINENO"; then :
5332
5333 else
5334   ac_cv_header_stdc=no
5335 fi
5336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5337   conftest.$ac_objext conftest.beam conftest.$ac_ext
5338 fi
5339
5340 fi
5341 fi
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5343 $as_echo "$ac_cv_header_stdc" >&6; }
5344 if test $ac_cv_header_stdc = yes; then
5345
5346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5347
5348 fi
5349
5350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5352                   inttypes.h stdint.h unistd.h
5353 do :
5354   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5355 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5356 "
5357 eval as_val=\$$as_ac_Header
5358    if test "x$as_val" = x""yes; then :
5359   cat >>confdefs.h <<_ACEOF
5360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361 _ACEOF
5362
5363 fi
5364
5365 done
5366
5367
5368
5369   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5370 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5371   MINIX=yes
5372 else
5373   MINIX=
5374 fi
5375
5376
5377   if test "$MINIX" = yes; then
5378
5379 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5380
5381
5382 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5383
5384
5385 $as_echo "#define _MINIX 1" >>confdefs.h
5386
5387   fi
5388
5389
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5391 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5392 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5393   $as_echo_n "(cached) " >&6
5394 else
5395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h.  */
5397
5398 #         define __EXTENSIONS__ 1
5399           $ac_includes_default
5400 int
5401 main ()
5402 {
5403
5404   ;
5405   return 0;
5406 }
5407 _ACEOF
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409   ac_cv_safe_to_define___extensions__=yes
5410 else
5411   ac_cv_safe_to_define___extensions__=no
5412 fi
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5416 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5417   test $ac_cv_safe_to_define___extensions__ = yes &&
5418     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5419
5420   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5421
5422   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5423
5424   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5425
5426   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5427
5428
5429 ac_ext=c
5430 ac_cpp='$CPP $CPPFLAGS'
5431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5435 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5436 # On Suns, sometimes $CPP names a directory.
5437 if test -n "$CPP" && test -d "$CPP"; then
5438   CPP=
5439 fi
5440 if test -z "$CPP"; then
5441   if test "${ac_cv_prog_CPP+set}" = set; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444       # Double quotes because CPP needs to be expanded
5445     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5446     do
5447       ac_preproc_ok=false
5448 for ac_c_preproc_warn_flag in '' yes
5449 do
5450   # Use a header file that comes with gcc, so configuring glibc
5451   # with a fresh cross-compiler works.
5452   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453   # <limits.h> exists even on freestanding compilers.
5454   # On the NeXT, cc -E runs the code through the compiler's parser,
5455   # not just through cpp. "Syntax error" is here to catch this case.
5456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h.  */
5458 #ifdef __STDC__
5459 # include <limits.h>
5460 #else
5461 # include <assert.h>
5462 #endif
5463                      Syntax error
5464 _ACEOF
5465 if ac_fn_c_try_cpp "$LINENO"; then :
5466
5467 else
5468   # Broken: fails on valid input.
5469 continue
5470 fi
5471 rm -f conftest.err conftest.$ac_ext
5472
5473   # OK, works on sane cases.  Now check whether nonexistent headers
5474   # can be detected and how.
5475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h.  */
5477 #include <ac_nonexistent.h>
5478 _ACEOF
5479 if ac_fn_c_try_cpp "$LINENO"; then :
5480   # Broken: success on invalid input.
5481 continue
5482 else
5483   # Passes both tests.
5484 ac_preproc_ok=:
5485 break
5486 fi
5487 rm -f conftest.err conftest.$ac_ext
5488
5489 done
5490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5491 rm -f conftest.err conftest.$ac_ext
5492 if $ac_preproc_ok; then :
5493   break
5494 fi
5495
5496     done
5497     ac_cv_prog_CPP=$CPP
5498
5499 fi
5500   CPP=$ac_cv_prog_CPP
5501 else
5502   ac_cv_prog_CPP=$CPP
5503 fi
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5505 $as_echo "$CPP" >&6; }
5506 ac_preproc_ok=false
5507 for ac_c_preproc_warn_flag in '' yes
5508 do
5509   # Use a header file that comes with gcc, so configuring glibc
5510   # with a fresh cross-compiler works.
5511   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512   # <limits.h> exists even on freestanding compilers.
5513   # On the NeXT, cc -E runs the code through the compiler's parser,
5514   # not just through cpp. "Syntax error" is here to catch this case.
5515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h.  */
5517 #ifdef __STDC__
5518 # include <limits.h>
5519 #else
5520 # include <assert.h>
5521 #endif
5522                      Syntax error
5523 _ACEOF
5524 if ac_fn_c_try_cpp "$LINENO"; then :
5525
5526 else
5527   # Broken: fails on valid input.
5528 continue
5529 fi
5530 rm -f conftest.err conftest.$ac_ext
5531
5532   # OK, works on sane cases.  Now check whether nonexistent headers
5533   # can be detected and how.
5534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h.  */
5536 #include <ac_nonexistent.h>
5537 _ACEOF
5538 if ac_fn_c_try_cpp "$LINENO"; then :
5539   # Broken: success on invalid input.
5540 continue
5541 else
5542   # Passes both tests.
5543 ac_preproc_ok=:
5544 break
5545 fi
5546 rm -f conftest.err conftest.$ac_ext
5547
5548 done
5549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5550 rm -f conftest.err conftest.$ac_ext
5551 if $ac_preproc_ok; then :
5552
5553 else
5554   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5556 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5557 See \`config.log' for more details." "$LINENO" 5; }
5558 fi
5559
5560 ac_ext=c
5561 ac_cpp='$CPP $CPPFLAGS'
5562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5567 $as_echo_n "checking for inline... " >&6; }
5568 if test "${ac_cv_c_inline+set}" = set; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   ac_cv_c_inline=no
5572 for ac_kw in inline __inline__ __inline; do
5573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h.  */
5575 #ifndef __cplusplus
5576 typedef int foo_t;
5577 static $ac_kw foo_t static_foo () {return 0; }
5578 $ac_kw foo_t foo () {return 0; }
5579 #endif
5580
5581 _ACEOF
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583   ac_cv_c_inline=$ac_kw
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586   test "$ac_cv_c_inline" != no && break
5587 done
5588
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5591 $as_echo "$ac_cv_c_inline" >&6; }
5592
5593 case $ac_cv_c_inline in
5594   inline | yes) ;;
5595   *)
5596     case $ac_cv_c_inline in
5597       no) ac_val=;;
5598       *) ac_val=$ac_cv_c_inline;;
5599     esac
5600     cat >>confdefs.h <<_ACEOF
5601 #ifndef __cplusplus
5602 #define inline $ac_val
5603 #endif
5604 _ACEOF
5605     ;;
5606 esac
5607
5608
5609 # Check whether --enable-largefile was given.
5610 if test "${enable_largefile+set}" = set; then :
5611   enableval=$enable_largefile;
5612 fi
5613
5614 if test "$enable_largefile" != no; then
5615
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5617 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5618 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   ac_cv_sys_largefile_CC=no
5622      if test "$GCC" != yes; then
5623        ac_save_CC=$CC
5624        while :; do
5625          # IRIX 6.2 and later do not support large files by default,
5626          # so use the C compiler's -n32 option if that helps.
5627          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h.  */
5629 #include <sys/types.h>
5630  /* Check that off_t can represent 2**63 - 1 correctly.
5631     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5632     since some C++ compilers masquerading as C compilers
5633     incorrectly reject 9223372036854775807.  */
5634 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5635   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5636                        && LARGE_OFF_T % 2147483647 == 1)
5637                       ? 1 : -1];
5638 int
5639 main ()
5640 {
5641
5642   ;
5643   return 0;
5644 }
5645 _ACEOF
5646          if ac_fn_c_try_compile "$LINENO"; then :
5647   break
5648 fi
5649 rm -f core conftest.err conftest.$ac_objext
5650          CC="$CC -n32"
5651          if ac_fn_c_try_compile "$LINENO"; then :
5652   ac_cv_sys_largefile_CC=' -n32'; break
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext
5655          break
5656        done
5657        CC=$ac_save_CC
5658        rm -f conftest.$ac_ext
5659     fi
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5662 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5663   if test "$ac_cv_sys_largefile_CC" != no; then
5664     CC=$CC$ac_cv_sys_largefile_CC
5665   fi
5666
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5668 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5669 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5670   $as_echo_n "(cached) " >&6
5671 else
5672   while :; do
5673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h.  */
5675 #include <sys/types.h>
5676  /* Check that off_t can represent 2**63 - 1 correctly.
5677     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5678     since some C++ compilers masquerading as C compilers
5679     incorrectly reject 9223372036854775807.  */
5680 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5681   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5682                        && LARGE_OFF_T % 2147483647 == 1)
5683                       ? 1 : -1];
5684 int
5685 main ()
5686 {
5687
5688   ;
5689   return 0;
5690 }
5691 _ACEOF
5692 if ac_fn_c_try_compile "$LINENO"; then :
5693   ac_cv_sys_file_offset_bits=no; break
5694 fi
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h.  */
5698 #define _FILE_OFFSET_BITS 64
5699 #include <sys/types.h>
5700  /* Check that off_t can represent 2**63 - 1 correctly.
5701     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5702     since some C++ compilers masquerading as C compilers
5703     incorrectly reject 9223372036854775807.  */
5704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5705   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5706                        && LARGE_OFF_T % 2147483647 == 1)
5707                       ? 1 : -1];
5708 int
5709 main ()
5710 {
5711
5712   ;
5713   return 0;
5714 }
5715 _ACEOF
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717   ac_cv_sys_file_offset_bits=64; break
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720   ac_cv_sys_file_offset_bits=unknown
5721   break
5722 done
5723 fi
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5725 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5726 case $ac_cv_sys_file_offset_bits in #(
5727   no | unknown) ;;
5728   *)
5729 cat >>confdefs.h <<_ACEOF
5730 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5731 _ACEOF
5732 ;;
5733 esac
5734 rm -rf conftest*
5735   if test $ac_cv_sys_file_offset_bits = unknown; then
5736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5737 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5738 if test "${ac_cv_sys_large_files+set}" = set; then :
5739   $as_echo_n "(cached) " >&6
5740 else
5741   while :; do
5742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h.  */
5744 #include <sys/types.h>
5745  /* Check that off_t can represent 2**63 - 1 correctly.
5746     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5747     since some C++ compilers masquerading as C compilers
5748     incorrectly reject 9223372036854775807.  */
5749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5750   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5751                        && LARGE_OFF_T % 2147483647 == 1)
5752                       ? 1 : -1];
5753 int
5754 main ()
5755 {
5756
5757   ;
5758   return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_compile "$LINENO"; then :
5762   ac_cv_sys_large_files=no; break
5763 fi
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h.  */
5767 #define _LARGE_FILES 1
5768 #include <sys/types.h>
5769  /* Check that off_t can represent 2**63 - 1 correctly.
5770     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5771     since some C++ compilers masquerading as C compilers
5772     incorrectly reject 9223372036854775807.  */
5773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5774   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5775                        && LARGE_OFF_T % 2147483647 == 1)
5776                       ? 1 : -1];
5777 int
5778 main ()
5779 {
5780
5781   ;
5782   return 0;
5783 }
5784 _ACEOF
5785 if ac_fn_c_try_compile "$LINENO"; then :
5786   ac_cv_sys_large_files=1; break
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789   ac_cv_sys_large_files=unknown
5790   break
5791 done
5792 fi
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5794 $as_echo "$ac_cv_sys_large_files" >&6; }
5795 case $ac_cv_sys_large_files in #(
5796   no | unknown) ;;
5797   *)
5798 cat >>confdefs.h <<_ACEOF
5799 #define _LARGE_FILES $ac_cv_sys_large_files
5800 _ACEOF
5801 ;;
5802 esac
5803 rm -rf conftest*
5804   fi
5805 fi
5806
5807
5808 # sizeof(char) is 1 by definition.
5809 # The cast to long int works around a bug in the HP C Compiler
5810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5812 # This bug is HP SR number 8606223364.
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5814 $as_echo_n "checking size of void *... " >&6; }
5815 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5816   $as_echo_n "(cached) " >&6
5817 else
5818   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5819
5820 else
5821   if test "$ac_cv_type_void_p" = yes; then
5822      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5824 { as_fn_set_status 77
5825 as_fn_error "cannot compute sizeof (void *)
5826 See \`config.log' for more details." "$LINENO" 5; }; }
5827    else
5828      ac_cv_sizeof_void_p=0
5829    fi
5830 fi
5831
5832 fi
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5834 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5835
5836
5837
5838 cat >>confdefs.h <<_ACEOF
5839 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5840 _ACEOF
5841
5842
5843 # The cast to long int works around a bug in the HP C Compiler
5844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5846 # This bug is HP SR number 8606223364.
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5848 $as_echo_n "checking size of short... " >&6; }
5849 if test "${ac_cv_sizeof_short+set}" = set; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5853
5854 else
5855   if test "$ac_cv_type_short" = yes; then
5856      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858 { as_fn_set_status 77
5859 as_fn_error "cannot compute sizeof (short)
5860 See \`config.log' for more details." "$LINENO" 5; }; }
5861    else
5862      ac_cv_sizeof_short=0
5863    fi
5864 fi
5865
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5868 $as_echo "$ac_cv_sizeof_short" >&6; }
5869
5870
5871
5872 cat >>confdefs.h <<_ACEOF
5873 #define SIZEOF_SHORT $ac_cv_sizeof_short
5874 _ACEOF
5875
5876
5877 # The cast to long int works around a bug in the HP C Compiler
5878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5880 # This bug is HP SR number 8606223364.
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5882 $as_echo_n "checking size of int... " >&6; }
5883 if test "${ac_cv_sizeof_int+set}" = set; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5887
5888 else
5889   if test "$ac_cv_type_int" = yes; then
5890      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5892 { as_fn_set_status 77
5893 as_fn_error "cannot compute sizeof (int)
5894 See \`config.log' for more details." "$LINENO" 5; }; }
5895    else
5896      ac_cv_sizeof_int=0
5897    fi
5898 fi
5899
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5902 $as_echo "$ac_cv_sizeof_int" >&6; }
5903
5904
5905
5906 cat >>confdefs.h <<_ACEOF
5907 #define SIZEOF_INT $ac_cv_sizeof_int
5908 _ACEOF
5909
5910
5911 # The cast to long int works around a bug in the HP C Compiler
5912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5914 # This bug is HP SR number 8606223364.
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5916 $as_echo_n "checking size of long... " >&6; }
5917 if test "${ac_cv_sizeof_long+set}" = set; then :
5918   $as_echo_n "(cached) " >&6
5919 else
5920   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5921
5922 else
5923   if test "$ac_cv_type_long" = yes; then
5924      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5926 { as_fn_set_status 77
5927 as_fn_error "cannot compute sizeof (long)
5928 See \`config.log' for more details." "$LINENO" 5; }; }
5929    else
5930      ac_cv_sizeof_long=0
5931    fi
5932 fi
5933
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5936 $as_echo "$ac_cv_sizeof_long" >&6; }
5937
5938
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define SIZEOF_LONG $ac_cv_sizeof_long
5942 _ACEOF
5943
5944
5945 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5946 if test "x$ac_cv_type_long_long" = x""yes; then :
5947
5948 cat >>confdefs.h <<_ACEOF
5949 #define HAVE_LONG_LONG 1
5950 _ACEOF
5951
5952 # The cast to long int works around a bug in the HP C Compiler
5953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5955 # This bug is HP SR number 8606223364.
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5957 $as_echo_n "checking size of long long... " >&6; }
5958 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5959   $as_echo_n "(cached) " >&6
5960 else
5961   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5962
5963 else
5964   if test "$ac_cv_type_long_long" = yes; then
5965      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967 { as_fn_set_status 77
5968 as_fn_error "cannot compute sizeof (long long)
5969 See \`config.log' for more details." "$LINENO" 5; }; }
5970    else
5971      ac_cv_sizeof_long_long=0
5972    fi
5973 fi
5974
5975 fi
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5977 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5978
5979
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5983 _ACEOF
5984
5985
5986 fi
5987
5988 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5989 if test "x$ac_cv_type___int64" = x""yes; then :
5990
5991 cat >>confdefs.h <<_ACEOF
5992 #define HAVE___INT64 1
5993 _ACEOF
5994
5995 # The cast to long int works around a bug in the HP C Compiler
5996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5998 # This bug is HP SR number 8606223364.
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6000 $as_echo_n "checking size of __int64... " >&6; }
6001 if test "${ac_cv_sizeof___int64+set}" = set; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
6005
6006 else
6007   if test "$ac_cv_type___int64" = yes; then
6008      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6010 { as_fn_set_status 77
6011 as_fn_error "cannot compute sizeof (__int64)
6012 See \`config.log' for more details." "$LINENO" 5; }; }
6013    else
6014      ac_cv_sizeof___int64=0
6015    fi
6016 fi
6017
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6020 $as_echo "$ac_cv_sizeof___int64" >&6; }
6021
6022
6023
6024 cat >>confdefs.h <<_ACEOF
6025 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6026 _ACEOF
6027
6028
6029 fi
6030
6031 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6032 case $ac_cv_c_int8_t in #(
6033   no|yes) ;; #(
6034   *)
6035
6036 cat >>confdefs.h <<_ACEOF
6037 #define int8_t $ac_cv_c_int8_t
6038 _ACEOF
6039 ;;
6040 esac
6041
6042 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6043 case $ac_cv_c_int16_t in #(
6044   no|yes) ;; #(
6045   *)
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define int16_t $ac_cv_c_int16_t
6049 _ACEOF
6050 ;;
6051 esac
6052
6053 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6054 case $ac_cv_c_int32_t in #(
6055   no|yes) ;; #(
6056   *)
6057
6058 cat >>confdefs.h <<_ACEOF
6059 #define int32_t $ac_cv_c_int32_t
6060 _ACEOF
6061 ;;
6062 esac
6063
6064 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6065 case $ac_cv_c_int64_t in #(
6066   no|yes) ;; #(
6067   *)
6068
6069 cat >>confdefs.h <<_ACEOF
6070 #define int64_t $ac_cv_c_int64_t
6071 _ACEOF
6072 ;;
6073 esac
6074
6075
6076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6077 $as_echo_n "checking for long long int... " >&6; }
6078 if test "${ac_cv_type_long_long_int+set}" = set; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h.  */
6083
6084   /* For now, do not test the preprocessor; as of 2007 there are too many
6085          implementations with broken preprocessors.  Perhaps this can
6086          be revisited in 2012.  In the meantime, code should not expect
6087          #if to work with literals wider than 32 bits.  */
6088       /* Test literals.  */
6089       long long int ll = 9223372036854775807ll;
6090       long long int nll = -9223372036854775807LL;
6091       unsigned long long int ull = 18446744073709551615ULL;
6092       /* Test constant expressions.   */
6093       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6094                      ? 1 : -1)];
6095       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6096                      ? 1 : -1)];
6097       int i = 63;
6098 int
6099 main ()
6100 {
6101 /* Test availability of runtime routines for shift and division.  */
6102       long long int llmax = 9223372036854775807ll;
6103       unsigned long long int ullmax = 18446744073709551615ull;
6104       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6105               | (llmax / ll) | (llmax % ll)
6106               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6107               | (ullmax / ull) | (ullmax % ull));
6108   ;
6109   return 0;
6110 }
6111
6112 _ACEOF
6113 if ac_fn_c_try_link "$LINENO"; then :
6114                         if test "$cross_compiling" = yes; then :
6115   ac_cv_type_long_long_int=yes
6116 else
6117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h.  */
6119 #include <limits.h>
6120                #ifndef LLONG_MAX
6121                # define HALF \
6122                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6123                # define LLONG_MAX (HALF - 1 + HALF)
6124                #endif
6125 int
6126 main ()
6127 {
6128 long long int n = 1;
6129                int i;
6130                for (i = 0; ; i++)
6131                  {
6132                    long long int m = n << i;
6133                    if (m >> i != n)
6134                      return 1;
6135                    if (LLONG_MAX / 2 < m)
6136                      break;
6137                  }
6138                return 0;
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 if ac_fn_c_try_run "$LINENO"; then :
6144   ac_cv_type_long_long_int=yes
6145 else
6146   ac_cv_type_long_long_int=no
6147 fi
6148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6149   conftest.$ac_objext conftest.beam conftest.$ac_ext
6150 fi
6151
6152 else
6153   ac_cv_type_long_long_int=no
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext \
6156     conftest$ac_exeext conftest.$ac_ext
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6159 $as_echo "$ac_cv_type_long_long_int" >&6; }
6160   if test $ac_cv_type_long_long_int = yes; then
6161
6162 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6163
6164   fi
6165
6166
6167
6168   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6169 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6170
6171 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6172
6173 else
6174   test $ac_cv_type_long_long_int = yes \
6175        && ac_type='long long int' \
6176        || ac_type='long int'
6177
6178 cat >>confdefs.h <<_ACEOF
6179 #define intmax_t $ac_type
6180 _ACEOF
6181
6182 fi
6183
6184
6185
6186   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6188
6189 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6190
6191 else
6192   for ac_type in 'int' 'long int' 'long long int'; do
6193        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h.  */
6195 $ac_includes_default
6196 int
6197 main ()
6198 {
6199 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6200 test_array [0] = 0
6201
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 if ac_fn_c_try_compile "$LINENO"; then :
6207
6208 cat >>confdefs.h <<_ACEOF
6209 #define intptr_t $ac_type
6210 _ACEOF
6211
6212           ac_type=
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215        test -z "$ac_type" && break
6216      done
6217 fi
6218
6219
6220 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6221 case $ac_cv_c_uint8_t in #(
6222   no|yes) ;; #(
6223   *)
6224
6225 $as_echo "#define _UINT8_T 1" >>confdefs.h
6226
6227
6228 cat >>confdefs.h <<_ACEOF
6229 #define uint8_t $ac_cv_c_uint8_t
6230 _ACEOF
6231 ;;
6232   esac
6233
6234 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6235 case $ac_cv_c_uint16_t in #(
6236   no|yes) ;; #(
6237   *)
6238
6239
6240 cat >>confdefs.h <<_ACEOF
6241 #define uint16_t $ac_cv_c_uint16_t
6242 _ACEOF
6243 ;;
6244   esac
6245
6246 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6247 case $ac_cv_c_uint32_t in #(
6248   no|yes) ;; #(
6249   *)
6250
6251 $as_echo "#define _UINT32_T 1" >>confdefs.h
6252
6253
6254 cat >>confdefs.h <<_ACEOF
6255 #define uint32_t $ac_cv_c_uint32_t
6256 _ACEOF
6257 ;;
6258   esac
6259
6260 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6261 case $ac_cv_c_uint64_t in #(
6262   no|yes) ;; #(
6263   *)
6264
6265 $as_echo "#define _UINT64_T 1" >>confdefs.h
6266
6267
6268 cat >>confdefs.h <<_ACEOF
6269 #define uint64_t $ac_cv_c_uint64_t
6270 _ACEOF
6271 ;;
6272   esac
6273
6274
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6276 $as_echo_n "checking for unsigned long long int... " >&6; }
6277 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6278   $as_echo_n "(cached) " >&6
6279 else
6280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h.  */
6282
6283   /* For now, do not test the preprocessor; as of 2007 there are too many
6284          implementations with broken preprocessors.  Perhaps this can
6285          be revisited in 2012.  In the meantime, code should not expect
6286          #if to work with literals wider than 32 bits.  */
6287       /* Test literals.  */
6288       long long int ll = 9223372036854775807ll;
6289       long long int nll = -9223372036854775807LL;
6290       unsigned long long int ull = 18446744073709551615ULL;
6291       /* Test constant expressions.   */
6292       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6293                      ? 1 : -1)];
6294       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6295                      ? 1 : -1)];
6296       int i = 63;
6297 int
6298 main ()
6299 {
6300 /* Test availability of runtime routines for shift and division.  */
6301       long long int llmax = 9223372036854775807ll;
6302       unsigned long long int ullmax = 18446744073709551615ull;
6303       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6304               | (llmax / ll) | (llmax % ll)
6305               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6306               | (ullmax / ull) | (ullmax % ull));
6307   ;
6308   return 0;
6309 }
6310
6311 _ACEOF
6312 if ac_fn_c_try_link "$LINENO"; then :
6313   ac_cv_type_unsigned_long_long_int=yes
6314 else
6315   ac_cv_type_unsigned_long_long_int=no
6316 fi
6317 rm -f core conftest.err conftest.$ac_objext \
6318     conftest$ac_exeext conftest.$ac_ext
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6321 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6322   if test $ac_cv_type_unsigned_long_long_int = yes; then
6323
6324 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6325
6326   fi
6327
6328
6329
6330   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6331 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6332
6333 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6334
6335 else
6336   test $ac_cv_type_unsigned_long_long_int = yes \
6337        && ac_type='unsigned long long int' \
6338        || ac_type='unsigned long int'
6339
6340 cat >>confdefs.h <<_ACEOF
6341 #define uintmax_t $ac_type
6342 _ACEOF
6343
6344 fi
6345
6346
6347
6348   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6349 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6350
6351 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6352
6353 else
6354   for ac_type in 'unsigned int' 'unsigned long int' \
6355         'unsigned long long int'; do
6356        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h.  */
6358 $ac_includes_default
6359 int
6360 main ()
6361 {
6362 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6363 test_array [0] = 0
6364
6365   ;
6366   return 0;
6367 }
6368 _ACEOF
6369 if ac_fn_c_try_compile "$LINENO"; then :
6370
6371 cat >>confdefs.h <<_ACEOF
6372 #define uintptr_t $ac_type
6373 _ACEOF
6374
6375           ac_type=
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378        test -z "$ac_type" && break
6379      done
6380 fi
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396 # ---------------------
6397 # Warnings and checking
6398 # ---------------------
6399
6400 # Check $CC warning features (if it's GCC).
6401 # We want to use -pedantic, but we don't want warnings about
6402 # * 'long long'
6403 # * variadic macros
6404 # * overlong strings
6405 # So, we only use -pedantic if we can disable those warnings.
6406
6407 loose_warn=
6408 save_CFLAGS="$CFLAGS"
6409 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6410   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6411
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6413 $as_echo_n "checking whether $CC supports $option... " >&6; }
6414 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6415   $as_echo_n "(cached) " >&6
6416 else
6417   CFLAGS="$option"
6418     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h.  */
6420
6421 int
6422 main ()
6423 {
6424
6425   ;
6426   return 0;
6427 }
6428 _ACEOF
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430   eval "$as_acx_Woption=yes"
6431 else
6432   eval "$as_acx_Woption=no"
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435
6436 fi
6437 eval ac_res=\$$as_acx_Woption
6438                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6441   loose_warn="$loose_warn${loose_warn:+ }$option"
6442 fi
6443   done
6444 CFLAGS="$save_CFLAGS"
6445
6446 c_loose_warn=
6447 save_CFLAGS="$CFLAGS"
6448 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6449   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6450
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6452 $as_echo_n "checking whether $CC supports $option... " >&6; }
6453 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   CFLAGS="$option"
6457     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h.  */
6459
6460 int
6461 main ()
6462 {
6463
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469   eval "$as_acx_Woption=yes"
6470 else
6471   eval "$as_acx_Woption=no"
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474
6475 fi
6476 eval ac_res=\$$as_acx_Woption
6477                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6478 $as_echo "$ac_res" >&6; }
6479   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6480   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6481 fi
6482   done
6483 CFLAGS="$save_CFLAGS"
6484
6485 strict_warn=
6486 save_CFLAGS="$CFLAGS"
6487 for option in -Wmissing-format-attribute; do
6488   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6489
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6491 $as_echo_n "checking whether $CC supports $option... " >&6; }
6492 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   CFLAGS="$option"
6496     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h.  */
6498
6499 int
6500 main ()
6501 {
6502
6503   ;
6504   return 0;
6505 }
6506 _ACEOF
6507 if ac_fn_c_try_compile "$LINENO"; then :
6508   eval "$as_acx_Woption=yes"
6509 else
6510   eval "$as_acx_Woption=no"
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513
6514 fi
6515 eval ac_res=\$$as_acx_Woption
6516                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6517 $as_echo "$ac_res" >&6; }
6518   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6519   strict_warn="$strict_warn${strict_warn:+ }$option"
6520 fi
6521   done
6522 CFLAGS="$save_CFLAGS"
6523
6524 c_strict_warn=
6525 save_CFLAGS="$CFLAGS"
6526 for option in -Wold-style-definition -Wc++-compat; do
6527   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6528
6529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6530 $as_echo_n "checking whether $CC supports $option... " >&6; }
6531 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6532   $as_echo_n "(cached) " >&6
6533 else
6534   CFLAGS="$option"
6535     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h.  */
6537
6538 int
6539 main ()
6540 {
6541
6542   ;
6543   return 0;
6544 }
6545 _ACEOF
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547   eval "$as_acx_Woption=yes"
6548 else
6549   eval "$as_acx_Woption=no"
6550 fi
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552
6553 fi
6554 eval ac_res=\$$as_acx_Woption
6555                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6556 $as_echo "$ac_res" >&6; }
6557   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6558   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6559 fi
6560   done
6561 CFLAGS="$save_CFLAGS"
6562
6563 if test "$GCC" = yes; then :
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6565 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6566 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6567   $as_echo_n "(cached) " >&6
6568 else
6569   save_CFLAGS="$CFLAGS"
6570 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h.  */
6573
6574 int
6575 main ()
6576 {
6577
6578   ;
6579   return 0;
6580 }
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6584 else
6585   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 CFLAGS="$save_CFLAGS"
6589 fi
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6591 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6592 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6593   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6594 fi
6595
6596 fi
6597
6598 # Check whether --enable-werror-always was given.
6599 if test "${enable_werror_always+set}" = set; then :
6600   enableval=$enable_werror_always;
6601 else
6602   enable_werror_always=no
6603 fi
6604
6605 if test $enable_werror_always = yes; then :
6606   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6607 fi
6608
6609
6610
6611 # The above macros do nothing if the compiler is not GCC.  However, the
6612 # Makefile has more goo to add other flags, so these variables are used
6613 # to enable warnings only for GCC.
6614 warn_cflags=
6615 warn_cxxflags=
6616 if test "x$GCC" = "xyes"; then
6617   warn_cflags='$(GCC_WARN_CFLAGS)'
6618   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6619 fi
6620
6621
6622
6623 # Enable expensive internal checks
6624 is_release=
6625 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6626   is_release=yes
6627 fi
6628
6629 # Check whether --enable-checking was given.
6630 if test "${enable_checking+set}" = set; then :
6631   enableval=$enable_checking; ac_checking_flags="${enableval}"
6632 else
6633
6634 # Determine the default checks.
6635 if test x$is_release = x ; then
6636   ac_checking_flags=yes
6637 else
6638   ac_checking_flags=release
6639 fi
6640 fi
6641
6642 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6643 for check in release $ac_checking_flags
6644 do
6645         case $check in
6646         # these set all the flags to specific states
6647         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6648                         ac_fold_checking= ; ac_gc_checking=1 ;
6649                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6650                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6651                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6652                         ac_types_checking=1 ;;
6653         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6654                         ac_fold_checking= ; ac_gc_checking= ;
6655                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6656                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6657                         ac_tree_checking= ; ac_valgrind_checking= ;
6658                         ac_types_checking= ;;
6659         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6660                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6661                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6662                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6663                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6664                         ac_types_checking=1 ;;
6665         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6666                         ac_fold_checking= ; ac_gc_checking= ;
6667                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6668                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6669                         ac_tree_checking= ; ac_valgrind_checking= ;
6670                         ac_types_checking= ;;
6671         # these enable particular checks
6672         assert)         ac_assert_checking=1 ;;
6673         df)             ac_df_checking=1 ;;
6674         fold)           ac_fold_checking=1 ;;
6675         gc)             ac_gc_checking=1 ;;
6676         gcac)           ac_gc_always_collect=1 ;;
6677         gimple)         ac_gimple_checking=1 ;;
6678         misc)           ac_checking=1 ;;
6679         rtl)            ac_rtl_checking=1 ;;
6680         rtlflag)        ac_rtlflag_checking=1 ;;
6681         runtime)        ac_runtime_checking=1 ;;
6682         tree)           ac_tree_checking=1 ;;
6683         types)          ac_types_checking=1 ;;
6684         valgrind)       ac_valgrind_checking=1 ;;
6685         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6686         esac
6687 done
6688 IFS="$ac_save_IFS"
6689
6690 nocommon_flag=""
6691 if test x$ac_checking != x ; then
6692
6693 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6694
6695   nocommon_flag=-fno-common
6696 fi
6697
6698 if test x$ac_df_checking != x ; then
6699
6700 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6701
6702 fi
6703 if test x$ac_assert_checking != x ; then
6704
6705 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6706
6707 fi
6708 if test x$ac_gimple_checking != x ; then
6709
6710 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6711
6712 fi
6713
6714 if test x$ac_runtime_checking != x ; then
6715
6716 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6717
6718 fi
6719 if test x$ac_tree_checking != x ; then
6720
6721 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6722
6723   TREEBROWSER=tree-browser.o
6724 fi
6725 if test x$ac_types_checking != x ; then
6726
6727 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6728
6729 fi
6730
6731 if test x$ac_rtl_checking != x ; then
6732
6733 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6734
6735 fi
6736 if test x$ac_rtlflag_checking != x ; then
6737
6738 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6739
6740 fi
6741 if test x$ac_gc_checking != x ; then
6742
6743 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6744
6745 fi
6746 if test x$ac_gc_always_collect != x ; then
6747
6748 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6749
6750 fi
6751 if test x$ac_fold_checking != x ; then
6752
6753 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6754
6755 fi
6756 valgrind_path_defines=
6757 valgrind_command=
6758
6759 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6760 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6761   have_valgrind_h=yes
6762 else
6763   have_valgrind_h=no
6764 fi
6765
6766
6767
6768 if test x$ac_valgrind_checking != x ; then
6769   # It is certainly possible that there's valgrind but no valgrind.h.
6770   # GCC relies on making annotations so we must have both.
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6772 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h.  */
6775 #include <valgrind/memcheck.h>
6776 #ifndef VALGRIND_DISCARD
6777 #error VALGRIND_DISCARD not defined
6778 #endif
6779 _ACEOF
6780 if ac_fn_c_try_cpp "$LINENO"; then :
6781   gcc_cv_header_valgrind_memcheck_h=yes
6782 else
6783   gcc_cv_header_valgrind_memcheck_h=no
6784 fi
6785 rm -f conftest.err conftest.$ac_ext
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6787 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6789 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h.  */
6792 #include <memcheck.h>
6793 #ifndef VALGRIND_DISCARD
6794 #error VALGRIND_DISCARD not defined
6795 #endif
6796 _ACEOF
6797 if ac_fn_c_try_cpp "$LINENO"; then :
6798   gcc_cv_header_memcheck_h=yes
6799 else
6800   gcc_cv_header_memcheck_h=no
6801 fi
6802 rm -f conftest.err conftest.$ac_ext
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6804 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6805
6806 # Prepare PATH_SEPARATOR.
6807 # The user is always right.
6808 if test "${PATH_SEPARATOR+set}" != set; then
6809   echo "#! /bin/sh" >conf$$.sh
6810   echo  "exit 0"   >>conf$$.sh
6811   chmod +x conf$$.sh
6812   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6813     PATH_SEPARATOR=';'
6814   else
6815     PATH_SEPARATOR=:
6816   fi
6817   rm -f conf$$.sh
6818 fi
6819
6820 # Find out how to test for executable files. Don't use a zero-byte file,
6821 # as systems may use methods other than mode bits to determine executability.
6822 cat >conf$$.file <<_ASEOF
6823 #! /bin/sh
6824 exit 0
6825 _ASEOF
6826 chmod +x conf$$.file
6827 if test -x conf$$.file >/dev/null 2>&1; then
6828   ac_executable_p="test -x"
6829 else
6830   ac_executable_p="test -f"
6831 fi
6832 rm -f conf$$.file
6833
6834 # Extract the first word of "valgrind", so it can be a program name with args.
6835 set dummy valgrind; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   case "$valgrind_path" in
6842   [\\/]* | ?:[\\/]*)
6843     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6844     ;;
6845   *)
6846     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6847     for ac_dir in $PATH; do
6848       IFS="$ac_save_IFS"
6849       test -z "$ac_dir" && ac_dir=.
6850       for ac_exec_ext in '' $ac_executable_extensions; do
6851         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6852           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6853             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6854             break 2
6855           fi
6856         fi
6857       done
6858     done
6859     IFS="$ac_save_IFS"
6860     ;;
6861 esac
6862 fi
6863 valgrind_path="$ac_cv_path_valgrind_path"
6864 if test -n "$valgrind_path"; then
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6866 $as_echo "$valgrind_path" >&6; }
6867 else
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872   if test "x$valgrind_path" = "x" \
6873     || (test $have_valgrind_h = no \
6874         && test $gcc_cv_header_memcheck_h = no \
6875         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6876         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6877   fi
6878   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6879   valgrind_command="$valgrind_path -q"
6880
6881 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6882
6883   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6884
6885 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6886
6887   fi
6888   if test $gcc_cv_header_memcheck_h = yes; then
6889
6890 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6891
6892   fi
6893 fi
6894
6895
6896
6897 # Enable code coverage collection
6898 # Check whether --enable-coverage was given.
6899 if test "${enable_coverage+set}" = set; then :
6900   enableval=$enable_coverage; case "${enableval}" in
6901   yes|noopt)
6902     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6903     ;;
6904   opt)
6905     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6906     ;;
6907   no)
6908     # a.k.a. --disable-coverage
6909     coverage_flags=""
6910     ;;
6911   *)
6912     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6913     ;;
6914 esac
6915 else
6916   coverage_flags=""
6917 fi
6918
6919
6920
6921 # Check whether --enable-gather-detailed-mem-stats was given.
6922 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6923   enableval=$enable_gather_detailed_mem_stats;
6924 else
6925   enable_gather_detailed_mem_stats=no
6926 fi
6927
6928 if test x$enable_gather_detailed_mem_stats = xyes ; then
6929
6930 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6931
6932 fi
6933
6934 # -------------------------------
6935 # Miscenalleous configure options
6936 # -------------------------------
6937
6938 # See if we are building gcc with C++.
6939 # Check whether --enable-build-with-cxx was given.
6940 if test "${enable_build_with_cxx+set}" = set; then :
6941   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6942 else
6943   ENABLE_BUILD_WITH_CXX=no
6944 fi
6945
6946
6947 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6948
6949 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6950
6951 fi
6952
6953 # With stabs
6954
6955 # Check whether --with-stabs was given.
6956 if test "${with_stabs+set}" = set; then :
6957   withval=$with_stabs; stabs="$with_stabs"
6958 else
6959   stabs=no
6960 fi
6961
6962
6963 # Determine whether or not multilibs are enabled.
6964 # Check whether --enable-multilib was given.
6965 if test "${enable_multilib+set}" = set; then :
6966   enableval=$enable_multilib;
6967 else
6968   enable_multilib=yes
6969 fi
6970
6971
6972
6973 # Enable __cxa_atexit for C++.
6974 # Check whether --enable-__cxa_atexit was given.
6975 if test "${enable___cxa_atexit+set}" = set; then :
6976   enableval=$enable___cxa_atexit;
6977 fi
6978
6979
6980 # Enable C extension for decimal float if target supports it.
6981
6982 # Check whether --enable-decimal-float was given.
6983 if test "${enable_decimal_float+set}" = set; then :
6984   enableval=$enable_decimal_float;
6985   case $enable_decimal_float in
6986     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6987     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6988 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6989   esac
6990
6991 else
6992
6993   case $target in
6994     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6995     i?86*-*-mingw* | x86_64*-*-mingw* | \
6996     i?86*-*-cygwin*)
6997       enable_decimal_float=yes
6998       ;;
6999     *)
7000       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7001 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7002       enable_decimal_float=no
7003       ;;
7004   esac
7005
7006 fi
7007
7008
7009 # x86's use BID format instead of DPD
7010 case x$enable_decimal_float in
7011   xyes)
7012     case $target in
7013       i?86*-*-* | x86_64*-*-*)
7014         enable_decimal_float=bid
7015         ;;
7016       *)
7017         enable_decimal_float=dpd
7018         ;;
7019     esac
7020     default_decimal_float=$enable_decimal_float
7021     ;;
7022   xno)
7023     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7024     # dependency on libdecnumber.
7025     default_decimal_float=dpd
7026     ;;
7027 esac
7028
7029
7030
7031
7032 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7033
7034 cat >>confdefs.h <<_ACEOF
7035 #define ENABLE_DECIMAL_FLOAT $dfp
7036 _ACEOF
7037
7038
7039 # Use default_decimal_float for dependency.
7040 enable_decimal_float=$default_decimal_float
7041
7042 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7043
7044 cat >>confdefs.h <<_ACEOF
7045 #define ENABLE_DECIMAL_BID_FORMAT $bid
7046 _ACEOF
7047
7048
7049 # Enable C extension for fixed-point arithmetic.
7050 # Check whether --enable-fixed-point was given.
7051 if test "${enable_fixed_point+set}" = set; then :
7052   enableval=$enable_fixed_point;
7053 else
7054
7055   case $target in
7056     arm*)
7057       enable_fixed_point=yes
7058       ;;
7059
7060     mips*-*-*)
7061       case $host in
7062         mips*-sgi-irix*)
7063           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7064 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7065           enable_fixed_point=no
7066           ;;
7067         *)
7068           enable_fixed_point=yes
7069           ;;
7070       esac
7071       ;;
7072     *)
7073       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7074 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7075       enable_fixed_point=no
7076       ;;
7077   esac
7078
7079 fi
7080
7081
7082
7083 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7084
7085 cat >>confdefs.h <<_ACEOF
7086 #define ENABLE_FIXED_POINT $fixedpoint
7087 _ACEOF
7088
7089
7090 # Enable threads
7091 # Pass with no value to take the default
7092 # Pass with a value to specify a thread package
7093 # Check whether --enable-threads was given.
7094 if test "${enable_threads+set}" = set; then :
7095   enableval=$enable_threads;
7096 else
7097   enable_threads=''
7098 fi
7099
7100
7101 # Check whether --enable-tls was given.
7102 if test "${enable_tls+set}" = set; then :
7103   enableval=$enable_tls;
7104   case $enable_tls in
7105     yes | no) ;;
7106     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7107 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7108   esac
7109
7110 else
7111   enable_tls=''
7112 fi
7113
7114
7115 # Check whether --enable-objc-gc was given.
7116 if test "${enable_objc_gc+set}" = set; then :
7117   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7118         objc_boehm_gc=''
7119 else
7120         objc_boehm_gc=1
7121 fi
7122 else
7123   objc_boehm_gc=''
7124 fi
7125
7126
7127
7128 # Check whether --with-dwarf2 was given.
7129 if test "${with_dwarf2+set}" = set; then :
7130   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7131 else
7132   dwarf2=no
7133 fi
7134
7135
7136 # Check whether --enable-shared was given.
7137 if test "${enable_shared+set}" = set; then :
7138   enableval=$enable_shared;
7139   case $enable_shared in
7140   yes | no) ;;
7141   *)
7142     enable_shared=no
7143     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7144     for pkg in $enableval; do
7145       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7146         enable_shared=yes
7147       fi
7148     done
7149     IFS="$ac_save_ifs"
7150     ;;
7151   esac
7152
7153 else
7154   enable_shared=yes
7155 fi
7156
7157
7158
7159
7160 # Check whether --with-native-system-header-dir was given.
7161 if test "${with_native_system_header_dir+set}" = set; then :
7162   withval=$with_native_system_header_dir;
7163  case ${with_native_system_header_dir} in
7164  yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7165  /* | [A-Za-z]:[\\/]*) ;;
7166  *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7167  esac
7168  configured_native_system_header_dir="${withval}"
7169
7170 else
7171   configured_native_system_header_dir=
7172 fi
7173
7174
7175
7176 # Check whether --with-build-sysroot was given.
7177 if test "${with_build_sysroot+set}" = set; then :
7178   withval=$with_build_sysroot; if test x"$withval" != x ; then
7179      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7180    fi
7181 else
7182   SYSROOT_CFLAGS_FOR_TARGET=
7183 fi
7184
7185
7186
7187
7188 # Check whether --with-sysroot was given.
7189 if test "${with_sysroot+set}" = set; then :
7190   withval=$with_sysroot;
7191  case ${with_sysroot} in
7192  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7193  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7194  esac
7195
7196  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7197  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7198
7199  if test "x$prefix" = xNONE; then
7200   test_prefix=/usr/local
7201  else
7202   test_prefix=$prefix
7203  fi
7204  if test "x$exec_prefix" = xNONE; then
7205   test_exec_prefix=$test_prefix
7206  else
7207   test_exec_prefix=$exec_prefix
7208  fi
7209  case ${TARGET_SYSTEM_ROOT} in
7210  "${test_prefix}"|"${test_prefix}/"*|\
7211  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7212  '${prefix}'|'${prefix}/'*|\
7213  '${exec_prefix}'|'${exec_prefix}/'*)
7214    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7215    TARGET_SYSTEM_ROOT_DEFINE="$t"
7216    ;;
7217  esac
7218
7219 else
7220
7221  TARGET_SYSTEM_ROOT=
7222  TARGET_SYSTEM_ROOT_DEFINE=
7223  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7224
7225 fi
7226
7227
7228
7229
7230
7231
7232 # Check whether --with-specs was given.
7233 if test "${with_specs+set}" = set; then :
7234   withval=$with_specs; CONFIGURE_SPECS=$withval
7235 else
7236   CONFIGURE_SPECS=
7237
7238 fi
7239
7240
7241
7242
7243
7244 # Check whether --with-pkgversion was given.
7245 if test "${with_pkgversion+set}" = set; then :
7246   withval=$with_pkgversion; case "$withval" in
7247       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7248       no)  PKGVERSION= ;;
7249       *)   PKGVERSION="($withval) " ;;
7250      esac
7251 else
7252   PKGVERSION="(GCC) "
7253
7254 fi
7255
7256
7257
7258
7259
7260 # Check whether --with-bugurl was given.
7261 if test "${with_bugurl+set}" = set; then :
7262   withval=$with_bugurl; case "$withval" in
7263       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7264       no)  BUGURL=
7265            ;;
7266       *)   BUGURL="$withval"
7267            ;;
7268      esac
7269 else
7270   BUGURL="http://gcc.gnu.org/bugs.html"
7271
7272 fi
7273
7274   case ${BUGURL} in
7275   "")
7276     REPORT_BUGS_TO=
7277     REPORT_BUGS_TEXI=
7278     ;;
7279   *)
7280     REPORT_BUGS_TO="<$BUGURL>"
7281     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7282     ;;
7283   esac;
7284
7285
7286
7287
7288 # Sanity check enable_languages in case someone does not run the toplevel
7289 # configure # script.
7290 # Check whether --enable-languages was given.
7291 if test "${enable_languages+set}" = set; then :
7292   enableval=$enable_languages; case ,${enable_languages}, in
7293        ,,|,yes,)
7294                 # go safe -- we cannot be much sure without the toplevel
7295                 # configure's
7296                 # analysis of which target libs are present and usable
7297                 enable_languages=c
7298                 ;;
7299          *,all,*)
7300                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7301                 ;;
7302         *,c,*)
7303                 ;;
7304         *)
7305                 enable_languages=c,${enable_languages}
7306                 ;;
7307 esac
7308 else
7309   enable_languages=c
7310 fi
7311
7312
7313
7314 # Check whether --with-multilib-list was given.
7315 if test "${with_multilib_list+set}" = set; then :
7316   withval=$with_multilib_list; :
7317 else
7318   with_multilib_list=default
7319 fi
7320
7321
7322 # -------------------------
7323 # Checks for other programs
7324 # -------------------------
7325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7327 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7328 set x ${MAKE-make}
7329 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7330 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7331   $as_echo_n "(cached) " >&6
7332 else
7333   cat >conftest.make <<\_ACEOF
7334 SHELL = /bin/sh
7335 all:
7336         @echo '@@@%%%=$(MAKE)=@@@%%%'
7337 _ACEOF
7338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7340   *@@@%%%=?*=@@@%%%*)
7341     eval ac_cv_prog_make_${ac_make}_set=yes;;
7342   *)
7343     eval ac_cv_prog_make_${ac_make}_set=no;;
7344 esac
7345 rm -f conftest.make
7346 fi
7347 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349 $as_echo "yes" >&6; }
7350   SET_MAKE=
7351 else
7352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354   SET_MAKE="MAKE=${MAKE-make}"
7355 fi
7356
7357
7358 # Find some useful tools
7359 for ac_prog in gawk mawk nawk awk
7360 do
7361   # Extract the first word of "$ac_prog", so it can be a program name with args.
7362 set dummy $ac_prog; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_AWK+set}" = set; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   if test -n "$AWK"; then
7369   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376     for ac_exec_ext in '' $ac_executable_extensions; do
7377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378     ac_cv_prog_AWK="$ac_prog"
7379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383   done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 AWK=$ac_cv_prog_AWK
7389 if test -n "$AWK"; then
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7391 $as_echo "$AWK" >&6; }
7392 else
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398   test -n "$AWK" && break
7399 done
7400
7401 # We need awk to create options.c and options.h.
7402 # Bail out if it's missing.
7403 case ${AWK} in
7404   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7405 esac
7406
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7408 $as_echo_n "checking whether ln -s works... " >&6; }
7409 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7410   $as_echo_n "(cached) " >&6
7411 else
7412   rm -f conftestdata_t
7413 echo >conftestdata_f
7414 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7415 then
7416   gcc_cv_prog_LN_S="ln -s"
7417 else
7418   if ln conftestdata_f conftestdata_t 2>/dev/null
7419   then
7420     gcc_cv_prog_LN_S=ln
7421   else
7422     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7423     then
7424       gcc_cv_prog_LN_S="cp -p"
7425     else
7426       gcc_cv_prog_LN_S=cp
7427     fi
7428   fi
7429 fi
7430 rm -f conftestdata_f conftestdata_t
7431
7432 fi
7433 LN_S="$gcc_cv_prog_LN_S"
7434 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7436 $as_echo "yes" >&6; }
7437 else
7438   if test "$gcc_cv_prog_LN_S" = "ln"; then
7439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7440 $as_echo "no, using ln" >&6; }
7441   else
7442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7443 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7444   fi
7445 fi
7446
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7448 $as_echo_n "checking whether ln works... " >&6; }
7449 if test "${acx_cv_prog_LN+set}" = set; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   rm -f conftestdata_t
7453 echo >conftestdata_f
7454 if ln conftestdata_f conftestdata_t 2>/dev/null
7455 then
7456   acx_cv_prog_LN=ln
7457 else
7458   acx_cv_prog_LN=no
7459 fi
7460 rm -f conftestdata_f conftestdata_t
7461
7462 fi
7463 if test $acx_cv_prog_LN = no; then
7464   LN="$LN_S"
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7466 $as_echo "no, using $LN" >&6; }
7467 else
7468   LN="$acx_cv_prog_LN"
7469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7470 $as_echo "yes" >&6; }
7471 fi
7472
7473 if test -n "$ac_tool_prefix"; then
7474   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   if test -n "$RANLIB"; then
7482   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489     for ac_exec_ext in '' $ac_executable_extensions; do
7490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496   done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 RANLIB=$ac_cv_prog_RANLIB
7502 if test -n "$RANLIB"; then
7503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7504 $as_echo "$RANLIB" >&6; }
7505 else
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7508 fi
7509
7510
7511 fi
7512 if test -z "$ac_cv_prog_RANLIB"; then
7513   ac_ct_RANLIB=$RANLIB
7514   # Extract the first word of "ranlib", so it can be a program name with args.
7515 set dummy ranlib; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7519   $as_echo_n "(cached) " >&6
7520 else
7521   if test -n "$ac_ct_RANLIB"; then
7522   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529     for ac_exec_ext in '' $ac_executable_extensions; do
7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531     ac_cv_prog_ac_ct_RANLIB="ranlib"
7532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536   done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7542 if test -n "$ac_ct_RANLIB"; then
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7544 $as_echo "$ac_ct_RANLIB" >&6; }
7545 else
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550   if test "x$ac_ct_RANLIB" = x; then
7551     RANLIB=":"
7552   else
7553     case $cross_compiling:$ac_tool_warned in
7554 yes:)
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7558 esac
7559     RANLIB=$ac_ct_RANLIB
7560   fi
7561 else
7562   RANLIB="$ac_cv_prog_RANLIB"
7563 fi
7564
7565 case "${host}" in
7566 *-*-darwin*)
7567   # By default, the Darwin ranlib will not treat common symbols as
7568   # definitions when  building the archive table of contents.  Other
7569   # ranlibs do that; pass an option to the Darwin ranlib that makes
7570   # it behave similarly.
7571   ranlib_flags="-c"
7572   ;;
7573 *)
7574   ranlib_flags=""
7575 esac
7576
7577
7578 # Find a good install program.  We prefer a C program (faster),
7579 # so one script is as good as another.  But avoid the broken or
7580 # incompatible versions:
7581 # SysV /etc/install, /usr/sbin/install
7582 # SunOS /usr/etc/install
7583 # IRIX /sbin/install
7584 # AIX /bin/install
7585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7587 # ./install, which can be erroneously created by make from ./install.sh.
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7589 $as_echo_n "checking for a BSD compatible install... " >&6; }
7590 if test -z "$INSTALL"; then
7591 if test "${ac_cv_path_install+set}" = set; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7595   for ac_dir in $PATH; do
7596     # Account for people who put trailing slashes in PATH elements.
7597     case "$ac_dir/" in
7598     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7599     *)
7600       # OSF1 and SCO ODT 3.0 have their own names for install.
7601       for ac_prog in ginstall scoinst install; do
7602         if test -f $ac_dir/$ac_prog; then
7603           if test $ac_prog = install &&
7604             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7605             # AIX install.  It has an incompatible calling convention.
7606             # OSF/1 installbsd also uses dspmsg, but is usable.
7607             :
7608           else
7609             ac_cv_path_install="$ac_dir/$ac_prog -c"
7610             break 2
7611           fi
7612         fi
7613       done
7614       ;;
7615     esac
7616   done
7617   IFS="$ac_save_IFS"
7618
7619 fi
7620   if test "${ac_cv_path_install+set}" = set; then
7621     INSTALL="$ac_cv_path_install"
7622   else
7623     # As a last resort, use the slow shell script.  We don't cache a
7624     # path for INSTALL within a source directory, because that will
7625     # break other packages using the cache if that directory is
7626     # removed, or if the path is relative.
7627     INSTALL="$ac_install_sh"
7628   fi
7629 fi
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7631 $as_echo "$INSTALL" >&6; }
7632
7633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7634 # It thinks the first close brace ends the variable substitution.
7635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7636
7637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7638
7639
7640 # See if cmp has --ignore-initial.
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7642 $as_echo_n "checking for cmp's capabilities... " >&6; }
7643 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7644   $as_echo_n "(cached) " >&6
7645 else
7646    echo abfoo >t1
7647   echo cdfoo >t2
7648   gcc_cv_prog_cmp_skip=slowcompare
7649   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7650     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7651       :
7652     else
7653       gcc_cv_prog_cmp_skip=gnucompare
7654     fi
7655   fi
7656   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7657     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7658       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7659         :
7660       else
7661         gcc_cv_prog_cmp_skip=fastcompare
7662       fi
7663     fi
7664   fi
7665   rm t1 t2
7666
7667 fi
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7669 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7670 make_compare_target=$gcc_cv_prog_cmp_skip
7671
7672
7673
7674 # See if we have the mktemp command.
7675 # Extract the first word of "mktemp", so it can be a program name with args.
7676 set dummy mktemp; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7680   $as_echo_n "(cached) " >&6
7681 else
7682   if test -n "$have_mktemp_command"; then
7683   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690     for ac_exec_ext in '' $ac_executable_extensions; do
7691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692     ac_cv_prog_have_mktemp_command="yes"
7693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697   done
7698 IFS=$as_save_IFS
7699
7700   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7701 fi
7702 fi
7703 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7704 if test -n "$have_mktemp_command"; then
7705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7706 $as_echo "$have_mktemp_command" >&6; }
7707 else
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7710 fi
7711
7712
7713
7714 # See if makeinfo has been installed and is modern enough
7715 # that we can use it.
7716
7717   # Extract the first word of "makeinfo", so it can be a program name with args.
7718 set dummy makeinfo; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7722   $as_echo_n "(cached) " >&6
7723 else
7724   if test -n "$MAKEINFO"; then
7725   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732     for ac_exec_ext in '' $ac_executable_extensions; do
7733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734     ac_cv_prog_MAKEINFO="makeinfo"
7735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739   done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 MAKEINFO=$ac_cv_prog_MAKEINFO
7745 if test -n "$MAKEINFO"; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7747 $as_echo "$MAKEINFO" >&6; }
7748 else
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754   if test -n "$MAKEINFO"; then
7755     # Found it, now check the version.
7756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7757 $as_echo_n "checking for modern makeinfo... " >&6; }
7758 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7759   $as_echo_n "(cached) " >&6
7760 else
7761   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7762                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7763
7764                     case $ac_prog_version in
7765                       '')  gcc_cv_prog_makeinfo_modern=no;;
7766                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7767                       *)   gcc_cv_prog_makeinfo_modern=no;;
7768                     esac
7769
7770 fi
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7772 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7773   else
7774     gcc_cv_prog_makeinfo_modern=no
7775   fi
7776   if test $gcc_cv_prog_makeinfo_modern = no; then
7777     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7778   fi
7779
7780 if test $gcc_cv_prog_makeinfo_modern = no; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7782 *** Makeinfo is missing or too old.
7783 *** Info documentation will not be built." >&5
7784 $as_echo "$as_me: WARNING:
7785 *** Makeinfo is missing or too old.
7786 *** Info documentation will not be built." >&2;}
7787   BUILD_INFO=
7788 else
7789   BUILD_INFO=info
7790 fi
7791
7792
7793 # Is pod2man recent enough to regenerate manpages?
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7795 $as_echo_n "checking for recent Pod::Man... " >&6; }
7796 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7798 $as_echo "yes" >&6; }
7799   GENERATED_MANPAGES=generated-manpages
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803   GENERATED_MANPAGES=
7804 fi
7805
7806
7807 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7808
7809 # How about lex?
7810 for ac_prog in flex
7811 do
7812   # Extract the first word of "$ac_prog", so it can be a program name with args.
7813 set dummy $ac_prog; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_FLEX+set}" = set; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   if test -n "$FLEX"; then
7820   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825   IFS=$as_save_IFS
7826   test -z "$as_dir" && as_dir=.
7827     for ac_exec_ext in '' $ac_executable_extensions; do
7828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829     ac_cv_prog_FLEX="$ac_prog"
7830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831     break 2
7832   fi
7833 done
7834   done
7835 IFS=$as_save_IFS
7836
7837 fi
7838 fi
7839 FLEX=$ac_cv_prog_FLEX
7840 if test -n "$FLEX"; then
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7842 $as_echo "$FLEX" >&6; }
7843 else
7844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847
7848
7849   test -n "$FLEX" && break
7850 done
7851 test -n "$FLEX" || FLEX="$MISSING flex"
7852
7853
7854 # Bison?
7855 for ac_prog in bison
7856 do
7857   # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_BISON+set}" = set; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   if test -n "$BISON"; then
7865   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870   IFS=$as_save_IFS
7871   test -z "$as_dir" && as_dir=.
7872     for ac_exec_ext in '' $ac_executable_extensions; do
7873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874     ac_cv_prog_BISON="$ac_prog"
7875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876     break 2
7877   fi
7878 done
7879   done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 BISON=$ac_cv_prog_BISON
7885 if test -n "$BISON"; then
7886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7887 $as_echo "$BISON" >&6; }
7888 else
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 fi
7892
7893
7894   test -n "$BISON" && break
7895 done
7896 test -n "$BISON" || BISON="$MISSING bison"
7897
7898
7899 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7900 # check for build == host before using them.
7901
7902 # NM
7903 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7904   && test -d ../binutils ; then
7905   NM='${objdir}/../binutils/nm-new'
7906 else
7907   # Extract the first word of "nm", so it can be a program name with args.
7908 set dummy nm; ac_word=$2
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910 $as_echo_n "checking for $ac_word... " >&6; }
7911 if test "${ac_cv_prog_NM+set}" = set; then :
7912   $as_echo_n "(cached) " >&6
7913 else
7914   if test -n "$NM"; then
7915   ac_cv_prog_NM="$NM" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920   IFS=$as_save_IFS
7921   test -z "$as_dir" && as_dir=.
7922     for ac_exec_ext in '' $ac_executable_extensions; do
7923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7924     ac_cv_prog_NM="nm"
7925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926     break 2
7927   fi
7928 done
7929   done
7930 IFS=$as_save_IFS
7931
7932   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7933 fi
7934 fi
7935 NM=$ac_cv_prog_NM
7936 if test -n "$NM"; then
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7938 $as_echo "$NM" >&6; }
7939 else
7940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7942 fi
7943
7944
7945 fi
7946
7947 # AR
7948 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7949   && test -d ../binutils ; then
7950   AR='${objdir}/../binutils/ar'
7951 else
7952   # Extract the first word of "ar", so it can be a program name with args.
7953 set dummy ar; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if test "${ac_cv_prog_AR+set}" = set; then :
7957   $as_echo_n "(cached) " >&6
7958 else
7959   if test -n "$AR"; then
7960   ac_cv_prog_AR="$AR" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965   IFS=$as_save_IFS
7966   test -z "$as_dir" && as_dir=.
7967     for ac_exec_ext in '' $ac_executable_extensions; do
7968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7969     ac_cv_prog_AR="ar"
7970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971     break 2
7972   fi
7973 done
7974   done
7975 IFS=$as_save_IFS
7976
7977   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7978 fi
7979 fi
7980 AR=$ac_cv_prog_AR
7981 if test -n "$AR"; then
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7983 $as_echo "$AR" >&6; }
7984 else
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7987 fi
7988
7989
7990 fi
7991
7992
7993 # --------------------
7994 # Checks for C headers
7995 # --------------------
7996
7997 # Need to reject headers which give warnings, so that the -Werror bootstrap
7998 # works later. *sigh*  This needs to come before all header checks.
7999
8000 ac_c_preproc_warn_flag=yes
8001
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8003 $as_echo_n "checking for ANSI C header files... " >&6; }
8004 if test "${ac_cv_header_stdc+set}" = set; then :
8005   $as_echo_n "(cached) " >&6
8006 else
8007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h.  */
8009 #include <stdlib.h>
8010 #include <stdarg.h>
8011 #include <string.h>
8012 #include <float.h>
8013
8014 int
8015 main ()
8016 {
8017
8018   ;
8019   return 0;
8020 }
8021 _ACEOF
8022 if ac_fn_c_try_compile "$LINENO"; then :
8023   ac_cv_header_stdc=yes
8024 else
8025   ac_cv_header_stdc=no
8026 fi
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028
8029 if test $ac_cv_header_stdc = yes; then
8030   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h.  */
8033 #include <string.h>
8034
8035 _ACEOF
8036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8037   $EGREP "memchr" >/dev/null 2>&1; then :
8038
8039 else
8040   ac_cv_header_stdc=no
8041 fi
8042 rm -f conftest*
8043
8044 fi
8045
8046 if test $ac_cv_header_stdc = yes; then
8047   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h.  */
8050 #include <stdlib.h>
8051
8052 _ACEOF
8053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8054   $EGREP "free" >/dev/null 2>&1; then :
8055
8056 else
8057   ac_cv_header_stdc=no
8058 fi
8059 rm -f conftest*
8060
8061 fi
8062
8063 if test $ac_cv_header_stdc = yes; then
8064   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8065   if test "$cross_compiling" = yes; then :
8066   :
8067 else
8068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h.  */
8070 #include <ctype.h>
8071 #include <stdlib.h>
8072 #if ((' ' & 0x0FF) == 0x020)
8073 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8074 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8075 #else
8076 # define ISLOWER(c) \
8077                    (('a' <= (c) && (c) <= 'i') \
8078                      || ('j' <= (c) && (c) <= 'r') \
8079                      || ('s' <= (c) && (c) <= 'z'))
8080 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8081 #endif
8082
8083 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8084 int
8085 main ()
8086 {
8087   int i;
8088   for (i = 0; i < 256; i++)
8089     if (XOR (islower (i), ISLOWER (i))
8090         || toupper (i) != TOUPPER (i))
8091       return 2;
8092   return 0;
8093 }
8094 _ACEOF
8095 if ac_fn_c_try_run "$LINENO"; then :
8096
8097 else
8098   ac_cv_header_stdc=no
8099 fi
8100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8101   conftest.$ac_objext conftest.beam conftest.$ac_ext
8102 fi
8103
8104 fi
8105 fi
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8107 $as_echo "$ac_cv_header_stdc" >&6; }
8108 if test $ac_cv_header_stdc = yes; then
8109
8110 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8111
8112 fi
8113
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8115 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8116 if test "${ac_cv_header_time+set}" = set; then :
8117   $as_echo_n "(cached) " >&6
8118 else
8119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h.  */
8121 #include <sys/types.h>
8122 #include <sys/time.h>
8123 #include <time.h>
8124
8125 int
8126 main ()
8127 {
8128 if ((struct tm *) 0)
8129 return 0;
8130   ;
8131   return 0;
8132 }
8133 _ACEOF
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135   ac_cv_header_time=yes
8136 else
8137   ac_cv_header_time=no
8138 fi
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 fi
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8142 $as_echo "$ac_cv_header_time" >&6; }
8143 if test $ac_cv_header_time = yes; then
8144
8145 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8146
8147 fi
8148
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8150 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8151 if test "${gcc_cv_header_string+set}" = set; then :
8152   $as_echo_n "(cached) " >&6
8153 else
8154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h.  */
8156 #include <string.h>
8157 #include <strings.h>
8158 int
8159 main ()
8160 {
8161
8162   ;
8163   return 0;
8164 }
8165 _ACEOF
8166 if ac_fn_c_try_compile "$LINENO"; then :
8167   gcc_cv_header_string=yes
8168 else
8169   gcc_cv_header_string=no
8170 fi
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 fi
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8174 $as_echo "$gcc_cv_header_string" >&6; }
8175 if test $gcc_cv_header_string = yes; then
8176
8177 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8178
8179 fi
8180
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8182 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8183 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8184   $as_echo_n "(cached) " >&6
8185 else
8186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h.  */
8188 #include <sys/types.h>
8189 #include <sys/wait.h>
8190 #ifndef WEXITSTATUS
8191 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8192 #endif
8193 #ifndef WIFEXITED
8194 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8195 #endif
8196
8197 int
8198 main ()
8199 {
8200   int s;
8201   wait (&s);
8202   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8203   ;
8204   return 0;
8205 }
8206 _ACEOF
8207 if ac_fn_c_try_compile "$LINENO"; then :
8208   ac_cv_header_sys_wait_h=yes
8209 else
8210   ac_cv_header_sys_wait_h=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8215 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8216 if test $ac_cv_header_sys_wait_h = yes; then
8217
8218 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8219
8220 fi
8221
8222 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8223                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8224                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8225                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8226 do :
8227   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8228 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8229 eval as_val=\$$as_ac_Header
8230    if test "x$as_val" = x""yes; then :
8231   cat >>confdefs.h <<_ACEOF
8232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8233 _ACEOF
8234
8235 fi
8236 done
8237
8238
8239 # Check for thread headers.
8240 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8241 if test "x$ac_cv_header_thread_h" = x""yes; then :
8242   have_thread_h=yes
8243 else
8244   have_thread_h=
8245 fi
8246
8247 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8248 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8249   have_pthread_h=yes
8250 else
8251   have_pthread_h=
8252 fi
8253
8254
8255 # These tests can't be done till we know if we have limits.h.
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8257 $as_echo_n "checking for CHAR_BIT... " >&6; }
8258 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h.  */
8263 #ifdef HAVE_LIMITS_H
8264 #include <limits.h>
8265 #endif
8266 #ifdef CHAR_BIT
8267 found
8268 #endif
8269 _ACEOF
8270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8271   $EGREP "found" >/dev/null 2>&1; then :
8272   gcc_cv_decl_char_bit=yes
8273 else
8274   gcc_cv_decl_char_bit=no
8275 fi
8276 rm -f conftest*
8277
8278
8279 fi
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8281 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8282 if test $gcc_cv_decl_char_bit = no; then
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8284 $as_echo_n "checking number of bits in a byte... " >&6; }
8285 if test "${gcc_cv_c_nbby+set}" = set; then :
8286   $as_echo_n "(cached) " >&6
8287 else
8288   i=8
8289  gcc_cv_c_nbby=
8290  while test $i -lt 65; do
8291    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h.  */
8293
8294 int
8295 main ()
8296 {
8297 switch(0) {
8298   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8299   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8300   ; }
8301   ;
8302   return 0;
8303 }
8304 _ACEOF
8305 if ac_fn_c_try_compile "$LINENO"; then :
8306   gcc_cv_c_nbby=$i; break
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309    i=`expr $i + 1`
8310  done
8311  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8312
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8315 $as_echo "$gcc_cv_c_nbby" >&6; }
8316 if test $gcc_cv_c_nbby = failed; then
8317   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8318 else
8319
8320 cat >>confdefs.h <<_ACEOF
8321 #define CHAR_BIT $gcc_cv_c_nbby
8322 _ACEOF
8323
8324 fi
8325 fi
8326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8327 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8328 if test "${ac_cv_c_bigendian+set}" = set; then :
8329   $as_echo_n "(cached) " >&6
8330 else
8331   ac_cv_c_bigendian=unknown
8332     # See if we're dealing with a universal compiler.
8333     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h.  */
8335 #ifndef __APPLE_CC__
8336                not a universal capable compiler
8337              #endif
8338              typedef int dummy;
8339
8340 _ACEOF
8341 if ac_fn_c_try_compile "$LINENO"; then :
8342
8343         # Check for potential -arch flags.  It is not universal unless
8344         # there are at least two -arch flags with different values.
8345         ac_arch=
8346         ac_prev=
8347         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8348          if test -n "$ac_prev"; then
8349            case $ac_word in
8350              i?86 | x86_64 | ppc | ppc64)
8351                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8352                  ac_arch=$ac_word
8353                else
8354                  ac_cv_c_bigendian=universal
8355                  break
8356                fi
8357                ;;
8358            esac
8359            ac_prev=
8360          elif test "x$ac_word" = "x-arch"; then
8361            ac_prev=arch
8362          fi
8363        done
8364 fi
8365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366     if test $ac_cv_c_bigendian = unknown; then
8367       # See if sys/param.h defines the BYTE_ORDER macro.
8368       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h.  */
8370 #include <sys/types.h>
8371              #include <sys/param.h>
8372
8373 int
8374 main ()
8375 {
8376 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8377                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8378                      && LITTLE_ENDIAN)
8379               bogus endian macros
8380              #endif
8381
8382   ;
8383   return 0;
8384 }
8385 _ACEOF
8386 if ac_fn_c_try_compile "$LINENO"; then :
8387   # It does; now see whether it defined to BIG_ENDIAN or not.
8388          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h.  */
8390 #include <sys/types.h>
8391                 #include <sys/param.h>
8392
8393 int
8394 main ()
8395 {
8396 #if BYTE_ORDER != BIG_ENDIAN
8397                  not big endian
8398                 #endif
8399
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405   ac_cv_c_bigendian=yes
8406 else
8407   ac_cv_c_bigendian=no
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 fi
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412     fi
8413     if test $ac_cv_c_bigendian = unknown; then
8414       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8415       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h.  */
8417 #include <limits.h>
8418
8419 int
8420 main ()
8421 {
8422 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8423               bogus endian macros
8424              #endif
8425
8426   ;
8427   return 0;
8428 }
8429 _ACEOF
8430 if ac_fn_c_try_compile "$LINENO"; then :
8431   # It does; now see whether it defined to _BIG_ENDIAN or not.
8432          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h.  */
8434 #include <limits.h>
8435
8436 int
8437 main ()
8438 {
8439 #ifndef _BIG_ENDIAN
8440                  not big endian
8441                 #endif
8442
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 if ac_fn_c_try_compile "$LINENO"; then :
8448   ac_cv_c_bigendian=yes
8449 else
8450   ac_cv_c_bigendian=no
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 fi
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455     fi
8456     if test $ac_cv_c_bigendian = unknown; then
8457       # Compile a test program.
8458       if test "$cross_compiling" = yes; then :
8459   # Try to guess by grepping values from an object file.
8460          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h.  */
8462 short int ascii_mm[] =
8463                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8464                 short int ascii_ii[] =
8465                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8466                 int use_ascii (int i) {
8467                   return ascii_mm[i] + ascii_ii[i];
8468                 }
8469                 short int ebcdic_ii[] =
8470                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8471                 short int ebcdic_mm[] =
8472                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8473                 int use_ebcdic (int i) {
8474                   return ebcdic_mm[i] + ebcdic_ii[i];
8475                 }
8476                 extern int foo;
8477
8478 int
8479 main ()
8480 {
8481 return use_ascii (foo) == use_ebcdic (foo);
8482   ;
8483   return 0;
8484 }
8485 _ACEOF
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8488               ac_cv_c_bigendian=yes
8489             fi
8490             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8491               if test "$ac_cv_c_bigendian" = unknown; then
8492                 ac_cv_c_bigendian=no
8493               else
8494                 # finding both strings is unlikely to happen, but who knows?
8495                 ac_cv_c_bigendian=unknown
8496               fi
8497             fi
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 else
8501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h.  */
8503 $ac_includes_default
8504 int
8505 main ()
8506 {
8507
8508              /* Are we little or big endian?  From Harbison&Steele.  */
8509              union
8510              {
8511                long int l;
8512                char c[sizeof (long int)];
8513              } u;
8514              u.l = 1;
8515              return u.c[sizeof (long int) - 1] == 1;
8516
8517   ;
8518   return 0;
8519 }
8520 _ACEOF
8521 if ac_fn_c_try_run "$LINENO"; then :
8522   ac_cv_c_bigendian=no
8523 else
8524   ac_cv_c_bigendian=yes
8525 fi
8526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8527   conftest.$ac_objext conftest.beam conftest.$ac_ext
8528 fi
8529
8530     fi
8531 fi
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8533 $as_echo "$ac_cv_c_bigendian" >&6; }
8534  case $ac_cv_c_bigendian in #(
8535    yes)
8536      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8537 ;; #(
8538    no)
8539       ;; #(
8540    universal)
8541
8542 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8543
8544      ;; #(
8545    *)
8546      as_fn_error "unknown endianness
8547  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8548  esac
8549
8550
8551 # ----------------------
8552 # Checks for C++ headers
8553 # ----------------------
8554
8555 ac_ext=cpp
8556 ac_cpp='$CXXCPP $CPPFLAGS'
8557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8561 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8562 if test -z "$CXXCPP"; then
8563   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8564   $as_echo_n "(cached) " >&6
8565 else
8566       # Double quotes because CXXCPP needs to be expanded
8567     for CXXCPP in "$CXX -E" "/lib/cpp"
8568     do
8569       ac_preproc_ok=false
8570 for ac_cxx_preproc_warn_flag in '' yes
8571 do
8572   # Use a header file that comes with gcc, so configuring glibc
8573   # with a fresh cross-compiler works.
8574   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8575   # <limits.h> exists even on freestanding compilers.
8576   # On the NeXT, cc -E runs the code through the compiler's parser,
8577   # not just through cpp. "Syntax error" is here to catch this case.
8578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h.  */
8580 #ifdef __STDC__
8581 # include <limits.h>
8582 #else
8583 # include <assert.h>
8584 #endif
8585                      Syntax error
8586 _ACEOF
8587 if ac_fn_cxx_try_cpp "$LINENO"; then :
8588
8589 else
8590   # Broken: fails on valid input.
8591 continue
8592 fi
8593 rm -f conftest.err conftest.$ac_ext
8594
8595   # OK, works on sane cases.  Now check whether nonexistent headers
8596   # can be detected and how.
8597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h.  */
8599 #include <ac_nonexistent.h>
8600 _ACEOF
8601 if ac_fn_cxx_try_cpp "$LINENO"; then :
8602   # Broken: success on invalid input.
8603 continue
8604 else
8605   # Passes both tests.
8606 ac_preproc_ok=:
8607 break
8608 fi
8609 rm -f conftest.err conftest.$ac_ext
8610
8611 done
8612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8613 rm -f conftest.err conftest.$ac_ext
8614 if $ac_preproc_ok; then :
8615   break
8616 fi
8617
8618     done
8619     ac_cv_prog_CXXCPP=$CXXCPP
8620
8621 fi
8622   CXXCPP=$ac_cv_prog_CXXCPP
8623 else
8624   ac_cv_prog_CXXCPP=$CXXCPP
8625 fi
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8627 $as_echo "$CXXCPP" >&6; }
8628 ac_preproc_ok=false
8629 for ac_cxx_preproc_warn_flag in '' yes
8630 do
8631   # Use a header file that comes with gcc, so configuring glibc
8632   # with a fresh cross-compiler works.
8633   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8634   # <limits.h> exists even on freestanding compilers.
8635   # On the NeXT, cc -E runs the code through the compiler's parser,
8636   # not just through cpp. "Syntax error" is here to catch this case.
8637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h.  */
8639 #ifdef __STDC__
8640 # include <limits.h>
8641 #else
8642 # include <assert.h>
8643 #endif
8644                      Syntax error
8645 _ACEOF
8646 if ac_fn_cxx_try_cpp "$LINENO"; then :
8647
8648 else
8649   # Broken: fails on valid input.
8650 continue
8651 fi
8652 rm -f conftest.err conftest.$ac_ext
8653
8654   # OK, works on sane cases.  Now check whether nonexistent headers
8655   # can be detected and how.
8656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h.  */
8658 #include <ac_nonexistent.h>
8659 _ACEOF
8660 if ac_fn_cxx_try_cpp "$LINENO"; then :
8661   # Broken: success on invalid input.
8662 continue
8663 else
8664   # Passes both tests.
8665 ac_preproc_ok=:
8666 break
8667 fi
8668 rm -f conftest.err conftest.$ac_ext
8669
8670 done
8671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8672 rm -f conftest.err conftest.$ac_ext
8673 if $ac_preproc_ok; then :
8674
8675 else
8676   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8679 See \`config.log' for more details." >&5
8680 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8681 See \`config.log' for more details." >&2;}; }
8682 fi
8683
8684 ac_ext=c
8685 ac_cpp='$CPP $CPPFLAGS'
8686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8689
8690
8691 ac_ext=cpp
8692 ac_cpp='$CXXCPP $CPPFLAGS'
8693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8696
8697
8698
8699
8700 for ac_header in unordered_map
8701 do :
8702   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8703 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8704   cat >>confdefs.h <<_ACEOF
8705 #define HAVE_UNORDERED_MAP 1
8706 _ACEOF
8707
8708 fi
8709 done
8710
8711 for ac_header in tr1/unordered_map
8712 do :
8713   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8714 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8715   cat >>confdefs.h <<_ACEOF
8716 #define HAVE_TR1_UNORDERED_MAP 1
8717 _ACEOF
8718
8719 fi
8720 done
8721
8722 for ac_header in ext/hash_map
8723 do :
8724   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8725 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8726   cat >>confdefs.h <<_ACEOF
8727 #define HAVE_EXT_HASH_MAP 1
8728 _ACEOF
8729
8730 fi
8731 done
8732
8733
8734 ac_ext=c
8735 ac_cpp='$CPP $CPPFLAGS'
8736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8739
8740
8741 # --------
8742 # UNSORTED
8743 # --------
8744
8745
8746 # These libraries may be used by collect2.
8747 # We may need a special search path to get them linked.
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8749 $as_echo_n "checking for collect2 libraries... " >&6; }
8750 if test "${gcc_cv_collect2_libs+set}" = set; then :
8751   $as_echo_n "(cached) " >&6
8752 else
8753   save_LIBS="$LIBS"
8754 for libs in '' -lld -lmld \
8755                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8756                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8757 do
8758         LIBS="$libs"
8759         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h.  */
8761
8762 /* Override any GCC internal prototype to avoid an error.
8763    Use char because int might match the return type of a GCC
8764    builtin and then its argument prototype would still apply.  */
8765 #ifdef __cplusplus
8766 extern "C"
8767 #endif
8768 char ldopen ();
8769 int
8770 main ()
8771 {
8772 return ldopen ();
8773   ;
8774   return 0;
8775 }
8776 _ACEOF
8777 if ac_fn_c_try_link "$LINENO"; then :
8778   gcc_cv_collect2_libs="$libs"; break
8779 fi
8780 rm -f core conftest.err conftest.$ac_objext \
8781     conftest$ac_exeext conftest.$ac_ext
8782 done
8783 LIBS="$save_LIBS"
8784 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8785 fi
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8787 $as_echo "$gcc_cv_collect2_libs" >&6; }
8788 case $gcc_cv_collect2_libs in
8789         "none required")        ;;
8790         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8791 esac
8792
8793
8794 # When building Ada code on Alpha, we need exc_resume which is usually in
8795 # -lexc.  So test for it.
8796 save_LIBS="$LIBS"
8797 LIBS=
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8799 $as_echo_n "checking for library containing exc_resume... " >&6; }
8800 if test "${ac_cv_search_exc_resume+set}" = set; then :
8801   $as_echo_n "(cached) " >&6
8802 else
8803   ac_func_search_save_LIBS=$LIBS
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h.  */
8806
8807 /* Override any GCC internal prototype to avoid an error.
8808    Use char because int might match the return type of a GCC
8809    builtin and then its argument prototype would still apply.  */
8810 #ifdef __cplusplus
8811 extern "C"
8812 #endif
8813 char exc_resume ();
8814 int
8815 main ()
8816 {
8817 return exc_resume ();
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 for ac_lib in '' exc; do
8823   if test -z "$ac_lib"; then
8824     ac_res="none required"
8825   else
8826     ac_res=-l$ac_lib
8827     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8828   fi
8829   if ac_fn_c_try_link "$LINENO"; then :
8830   ac_cv_search_exc_resume=$ac_res
8831 fi
8832 rm -f core conftest.err conftest.$ac_objext \
8833     conftest$ac_exeext
8834   if test "${ac_cv_search_exc_resume+set}" = set; then :
8835   break
8836 fi
8837 done
8838 if test "${ac_cv_search_exc_resume+set}" = set; then :
8839
8840 else
8841   ac_cv_search_exc_resume=no
8842 fi
8843 rm conftest.$ac_ext
8844 LIBS=$ac_func_search_save_LIBS
8845 fi
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8847 $as_echo "$ac_cv_search_exc_resume" >&6; }
8848 ac_res=$ac_cv_search_exc_resume
8849 if test "$ac_res" != no; then :
8850   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8851
8852 fi
8853
8854 GNAT_LIBEXC="$LIBS"
8855 LIBS="$save_LIBS"
8856
8857
8858 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8859 save_LIBS="$LIBS"
8860 LIBS=
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8862 $as_echo_n "checking for library containing kstat_open... " >&6; }
8863 if test "${ac_cv_search_kstat_open+set}" = set; then :
8864   $as_echo_n "(cached) " >&6
8865 else
8866   ac_func_search_save_LIBS=$LIBS
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h.  */
8869
8870 /* Override any GCC internal prototype to avoid an error.
8871    Use char because int might match the return type of a GCC
8872    builtin and then its argument prototype would still apply.  */
8873 #ifdef __cplusplus
8874 extern "C"
8875 #endif
8876 char kstat_open ();
8877 int
8878 main ()
8879 {
8880 return kstat_open ();
8881   ;
8882   return 0;
8883 }
8884 _ACEOF
8885 for ac_lib in '' kstat; do
8886   if test -z "$ac_lib"; then
8887     ac_res="none required"
8888   else
8889     ac_res=-l$ac_lib
8890     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8891   fi
8892   if ac_fn_c_try_link "$LINENO"; then :
8893   ac_cv_search_kstat_open=$ac_res
8894 fi
8895 rm -f core conftest.err conftest.$ac_objext \
8896     conftest$ac_exeext
8897   if test "${ac_cv_search_kstat_open+set}" = set; then :
8898   break
8899 fi
8900 done
8901 if test "${ac_cv_search_kstat_open+set}" = set; then :
8902
8903 else
8904   ac_cv_search_kstat_open=no
8905 fi
8906 rm conftest.$ac_ext
8907 LIBS=$ac_func_search_save_LIBS
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8910 $as_echo "$ac_cv_search_kstat_open" >&6; }
8911 ac_res=$ac_cv_search_kstat_open
8912 if test "$ac_res" != no; then :
8913   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8914
8915 fi
8916
8917 EXTRA_GCC_LIBS="$LIBS"
8918 LIBS="$save_LIBS"
8919
8920
8921 # Some systems put ldexp and frexp in libm instead of libc; assume
8922 # they're both in the same place.  jcf-dump needs them.
8923 save_LIBS="$LIBS"
8924 LIBS=
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8926 $as_echo_n "checking for library containing ldexp... " >&6; }
8927 if test "${ac_cv_search_ldexp+set}" = set; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   ac_func_search_save_LIBS=$LIBS
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h.  */
8933
8934 /* Override any GCC internal prototype to avoid an error.
8935    Use char because int might match the return type of a GCC
8936    builtin and then its argument prototype would still apply.  */
8937 #ifdef __cplusplus
8938 extern "C"
8939 #endif
8940 char ldexp ();
8941 int
8942 main ()
8943 {
8944 return ldexp ();
8945   ;
8946   return 0;
8947 }
8948 _ACEOF
8949 for ac_lib in '' m; do
8950   if test -z "$ac_lib"; then
8951     ac_res="none required"
8952   else
8953     ac_res=-l$ac_lib
8954     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8955   fi
8956   if ac_fn_c_try_link "$LINENO"; then :
8957   ac_cv_search_ldexp=$ac_res
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext \
8960     conftest$ac_exeext
8961   if test "${ac_cv_search_ldexp+set}" = set; then :
8962   break
8963 fi
8964 done
8965 if test "${ac_cv_search_ldexp+set}" = set; then :
8966
8967 else
8968   ac_cv_search_ldexp=no
8969 fi
8970 rm conftest.$ac_ext
8971 LIBS=$ac_func_search_save_LIBS
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8974 $as_echo "$ac_cv_search_ldexp" >&6; }
8975 ac_res=$ac_cv_search_ldexp
8976 if test "$ac_res" != no; then :
8977   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8978
8979 fi
8980
8981 LDEXP_LIB="$LIBS"
8982 LIBS="$save_LIBS"
8983
8984
8985 # Use <inttypes.h> only if it exists,
8986 # doesn't clash with <sys/types.h>, and declares intmax_t.
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8988 $as_echo_n "checking for inttypes.h... " >&6; }
8989 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8990   $as_echo_n "(cached) " >&6
8991 else
8992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h.  */
8994 #include <sys/types.h>
8995 #include <inttypes.h>
8996 int
8997 main ()
8998 {
8999 intmax_t i = -1;
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_c_try_compile "$LINENO"; then :
9005   gcc_cv_header_inttypes_h=yes
9006 else
9007   gcc_cv_header_inttypes_h=no
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010 fi
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9013 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9014 if test $gcc_cv_header_inttypes_h = yes; then
9015
9016 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9017
9018 fi
9019
9020
9021
9022 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9023         sysconf strsignal getrusage nl_langinfo \
9024         gettimeofday mbstowcs wcswidth mmap setlocale \
9025         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 madvise
9026 do :
9027   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9029 eval as_val=\$$as_ac_var
9030    if test "x$as_val" = x""yes; then :
9031   cat >>confdefs.h <<_ACEOF
9032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9033 _ACEOF
9034
9035 fi
9036 done
9037
9038
9039 if test x$ac_cv_func_mbstowcs = xyes; then
9040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9041 $as_echo_n "checking whether mbstowcs works... " >&6; }
9042 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9043   $as_echo_n "(cached) " >&6
9044 else
9045       if test "$cross_compiling" = yes; then :
9046   gcc_cv_func_mbstowcs_works=yes
9047 else
9048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h.  */
9050 #include <stdlib.h>
9051 int main()
9052 {
9053   mbstowcs(0, "", 0);
9054   return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_c_try_run "$LINENO"; then :
9058   gcc_cv_func_mbstowcs_works=yes
9059 else
9060   gcc_cv_func_mbstowcs_works=no
9061 fi
9062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9063   conftest.$ac_objext conftest.beam conftest.$ac_ext
9064 fi
9065
9066 fi
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9068 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9069   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9070
9071 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9072
9073   fi
9074 fi
9075
9076 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9077 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9078
9079 else
9080
9081 cat >>confdefs.h <<_ACEOF
9082 #define ssize_t int
9083 _ACEOF
9084
9085 fi
9086
9087 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9088 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9089
9090 else
9091
9092 cat >>confdefs.h <<_ACEOF
9093 #define caddr_t char *
9094 _ACEOF
9095
9096 fi
9097
9098
9099
9100 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9101 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9102   gcc_header_sys_mman_h=yes
9103 else
9104   gcc_header_sys_mman_h=no
9105 fi
9106
9107 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9108 if test "x$ac_cv_func_mmap" = x""yes; then :
9109   gcc_func_mmap=yes
9110 else
9111   gcc_func_mmap=no
9112 fi
9113
9114 if test "$gcc_header_sys_mman_h" != yes \
9115  || test "$gcc_func_mmap" != yes; then
9116    gcc_cv_func_mmap_file=no
9117    gcc_cv_func_mmap_dev_zero=no
9118    gcc_cv_func_mmap_anon=no
9119 else
9120    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9121 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9122 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   # Add a system to this blacklist if
9126    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9127    # memory area containing the same data that you'd get if you applied
9128    # read() to the same fd.  The only system known to have a problem here
9129    # is VMS, where text files have record structure.
9130    case "$host_os" in
9131      vms* | ultrix*)
9132         gcc_cv_func_mmap_file=no ;;
9133      *)
9134         gcc_cv_func_mmap_file=yes;;
9135    esac
9136 fi
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9138 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9140 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9141 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9142   $as_echo_n "(cached) " >&6
9143 else
9144   # Add a system to this blacklist if it has mmap() but /dev/zero
9145    # does not exist, or if mmapping /dev/zero does not give anonymous
9146    # zeroed pages with both the following properties:
9147    # 1. If you map N consecutive pages in with one call, and then
9148    #    unmap any subset of those pages, the pages that were not
9149    #    explicitly unmapped remain accessible.
9150    # 2. If you map two adjacent blocks of memory and then unmap them
9151    #    both at once, they must both go away.
9152    # Systems known to be in this category are Windows (all variants),
9153    # VMS, and Darwin.
9154    case "$host_os" in
9155      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9156         gcc_cv_func_mmap_dev_zero=no ;;
9157      *)
9158         gcc_cv_func_mmap_dev_zero=yes;;
9159    esac
9160 fi
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9162 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9163
9164    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9166 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9167 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9168   $as_echo_n "(cached) " >&6
9169 else
9170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h.  */
9172 #include <sys/types.h>
9173 #include <sys/mman.h>
9174 #include <unistd.h>
9175
9176 #ifndef MAP_ANONYMOUS
9177 #define MAP_ANONYMOUS MAP_ANON
9178 #endif
9179
9180 int
9181 main ()
9182 {
9183 int n = MAP_ANONYMOUS;
9184   ;
9185   return 0;
9186 }
9187 _ACEOF
9188 if ac_fn_c_try_compile "$LINENO"; then :
9189   gcc_cv_decl_map_anon=yes
9190 else
9191   gcc_cv_decl_map_anon=no
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 fi
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9196 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9197
9198    if test $gcc_cv_decl_map_anon = no; then
9199      gcc_cv_func_mmap_anon=no
9200    else
9201      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9202 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9203 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9204   $as_echo_n "(cached) " >&6
9205 else
9206   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9207    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9208    # doesn't give anonymous zeroed pages with the same properties listed
9209    # above for use of /dev/zero.
9210    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9211    case "$host_os" in
9212      vms* | cygwin* | pe | mingw* | sco* | udk* )
9213         gcc_cv_func_mmap_anon=no ;;
9214      *)
9215         gcc_cv_func_mmap_anon=yes;;
9216    esac
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9219 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9220    fi
9221 fi
9222
9223 if test $gcc_cv_func_mmap_file = yes; then
9224
9225 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9226
9227 fi
9228 if test $gcc_cv_func_mmap_dev_zero = yes; then
9229
9230 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9231
9232 fi
9233 if test $gcc_cv_func_mmap_anon = yes; then
9234
9235 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9236
9237 fi
9238
9239
9240 case "${host}" in
9241 *-*-*vms*)
9242   # Under VMS, vfork works very differently than on Unix. The standard test
9243   # won't work, and it isn't easily adaptable. It makes more sense to
9244   # just force it.
9245   ac_cv_func_vfork_works=yes
9246   ;;
9247 esac
9248 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9249 if test "x$ac_cv_type_pid_t" = x""yes; then :
9250
9251 else
9252
9253 cat >>confdefs.h <<_ACEOF
9254 #define pid_t int
9255 _ACEOF
9256
9257 fi
9258
9259 for ac_header in vfork.h
9260 do :
9261   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9262 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9263   cat >>confdefs.h <<_ACEOF
9264 #define HAVE_VFORK_H 1
9265 _ACEOF
9266
9267 fi
9268 done
9269
9270 for ac_func in fork vfork
9271 do :
9272   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9274 eval as_val=\$$as_ac_var
9275    if test "x$as_val" = x""yes; then :
9276   cat >>confdefs.h <<_ACEOF
9277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9278 _ACEOF
9279
9280 fi
9281 done
9282
9283 if test "x$ac_cv_func_fork" = xyes; then
9284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9285 $as_echo_n "checking for working fork... " >&6; }
9286 if test "${ac_cv_func_fork_works+set}" = set; then :
9287   $as_echo_n "(cached) " >&6
9288 else
9289   if test "$cross_compiling" = yes; then :
9290   ac_cv_func_fork_works=cross
9291 else
9292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h.  */
9294 $ac_includes_default
9295 int
9296 main ()
9297 {
9298
9299           /* By Ruediger Kuhlmann. */
9300           return fork () < 0;
9301
9302   ;
9303   return 0;
9304 }
9305 _ACEOF
9306 if ac_fn_c_try_run "$LINENO"; then :
9307   ac_cv_func_fork_works=yes
9308 else
9309   ac_cv_func_fork_works=no
9310 fi
9311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9312   conftest.$ac_objext conftest.beam conftest.$ac_ext
9313 fi
9314
9315 fi
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9317 $as_echo "$ac_cv_func_fork_works" >&6; }
9318
9319 else
9320   ac_cv_func_fork_works=$ac_cv_func_fork
9321 fi
9322 if test "x$ac_cv_func_fork_works" = xcross; then
9323   case $host in
9324     *-*-amigaos* | *-*-msdosdjgpp*)
9325       # Override, as these systems have only a dummy fork() stub
9326       ac_cv_func_fork_works=no
9327       ;;
9328     *)
9329       ac_cv_func_fork_works=yes
9330       ;;
9331   esac
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9333 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9334 fi
9335 ac_cv_func_vfork_works=$ac_cv_func_vfork
9336 if test "x$ac_cv_func_vfork" = xyes; then
9337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9338 $as_echo_n "checking for working vfork... " >&6; }
9339 if test "${ac_cv_func_vfork_works+set}" = set; then :
9340   $as_echo_n "(cached) " >&6
9341 else
9342   if test "$cross_compiling" = yes; then :
9343   ac_cv_func_vfork_works=cross
9344 else
9345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h.  */
9347 /* Thanks to Paul Eggert for this test.  */
9348 $ac_includes_default
9349 #include <sys/wait.h>
9350 #ifdef HAVE_VFORK_H
9351 # include <vfork.h>
9352 #endif
9353 /* On some sparc systems, changes by the child to local and incoming
9354    argument registers are propagated back to the parent.  The compiler
9355    is told about this with #include <vfork.h>, but some compilers
9356    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9357    static variable whose address is put into a register that is
9358    clobbered by the vfork.  */
9359 static void
9360 #ifdef __cplusplus
9361 sparc_address_test (int arg)
9362 # else
9363 sparc_address_test (arg) int arg;
9364 #endif
9365 {
9366   static pid_t child;
9367   if (!child) {
9368     child = vfork ();
9369     if (child < 0) {
9370       perror ("vfork");
9371       _exit(2);
9372     }
9373     if (!child) {
9374       arg = getpid();
9375       write(-1, "", 0);
9376       _exit (arg);
9377     }
9378   }
9379 }
9380
9381 int
9382 main ()
9383 {
9384   pid_t parent = getpid ();
9385   pid_t child;
9386
9387   sparc_address_test (0);
9388
9389   child = vfork ();
9390
9391   if (child == 0) {
9392     /* Here is another test for sparc vfork register problems.  This
9393        test uses lots of local variables, at least as many local
9394        variables as main has allocated so far including compiler
9395        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9396        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9397        reuse the register of parent for one of the local variables,
9398        since it will think that parent can't possibly be used any more
9399        in this routine.  Assigning to the local variable will thus
9400        munge parent in the parent process.  */
9401     pid_t
9402       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9403       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9404     /* Convince the compiler that p..p7 are live; otherwise, it might
9405        use the same hardware register for all 8 local variables.  */
9406     if (p != p1 || p != p2 || p != p3 || p != p4
9407         || p != p5 || p != p6 || p != p7)
9408       _exit(1);
9409
9410     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9411        from child file descriptors.  If the child closes a descriptor
9412        before it execs or exits, this munges the parent's descriptor
9413        as well.  Test for this by closing stdout in the child.  */
9414     _exit(close(fileno(stdout)) != 0);
9415   } else {
9416     int status;
9417     struct stat st;
9418
9419     while (wait(&status) != child)
9420       ;
9421     return (
9422          /* Was there some problem with vforking?  */
9423          child < 0
9424
9425          /* Did the child fail?  (This shouldn't happen.)  */
9426          || status
9427
9428          /* Did the vfork/compiler bug occur?  */
9429          || parent != getpid()
9430
9431          /* Did the file descriptor bug occur?  */
9432          || fstat(fileno(stdout), &st) != 0
9433          );
9434   }
9435 }
9436 _ACEOF
9437 if ac_fn_c_try_run "$LINENO"; then :
9438   ac_cv_func_vfork_works=yes
9439 else
9440   ac_cv_func_vfork_works=no
9441 fi
9442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9443   conftest.$ac_objext conftest.beam conftest.$ac_ext
9444 fi
9445
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9448 $as_echo "$ac_cv_func_vfork_works" >&6; }
9449
9450 fi;
9451 if test "x$ac_cv_func_fork_works" = xcross; then
9452   ac_cv_func_vfork_works=$ac_cv_func_vfork
9453   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9454 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9455 fi
9456
9457 if test "x$ac_cv_func_vfork_works" = xyes; then
9458
9459 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9460
9461 else
9462
9463 $as_echo "#define vfork fork" >>confdefs.h
9464
9465 fi
9466 if test "x$ac_cv_func_fork_works" = xyes; then
9467
9468 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9469
9470 fi
9471
9472
9473 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9474 # iconv() prototype.
9475
9476       if test "X$prefix" = "XNONE"; then
9477     acl_final_prefix="$ac_default_prefix"
9478   else
9479     acl_final_prefix="$prefix"
9480   fi
9481   if test "X$exec_prefix" = "XNONE"; then
9482     acl_final_exec_prefix='${prefix}'
9483   else
9484     acl_final_exec_prefix="$exec_prefix"
9485   fi
9486   acl_save_prefix="$prefix"
9487   prefix="$acl_final_prefix"
9488   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9489   prefix="$acl_save_prefix"
9490
9491
9492 # Check whether --with-gnu-ld was given.
9493 if test "${with_gnu_ld+set}" = set; then :
9494   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9495 else
9496   with_gnu_ld=no
9497 fi
9498
9499 # Prepare PATH_SEPARATOR.
9500 # The user is always right.
9501 if test "${PATH_SEPARATOR+set}" != set; then
9502   echo "#! /bin/sh" >conf$$.sh
9503   echo  "exit 0"   >>conf$$.sh
9504   chmod +x conf$$.sh
9505   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9506     PATH_SEPARATOR=';'
9507   else
9508     PATH_SEPARATOR=:
9509   fi
9510   rm -f conf$$.sh
9511 fi
9512 ac_prog=ld
9513 if test "$GCC" = yes; then
9514   # Check if gcc -print-prog-name=ld gives a path.
9515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9516 $as_echo_n "checking for ld used by GCC... " >&6; }
9517   case $host in
9518   *-*-mingw*)
9519     # gcc leaves a trailing carriage return which upsets mingw
9520     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9521   *)
9522     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9523   esac
9524   case $ac_prog in
9525     # Accept absolute paths.
9526     [\\/]* | [A-Za-z]:[\\/]*)
9527       re_direlt='/[^/][^/]*/\.\./'
9528       # Canonicalize the path of ld
9529       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9530       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9531         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9532       done
9533       test -z "$LD" && LD="$ac_prog"
9534       ;;
9535   "")
9536     # If it fails, then pretend we aren't using GCC.
9537     ac_prog=ld
9538     ;;
9539   *)
9540     # If it is relative, then search for the first ld in PATH.
9541     with_gnu_ld=unknown
9542     ;;
9543   esac
9544 elif test "$with_gnu_ld" = yes; then
9545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9546 $as_echo_n "checking for GNU ld... " >&6; }
9547 else
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9549 $as_echo_n "checking for non-GNU ld... " >&6; }
9550 fi
9551 if test "${acl_cv_path_LD+set}" = set; then :
9552   $as_echo_n "(cached) " >&6
9553 else
9554   if test -z "$LD"; then
9555   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9556   for ac_dir in $PATH; do
9557     test -z "$ac_dir" && ac_dir=.
9558     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9559       acl_cv_path_LD="$ac_dir/$ac_prog"
9560       # Check to see if the program is GNU ld.  I'd rather use --version,
9561       # but apparently some GNU ld's only accept -v.
9562       # Break only if it was the GNU/non-GNU ld that we prefer.
9563       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9564         test "$with_gnu_ld" != no && break
9565       else
9566         test "$with_gnu_ld" != yes && break
9567       fi
9568     fi
9569   done
9570   IFS="$ac_save_ifs"
9571 else
9572   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9573 fi
9574 fi
9575
9576 LD="$acl_cv_path_LD"
9577 if test -n "$LD"; then
9578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9579 $as_echo "$LD" >&6; }
9580 else
9581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9583 fi
9584 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9586 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9587 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9588   $as_echo_n "(cached) " >&6
9589 else
9590   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9591 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9592   acl_cv_prog_gnu_ld=yes
9593 else
9594   acl_cv_prog_gnu_ld=no
9595 fi
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9598 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9599 with_gnu_ld=$acl_cv_prog_gnu_ld
9600
9601
9602
9603                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9604 $as_echo_n "checking for shared library run path origin... " >&6; }
9605 if test "${acl_cv_rpath+set}" = set; then :
9606   $as_echo_n "(cached) " >&6
9607 else
9608
9609     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9610     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9611     . ./conftest.sh
9612     rm -f ./conftest.sh
9613     acl_cv_rpath=done
9614
9615 fi
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9617 $as_echo "$acl_cv_rpath" >&6; }
9618   wl="$acl_cv_wl"
9619   libext="$acl_cv_libext"
9620   shlibext="$acl_cv_shlibext"
9621   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9622   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9623   hardcode_direct="$acl_cv_hardcode_direct"
9624   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9625     # Check whether --enable-rpath was given.
9626 if test "${enable_rpath+set}" = set; then :
9627   enableval=$enable_rpath; :
9628 else
9629   enable_rpath=yes
9630 fi
9631
9632
9633
9634
9635
9636
9637
9638
9639     use_additional=yes
9640
9641   acl_save_prefix="$prefix"
9642   prefix="$acl_final_prefix"
9643   acl_save_exec_prefix="$exec_prefix"
9644   exec_prefix="$acl_final_exec_prefix"
9645
9646     eval additional_includedir=\"$includedir\"
9647     eval additional_libdir=\"$libdir\"
9648
9649   exec_prefix="$acl_save_exec_prefix"
9650   prefix="$acl_save_prefix"
9651
9652
9653 # Check whether --with-libiconv-prefix was given.
9654 if test "${with_libiconv_prefix+set}" = set; then :
9655   withval=$with_libiconv_prefix;
9656     if test "X$withval" = "Xno"; then
9657       use_additional=no
9658     else
9659       if test "X$withval" = "X"; then
9660
9661   acl_save_prefix="$prefix"
9662   prefix="$acl_final_prefix"
9663   acl_save_exec_prefix="$exec_prefix"
9664   exec_prefix="$acl_final_exec_prefix"
9665
9666           eval additional_includedir=\"$includedir\"
9667           eval additional_libdir=\"$libdir\"
9668
9669   exec_prefix="$acl_save_exec_prefix"
9670   prefix="$acl_save_prefix"
9671
9672       else
9673         additional_includedir="$withval/include"
9674         additional_libdir="$withval/lib"
9675       fi
9676     fi
9677
9678 fi
9679
9680       LIBICONV=
9681   LTLIBICONV=
9682   INCICONV=
9683   rpathdirs=
9684   ltrpathdirs=
9685   names_already_handled=
9686   names_next_round='iconv '
9687   while test -n "$names_next_round"; do
9688     names_this_round="$names_next_round"
9689     names_next_round=
9690     for name in $names_this_round; do
9691       already_handled=
9692       for n in $names_already_handled; do
9693         if test "$n" = "$name"; then
9694           already_handled=yes
9695           break
9696         fi
9697       done
9698       if test -z "$already_handled"; then
9699         names_already_handled="$names_already_handled $name"
9700                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9701         eval value=\"\$HAVE_LIB$uppername\"
9702         if test -n "$value"; then
9703           if test "$value" = yes; then
9704             eval value=\"\$LIB$uppername\"
9705             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9706             eval value=\"\$LTLIB$uppername\"
9707             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9708           else
9709                                     :
9710           fi
9711         else
9712                               found_dir=
9713           found_la=
9714           found_so=
9715           found_a=
9716           if test $use_additional = yes; then
9717             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9718               found_dir="$additional_libdir"
9719               found_so="$additional_libdir/lib$name.$shlibext"
9720               if test -f "$additional_libdir/lib$name.la"; then
9721                 found_la="$additional_libdir/lib$name.la"
9722               fi
9723             else
9724               if test -f "$additional_libdir/lib$name.$libext"; then
9725                 found_dir="$additional_libdir"
9726                 found_a="$additional_libdir/lib$name.$libext"
9727                 if test -f "$additional_libdir/lib$name.la"; then
9728                   found_la="$additional_libdir/lib$name.la"
9729                 fi
9730               fi
9731             fi
9732           fi
9733           if test "X$found_dir" = "X"; then
9734             for x in $LDFLAGS $LTLIBICONV; do
9735
9736   acl_save_prefix="$prefix"
9737   prefix="$acl_final_prefix"
9738   acl_save_exec_prefix="$exec_prefix"
9739   exec_prefix="$acl_final_exec_prefix"
9740   eval x=\"$x\"
9741   exec_prefix="$acl_save_exec_prefix"
9742   prefix="$acl_save_prefix"
9743
9744               case "$x" in
9745                 -L*)
9746                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9747                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9748                     found_dir="$dir"
9749                     found_so="$dir/lib$name.$shlibext"
9750                     if test -f "$dir/lib$name.la"; then
9751                       found_la="$dir/lib$name.la"
9752                     fi
9753                   else
9754                     if test -f "$dir/lib$name.$libext"; then
9755                       found_dir="$dir"
9756                       found_a="$dir/lib$name.$libext"
9757                       if test -f "$dir/lib$name.la"; then
9758                         found_la="$dir/lib$name.la"
9759                       fi
9760                     fi
9761                   fi
9762                   ;;
9763               esac
9764               if test "X$found_dir" != "X"; then
9765                 break
9766               fi
9767             done
9768           fi
9769           if test "X$found_dir" != "X"; then
9770                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9771             if test "X$found_so" != "X"; then
9772                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9773                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9774               else
9775                                                                                 haveit=
9776                 for x in $ltrpathdirs; do
9777                   if test "X$x" = "X$found_dir"; then
9778                     haveit=yes
9779                     break
9780                   fi
9781                 done
9782                 if test -z "$haveit"; then
9783                   ltrpathdirs="$ltrpathdirs $found_dir"
9784                 fi
9785                                 if test "$hardcode_direct" = yes; then
9786                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9787                 else
9788                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9789                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9790                                                             haveit=
9791                     for x in $rpathdirs; do
9792                       if test "X$x" = "X$found_dir"; then
9793                         haveit=yes
9794                         break
9795                       fi
9796                     done
9797                     if test -z "$haveit"; then
9798                       rpathdirs="$rpathdirs $found_dir"
9799                     fi
9800                   else
9801                                                                                 haveit=
9802                     for x in $LDFLAGS $LIBICONV; do
9803
9804   acl_save_prefix="$prefix"
9805   prefix="$acl_final_prefix"
9806   acl_save_exec_prefix="$exec_prefix"
9807   exec_prefix="$acl_final_exec_prefix"
9808   eval x=\"$x\"
9809   exec_prefix="$acl_save_exec_prefix"
9810   prefix="$acl_save_prefix"
9811
9812                       if test "X$x" = "X-L$found_dir"; then
9813                         haveit=yes
9814                         break
9815                       fi
9816                     done
9817                     if test -z "$haveit"; then
9818                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9819                     fi
9820                     if test "$hardcode_minus_L" != no; then
9821                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9822                     else
9823                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9824                     fi
9825                   fi
9826                 fi
9827               fi
9828             else
9829               if test "X$found_a" != "X"; then
9830                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9831               else
9832                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9833               fi
9834             fi
9835                         additional_includedir=
9836             case "$found_dir" in
9837               */lib | */lib/)
9838                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9839                 additional_includedir="$basedir/include"
9840                 ;;
9841             esac
9842             if test "X$additional_includedir" != "X"; then
9843                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9844                 haveit=
9845                 if test "X$additional_includedir" = "X/usr/local/include"; then
9846                   if test -n "$GCC"; then
9847                     case $host_os in
9848                       linux*) haveit=yes;;
9849                     esac
9850                   fi
9851                 fi
9852                 if test -z "$haveit"; then
9853                   for x in $CPPFLAGS $INCICONV; do
9854
9855   acl_save_prefix="$prefix"
9856   prefix="$acl_final_prefix"
9857   acl_save_exec_prefix="$exec_prefix"
9858   exec_prefix="$acl_final_exec_prefix"
9859   eval x=\"$x\"
9860   exec_prefix="$acl_save_exec_prefix"
9861   prefix="$acl_save_prefix"
9862
9863                     if test "X$x" = "X-I$additional_includedir"; then
9864                       haveit=yes
9865                       break
9866                     fi
9867                   done
9868                   if test -z "$haveit"; then
9869                     if test -d "$additional_includedir"; then
9870                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9871                     fi
9872                   fi
9873                 fi
9874               fi
9875             fi
9876                         if test -n "$found_la"; then
9877                                                         save_libdir="$libdir"
9878               case "$found_la" in
9879                 */* | *\\*) . "$found_la" ;;
9880                 *) . "./$found_la" ;;
9881               esac
9882               libdir="$save_libdir"
9883                             for dep in $dependency_libs; do
9884                 case "$dep" in
9885                   -L*)
9886                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9887                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9888                       haveit=
9889                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9890                         if test -n "$GCC"; then
9891                           case $host_os in
9892                             linux*) haveit=yes;;
9893                           esac
9894                         fi
9895                       fi
9896                       if test -z "$haveit"; then
9897                         haveit=
9898                         for x in $LDFLAGS $LIBICONV; 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                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9916                           fi
9917                         fi
9918                         haveit=
9919                         for x in $LDFLAGS $LTLIBICONV; do
9920
9921   acl_save_prefix="$prefix"
9922   prefix="$acl_final_prefix"
9923   acl_save_exec_prefix="$exec_prefix"
9924   exec_prefix="$acl_final_exec_prefix"
9925   eval x=\"$x\"
9926   exec_prefix="$acl_save_exec_prefix"
9927   prefix="$acl_save_prefix"
9928
9929                           if test "X$x" = "X-L$additional_libdir"; then
9930                             haveit=yes
9931                             break
9932                           fi
9933                         done
9934                         if test -z "$haveit"; then
9935                           if test -d "$additional_libdir"; then
9936                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9937                           fi
9938                         fi
9939                       fi
9940                     fi
9941                     ;;
9942                   -R*)
9943                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9944                     if test "$enable_rpath" != no; then
9945                                                                   haveit=
9946                       for x in $rpathdirs; do
9947                         if test "X$x" = "X$dir"; then
9948                           haveit=yes
9949                           break
9950                         fi
9951                       done
9952                       if test -z "$haveit"; then
9953                         rpathdirs="$rpathdirs $dir"
9954                       fi
9955                                                                   haveit=
9956                       for x in $ltrpathdirs; do
9957                         if test "X$x" = "X$dir"; then
9958                           haveit=yes
9959                           break
9960                         fi
9961                       done
9962                       if test -z "$haveit"; then
9963                         ltrpathdirs="$ltrpathdirs $dir"
9964                       fi
9965                     fi
9966                     ;;
9967                   -l*)
9968                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9969                     ;;
9970                   *.la)
9971                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9972                     ;;
9973                   *)
9974                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9975                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9976                     ;;
9977                 esac
9978               done
9979             fi
9980           else
9981                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9982             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9983           fi
9984         fi
9985       fi
9986     done
9987   done
9988   if test "X$rpathdirs" != "X"; then
9989     if test -n "$hardcode_libdir_separator"; then
9990                         alldirs=
9991       for found_dir in $rpathdirs; do
9992         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9993       done
9994             acl_save_libdir="$libdir"
9995       libdir="$alldirs"
9996       eval flag=\"$hardcode_libdir_flag_spec\"
9997       libdir="$acl_save_libdir"
9998       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9999     else
10000             for found_dir in $rpathdirs; do
10001         acl_save_libdir="$libdir"
10002         libdir="$found_dir"
10003         eval flag=\"$hardcode_libdir_flag_spec\"
10004         libdir="$acl_save_libdir"
10005         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10006       done
10007     fi
10008   fi
10009   if test "X$ltrpathdirs" != "X"; then
10010             for found_dir in $ltrpathdirs; do
10011       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10012     done
10013   fi
10014
10015
10016 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10017   ac_ext=cpp
10018 ac_cpp='$CXXCPP $CPPFLAGS'
10019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10022
10023
10024
10025
10026
10027
10028           am_save_CPPFLAGS="$CPPFLAGS"
10029
10030   for element in $INCICONV; do
10031     haveit=
10032     for x in $CPPFLAGS; do
10033
10034   acl_save_prefix="$prefix"
10035   prefix="$acl_final_prefix"
10036   acl_save_exec_prefix="$exec_prefix"
10037   exec_prefix="$acl_final_exec_prefix"
10038   eval x=\"$x\"
10039   exec_prefix="$acl_save_exec_prefix"
10040   prefix="$acl_save_prefix"
10041
10042       if test "X$x" = "X$element"; then
10043         haveit=yes
10044         break
10045       fi
10046     done
10047     if test -z "$haveit"; then
10048       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10049     fi
10050   done
10051
10052
10053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10054 $as_echo_n "checking for iconv... " >&6; }
10055 if test "${am_cv_func_iconv+set}" = set; then :
10056   $as_echo_n "(cached) " >&6
10057 else
10058
10059     am_cv_func_iconv="no, consider installing GNU libiconv"
10060     am_cv_lib_iconv=no
10061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h.  */
10063 #include <stdlib.h>
10064 #include <iconv.h>
10065 int
10066 main ()
10067 {
10068 iconv_t cd = iconv_open("","");
10069        iconv(cd,NULL,NULL,NULL,NULL);
10070        iconv_close(cd);
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 if ac_fn_cxx_try_link "$LINENO"; then :
10076   am_cv_func_iconv=yes
10077 fi
10078 rm -f core conftest.err conftest.$ac_objext \
10079     conftest$ac_exeext conftest.$ac_ext
10080     if test "$am_cv_func_iconv" != yes; then
10081       am_save_LIBS="$LIBS"
10082       LIBS="$LIBS $LIBICONV"
10083       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h.  */
10085 #include <stdlib.h>
10086 #include <iconv.h>
10087 int
10088 main ()
10089 {
10090 iconv_t cd = iconv_open("","");
10091          iconv(cd,NULL,NULL,NULL,NULL);
10092          iconv_close(cd);
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 if ac_fn_cxx_try_link "$LINENO"; then :
10098   am_cv_lib_iconv=yes
10099         am_cv_func_iconv=yes
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext \
10102     conftest$ac_exeext conftest.$ac_ext
10103       LIBS="$am_save_LIBS"
10104     fi
10105
10106 fi
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10108 $as_echo "$am_cv_func_iconv" >&6; }
10109   if test "$am_cv_func_iconv" = yes; then
10110
10111 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10112
10113   fi
10114   if test "$am_cv_lib_iconv" = yes; then
10115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10116 $as_echo_n "checking how to link with libiconv... " >&6; }
10117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10118 $as_echo "$LIBICONV" >&6; }
10119   else
10120             CPPFLAGS="$am_save_CPPFLAGS"
10121     LIBICONV=
10122     LTLIBICONV=
10123   fi
10124
10125
10126
10127   if test "$am_cv_func_iconv" = yes; then
10128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10129 $as_echo_n "checking for iconv declaration... " >&6; }
10130     if test "${am_cv_proto_iconv+set}" = set; then :
10131   $as_echo_n "(cached) " >&6
10132 else
10133
10134       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h.  */
10136
10137 #include <stdlib.h>
10138 #include <iconv.h>
10139 extern
10140 #ifdef __cplusplus
10141 "C"
10142 #endif
10143 #if defined(__STDC__) || defined(__cplusplus)
10144 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10145 #else
10146 size_t iconv();
10147 #endif
10148
10149 int
10150 main ()
10151 {
10152
10153   ;
10154   return 0;
10155 }
10156 _ACEOF
10157 if ac_fn_cxx_try_compile "$LINENO"; then :
10158   am_cv_proto_iconv_arg1=""
10159 else
10160   am_cv_proto_iconv_arg1="const"
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163       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);"
10164 fi
10165
10166     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10168          }$am_cv_proto_iconv" >&5
10169 $as_echo "${ac_t:-
10170          }$am_cv_proto_iconv" >&6; }
10171
10172 cat >>confdefs.h <<_ACEOF
10173 #define ICONV_CONST $am_cv_proto_iconv_arg1
10174 _ACEOF
10175
10176   fi
10177
10178    ac_ext=c
10179 ac_cpp='$CPP $CPPFLAGS'
10180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10183
10184 else
10185
10186
10187
10188
10189
10190           am_save_CPPFLAGS="$CPPFLAGS"
10191
10192   for element in $INCICONV; do
10193     haveit=
10194     for x in $CPPFLAGS; do
10195
10196   acl_save_prefix="$prefix"
10197   prefix="$acl_final_prefix"
10198   acl_save_exec_prefix="$exec_prefix"
10199   exec_prefix="$acl_final_exec_prefix"
10200   eval x=\"$x\"
10201   exec_prefix="$acl_save_exec_prefix"
10202   prefix="$acl_save_prefix"
10203
10204       if test "X$x" = "X$element"; then
10205         haveit=yes
10206         break
10207       fi
10208     done
10209     if test -z "$haveit"; then
10210       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10211     fi
10212   done
10213
10214
10215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10216 $as_echo_n "checking for iconv... " >&6; }
10217 if test "${am_cv_func_iconv+set}" = set; then :
10218   $as_echo_n "(cached) " >&6
10219 else
10220
10221     am_cv_func_iconv="no, consider installing GNU libiconv"
10222     am_cv_lib_iconv=no
10223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h.  */
10225 #include <stdlib.h>
10226 #include <iconv.h>
10227 int
10228 main ()
10229 {
10230 iconv_t cd = iconv_open("","");
10231        iconv(cd,NULL,NULL,NULL,NULL);
10232        iconv_close(cd);
10233   ;
10234   return 0;
10235 }
10236 _ACEOF
10237 if ac_fn_c_try_link "$LINENO"; then :
10238   am_cv_func_iconv=yes
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext \
10241     conftest$ac_exeext conftest.$ac_ext
10242     if test "$am_cv_func_iconv" != yes; then
10243       am_save_LIBS="$LIBS"
10244       LIBS="$LIBS $LIBICONV"
10245       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h.  */
10247 #include <stdlib.h>
10248 #include <iconv.h>
10249 int
10250 main ()
10251 {
10252 iconv_t cd = iconv_open("","");
10253          iconv(cd,NULL,NULL,NULL,NULL);
10254          iconv_close(cd);
10255   ;
10256   return 0;
10257 }
10258 _ACEOF
10259 if ac_fn_c_try_link "$LINENO"; then :
10260   am_cv_lib_iconv=yes
10261         am_cv_func_iconv=yes
10262 fi
10263 rm -f core conftest.err conftest.$ac_objext \
10264     conftest$ac_exeext conftest.$ac_ext
10265       LIBS="$am_save_LIBS"
10266     fi
10267
10268 fi
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10270 $as_echo "$am_cv_func_iconv" >&6; }
10271   if test "$am_cv_func_iconv" = yes; then
10272
10273 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10274
10275   fi
10276   if test "$am_cv_lib_iconv" = yes; then
10277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10278 $as_echo_n "checking how to link with libiconv... " >&6; }
10279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10280 $as_echo "$LIBICONV" >&6; }
10281   else
10282             CPPFLAGS="$am_save_CPPFLAGS"
10283     LIBICONV=
10284     LTLIBICONV=
10285   fi
10286
10287
10288
10289   if test "$am_cv_func_iconv" = yes; then
10290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10291 $as_echo_n "checking for iconv declaration... " >&6; }
10292     if test "${am_cv_proto_iconv+set}" = set; then :
10293   $as_echo_n "(cached) " >&6
10294 else
10295
10296       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h.  */
10298
10299 #include <stdlib.h>
10300 #include <iconv.h>
10301 extern
10302 #ifdef __cplusplus
10303 "C"
10304 #endif
10305 #if defined(__STDC__) || defined(__cplusplus)
10306 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10307 #else
10308 size_t iconv();
10309 #endif
10310
10311 int
10312 main ()
10313 {
10314
10315   ;
10316   return 0;
10317 }
10318 _ACEOF
10319 if ac_fn_c_try_compile "$LINENO"; then :
10320   am_cv_proto_iconv_arg1=""
10321 else
10322   am_cv_proto_iconv_arg1="const"
10323 fi
10324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325       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);"
10326 fi
10327
10328     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10330          }$am_cv_proto_iconv" >&5
10331 $as_echo "${ac_t:-
10332          }$am_cv_proto_iconv" >&6; }
10333
10334 cat >>confdefs.h <<_ACEOF
10335 #define ICONV_CONST $am_cv_proto_iconv_arg1
10336 _ACEOF
10337
10338   fi
10339
10340 fi
10341
10342 # Until we have in-tree GNU iconv:
10343 LIBICONV_DEP=
10344
10345
10346
10347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10348 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10349 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10350   $as_echo_n "(cached) " >&6
10351 else
10352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h.  */
10354 #include <locale.h>
10355 int
10356 main ()
10357 {
10358 return LC_MESSAGES
10359   ;
10360   return 0;
10361 }
10362 _ACEOF
10363 if ac_fn_c_try_link "$LINENO"; then :
10364   am_cv_val_LC_MESSAGES=yes
10365 else
10366   am_cv_val_LC_MESSAGES=no
10367 fi
10368 rm -f core conftest.err conftest.$ac_objext \
10369     conftest$ac_exeext conftest.$ac_ext
10370 fi
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10372 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10373   if test $am_cv_val_LC_MESSAGES = yes; then
10374
10375 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10376
10377   fi
10378
10379
10380
10381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10382 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10383 if test "${am_cv_langinfo_codeset+set}" = set; then :
10384   $as_echo_n "(cached) " >&6
10385 else
10386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h.  */
10388 #include <langinfo.h>
10389 int
10390 main ()
10391 {
10392 char* cs = nl_langinfo(CODESET);
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 if ac_fn_c_try_link "$LINENO"; then :
10398   am_cv_langinfo_codeset=yes
10399 else
10400   am_cv_langinfo_codeset=no
10401 fi
10402 rm -f core conftest.err conftest.$ac_objext \
10403     conftest$ac_exeext conftest.$ac_ext
10404
10405 fi
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10407 $as_echo "$am_cv_langinfo_codeset" >&6; }
10408   if test $am_cv_langinfo_codeset = yes; then
10409
10410 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10411
10412   fi
10413
10414
10415 # We will need to find libiberty.h and ansidecl.h
10416 saved_CFLAGS="$CFLAGS"
10417 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10418 saved_CXXFLAGS="$CXXFLAGS"
10419 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10420 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10421         strsignal strstr strverscmp \
10422         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10423         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
10424 do
10425   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10427 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10428 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10429   $as_echo_n "(cached) " >&6
10430 else
10431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h.  */
10433 #undef $ac_tr_decl
10434 #define $ac_tr_decl 1
10435
10436 #include "ansidecl.h"
10437 #include "system.h"
10438
10439 int
10440 main ()
10441 {
10442 #ifndef $ac_func
10443 char *(*pfn) = (char *(*)) $ac_func ;
10444 #endif
10445   ;
10446   return 0;
10447 }
10448 _ACEOF
10449 if ac_fn_c_try_compile "$LINENO"; then :
10450   eval "gcc_cv_have_decl_$ac_func=yes"
10451 else
10452   eval "gcc_cv_have_decl_$ac_func=no"
10453 fi
10454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 fi
10456
10457 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10459 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10460 #define $ac_tr_decl 1
10461 _ACEOF
10462
10463 else
10464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10466 #define $ac_tr_decl 0
10467 _ACEOF
10468
10469 fi
10470
10471 done
10472
10473
10474 for ac_func in getrlimit setrlimit getrusage
10475 do
10476   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10478 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10479 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10480   $as_echo_n "(cached) " >&6
10481 else
10482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h.  */
10484 #undef $ac_tr_decl
10485 #define $ac_tr_decl 1
10486
10487 #include "ansidecl.h"
10488 #include "system.h"
10489 #ifdef HAVE_SYS_RESOURCE_H
10490 #include <sys/resource.h>
10491 #endif
10492
10493
10494 int
10495 main ()
10496 {
10497 #ifndef $ac_func
10498 char *(*pfn) = (char *(*)) $ac_func ;
10499 #endif
10500   ;
10501   return 0;
10502 }
10503 _ACEOF
10504 if ac_fn_c_try_compile "$LINENO"; then :
10505   eval "gcc_cv_have_decl_$ac_func=yes"
10506 else
10507   eval "gcc_cv_have_decl_$ac_func=no"
10508 fi
10509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10510 fi
10511
10512 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10514 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10515 #define $ac_tr_decl 1
10516 _ACEOF
10517
10518 else
10519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10521 #define $ac_tr_decl 0
10522 _ACEOF
10523
10524 fi
10525
10526 done
10527
10528
10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h.  */
10531
10532 #include "ansidecl.h"
10533 #include "system.h"
10534 #ifdef HAVE_SYS_RESOURCE_H
10535 #include <sys/resource.h>
10536 #endif
10537
10538 int
10539 main ()
10540 {
10541 rlim_t l = 0;
10542   ;
10543   return 0;
10544 }
10545 _ACEOF
10546 if ac_fn_c_try_compile "$LINENO"; then :
10547
10548 else
10549
10550 $as_echo "#define rlim_t long" >>confdefs.h
10551
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554
10555 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10556 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10557 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10558 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10559 for ac_func in ldgetname
10560 do
10561   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10563 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10564 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10565   $as_echo_n "(cached) " >&6
10566 else
10567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h.  */
10569 #undef $ac_tr_decl
10570 #define $ac_tr_decl 1
10571
10572 #include "ansidecl.h"
10573 #include "system.h"
10574 #ifdef HAVE_LDFCN_H
10575 #undef FREAD
10576 #undef FWRITE
10577 #include <ldfcn.h>
10578 #endif
10579
10580
10581 int
10582 main ()
10583 {
10584 #ifndef $ac_func
10585 char *(*pfn) = (char *(*)) $ac_func ;
10586 #endif
10587   ;
10588   return 0;
10589 }
10590 _ACEOF
10591 if ac_fn_c_try_compile "$LINENO"; then :
10592   eval "gcc_cv_have_decl_$ac_func=yes"
10593 else
10594   eval "gcc_cv_have_decl_$ac_func=no"
10595 fi
10596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597 fi
10598
10599 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10601 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10602 #define $ac_tr_decl 1
10603 _ACEOF
10604
10605 else
10606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10608 #define $ac_tr_decl 0
10609 _ACEOF
10610
10611 fi
10612
10613 done
10614
10615
10616 for ac_func in times
10617 do
10618   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10620 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10621 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10622   $as_echo_n "(cached) " >&6
10623 else
10624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h.  */
10626 #undef $ac_tr_decl
10627 #define $ac_tr_decl 1
10628
10629 #include "ansidecl.h"
10630 #include "system.h"
10631 #ifdef HAVE_SYS_TIMES_H
10632 #include <sys/times.h>
10633 #endif
10634
10635
10636 int
10637 main ()
10638 {
10639 #ifndef $ac_func
10640 char *(*pfn) = (char *(*)) $ac_func ;
10641 #endif
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 if ac_fn_c_try_compile "$LINENO"; then :
10647   eval "gcc_cv_have_decl_$ac_func=yes"
10648 else
10649   eval "gcc_cv_have_decl_$ac_func=no"
10650 fi
10651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10652 fi
10653
10654 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10656 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10657 #define $ac_tr_decl 1
10658 _ACEOF
10659
10660 else
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10663 #define $ac_tr_decl 0
10664 _ACEOF
10665
10666 fi
10667
10668 done
10669
10670
10671 for ac_func in sigaltstack
10672 do
10673   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10675 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10676 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10677   $as_echo_n "(cached) " >&6
10678 else
10679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h.  */
10681 #undef $ac_tr_decl
10682 #define $ac_tr_decl 1
10683
10684 #include "ansidecl.h"
10685 #include "system.h"
10686 #include <signal.h>
10687
10688
10689 int
10690 main ()
10691 {
10692 #ifndef $ac_func
10693 char *(*pfn) = (char *(*)) $ac_func ;
10694 #endif
10695   ;
10696   return 0;
10697 }
10698 _ACEOF
10699 if ac_fn_c_try_compile "$LINENO"; then :
10700   eval "gcc_cv_have_decl_$ac_func=yes"
10701 else
10702   eval "gcc_cv_have_decl_$ac_func=no"
10703 fi
10704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10705 fi
10706
10707 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10709 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10710 #define $ac_tr_decl 1
10711 _ACEOF
10712
10713 else
10714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10716 #define $ac_tr_decl 0
10717 _ACEOF
10718
10719 fi
10720
10721 done
10722
10723
10724 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10725 # prototype.
10726 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10727   ac_ext=cpp
10728 ac_cpp='$CXXCPP $CPPFLAGS'
10729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10732
10733    for ac_func in madvise
10734 do
10735   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10737 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10738 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10739   $as_echo_n "(cached) " >&6
10740 else
10741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h.  */
10743 #undef $ac_tr_decl
10744 #define $ac_tr_decl 1
10745
10746      #include "ansidecl.h"
10747      #include "system.h"
10748
10749
10750 int
10751 main ()
10752 {
10753 #ifndef $ac_func
10754 char *(*pfn) = (char *(*)) $ac_func ;
10755 #endif
10756   ;
10757   return 0;
10758 }
10759 _ACEOF
10760 if ac_fn_cxx_try_compile "$LINENO"; then :
10761   eval "gcc_cv_have_decl_$ac_func=yes"
10762 else
10763   eval "gcc_cv_have_decl_$ac_func=no"
10764 fi
10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10766 fi
10767
10768 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10770 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10771 #define $ac_tr_decl 1
10772 _ACEOF
10773
10774 else
10775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10777 #define $ac_tr_decl 0
10778 _ACEOF
10779
10780 fi
10781
10782 done
10783
10784    ac_ext=c
10785 ac_cpp='$CPP $CPPFLAGS'
10786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10789
10790 else
10791   for ac_func in madvise
10792 do
10793   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10795 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10796 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10797   $as_echo_n "(cached) " >&6
10798 else
10799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h.  */
10801 #undef $ac_tr_decl
10802 #define $ac_tr_decl 1
10803
10804      #include "ansidecl.h"
10805      #include "system.h"
10806
10807
10808 int
10809 main ()
10810 {
10811 #ifndef $ac_func
10812 char *(*pfn) = (char *(*)) $ac_func ;
10813 #endif
10814   ;
10815   return 0;
10816 }
10817 _ACEOF
10818 if ac_fn_c_try_compile "$LINENO"; then :
10819   eval "gcc_cv_have_decl_$ac_func=yes"
10820 else
10821   eval "gcc_cv_have_decl_$ac_func=no"
10822 fi
10823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824 fi
10825
10826 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10828 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10829 #define $ac_tr_decl 1
10830 _ACEOF
10831
10832 else
10833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10835 #define $ac_tr_decl 0
10836 _ACEOF
10837
10838 fi
10839
10840 done
10841
10842
10843 fi
10844
10845 # More time-related stuff.
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10847 $as_echo_n "checking for struct tms... " >&6; }
10848 if test "${ac_cv_struct_tms+set}" = set; then :
10849   $as_echo_n "(cached) " >&6
10850 else
10851
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h.  */
10854
10855 #include "ansidecl.h"
10856 #include "system.h"
10857 #ifdef HAVE_SYS_TIMES_H
10858 #include <sys/times.h>
10859 #endif
10860
10861 int
10862 main ()
10863 {
10864 struct tms tms;
10865   ;
10866   return 0;
10867 }
10868 _ACEOF
10869 if ac_fn_c_try_compile "$LINENO"; then :
10870   ac_cv_struct_tms=yes
10871 else
10872   ac_cv_struct_tms=no
10873 fi
10874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10875 fi
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10877 $as_echo "$ac_cv_struct_tms" >&6; }
10878 if test $ac_cv_struct_tms = yes; then
10879
10880 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10881
10882 fi
10883
10884 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10885 # revisit after autoconf 2.50.
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10887 $as_echo_n "checking for clock_t... " >&6; }
10888 if test "${gcc_cv_type_clock_t+set}" = set; then :
10889   $as_echo_n "(cached) " >&6
10890 else
10891
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h.  */
10894
10895 #include "ansidecl.h"
10896 #include "system.h"
10897
10898 int
10899 main ()
10900 {
10901 clock_t x;
10902   ;
10903   return 0;
10904 }
10905 _ACEOF
10906 if ac_fn_c_try_compile "$LINENO"; then :
10907   gcc_cv_type_clock_t=yes
10908 else
10909   gcc_cv_type_clock_t=no
10910 fi
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912 fi
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10914 $as_echo "$gcc_cv_type_clock_t" >&6; }
10915 if test $gcc_cv_type_clock_t = yes; then
10916
10917 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10918
10919 fi
10920
10921 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10922 CFLAGS="$saved_CFLAGS"
10923 CXXFLAGS="$saved_CXXFLAGS"
10924
10925 # Check whether --enable-initfini-array was given.
10926 if test "${enable_initfini_array+set}" = set; then :
10927   enableval=$enable_initfini_array;
10928 else
10929
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10931 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10932 if test "${gcc_cv_initfini_array+set}" = set; then :
10933   $as_echo_n "(cached) " >&6
10934 else
10935     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10936     if test "$cross_compiling" = yes; then :
10937   gcc_cv_initfini_array=no
10938 else
10939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h.  */
10941
10942 #ifndef __ELF__
10943 #error Not an ELF OS
10944 #endif
10945 #ifdef __ia64__
10946 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10947    if it can be used.  */
10948 static int x = -1;
10949 int main (void) { return x; }
10950 int foo (void) { x = 0; }
10951 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10952 #else
10953 extern void abort ();
10954 static int count;
10955
10956 static void
10957 init1005 ()
10958 {
10959   if (count != 0)
10960     abort ();
10961   count = 1005;
10962 }
10963 void (*const init_array1005) ()
10964   __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10965   = { init1005 };
10966 static void
10967 fini1005 ()
10968 {
10969   if (count != 1005)
10970     abort ();
10971 }
10972 void (*const fini_array1005) ()
10973   __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10974   = { fini1005 };
10975
10976 static void
10977 ctor1007 ()
10978 {
10979   if (count != 1005)
10980     abort ();
10981   count = 1007;
10982 }
10983 void (*const ctors1007) ()
10984   __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10985   = { ctor1007 };
10986 static void
10987 dtor1007 ()
10988 {
10989   if (count != 1007)
10990     abort ();
10991   count = 1005;
10992 }
10993 void (*const dtors1007) ()
10994   __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10995   = { dtor1007 };
10996
10997 static void
10998 init65530 ()
10999 {
11000   if (count != 1007)
11001     abort ();
11002   count = 65530;
11003 }
11004 void (*const init_array65530) ()
11005   __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11006   = { init65530 };
11007 static void
11008 fini65530 ()
11009 {
11010   if (count != 65530)
11011     abort ();
11012   count = 1007;
11013 }
11014 void (*const fini_array65530) ()
11015   __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11016   = { fini65530 };
11017
11018 static void
11019 ctor65535 ()
11020 {
11021   if (count != 65530)
11022     abort ();
11023   count = 65535;
11024 }
11025 void (*const ctors65535) ()
11026   __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11027   = { ctor65535 };
11028 static void
11029 dtor65535 ()
11030 {
11031   if (count != 65535)
11032     abort ();
11033   count = 65530;
11034 }
11035 void (*const dtors65535) ()
11036   __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11037   = { dtor65535 };
11038
11039 int
11040 main ()
11041 {
11042   if (count != 65535)
11043     abort ();
11044   return 0;
11045 }
11046 #endif
11047
11048 _ACEOF
11049 if ac_fn_c_try_run "$LINENO"; then :
11050   gcc_cv_initfini_array=yes
11051 else
11052   gcc_cv_initfini_array=no
11053 fi
11054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11055   conftest.$ac_objext conftest.beam conftest.$ac_ext
11056 fi
11057
11058    else
11059      { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11060 $as_echo_n "checking cross compile... guessing... " >&6; }
11061      gcc_cv_initfini_array=no
11062    fi
11063 fi
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11065 $as_echo "$gcc_cv_initfini_array" >&6; }
11066   enable_initfini_array=$gcc_cv_initfini_array
11067
11068 fi
11069
11070 if test $enable_initfini_array = yes; then
11071
11072 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11073
11074 fi
11075
11076 # mkdir takes a single argument on some systems.
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11078 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11079 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11080   $as_echo_n "(cached) " >&6
11081 else
11082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h.  */
11084
11085 #include <sys/types.h>
11086 #ifdef HAVE_SYS_STAT_H
11087 # include <sys/stat.h>
11088 #endif
11089 #ifdef HAVE_UNISTD_H
11090 # include <unistd.h>
11091 #endif
11092 #ifdef HAVE_DIRECT_H
11093 # include <direct.h>
11094 #endif
11095 int
11096 main ()
11097 {
11098 mkdir ("foo", 0);
11099   ;
11100   return 0;
11101 }
11102 _ACEOF
11103 if ac_fn_c_try_compile "$LINENO"; then :
11104   gcc_cv_mkdir_takes_one_arg=no
11105 else
11106   gcc_cv_mkdir_takes_one_arg=yes
11107 fi
11108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11109 fi
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11111 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11112 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11113
11114 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11115
11116 fi
11117
11118
11119 # File extensions
11120 manext='.1'
11121 objext='.o'
11122
11123
11124
11125 # With Setjmp/Longjmp based exception handling.
11126 # Check whether --enable-sjlj-exceptions was given.
11127 if test "${enable_sjlj_exceptions+set}" = set; then :
11128   enableval=$enable_sjlj_exceptions; case $target in
11129   *-*-hpux10*)
11130     if test $enableval != yes; then
11131       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11132 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11133       enableval=yes
11134     fi
11135     ;;
11136 esac
11137 force_sjlj_exceptions=yes
11138 else
11139   case $target in
11140   *-*-hpux10*)
11141     force_sjlj_exceptions=yes
11142     enableval=yes
11143     ;;
11144   *)
11145     force_sjlj_exceptions=no
11146     ;;
11147 esac
11148 fi
11149
11150 if test $force_sjlj_exceptions = yes; then
11151   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11152
11153 cat >>confdefs.h <<_ACEOF
11154 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11155 _ACEOF
11156
11157 fi
11158
11159 # --------------------------------------------------------
11160 # Build, host, and target specific configuration fragments
11161 # --------------------------------------------------------
11162
11163 # Collect build-machine-specific information.
11164 . ${srcdir}/config.build
11165
11166 # Collect host-machine-specific information.
11167 . ${srcdir}/config.host
11168
11169 target_gtfiles=
11170
11171 # Collect target-machine-specific information.
11172 . ${srcdir}/config.gcc
11173
11174 extra_objs="${host_extra_objs} ${extra_objs}"
11175 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11176
11177 # Default the target-machine variables that were not explicitly set.
11178 if test x"$tm_file" = x
11179 then tm_file=$cpu_type/$cpu_type.h; fi
11180
11181 if test x"$extra_headers" = x
11182 then extra_headers=; fi
11183
11184 if test x$md_file = x
11185 then md_file=$cpu_type/$cpu_type.md; fi
11186
11187 if test x$out_file = x
11188 then out_file=$cpu_type/$cpu_type.c; fi
11189
11190 if test x"$tmake_file" = x
11191 then tmake_file=$cpu_type/t-$cpu_type
11192 fi
11193
11194 if test x"$dwarf2" = xyes
11195 then tm_file="$tm_file tm-dwarf2.h"
11196 fi
11197
11198 # Say what files are being used for the output code and MD file.
11199 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11200 echo "Using \`$srcdir/config/$md_file' as machine description file."
11201
11202 # If any of the xm_file variables contain nonexistent files, warn
11203 # about them and drop them.
11204
11205 bx=
11206 for x in $build_xm_file; do
11207   if    test -f $srcdir/config/$x
11208   then      bx="$bx $x"
11209   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11210 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11211   fi
11212 done
11213 build_xm_file="$bx"
11214
11215 hx=
11216 for x in $host_xm_file; do
11217   if    test -f $srcdir/config/$x
11218   then      hx="$hx $x"
11219   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11220 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11221   fi
11222 done
11223 host_xm_file="$hx"
11224
11225 tx=
11226 for x in $xm_file; do
11227   if    test -f $srcdir/config/$x
11228   then      tx="$tx $x"
11229   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11230 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11231   fi
11232 done
11233 xm_file="$tx"
11234
11235 count=a
11236 for f in $tm_file; do
11237         count=${count}x
11238 done
11239 if test $count = ax; then
11240         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11241 else
11242         echo "Using the following target machine macro files:"
11243         for f in $tm_file; do
11244                 echo "  $srcdir/config/$f"
11245         done
11246 fi
11247
11248 if test x$need_64bit_hwint = xyes; then
11249
11250 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11251
11252 fi
11253
11254 if test x$use_long_long_for_widest_fast_int = xyes; then
11255
11256 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11257
11258 fi
11259
11260 count=a
11261 for f in $host_xm_file; do
11262         count=${count}x
11263 done
11264 if test $count = a; then
11265         :
11266 elif test $count = ax; then
11267         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11268 else
11269         echo "Using the following host machine macro files:"
11270         for f in $host_xm_file; do
11271                 echo "  $srcdir/config/$f"
11272         done
11273 fi
11274 echo "Using ${out_host_hook_obj} for host machine hooks."
11275
11276 if test "$host_xm_file" != "$build_xm_file"; then
11277         count=a
11278         for f in $build_xm_file; do
11279                 count=${count}x
11280         done
11281         if test $count = a; then
11282                 :
11283         elif test $count = ax; then
11284                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11285         else
11286                 echo "Using the following build machine macro files:"
11287                 for f in $build_xm_file; do
11288                         echo "  $srcdir/config/$f"
11289                 done
11290         fi
11291 fi
11292
11293 if test -n "$configured_native_system_header_dir"; then
11294   native_system_header_dir=$configured_native_system_header_dir
11295 fi
11296 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11297
11298
11299 case ${host} in
11300   powerpc*-*-darwin*)
11301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11302 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11303 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h.  */
11308
11309 #include <sys/cdefs.h>
11310 #include <sys/signal.h>
11311 #include <ucontext.h>
11312 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11313
11314 _ACEOF
11315 if ac_fn_c_try_compile "$LINENO"; then :
11316   gcc_cv_mcontext_underscores=no
11317 else
11318   gcc_cv_mcontext_underscores=yes
11319 fi
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321 fi
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11323 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11324       if test $gcc_cv_mcontext_underscores = yes; then
11325
11326 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11327
11328       fi
11329     ;;
11330 esac
11331
11332 # ---------
11333 # Threading
11334 # ---------
11335
11336 # Check if a valid thread package
11337 case ${enable_threads} in
11338   "" | no)
11339     # No threads
11340     target_thread_file='single'
11341     ;;
11342   yes)
11343     # default
11344     target_thread_file='single'
11345     ;;
11346   aix | dce | lynx | mipssde | posix | rtems | \
11347   single | tpf | vxworks | win32)
11348     target_thread_file=${enable_threads}
11349     ;;
11350   *)
11351     echo "${enable_threads} is an unknown thread package" 1>&2
11352     exit 1
11353     ;;
11354 esac
11355
11356 if test x${thread_file} = x; then
11357   # No thread file set by target-specific clauses in config.gcc,
11358   # so use file chosen by default logic above
11359   thread_file=${target_thread_file}
11360 fi
11361
11362 # Make gthr-default.h if we have a thread file.
11363 gthread_flags=
11364 if test $thread_file != single; then
11365   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11366   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11367     rm -f gthr-default.h-t
11368   else
11369     mv -f gthr-default.h-t gthr-default.h
11370   fi
11371   gthread_flags=-DHAVE_GTHR_DEFAULT
11372 fi
11373
11374
11375 # --------
11376 # UNSORTED
11377 # --------
11378
11379 use_cxa_atexit=no
11380 if test x$enable___cxa_atexit = xyes || \
11381    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11382   if test x$host = x$target; then
11383     case $host in
11384       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11385       # keyed to flag_use_cxa_atexit
11386       *-*-mingw32*)
11387         use_cxa_atexit=yes
11388         ;;
11389       *)
11390         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11391 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11392   use_cxa_atexit=yes
11393 else
11394   echo "__cxa_atexit can't be enabled on this target"
11395 fi
11396
11397         ;;
11398     esac
11399   else
11400     # We can't check for __cxa_atexit when building a cross, so assume
11401     # it is available
11402     use_cxa_atexit=yes
11403   fi
11404   if test x$use_cxa_atexit = xyes; then
11405
11406 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11407
11408   fi
11409 fi
11410
11411 # Look for a file containing extra machine modes.
11412 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11413   extra_modes_file='$(srcdir)'/config/${extra_modes}
11414
11415
11416 cat >>confdefs.h <<_ACEOF
11417 #define EXTRA_MODES_FILE "config/$extra_modes"
11418 _ACEOF
11419
11420 fi
11421
11422 # Convert extra_options into a form suitable for Makefile use.
11423 extra_opt_files=
11424 all_opt_files=
11425 for f in $extra_options; do
11426   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11427   all_opt_files="$all_opt_files $srcdir/config/$f"
11428 done
11429
11430
11431 # auto-host.h is the file containing items generated by autoconf and is
11432 # the first file included by config.h.
11433 # If host=build, it is correct to have bconfig include auto-host.h
11434 # as well.  If host!=build, we are in error and need to do more
11435 # work to find out the build config parameters.
11436 if test x$host = x$build
11437 then
11438         build_auto=auto-host.h
11439 else
11440         # We create a subdir, then run autoconf in the subdir.
11441         # To prevent recursion we set host and build for the new
11442         # invocation of configure to the build for this invocation
11443         # of configure.
11444         tempdir=build.$$
11445         rm -rf $tempdir
11446         mkdir $tempdir
11447         cd $tempdir
11448         case ${srcdir} in
11449         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11450         *) realsrcdir=../${srcdir};;
11451         esac
11452         saved_CFLAGS="${CFLAGS}"
11453         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11454         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11455         ${realsrcdir}/configure \
11456                 --enable-languages=${enable_languages-all} \
11457                 --target=$target_alias --host=$build_alias --build=$build_alias
11458         CFLAGS="${saved_CFLAGS}"
11459
11460         # We just finished tests for the build machine, so rename
11461         # the file auto-build.h in the gcc directory.
11462         mv auto-host.h ../auto-build.h
11463         cd ..
11464         rm -rf $tempdir
11465         build_auto=auto-build.h
11466 fi
11467
11468
11469 tm_file="${tm_file} defaults.h"
11470 tm_p_file="${tm_p_file} tm-preds.h"
11471 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11472 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11473 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11474 # put this back in temporarily.
11475 xm_file="auto-host.h ansidecl.h ${xm_file}"
11476
11477 # --------
11478 # UNSORTED
11479 # --------
11480
11481 # Compile in configure arguments.
11482 if test -f configargs.h ; then
11483         # Being re-configured.
11484         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11485         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11486 else
11487         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11488 fi
11489
11490 # Double all backslashes and backslash all quotes to turn
11491 # gcc_config_arguments into a C string.
11492 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11493 $gcc_config_arguments
11494 EOF
11495 gcc_config_arguments_str=`cat conftest.out`
11496 rm -f conftest.out
11497
11498 cat > configargs.h <<EOF
11499 /* Generated automatically. */
11500 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11501 static const char thread_model[] = "$thread_file";
11502
11503 static const struct {
11504   const char *name, *value;
11505 } configure_default_options[] = $configure_default_options;
11506 EOF
11507
11508 gcc_BASEVER=`cat $srcdir/BASE-VER`
11509 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11510 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11511 if test -f $srcdir/REVISION ; then
11512         gcc_REVISION=`cat $srcdir/REVISION`
11513 else
11514         gcc_REVISION=""
11515 fi
11516 cat > plugin-version.h <<EOF
11517 #include "configargs.h"
11518
11519 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11520 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11521 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11522 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11523
11524 static char basever[] = "$gcc_BASEVER";
11525 static char datestamp[] = "$gcc_DATESTAMP";
11526 static char devphase[] = "$gcc_DEVPHASE";
11527 static char revision[] = "$gcc_REVISION";
11528
11529 /* FIXME plugins: We should make the version information more precise.
11530    One way to do is to add a checksum. */
11531
11532 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11533                                                 devphase, revision,
11534                                                 configuration_arguments};
11535 EOF
11536
11537 # Internationalization
11538 # If we haven't got the data from the intl directory,
11539 # assume NLS is disabled.
11540 USE_NLS=no
11541 LIBINTL=
11542 LIBINTL_DEP=
11543 INCINTL=
11544 XGETTEXT=
11545 GMSGFMT=
11546 POSUB=
11547
11548 if test -f  ../intl/config.intl; then
11549   .  ../intl/config.intl
11550 fi
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11552 $as_echo_n "checking whether NLS is requested... " >&6; }
11553 if test x"$USE_NLS" != xyes; then
11554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11556 else
11557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11558 $as_echo "yes" >&6; }
11559
11560 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11561
11562
11563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11564 $as_echo_n "checking for catalogs to be installed... " >&6; }
11565   # Look for .po and .gmo files in the source directory.
11566   CATALOGS=
11567   XLINGUAS=
11568   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11569     # If there aren't any .gmo files the shell will give us the
11570     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11571     # weeded out.
11572     case "$cat" in *\**)
11573       continue;;
11574     esac
11575     # The quadruple backslash is collapsed to a double backslash
11576     # by the backticks, then collapsed again by the double quotes,
11577     # leaving us with one backslash in the sed expression (right
11578     # before the dot that mustn't act as a wildcard).
11579     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11580     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11581     # The user is allowed to set LINGUAS to a list of languages to
11582     # install catalogs for.  If it's empty that means "all of them."
11583     if test "x$LINGUAS" = x; then
11584       CATALOGS="$CATALOGS $cat"
11585       XLINGUAS="$XLINGUAS $lang"
11586     else
11587       case "$LINGUAS" in *$lang*)
11588         CATALOGS="$CATALOGS $cat"
11589         XLINGUAS="$XLINGUAS $lang"
11590         ;;
11591       esac
11592     fi
11593   done
11594   LINGUAS="$XLINGUAS"
11595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11596 $as_echo "$LINGUAS" >&6; }
11597
11598
11599     DATADIRNAME=share
11600
11601   INSTOBJEXT=.mo
11602
11603   GENCAT=gencat
11604
11605   CATOBJEXT=.gmo
11606
11607 fi
11608
11609 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11610 # -liconv on the link line twice.
11611 case "$LIBINTL" in *$LIBICONV*)
11612         LIBICONV= ;;
11613 esac
11614
11615 # Check whether --enable-secureplt was given.
11616 if test "${enable_secureplt+set}" = set; then :
11617   enableval=$enable_secureplt;
11618 fi
11619
11620
11621 # Check whether --enable-leading-mingw64-underscores was given.
11622 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11623   enableval=$enable_leading_mingw64_underscores;
11624 fi
11625
11626 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11627
11628 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11629
11630 fi
11631
11632 # Check whether --enable-cld was given.
11633 if test "${enable_cld+set}" = set; then :
11634   enableval=$enable_cld;
11635 else
11636   enable_cld=no
11637 fi
11638
11639
11640 # Check whether --enable-frame-pointer was given.
11641 if test "${enable_frame_pointer+set}" = set; then :
11642   enableval=$enable_frame_pointer;
11643 else
11644
11645 case $target_os in
11646 linux* | darwin[8912]*)
11647   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11648   # DWARF2.
11649   enable_frame_pointer=no
11650   ;;
11651 *)
11652   enable_frame_pointer=yes
11653   ;;
11654 esac
11655
11656 fi
11657
11658
11659 # Windows32 Registry support for specifying GCC installation paths.
11660 # Check whether --enable-win32-registry was given.
11661 if test "${enable_win32_registry+set}" = set; then :
11662   enableval=$enable_win32_registry;
11663 fi
11664
11665
11666 case $host_os in
11667   win32 | pe | cygwin* | mingw32* | uwin*)
11668     if test "x$enable_win32_registry" != xno; then
11669       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11670 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11671 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11672   $as_echo_n "(cached) " >&6
11673 else
11674   ac_func_search_save_LIBS=$LIBS
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h.  */
11677
11678 /* Override any GCC internal prototype to avoid an error.
11679    Use char because int might match the return type of a GCC
11680    builtin and then its argument prototype would still apply.  */
11681 #ifdef __cplusplus
11682 extern "C"
11683 #endif
11684 char RegOpenKeyExA ();
11685 int
11686 main ()
11687 {
11688 return RegOpenKeyExA ();
11689   ;
11690   return 0;
11691 }
11692 _ACEOF
11693 for ac_lib in '' advapi32; do
11694   if test -z "$ac_lib"; then
11695     ac_res="none required"
11696   else
11697     ac_res=-l$ac_lib
11698     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11699   fi
11700   if ac_fn_c_try_link "$LINENO"; then :
11701   ac_cv_search_RegOpenKeyExA=$ac_res
11702 fi
11703 rm -f core conftest.err conftest.$ac_objext \
11704     conftest$ac_exeext
11705   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11706   break
11707 fi
11708 done
11709 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11710
11711 else
11712   ac_cv_search_RegOpenKeyExA=no
11713 fi
11714 rm conftest.$ac_ext
11715 LIBS=$ac_func_search_save_LIBS
11716 fi
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11718 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11719 ac_res=$ac_cv_search_RegOpenKeyExA
11720 if test "$ac_res" != no; then :
11721   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11722
11723 else
11724   enable_win32_registry=no
11725 fi
11726
11727     fi
11728
11729     if test "x$enable_win32_registry" != xno; then
11730
11731 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11732
11733
11734       if test "x$enable_win32_registry" != xyes \
11735          && test "x$enable_win32_registry" != x; then
11736
11737 cat >>confdefs.h <<_ACEOF
11738 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11739 _ACEOF
11740
11741       fi
11742     fi
11743   ;;
11744 esac
11745
11746 # Get an absolute path to the GCC top-level source directory
11747 holddir=`${PWDCMD-pwd}`
11748 cd $srcdir
11749 topdir=`${PWDCMD-pwd}`
11750 cd $holddir
11751
11752 # Conditionalize the makefile for this host machine.
11753 xmake_file=
11754 for f in ${host_xmake_file}
11755 do
11756         if test -f ${srcdir}/config/$f
11757         then
11758                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11759         fi
11760 done
11761
11762 # Conditionalize the makefile for this target machine.
11763 tmake_file_=
11764 for f in ${tmake_file}
11765 do
11766         if test -f ${srcdir}/config/$f
11767         then
11768                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11769         fi
11770 done
11771 tmake_file="${tmake_file_}"
11772
11773 out_object_file=`basename $out_file .c`.o
11774 common_out_object_file=`basename $common_out_file .c`.o
11775
11776 tm_file_list="options.h"
11777 tm_include_list="options.h insn-constants.h"
11778 for f in $tm_file; do
11779   case $f in
11780     ./* )
11781        f=`echo $f | sed 's/^..//'`
11782        tm_file_list="${tm_file_list} $f"
11783        tm_include_list="${tm_include_list} $f"
11784        ;;
11785     defaults.h )
11786        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11787        tm_include_list="${tm_include_list} $f"
11788        ;;
11789     * )
11790        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11791        tm_include_list="${tm_include_list} config/$f"
11792        ;;
11793   esac
11794 done
11795
11796 libgcc_tm_file_list=
11797 libgcc_tm_include_list=
11798 for f in $libgcc_tm_file; do
11799   libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11800   libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11801 done
11802
11803 tm_p_file_list=
11804 tm_p_include_list=
11805 for f in $tm_p_file; do
11806   case $f in
11807     tm-preds.h )
11808        tm_p_file_list="${tm_p_file_list} $f"
11809        tm_p_include_list="${tm_p_include_list} $f"
11810        ;;
11811     * )
11812        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11813        tm_p_include_list="${tm_p_include_list} config/$f"
11814   esac
11815 done
11816
11817 xm_file_list=
11818 xm_include_list=
11819 for f in $xm_file; do
11820   case $f in
11821     ansidecl.h )
11822        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11823        xm_include_list="${xm_include_list} $f"
11824        ;;
11825     auto-host.h )
11826        xm_file_list="${xm_file_list} $f"
11827        xm_include_list="${xm_include_list} $f"
11828        ;;
11829     * )
11830        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11831        xm_include_list="${xm_include_list} config/$f"
11832        ;;
11833   esac
11834 done
11835
11836 host_xm_file_list=
11837 host_xm_include_list=
11838 for f in $host_xm_file; do
11839   case $f in
11840     ansidecl.h )
11841        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11842        host_xm_include_list="${host_xm_include_list} $f"
11843        ;;
11844     auto-host.h )
11845        host_xm_file_list="${host_xm_file_list} $f"
11846        host_xm_include_list="${host_xm_include_list} $f"
11847        ;;
11848     * )
11849        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11850        host_xm_include_list="${host_xm_include_list} config/$f"
11851        ;;
11852   esac
11853 done
11854
11855 build_xm_file_list=
11856 for f in $build_xm_file; do
11857   case $f in
11858     ansidecl.h )
11859        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11860        build_xm_include_list="${build_xm_include_list} $f"
11861        ;;
11862     auto-build.h | auto-host.h )
11863        build_xm_file_list="${build_xm_file_list} $f"
11864        build_xm_include_list="${build_xm_include_list} $f"
11865        ;;
11866     * )
11867        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11868        build_xm_include_list="${build_xm_include_list} config/$f"
11869        ;;
11870   esac
11871 done
11872
11873 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11874 # cross-compiler which does not use the native headers and libraries.
11875 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11876 CROSS=
11877 ALL=all.internal
11878 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11879
11880 if test "x$with_build_sysroot" != x; then
11881   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11882 else
11883   # This value is used, even on a native system, because
11884   # CROSS_SYSTEM_HEADER_DIR is just
11885   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11886   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11887 fi
11888
11889 if test x$host != x$target
11890 then
11891         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11892         ALL=all.cross
11893         SYSTEM_HEADER_DIR=$build_system_header_dir
11894         case "$host","$target" in
11895         # Darwin crosses can use the host system's libraries and headers,
11896         # because of the fat library support.  Of course, it must be the
11897         # same version of Darwin on both sides.  Allow the user to
11898         # just say --target=foo-darwin without a version number to mean
11899         # "the version on this system".
11900             *-*-darwin*,*-*-darwin*)
11901                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11902                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11903                 if test $hostos = $targetos -o $targetos = darwin ; then
11904                     CROSS=
11905                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11906                     with_headers=yes
11907                 fi
11908                 ;;
11909
11910             i?86-*-*,x86_64-*-* \
11911             | powerpc*-*-*,powerpc64*-*-*)
11912                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11913         esac
11914
11915         case $target in
11916                 *-*-mingw*)
11917                         if test "x$with_headers" = x; then
11918                                 with_headers=yes
11919                         fi
11920                         ;;
11921                 *)
11922                         ;;
11923         esac
11924 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11925         SYSTEM_HEADER_DIR=$build_system_header_dir
11926 fi
11927
11928 # If this is a cross-compiler that does not
11929 # have its own set of headers then define
11930 # inhibit_libc
11931
11932 # If this is using newlib, without having the headers available now,
11933 # then define inhibit_libc in LIBGCC2_CFLAGS.
11934 # This prevents libgcc2 from containing any code which requires libc
11935 # support.
11936 : ${inhibit_libc=false}
11937 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11938        test x$with_newlib = xyes ; } &&
11939      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11940        inhibit_libc=true
11941 fi
11942
11943
11944 # When building gcc with a cross-compiler, we need to adjust things so
11945 # that the generator programs are still built with the native compiler.
11946 # Also, we cannot run fixincludes.
11947
11948 # These are the normal (build=host) settings:
11949 CC_FOR_BUILD='$(CC)'
11950 BUILD_CFLAGS='$(ALL_CFLAGS)'
11951 BUILD_LDFLAGS='$(LDFLAGS)'
11952 STMP_FIXINC=stmp-fixinc
11953
11954 # And these apply if build != host, or we are generating coverage data
11955 if test x$build != x$host || test "x$coverage_flags" != x
11956 then
11957     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11958     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11959 fi
11960
11961 # Expand extra_headers to include complete path.
11962 # This substitutes for lots of t-* files.
11963 extra_headers_list=
11964 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11965 for file in ${extra_headers} ; do
11966   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11967 done
11968
11969 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11970 if test x"$use_gcc_tgmath" = xyes
11971 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11972 fi
11973
11974 # Define collect2 in Makefile.
11975 case $host_can_use_collect2 in
11976   no) collect2= ;;
11977   *) collect2='collect2$(exeext)' ;;
11978 esac
11979
11980
11981 # Add a definition of USE_COLLECT2 if system wants one.
11982 case $use_collect2 in
11983   no) use_collect2= ;;
11984   "") ;;
11985   *)
11986     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11987     xm_defines="${xm_defines} USE_COLLECT2"
11988     case $host_can_use_collect2 in
11989       no)
11990         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11991         ;;
11992     esac
11993     ;;
11994 esac
11995
11996
11997 cat >>confdefs.h <<_ACEOF
11998 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11999 _ACEOF
12000
12001
12002 # ---------------------------
12003 # Assembler & linker features
12004 # ---------------------------
12005
12006 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12007 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12008 # However when ld-new is first executed from the build tree, libtool will
12009 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12010 # to the build tree.  While doing this we need to use the previous-stage
12011 # linker, or we have an infinite loop.  The presence of a shell script as
12012 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12013 # the gcc/collect-ld script.  So we need to know how libtool works, or
12014 # exec-tool will fail.
12015
12016
12017 case `pwd` in
12018   *\ * | *\     *)
12019     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12020 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12021 esac
12022
12023
12024
12025 macro_version='2.2.7a'
12026 macro_revision='1.3134'
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040 ltmain="$ac_aux_dir/ltmain.sh"
12041
12042 # Backslashify metacharacters that are still active within
12043 # double-quoted strings.
12044 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12045
12046 # Same as above, but do not quote variable references.
12047 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12048
12049 # Sed substitution to delay expansion of an escaped shell variable in a
12050 # double_quote_subst'ed string.
12051 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12052
12053 # Sed substitution to delay expansion of an escaped single quote.
12054 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12055
12056 # Sed substitution to avoid accidental globbing in evaled expressions
12057 no_glob_subst='s/\*/\\\*/g'
12058
12059 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12060 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12061 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12062
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12064 $as_echo_n "checking how to print strings... " >&6; }
12065 # Test print first, because it will be a builtin if present.
12066 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12067    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12068   ECHO='print -r --'
12069 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12070   ECHO='printf %s\n'
12071 else
12072   # Use this function as a fallback that always works.
12073   func_fallback_echo ()
12074   {
12075     eval 'cat <<_LTECHO_EOF
12076 $1
12077 _LTECHO_EOF'
12078   }
12079   ECHO='func_fallback_echo'
12080 fi
12081
12082 # func_echo_all arg...
12083 # Invoke $ECHO with all args, space-separated.
12084 func_echo_all ()
12085 {
12086     $ECHO ""
12087 }
12088
12089 case "$ECHO" in
12090   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12091 $as_echo "printf" >&6; } ;;
12092   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12093 $as_echo "print -r" >&6; } ;;
12094   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12095 $as_echo "cat" >&6; } ;;
12096 esac
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12112 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12113 if test "${ac_cv_path_SED+set}" = set; then :
12114   $as_echo_n "(cached) " >&6
12115 else
12116             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12117      for ac_i in 1 2 3 4 5 6 7; do
12118        ac_script="$ac_script$as_nl$ac_script"
12119      done
12120      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12121      { ac_script=; unset ac_script;}
12122      if test -z "$SED"; then
12123   ac_path_SED_found=false
12124   # Loop through the user's path and test for each of PROGNAME-LIST
12125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12126 for as_dir in $PATH
12127 do
12128   IFS=$as_save_IFS
12129   test -z "$as_dir" && as_dir=.
12130     for ac_prog in sed gsed; do
12131     for ac_exec_ext in '' $ac_executable_extensions; do
12132       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12133       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12134 # Check for GNU ac_path_SED and select it if it is found.
12135   # Check for GNU $ac_path_SED
12136 case `"$ac_path_SED" --version 2>&1` in
12137 *GNU*)
12138   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12139 *)
12140   ac_count=0
12141   $as_echo_n 0123456789 >"conftest.in"
12142   while :
12143   do
12144     cat "conftest.in" "conftest.in" >"conftest.tmp"
12145     mv "conftest.tmp" "conftest.in"
12146     cp "conftest.in" "conftest.nl"
12147     $as_echo '' >> "conftest.nl"
12148     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12149     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12150     as_fn_arith $ac_count + 1 && ac_count=$as_val
12151     if test $ac_count -gt ${ac_path_SED_max-0}; then
12152       # Best one so far, save it but keep looking for a better one
12153       ac_cv_path_SED="$ac_path_SED"
12154       ac_path_SED_max=$ac_count
12155     fi
12156     # 10*(2^10) chars as input seems more than enough
12157     test $ac_count -gt 10 && break
12158   done
12159   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12160 esac
12161
12162       $ac_path_SED_found && break 3
12163     done
12164   done
12165   done
12166 IFS=$as_save_IFS
12167   if test -z "$ac_cv_path_SED"; then
12168     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12169   fi
12170 else
12171   ac_cv_path_SED=$SED
12172 fi
12173
12174 fi
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12176 $as_echo "$ac_cv_path_SED" >&6; }
12177  SED="$ac_cv_path_SED"
12178   rm -f conftest.sed
12179
12180 test -z "$SED" && SED=sed
12181 Xsed="$SED -e 1s/^X//"
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12194 $as_echo_n "checking for fgrep... " >&6; }
12195 if test "${ac_cv_path_FGREP+set}" = set; then :
12196   $as_echo_n "(cached) " >&6
12197 else
12198   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12199    then ac_cv_path_FGREP="$GREP -F"
12200    else
12201      if test -z "$FGREP"; then
12202   ac_path_FGREP_found=false
12203   # Loop through the user's path and test for each of PROGNAME-LIST
12204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12206 do
12207   IFS=$as_save_IFS
12208   test -z "$as_dir" && as_dir=.
12209     for ac_prog in fgrep; do
12210     for ac_exec_ext in '' $ac_executable_extensions; do
12211       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12212       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12213 # Check for GNU ac_path_FGREP and select it if it is found.
12214   # Check for GNU $ac_path_FGREP
12215 case `"$ac_path_FGREP" --version 2>&1` in
12216 *GNU*)
12217   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12218 *)
12219   ac_count=0
12220   $as_echo_n 0123456789 >"conftest.in"
12221   while :
12222   do
12223     cat "conftest.in" "conftest.in" >"conftest.tmp"
12224     mv "conftest.tmp" "conftest.in"
12225     cp "conftest.in" "conftest.nl"
12226     $as_echo 'FGREP' >> "conftest.nl"
12227     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12228     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12229     as_fn_arith $ac_count + 1 && ac_count=$as_val
12230     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12231       # Best one so far, save it but keep looking for a better one
12232       ac_cv_path_FGREP="$ac_path_FGREP"
12233       ac_path_FGREP_max=$ac_count
12234     fi
12235     # 10*(2^10) chars as input seems more than enough
12236     test $ac_count -gt 10 && break
12237   done
12238   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12239 esac
12240
12241       $ac_path_FGREP_found && break 3
12242     done
12243   done
12244   done
12245 IFS=$as_save_IFS
12246   if test -z "$ac_cv_path_FGREP"; then
12247     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12248   fi
12249 else
12250   ac_cv_path_FGREP=$FGREP
12251 fi
12252
12253    fi
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12256 $as_echo "$ac_cv_path_FGREP" >&6; }
12257  FGREP="$ac_cv_path_FGREP"
12258
12259
12260 test -z "$GREP" && GREP=grep
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280 # Check whether --with-gnu-ld was given.
12281 if test "${with_gnu_ld+set}" = set; then :
12282   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12283 else
12284   with_gnu_ld=no
12285 fi
12286
12287 ac_prog=ld
12288 if test "$GCC" = yes; then
12289   # Check if gcc -print-prog-name=ld gives a path.
12290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12291 $as_echo_n "checking for ld used by $CC... " >&6; }
12292   case $host in
12293   *-*-mingw*)
12294     # gcc leaves a trailing carriage return which upsets mingw
12295     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12296   *)
12297     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12298   esac
12299   case $ac_prog in
12300     # Accept absolute paths.
12301     [\\/]* | ?:[\\/]*)
12302       re_direlt='/[^/][^/]*/\.\./'
12303       # Canonicalize the pathname of ld
12304       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12305       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12306         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12307       done
12308       test -z "$LD" && LD="$ac_prog"
12309       ;;
12310   "")
12311     # If it fails, then pretend we aren't using GCC.
12312     ac_prog=ld
12313     ;;
12314   *)
12315     # If it is relative, then search for the first ld in PATH.
12316     with_gnu_ld=unknown
12317     ;;
12318   esac
12319 elif test "$with_gnu_ld" = yes; then
12320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12321 $as_echo_n "checking for GNU ld... " >&6; }
12322 else
12323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12324 $as_echo_n "checking for non-GNU ld... " >&6; }
12325 fi
12326 if test "${lt_cv_path_LD+set}" = set; then :
12327   $as_echo_n "(cached) " >&6
12328 else
12329   if test -z "$LD"; then
12330   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12331   for ac_dir in $PATH; do
12332     IFS="$lt_save_ifs"
12333     test -z "$ac_dir" && ac_dir=.
12334     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12335       lt_cv_path_LD="$ac_dir/$ac_prog"
12336       # Check to see if the program is GNU ld.  I'd rather use --version,
12337       # but apparently some variants of GNU ld only accept -v.
12338       # Break only if it was the GNU/non-GNU ld that we prefer.
12339       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12340       *GNU* | *'with BFD'*)
12341         test "$with_gnu_ld" != no && break
12342         ;;
12343       *)
12344         test "$with_gnu_ld" != yes && break
12345         ;;
12346       esac
12347     fi
12348   done
12349   IFS="$lt_save_ifs"
12350 else
12351   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12352 fi
12353 fi
12354
12355 LD="$lt_cv_path_LD"
12356 if test -n "$LD"; then
12357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12358 $as_echo "$LD" >&6; }
12359 else
12360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12362 fi
12363 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12365 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12366 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12367   $as_echo_n "(cached) " >&6
12368 else
12369   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12370 case `$LD -v 2>&1 </dev/null` in
12371 *GNU* | *'with BFD'*)
12372   lt_cv_prog_gnu_ld=yes
12373   ;;
12374 *)
12375   lt_cv_prog_gnu_ld=no
12376   ;;
12377 esac
12378 fi
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12380 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12381 with_gnu_ld=$lt_cv_prog_gnu_ld
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12392 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12393 if test "${lt_cv_path_NM+set}" = set; then :
12394   $as_echo_n "(cached) " >&6
12395 else
12396   if test -n "$NM"; then
12397   # Let the user override the test.
12398   lt_cv_path_NM="$NM"
12399 else
12400   lt_nm_to_check="${ac_tool_prefix}nm"
12401   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12402     lt_nm_to_check="$lt_nm_to_check nm"
12403   fi
12404   for lt_tmp_nm in $lt_nm_to_check; do
12405     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12406     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12407       IFS="$lt_save_ifs"
12408       test -z "$ac_dir" && ac_dir=.
12409       tmp_nm="$ac_dir/$lt_tmp_nm"
12410       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12411         # Check to see if the nm accepts a BSD-compat flag.
12412         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12413         #   nm: unknown option "B" ignored
12414         # Tru64's nm complains that /dev/null is an invalid object file
12415         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12416         */dev/null* | *'Invalid file or object type'*)
12417           lt_cv_path_NM="$tmp_nm -B"
12418           break
12419           ;;
12420         *)
12421           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12422           */dev/null*)
12423             lt_cv_path_NM="$tmp_nm -p"
12424             break
12425             ;;
12426           *)
12427             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12428             continue # so that we can try to find one that supports BSD flags
12429             ;;
12430           esac
12431           ;;
12432         esac
12433       fi
12434     done
12435     IFS="$lt_save_ifs"
12436   done
12437   : ${lt_cv_path_NM=no}
12438 fi
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12441 $as_echo "$lt_cv_path_NM" >&6; }
12442 if test "$lt_cv_path_NM" != "no"; then
12443   NM="$lt_cv_path_NM"
12444 else
12445   # Didn't find any BSD compatible name lister, look for dumpbin.
12446   if test -n "$DUMPBIN"; then :
12447     # Let the user override the test.
12448   else
12449     if test -n "$ac_tool_prefix"; then
12450   for ac_prog in dumpbin "link -dump"
12451   do
12452     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455 $as_echo_n "checking for $ac_word... " >&6; }
12456 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12457   $as_echo_n "(cached) " >&6
12458 else
12459   if test -n "$DUMPBIN"; then
12460   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12461 else
12462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12464 do
12465   IFS=$as_save_IFS
12466   test -z "$as_dir" && as_dir=.
12467     for ac_exec_ext in '' $ac_executable_extensions; do
12468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12469     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12471     break 2
12472   fi
12473 done
12474   done
12475 IFS=$as_save_IFS
12476
12477 fi
12478 fi
12479 DUMPBIN=$ac_cv_prog_DUMPBIN
12480 if test -n "$DUMPBIN"; then
12481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12482 $as_echo "$DUMPBIN" >&6; }
12483 else
12484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12486 fi
12487
12488
12489     test -n "$DUMPBIN" && break
12490   done
12491 fi
12492 if test -z "$DUMPBIN"; then
12493   ac_ct_DUMPBIN=$DUMPBIN
12494   for ac_prog in dumpbin "link -dump"
12495 do
12496   # Extract the first word of "$ac_prog", so it can be a program name with args.
12497 set dummy $ac_prog; ac_word=$2
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499 $as_echo_n "checking for $ac_word... " >&6; }
12500 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12501   $as_echo_n "(cached) " >&6
12502 else
12503   if test -n "$ac_ct_DUMPBIN"; then
12504   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12505 else
12506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507 for as_dir in $PATH
12508 do
12509   IFS=$as_save_IFS
12510   test -z "$as_dir" && as_dir=.
12511     for ac_exec_ext in '' $ac_executable_extensions; do
12512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12513     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12515     break 2
12516   fi
12517 done
12518   done
12519 IFS=$as_save_IFS
12520
12521 fi
12522 fi
12523 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12524 if test -n "$ac_ct_DUMPBIN"; then
12525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12526 $as_echo "$ac_ct_DUMPBIN" >&6; }
12527 else
12528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12530 fi
12531
12532
12533   test -n "$ac_ct_DUMPBIN" && break
12534 done
12535
12536   if test "x$ac_ct_DUMPBIN" = x; then
12537     DUMPBIN=":"
12538   else
12539     case $cross_compiling:$ac_tool_warned in
12540 yes:)
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12543 ac_tool_warned=yes ;;
12544 esac
12545     DUMPBIN=$ac_ct_DUMPBIN
12546   fi
12547 fi
12548
12549     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12550     *COFF*)
12551       DUMPBIN="$DUMPBIN -symbols"
12552       ;;
12553     *)
12554       DUMPBIN=:
12555       ;;
12556     esac
12557   fi
12558
12559   if test "$DUMPBIN" != ":"; then
12560     NM="$DUMPBIN"
12561   fi
12562 fi
12563 test -z "$NM" && NM=nm
12564
12565
12566
12567
12568
12569
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12571 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12572 if test "${lt_cv_nm_interface+set}" = set; then :
12573   $as_echo_n "(cached) " >&6
12574 else
12575   lt_cv_nm_interface="BSD nm"
12576   echo "int some_variable = 0;" > conftest.$ac_ext
12577   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12578   (eval "$ac_compile" 2>conftest.err)
12579   cat conftest.err >&5
12580   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12581   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12582   cat conftest.err >&5
12583   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12584   cat conftest.out >&5
12585   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12586     lt_cv_nm_interface="MS dumpbin"
12587   fi
12588   rm -f conftest*
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12591 $as_echo "$lt_cv_nm_interface" >&6; }
12592
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12594 $as_echo_n "checking whether ln -s works... " >&6; }
12595 LN_S=$as_ln_s
12596 if test "$LN_S" = "ln -s"; then
12597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12598 $as_echo "yes" >&6; }
12599 else
12600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12601 $as_echo "no, using $LN_S" >&6; }
12602 fi
12603
12604 # find the maximum length of command line arguments
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12606 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12607 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12608   $as_echo_n "(cached) " >&6
12609 else
12610     i=0
12611   teststring="ABCD"
12612
12613   case $build_os in
12614   msdosdjgpp*)
12615     # On DJGPP, this test can blow up pretty badly due to problems in libc
12616     # (any single argument exceeding 2000 bytes causes a buffer overrun
12617     # during glob expansion).  Even if it were fixed, the result of this
12618     # check would be larger than it should be.
12619     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12620     ;;
12621
12622   gnu*)
12623     # Under GNU Hurd, this test is not required because there is
12624     # no limit to the length of command line arguments.
12625     # Libtool will interpret -1 as no limit whatsoever
12626     lt_cv_sys_max_cmd_len=-1;
12627     ;;
12628
12629   cygwin* | mingw* | cegcc*)
12630     # On Win9x/ME, this test blows up -- it succeeds, but takes
12631     # about 5 minutes as the teststring grows exponentially.
12632     # Worse, since 9x/ME are not pre-emptively multitasking,
12633     # you end up with a "frozen" computer, even though with patience
12634     # the test eventually succeeds (with a max line length of 256k).
12635     # Instead, let's just punt: use the minimum linelength reported by
12636     # all of the supported platforms: 8192 (on NT/2K/XP).
12637     lt_cv_sys_max_cmd_len=8192;
12638     ;;
12639
12640   mint*)
12641     # On MiNT this can take a long time and run out of memory.
12642     lt_cv_sys_max_cmd_len=8192;
12643     ;;
12644
12645   amigaos*)
12646     # On AmigaOS with pdksh, this test takes hours, literally.
12647     # So we just punt and use a minimum line length of 8192.
12648     lt_cv_sys_max_cmd_len=8192;
12649     ;;
12650
12651   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12652     # This has been around since 386BSD, at least.  Likely further.
12653     if test -x /sbin/sysctl; then
12654       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12655     elif test -x /usr/sbin/sysctl; then
12656       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12657     else
12658       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12659     fi
12660     # And add a safety zone
12661     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12662     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12663     ;;
12664
12665   interix*)
12666     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12667     lt_cv_sys_max_cmd_len=196608
12668     ;;
12669
12670   osf*)
12671     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12672     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12673     # nice to cause kernel panics so lets avoid the loop below.
12674     # First set a reasonable default.
12675     lt_cv_sys_max_cmd_len=16384
12676     #
12677     if test -x /sbin/sysconfig; then
12678       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12679         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12680       esac
12681     fi
12682     ;;
12683   sco3.2v5*)
12684     lt_cv_sys_max_cmd_len=102400
12685     ;;
12686   sysv5* | sco5v6* | sysv4.2uw2*)
12687     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12688     if test -n "$kargmax"; then
12689       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12690     else
12691       lt_cv_sys_max_cmd_len=32768
12692     fi
12693     ;;
12694   *)
12695     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12696     if test -n "$lt_cv_sys_max_cmd_len"; then
12697       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12698       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12699     else
12700       # Make teststring a little bigger before we do anything with it.
12701       # a 1K string should be a reasonable start.
12702       for i in 1 2 3 4 5 6 7 8 ; do
12703         teststring=$teststring$teststring
12704       done
12705       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12706       # If test is not a shell built-in, we'll probably end up computing a
12707       # maximum length that is only half of the actual maximum length, but
12708       # we can't tell.
12709       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12710                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12711               test $i != 17 # 1/2 MB should be enough
12712       do
12713         i=`expr $i + 1`
12714         teststring=$teststring$teststring
12715       done
12716       # Only check the string length outside the loop.
12717       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12718       teststring=
12719       # Add a significant safety factor because C++ compilers can tack on
12720       # massive amounts of additional arguments before passing them to the
12721       # linker.  It appears as though 1/2 is a usable value.
12722       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12723     fi
12724     ;;
12725   esac
12726
12727 fi
12728
12729 if test -n $lt_cv_sys_max_cmd_len ; then
12730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12731 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12732 else
12733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12734 $as_echo "none" >&6; }
12735 fi
12736 max_cmd_len=$lt_cv_sys_max_cmd_len
12737
12738
12739
12740
12741
12742
12743 : ${CP="cp -f"}
12744 : ${MV="mv -f"}
12745 : ${RM="rm -f"}
12746
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12748 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12749 # Try some XSI features
12750 xsi_shell=no
12751 ( _lt_dummy="a/b/c"
12752   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12753       = c,a/b,, \
12754     && eval 'test $(( 1 + 1 )) -eq 2 \
12755     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12756   && xsi_shell=yes
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12758 $as_echo "$xsi_shell" >&6; }
12759
12760
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12762 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12763 lt_shell_append=no
12764 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12765     >/dev/null 2>&1 \
12766   && lt_shell_append=yes
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12768 $as_echo "$lt_shell_append" >&6; }
12769
12770
12771 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12772   lt_unset=unset
12773 else
12774   lt_unset=false
12775 fi
12776
12777
12778
12779
12780
12781 # test EBCDIC or ASCII
12782 case `echo X|tr X '\101'` in
12783  A) # ASCII based system
12784     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12785   lt_SP2NL='tr \040 \012'
12786   lt_NL2SP='tr \015\012 \040\040'
12787   ;;
12788  *) # EBCDIC based system
12789   lt_SP2NL='tr \100 \n'
12790   lt_NL2SP='tr \r\n \100\100'
12791   ;;
12792 esac
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12803 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12804 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12805   $as_echo_n "(cached) " >&6
12806 else
12807   lt_cv_ld_reload_flag='-r'
12808 fi
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12810 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12811 reload_flag=$lt_cv_ld_reload_flag
12812 case $reload_flag in
12813 "" | " "*) ;;
12814 *) reload_flag=" $reload_flag" ;;
12815 esac
12816 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12817 case $host_os in
12818   darwin*)
12819     if test "$GCC" = yes; then
12820       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12821     else
12822       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12823     fi
12824     ;;
12825 esac
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835 if test -n "$ac_tool_prefix"; then
12836   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12837 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12841   $as_echo_n "(cached) " >&6
12842 else
12843   if test -n "$OBJDUMP"; then
12844   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12845 else
12846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847 for as_dir in $PATH
12848 do
12849   IFS=$as_save_IFS
12850   test -z "$as_dir" && as_dir=.
12851     for ac_exec_ext in '' $ac_executable_extensions; do
12852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12853     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12855     break 2
12856   fi
12857 done
12858   done
12859 IFS=$as_save_IFS
12860
12861 fi
12862 fi
12863 OBJDUMP=$ac_cv_prog_OBJDUMP
12864 if test -n "$OBJDUMP"; then
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12866 $as_echo "$OBJDUMP" >&6; }
12867 else
12868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 $as_echo "no" >&6; }
12870 fi
12871
12872
12873 fi
12874 if test -z "$ac_cv_prog_OBJDUMP"; then
12875   ac_ct_OBJDUMP=$OBJDUMP
12876   # Extract the first word of "objdump", so it can be a program name with args.
12877 set dummy objdump; ac_word=$2
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879 $as_echo_n "checking for $ac_word... " >&6; }
12880 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12881   $as_echo_n "(cached) " >&6
12882 else
12883   if test -n "$ac_ct_OBJDUMP"; then
12884   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12885 else
12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $PATH
12888 do
12889   IFS=$as_save_IFS
12890   test -z "$as_dir" && as_dir=.
12891     for ac_exec_ext in '' $ac_executable_extensions; do
12892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12893     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12895     break 2
12896   fi
12897 done
12898   done
12899 IFS=$as_save_IFS
12900
12901 fi
12902 fi
12903 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12904 if test -n "$ac_ct_OBJDUMP"; then
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12906 $as_echo "$ac_ct_OBJDUMP" >&6; }
12907 else
12908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 $as_echo "no" >&6; }
12910 fi
12911
12912   if test "x$ac_ct_OBJDUMP" = x; then
12913     OBJDUMP="false"
12914   else
12915     case $cross_compiling:$ac_tool_warned in
12916 yes:)
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12919 ac_tool_warned=yes ;;
12920 esac
12921     OBJDUMP=$ac_ct_OBJDUMP
12922   fi
12923 else
12924   OBJDUMP="$ac_cv_prog_OBJDUMP"
12925 fi
12926
12927 test -z "$OBJDUMP" && OBJDUMP=objdump
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12938 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12939 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12940   $as_echo_n "(cached) " >&6
12941 else
12942   lt_cv_file_magic_cmd='$MAGIC_CMD'
12943 lt_cv_file_magic_test_file=
12944 lt_cv_deplibs_check_method='unknown'
12945 # Need to set the preceding variable on all platforms that support
12946 # interlibrary dependencies.
12947 # 'none' -- dependencies not supported.
12948 # `unknown' -- same as none, but documents that we really don't know.
12949 # 'pass_all' -- all dependencies passed with no checks.
12950 # 'test_compile' -- check by making test program.
12951 # 'file_magic [[regex]]' -- check by looking for files in library path
12952 # which responds to the $file_magic_cmd with a given extended regex.
12953 # If you have `file' or equivalent on your system and you're not sure
12954 # whether `pass_all' will *always* work, you probably want this one.
12955
12956 case $host_os in
12957 aix[4-9]*)
12958   lt_cv_deplibs_check_method=pass_all
12959   ;;
12960
12961 beos*)
12962   lt_cv_deplibs_check_method=pass_all
12963   ;;
12964
12965 bsdi[45]*)
12966   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12967   lt_cv_file_magic_cmd='/usr/bin/file -L'
12968   lt_cv_file_magic_test_file=/shlib/libc.so
12969   ;;
12970
12971 cygwin*)
12972   # func_win32_libid is a shell function defined in ltmain.sh
12973   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12974   lt_cv_file_magic_cmd='func_win32_libid'
12975   ;;
12976
12977 mingw* | pw32*)
12978   # Base MSYS/MinGW do not provide the 'file' command needed by
12979   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12980   # unless we find 'file', for example because we are cross-compiling.
12981   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12982   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12983     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12984     lt_cv_file_magic_cmd='func_win32_libid'
12985   else
12986     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12987     lt_cv_file_magic_cmd='$OBJDUMP -f'
12988   fi
12989   ;;
12990
12991 cegcc*)
12992   # use the weaker test based on 'objdump'. See mingw*.
12993   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12994   lt_cv_file_magic_cmd='$OBJDUMP -f'
12995   ;;
12996
12997 darwin* | rhapsody*)
12998   lt_cv_deplibs_check_method=pass_all
12999   ;;
13000
13001 freebsd* | dragonfly*)
13002   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13003     case $host_cpu in
13004     i*86 )
13005       # Not sure whether the presence of OpenBSD here was a mistake.
13006       # Let's accept both of them until this is cleared up.
13007       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13008       lt_cv_file_magic_cmd=/usr/bin/file
13009       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13010       ;;
13011     esac
13012   else
13013     lt_cv_deplibs_check_method=pass_all
13014   fi
13015   ;;
13016
13017 gnu*)
13018   lt_cv_deplibs_check_method=pass_all
13019   ;;
13020
13021 haiku*)
13022   lt_cv_deplibs_check_method=pass_all
13023   ;;
13024
13025 hpux10.20* | hpux11*)
13026   lt_cv_file_magic_cmd=/usr/bin/file
13027   case $host_cpu in
13028   ia64*)
13029     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13030     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13031     ;;
13032   hppa*64*)
13033     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]'
13034     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13035     ;;
13036   *)
13037     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13038     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13039     ;;
13040   esac
13041   ;;
13042
13043 interix[3-9]*)
13044   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13045   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13046   ;;
13047
13048 irix5* | irix6* | nonstopux*)
13049   case $LD in
13050   *-32|*"-32 ") libmagic=32-bit;;
13051   *-n32|*"-n32 ") libmagic=N32;;
13052   *-64|*"-64 ") libmagic=64-bit;;
13053   *) libmagic=never-match;;
13054   esac
13055   lt_cv_deplibs_check_method=pass_all
13056   ;;
13057
13058 # This must be Linux ELF.
13059 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13060   lt_cv_deplibs_check_method=pass_all
13061   ;;
13062
13063 netbsd*)
13064   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13065     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13066   else
13067     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13068   fi
13069   ;;
13070
13071 newos6*)
13072   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13073   lt_cv_file_magic_cmd=/usr/bin/file
13074   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13075   ;;
13076
13077 *nto* | *qnx*)
13078   lt_cv_deplibs_check_method=pass_all
13079   ;;
13080
13081 openbsd*)
13082   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13083     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13084   else
13085     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13086   fi
13087   ;;
13088
13089 osf3* | osf4* | osf5*)
13090   lt_cv_deplibs_check_method=pass_all
13091   ;;
13092
13093 rdos*)
13094   lt_cv_deplibs_check_method=pass_all
13095   ;;
13096
13097 solaris*)
13098   lt_cv_deplibs_check_method=pass_all
13099   ;;
13100
13101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13102   lt_cv_deplibs_check_method=pass_all
13103   ;;
13104
13105 sysv4 | sysv4.3*)
13106   case $host_vendor in
13107   motorola)
13108     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]'
13109     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13110     ;;
13111   ncr)
13112     lt_cv_deplibs_check_method=pass_all
13113     ;;
13114   sequent)
13115     lt_cv_file_magic_cmd='/bin/file'
13116     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13117     ;;
13118   sni)
13119     lt_cv_file_magic_cmd='/bin/file'
13120     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13121     lt_cv_file_magic_test_file=/lib/libc.so
13122     ;;
13123   siemens)
13124     lt_cv_deplibs_check_method=pass_all
13125     ;;
13126   pc)
13127     lt_cv_deplibs_check_method=pass_all
13128     ;;
13129   esac
13130   ;;
13131
13132 tpf*)
13133   lt_cv_deplibs_check_method=pass_all
13134   ;;
13135 esac
13136
13137 fi
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13139 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13140 file_magic_cmd=$lt_cv_file_magic_cmd
13141 deplibs_check_method=$lt_cv_deplibs_check_method
13142 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155 if test -n "$ac_tool_prefix"; then
13156   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13157 set dummy ${ac_tool_prefix}ar; ac_word=$2
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159 $as_echo_n "checking for $ac_word... " >&6; }
13160 if test "${ac_cv_prog_AR+set}" = set; then :
13161   $as_echo_n "(cached) " >&6
13162 else
13163   if test -n "$AR"; then
13164   ac_cv_prog_AR="$AR" # Let the user override the test.
13165 else
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13168 do
13169   IFS=$as_save_IFS
13170   test -z "$as_dir" && as_dir=.
13171     for ac_exec_ext in '' $ac_executable_extensions; do
13172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13173     ac_cv_prog_AR="${ac_tool_prefix}ar"
13174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175     break 2
13176   fi
13177 done
13178   done
13179 IFS=$as_save_IFS
13180
13181 fi
13182 fi
13183 AR=$ac_cv_prog_AR
13184 if test -n "$AR"; then
13185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13186 $as_echo "$AR" >&6; }
13187 else
13188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13190 fi
13191
13192
13193 fi
13194 if test -z "$ac_cv_prog_AR"; then
13195   ac_ct_AR=$AR
13196   # Extract the first word of "ar", so it can be a program name with args.
13197 set dummy ar; ac_word=$2
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199 $as_echo_n "checking for $ac_word... " >&6; }
13200 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13201   $as_echo_n "(cached) " >&6
13202 else
13203   if test -n "$ac_ct_AR"; then
13204   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13205 else
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13208 do
13209   IFS=$as_save_IFS
13210   test -z "$as_dir" && as_dir=.
13211     for ac_exec_ext in '' $ac_executable_extensions; do
13212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13213     ac_cv_prog_ac_ct_AR="ar"
13214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13215     break 2
13216   fi
13217 done
13218   done
13219 IFS=$as_save_IFS
13220
13221 fi
13222 fi
13223 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13224 if test -n "$ac_ct_AR"; then
13225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13226 $as_echo "$ac_ct_AR" >&6; }
13227 else
13228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13230 fi
13231
13232   if test "x$ac_ct_AR" = x; then
13233     AR="false"
13234   else
13235     case $cross_compiling:$ac_tool_warned in
13236 yes:)
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13239 ac_tool_warned=yes ;;
13240 esac
13241     AR=$ac_ct_AR
13242   fi
13243 else
13244   AR="$ac_cv_prog_AR"
13245 fi
13246
13247 test -z "$AR" && AR=ar
13248 test -z "$AR_FLAGS" && AR_FLAGS=cru
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260 if test -n "$ac_tool_prefix"; then
13261   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13262 set dummy ${ac_tool_prefix}strip; ac_word=$2
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 $as_echo_n "checking for $ac_word... " >&6; }
13265 if test "${ac_cv_prog_STRIP+set}" = set; then :
13266   $as_echo_n "(cached) " >&6
13267 else
13268   if test -n "$STRIP"; then
13269   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13270 else
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13273 do
13274   IFS=$as_save_IFS
13275   test -z "$as_dir" && as_dir=.
13276     for ac_exec_ext in '' $ac_executable_extensions; do
13277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13278     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280     break 2
13281   fi
13282 done
13283   done
13284 IFS=$as_save_IFS
13285
13286 fi
13287 fi
13288 STRIP=$ac_cv_prog_STRIP
13289 if test -n "$STRIP"; then
13290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13291 $as_echo "$STRIP" >&6; }
13292 else
13293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13295 fi
13296
13297
13298 fi
13299 if test -z "$ac_cv_prog_STRIP"; then
13300   ac_ct_STRIP=$STRIP
13301   # Extract the first word of "strip", so it can be a program name with args.
13302 set dummy strip; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13306   $as_echo_n "(cached) " >&6
13307 else
13308   if test -n "$ac_ct_STRIP"; then
13309   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13310 else
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13313 do
13314   IFS=$as_save_IFS
13315   test -z "$as_dir" && as_dir=.
13316     for ac_exec_ext in '' $ac_executable_extensions; do
13317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13318     ac_cv_prog_ac_ct_STRIP="strip"
13319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320     break 2
13321   fi
13322 done
13323   done
13324 IFS=$as_save_IFS
13325
13326 fi
13327 fi
13328 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13329 if test -n "$ac_ct_STRIP"; then
13330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13331 $as_echo "$ac_ct_STRIP" >&6; }
13332 else
13333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13335 fi
13336
13337   if test "x$ac_ct_STRIP" = x; then
13338     STRIP=":"
13339   else
13340     case $cross_compiling:$ac_tool_warned in
13341 yes:)
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13344 ac_tool_warned=yes ;;
13345 esac
13346     STRIP=$ac_ct_STRIP
13347   fi
13348 else
13349   STRIP="$ac_cv_prog_STRIP"
13350 fi
13351
13352 test -z "$STRIP" && STRIP=:
13353
13354
13355
13356
13357
13358
13359 if test -n "$ac_tool_prefix"; then
13360   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363 $as_echo_n "checking for $ac_word... " >&6; }
13364 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13365   $as_echo_n "(cached) " >&6
13366 else
13367   if test -n "$RANLIB"; then
13368   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13369 else
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13372 do
13373   IFS=$as_save_IFS
13374   test -z "$as_dir" && as_dir=.
13375     for ac_exec_ext in '' $ac_executable_extensions; do
13376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13377     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13379     break 2
13380   fi
13381 done
13382   done
13383 IFS=$as_save_IFS
13384
13385 fi
13386 fi
13387 RANLIB=$ac_cv_prog_RANLIB
13388 if test -n "$RANLIB"; then
13389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13390 $as_echo "$RANLIB" >&6; }
13391 else
13392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393 $as_echo "no" >&6; }
13394 fi
13395
13396
13397 fi
13398 if test -z "$ac_cv_prog_RANLIB"; then
13399   ac_ct_RANLIB=$RANLIB
13400   # Extract the first word of "ranlib", so it can be a program name with args.
13401 set dummy ranlib; ac_word=$2
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13403 $as_echo_n "checking for $ac_word... " >&6; }
13404 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13405   $as_echo_n "(cached) " >&6
13406 else
13407   if test -n "$ac_ct_RANLIB"; then
13408   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13409 else
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411 for as_dir in $PATH
13412 do
13413   IFS=$as_save_IFS
13414   test -z "$as_dir" && as_dir=.
13415     for ac_exec_ext in '' $ac_executable_extensions; do
13416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13417     ac_cv_prog_ac_ct_RANLIB="ranlib"
13418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13419     break 2
13420   fi
13421 done
13422   done
13423 IFS=$as_save_IFS
13424
13425 fi
13426 fi
13427 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13428 if test -n "$ac_ct_RANLIB"; then
13429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13430 $as_echo "$ac_ct_RANLIB" >&6; }
13431 else
13432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13434 fi
13435
13436   if test "x$ac_ct_RANLIB" = x; then
13437     RANLIB=":"
13438   else
13439     case $cross_compiling:$ac_tool_warned in
13440 yes:)
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13443 ac_tool_warned=yes ;;
13444 esac
13445     RANLIB=$ac_ct_RANLIB
13446   fi
13447 else
13448   RANLIB="$ac_cv_prog_RANLIB"
13449 fi
13450
13451 test -z "$RANLIB" && RANLIB=:
13452
13453
13454
13455
13456
13457
13458 # Determine commands to create old-style static archives.
13459 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13460 old_postinstall_cmds='chmod 644 $oldlib'
13461 old_postuninstall_cmds=
13462
13463 if test -n "$RANLIB"; then
13464   case $host_os in
13465   openbsd*)
13466     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13467     ;;
13468   *)
13469     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13470     ;;
13471   esac
13472   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13473 fi
13474
13475 case $host_os in
13476   darwin*)
13477     lock_old_archive_extraction=yes ;;
13478   *)
13479     lock_old_archive_extraction=no ;;
13480 esac
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520 # If no C compiler was specified, use CC.
13521 LTCC=${LTCC-"$CC"}
13522
13523 # If no C compiler flags were specified, use CFLAGS.
13524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13525
13526 # Allow CC to be a program name with arguments.
13527 compiler=$CC
13528
13529
13530 # Check for command to grab the raw symbol name followed by C symbol from nm.
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13532 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13533 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13534   $as_echo_n "(cached) " >&6
13535 else
13536
13537 # These are sane defaults that work on at least a few old systems.
13538 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13539
13540 # Character class describing NM global symbol codes.
13541 symcode='[BCDEGRST]'
13542
13543 # Regexp to match symbols that can be accessed directly from C.
13544 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13545
13546 # Define system-specific variables.
13547 case $host_os in
13548 aix*)
13549   symcode='[BCDT]'
13550   ;;
13551 cygwin* | mingw* | pw32* | cegcc*)
13552   symcode='[ABCDGISTW]'
13553   ;;
13554 hpux*)
13555   if test "$host_cpu" = ia64; then
13556     symcode='[ABCDEGRST]'
13557   fi
13558   ;;
13559 irix* | nonstopux*)
13560   symcode='[BCDEGRST]'
13561   ;;
13562 osf*)
13563   symcode='[BCDEGQRST]'
13564   ;;
13565 solaris*)
13566   symcode='[BDRT]'
13567   ;;
13568 sco3.2v5*)
13569   symcode='[DT]'
13570   ;;
13571 sysv4.2uw2*)
13572   symcode='[DT]'
13573   ;;
13574 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13575   symcode='[ABDT]'
13576   ;;
13577 sysv4)
13578   symcode='[DFNSTU]'
13579   ;;
13580 esac
13581
13582 # If we're using GNU nm, then use its standard symbol codes.
13583 case `$NM -V 2>&1` in
13584 *GNU* | *'with BFD'*)
13585   symcode='[ABCDGIRSTW]' ;;
13586 esac
13587
13588 # Transform an extracted symbol line into a proper C declaration.
13589 # Some systems (esp. on ia64) link data and code symbols differently,
13590 # so use this general approach.
13591 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13592
13593 # Transform an extracted symbol line into symbol name and symbol address
13594 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13595 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'"
13596
13597 # Handle CRLF in mingw tool chain
13598 opt_cr=
13599 case $build_os in
13600 mingw*)
13601   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13602   ;;
13603 esac
13604
13605 # Try without a prefix underscore, then with it.
13606 for ac_symprfx in "" "_"; do
13607
13608   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13609   symxfrm="\\1 $ac_symprfx\\2 \\2"
13610
13611   # Write the raw and C identifiers.
13612   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13613     # Fake it for dumpbin and say T for any non-static function
13614     # and D for any global variable.
13615     # Also find C++ and __fastcall symbols from MSVC++,
13616     # which start with @ or ?.
13617     lt_cv_sys_global_symbol_pipe="$AWK '"\
13618 "     {last_section=section; section=\$ 3};"\
13619 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13620 "     \$ 0!~/External *\|/{next};"\
13621 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13622 "     {if(hide[section]) next};"\
13623 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13624 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13625 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13626 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13627 "     ' prfx=^$ac_symprfx"
13628   else
13629     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13630   fi
13631
13632   # Check to see that the pipe works correctly.
13633   pipe_works=no
13634
13635   rm -f conftest*
13636   cat > conftest.$ac_ext <<_LT_EOF
13637 #ifdef __cplusplus
13638 extern "C" {
13639 #endif
13640 char nm_test_var;
13641 void nm_test_func(void);
13642 void nm_test_func(void){}
13643 #ifdef __cplusplus
13644 }
13645 #endif
13646 int main(){nm_test_var='a';nm_test_func();return(0);}
13647 _LT_EOF
13648
13649   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13650   (eval $ac_compile) 2>&5
13651   ac_status=$?
13652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13653   test $ac_status = 0; }; then
13654     # Now try to grab the symbols.
13655     nlist=conftest.nm
13656     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13657   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13658   ac_status=$?
13659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13660   test $ac_status = 0; } && test -s "$nlist"; then
13661       # Try sorting and uniquifying the output.
13662       if sort "$nlist" | uniq > "$nlist"T; then
13663         mv -f "$nlist"T "$nlist"
13664       else
13665         rm -f "$nlist"T
13666       fi
13667
13668       # Make sure that we snagged all the symbols we need.
13669       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13670         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13671           cat <<_LT_EOF > conftest.$ac_ext
13672 #ifdef __cplusplus
13673 extern "C" {
13674 #endif
13675
13676 _LT_EOF
13677           # Now generate the symbol file.
13678           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13679
13680           cat <<_LT_EOF >> conftest.$ac_ext
13681
13682 /* The mapping between symbol names and symbols.  */
13683 const struct {
13684   const char *name;
13685   void       *address;
13686 }
13687 lt__PROGRAM__LTX_preloaded_symbols[] =
13688 {
13689   { "@PROGRAM@", (void *) 0 },
13690 _LT_EOF
13691           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13692           cat <<\_LT_EOF >> conftest.$ac_ext
13693   {0, (void *) 0}
13694 };
13695
13696 /* This works around a problem in FreeBSD linker */
13697 #ifdef FREEBSD_WORKAROUND
13698 static const void *lt_preloaded_setup() {
13699   return lt__PROGRAM__LTX_preloaded_symbols;
13700 }
13701 #endif
13702
13703 #ifdef __cplusplus
13704 }
13705 #endif
13706 _LT_EOF
13707           # Now try linking the two files.
13708           mv conftest.$ac_objext conftstm.$ac_objext
13709           lt_save_LIBS="$LIBS"
13710           lt_save_CFLAGS="$CFLAGS"
13711           LIBS="conftstm.$ac_objext"
13712           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13713           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13714   (eval $ac_link) 2>&5
13715   ac_status=$?
13716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13717   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13718             pipe_works=yes
13719           fi
13720           LIBS="$lt_save_LIBS"
13721           CFLAGS="$lt_save_CFLAGS"
13722         else
13723           echo "cannot find nm_test_func in $nlist" >&5
13724         fi
13725       else
13726         echo "cannot find nm_test_var in $nlist" >&5
13727       fi
13728     else
13729       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13730     fi
13731   else
13732     echo "$progname: failed program was:" >&5
13733     cat conftest.$ac_ext >&5
13734   fi
13735   rm -rf conftest* conftst*
13736
13737   # Do not use the global_symbol_pipe unless it works.
13738   if test "$pipe_works" = yes; then
13739     break
13740   else
13741     lt_cv_sys_global_symbol_pipe=
13742   fi
13743 done
13744
13745 fi
13746
13747 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13748   lt_cv_sys_global_symbol_to_cdecl=
13749 fi
13750 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13752 $as_echo "failed" >&6; }
13753 else
13754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13755 $as_echo "ok" >&6; }
13756 fi
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779 # Check whether --enable-libtool-lock was given.
13780 if test "${enable_libtool_lock+set}" = set; then :
13781   enableval=$enable_libtool_lock;
13782 fi
13783
13784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13785
13786 # Some flags need to be propagated to the compiler or linker for good
13787 # libtool support.
13788 case $host in
13789 ia64-*-hpux*)
13790   # Find out which ABI we are using.
13791   echo 'int i;' > conftest.$ac_ext
13792   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13793   (eval $ac_compile) 2>&5
13794   ac_status=$?
13795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13796   test $ac_status = 0; }; then
13797     case `/usr/bin/file conftest.$ac_objext` in
13798       *ELF-32*)
13799         HPUX_IA64_MODE="32"
13800         ;;
13801       *ELF-64*)
13802         HPUX_IA64_MODE="64"
13803         ;;
13804     esac
13805   fi
13806   rm -rf conftest*
13807   ;;
13808 *-*-irix6*)
13809   # Find out which ABI we are using.
13810   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13811   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13812   (eval $ac_compile) 2>&5
13813   ac_status=$?
13814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13815   test $ac_status = 0; }; then
13816     if test "$lt_cv_prog_gnu_ld" = yes; then
13817       case `/usr/bin/file conftest.$ac_objext` in
13818         *32-bit*)
13819           LD="${LD-ld} -melf32bsmip"
13820           ;;
13821         *N32*)
13822           LD="${LD-ld} -melf32bmipn32"
13823           ;;
13824         *64-bit*)
13825           LD="${LD-ld} -melf64bmip"
13826         ;;
13827       esac
13828     else
13829       case `/usr/bin/file conftest.$ac_objext` in
13830         *32-bit*)
13831           LD="${LD-ld} -32"
13832           ;;
13833         *N32*)
13834           LD="${LD-ld} -n32"
13835           ;;
13836         *64-bit*)
13837           LD="${LD-ld} -64"
13838           ;;
13839       esac
13840     fi
13841   fi
13842   rm -rf conftest*
13843   ;;
13844
13845 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13846 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13847   # Find out which ABI we are using.
13848   echo 'int i;' > conftest.$ac_ext
13849   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13850   (eval $ac_compile) 2>&5
13851   ac_status=$?
13852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13853   test $ac_status = 0; }; then
13854     case `/usr/bin/file conftest.o` in
13855       *32-bit*)
13856         case $host in
13857           x86_64-*kfreebsd*-gnu)
13858             LD="${LD-ld} -m elf_i386_fbsd"
13859             ;;
13860           x86_64-*linux*)
13861             LD="${LD-ld} -m elf_i386"
13862             ;;
13863           ppc64-*linux*|powerpc64-*linux*)
13864             LD="${LD-ld} -m elf32ppclinux"
13865             ;;
13866           s390x-*linux*)
13867             LD="${LD-ld} -m elf_s390"
13868             ;;
13869           sparc64-*linux*)
13870             LD="${LD-ld} -m elf32_sparc"
13871             ;;
13872         esac
13873         ;;
13874       *64-bit*)
13875         case $host in
13876           x86_64-*kfreebsd*-gnu)
13877             LD="${LD-ld} -m elf_x86_64_fbsd"
13878             ;;
13879           x86_64-*linux*)
13880             LD="${LD-ld} -m elf_x86_64"
13881             ;;
13882           ppc*-*linux*|powerpc*-*linux*)
13883             LD="${LD-ld} -m elf64ppc"
13884             ;;
13885           s390*-*linux*|s390*-*tpf*)
13886             LD="${LD-ld} -m elf64_s390"
13887             ;;
13888           sparc*-*linux*)
13889             LD="${LD-ld} -m elf64_sparc"
13890             ;;
13891         esac
13892         ;;
13893     esac
13894   fi
13895   rm -rf conftest*
13896   ;;
13897
13898 *-*-sco3.2v5*)
13899   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13900   SAVE_CFLAGS="$CFLAGS"
13901   CFLAGS="$CFLAGS -belf"
13902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13903 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13904 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13905   $as_echo_n "(cached) " >&6
13906 else
13907   ac_ext=c
13908 ac_cpp='$CPP $CPPFLAGS'
13909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13912
13913      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h.  */
13915
13916 int
13917 main ()
13918 {
13919
13920   ;
13921   return 0;
13922 }
13923 _ACEOF
13924 if ac_fn_c_try_link "$LINENO"; then :
13925   lt_cv_cc_needs_belf=yes
13926 else
13927   lt_cv_cc_needs_belf=no
13928 fi
13929 rm -f core conftest.err conftest.$ac_objext \
13930     conftest$ac_exeext conftest.$ac_ext
13931      ac_ext=c
13932 ac_cpp='$CPP $CPPFLAGS'
13933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13936
13937 fi
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13939 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13940   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13941     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13942     CFLAGS="$SAVE_CFLAGS"
13943   fi
13944   ;;
13945 sparc*-*solaris*)
13946   # Find out which ABI we are using.
13947   echo 'int i;' > conftest.$ac_ext
13948   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13949   (eval $ac_compile) 2>&5
13950   ac_status=$?
13951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13952   test $ac_status = 0; }; then
13953     case `/usr/bin/file conftest.o` in
13954     *64-bit*)
13955       case $lt_cv_prog_gnu_ld in
13956       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13957       *)
13958         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13959           LD="${LD-ld} -64"
13960         fi
13961         ;;
13962       esac
13963       ;;
13964     esac
13965   fi
13966   rm -rf conftest*
13967   ;;
13968 esac
13969
13970 need_locks="$enable_libtool_lock"
13971
13972
13973   case $host_os in
13974     rhapsody* | darwin*)
13975     if test -n "$ac_tool_prefix"; then
13976   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13977 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13979 $as_echo_n "checking for $ac_word... " >&6; }
13980 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13981   $as_echo_n "(cached) " >&6
13982 else
13983   if test -n "$DSYMUTIL"; then
13984   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13985 else
13986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13987 for as_dir in $PATH
13988 do
13989   IFS=$as_save_IFS
13990   test -z "$as_dir" && as_dir=.
13991     for ac_exec_ext in '' $ac_executable_extensions; do
13992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13993     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13995     break 2
13996   fi
13997 done
13998   done
13999 IFS=$as_save_IFS
14000
14001 fi
14002 fi
14003 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14004 if test -n "$DSYMUTIL"; then
14005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14006 $as_echo "$DSYMUTIL" >&6; }
14007 else
14008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14010 fi
14011
14012
14013 fi
14014 if test -z "$ac_cv_prog_DSYMUTIL"; then
14015   ac_ct_DSYMUTIL=$DSYMUTIL
14016   # Extract the first word of "dsymutil", so it can be a program name with args.
14017 set dummy dsymutil; ac_word=$2
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14019 $as_echo_n "checking for $ac_word... " >&6; }
14020 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14021   $as_echo_n "(cached) " >&6
14022 else
14023   if test -n "$ac_ct_DSYMUTIL"; then
14024   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14025 else
14026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14027 for as_dir in $PATH
14028 do
14029   IFS=$as_save_IFS
14030   test -z "$as_dir" && as_dir=.
14031     for ac_exec_ext in '' $ac_executable_extensions; do
14032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14033     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14035     break 2
14036   fi
14037 done
14038   done
14039 IFS=$as_save_IFS
14040
14041 fi
14042 fi
14043 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14044 if test -n "$ac_ct_DSYMUTIL"; then
14045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14046 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14047 else
14048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14049 $as_echo "no" >&6; }
14050 fi
14051
14052   if test "x$ac_ct_DSYMUTIL" = x; then
14053     DSYMUTIL=":"
14054   else
14055     case $cross_compiling:$ac_tool_warned in
14056 yes:)
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14059 ac_tool_warned=yes ;;
14060 esac
14061     DSYMUTIL=$ac_ct_DSYMUTIL
14062   fi
14063 else
14064   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14065 fi
14066
14067     if test -n "$ac_tool_prefix"; then
14068   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14069 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14071 $as_echo_n "checking for $ac_word... " >&6; }
14072 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14073   $as_echo_n "(cached) " >&6
14074 else
14075   if test -n "$NMEDIT"; then
14076   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14077 else
14078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14079 for as_dir in $PATH
14080 do
14081   IFS=$as_save_IFS
14082   test -z "$as_dir" && as_dir=.
14083     for ac_exec_ext in '' $ac_executable_extensions; do
14084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14085     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14087     break 2
14088   fi
14089 done
14090   done
14091 IFS=$as_save_IFS
14092
14093 fi
14094 fi
14095 NMEDIT=$ac_cv_prog_NMEDIT
14096 if test -n "$NMEDIT"; then
14097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14098 $as_echo "$NMEDIT" >&6; }
14099 else
14100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14102 fi
14103
14104
14105 fi
14106 if test -z "$ac_cv_prog_NMEDIT"; then
14107   ac_ct_NMEDIT=$NMEDIT
14108   # Extract the first word of "nmedit", so it can be a program name with args.
14109 set dummy nmedit; ac_word=$2
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14111 $as_echo_n "checking for $ac_word... " >&6; }
14112 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14113   $as_echo_n "(cached) " >&6
14114 else
14115   if test -n "$ac_ct_NMEDIT"; then
14116   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14117 else
14118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119 for as_dir in $PATH
14120 do
14121   IFS=$as_save_IFS
14122   test -z "$as_dir" && as_dir=.
14123     for ac_exec_ext in '' $ac_executable_extensions; do
14124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14125     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14127     break 2
14128   fi
14129 done
14130   done
14131 IFS=$as_save_IFS
14132
14133 fi
14134 fi
14135 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14136 if test -n "$ac_ct_NMEDIT"; then
14137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14138 $as_echo "$ac_ct_NMEDIT" >&6; }
14139 else
14140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14141 $as_echo "no" >&6; }
14142 fi
14143
14144   if test "x$ac_ct_NMEDIT" = x; then
14145     NMEDIT=":"
14146   else
14147     case $cross_compiling:$ac_tool_warned in
14148 yes:)
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14151 ac_tool_warned=yes ;;
14152 esac
14153     NMEDIT=$ac_ct_NMEDIT
14154   fi
14155 else
14156   NMEDIT="$ac_cv_prog_NMEDIT"
14157 fi
14158
14159     if test -n "$ac_tool_prefix"; then
14160   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14161 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14163 $as_echo_n "checking for $ac_word... " >&6; }
14164 if test "${ac_cv_prog_LIPO+set}" = set; then :
14165   $as_echo_n "(cached) " >&6
14166 else
14167   if test -n "$LIPO"; then
14168   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14169 else
14170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171 for as_dir in $PATH
14172 do
14173   IFS=$as_save_IFS
14174   test -z "$as_dir" && as_dir=.
14175     for ac_exec_ext in '' $ac_executable_extensions; do
14176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14177     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14179     break 2
14180   fi
14181 done
14182   done
14183 IFS=$as_save_IFS
14184
14185 fi
14186 fi
14187 LIPO=$ac_cv_prog_LIPO
14188 if test -n "$LIPO"; then
14189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14190 $as_echo "$LIPO" >&6; }
14191 else
14192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193 $as_echo "no" >&6; }
14194 fi
14195
14196
14197 fi
14198 if test -z "$ac_cv_prog_LIPO"; then
14199   ac_ct_LIPO=$LIPO
14200   # Extract the first word of "lipo", so it can be a program name with args.
14201 set dummy lipo; ac_word=$2
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14203 $as_echo_n "checking for $ac_word... " >&6; }
14204 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14205   $as_echo_n "(cached) " >&6
14206 else
14207   if test -n "$ac_ct_LIPO"; then
14208   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14209 else
14210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14211 for as_dir in $PATH
14212 do
14213   IFS=$as_save_IFS
14214   test -z "$as_dir" && as_dir=.
14215     for ac_exec_ext in '' $ac_executable_extensions; do
14216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14217     ac_cv_prog_ac_ct_LIPO="lipo"
14218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14219     break 2
14220   fi
14221 done
14222   done
14223 IFS=$as_save_IFS
14224
14225 fi
14226 fi
14227 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14228 if test -n "$ac_ct_LIPO"; then
14229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14230 $as_echo "$ac_ct_LIPO" >&6; }
14231 else
14232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233 $as_echo "no" >&6; }
14234 fi
14235
14236   if test "x$ac_ct_LIPO" = x; then
14237     LIPO=":"
14238   else
14239     case $cross_compiling:$ac_tool_warned in
14240 yes:)
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14243 ac_tool_warned=yes ;;
14244 esac
14245     LIPO=$ac_ct_LIPO
14246   fi
14247 else
14248   LIPO="$ac_cv_prog_LIPO"
14249 fi
14250
14251     if test -n "$ac_tool_prefix"; then
14252   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14253 set dummy ${ac_tool_prefix}otool; ac_word=$2
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14255 $as_echo_n "checking for $ac_word... " >&6; }
14256 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14257   $as_echo_n "(cached) " >&6
14258 else
14259   if test -n "$OTOOL"; then
14260   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14261 else
14262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14263 for as_dir in $PATH
14264 do
14265   IFS=$as_save_IFS
14266   test -z "$as_dir" && as_dir=.
14267     for ac_exec_ext in '' $ac_executable_extensions; do
14268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14269     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14271     break 2
14272   fi
14273 done
14274   done
14275 IFS=$as_save_IFS
14276
14277 fi
14278 fi
14279 OTOOL=$ac_cv_prog_OTOOL
14280 if test -n "$OTOOL"; then
14281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14282 $as_echo "$OTOOL" >&6; }
14283 else
14284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285 $as_echo "no" >&6; }
14286 fi
14287
14288
14289 fi
14290 if test -z "$ac_cv_prog_OTOOL"; then
14291   ac_ct_OTOOL=$OTOOL
14292   # Extract the first word of "otool", so it can be a program name with args.
14293 set dummy otool; ac_word=$2
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14295 $as_echo_n "checking for $ac_word... " >&6; }
14296 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14297   $as_echo_n "(cached) " >&6
14298 else
14299   if test -n "$ac_ct_OTOOL"; then
14300   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14301 else
14302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303 for as_dir in $PATH
14304 do
14305   IFS=$as_save_IFS
14306   test -z "$as_dir" && as_dir=.
14307     for ac_exec_ext in '' $ac_executable_extensions; do
14308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14309     ac_cv_prog_ac_ct_OTOOL="otool"
14310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14311     break 2
14312   fi
14313 done
14314   done
14315 IFS=$as_save_IFS
14316
14317 fi
14318 fi
14319 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14320 if test -n "$ac_ct_OTOOL"; then
14321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14322 $as_echo "$ac_ct_OTOOL" >&6; }
14323 else
14324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325 $as_echo "no" >&6; }
14326 fi
14327
14328   if test "x$ac_ct_OTOOL" = x; then
14329     OTOOL=":"
14330   else
14331     case $cross_compiling:$ac_tool_warned in
14332 yes:)
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14335 ac_tool_warned=yes ;;
14336 esac
14337     OTOOL=$ac_ct_OTOOL
14338   fi
14339 else
14340   OTOOL="$ac_cv_prog_OTOOL"
14341 fi
14342
14343     if test -n "$ac_tool_prefix"; then
14344   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14345 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14347 $as_echo_n "checking for $ac_word... " >&6; }
14348 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14349   $as_echo_n "(cached) " >&6
14350 else
14351   if test -n "$OTOOL64"; then
14352   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14353 else
14354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14355 for as_dir in $PATH
14356 do
14357   IFS=$as_save_IFS
14358   test -z "$as_dir" && as_dir=.
14359     for ac_exec_ext in '' $ac_executable_extensions; do
14360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14361     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14363     break 2
14364   fi
14365 done
14366   done
14367 IFS=$as_save_IFS
14368
14369 fi
14370 fi
14371 OTOOL64=$ac_cv_prog_OTOOL64
14372 if test -n "$OTOOL64"; then
14373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14374 $as_echo "$OTOOL64" >&6; }
14375 else
14376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377 $as_echo "no" >&6; }
14378 fi
14379
14380
14381 fi
14382 if test -z "$ac_cv_prog_OTOOL64"; then
14383   ac_ct_OTOOL64=$OTOOL64
14384   # Extract the first word of "otool64", so it can be a program name with args.
14385 set dummy otool64; ac_word=$2
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387 $as_echo_n "checking for $ac_word... " >&6; }
14388 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14389   $as_echo_n "(cached) " >&6
14390 else
14391   if test -n "$ac_ct_OTOOL64"; then
14392   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14393 else
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14396 do
14397   IFS=$as_save_IFS
14398   test -z "$as_dir" && as_dir=.
14399     for ac_exec_ext in '' $ac_executable_extensions; do
14400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14401     ac_cv_prog_ac_ct_OTOOL64="otool64"
14402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403     break 2
14404   fi
14405 done
14406   done
14407 IFS=$as_save_IFS
14408
14409 fi
14410 fi
14411 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14412 if test -n "$ac_ct_OTOOL64"; then
14413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14414 $as_echo "$ac_ct_OTOOL64" >&6; }
14415 else
14416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14418 fi
14419
14420   if test "x$ac_ct_OTOOL64" = x; then
14421     OTOOL64=":"
14422   else
14423     case $cross_compiling:$ac_tool_warned in
14424 yes:)
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14427 ac_tool_warned=yes ;;
14428 esac
14429     OTOOL64=$ac_ct_OTOOL64
14430   fi
14431 else
14432   OTOOL64="$ac_cv_prog_OTOOL64"
14433 fi
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14462 $as_echo_n "checking for -single_module linker flag... " >&6; }
14463 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14464   $as_echo_n "(cached) " >&6
14465 else
14466   lt_cv_apple_cc_single_mod=no
14467       if test -z "${LT_MULTI_MODULE}"; then
14468         # By default we will add the -single_module flag. You can override
14469         # by either setting the environment variable LT_MULTI_MODULE
14470         # non-empty at configure time, or by adding -multi_module to the
14471         # link flags.
14472         rm -rf libconftest.dylib*
14473         echo "int foo(void){return 1;}" > conftest.c
14474         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14475 -dynamiclib -Wl,-single_module conftest.c" >&5
14476         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14477           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14478         _lt_result=$?
14479         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14480           lt_cv_apple_cc_single_mod=yes
14481         else
14482           cat conftest.err >&5
14483         fi
14484         rm -rf libconftest.dylib*
14485         rm -f conftest.*
14486       fi
14487 fi
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14489 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14491 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14492 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14493   $as_echo_n "(cached) " >&6
14494 else
14495   lt_cv_ld_exported_symbols_list=no
14496       save_LDFLAGS=$LDFLAGS
14497       echo "_main" > conftest.sym
14498       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14499       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h.  */
14501
14502 int
14503 main ()
14504 {
14505
14506   ;
14507   return 0;
14508 }
14509 _ACEOF
14510 if ac_fn_c_try_link "$LINENO"; then :
14511   lt_cv_ld_exported_symbols_list=yes
14512 else
14513   lt_cv_ld_exported_symbols_list=no
14514 fi
14515 rm -f core conftest.err conftest.$ac_objext \
14516     conftest$ac_exeext conftest.$ac_ext
14517         LDFLAGS="$save_LDFLAGS"
14518
14519 fi
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14521 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14523 $as_echo_n "checking for -force_load linker flag... " >&6; }
14524 if test "${lt_cv_ld_force_load+set}" = set; then :
14525   $as_echo_n "(cached) " >&6
14526 else
14527   lt_cv_ld_force_load=no
14528       cat > conftest.c << _LT_EOF
14529 int forced_loaded() { return 2;}
14530 _LT_EOF
14531       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14532       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14533       echo "$AR cru libconftest.a conftest.o" >&5
14534       $AR cru libconftest.a conftest.o 2>&5
14535       cat > conftest.c << _LT_EOF
14536 int main() { return 0;}
14537 _LT_EOF
14538       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14539       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14540       _lt_result=$?
14541       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14542         lt_cv_ld_force_load=yes
14543       else
14544         cat conftest.err >&5
14545       fi
14546         rm -f conftest.err libconftest.a conftest conftest.c
14547         rm -rf conftest.dSYM
14548
14549 fi
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14551 $as_echo "$lt_cv_ld_force_load" >&6; }
14552     case $host_os in
14553     rhapsody* | darwin1.[012])
14554       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14555     darwin1.*)
14556       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14557     darwin*) # darwin 5.x on
14558       # if running on 10.5 or later, the deployment target defaults
14559       # to the OS version, if on x86, and 10.4, the deployment
14560       # target defaults to 10.4. Don't you love it?
14561       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14562         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14563           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14564         10.[012]*)
14565           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14566         10.*)
14567           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14568       esac
14569     ;;
14570   esac
14571     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14572       _lt_dar_single_mod='$single_module'
14573     fi
14574     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14575       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14576     else
14577       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14578     fi
14579     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14580       _lt_dsymutil='~$DSYMUTIL $lib || :'
14581     else
14582       _lt_dsymutil=
14583     fi
14584     ;;
14585   esac
14586
14587 for ac_header in dlfcn.h
14588 do :
14589   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14590 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14591   cat >>confdefs.h <<_ACEOF
14592 #define HAVE_DLFCN_H 1
14593 _ACEOF
14594
14595 fi
14596 done
14597
14598
14599
14600
14601
14602 # Set options
14603
14604
14605
14606         enable_dlopen=no
14607
14608
14609   enable_win32_dll=no
14610
14611
14612             # Check whether --enable-shared was given.
14613 if test "${enable_shared+set}" = set; then :
14614   enableval=$enable_shared; p=${PACKAGE-default}
14615     case $enableval in
14616     yes) enable_shared=yes ;;
14617     no) enable_shared=no ;;
14618     *)
14619       enable_shared=no
14620       # Look at the argument we got.  We use all the common list separators.
14621       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14622       for pkg in $enableval; do
14623         IFS="$lt_save_ifs"
14624         if test "X$pkg" = "X$p"; then
14625           enable_shared=yes
14626         fi
14627       done
14628       IFS="$lt_save_ifs"
14629       ;;
14630     esac
14631 else
14632   enable_shared=yes
14633 fi
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643   # Check whether --enable-static was given.
14644 if test "${enable_static+set}" = set; then :
14645   enableval=$enable_static; p=${PACKAGE-default}
14646     case $enableval in
14647     yes) enable_static=yes ;;
14648     no) enable_static=no ;;
14649     *)
14650      enable_static=no
14651       # Look at the argument we got.  We use all the common list separators.
14652       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14653       for pkg in $enableval; do
14654         IFS="$lt_save_ifs"
14655         if test "X$pkg" = "X$p"; then
14656           enable_static=yes
14657         fi
14658       done
14659       IFS="$lt_save_ifs"
14660       ;;
14661     esac
14662 else
14663   enable_static=yes
14664 fi
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675 # Check whether --with-pic was given.
14676 if test "${with_pic+set}" = set; then :
14677   withval=$with_pic; pic_mode="$withval"
14678 else
14679   pic_mode=default
14680 fi
14681
14682
14683 test -z "$pic_mode" && pic_mode=default
14684
14685
14686
14687
14688
14689
14690
14691   # Check whether --enable-fast-install was given.
14692 if test "${enable_fast_install+set}" = set; then :
14693   enableval=$enable_fast_install; p=${PACKAGE-default}
14694     case $enableval in
14695     yes) enable_fast_install=yes ;;
14696     no) enable_fast_install=no ;;
14697     *)
14698       enable_fast_install=no
14699       # Look at the argument we got.  We use all the common list separators.
14700       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14701       for pkg in $enableval; do
14702         IFS="$lt_save_ifs"
14703         if test "X$pkg" = "X$p"; then
14704           enable_fast_install=yes
14705         fi
14706       done
14707       IFS="$lt_save_ifs"
14708       ;;
14709     esac
14710 else
14711   enable_fast_install=yes
14712 fi
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724 # This can be used to rebuild libtool when needed
14725 LIBTOOL_DEPS="$ltmain"
14726
14727 # Always use our own libtool.
14728 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755 test -z "$LN_S" && LN_S="ln -s"
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770 if test -n "${ZSH_VERSION+set}" ; then
14771    setopt NO_GLOB_SUBST
14772 fi
14773
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14775 $as_echo_n "checking for objdir... " >&6; }
14776 if test "${lt_cv_objdir+set}" = set; then :
14777   $as_echo_n "(cached) " >&6
14778 else
14779   rm -f .libs 2>/dev/null
14780 mkdir .libs 2>/dev/null
14781 if test -d .libs; then
14782   lt_cv_objdir=.libs
14783 else
14784   # MS-DOS does not allow filenames that begin with a dot.
14785   lt_cv_objdir=_libs
14786 fi
14787 rmdir .libs 2>/dev/null
14788 fi
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14790 $as_echo "$lt_cv_objdir" >&6; }
14791 objdir=$lt_cv_objdir
14792
14793
14794
14795
14796
14797 cat >>confdefs.h <<_ACEOF
14798 #define LT_OBJDIR "$lt_cv_objdir/"
14799 _ACEOF
14800
14801
14802
14803
14804 case $host_os in
14805 aix3*)
14806   # AIX sometimes has problems with the GCC collect2 program.  For some
14807   # reason, if we set the COLLECT_NAMES environment variable, the problems
14808   # vanish in a puff of smoke.
14809   if test "X${COLLECT_NAMES+set}" != Xset; then
14810     COLLECT_NAMES=
14811     export COLLECT_NAMES
14812   fi
14813   ;;
14814 esac
14815
14816 # Global variables:
14817 ofile=libtool
14818 can_build_shared=yes
14819
14820 # All known linkers require a `.a' archive for static linking (except MSVC,
14821 # which needs '.lib').
14822 libext=a
14823
14824 with_gnu_ld="$lt_cv_prog_gnu_ld"
14825
14826 old_CC="$CC"
14827 old_CFLAGS="$CFLAGS"
14828
14829 # Set sane defaults for various variables
14830 test -z "$CC" && CC=cc
14831 test -z "$LTCC" && LTCC=$CC
14832 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14833 test -z "$LD" && LD=ld
14834 test -z "$ac_objext" && ac_objext=o
14835
14836 for cc_temp in $compiler""; do
14837   case $cc_temp in
14838     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14839     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14840     \-*) ;;
14841     *) break;;
14842   esac
14843 done
14844 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14845
14846
14847 # Only perform the check for file, if the check method requires it
14848 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14849 case $deplibs_check_method in
14850 file_magic*)
14851   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14853 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14854 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14855   $as_echo_n "(cached) " >&6
14856 else
14857   case $MAGIC_CMD in
14858 [\\/*] |  ?:[\\/]*)
14859   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14860   ;;
14861 *)
14862   lt_save_MAGIC_CMD="$MAGIC_CMD"
14863   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14864   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14865   for ac_dir in $ac_dummy; do
14866     IFS="$lt_save_ifs"
14867     test -z "$ac_dir" && ac_dir=.
14868     if test -f $ac_dir/${ac_tool_prefix}file; then
14869       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14870       if test -n "$file_magic_test_file"; then
14871         case $deplibs_check_method in
14872         "file_magic "*)
14873           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14874           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14875           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14876             $EGREP "$file_magic_regex" > /dev/null; then
14877             :
14878           else
14879             cat <<_LT_EOF 1>&2
14880
14881 *** Warning: the command libtool uses to detect shared libraries,
14882 *** $file_magic_cmd, produces output that libtool cannot recognize.
14883 *** The result is that libtool may fail to recognize shared libraries
14884 *** as such.  This will affect the creation of libtool libraries that
14885 *** depend on shared libraries, but programs linked with such libtool
14886 *** libraries will work regardless of this problem.  Nevertheless, you
14887 *** may want to report the problem to your system manager and/or to
14888 *** bug-libtool@gnu.org
14889
14890 _LT_EOF
14891           fi ;;
14892         esac
14893       fi
14894       break
14895     fi
14896   done
14897   IFS="$lt_save_ifs"
14898   MAGIC_CMD="$lt_save_MAGIC_CMD"
14899   ;;
14900 esac
14901 fi
14902
14903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14904 if test -n "$MAGIC_CMD"; then
14905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14906 $as_echo "$MAGIC_CMD" >&6; }
14907 else
14908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14909 $as_echo "no" >&6; }
14910 fi
14911
14912
14913
14914
14915
14916 if test -z "$lt_cv_path_MAGIC_CMD"; then
14917   if test -n "$ac_tool_prefix"; then
14918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14919 $as_echo_n "checking for file... " >&6; }
14920 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14921   $as_echo_n "(cached) " >&6
14922 else
14923   case $MAGIC_CMD in
14924 [\\/*] |  ?:[\\/]*)
14925   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14926   ;;
14927 *)
14928   lt_save_MAGIC_CMD="$MAGIC_CMD"
14929   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14930   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14931   for ac_dir in $ac_dummy; do
14932     IFS="$lt_save_ifs"
14933     test -z "$ac_dir" && ac_dir=.
14934     if test -f $ac_dir/file; then
14935       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14936       if test -n "$file_magic_test_file"; then
14937         case $deplibs_check_method in
14938         "file_magic "*)
14939           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14940           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14941           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14942             $EGREP "$file_magic_regex" > /dev/null; then
14943             :
14944           else
14945             cat <<_LT_EOF 1>&2
14946
14947 *** Warning: the command libtool uses to detect shared libraries,
14948 *** $file_magic_cmd, produces output that libtool cannot recognize.
14949 *** The result is that libtool may fail to recognize shared libraries
14950 *** as such.  This will affect the creation of libtool libraries that
14951 *** depend on shared libraries, but programs linked with such libtool
14952 *** libraries will work regardless of this problem.  Nevertheless, you
14953 *** may want to report the problem to your system manager and/or to
14954 *** bug-libtool@gnu.org
14955
14956 _LT_EOF
14957           fi ;;
14958         esac
14959       fi
14960       break
14961     fi
14962   done
14963   IFS="$lt_save_ifs"
14964   MAGIC_CMD="$lt_save_MAGIC_CMD"
14965   ;;
14966 esac
14967 fi
14968
14969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14970 if test -n "$MAGIC_CMD"; then
14971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14972 $as_echo "$MAGIC_CMD" >&6; }
14973 else
14974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14975 $as_echo "no" >&6; }
14976 fi
14977
14978
14979   else
14980     MAGIC_CMD=:
14981   fi
14982 fi
14983
14984   fi
14985   ;;
14986 esac
14987
14988 # Use C for the default configuration in the libtool script
14989
14990 lt_save_CC="$CC"
14991 ac_ext=c
14992 ac_cpp='$CPP $CPPFLAGS'
14993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14996
14997
14998 # Source file extension for C test sources.
14999 ac_ext=c
15000
15001 # Object file extension for compiled C test sources.
15002 objext=o
15003 objext=$objext
15004
15005 # Code to be used in simple compile tests
15006 lt_simple_compile_test_code="int some_variable = 0;"
15007
15008 # Code to be used in simple link tests
15009 lt_simple_link_test_code='int main(){return(0);}'
15010
15011
15012
15013
15014
15015
15016
15017 # If no C compiler was specified, use CC.
15018 LTCC=${LTCC-"$CC"}
15019
15020 # If no C compiler flags were specified, use CFLAGS.
15021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15022
15023 # Allow CC to be a program name with arguments.
15024 compiler=$CC
15025
15026 # Save the default compiler, since it gets overwritten when the other
15027 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15028 compiler_DEFAULT=$CC
15029
15030 # save warnings/boilerplate of simple test code
15031 ac_outfile=conftest.$ac_objext
15032 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15033 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15034 _lt_compiler_boilerplate=`cat conftest.err`
15035 $RM conftest*
15036
15037 ac_outfile=conftest.$ac_objext
15038 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15039 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15040 _lt_linker_boilerplate=`cat conftest.err`
15041 $RM -r conftest*
15042
15043
15044 ## CAVEAT EMPTOR:
15045 ## There is no encapsulation within the following macros, do not change
15046 ## the running order or otherwise move them around unless you know exactly
15047 ## what you are doing...
15048 if test -n "$compiler"; then
15049
15050 lt_prog_compiler_no_builtin_flag=
15051
15052 if test "$GCC" = yes; then
15053   case $cc_basename in
15054   nvcc*)
15055     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15056   *)
15057     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15058   esac
15059
15060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15061 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15062 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15063   $as_echo_n "(cached) " >&6
15064 else
15065   lt_cv_prog_compiler_rtti_exceptions=no
15066    ac_outfile=conftest.$ac_objext
15067    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15068    lt_compiler_flag="-fno-rtti -fno-exceptions"
15069    # Insert the option either (1) after the last *FLAGS variable, or
15070    # (2) before a word containing "conftest.", or (3) at the end.
15071    # Note that $ac_compile itself does not contain backslashes and begins
15072    # with a dollar sign (not a hyphen), so the echo should work correctly.
15073    # The option is referenced via a variable to avoid confusing sed.
15074    lt_compile=`echo "$ac_compile" | $SED \
15075    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15076    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15077    -e 's:$: $lt_compiler_flag:'`
15078    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15079    (eval "$lt_compile" 2>conftest.err)
15080    ac_status=$?
15081    cat conftest.err >&5
15082    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083    if (exit $ac_status) && test -s "$ac_outfile"; then
15084      # The compiler can only warn and ignore the option if not recognized
15085      # So say no if there are warnings other than the usual output.
15086      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15087      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15088      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15089        lt_cv_prog_compiler_rtti_exceptions=yes
15090      fi
15091    fi
15092    $RM conftest*
15093
15094 fi
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15096 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15097
15098 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15099     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15100 else
15101     :
15102 fi
15103
15104 fi
15105
15106
15107
15108
15109
15110
15111   lt_prog_compiler_wl=
15112 lt_prog_compiler_pic=
15113 lt_prog_compiler_static=
15114
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15116 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15117
15118   if test "$GCC" = yes; then
15119     lt_prog_compiler_wl='-Wl,'
15120     lt_prog_compiler_static='-static'
15121
15122     case $host_os in
15123       aix*)
15124       # All AIX code is PIC.
15125       if test "$host_cpu" = ia64; then
15126         # AIX 5 now supports IA64 processor
15127         lt_prog_compiler_static='-Bstatic'
15128       fi
15129       ;;
15130
15131     amigaos*)
15132       case $host_cpu in
15133       powerpc)
15134             # see comment about AmigaOS4 .so support
15135             lt_prog_compiler_pic='-fPIC'
15136         ;;
15137       m68k)
15138             # FIXME: we need at least 68020 code to build shared libraries, but
15139             # adding the `-m68020' flag to GCC prevents building anything better,
15140             # like `-m68040'.
15141             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15142         ;;
15143       esac
15144       ;;
15145
15146     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15147       # PIC is the default for these OSes.
15148       ;;
15149
15150     mingw* | cygwin* | pw32* | os2* | cegcc*)
15151       # This hack is so that the source file can tell whether it is being
15152       # built for inclusion in a dll (and should export symbols for example).
15153       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15154       # (--disable-auto-import) libraries
15155       lt_prog_compiler_pic='-DDLL_EXPORT'
15156       ;;
15157
15158     darwin* | rhapsody*)
15159       # PIC is the default on this platform
15160       # Common symbols not allowed in MH_DYLIB files
15161       lt_prog_compiler_pic='-fno-common'
15162       ;;
15163
15164     haiku*)
15165       # PIC is the default for Haiku.
15166       # The "-static" flag exists, but is broken.
15167       lt_prog_compiler_static=
15168       ;;
15169
15170     hpux*)
15171       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15172       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15173       # sets the default TLS model and affects inlining.
15174       case $host_cpu in
15175       hppa*64*)
15176         # +Z the default
15177         ;;
15178       *)
15179         lt_prog_compiler_pic='-fPIC'
15180         ;;
15181       esac
15182       ;;
15183
15184     interix[3-9]*)
15185       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15186       # Instead, we relocate shared libraries at runtime.
15187       ;;
15188
15189     msdosdjgpp*)
15190       # Just because we use GCC doesn't mean we suddenly get shared libraries
15191       # on systems that don't support them.
15192       lt_prog_compiler_can_build_shared=no
15193       enable_shared=no
15194       ;;
15195
15196     *nto* | *qnx*)
15197       # QNX uses GNU C++, but need to define -shared option too, otherwise
15198       # it will coredump.
15199       lt_prog_compiler_pic='-fPIC -shared'
15200       ;;
15201
15202     sysv4*MP*)
15203       if test -d /usr/nec; then
15204         lt_prog_compiler_pic=-Kconform_pic
15205       fi
15206       ;;
15207
15208     *)
15209       lt_prog_compiler_pic='-fPIC'
15210       ;;
15211     esac
15212
15213     case $cc_basename in
15214     nvcc*) # Cuda Compiler Driver 2.2
15215       lt_prog_compiler_wl='-Xlinker '
15216       lt_prog_compiler_pic='-Xcompiler -fPIC'
15217       ;;
15218     esac
15219   else
15220     # PORTME Check for flag to pass linker flags through the system compiler.
15221     case $host_os in
15222     aix*)
15223       lt_prog_compiler_wl='-Wl,'
15224       if test "$host_cpu" = ia64; then
15225         # AIX 5 now supports IA64 processor
15226         lt_prog_compiler_static='-Bstatic'
15227       else
15228         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15229       fi
15230       ;;
15231
15232     mingw* | cygwin* | pw32* | os2* | cegcc*)
15233       # This hack is so that the source file can tell whether it is being
15234       # built for inclusion in a dll (and should export symbols for example).
15235       lt_prog_compiler_pic='-DDLL_EXPORT'
15236       ;;
15237
15238     hpux9* | hpux10* | hpux11*)
15239       lt_prog_compiler_wl='-Wl,'
15240       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15241       # not for PA HP-UX.
15242       case $host_cpu in
15243       hppa*64*|ia64*)
15244         # +Z the default
15245         ;;
15246       *)
15247         lt_prog_compiler_pic='+Z'
15248         ;;
15249       esac
15250       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15251       lt_prog_compiler_static='${wl}-a ${wl}archive'
15252       ;;
15253
15254     irix5* | irix6* | nonstopux*)
15255       lt_prog_compiler_wl='-Wl,'
15256       # PIC (with -KPIC) is the default.
15257       lt_prog_compiler_static='-non_shared'
15258       ;;
15259
15260     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15261       case $cc_basename in
15262       # old Intel for x86_64 which still supported -KPIC.
15263       ecc*)
15264         lt_prog_compiler_wl='-Wl,'
15265         lt_prog_compiler_pic='-KPIC'
15266         lt_prog_compiler_static='-static'
15267         ;;
15268       # icc used to be incompatible with GCC.
15269       # ICC 10 doesn't accept -KPIC any more.
15270       icc* | ifort*)
15271         lt_prog_compiler_wl='-Wl,'
15272         lt_prog_compiler_pic='-fPIC'
15273         lt_prog_compiler_static='-static'
15274         ;;
15275       # Lahey Fortran 8.1.
15276       lf95*)
15277         lt_prog_compiler_wl='-Wl,'
15278         lt_prog_compiler_pic='--shared'
15279         lt_prog_compiler_static='--static'
15280         ;;
15281       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15282         # Portland Group compilers (*not* the Pentium gcc compiler,
15283         # which looks to be a dead project)
15284         lt_prog_compiler_wl='-Wl,'
15285         lt_prog_compiler_pic='-fpic'
15286         lt_prog_compiler_static='-Bstatic'
15287         ;;
15288       ccc*)
15289         lt_prog_compiler_wl='-Wl,'
15290         # All Alpha code is PIC.
15291         lt_prog_compiler_static='-non_shared'
15292         ;;
15293       xl* | bgxl* | bgf* | mpixl*)
15294         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15295         lt_prog_compiler_wl='-Wl,'
15296         lt_prog_compiler_pic='-qpic'
15297         lt_prog_compiler_static='-qstaticlink'
15298         ;;
15299       *)
15300         case `$CC -V 2>&1 | sed 5q` in
15301         *Sun\ F* | *Sun*Fortran*)
15302           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15303           lt_prog_compiler_pic='-KPIC'
15304           lt_prog_compiler_static='-Bstatic'
15305           lt_prog_compiler_wl=''
15306           ;;
15307         *Sun\ C*)
15308           # Sun C 5.9
15309           lt_prog_compiler_pic='-KPIC'
15310           lt_prog_compiler_static='-Bstatic'
15311           lt_prog_compiler_wl='-Wl,'
15312           ;;
15313         esac
15314         ;;
15315       esac
15316       ;;
15317
15318     newsos6)
15319       lt_prog_compiler_pic='-KPIC'
15320       lt_prog_compiler_static='-Bstatic'
15321       ;;
15322
15323     *nto* | *qnx*)
15324       # QNX uses GNU C++, but need to define -shared option too, otherwise
15325       # it will coredump.
15326       lt_prog_compiler_pic='-fPIC -shared'
15327       ;;
15328
15329     osf3* | osf4* | osf5*)
15330       lt_prog_compiler_wl='-Wl,'
15331       # All OSF/1 code is PIC.
15332       lt_prog_compiler_static='-non_shared'
15333       ;;
15334
15335     rdos*)
15336       lt_prog_compiler_static='-non_shared'
15337       ;;
15338
15339     solaris*)
15340       lt_prog_compiler_pic='-KPIC'
15341       lt_prog_compiler_static='-Bstatic'
15342       case $cc_basename in
15343       f77* | f90* | f95*)
15344         lt_prog_compiler_wl='-Qoption ld ';;
15345       *)
15346         lt_prog_compiler_wl='-Wl,';;
15347       esac
15348       ;;
15349
15350     sunos4*)
15351       lt_prog_compiler_wl='-Qoption ld '
15352       lt_prog_compiler_pic='-PIC'
15353       lt_prog_compiler_static='-Bstatic'
15354       ;;
15355
15356     sysv4 | sysv4.2uw2* | sysv4.3*)
15357       lt_prog_compiler_wl='-Wl,'
15358       lt_prog_compiler_pic='-KPIC'
15359       lt_prog_compiler_static='-Bstatic'
15360       ;;
15361
15362     sysv4*MP*)
15363       if test -d /usr/nec ;then
15364         lt_prog_compiler_pic='-Kconform_pic'
15365         lt_prog_compiler_static='-Bstatic'
15366       fi
15367       ;;
15368
15369     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15370       lt_prog_compiler_wl='-Wl,'
15371       lt_prog_compiler_pic='-KPIC'
15372       lt_prog_compiler_static='-Bstatic'
15373       ;;
15374
15375     unicos*)
15376       lt_prog_compiler_wl='-Wl,'
15377       lt_prog_compiler_can_build_shared=no
15378       ;;
15379
15380     uts4*)
15381       lt_prog_compiler_pic='-pic'
15382       lt_prog_compiler_static='-Bstatic'
15383       ;;
15384
15385     *)
15386       lt_prog_compiler_can_build_shared=no
15387       ;;
15388     esac
15389   fi
15390
15391 case $host_os in
15392   # For platforms which do not support PIC, -DPIC is meaningless:
15393   *djgpp*)
15394     lt_prog_compiler_pic=
15395     ;;
15396   *)
15397     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15398     ;;
15399 esac
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15401 $as_echo "$lt_prog_compiler_pic" >&6; }
15402
15403
15404
15405
15406
15407
15408 #
15409 # Check to make sure the PIC flag actually works.
15410 #
15411 if test -n "$lt_prog_compiler_pic"; then
15412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15413 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15414 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15415   $as_echo_n "(cached) " >&6
15416 else
15417   lt_cv_prog_compiler_pic_works=no
15418    ac_outfile=conftest.$ac_objext
15419    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15420    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15421    # Insert the option either (1) after the last *FLAGS variable, or
15422    # (2) before a word containing "conftest.", or (3) at the end.
15423    # Note that $ac_compile itself does not contain backslashes and begins
15424    # with a dollar sign (not a hyphen), so the echo should work correctly.
15425    # The option is referenced via a variable to avoid confusing sed.
15426    lt_compile=`echo "$ac_compile" | $SED \
15427    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15428    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15429    -e 's:$: $lt_compiler_flag:'`
15430    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15431    (eval "$lt_compile" 2>conftest.err)
15432    ac_status=$?
15433    cat conftest.err >&5
15434    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435    if (exit $ac_status) && test -s "$ac_outfile"; then
15436      # The compiler can only warn and ignore the option if not recognized
15437      # So say no if there are warnings other than the usual output.
15438      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15439      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15440      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15441        lt_cv_prog_compiler_pic_works=yes
15442      fi
15443    fi
15444    $RM conftest*
15445
15446 fi
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15448 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15449
15450 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15451     case $lt_prog_compiler_pic in
15452      "" | " "*) ;;
15453      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15454      esac
15455 else
15456     lt_prog_compiler_pic=
15457      lt_prog_compiler_can_build_shared=no
15458 fi
15459
15460 fi
15461
15462
15463
15464
15465
15466
15467 #
15468 # Check to make sure the static flag actually works.
15469 #
15470 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15472 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15473 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15474   $as_echo_n "(cached) " >&6
15475 else
15476   lt_cv_prog_compiler_static_works=no
15477    save_LDFLAGS="$LDFLAGS"
15478    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15479    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15480    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15481      # The linker can only warn and ignore the option if not recognized
15482      # So say no if there are warnings
15483      if test -s conftest.err; then
15484        # Append any errors to the config.log.
15485        cat conftest.err 1>&5
15486        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15487        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15488        if diff conftest.exp conftest.er2 >/dev/null; then
15489          lt_cv_prog_compiler_static_works=yes
15490        fi
15491      else
15492        lt_cv_prog_compiler_static_works=yes
15493      fi
15494    fi
15495    $RM -r conftest*
15496    LDFLAGS="$save_LDFLAGS"
15497
15498 fi
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15500 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15501
15502 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15503     :
15504 else
15505     lt_prog_compiler_static=
15506 fi
15507
15508
15509
15510
15511
15512
15513
15514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15515 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15516 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15517   $as_echo_n "(cached) " >&6
15518 else
15519   lt_cv_prog_compiler_c_o=no
15520    $RM -r conftest 2>/dev/null
15521    mkdir conftest
15522    cd conftest
15523    mkdir out
15524    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15525
15526    lt_compiler_flag="-o out/conftest2.$ac_objext"
15527    # Insert the option either (1) after the last *FLAGS variable, or
15528    # (2) before a word containing "conftest.", or (3) at the end.
15529    # Note that $ac_compile itself does not contain backslashes and begins
15530    # with a dollar sign (not a hyphen), so the echo should work correctly.
15531    lt_compile=`echo "$ac_compile" | $SED \
15532    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15533    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15534    -e 's:$: $lt_compiler_flag:'`
15535    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15536    (eval "$lt_compile" 2>out/conftest.err)
15537    ac_status=$?
15538    cat out/conftest.err >&5
15539    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15541    then
15542      # The compiler can only warn and ignore the option if not recognized
15543      # So say no if there are warnings
15544      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15545      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15546      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15547        lt_cv_prog_compiler_c_o=yes
15548      fi
15549    fi
15550    chmod u+w . 2>&5
15551    $RM conftest*
15552    # SGI C++ compiler will create directory out/ii_files/ for
15553    # template instantiation
15554    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15555    $RM out/* && rmdir out
15556    cd ..
15557    $RM -r conftest
15558    $RM conftest*
15559
15560 fi
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15562 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15563
15564
15565
15566
15567
15568
15569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15570 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15571 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15572   $as_echo_n "(cached) " >&6
15573 else
15574   lt_cv_prog_compiler_c_o=no
15575    $RM -r conftest 2>/dev/null
15576    mkdir conftest
15577    cd conftest
15578    mkdir out
15579    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15580
15581    lt_compiler_flag="-o out/conftest2.$ac_objext"
15582    # Insert the option either (1) after the last *FLAGS variable, or
15583    # (2) before a word containing "conftest.", or (3) at the end.
15584    # Note that $ac_compile itself does not contain backslashes and begins
15585    # with a dollar sign (not a hyphen), so the echo should work correctly.
15586    lt_compile=`echo "$ac_compile" | $SED \
15587    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15588    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15589    -e 's:$: $lt_compiler_flag:'`
15590    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15591    (eval "$lt_compile" 2>out/conftest.err)
15592    ac_status=$?
15593    cat out/conftest.err >&5
15594    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15596    then
15597      # The compiler can only warn and ignore the option if not recognized
15598      # So say no if there are warnings
15599      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15600      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15601      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15602        lt_cv_prog_compiler_c_o=yes
15603      fi
15604    fi
15605    chmod u+w . 2>&5
15606    $RM conftest*
15607    # SGI C++ compiler will create directory out/ii_files/ for
15608    # template instantiation
15609    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15610    $RM out/* && rmdir out
15611    cd ..
15612    $RM -r conftest
15613    $RM conftest*
15614
15615 fi
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15617 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15618
15619
15620
15621
15622 hard_links="nottested"
15623 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15624   # do not overwrite the value of need_locks provided by the user
15625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15626 $as_echo_n "checking if we can lock with hard links... " >&6; }
15627   hard_links=yes
15628   $RM conftest*
15629   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15630   touch conftest.a
15631   ln conftest.a conftest.b 2>&5 || hard_links=no
15632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15634 $as_echo "$hard_links" >&6; }
15635   if test "$hard_links" = no; then
15636     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15637 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15638     need_locks=warn
15639   fi
15640 else
15641   need_locks=no
15642 fi
15643
15644
15645
15646
15647
15648
15649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15650 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15651
15652   runpath_var=
15653   allow_undefined_flag=
15654   always_export_symbols=no
15655   archive_cmds=
15656   archive_expsym_cmds=
15657   compiler_needs_object=no
15658   enable_shared_with_static_runtimes=no
15659   export_dynamic_flag_spec=
15660   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15661   hardcode_automatic=no
15662   hardcode_direct=no
15663   hardcode_direct_absolute=no
15664   hardcode_libdir_flag_spec=
15665   hardcode_libdir_flag_spec_ld=
15666   hardcode_libdir_separator=
15667   hardcode_minus_L=no
15668   hardcode_shlibpath_var=unsupported
15669   inherit_rpath=no
15670   link_all_deplibs=unknown
15671   module_cmds=
15672   module_expsym_cmds=
15673   old_archive_from_new_cmds=
15674   old_archive_from_expsyms_cmds=
15675   thread_safe_flag_spec=
15676   whole_archive_flag_spec=
15677   # include_expsyms should be a list of space-separated symbols to be *always*
15678   # included in the symbol list
15679   include_expsyms=
15680   # exclude_expsyms can be an extended regexp of symbols to exclude
15681   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15682   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15683   # as well as any symbol that contains `d'.
15684   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15685   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15686   # platforms (ab)use it in PIC code, but their linkers get confused if
15687   # the symbol is explicitly referenced.  Since portable code cannot
15688   # rely on this symbol name, it's probably fine to never include it in
15689   # preloaded symbol tables.
15690   # Exclude shared library initialization/finalization symbols.
15691   extract_expsyms_cmds=
15692
15693   case $host_os in
15694   cygwin* | mingw* | pw32* | cegcc*)
15695     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15696     # When not using gcc, we currently assume that we are using
15697     # Microsoft Visual C++.
15698     if test "$GCC" != yes; then
15699       with_gnu_ld=no
15700     fi
15701     ;;
15702   interix*)
15703     # we just hope/assume this is gcc and not c89 (= MSVC++)
15704     with_gnu_ld=yes
15705     ;;
15706   openbsd*)
15707     with_gnu_ld=no
15708     ;;
15709   esac
15710
15711   ld_shlibs=yes
15712
15713   # On some targets, GNU ld is compatible enough with the native linker
15714   # that we're better off using the native interface for both.
15715   lt_use_gnu_ld_interface=no
15716   if test "$with_gnu_ld" = yes; then
15717     case $host_os in
15718       aix*)
15719         # The AIX port of GNU ld has always aspired to compatibility
15720         # with the native linker.  However, as the warning in the GNU ld
15721         # block says, versions before 2.19.5* couldn't really create working
15722         # shared libraries, regardless of the interface used.
15723         case `$LD -v 2>&1` in
15724           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15725           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15726           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15727           *)
15728             lt_use_gnu_ld_interface=yes
15729             ;;
15730         esac
15731         ;;
15732       *)
15733         lt_use_gnu_ld_interface=yes
15734         ;;
15735     esac
15736   fi
15737
15738   if test "$lt_use_gnu_ld_interface" = yes; then
15739     # If archive_cmds runs LD, not CC, wlarc should be empty
15740     wlarc='${wl}'
15741
15742     # Set some defaults for GNU ld with shared library support. These
15743     # are reset later if shared libraries are not supported. Putting them
15744     # here allows them to be overridden if necessary.
15745     runpath_var=LD_RUN_PATH
15746     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15747     export_dynamic_flag_spec='${wl}--export-dynamic'
15748     # ancient GNU ld didn't support --whole-archive et. al.
15749     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15750       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15751     else
15752       whole_archive_flag_spec=
15753     fi
15754     supports_anon_versioning=no
15755     case `$LD -v 2>&1` in
15756       *GNU\ gold*) supports_anon_versioning=yes ;;
15757       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15758       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15759       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15760       *\ 2.11.*) ;; # other 2.11 versions
15761       *) supports_anon_versioning=yes ;;
15762     esac
15763
15764     # See if GNU ld supports shared libraries.
15765     case $host_os in
15766     aix[3-9]*)
15767       # On AIX/PPC, the GNU linker is very broken
15768       if test "$host_cpu" != ia64; then
15769         ld_shlibs=no
15770         cat <<_LT_EOF 1>&2
15771
15772 *** Warning: the GNU linker, at least up to release 2.19, is reported
15773 *** to be unable to reliably create shared libraries on AIX.
15774 *** Therefore, libtool is disabling shared libraries support.  If you
15775 *** really care for shared libraries, you may want to install binutils
15776 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15777 *** You will then need to restart the configuration process.
15778
15779 _LT_EOF
15780       fi
15781       ;;
15782
15783     amigaos*)
15784       case $host_cpu in
15785       powerpc)
15786             # see comment about AmigaOS4 .so support
15787             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15788             archive_expsym_cmds=''
15789         ;;
15790       m68k)
15791             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)'
15792             hardcode_libdir_flag_spec='-L$libdir'
15793             hardcode_minus_L=yes
15794         ;;
15795       esac
15796       ;;
15797
15798     beos*)
15799       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15800         allow_undefined_flag=unsupported
15801         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15802         # support --undefined.  This deserves some investigation.  FIXME
15803         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15804       else
15805         ld_shlibs=no
15806       fi
15807       ;;
15808
15809     cygwin* | mingw* | pw32* | cegcc*)
15810       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15811       # as there is no search path for DLLs.
15812       hardcode_libdir_flag_spec='-L$libdir'
15813       export_dynamic_flag_spec='${wl}--export-all-symbols'
15814       allow_undefined_flag=unsupported
15815       always_export_symbols=no
15816       enable_shared_with_static_runtimes=yes
15817       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15818
15819       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15820         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15821         # If the export-symbols file already is a .def file (1st line
15822         # is EXPORTS), use it as is; otherwise, prepend...
15823         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15824           cp $export_symbols $output_objdir/$soname.def;
15825         else
15826           echo EXPORTS > $output_objdir/$soname.def;
15827           cat $export_symbols >> $output_objdir/$soname.def;
15828         fi~
15829         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15830       else
15831         ld_shlibs=no
15832       fi
15833       ;;
15834
15835     haiku*)
15836       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15837       link_all_deplibs=yes
15838       ;;
15839
15840     interix[3-9]*)
15841       hardcode_direct=no
15842       hardcode_shlibpath_var=no
15843       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15844       export_dynamic_flag_spec='${wl}-E'
15845       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15846       # Instead, shared libraries are loaded at an image base (0x10000000 by
15847       # default) and relocated if they conflict, which is a slow very memory
15848       # consuming and fragmenting process.  To avoid this, we pick a random,
15849       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15850       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15851       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15852       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'
15853       ;;
15854
15855     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15856       tmp_diet=no
15857       if test "$host_os" = linux-dietlibc; then
15858         case $cc_basename in
15859           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15860         esac
15861       fi
15862       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15863          && test "$tmp_diet" = no
15864       then
15865         tmp_addflag=
15866         tmp_sharedflag='-shared'
15867         case $cc_basename,$host_cpu in
15868         pgcc*)                          # Portland Group C compiler
15869           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'
15870           tmp_addflag=' $pic_flag'
15871           ;;
15872         pgf77* | pgf90* | pgf95* | pgfortran*)
15873                                         # Portland Group f77 and f90 compilers
15874           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'
15875           tmp_addflag=' $pic_flag -Mnomain' ;;
15876         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15877           tmp_addflag=' -i_dynamic' ;;
15878         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15879           tmp_addflag=' -i_dynamic -nofor_main' ;;
15880         ifc* | ifort*)                  # Intel Fortran compiler
15881           tmp_addflag=' -nofor_main' ;;
15882         lf95*)                          # Lahey Fortran 8.1
15883           whole_archive_flag_spec=
15884           tmp_sharedflag='--shared' ;;
15885         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15886           tmp_sharedflag='-qmkshrobj'
15887           tmp_addflag= ;;
15888         nvcc*)  # Cuda Compiler Driver 2.2
15889           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'
15890           compiler_needs_object=yes
15891           ;;
15892         esac
15893         case `$CC -V 2>&1 | sed 5q` in
15894         *Sun\ C*)                       # Sun C 5.9
15895           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'
15896           compiler_needs_object=yes
15897           tmp_sharedflag='-G' ;;
15898         *Sun\ F*)                       # Sun Fortran 8.3
15899           tmp_sharedflag='-G' ;;
15900         esac
15901         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15902
15903         if test "x$supports_anon_versioning" = xyes; then
15904           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15905             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15906             echo "local: *; };" >> $output_objdir/$libname.ver~
15907             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15908         fi
15909
15910         case $cc_basename in
15911         xlf* | bgf* | bgxlf* | mpixlf*)
15912           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15913           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15914           hardcode_libdir_flag_spec=
15915           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15916           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15917           if test "x$supports_anon_versioning" = xyes; then
15918             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15919               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15920               echo "local: *; };" >> $output_objdir/$libname.ver~
15921               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15922           fi
15923           ;;
15924         esac
15925       else
15926         ld_shlibs=no
15927       fi
15928       ;;
15929
15930     netbsd*)
15931       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15932         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15933         wlarc=
15934       else
15935         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15936         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15937       fi
15938       ;;
15939
15940     solaris*)
15941       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15942         ld_shlibs=no
15943         cat <<_LT_EOF 1>&2
15944
15945 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15946 *** create shared libraries on Solaris systems.  Therefore, libtool
15947 *** is disabling shared libraries support.  We urge you to upgrade GNU
15948 *** binutils to release 2.9.1 or newer.  Another option is to modify
15949 *** your PATH or compiler configuration so that the native linker is
15950 *** used, and then restart.
15951
15952 _LT_EOF
15953       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15954         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15955         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15956       else
15957         ld_shlibs=no
15958       fi
15959       ;;
15960
15961     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15962       case `$LD -v 2>&1` in
15963         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15964         ld_shlibs=no
15965         cat <<_LT_EOF 1>&2
15966
15967 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15968 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15969 *** is disabling shared libraries support.  We urge you to upgrade GNU
15970 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15971 *** your PATH or compiler configuration so that the native linker is
15972 *** used, and then restart.
15973
15974 _LT_EOF
15975         ;;
15976         *)
15977           # For security reasons, it is highly recommended that you always
15978           # use absolute paths for naming shared libraries, and exclude the
15979           # DT_RUNPATH tag from executables and libraries.  But doing so
15980           # requires that you compile everything twice, which is a pain.
15981           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15982             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15983             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15984             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15985           else
15986             ld_shlibs=no
15987           fi
15988         ;;
15989       esac
15990       ;;
15991
15992     sunos4*)
15993       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15994       wlarc=
15995       hardcode_direct=yes
15996       hardcode_shlibpath_var=no
15997       ;;
15998
15999     *)
16000       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16001         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16002         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16003       else
16004         ld_shlibs=no
16005       fi
16006       ;;
16007     esac
16008
16009     if test "$ld_shlibs" = no; then
16010       runpath_var=
16011       hardcode_libdir_flag_spec=
16012       export_dynamic_flag_spec=
16013       whole_archive_flag_spec=
16014     fi
16015   else
16016     # PORTME fill in a description of your system's linker (not GNU ld)
16017     case $host_os in
16018     aix3*)
16019       allow_undefined_flag=unsupported
16020       always_export_symbols=yes
16021       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'
16022       # Note: this linker hardcodes the directories in LIBPATH if there
16023       # are no directories specified by -L.
16024       hardcode_minus_L=yes
16025       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16026         # Neither direct hardcoding nor static linking is supported with a
16027         # broken collect2.
16028         hardcode_direct=unsupported
16029       fi
16030       ;;
16031
16032     aix[4-9]*)
16033       if test "$host_cpu" = ia64; then
16034         # On IA64, the linker does run time linking by default, so we don't
16035         # have to do anything special.
16036         aix_use_runtimelinking=no
16037         exp_sym_flag='-Bexport'
16038         no_entry_flag=""
16039       else
16040         # If we're using GNU nm, then we don't want the "-C" option.
16041         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16042         # Also, AIX nm treats weak defined symbols like other global
16043         # defined symbols, whereas GNU nm marks them as "W".
16044         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16045           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'
16046         else
16047           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'
16048         fi
16049         aix_use_runtimelinking=no
16050
16051         # Test if we are trying to use run time linking or normal
16052         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16053         # need to do runtime linking.
16054         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16055           for ld_flag in $LDFLAGS; do
16056           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16057             aix_use_runtimelinking=yes
16058             break
16059           fi
16060           done
16061           ;;
16062         esac
16063
16064         exp_sym_flag='-bexport'
16065         no_entry_flag='-bnoentry'
16066       fi
16067
16068       # When large executables or shared objects are built, AIX ld can
16069       # have problems creating the table of contents.  If linking a library
16070       # or program results in "error TOC overflow" add -mminimal-toc to
16071       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16072       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16073
16074       archive_cmds=''
16075       hardcode_direct=yes
16076       hardcode_direct_absolute=yes
16077       hardcode_libdir_separator=':'
16078       link_all_deplibs=yes
16079       file_list_spec='${wl}-f,'
16080
16081       if test "$GCC" = yes; then
16082         case $host_os in aix4.[012]|aix4.[012].*)
16083         # We only want to do this on AIX 4.2 and lower, the check
16084         # below for broken collect2 doesn't work under 4.3+
16085           collect2name=`${CC} -print-prog-name=collect2`
16086           if test -f "$collect2name" &&
16087            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16088           then
16089           # We have reworked collect2
16090           :
16091           else
16092           # We have old collect2
16093           hardcode_direct=unsupported
16094           # It fails to find uninstalled libraries when the uninstalled
16095           # path is not listed in the libpath.  Setting hardcode_minus_L
16096           # to unsupported forces relinking
16097           hardcode_minus_L=yes
16098           hardcode_libdir_flag_spec='-L$libdir'
16099           hardcode_libdir_separator=
16100           fi
16101           ;;
16102         esac
16103         shared_flag='-shared'
16104         if test "$aix_use_runtimelinking" = yes; then
16105           shared_flag="$shared_flag "'${wl}-G'
16106         fi
16107       else
16108         # not using gcc
16109         if test "$host_cpu" = ia64; then
16110         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16111         # chokes on -Wl,-G. The following line is correct:
16112           shared_flag='-G'
16113         else
16114           if test "$aix_use_runtimelinking" = yes; then
16115             shared_flag='${wl}-G'
16116           else
16117             shared_flag='${wl}-bM:SRE'
16118           fi
16119         fi
16120       fi
16121
16122       export_dynamic_flag_spec='${wl}-bexpall'
16123       # It seems that -bexpall does not export symbols beginning with
16124       # underscore (_), so it is better to generate a list of symbols to export.
16125       always_export_symbols=yes
16126       if test "$aix_use_runtimelinking" = yes; then
16127         # Warning - without using the other runtime loading flags (-brtl),
16128         # -berok will link without error, but may produce a broken library.
16129         allow_undefined_flag='-berok'
16130         # Determine the default libpath from the value encoded in an
16131         # empty executable.
16132         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h.  */
16134
16135 int
16136 main ()
16137 {
16138
16139   ;
16140   return 0;
16141 }
16142 _ACEOF
16143 if ac_fn_c_try_link "$LINENO"; then :
16144
16145 lt_aix_libpath_sed='
16146     /Import File Strings/,/^$/ {
16147         /^0/ {
16148             s/^0  *\(.*\)$/\1/
16149             p
16150         }
16151     }'
16152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16153 # Check for a 64-bit object if we didn't find anything.
16154 if test -z "$aix_libpath"; then
16155   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16156 fi
16157 fi
16158 rm -f core conftest.err conftest.$ac_objext \
16159     conftest$ac_exeext conftest.$ac_ext
16160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16161
16162         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16163         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"
16164       else
16165         if test "$host_cpu" = ia64; then
16166           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16167           allow_undefined_flag="-z nodefs"
16168           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"
16169         else
16170          # Determine the default libpath from the value encoded in an
16171          # empty executable.
16172          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16173 /* end confdefs.h.  */
16174
16175 int
16176 main ()
16177 {
16178
16179   ;
16180   return 0;
16181 }
16182 _ACEOF
16183 if ac_fn_c_try_link "$LINENO"; then :
16184
16185 lt_aix_libpath_sed='
16186     /Import File Strings/,/^$/ {
16187         /^0/ {
16188             s/^0  *\(.*\)$/\1/
16189             p
16190         }
16191     }'
16192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16193 # Check for a 64-bit object if we didn't find anything.
16194 if test -z "$aix_libpath"; then
16195   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16196 fi
16197 fi
16198 rm -f core conftest.err conftest.$ac_objext \
16199     conftest$ac_exeext conftest.$ac_ext
16200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16201
16202          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16203           # Warning - without using the other run time loading flags,
16204           # -berok will link without error, but may produce a broken library.
16205           no_undefined_flag=' ${wl}-bernotok'
16206           allow_undefined_flag=' ${wl}-berok'
16207           if test "$with_gnu_ld" = yes; then
16208             # We only use this code for GNU lds that support --whole-archive.
16209             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16210           else
16211             # Exported symbols can be pulled into shared objects from archives
16212             whole_archive_flag_spec='$convenience'
16213           fi
16214           archive_cmds_need_lc=yes
16215           # This is similar to how AIX traditionally builds its shared libraries.
16216           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'
16217         fi
16218       fi
16219       ;;
16220
16221     amigaos*)
16222       case $host_cpu in
16223       powerpc)
16224             # see comment about AmigaOS4 .so support
16225             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16226             archive_expsym_cmds=''
16227         ;;
16228       m68k)
16229             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)'
16230             hardcode_libdir_flag_spec='-L$libdir'
16231             hardcode_minus_L=yes
16232         ;;
16233       esac
16234       ;;
16235
16236     bsdi[45]*)
16237       export_dynamic_flag_spec=-rdynamic
16238       ;;
16239
16240     cygwin* | mingw* | pw32* | cegcc*)
16241       # When not using gcc, we currently assume that we are using
16242       # Microsoft Visual C++.
16243       # hardcode_libdir_flag_spec is actually meaningless, as there is
16244       # no search path for DLLs.
16245       hardcode_libdir_flag_spec=' '
16246       allow_undefined_flag=unsupported
16247       # Tell ltmain to make .lib files, not .a files.
16248       libext=lib
16249       # Tell ltmain to make .dll files, not .so files.
16250       shrext_cmds=".dll"
16251       # FIXME: Setting linknames here is a bad hack.
16252       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16253       # The linker will automatically build a .lib file if we build a DLL.
16254       old_archive_from_new_cmds='true'
16255       # FIXME: Should let the user specify the lib program.
16256       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16257       fix_srcfile_path='`cygpath -w "$srcfile"`'
16258       enable_shared_with_static_runtimes=yes
16259       ;;
16260
16261     darwin* | rhapsody*)
16262
16263
16264   archive_cmds_need_lc=no
16265   hardcode_direct=no
16266   hardcode_automatic=yes
16267   hardcode_shlibpath_var=unsupported
16268   if test "$lt_cv_ld_force_load" = "yes"; then
16269     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\"`'
16270   else
16271     whole_archive_flag_spec=''
16272   fi
16273   link_all_deplibs=yes
16274   allow_undefined_flag="$_lt_dar_allow_undefined"
16275   case $cc_basename in
16276      ifort*) _lt_dar_can_shared=yes ;;
16277      *) _lt_dar_can_shared=$GCC ;;
16278   esac
16279   if test "$_lt_dar_can_shared" = "yes"; then
16280     output_verbose_link_cmd=func_echo_all
16281     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16282     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16283     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}"
16284     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}"
16285
16286   else
16287   ld_shlibs=no
16288   fi
16289
16290       ;;
16291
16292     dgux*)
16293       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16294       hardcode_libdir_flag_spec='-L$libdir'
16295       hardcode_shlibpath_var=no
16296       ;;
16297
16298     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16299     # support.  Future versions do this automatically, but an explicit c++rt0.o
16300     # does not break anything, and helps significantly (at the cost of a little
16301     # extra space).
16302     freebsd2.2*)
16303       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16304       hardcode_libdir_flag_spec='-R$libdir'
16305       hardcode_direct=yes
16306       hardcode_shlibpath_var=no
16307       ;;
16308
16309     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16310     freebsd2*)
16311       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16312       hardcode_direct=yes
16313       hardcode_minus_L=yes
16314       hardcode_shlibpath_var=no
16315       ;;
16316
16317     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16318     freebsd* | dragonfly*)
16319       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16320       hardcode_libdir_flag_spec='-R$libdir'
16321       hardcode_direct=yes
16322       hardcode_shlibpath_var=no
16323       ;;
16324
16325     hpux9*)
16326       if test "$GCC" = yes; then
16327         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'
16328       else
16329         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'
16330       fi
16331       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16332       hardcode_libdir_separator=:
16333       hardcode_direct=yes
16334
16335       # hardcode_minus_L: Not really in the search PATH,
16336       # but as the default location of the library.
16337       hardcode_minus_L=yes
16338       export_dynamic_flag_spec='${wl}-E'
16339       ;;
16340
16341     hpux10*)
16342       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16343         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16344       else
16345         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16346       fi
16347       if test "$with_gnu_ld" = no; then
16348         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16349         hardcode_libdir_flag_spec_ld='+b $libdir'
16350         hardcode_libdir_separator=:
16351         hardcode_direct=yes
16352         hardcode_direct_absolute=yes
16353         export_dynamic_flag_spec='${wl}-E'
16354         # hardcode_minus_L: Not really in the search PATH,
16355         # but as the default location of the library.
16356         hardcode_minus_L=yes
16357       fi
16358       ;;
16359
16360     hpux11*)
16361       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16362         case $host_cpu in
16363         hppa*64*)
16364           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16365           ;;
16366         ia64*)
16367           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16368           ;;
16369         *)
16370           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16371           ;;
16372         esac
16373       else
16374         case $host_cpu in
16375         hppa*64*)
16376           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16377           ;;
16378         ia64*)
16379           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16380           ;;
16381         *)
16382
16383           # Older versions of the 11.00 compiler do not understand -b yet
16384           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16385           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16386 $as_echo_n "checking if $CC understands -b... " >&6; }
16387 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16388   $as_echo_n "(cached) " >&6
16389 else
16390   lt_cv_prog_compiler__b=no
16391    save_LDFLAGS="$LDFLAGS"
16392    LDFLAGS="$LDFLAGS -b"
16393    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16394    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16395      # The linker can only warn and ignore the option if not recognized
16396      # So say no if there are warnings
16397      if test -s conftest.err; then
16398        # Append any errors to the config.log.
16399        cat conftest.err 1>&5
16400        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16401        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16402        if diff conftest.exp conftest.er2 >/dev/null; then
16403          lt_cv_prog_compiler__b=yes
16404        fi
16405      else
16406        lt_cv_prog_compiler__b=yes
16407      fi
16408    fi
16409    $RM -r conftest*
16410    LDFLAGS="$save_LDFLAGS"
16411
16412 fi
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16414 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16415
16416 if test x"$lt_cv_prog_compiler__b" = xyes; then
16417     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16418 else
16419     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16420 fi
16421
16422           ;;
16423         esac
16424       fi
16425       if test "$with_gnu_ld" = no; then
16426         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16427         hardcode_libdir_separator=:
16428
16429         case $host_cpu in
16430         hppa*64*|ia64*)
16431           hardcode_direct=no
16432           hardcode_shlibpath_var=no
16433           ;;
16434         *)
16435           hardcode_direct=yes
16436           hardcode_direct_absolute=yes
16437           export_dynamic_flag_spec='${wl}-E'
16438
16439           # hardcode_minus_L: Not really in the search PATH,
16440           # but as the default location of the library.
16441           hardcode_minus_L=yes
16442           ;;
16443         esac
16444       fi
16445       ;;
16446
16447     irix5* | irix6* | nonstopux*)
16448       if test "$GCC" = yes; then
16449         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'
16450         # Try to use the -exported_symbol ld option, if it does not
16451         # work, assume that -exports_file does not work either and
16452         # implicitly export all symbols.
16453         save_LDFLAGS="$LDFLAGS"
16454         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16455         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h.  */
16457 int foo(void) {}
16458 _ACEOF
16459 if ac_fn_c_try_link "$LINENO"; then :
16460   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'
16461
16462 fi
16463 rm -f core conftest.err conftest.$ac_objext \
16464     conftest$ac_exeext conftest.$ac_ext
16465         LDFLAGS="$save_LDFLAGS"
16466       else
16467         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'
16468         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'
16469       fi
16470       archive_cmds_need_lc='no'
16471       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16472       hardcode_libdir_separator=:
16473       inherit_rpath=yes
16474       link_all_deplibs=yes
16475       ;;
16476
16477     netbsd*)
16478       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16479         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16480       else
16481         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16482       fi
16483       hardcode_libdir_flag_spec='-R$libdir'
16484       hardcode_direct=yes
16485       hardcode_shlibpath_var=no
16486       ;;
16487
16488     newsos6)
16489       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16490       hardcode_direct=yes
16491       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16492       hardcode_libdir_separator=:
16493       hardcode_shlibpath_var=no
16494       ;;
16495
16496     *nto* | *qnx*)
16497       ;;
16498
16499     openbsd*)
16500       if test -f /usr/libexec/ld.so; then
16501         hardcode_direct=yes
16502         hardcode_shlibpath_var=no
16503         hardcode_direct_absolute=yes
16504         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16505           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16506           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16507           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16508           export_dynamic_flag_spec='${wl}-E'
16509         else
16510           case $host_os in
16511            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16512              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16513              hardcode_libdir_flag_spec='-R$libdir'
16514              ;;
16515            *)
16516              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16517              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16518              ;;
16519           esac
16520         fi
16521       else
16522         ld_shlibs=no
16523       fi
16524       ;;
16525
16526     os2*)
16527       hardcode_libdir_flag_spec='-L$libdir'
16528       hardcode_minus_L=yes
16529       allow_undefined_flag=unsupported
16530       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'
16531       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16532       ;;
16533
16534     osf3*)
16535       if test "$GCC" = yes; then
16536         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16537         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'
16538       else
16539         allow_undefined_flag=' -expect_unresolved \*'
16540         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'
16541       fi
16542       archive_cmds_need_lc='no'
16543       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16544       hardcode_libdir_separator=:
16545       ;;
16546
16547     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16548       if test "$GCC" = yes; then
16549         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16550         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'
16551         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16552       else
16553         allow_undefined_flag=' -expect_unresolved \*'
16554         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'
16555         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~
16556         $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'
16557
16558         # Both c and cxx compiler support -rpath directly
16559         hardcode_libdir_flag_spec='-rpath $libdir'
16560       fi
16561       archive_cmds_need_lc='no'
16562       hardcode_libdir_separator=:
16563       ;;
16564
16565     solaris*)
16566       no_undefined_flag=' -z defs'
16567       if test "$GCC" = yes; then
16568         wlarc='${wl}'
16569         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16570         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16571           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16572       else
16573         case `$CC -V 2>&1` in
16574         *"Compilers 5.0"*)
16575           wlarc=''
16576           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16577           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16578           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16579           ;;
16580         *)
16581           wlarc='${wl}'
16582           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16583           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16584           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16585           ;;
16586         esac
16587       fi
16588       hardcode_libdir_flag_spec='-R$libdir'
16589       hardcode_shlibpath_var=no
16590       case $host_os in
16591       solaris2.[0-5] | solaris2.[0-5].*) ;;
16592       *)
16593         # The compiler driver will combine and reorder linker options,
16594         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16595         # but is careful enough not to reorder.
16596         # Supported since Solaris 2.6 (maybe 2.5.1?)
16597         if test "$GCC" = yes; then
16598           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16599         else
16600           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16601         fi
16602         ;;
16603       esac
16604       link_all_deplibs=yes
16605       ;;
16606
16607     sunos4*)
16608       if test "x$host_vendor" = xsequent; then
16609         # Use $CC to link under sequent, because it throws in some extra .o
16610         # files that make .init and .fini sections work.
16611         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16612       else
16613         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16614       fi
16615       hardcode_libdir_flag_spec='-L$libdir'
16616       hardcode_direct=yes
16617       hardcode_minus_L=yes
16618       hardcode_shlibpath_var=no
16619       ;;
16620
16621     sysv4)
16622       case $host_vendor in
16623         sni)
16624           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625           hardcode_direct=yes # is this really true???
16626         ;;
16627         siemens)
16628           ## LD is ld it makes a PLAMLIB
16629           ## CC just makes a GrossModule.
16630           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16631           reload_cmds='$CC -r -o $output$reload_objs'
16632           hardcode_direct=no
16633         ;;
16634         motorola)
16635           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16637         ;;
16638       esac
16639       runpath_var='LD_RUN_PATH'
16640       hardcode_shlibpath_var=no
16641       ;;
16642
16643     sysv4.3*)
16644       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16645       hardcode_shlibpath_var=no
16646       export_dynamic_flag_spec='-Bexport'
16647       ;;
16648
16649     sysv4*MP*)
16650       if test -d /usr/nec; then
16651         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16652         hardcode_shlibpath_var=no
16653         runpath_var=LD_RUN_PATH
16654         hardcode_runpath_var=yes
16655         ld_shlibs=yes
16656       fi
16657       ;;
16658
16659     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16660       no_undefined_flag='${wl}-z,text'
16661       archive_cmds_need_lc=no
16662       hardcode_shlibpath_var=no
16663       runpath_var='LD_RUN_PATH'
16664
16665       if test "$GCC" = yes; then
16666         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16667         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16668       else
16669         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16670         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16671       fi
16672       ;;
16673
16674     sysv5* | sco3.2v5* | sco5v6*)
16675       # Note: We can NOT use -z defs as we might desire, because we do not
16676       # link with -lc, and that would cause any symbols used from libc to
16677       # always be unresolved, which means just about no library would
16678       # ever link correctly.  If we're not using GNU ld we use -z text
16679       # though, which does catch some bad symbols but isn't as heavy-handed
16680       # as -z defs.
16681       no_undefined_flag='${wl}-z,text'
16682       allow_undefined_flag='${wl}-z,nodefs'
16683       archive_cmds_need_lc=no
16684       hardcode_shlibpath_var=no
16685       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16686       hardcode_libdir_separator=':'
16687       link_all_deplibs=yes
16688       export_dynamic_flag_spec='${wl}-Bexport'
16689       runpath_var='LD_RUN_PATH'
16690
16691       if test "$GCC" = yes; then
16692         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16693         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16694       else
16695         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16696         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16697       fi
16698       ;;
16699
16700     uts4*)
16701       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16702       hardcode_libdir_flag_spec='-L$libdir'
16703       hardcode_shlibpath_var=no
16704       ;;
16705
16706     *)
16707       ld_shlibs=no
16708       ;;
16709     esac
16710
16711     if test x$host_vendor = xsni; then
16712       case $host in
16713       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16714         export_dynamic_flag_spec='${wl}-Blargedynsym'
16715         ;;
16716       esac
16717     fi
16718   fi
16719
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16721 $as_echo "$ld_shlibs" >&6; }
16722 test "$ld_shlibs" = no && can_build_shared=no
16723
16724 with_gnu_ld=$with_gnu_ld
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740 #
16741 # Do we need to explicitly link libc?
16742 #
16743 case "x$archive_cmds_need_lc" in
16744 x|xyes)
16745   # Assume -lc should be added
16746   archive_cmds_need_lc=yes
16747
16748   if test "$enable_shared" = yes && test "$GCC" = yes; then
16749     case $archive_cmds in
16750     *'~'*)
16751       # FIXME: we may have to deal with multi-command sequences.
16752       ;;
16753     '$CC '*)
16754       # Test whether the compiler implicitly links with -lc since on some
16755       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16756       # to ld, don't add -lc before -lgcc.
16757       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16758 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16759 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16760   $as_echo_n "(cached) " >&6
16761 else
16762   $RM conftest*
16763         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16764
16765         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16766   (eval $ac_compile) 2>&5
16767   ac_status=$?
16768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16769   test $ac_status = 0; } 2>conftest.err; then
16770           soname=conftest
16771           lib=conftest
16772           libobjs=conftest.$ac_objext
16773           deplibs=
16774           wl=$lt_prog_compiler_wl
16775           pic_flag=$lt_prog_compiler_pic
16776           compiler_flags=-v
16777           linker_flags=-v
16778           verstring=
16779           output_objdir=.
16780           libname=conftest
16781           lt_save_allow_undefined_flag=$allow_undefined_flag
16782           allow_undefined_flag=
16783           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16784   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16785   ac_status=$?
16786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16787   test $ac_status = 0; }
16788           then
16789             lt_cv_archive_cmds_need_lc=no
16790           else
16791             lt_cv_archive_cmds_need_lc=yes
16792           fi
16793           allow_undefined_flag=$lt_save_allow_undefined_flag
16794         else
16795           cat conftest.err 1>&5
16796         fi
16797         $RM conftest*
16798
16799 fi
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16801 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16802       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16803       ;;
16804     esac
16805   fi
16806   ;;
16807 esac
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16966 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16967
16968 if test "$GCC" = yes; then
16969   case $host_os in
16970     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16971     *) lt_awk_arg="/^libraries:/" ;;
16972   esac
16973   case $host_os in
16974     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16975     *) lt_sed_strip_eq="s,=/,/,g" ;;
16976   esac
16977   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16978   case $lt_search_path_spec in
16979   *\;*)
16980     # if the path contains ";" then we assume it to be the separator
16981     # otherwise default to the standard path separator (i.e. ":") - it is
16982     # assumed that no part of a normal pathname contains ";" but that should
16983     # okay in the real world where ";" in dirpaths is itself problematic.
16984     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16985     ;;
16986   *)
16987     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16988     ;;
16989   esac
16990   # Ok, now we have the path, separated by spaces, we can step through it
16991   # and add multilib dir if necessary.
16992   lt_tmp_lt_search_path_spec=
16993   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16994   for lt_sys_path in $lt_search_path_spec; do
16995     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16996       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16997     else
16998       test -d "$lt_sys_path" && \
16999         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17000     fi
17001   done
17002   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17003 BEGIN {RS=" "; FS="/|\n";} {
17004   lt_foo="";
17005   lt_count=0;
17006   for (lt_i = NF; lt_i > 0; lt_i--) {
17007     if ($lt_i != "" && $lt_i != ".") {
17008       if ($lt_i == "..") {
17009         lt_count++;
17010       } else {
17011         if (lt_count == 0) {
17012           lt_foo="/" $lt_i lt_foo;
17013         } else {
17014           lt_count--;
17015         }
17016       }
17017     }
17018   }
17019   if (lt_foo != "") { lt_freq[lt_foo]++; }
17020   if (lt_freq[lt_foo] == 1) { print lt_foo; }
17021 }'`
17022   # AWK program above erroneously prepends '/' to C:/dos/paths
17023   # for these hosts.
17024   case $host_os in
17025     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17026       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17027   esac
17028   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17029 else
17030   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17031 fi
17032 library_names_spec=
17033 libname_spec='lib$name'
17034 soname_spec=
17035 shrext_cmds=".so"
17036 postinstall_cmds=
17037 postuninstall_cmds=
17038 finish_cmds=
17039 finish_eval=
17040 shlibpath_var=
17041 shlibpath_overrides_runpath=unknown
17042 version_type=none
17043 dynamic_linker="$host_os ld.so"
17044 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17045 need_lib_prefix=unknown
17046 hardcode_into_libs=no
17047
17048 # when you set need_version to no, make sure it does not cause -set_version
17049 # flags to be left without arguments
17050 need_version=unknown
17051
17052 case $host_os in
17053 aix3*)
17054   version_type=linux
17055   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17056   shlibpath_var=LIBPATH
17057
17058   # AIX 3 has no versioning support, so we append a major version to the name.
17059   soname_spec='${libname}${release}${shared_ext}$major'
17060   ;;
17061
17062 aix[4-9]*)
17063   version_type=linux
17064   need_lib_prefix=no
17065   need_version=no
17066   hardcode_into_libs=yes
17067   if test "$host_cpu" = ia64; then
17068     # AIX 5 supports IA64
17069     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17070     shlibpath_var=LD_LIBRARY_PATH
17071   else
17072     # With GCC up to 2.95.x, collect2 would create an import file
17073     # for dependence libraries.  The import file would start with
17074     # the line `#! .'.  This would cause the generated library to
17075     # depend on `.', always an invalid library.  This was fixed in
17076     # development snapshots of GCC prior to 3.0.
17077     case $host_os in
17078       aix4 | aix4.[01] | aix4.[01].*)
17079       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17080            echo ' yes '
17081            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17082         :
17083       else
17084         can_build_shared=no
17085       fi
17086       ;;
17087     esac
17088     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17089     # soname into executable. Probably we can add versioning support to
17090     # collect2, so additional links can be useful in future.
17091     if test "$aix_use_runtimelinking" = yes; then
17092       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17093       # instead of lib<name>.a to let people know that these are not
17094       # typical AIX shared libraries.
17095       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17096     else
17097       # We preserve .a as extension for shared libraries through AIX4.2
17098       # and later when we are not doing run time linking.
17099       library_names_spec='${libname}${release}.a $libname.a'
17100       soname_spec='${libname}${release}${shared_ext}$major'
17101     fi
17102     shlibpath_var=LIBPATH
17103   fi
17104   ;;
17105
17106 amigaos*)
17107   case $host_cpu in
17108   powerpc)
17109     # Since July 2007 AmigaOS4 officially supports .so libraries.
17110     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17112     ;;
17113   m68k)
17114     library_names_spec='$libname.ixlibrary $libname.a'
17115     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17116     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'
17117     ;;
17118   esac
17119   ;;
17120
17121 beos*)
17122   library_names_spec='${libname}${shared_ext}'
17123   dynamic_linker="$host_os ld.so"
17124   shlibpath_var=LIBRARY_PATH
17125   ;;
17126
17127 bsdi[45]*)
17128   version_type=linux
17129   need_version=no
17130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131   soname_spec='${libname}${release}${shared_ext}$major'
17132   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17133   shlibpath_var=LD_LIBRARY_PATH
17134   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17135   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17136   # the default ld.so.conf also contains /usr/contrib/lib and
17137   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17138   # libtool to hard-code these into programs
17139   ;;
17140
17141 cygwin* | mingw* | pw32* | cegcc*)
17142   version_type=windows
17143   shrext_cmds=".dll"
17144   need_version=no
17145   need_lib_prefix=no
17146
17147   case $GCC,$host_os in
17148   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17149     library_names_spec='$libname.dll.a'
17150     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17151     postinstall_cmds='base_file=`basename \${file}`~
17152       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17153       dldir=$destdir/`dirname \$dlpath`~
17154       test -d \$dldir || mkdir -p \$dldir~
17155       $install_prog $dir/$dlname \$dldir/$dlname~
17156       chmod a+x \$dldir/$dlname~
17157       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17158         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17159       fi'
17160     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17161       dlpath=$dir/\$dldll~
17162        $RM \$dlpath'
17163     shlibpath_overrides_runpath=yes
17164
17165     case $host_os in
17166     cygwin*)
17167       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17168       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17169
17170       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17171       ;;
17172     mingw* | cegcc*)
17173       # MinGW DLLs use traditional 'lib' prefix
17174       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17175       ;;
17176     pw32*)
17177       # pw32 DLLs use 'pw' prefix rather than 'lib'
17178       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17179       ;;
17180     esac
17181     ;;
17182
17183   *)
17184     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17185     ;;
17186   esac
17187   dynamic_linker='Win32 ld.exe'
17188   # FIXME: first we should search . and the directory the executable is in
17189   shlibpath_var=PATH
17190   ;;
17191
17192 darwin* | rhapsody*)
17193   dynamic_linker="$host_os dyld"
17194   version_type=darwin
17195   need_lib_prefix=no
17196   need_version=no
17197   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17198   soname_spec='${libname}${release}${major}$shared_ext'
17199   shlibpath_overrides_runpath=yes
17200   shlibpath_var=DYLD_LIBRARY_PATH
17201   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17202
17203   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17204   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17205   ;;
17206
17207 dgux*)
17208   version_type=linux
17209   need_lib_prefix=no
17210   need_version=no
17211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17212   soname_spec='${libname}${release}${shared_ext}$major'
17213   shlibpath_var=LD_LIBRARY_PATH
17214   ;;
17215
17216 freebsd* | dragonfly*)
17217   # DragonFly does not have aout.  When/if they implement a new
17218   # versioning mechanism, adjust this.
17219   if test -x /usr/bin/objformat; then
17220     objformat=`/usr/bin/objformat`
17221   else
17222     case $host_os in
17223     freebsd[123]*) objformat=aout ;;
17224     *) objformat=elf ;;
17225     esac
17226   fi
17227   version_type=freebsd-$objformat
17228   case $version_type in
17229     freebsd-elf*)
17230       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17231       need_version=no
17232       need_lib_prefix=no
17233       ;;
17234     freebsd-*)
17235       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17236       need_version=yes
17237       ;;
17238   esac
17239   shlibpath_var=LD_LIBRARY_PATH
17240   case $host_os in
17241   freebsd2*)
17242     shlibpath_overrides_runpath=yes
17243     ;;
17244   freebsd3.[01]* | freebsdelf3.[01]*)
17245     shlibpath_overrides_runpath=yes
17246     hardcode_into_libs=yes
17247     ;;
17248   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17249   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17250     shlibpath_overrides_runpath=no
17251     hardcode_into_libs=yes
17252     ;;
17253   *) # from 4.6 on, and DragonFly
17254     shlibpath_overrides_runpath=yes
17255     hardcode_into_libs=yes
17256     ;;
17257   esac
17258   ;;
17259
17260 gnu*)
17261   version_type=linux
17262   need_lib_prefix=no
17263   need_version=no
17264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17265   soname_spec='${libname}${release}${shared_ext}$major'
17266   shlibpath_var=LD_LIBRARY_PATH
17267   hardcode_into_libs=yes
17268   ;;
17269
17270 haiku*)
17271   version_type=linux
17272   need_lib_prefix=no
17273   need_version=no
17274   dynamic_linker="$host_os runtime_loader"
17275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17276   soname_spec='${libname}${release}${shared_ext}$major'
17277   shlibpath_var=LIBRARY_PATH
17278   shlibpath_overrides_runpath=yes
17279   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17280   hardcode_into_libs=yes
17281   ;;
17282
17283 hpux9* | hpux10* | hpux11*)
17284   # Give a soname corresponding to the major version so that dld.sl refuses to
17285   # link against other versions.
17286   version_type=sunos
17287   need_lib_prefix=no
17288   need_version=no
17289   case $host_cpu in
17290   ia64*)
17291     shrext_cmds='.so'
17292     hardcode_into_libs=yes
17293     dynamic_linker="$host_os dld.so"
17294     shlibpath_var=LD_LIBRARY_PATH
17295     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17297     soname_spec='${libname}${release}${shared_ext}$major'
17298     if test "X$HPUX_IA64_MODE" = X32; then
17299       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17300     else
17301       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17302     fi
17303     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17304     ;;
17305   hppa*64*)
17306     shrext_cmds='.sl'
17307     hardcode_into_libs=yes
17308     dynamic_linker="$host_os dld.sl"
17309     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17310     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312     soname_spec='${libname}${release}${shared_ext}$major'
17313     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17314     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17315     ;;
17316   *)
17317     shrext_cmds='.sl'
17318     dynamic_linker="$host_os dld.sl"
17319     shlibpath_var=SHLIB_PATH
17320     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322     soname_spec='${libname}${release}${shared_ext}$major'
17323     ;;
17324   esac
17325   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17326   postinstall_cmds='chmod 555 $lib'
17327   # or fails outright, so override atomically:
17328   install_override_mode=555
17329   ;;
17330
17331 interix[3-9]*)
17332   version_type=linux
17333   need_lib_prefix=no
17334   need_version=no
17335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17336   soname_spec='${libname}${release}${shared_ext}$major'
17337   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17338   shlibpath_var=LD_LIBRARY_PATH
17339   shlibpath_overrides_runpath=no
17340   hardcode_into_libs=yes
17341   ;;
17342
17343 irix5* | irix6* | nonstopux*)
17344   case $host_os in
17345     nonstopux*) version_type=nonstopux ;;
17346     *)
17347         if test "$lt_cv_prog_gnu_ld" = yes; then
17348                 version_type=linux
17349         else
17350                 version_type=irix
17351         fi ;;
17352   esac
17353   need_lib_prefix=no
17354   need_version=no
17355   soname_spec='${libname}${release}${shared_ext}$major'
17356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17357   case $host_os in
17358   irix5* | nonstopux*)
17359     libsuff= shlibsuff=
17360     ;;
17361   *)
17362     case $LD in # libtool.m4 will add one of these switches to LD
17363     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17364       libsuff= shlibsuff= libmagic=32-bit;;
17365     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17366       libsuff=32 shlibsuff=N32 libmagic=N32;;
17367     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17368       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17369     *) libsuff= shlibsuff= libmagic=never-match;;
17370     esac
17371     ;;
17372   esac
17373   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17374   shlibpath_overrides_runpath=no
17375   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17376   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17377   hardcode_into_libs=yes
17378   ;;
17379
17380 # No shared lib support for Linux oldld, aout, or coff.
17381 linux*oldld* | linux*aout* | linux*coff*)
17382   dynamic_linker=no
17383   ;;
17384
17385 # This must be Linux ELF.
17386 linux* | k*bsd*-gnu | kopensolaris*-gnu)
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17393   shlibpath_var=LD_LIBRARY_PATH
17394   shlibpath_overrides_runpath=no
17395
17396   # Some binutils ld are patched to set DT_RUNPATH
17397   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17398   $as_echo_n "(cached) " >&6
17399 else
17400   lt_cv_shlibpath_overrides_runpath=no
17401     save_LDFLAGS=$LDFLAGS
17402     save_libdir=$libdir
17403     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17404          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17405     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406 /* end confdefs.h.  */
17407
17408 int
17409 main ()
17410 {
17411
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 if ac_fn_c_try_link "$LINENO"; then :
17417   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17418   lt_cv_shlibpath_overrides_runpath=yes
17419 fi
17420 fi
17421 rm -f core conftest.err conftest.$ac_objext \
17422     conftest$ac_exeext conftest.$ac_ext
17423     LDFLAGS=$save_LDFLAGS
17424     libdir=$save_libdir
17425
17426 fi
17427
17428   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17429
17430   # This implies no fast_install, which is unacceptable.
17431   # Some rework will be needed to allow for fast_install
17432   # before this can be enabled.
17433   hardcode_into_libs=yes
17434
17435   # Append ld.so.conf contents to the search path
17436   if test -f /etc/ld.so.conf; then
17437     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' ' '`
17438     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17439   fi
17440
17441   # We used to test for /lib/ld.so.1 and disable shared libraries on
17442   # powerpc, because MkLinux only supported shared libraries with the
17443   # GNU dynamic linker.  Since this was broken with cross compilers,
17444   # most powerpc-linux boxes support dynamic linking these days and
17445   # people can always --disable-shared, the test was removed, and we
17446   # assume the GNU/Linux dynamic linker is in use.
17447   dynamic_linker='GNU/Linux ld.so'
17448   ;;
17449
17450 netbsd*)
17451   version_type=sunos
17452   need_lib_prefix=no
17453   need_version=no
17454   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17456     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17457     dynamic_linker='NetBSD (a.out) ld.so'
17458   else
17459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17460     soname_spec='${libname}${release}${shared_ext}$major'
17461     dynamic_linker='NetBSD ld.elf_so'
17462   fi
17463   shlibpath_var=LD_LIBRARY_PATH
17464   shlibpath_overrides_runpath=yes
17465   hardcode_into_libs=yes
17466   ;;
17467
17468 newsos6)
17469   version_type=linux
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=yes
17473   ;;
17474
17475 *nto* | *qnx*)
17476   version_type=qnx
17477   need_lib_prefix=no
17478   need_version=no
17479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17480   soname_spec='${libname}${release}${shared_ext}$major'
17481   shlibpath_var=LD_LIBRARY_PATH
17482   shlibpath_overrides_runpath=no
17483   hardcode_into_libs=yes
17484   dynamic_linker='ldqnx.so'
17485   ;;
17486
17487 openbsd*)
17488   version_type=sunos
17489   sys_lib_dlsearch_path_spec="/usr/lib"
17490   need_lib_prefix=no
17491   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17492   case $host_os in
17493     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17494     *)                          need_version=no  ;;
17495   esac
17496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17497   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17498   shlibpath_var=LD_LIBRARY_PATH
17499   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17500     case $host_os in
17501       openbsd2.[89] | openbsd2.[89].*)
17502         shlibpath_overrides_runpath=no
17503         ;;
17504       *)
17505         shlibpath_overrides_runpath=yes
17506         ;;
17507       esac
17508   else
17509     shlibpath_overrides_runpath=yes
17510   fi
17511   ;;
17512
17513 os2*)
17514   libname_spec='$name'
17515   shrext_cmds=".dll"
17516   need_lib_prefix=no
17517   library_names_spec='$libname${shared_ext} $libname.a'
17518   dynamic_linker='OS/2 ld.exe'
17519   shlibpath_var=LIBPATH
17520   ;;
17521
17522 osf3* | osf4* | osf5*)
17523   version_type=osf
17524   need_lib_prefix=no
17525   need_version=no
17526   soname_spec='${libname}${release}${shared_ext}$major'
17527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528   shlibpath_var=LD_LIBRARY_PATH
17529   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17530   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17531   ;;
17532
17533 rdos*)
17534   dynamic_linker=no
17535   ;;
17536
17537 solaris*)
17538   version_type=linux
17539   need_lib_prefix=no
17540   need_version=no
17541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17542   soname_spec='${libname}${release}${shared_ext}$major'
17543   shlibpath_var=LD_LIBRARY_PATH
17544   shlibpath_overrides_runpath=yes
17545   hardcode_into_libs=yes
17546   # ldd complains unless libraries are executable
17547   postinstall_cmds='chmod +x $lib'
17548   ;;
17549
17550 sunos4*)
17551   version_type=sunos
17552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17553   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17554   shlibpath_var=LD_LIBRARY_PATH
17555   shlibpath_overrides_runpath=yes
17556   if test "$with_gnu_ld" = yes; then
17557     need_lib_prefix=no
17558   fi
17559   need_version=yes
17560   ;;
17561
17562 sysv4 | sysv4.3*)
17563   version_type=linux
17564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17565   soname_spec='${libname}${release}${shared_ext}$major'
17566   shlibpath_var=LD_LIBRARY_PATH
17567   case $host_vendor in
17568     sni)
17569       shlibpath_overrides_runpath=no
17570       need_lib_prefix=no
17571       runpath_var=LD_RUN_PATH
17572       ;;
17573     siemens)
17574       need_lib_prefix=no
17575       ;;
17576     motorola)
17577       need_lib_prefix=no
17578       need_version=no
17579       shlibpath_overrides_runpath=no
17580       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17581       ;;
17582   esac
17583   ;;
17584
17585 sysv4*MP*)
17586   if test -d /usr/nec ;then
17587     version_type=linux
17588     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17589     soname_spec='$libname${shared_ext}.$major'
17590     shlibpath_var=LD_LIBRARY_PATH
17591   fi
17592   ;;
17593
17594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17595   version_type=freebsd-elf
17596   need_lib_prefix=no
17597   need_version=no
17598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17599   soname_spec='${libname}${release}${shared_ext}$major'
17600   shlibpath_var=LD_LIBRARY_PATH
17601   shlibpath_overrides_runpath=yes
17602   hardcode_into_libs=yes
17603   if test "$with_gnu_ld" = yes; then
17604     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17605   else
17606     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17607     case $host_os in
17608       sco3.2v5*)
17609         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17610         ;;
17611     esac
17612   fi
17613   sys_lib_dlsearch_path_spec='/usr/lib'
17614   ;;
17615
17616 tpf*)
17617   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17618   version_type=linux
17619   need_lib_prefix=no
17620   need_version=no
17621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622   shlibpath_var=LD_LIBRARY_PATH
17623   shlibpath_overrides_runpath=no
17624   hardcode_into_libs=yes
17625   ;;
17626
17627 uts4*)
17628   version_type=linux
17629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17630   soname_spec='${libname}${release}${shared_ext}$major'
17631   shlibpath_var=LD_LIBRARY_PATH
17632   ;;
17633
17634 *)
17635   dynamic_linker=no
17636   ;;
17637 esac
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17639 $as_echo "$dynamic_linker" >&6; }
17640 test "$dynamic_linker" = no && can_build_shared=no
17641
17642 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17643 if test "$GCC" = yes; then
17644   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17645 fi
17646
17647 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17648   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17649 fi
17650 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17651   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17652 fi
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17746 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17747 hardcode_action=
17748 if test -n "$hardcode_libdir_flag_spec" ||
17749    test -n "$runpath_var" ||
17750    test "X$hardcode_automatic" = "Xyes" ; then
17751
17752   # We can hardcode non-existent directories.
17753   if test "$hardcode_direct" != no &&
17754      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17755      # have to relink, otherwise we might link with an installed library
17756      # when we should be linking with a yet-to-be-installed one
17757      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17758      test "$hardcode_minus_L" != no; then
17759     # Linking always hardcodes the temporary library directory.
17760     hardcode_action=relink
17761   else
17762     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17763     hardcode_action=immediate
17764   fi
17765 else
17766   # We cannot hardcode anything, or else we can only hardcode existing
17767   # directories.
17768   hardcode_action=unsupported
17769 fi
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17771 $as_echo "$hardcode_action" >&6; }
17772
17773 if test "$hardcode_action" = relink ||
17774    test "$inherit_rpath" = yes; then
17775   # Fast installation is not supported
17776   enable_fast_install=no
17777 elif test "$shlibpath_overrides_runpath" = yes ||
17778      test "$enable_shared" = no; then
17779   # Fast installation is not necessary
17780   enable_fast_install=needless
17781 fi
17782
17783
17784
17785
17786
17787
17788   if test "x$enable_dlopen" != xyes; then
17789   enable_dlopen=unknown
17790   enable_dlopen_self=unknown
17791   enable_dlopen_self_static=unknown
17792 else
17793   lt_cv_dlopen=no
17794   lt_cv_dlopen_libs=
17795
17796   case $host_os in
17797   beos*)
17798     lt_cv_dlopen="load_add_on"
17799     lt_cv_dlopen_libs=
17800     lt_cv_dlopen_self=yes
17801     ;;
17802
17803   mingw* | pw32* | cegcc*)
17804     lt_cv_dlopen="LoadLibrary"
17805     lt_cv_dlopen_libs=
17806     ;;
17807
17808   cygwin*)
17809     lt_cv_dlopen="dlopen"
17810     lt_cv_dlopen_libs=
17811     ;;
17812
17813   darwin*)
17814   # if libdl is installed we need to link against it
17815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17816 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17817 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17818   $as_echo_n "(cached) " >&6
17819 else
17820   ac_check_lib_save_LIBS=$LIBS
17821 LIBS="-ldl  $LIBS"
17822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823 /* end confdefs.h.  */
17824
17825 /* Override any GCC internal prototype to avoid an error.
17826    Use char because int might match the return type of a GCC
17827    builtin and then its argument prototype would still apply.  */
17828 #ifdef __cplusplus
17829 extern "C"
17830 #endif
17831 char dlopen ();
17832 int
17833 main ()
17834 {
17835 return dlopen ();
17836   ;
17837   return 0;
17838 }
17839 _ACEOF
17840 if ac_fn_c_try_link "$LINENO"; then :
17841   ac_cv_lib_dl_dlopen=yes
17842 else
17843   ac_cv_lib_dl_dlopen=no
17844 fi
17845 rm -f core conftest.err conftest.$ac_objext \
17846     conftest$ac_exeext conftest.$ac_ext
17847 LIBS=$ac_check_lib_save_LIBS
17848 fi
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17850 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17851 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17852   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17853 else
17854
17855     lt_cv_dlopen="dyld"
17856     lt_cv_dlopen_libs=
17857     lt_cv_dlopen_self=yes
17858
17859 fi
17860
17861     ;;
17862
17863   *)
17864     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17865 if test "x$ac_cv_func_shl_load" = x""yes; then :
17866   lt_cv_dlopen="shl_load"
17867 else
17868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17869 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17870 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17871   $as_echo_n "(cached) " >&6
17872 else
17873   ac_check_lib_save_LIBS=$LIBS
17874 LIBS="-ldld  $LIBS"
17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h.  */
17877
17878 /* Override any GCC internal prototype to avoid an error.
17879    Use char because int might match the return type of a GCC
17880    builtin and then its argument prototype would still apply.  */
17881 #ifdef __cplusplus
17882 extern "C"
17883 #endif
17884 char shl_load ();
17885 int
17886 main ()
17887 {
17888 return shl_load ();
17889   ;
17890   return 0;
17891 }
17892 _ACEOF
17893 if ac_fn_c_try_link "$LINENO"; then :
17894   ac_cv_lib_dld_shl_load=yes
17895 else
17896   ac_cv_lib_dld_shl_load=no
17897 fi
17898 rm -f core conftest.err conftest.$ac_objext \
17899     conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17901 fi
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17903 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17904 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17905   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17906 else
17907   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17908 if test "x$ac_cv_func_dlopen" = x""yes; then :
17909   lt_cv_dlopen="dlopen"
17910 else
17911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17912 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17913 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17914   $as_echo_n "(cached) " >&6
17915 else
17916   ac_check_lib_save_LIBS=$LIBS
17917 LIBS="-ldl  $LIBS"
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h.  */
17920
17921 /* Override any GCC internal prototype to avoid an error.
17922    Use char because int might match the return type of a GCC
17923    builtin and then its argument prototype would still apply.  */
17924 #ifdef __cplusplus
17925 extern "C"
17926 #endif
17927 char dlopen ();
17928 int
17929 main ()
17930 {
17931 return dlopen ();
17932   ;
17933   return 0;
17934 }
17935 _ACEOF
17936 if ac_fn_c_try_link "$LINENO"; then :
17937   ac_cv_lib_dl_dlopen=yes
17938 else
17939   ac_cv_lib_dl_dlopen=no
17940 fi
17941 rm -f core conftest.err conftest.$ac_objext \
17942     conftest$ac_exeext conftest.$ac_ext
17943 LIBS=$ac_check_lib_save_LIBS
17944 fi
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17946 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17947 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17948   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17949 else
17950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17951 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17952 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17953   $as_echo_n "(cached) " >&6
17954 else
17955   ac_check_lib_save_LIBS=$LIBS
17956 LIBS="-lsvld  $LIBS"
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h.  */
17959
17960 /* Override any GCC internal prototype to avoid an error.
17961    Use char because int might match the return type of a GCC
17962    builtin and then its argument prototype would still apply.  */
17963 #ifdef __cplusplus
17964 extern "C"
17965 #endif
17966 char dlopen ();
17967 int
17968 main ()
17969 {
17970 return dlopen ();
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 if ac_fn_c_try_link "$LINENO"; then :
17976   ac_cv_lib_svld_dlopen=yes
17977 else
17978   ac_cv_lib_svld_dlopen=no
17979 fi
17980 rm -f core conftest.err conftest.$ac_objext \
17981     conftest$ac_exeext conftest.$ac_ext
17982 LIBS=$ac_check_lib_save_LIBS
17983 fi
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17985 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17986 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17987   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17988 else
17989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17990 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17991 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17992   $as_echo_n "(cached) " >&6
17993 else
17994   ac_check_lib_save_LIBS=$LIBS
17995 LIBS="-ldld  $LIBS"
17996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h.  */
17998
17999 /* Override any GCC internal prototype to avoid an error.
18000    Use char because int might match the return type of a GCC
18001    builtin and then its argument prototype would still apply.  */
18002 #ifdef __cplusplus
18003 extern "C"
18004 #endif
18005 char dld_link ();
18006 int
18007 main ()
18008 {
18009 return dld_link ();
18010   ;
18011   return 0;
18012 }
18013 _ACEOF
18014 if ac_fn_c_try_link "$LINENO"; then :
18015   ac_cv_lib_dld_dld_link=yes
18016 else
18017   ac_cv_lib_dld_dld_link=no
18018 fi
18019 rm -f core conftest.err conftest.$ac_objext \
18020     conftest$ac_exeext conftest.$ac_ext
18021 LIBS=$ac_check_lib_save_LIBS
18022 fi
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18024 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18025 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18026   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18027 fi
18028
18029
18030 fi
18031
18032
18033 fi
18034
18035
18036 fi
18037
18038
18039 fi
18040
18041
18042 fi
18043
18044     ;;
18045   esac
18046
18047   if test "x$lt_cv_dlopen" != xno; then
18048     enable_dlopen=yes
18049   else
18050     enable_dlopen=no
18051   fi
18052
18053   case $lt_cv_dlopen in
18054   dlopen)
18055     save_CPPFLAGS="$CPPFLAGS"
18056     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18057
18058     save_LDFLAGS="$LDFLAGS"
18059     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18060
18061     save_LIBS="$LIBS"
18062     LIBS="$lt_cv_dlopen_libs $LIBS"
18063
18064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18065 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18066 if test "${lt_cv_dlopen_self+set}" = set; then :
18067   $as_echo_n "(cached) " >&6
18068 else
18069           if test "$cross_compiling" = yes; then :
18070   lt_cv_dlopen_self=cross
18071 else
18072   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18073   lt_status=$lt_dlunknown
18074   cat > conftest.$ac_ext <<_LT_EOF
18075 #line 18075 "configure"
18076 #include "confdefs.h"
18077
18078 #if HAVE_DLFCN_H
18079 #include <dlfcn.h>
18080 #endif
18081
18082 #include <stdio.h>
18083
18084 #ifdef RTLD_GLOBAL
18085 #  define LT_DLGLOBAL           RTLD_GLOBAL
18086 #else
18087 #  ifdef DL_GLOBAL
18088 #    define LT_DLGLOBAL         DL_GLOBAL
18089 #  else
18090 #    define LT_DLGLOBAL         0
18091 #  endif
18092 #endif
18093
18094 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18095    find out it does not work in some platform. */
18096 #ifndef LT_DLLAZY_OR_NOW
18097 #  ifdef RTLD_LAZY
18098 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18099 #  else
18100 #    ifdef DL_LAZY
18101 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18102 #    else
18103 #      ifdef RTLD_NOW
18104 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18105 #      else
18106 #        ifdef DL_NOW
18107 #          define LT_DLLAZY_OR_NOW      DL_NOW
18108 #        else
18109 #          define LT_DLLAZY_OR_NOW      0
18110 #        endif
18111 #      endif
18112 #    endif
18113 #  endif
18114 #endif
18115
18116 /* When -fvisbility=hidden is used, assume the code has been annotated
18117    correspondingly for the symbols needed.  */
18118 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18119 void fnord () __attribute__((visibility("default")));
18120 #endif
18121
18122 void fnord () { int i=42; }
18123 int main ()
18124 {
18125   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18126   int status = $lt_dlunknown;
18127
18128   if (self)
18129     {
18130       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18131       else
18132         {
18133           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18134           else puts (dlerror ());
18135         }
18136       /* dlclose (self); */
18137     }
18138   else
18139     puts (dlerror ());
18140
18141   return status;
18142 }
18143 _LT_EOF
18144   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18145   (eval $ac_link) 2>&5
18146   ac_status=$?
18147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18148   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18149     (./conftest; exit; ) >&5 2>/dev/null
18150     lt_status=$?
18151     case x$lt_status in
18152       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18153       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18154       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18155     esac
18156   else :
18157     # compilation failed
18158     lt_cv_dlopen_self=no
18159   fi
18160 fi
18161 rm -fr conftest*
18162
18163
18164 fi
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18166 $as_echo "$lt_cv_dlopen_self" >&6; }
18167
18168     if test "x$lt_cv_dlopen_self" = xyes; then
18169       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18170       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18171 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18172 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18173   $as_echo_n "(cached) " >&6
18174 else
18175           if test "$cross_compiling" = yes; then :
18176   lt_cv_dlopen_self_static=cross
18177 else
18178   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18179   lt_status=$lt_dlunknown
18180   cat > conftest.$ac_ext <<_LT_EOF
18181 #line 18181 "configure"
18182 #include "confdefs.h"
18183
18184 #if HAVE_DLFCN_H
18185 #include <dlfcn.h>
18186 #endif
18187
18188 #include <stdio.h>
18189
18190 #ifdef RTLD_GLOBAL
18191 #  define LT_DLGLOBAL           RTLD_GLOBAL
18192 #else
18193 #  ifdef DL_GLOBAL
18194 #    define LT_DLGLOBAL         DL_GLOBAL
18195 #  else
18196 #    define LT_DLGLOBAL         0
18197 #  endif
18198 #endif
18199
18200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18201    find out it does not work in some platform. */
18202 #ifndef LT_DLLAZY_OR_NOW
18203 #  ifdef RTLD_LAZY
18204 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18205 #  else
18206 #    ifdef DL_LAZY
18207 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18208 #    else
18209 #      ifdef RTLD_NOW
18210 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18211 #      else
18212 #        ifdef DL_NOW
18213 #          define LT_DLLAZY_OR_NOW      DL_NOW
18214 #        else
18215 #          define LT_DLLAZY_OR_NOW      0
18216 #        endif
18217 #      endif
18218 #    endif
18219 #  endif
18220 #endif
18221
18222 /* When -fvisbility=hidden is used, assume the code has been annotated
18223    correspondingly for the symbols needed.  */
18224 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18225 void fnord () __attribute__((visibility("default")));
18226 #endif
18227
18228 void fnord () { int i=42; }
18229 int main ()
18230 {
18231   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18232   int status = $lt_dlunknown;
18233
18234   if (self)
18235     {
18236       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18237       else
18238         {
18239           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18240           else puts (dlerror ());
18241         }
18242       /* dlclose (self); */
18243     }
18244   else
18245     puts (dlerror ());
18246
18247   return status;
18248 }
18249 _LT_EOF
18250   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18251   (eval $ac_link) 2>&5
18252   ac_status=$?
18253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18254   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18255     (./conftest; exit; ) >&5 2>/dev/null
18256     lt_status=$?
18257     case x$lt_status in
18258       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18259       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18260       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18261     esac
18262   else :
18263     # compilation failed
18264     lt_cv_dlopen_self_static=no
18265   fi
18266 fi
18267 rm -fr conftest*
18268
18269
18270 fi
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18272 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18273     fi
18274
18275     CPPFLAGS="$save_CPPFLAGS"
18276     LDFLAGS="$save_LDFLAGS"
18277     LIBS="$save_LIBS"
18278     ;;
18279   esac
18280
18281   case $lt_cv_dlopen_self in
18282   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18283   *) enable_dlopen_self=unknown ;;
18284   esac
18285
18286   case $lt_cv_dlopen_self_static in
18287   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18288   *) enable_dlopen_self_static=unknown ;;
18289   esac
18290 fi
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308 striplib=
18309 old_striplib=
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18311 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18312 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18313   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18314   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18316 $as_echo "yes" >&6; }
18317 else
18318 # FIXME - insert some real tests, host_os isn't really good enough
18319   case $host_os in
18320   darwin*)
18321     if test -n "$STRIP" ; then
18322       striplib="$STRIP -x"
18323       old_striplib="$STRIP -S"
18324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18325 $as_echo "yes" >&6; }
18326     else
18327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18328 $as_echo "no" >&6; }
18329     fi
18330     ;;
18331   *)
18332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18333 $as_echo "no" >&6; }
18334     ;;
18335   esac
18336 fi
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349   # Report which library types will actually be built
18350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18351 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18353 $as_echo "$can_build_shared" >&6; }
18354
18355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18356 $as_echo_n "checking whether to build shared libraries... " >&6; }
18357   test "$can_build_shared" = "no" && enable_shared=no
18358
18359   # On AIX, shared libraries and static libraries use the same namespace, and
18360   # are all built from PIC.
18361   case $host_os in
18362   aix3*)
18363     test "$enable_shared" = yes && enable_static=no
18364     if test -n "$RANLIB"; then
18365       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18366       postinstall_cmds='$RANLIB $lib'
18367     fi
18368     ;;
18369
18370   aix[4-9]*)
18371     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18372       test "$enable_shared" = yes && enable_static=no
18373     fi
18374     ;;
18375   esac
18376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18377 $as_echo "$enable_shared" >&6; }
18378
18379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18380 $as_echo_n "checking whether to build static libraries... " >&6; }
18381   # Make sure either enable_shared or enable_static is yes.
18382   test "$enable_shared" = yes || enable_static=yes
18383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18384 $as_echo "$enable_static" >&6; }
18385
18386
18387
18388
18389 fi
18390 ac_ext=c
18391 ac_cpp='$CPP $CPPFLAGS'
18392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18395
18396 CC="$lt_save_CC"
18397
18398       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18399     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18400     (test "X$CXX" != "Xg++"))) ; then
18401   ac_ext=cpp
18402 ac_cpp='$CXXCPP $CPPFLAGS'
18403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18407 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18408 if test -z "$CXXCPP"; then
18409   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18410   $as_echo_n "(cached) " >&6
18411 else
18412       # Double quotes because CXXCPP needs to be expanded
18413     for CXXCPP in "$CXX -E" "/lib/cpp"
18414     do
18415       ac_preproc_ok=false
18416 for ac_cxx_preproc_warn_flag in '' yes
18417 do
18418   # Use a header file that comes with gcc, so configuring glibc
18419   # with a fresh cross-compiler works.
18420   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18421   # <limits.h> exists even on freestanding compilers.
18422   # On the NeXT, cc -E runs the code through the compiler's parser,
18423   # not just through cpp. "Syntax error" is here to catch this case.
18424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18425 /* end confdefs.h.  */
18426 #ifdef __STDC__
18427 # include <limits.h>
18428 #else
18429 # include <assert.h>
18430 #endif
18431                      Syntax error
18432 _ACEOF
18433 if ac_fn_cxx_try_cpp "$LINENO"; then :
18434
18435 else
18436   # Broken: fails on valid input.
18437 continue
18438 fi
18439 rm -f conftest.err conftest.$ac_ext
18440
18441   # OK, works on sane cases.  Now check whether nonexistent headers
18442   # can be detected and how.
18443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444 /* end confdefs.h.  */
18445 #include <ac_nonexistent.h>
18446 _ACEOF
18447 if ac_fn_cxx_try_cpp "$LINENO"; then :
18448   # Broken: success on invalid input.
18449 continue
18450 else
18451   # Passes both tests.
18452 ac_preproc_ok=:
18453 break
18454 fi
18455 rm -f conftest.err conftest.$ac_ext
18456
18457 done
18458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18459 rm -f conftest.err conftest.$ac_ext
18460 if $ac_preproc_ok; then :
18461   break
18462 fi
18463
18464     done
18465     ac_cv_prog_CXXCPP=$CXXCPP
18466
18467 fi
18468   CXXCPP=$ac_cv_prog_CXXCPP
18469 else
18470   ac_cv_prog_CXXCPP=$CXXCPP
18471 fi
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18473 $as_echo "$CXXCPP" >&6; }
18474 ac_preproc_ok=false
18475 for ac_cxx_preproc_warn_flag in '' yes
18476 do
18477   # Use a header file that comes with gcc, so configuring glibc
18478   # with a fresh cross-compiler works.
18479   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18480   # <limits.h> exists even on freestanding compilers.
18481   # On the NeXT, cc -E runs the code through the compiler's parser,
18482   # not just through cpp. "Syntax error" is here to catch this case.
18483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h.  */
18485 #ifdef __STDC__
18486 # include <limits.h>
18487 #else
18488 # include <assert.h>
18489 #endif
18490                      Syntax error
18491 _ACEOF
18492 if ac_fn_cxx_try_cpp "$LINENO"; then :
18493
18494 else
18495   # Broken: fails on valid input.
18496 continue
18497 fi
18498 rm -f conftest.err conftest.$ac_ext
18499
18500   # OK, works on sane cases.  Now check whether nonexistent headers
18501   # can be detected and how.
18502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18503 /* end confdefs.h.  */
18504 #include <ac_nonexistent.h>
18505 _ACEOF
18506 if ac_fn_cxx_try_cpp "$LINENO"; then :
18507   # Broken: success on invalid input.
18508 continue
18509 else
18510   # Passes both tests.
18511 ac_preproc_ok=:
18512 break
18513 fi
18514 rm -f conftest.err conftest.$ac_ext
18515
18516 done
18517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18518 rm -f conftest.err conftest.$ac_ext
18519 if $ac_preproc_ok; then :
18520
18521 else
18522   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18524 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18525 See \`config.log' for more details." "$LINENO" 5; }
18526 fi
18527
18528 ac_ext=c
18529 ac_cpp='$CPP $CPPFLAGS'
18530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18533
18534 else
18535   _lt_caught_CXX_error=yes
18536 fi
18537
18538 ac_ext=cpp
18539 ac_cpp='$CXXCPP $CPPFLAGS'
18540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18543
18544 archive_cmds_need_lc_CXX=no
18545 allow_undefined_flag_CXX=
18546 always_export_symbols_CXX=no
18547 archive_expsym_cmds_CXX=
18548 compiler_needs_object_CXX=no
18549 export_dynamic_flag_spec_CXX=
18550 hardcode_direct_CXX=no
18551 hardcode_direct_absolute_CXX=no
18552 hardcode_libdir_flag_spec_CXX=
18553 hardcode_libdir_flag_spec_ld_CXX=
18554 hardcode_libdir_separator_CXX=
18555 hardcode_minus_L_CXX=no
18556 hardcode_shlibpath_var_CXX=unsupported
18557 hardcode_automatic_CXX=no
18558 inherit_rpath_CXX=no
18559 module_cmds_CXX=
18560 module_expsym_cmds_CXX=
18561 link_all_deplibs_CXX=unknown
18562 old_archive_cmds_CXX=$old_archive_cmds
18563 reload_flag_CXX=$reload_flag
18564 reload_cmds_CXX=$reload_cmds
18565 no_undefined_flag_CXX=
18566 whole_archive_flag_spec_CXX=
18567 enable_shared_with_static_runtimes_CXX=no
18568
18569 # Source file extension for C++ test sources.
18570 ac_ext=cpp
18571
18572 # Object file extension for compiled C++ test sources.
18573 objext=o
18574 objext_CXX=$objext
18575
18576 # No sense in running all these tests if we already determined that
18577 # the CXX compiler isn't working.  Some variables (like enable_shared)
18578 # are currently assumed to apply to all compilers on this platform,
18579 # and will be corrupted by setting them based on a non-working compiler.
18580 if test "$_lt_caught_CXX_error" != yes; then
18581   # Code to be used in simple compile tests
18582   lt_simple_compile_test_code="int some_variable = 0;"
18583
18584   # Code to be used in simple link tests
18585   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18586
18587   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18588
18589
18590
18591
18592
18593
18594 # If no C compiler was specified, use CC.
18595 LTCC=${LTCC-"$CC"}
18596
18597 # If no C compiler flags were specified, use CFLAGS.
18598 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18599
18600 # Allow CC to be a program name with arguments.
18601 compiler=$CC
18602
18603
18604   # save warnings/boilerplate of simple test code
18605   ac_outfile=conftest.$ac_objext
18606 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18607 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18608 _lt_compiler_boilerplate=`cat conftest.err`
18609 $RM conftest*
18610
18611   ac_outfile=conftest.$ac_objext
18612 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18613 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18614 _lt_linker_boilerplate=`cat conftest.err`
18615 $RM -r conftest*
18616
18617
18618   # Allow CC to be a program name with arguments.
18619   lt_save_CC=$CC
18620   lt_save_LD=$LD
18621   lt_save_GCC=$GCC
18622   GCC=$GXX
18623   lt_save_with_gnu_ld=$with_gnu_ld
18624   lt_save_path_LD=$lt_cv_path_LD
18625   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18626     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18627   else
18628     $as_unset lt_cv_prog_gnu_ld
18629   fi
18630   if test -n "${lt_cv_path_LDCXX+set}"; then
18631     lt_cv_path_LD=$lt_cv_path_LDCXX
18632   else
18633     $as_unset lt_cv_path_LD
18634   fi
18635   test -z "${LDCXX+set}" || LD=$LDCXX
18636   CC=${CXX-"c++"}
18637   compiler=$CC
18638   compiler_CXX=$CC
18639   for cc_temp in $compiler""; do
18640   case $cc_temp in
18641     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18642     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18643     \-*) ;;
18644     *) break;;
18645   esac
18646 done
18647 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18648
18649
18650   if test -n "$compiler"; then
18651     # We don't want -fno-exception when compiling C++ code, so set the
18652     # no_builtin_flag separately
18653     if test "$GXX" = yes; then
18654       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18655     else
18656       lt_prog_compiler_no_builtin_flag_CXX=
18657     fi
18658
18659     if test "$GXX" = yes; then
18660       # Set up default GNU C++ configuration
18661
18662
18663
18664 # Check whether --with-gnu-ld was given.
18665 if test "${with_gnu_ld+set}" = set; then :
18666   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18667 else
18668   with_gnu_ld=no
18669 fi
18670
18671 ac_prog=ld
18672 if test "$GCC" = yes; then
18673   # Check if gcc -print-prog-name=ld gives a path.
18674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18675 $as_echo_n "checking for ld used by $CC... " >&6; }
18676   case $host in
18677   *-*-mingw*)
18678     # gcc leaves a trailing carriage return which upsets mingw
18679     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18680   *)
18681     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18682   esac
18683   case $ac_prog in
18684     # Accept absolute paths.
18685     [\\/]* | ?:[\\/]*)
18686       re_direlt='/[^/][^/]*/\.\./'
18687       # Canonicalize the pathname of ld
18688       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18689       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18690         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18691       done
18692       test -z "$LD" && LD="$ac_prog"
18693       ;;
18694   "")
18695     # If it fails, then pretend we aren't using GCC.
18696     ac_prog=ld
18697     ;;
18698   *)
18699     # If it is relative, then search for the first ld in PATH.
18700     with_gnu_ld=unknown
18701     ;;
18702   esac
18703 elif test "$with_gnu_ld" = yes; then
18704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18705 $as_echo_n "checking for GNU ld... " >&6; }
18706 else
18707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18708 $as_echo_n "checking for non-GNU ld... " >&6; }
18709 fi
18710 if test "${lt_cv_path_LD+set}" = set; then :
18711   $as_echo_n "(cached) " >&6
18712 else
18713   if test -z "$LD"; then
18714   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18715   for ac_dir in $PATH; do
18716     IFS="$lt_save_ifs"
18717     test -z "$ac_dir" && ac_dir=.
18718     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18719       lt_cv_path_LD="$ac_dir/$ac_prog"
18720       # Check to see if the program is GNU ld.  I'd rather use --version,
18721       # but apparently some variants of GNU ld only accept -v.
18722       # Break only if it was the GNU/non-GNU ld that we prefer.
18723       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18724       *GNU* | *'with BFD'*)
18725         test "$with_gnu_ld" != no && break
18726         ;;
18727       *)
18728         test "$with_gnu_ld" != yes && break
18729         ;;
18730       esac
18731     fi
18732   done
18733   IFS="$lt_save_ifs"
18734 else
18735   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18736 fi
18737 fi
18738
18739 LD="$lt_cv_path_LD"
18740 if test -n "$LD"; then
18741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18742 $as_echo "$LD" >&6; }
18743 else
18744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18745 $as_echo "no" >&6; }
18746 fi
18747 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18749 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18750 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18751   $as_echo_n "(cached) " >&6
18752 else
18753   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18754 case `$LD -v 2>&1 </dev/null` in
18755 *GNU* | *'with BFD'*)
18756   lt_cv_prog_gnu_ld=yes
18757   ;;
18758 *)
18759   lt_cv_prog_gnu_ld=no
18760   ;;
18761 esac
18762 fi
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18764 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18765 with_gnu_ld=$lt_cv_prog_gnu_ld
18766
18767
18768
18769
18770
18771
18772
18773       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18774       # archiving commands below assume that GNU ld is being used.
18775       if test "$with_gnu_ld" = yes; then
18776         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18777         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'
18778
18779         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18780         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18781
18782         # If archive_cmds runs LD, not CC, wlarc should be empty
18783         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18784         #     investigate it a little bit more. (MM)
18785         wlarc='${wl}'
18786
18787         # ancient GNU ld didn't support --whole-archive et. al.
18788         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18789           $GREP 'no-whole-archive' > /dev/null; then
18790           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18791         else
18792           whole_archive_flag_spec_CXX=
18793         fi
18794       else
18795         with_gnu_ld=no
18796         wlarc=
18797
18798         # A generic and very simple default shared library creation
18799         # command for GNU C++ for the case where it uses the native
18800         # linker, instead of GNU ld.  If possible, this setting should
18801         # overridden to take advantage of the native linker features on
18802         # the platform it is being used on.
18803         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18804       fi
18805
18806       # Commands to make compiler produce verbose output that lists
18807       # what "hidden" libraries, object files and flags are used when
18808       # linking a shared library.
18809       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18810
18811     else
18812       GXX=no
18813       with_gnu_ld=no
18814       wlarc=
18815     fi
18816
18817     # PORTME: fill in a description of your system's C++ link characteristics
18818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18819 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18820     ld_shlibs_CXX=yes
18821     case $host_os in
18822       aix3*)
18823         # FIXME: insert proper C++ library support
18824         ld_shlibs_CXX=no
18825         ;;
18826       aix[4-9]*)
18827         if test "$host_cpu" = ia64; then
18828           # On IA64, the linker does run time linking by default, so we don't
18829           # have to do anything special.
18830           aix_use_runtimelinking=no
18831           exp_sym_flag='-Bexport'
18832           no_entry_flag=""
18833         else
18834           aix_use_runtimelinking=no
18835
18836           # Test if we are trying to use run time linking or normal
18837           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18838           # need to do runtime linking.
18839           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18840             for ld_flag in $LDFLAGS; do
18841               case $ld_flag in
18842               *-brtl*)
18843                 aix_use_runtimelinking=yes
18844                 break
18845                 ;;
18846               esac
18847             done
18848             ;;
18849           esac
18850
18851           exp_sym_flag='-bexport'
18852           no_entry_flag='-bnoentry'
18853         fi
18854
18855         # When large executables or shared objects are built, AIX ld can
18856         # have problems creating the table of contents.  If linking a library
18857         # or program results in "error TOC overflow" add -mminimal-toc to
18858         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18859         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18860
18861         archive_cmds_CXX=''
18862         hardcode_direct_CXX=yes
18863         hardcode_direct_absolute_CXX=yes
18864         hardcode_libdir_separator_CXX=':'
18865         link_all_deplibs_CXX=yes
18866         file_list_spec_CXX='${wl}-f,'
18867
18868         if test "$GXX" = yes; then
18869           case $host_os in aix4.[012]|aix4.[012].*)
18870           # We only want to do this on AIX 4.2 and lower, the check
18871           # below for broken collect2 doesn't work under 4.3+
18872           collect2name=`${CC} -print-prog-name=collect2`
18873           if test -f "$collect2name" &&
18874              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18875           then
18876             # We have reworked collect2
18877             :
18878           else
18879             # We have old collect2
18880             hardcode_direct_CXX=unsupported
18881             # It fails to find uninstalled libraries when the uninstalled
18882             # path is not listed in the libpath.  Setting hardcode_minus_L
18883             # to unsupported forces relinking
18884             hardcode_minus_L_CXX=yes
18885             hardcode_libdir_flag_spec_CXX='-L$libdir'
18886             hardcode_libdir_separator_CXX=
18887           fi
18888           esac
18889           shared_flag='-shared'
18890           if test "$aix_use_runtimelinking" = yes; then
18891             shared_flag="$shared_flag "'${wl}-G'
18892           fi
18893         else
18894           # not using gcc
18895           if test "$host_cpu" = ia64; then
18896           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18897           # chokes on -Wl,-G. The following line is correct:
18898           shared_flag='-G'
18899           else
18900             if test "$aix_use_runtimelinking" = yes; then
18901               shared_flag='${wl}-G'
18902             else
18903               shared_flag='${wl}-bM:SRE'
18904             fi
18905           fi
18906         fi
18907
18908         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18909         # It seems that -bexpall does not export symbols beginning with
18910         # underscore (_), so it is better to generate a list of symbols to
18911         # export.
18912         always_export_symbols_CXX=yes
18913         if test "$aix_use_runtimelinking" = yes; then
18914           # Warning - without using the other runtime loading flags (-brtl),
18915           # -berok will link without error, but may produce a broken library.
18916           allow_undefined_flag_CXX='-berok'
18917           # Determine the default libpath from the value encoded in an empty
18918           # executable.
18919           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18920 /* end confdefs.h.  */
18921
18922 int
18923 main ()
18924 {
18925
18926   ;
18927   return 0;
18928 }
18929 _ACEOF
18930 if ac_fn_cxx_try_link "$LINENO"; then :
18931
18932 lt_aix_libpath_sed='
18933     /Import File Strings/,/^$/ {
18934         /^0/ {
18935             s/^0  *\(.*\)$/\1/
18936             p
18937         }
18938     }'
18939 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18940 # Check for a 64-bit object if we didn't find anything.
18941 if test -z "$aix_libpath"; then
18942   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18943 fi
18944 fi
18945 rm -f core conftest.err conftest.$ac_objext \
18946     conftest$ac_exeext conftest.$ac_ext
18947 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18948
18949           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18950
18951           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"
18952         else
18953           if test "$host_cpu" = ia64; then
18954             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18955             allow_undefined_flag_CXX="-z nodefs"
18956             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"
18957           else
18958             # Determine the default libpath from the value encoded in an
18959             # empty executable.
18960             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961 /* end confdefs.h.  */
18962
18963 int
18964 main ()
18965 {
18966
18967   ;
18968   return 0;
18969 }
18970 _ACEOF
18971 if ac_fn_cxx_try_link "$LINENO"; then :
18972
18973 lt_aix_libpath_sed='
18974     /Import File Strings/,/^$/ {
18975         /^0/ {
18976             s/^0  *\(.*\)$/\1/
18977             p
18978         }
18979     }'
18980 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18981 # Check for a 64-bit object if we didn't find anything.
18982 if test -z "$aix_libpath"; then
18983   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18984 fi
18985 fi
18986 rm -f core conftest.err conftest.$ac_objext \
18987     conftest$ac_exeext conftest.$ac_ext
18988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18989
18990             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18991             # Warning - without using the other run time loading flags,
18992             # -berok will link without error, but may produce a broken library.
18993             no_undefined_flag_CXX=' ${wl}-bernotok'
18994             allow_undefined_flag_CXX=' ${wl}-berok'
18995             if test "$with_gnu_ld" = yes; then
18996               # We only use this code for GNU lds that support --whole-archive.
18997               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18998             else
18999               # Exported symbols can be pulled into shared objects from archives
19000               whole_archive_flag_spec_CXX='$convenience'
19001             fi
19002             archive_cmds_need_lc_CXX=yes
19003             # This is similar to how AIX traditionally builds its shared
19004             # libraries.
19005             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'
19006           fi
19007         fi
19008         ;;
19009
19010       beos*)
19011         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19012           allow_undefined_flag_CXX=unsupported
19013           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19014           # support --undefined.  This deserves some investigation.  FIXME
19015           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19016         else
19017           ld_shlibs_CXX=no
19018         fi
19019         ;;
19020
19021       chorus*)
19022         case $cc_basename in
19023           *)
19024           # FIXME: insert proper C++ library support
19025           ld_shlibs_CXX=no
19026           ;;
19027         esac
19028         ;;
19029
19030       cygwin* | mingw* | pw32* | cegcc*)
19031         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19032         # as there is no search path for DLLs.
19033         hardcode_libdir_flag_spec_CXX='-L$libdir'
19034         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19035         allow_undefined_flag_CXX=unsupported
19036         always_export_symbols_CXX=no
19037         enable_shared_with_static_runtimes_CXX=yes
19038
19039         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19040           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'
19041           # If the export-symbols file already is a .def file (1st line
19042           # is EXPORTS), use it as is; otherwise, prepend...
19043           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19044             cp $export_symbols $output_objdir/$soname.def;
19045           else
19046             echo EXPORTS > $output_objdir/$soname.def;
19047             cat $export_symbols >> $output_objdir/$soname.def;
19048           fi~
19049           $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'
19050         else
19051           ld_shlibs_CXX=no
19052         fi
19053         ;;
19054       darwin* | rhapsody*)
19055
19056
19057   archive_cmds_need_lc_CXX=no
19058   hardcode_direct_CXX=no
19059   hardcode_automatic_CXX=yes
19060   hardcode_shlibpath_var_CXX=unsupported
19061   if test "$lt_cv_ld_force_load" = "yes"; then
19062     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\"`'
19063   else
19064     whole_archive_flag_spec_CXX=''
19065   fi
19066   link_all_deplibs_CXX=yes
19067   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19068   case $cc_basename in
19069      ifort*) _lt_dar_can_shared=yes ;;
19070      *) _lt_dar_can_shared=$GCC ;;
19071   esac
19072   if test "$_lt_dar_can_shared" = "yes"; then
19073     output_verbose_link_cmd=func_echo_all
19074     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}"
19075     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19076     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}"
19077     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}"
19078        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19079       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}"
19080       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}"
19081     fi
19082
19083   else
19084   ld_shlibs_CXX=no
19085   fi
19086
19087         ;;
19088
19089       dgux*)
19090         case $cc_basename in
19091           ec++*)
19092             # FIXME: insert proper C++ library support
19093             ld_shlibs_CXX=no
19094             ;;
19095           ghcx*)
19096             # Green Hills C++ Compiler
19097             # FIXME: insert proper C++ library support
19098             ld_shlibs_CXX=no
19099             ;;
19100           *)
19101             # FIXME: insert proper C++ library support
19102             ld_shlibs_CXX=no
19103             ;;
19104         esac
19105         ;;
19106
19107       freebsd[12]*)
19108         # C++ shared libraries reported to be fairly broken before
19109         # switch to ELF
19110         ld_shlibs_CXX=no
19111         ;;
19112
19113       freebsd-elf*)
19114         archive_cmds_need_lc_CXX=no
19115         ;;
19116
19117       freebsd* | dragonfly*)
19118         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19119         # conventions
19120         ld_shlibs_CXX=yes
19121         ;;
19122
19123       gnu*)
19124         ;;
19125
19126       haiku*)
19127         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19128         link_all_deplibs_CXX=yes
19129         ;;
19130
19131       hpux9*)
19132         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19133         hardcode_libdir_separator_CXX=:
19134         export_dynamic_flag_spec_CXX='${wl}-E'
19135         hardcode_direct_CXX=yes
19136         hardcode_minus_L_CXX=yes # Not in the search PATH,
19137                                              # but as the default
19138                                              # location of the library.
19139
19140         case $cc_basename in
19141           CC*)
19142             # FIXME: insert proper C++ library support
19143             ld_shlibs_CXX=no
19144             ;;
19145           aCC*)
19146             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'
19147             # Commands to make compiler produce verbose output that lists
19148             # what "hidden" libraries, object files and flags are used when
19149             # linking a shared library.
19150             #
19151             # There doesn't appear to be a way to prevent this compiler from
19152             # explicitly linking system object files so we need to strip them
19153             # from the output so that they don't get included in the library
19154             # dependencies.
19155             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"'
19156             ;;
19157           *)
19158             if test "$GXX" = yes; then
19159               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'
19160             else
19161               # FIXME: insert proper C++ library support
19162               ld_shlibs_CXX=no
19163             fi
19164             ;;
19165         esac
19166         ;;
19167
19168       hpux10*|hpux11*)
19169         if test $with_gnu_ld = no; then
19170           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19171           hardcode_libdir_separator_CXX=:
19172
19173           case $host_cpu in
19174             hppa*64*|ia64*)
19175               ;;
19176             *)
19177               export_dynamic_flag_spec_CXX='${wl}-E'
19178               ;;
19179           esac
19180         fi
19181         case $host_cpu in
19182           hppa*64*|ia64*)
19183             hardcode_direct_CXX=no
19184             hardcode_shlibpath_var_CXX=no
19185             ;;
19186           *)
19187             hardcode_direct_CXX=yes
19188             hardcode_direct_absolute_CXX=yes
19189             hardcode_minus_L_CXX=yes # Not in the search PATH,
19190                                                  # but as the default
19191                                                  # location of the library.
19192             ;;
19193         esac
19194
19195         case $cc_basename in
19196           CC*)
19197             # FIXME: insert proper C++ library support
19198             ld_shlibs_CXX=no
19199             ;;
19200           aCC*)
19201             case $host_cpu in
19202               hppa*64*)
19203                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19204                 ;;
19205               ia64*)
19206                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207                 ;;
19208               *)
19209                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19210                 ;;
19211             esac
19212             # Commands to make compiler produce verbose output that lists
19213             # what "hidden" libraries, object files and flags are used when
19214             # linking a shared library.
19215             #
19216             # There doesn't appear to be a way to prevent this compiler from
19217             # explicitly linking system object files so we need to strip them
19218             # from the output so that they don't get included in the library
19219             # dependencies.
19220             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"'
19221             ;;
19222           *)
19223             if test "$GXX" = yes; then
19224               if test $with_gnu_ld = no; then
19225                 case $host_cpu in
19226                   hppa*64*)
19227                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19228                     ;;
19229                   ia64*)
19230                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19231                     ;;
19232                   *)
19233                     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'
19234                     ;;
19235                 esac
19236               fi
19237             else
19238               # FIXME: insert proper C++ library support
19239               ld_shlibs_CXX=no
19240             fi
19241             ;;
19242         esac
19243         ;;
19244
19245       interix[3-9]*)
19246         hardcode_direct_CXX=no
19247         hardcode_shlibpath_var_CXX=no
19248         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19249         export_dynamic_flag_spec_CXX='${wl}-E'
19250         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19251         # Instead, shared libraries are loaded at an image base (0x10000000 by
19252         # default) and relocated if they conflict, which is a slow very memory
19253         # consuming and fragmenting process.  To avoid this, we pick a random,
19254         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19255         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19256         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'
19257         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'
19258         ;;
19259       irix5* | irix6*)
19260         case $cc_basename in
19261           CC*)
19262             # SGI C++
19263             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'
19264
19265             # Archives containing C++ object files must be created using
19266             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19267             # necessary to make sure instantiated templates are included
19268             # in the archive.
19269             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19270             ;;
19271           *)
19272             if test "$GXX" = yes; then
19273               if test "$with_gnu_ld" = no; then
19274                 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'
19275               else
19276                 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'
19277               fi
19278             fi
19279             link_all_deplibs_CXX=yes
19280             ;;
19281         esac
19282         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19283         hardcode_libdir_separator_CXX=:
19284         inherit_rpath_CXX=yes
19285         ;;
19286
19287       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19288         case $cc_basename in
19289           KCC*)
19290             # Kuck and Associates, Inc. (KAI) C++ Compiler
19291
19292             # KCC will only create a shared library if the output file
19293             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19294             # to its proper name (with version) after linking.
19295             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'
19296             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'
19297             # Commands to make compiler produce verbose output that lists
19298             # what "hidden" libraries, object files and flags are used when
19299             # linking a shared library.
19300             #
19301             # There doesn't appear to be a way to prevent this compiler from
19302             # explicitly linking system object files so we need to strip them
19303             # from the output so that they don't get included in the library
19304             # dependencies.
19305             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"'
19306
19307             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19308             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19309
19310             # Archives containing C++ object files must be created using
19311             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19312             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19313             ;;
19314           icpc* | ecpc* )
19315             # Intel C++
19316             with_gnu_ld=yes
19317             # version 8.0 and above of icpc choke on multiply defined symbols
19318             # if we add $predep_objects and $postdep_objects, however 7.1 and
19319             # earlier do not add the objects themselves.
19320             case `$CC -V 2>&1` in
19321               *"Version 7."*)
19322                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19323                 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'
19324                 ;;
19325               *)  # Version 8.0 or newer
19326                 tmp_idyn=
19327                 case $host_cpu in
19328                   ia64*) tmp_idyn=' -i_dynamic';;
19329                 esac
19330                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19331                 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'
19332                 ;;
19333             esac
19334             archive_cmds_need_lc_CXX=no
19335             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19336             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19337             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19338             ;;
19339           pgCC* | pgcpp*)
19340             # Portland Group C++ compiler
19341             case `$CC -V` in
19342             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19343               prelink_cmds_CXX='tpldir=Template.dir~
19344                 rm -rf $tpldir~
19345                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19346                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19347               old_archive_cmds_CXX='tpldir=Template.dir~
19348                 rm -rf $tpldir~
19349                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19350                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19351                 $RANLIB $oldlib'
19352               archive_cmds_CXX='tpldir=Template.dir~
19353                 rm -rf $tpldir~
19354                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19355                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19356               archive_expsym_cmds_CXX='tpldir=Template.dir~
19357                 rm -rf $tpldir~
19358                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19359                 $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'
19360               ;;
19361             *) # Version 6 and above use weak symbols
19362               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19363               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'
19364               ;;
19365             esac
19366
19367             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19368             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19369             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'
19370             ;;
19371           cxx*)
19372             # Compaq C++
19373             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19374             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'
19375
19376             runpath_var=LD_RUN_PATH
19377             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19378             hardcode_libdir_separator_CXX=:
19379
19380             # Commands to make compiler produce verbose output that lists
19381             # what "hidden" libraries, object files and flags are used when
19382             # linking a shared library.
19383             #
19384             # There doesn't appear to be a way to prevent this compiler from
19385             # explicitly linking system object files so we need to strip them
19386             # from the output so that they don't get included in the library
19387             # dependencies.
19388             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'
19389             ;;
19390           xl* | mpixl* | bgxl*)
19391             # IBM XL 8.0 on PPC, with GNU ld
19392             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19393             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19394             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19395             if test "x$supports_anon_versioning" = xyes; then
19396               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19397                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19398                 echo "local: *; };" >> $output_objdir/$libname.ver~
19399                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19400             fi
19401             ;;
19402           *)
19403             case `$CC -V 2>&1 | sed 5q` in
19404             *Sun\ C*)
19405               # Sun C++ 5.9
19406               no_undefined_flag_CXX=' -zdefs'
19407               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19408               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'
19409               hardcode_libdir_flag_spec_CXX='-R$libdir'
19410               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'
19411               compiler_needs_object_CXX=yes
19412
19413               # Not sure whether something based on
19414               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19415               # would be better.
19416               output_verbose_link_cmd='func_echo_all'
19417
19418               # Archives containing C++ object files must be created using
19419               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19420               # necessary to make sure instantiated templates are included
19421               # in the archive.
19422               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19423               ;;
19424             esac
19425             ;;
19426         esac
19427         ;;
19428
19429       lynxos*)
19430         # FIXME: insert proper C++ library support
19431         ld_shlibs_CXX=no
19432         ;;
19433
19434       m88k*)
19435         # FIXME: insert proper C++ library support
19436         ld_shlibs_CXX=no
19437         ;;
19438
19439       mvs*)
19440         case $cc_basename in
19441           cxx*)
19442             # FIXME: insert proper C++ library support
19443             ld_shlibs_CXX=no
19444             ;;
19445           *)
19446             # FIXME: insert proper C++ library support
19447             ld_shlibs_CXX=no
19448             ;;
19449         esac
19450         ;;
19451
19452       netbsd*)
19453         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19454           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19455           wlarc=
19456           hardcode_libdir_flag_spec_CXX='-R$libdir'
19457           hardcode_direct_CXX=yes
19458           hardcode_shlibpath_var_CXX=no
19459         fi
19460         # Workaround some broken pre-1.5 toolchains
19461         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19462         ;;
19463
19464       *nto* | *qnx*)
19465         ld_shlibs_CXX=yes
19466         ;;
19467
19468       openbsd2*)
19469         # C++ shared libraries are fairly broken
19470         ld_shlibs_CXX=no
19471         ;;
19472
19473       openbsd*)
19474         if test -f /usr/libexec/ld.so; then
19475           hardcode_direct_CXX=yes
19476           hardcode_shlibpath_var_CXX=no
19477           hardcode_direct_absolute_CXX=yes
19478           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19479           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19480           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19481             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19482             export_dynamic_flag_spec_CXX='${wl}-E'
19483             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19484           fi
19485           output_verbose_link_cmd=func_echo_all
19486         else
19487           ld_shlibs_CXX=no
19488         fi
19489         ;;
19490
19491       osf3* | osf4* | osf5*)
19492         case $cc_basename in
19493           KCC*)
19494             # Kuck and Associates, Inc. (KAI) C++ Compiler
19495
19496             # KCC will only create a shared library if the output file
19497             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19498             # to its proper name (with version) after linking.
19499             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'
19500
19501             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19502             hardcode_libdir_separator_CXX=:
19503
19504             # Archives containing C++ object files must be created using
19505             # the KAI C++ compiler.
19506             case $host in
19507               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19508               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19509             esac
19510             ;;
19511           RCC*)
19512             # Rational C++ 2.4.1
19513             # FIXME: insert proper C++ library support
19514             ld_shlibs_CXX=no
19515             ;;
19516           cxx*)
19517             case $host in
19518               osf3*)
19519                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19520                 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'
19521                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19522                 ;;
19523               *)
19524                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19525                 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'
19526                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19527                   echo "-hidden">> $lib.exp~
19528                   $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~
19529                   $RM $lib.exp'
19530                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19531                 ;;
19532             esac
19533
19534             hardcode_libdir_separator_CXX=:
19535
19536             # Commands to make compiler produce verbose output that lists
19537             # what "hidden" libraries, object files and flags are used when
19538             # linking a shared library.
19539             #
19540             # There doesn't appear to be a way to prevent this compiler from
19541             # explicitly linking system object files so we need to strip them
19542             # from the output so that they don't get included in the library
19543             # dependencies.
19544             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"'
19545             ;;
19546           *)
19547             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19548               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19549               case $host in
19550                 osf3*)
19551                   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'
19552                   ;;
19553                 *)
19554                   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'
19555                   ;;
19556               esac
19557
19558               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19559               hardcode_libdir_separator_CXX=:
19560
19561               # Commands to make compiler produce verbose output that lists
19562               # what "hidden" libraries, object files and flags are used when
19563               # linking a shared library.
19564               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19565
19566             else
19567               # FIXME: insert proper C++ library support
19568               ld_shlibs_CXX=no
19569             fi
19570             ;;
19571         esac
19572         ;;
19573
19574       psos*)
19575         # FIXME: insert proper C++ library support
19576         ld_shlibs_CXX=no
19577         ;;
19578
19579       sunos4*)
19580         case $cc_basename in
19581           CC*)
19582             # Sun C++ 4.x
19583             # FIXME: insert proper C++ library support
19584             ld_shlibs_CXX=no
19585             ;;
19586           lcc*)
19587             # Lucid
19588             # FIXME: insert proper C++ library support
19589             ld_shlibs_CXX=no
19590             ;;
19591           *)
19592             # FIXME: insert proper C++ library support
19593             ld_shlibs_CXX=no
19594             ;;
19595         esac
19596         ;;
19597
19598       solaris*)
19599         case $cc_basename in
19600           CC*)
19601             # Sun C++ 4.2, 5.x and Centerline C++
19602             archive_cmds_need_lc_CXX=yes
19603             no_undefined_flag_CXX=' -zdefs'
19604             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19605             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19606               $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'
19607
19608             hardcode_libdir_flag_spec_CXX='-R$libdir'
19609             hardcode_shlibpath_var_CXX=no
19610             case $host_os in
19611               solaris2.[0-5] | solaris2.[0-5].*) ;;
19612               *)
19613                 # The compiler driver will combine and reorder linker options,
19614                 # but understands `-z linker_flag'.
19615                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19616                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19617                 ;;
19618             esac
19619             link_all_deplibs_CXX=yes
19620
19621             output_verbose_link_cmd='func_echo_all'
19622
19623             # Archives containing C++ object files must be created using
19624             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19625             # necessary to make sure instantiated templates are included
19626             # in the archive.
19627             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19628             ;;
19629           gcx*)
19630             # Green Hills C++ Compiler
19631             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19632
19633             # The C++ compiler must be used to create the archive.
19634             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19635             ;;
19636           *)
19637             # GNU C++ compiler with Solaris linker
19638             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19639               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19640               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19641                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19642                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19643                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19644
19645                 # Commands to make compiler produce verbose output that lists
19646                 # what "hidden" libraries, object files and flags are used when
19647                 # linking a shared library.
19648                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19649               else
19650                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19651                 # platform.
19652                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19653                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19654                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19655
19656                 # Commands to make compiler produce verbose output that lists
19657                 # what "hidden" libraries, object files and flags are used when
19658                 # linking a shared library.
19659                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19660               fi
19661
19662               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19663               case $host_os in
19664                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19665                 *)
19666                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19667                   ;;
19668               esac
19669             fi
19670             ;;
19671         esac
19672         ;;
19673
19674     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19675       no_undefined_flag_CXX='${wl}-z,text'
19676       archive_cmds_need_lc_CXX=no
19677       hardcode_shlibpath_var_CXX=no
19678       runpath_var='LD_RUN_PATH'
19679
19680       case $cc_basename in
19681         CC*)
19682           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19683           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19684           ;;
19685         *)
19686           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19687           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19688           ;;
19689       esac
19690       ;;
19691
19692       sysv5* | sco3.2v5* | sco5v6*)
19693         # Note: We can NOT use -z defs as we might desire, because we do not
19694         # link with -lc, and that would cause any symbols used from libc to
19695         # always be unresolved, which means just about no library would
19696         # ever link correctly.  If we're not using GNU ld we use -z text
19697         # though, which does catch some bad symbols but isn't as heavy-handed
19698         # as -z defs.
19699         no_undefined_flag_CXX='${wl}-z,text'
19700         allow_undefined_flag_CXX='${wl}-z,nodefs'
19701         archive_cmds_need_lc_CXX=no
19702         hardcode_shlibpath_var_CXX=no
19703         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19704         hardcode_libdir_separator_CXX=':'
19705         link_all_deplibs_CXX=yes
19706         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19707         runpath_var='LD_RUN_PATH'
19708
19709         case $cc_basename in
19710           CC*)
19711             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19712             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19713             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19714               '"$old_archive_cmds_CXX"
19715             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19716               '"$reload_cmds_CXX"
19717             ;;
19718           *)
19719             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19720             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19721             ;;
19722         esac
19723       ;;
19724
19725       tandem*)
19726         case $cc_basename in
19727           NCC*)
19728             # NonStop-UX NCC 3.20
19729             # FIXME: insert proper C++ library support
19730             ld_shlibs_CXX=no
19731             ;;
19732           *)
19733             # FIXME: insert proper C++ library support
19734             ld_shlibs_CXX=no
19735             ;;
19736         esac
19737         ;;
19738
19739       vxworks*)
19740         # FIXME: insert proper C++ library support
19741         ld_shlibs_CXX=no
19742         ;;
19743
19744       *)
19745         # FIXME: insert proper C++ library support
19746         ld_shlibs_CXX=no
19747         ;;
19748     esac
19749
19750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19751 $as_echo "$ld_shlibs_CXX" >&6; }
19752     test "$ld_shlibs_CXX" = no && can_build_shared=no
19753
19754     GCC_CXX="$GXX"
19755     LD_CXX="$LD"
19756
19757     ## CAVEAT EMPTOR:
19758     ## There is no encapsulation within the following macros, do not change
19759     ## the running order or otherwise move them around unless you know exactly
19760     ## what you are doing...
19761     # Dependencies to place before and after the object being linked:
19762 predep_objects_CXX=
19763 postdep_objects_CXX=
19764 predeps_CXX=
19765 postdeps_CXX=
19766 compiler_lib_search_path_CXX=
19767
19768 cat > conftest.$ac_ext <<_LT_EOF
19769 class Foo
19770 {
19771 public:
19772   Foo (void) { a = 0; }
19773 private:
19774   int a;
19775 };
19776 _LT_EOF
19777
19778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19779   (eval $ac_compile) 2>&5
19780   ac_status=$?
19781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19782   test $ac_status = 0; }; then
19783   # Parse the compiler output and extract the necessary
19784   # objects, libraries and library flags.
19785
19786   # Sentinel used to keep track of whether or not we are before
19787   # the conftest object file.
19788   pre_test_object_deps_done=no
19789
19790   for p in `eval "$output_verbose_link_cmd"`; do
19791     case $p in
19792
19793     -L* | -R* | -l*)
19794        # Some compilers place space between "-{L,R}" and the path.
19795        # Remove the space.
19796        if test $p = "-L" ||
19797           test $p = "-R"; then
19798          prev=$p
19799          continue
19800        else
19801          prev=
19802        fi
19803
19804        if test "$pre_test_object_deps_done" = no; then
19805          case $p in
19806          -L* | -R*)
19807            # Internal compiler library paths should come after those
19808            # provided the user.  The postdeps already come after the
19809            # user supplied libs so there is no need to process them.
19810            if test -z "$compiler_lib_search_path_CXX"; then
19811              compiler_lib_search_path_CXX="${prev}${p}"
19812            else
19813              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19814            fi
19815            ;;
19816          # The "-l" case would never come before the object being
19817          # linked, so don't bother handling this case.
19818          esac
19819        else
19820          if test -z "$postdeps_CXX"; then
19821            postdeps_CXX="${prev}${p}"
19822          else
19823            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19824          fi
19825        fi
19826        ;;
19827
19828     *.$objext)
19829        # This assumes that the test object file only shows up
19830        # once in the compiler output.
19831        if test "$p" = "conftest.$objext"; then
19832          pre_test_object_deps_done=yes
19833          continue
19834        fi
19835
19836        if test "$pre_test_object_deps_done" = no; then
19837          if test -z "$predep_objects_CXX"; then
19838            predep_objects_CXX="$p"
19839          else
19840            predep_objects_CXX="$predep_objects_CXX $p"
19841          fi
19842        else
19843          if test -z "$postdep_objects_CXX"; then
19844            postdep_objects_CXX="$p"
19845          else
19846            postdep_objects_CXX="$postdep_objects_CXX $p"
19847          fi
19848        fi
19849        ;;
19850
19851     *) ;; # Ignore the rest.
19852
19853     esac
19854   done
19855
19856   # Clean up.
19857   rm -f a.out a.exe
19858 else
19859   echo "libtool.m4: error: problem compiling CXX test program"
19860 fi
19861
19862 $RM -f confest.$objext
19863
19864 # PORTME: override above test on systems where it is broken
19865 case $host_os in
19866 interix[3-9]*)
19867   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19868   # hack all around it, let's just trust "g++" to DTRT.
19869   predep_objects_CXX=
19870   postdep_objects_CXX=
19871   postdeps_CXX=
19872   ;;
19873
19874 linux*)
19875   case `$CC -V 2>&1 | sed 5q` in
19876   *Sun\ C*)
19877     # Sun C++ 5.9
19878
19879     # The more standards-conforming stlport4 library is
19880     # incompatible with the Cstd library. Avoid specifying
19881     # it if it's in CXXFLAGS. Ignore libCrun as
19882     # -library=stlport4 depends on it.
19883     case " $CXX $CXXFLAGS " in
19884     *" -library=stlport4 "*)
19885       solaris_use_stlport4=yes
19886       ;;
19887     esac
19888
19889     if test "$solaris_use_stlport4" != yes; then
19890       postdeps_CXX='-library=Cstd -library=Crun'
19891     fi
19892     ;;
19893   esac
19894   ;;
19895
19896 solaris*)
19897   case $cc_basename in
19898   CC*)
19899     # The more standards-conforming stlport4 library is
19900     # incompatible with the Cstd library. Avoid specifying
19901     # it if it's in CXXFLAGS. Ignore libCrun as
19902     # -library=stlport4 depends on it.
19903     case " $CXX $CXXFLAGS " in
19904     *" -library=stlport4 "*)
19905       solaris_use_stlport4=yes
19906       ;;
19907     esac
19908
19909     # Adding this requires a known-good setup of shared libraries for
19910     # Sun compiler versions before 5.6, else PIC objects from an old
19911     # archive will be linked into the output, leading to subtle bugs.
19912     if test "$solaris_use_stlport4" != yes; then
19913       postdeps_CXX='-library=Cstd -library=Crun'
19914     fi
19915     ;;
19916   esac
19917   ;;
19918 esac
19919
19920
19921 case " $postdeps_CXX " in
19922 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19923 esac
19924  compiler_lib_search_dirs_CXX=
19925 if test -n "${compiler_lib_search_path_CXX}"; then
19926  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19927 fi
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959     lt_prog_compiler_wl_CXX=
19960 lt_prog_compiler_pic_CXX=
19961 lt_prog_compiler_static_CXX=
19962
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19964 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19965
19966   # C++ specific cases for pic, static, wl, etc.
19967   if test "$GXX" = yes; then
19968     lt_prog_compiler_wl_CXX='-Wl,'
19969     lt_prog_compiler_static_CXX='-static'
19970
19971     case $host_os in
19972     aix*)
19973       # All AIX code is PIC.
19974       if test "$host_cpu" = ia64; then
19975         # AIX 5 now supports IA64 processor
19976         lt_prog_compiler_static_CXX='-Bstatic'
19977       fi
19978       ;;
19979
19980     amigaos*)
19981       case $host_cpu in
19982       powerpc)
19983             # see comment about AmigaOS4 .so support
19984             lt_prog_compiler_pic_CXX='-fPIC'
19985         ;;
19986       m68k)
19987             # FIXME: we need at least 68020 code to build shared libraries, but
19988             # adding the `-m68020' flag to GCC prevents building anything better,
19989             # like `-m68040'.
19990             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19991         ;;
19992       esac
19993       ;;
19994
19995     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19996       # PIC is the default for these OSes.
19997       ;;
19998     mingw* | cygwin* | os2* | pw32* | cegcc*)
19999       # This hack is so that the source file can tell whether it is being
20000       # built for inclusion in a dll (and should export symbols for example).
20001       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20002       # (--disable-auto-import) libraries
20003       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20004       ;;
20005     darwin* | rhapsody*)
20006       # PIC is the default on this platform
20007       # Common symbols not allowed in MH_DYLIB files
20008       lt_prog_compiler_pic_CXX='-fno-common'
20009       ;;
20010     *djgpp*)
20011       # DJGPP does not support shared libraries at all
20012       lt_prog_compiler_pic_CXX=
20013       ;;
20014     haiku*)
20015       # PIC is the default for Haiku.
20016       # The "-static" flag exists, but is broken.
20017       lt_prog_compiler_static_CXX=
20018       ;;
20019     interix[3-9]*)
20020       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20021       # Instead, we relocate shared libraries at runtime.
20022       ;;
20023     sysv4*MP*)
20024       if test -d /usr/nec; then
20025         lt_prog_compiler_pic_CXX=-Kconform_pic
20026       fi
20027       ;;
20028     hpux*)
20029       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20030       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20031       # sets the default TLS model and affects inlining.
20032       case $host_cpu in
20033       hppa*64*)
20034         ;;
20035       *)
20036         lt_prog_compiler_pic_CXX='-fPIC'
20037         ;;
20038       esac
20039       ;;
20040     *qnx* | *nto*)
20041       # QNX uses GNU C++, but need to define -shared option too, otherwise
20042       # it will coredump.
20043       lt_prog_compiler_pic_CXX='-fPIC -shared'
20044       ;;
20045     *)
20046       lt_prog_compiler_pic_CXX='-fPIC'
20047       ;;
20048     esac
20049   else
20050     case $host_os in
20051       aix[4-9]*)
20052         # All AIX code is PIC.
20053         if test "$host_cpu" = ia64; then
20054           # AIX 5 now supports IA64 processor
20055           lt_prog_compiler_static_CXX='-Bstatic'
20056         else
20057           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20058         fi
20059         ;;
20060       chorus*)
20061         case $cc_basename in
20062         cxch68*)
20063           # Green Hills C++ Compiler
20064           # _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"
20065           ;;
20066         esac
20067         ;;
20068       dgux*)
20069         case $cc_basename in
20070           ec++*)
20071             lt_prog_compiler_pic_CXX='-KPIC'
20072             ;;
20073           ghcx*)
20074             # Green Hills C++ Compiler
20075             lt_prog_compiler_pic_CXX='-pic'
20076             ;;
20077           *)
20078             ;;
20079         esac
20080         ;;
20081       freebsd* | dragonfly*)
20082         # FreeBSD uses GNU C++
20083         ;;
20084       hpux9* | hpux10* | hpux11*)
20085         case $cc_basename in
20086           CC*)
20087             lt_prog_compiler_wl_CXX='-Wl,'
20088             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20089             if test "$host_cpu" != ia64; then
20090               lt_prog_compiler_pic_CXX='+Z'
20091             fi
20092             ;;
20093           aCC*)
20094             lt_prog_compiler_wl_CXX='-Wl,'
20095             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20096             case $host_cpu in
20097             hppa*64*|ia64*)
20098               # +Z the default
20099               ;;
20100             *)
20101               lt_prog_compiler_pic_CXX='+Z'
20102               ;;
20103             esac
20104             ;;
20105           *)
20106             ;;
20107         esac
20108         ;;
20109       interix*)
20110         # This is c89, which is MS Visual C++ (no shared libs)
20111         # Anyone wants to do a port?
20112         ;;
20113       irix5* | irix6* | nonstopux*)
20114         case $cc_basename in
20115           CC*)
20116             lt_prog_compiler_wl_CXX='-Wl,'
20117             lt_prog_compiler_static_CXX='-non_shared'
20118             # CC pic flag -KPIC is the default.
20119             ;;
20120           *)
20121             ;;
20122         esac
20123         ;;
20124       linux* | k*bsd*-gnu | kopensolaris*-gnu)
20125         case $cc_basename in
20126           KCC*)
20127             # KAI C++ Compiler
20128             lt_prog_compiler_wl_CXX='--backend -Wl,'
20129             lt_prog_compiler_pic_CXX='-fPIC'
20130             ;;
20131           ecpc* )
20132             # old Intel C++ for x86_64 which still supported -KPIC.
20133             lt_prog_compiler_wl_CXX='-Wl,'
20134             lt_prog_compiler_pic_CXX='-KPIC'
20135             lt_prog_compiler_static_CXX='-static'
20136             ;;
20137           icpc* )
20138             # Intel C++, used to be incompatible with GCC.
20139             # ICC 10 doesn't accept -KPIC any more.
20140             lt_prog_compiler_wl_CXX='-Wl,'
20141             lt_prog_compiler_pic_CXX='-fPIC'
20142             lt_prog_compiler_static_CXX='-static'
20143             ;;
20144           pgCC* | pgcpp*)
20145             # Portland Group C++ compiler
20146             lt_prog_compiler_wl_CXX='-Wl,'
20147             lt_prog_compiler_pic_CXX='-fpic'
20148             lt_prog_compiler_static_CXX='-Bstatic'
20149             ;;
20150           cxx*)
20151             # Compaq C++
20152             # Make sure the PIC flag is empty.  It appears that all Alpha
20153             # Linux and Compaq Tru64 Unix objects are PIC.
20154             lt_prog_compiler_pic_CXX=
20155             lt_prog_compiler_static_CXX='-non_shared'
20156             ;;
20157           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20158             # IBM XL 8.0, 9.0 on PPC and BlueGene
20159             lt_prog_compiler_wl_CXX='-Wl,'
20160             lt_prog_compiler_pic_CXX='-qpic'
20161             lt_prog_compiler_static_CXX='-qstaticlink'
20162             ;;
20163           *)
20164             case `$CC -V 2>&1 | sed 5q` in
20165             *Sun\ C*)
20166               # Sun C++ 5.9
20167               lt_prog_compiler_pic_CXX='-KPIC'
20168               lt_prog_compiler_static_CXX='-Bstatic'
20169               lt_prog_compiler_wl_CXX='-Qoption ld '
20170               ;;
20171             esac
20172             ;;
20173         esac
20174         ;;
20175       lynxos*)
20176         ;;
20177       m88k*)
20178         ;;
20179       mvs*)
20180         case $cc_basename in
20181           cxx*)
20182             lt_prog_compiler_pic_CXX='-W c,exportall'
20183             ;;
20184           *)
20185             ;;
20186         esac
20187         ;;
20188       netbsd*)
20189         ;;
20190       *qnx* | *nto*)
20191         # QNX uses GNU C++, but need to define -shared option too, otherwise
20192         # it will coredump.
20193         lt_prog_compiler_pic_CXX='-fPIC -shared'
20194         ;;
20195       osf3* | osf4* | osf5*)
20196         case $cc_basename in
20197           KCC*)
20198             lt_prog_compiler_wl_CXX='--backend -Wl,'
20199             ;;
20200           RCC*)
20201             # Rational C++ 2.4.1
20202             lt_prog_compiler_pic_CXX='-pic'
20203             ;;
20204           cxx*)
20205             # Digital/Compaq C++
20206             lt_prog_compiler_wl_CXX='-Wl,'
20207             # Make sure the PIC flag is empty.  It appears that all Alpha
20208             # Linux and Compaq Tru64 Unix objects are PIC.
20209             lt_prog_compiler_pic_CXX=
20210             lt_prog_compiler_static_CXX='-non_shared'
20211             ;;
20212           *)
20213             ;;
20214         esac
20215         ;;
20216       psos*)
20217         ;;
20218       solaris*)
20219         case $cc_basename in
20220           CC*)
20221             # Sun C++ 4.2, 5.x and Centerline C++
20222             lt_prog_compiler_pic_CXX='-KPIC'
20223             lt_prog_compiler_static_CXX='-Bstatic'
20224             lt_prog_compiler_wl_CXX='-Qoption ld '
20225             ;;
20226           gcx*)
20227             # Green Hills C++ Compiler
20228             lt_prog_compiler_pic_CXX='-PIC'
20229             ;;
20230           *)
20231             ;;
20232         esac
20233         ;;
20234       sunos4*)
20235         case $cc_basename in
20236           CC*)
20237             # Sun C++ 4.x
20238             lt_prog_compiler_pic_CXX='-pic'
20239             lt_prog_compiler_static_CXX='-Bstatic'
20240             ;;
20241           lcc*)
20242             # Lucid
20243             lt_prog_compiler_pic_CXX='-pic'
20244             ;;
20245           *)
20246             ;;
20247         esac
20248         ;;
20249       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20250         case $cc_basename in
20251           CC*)
20252             lt_prog_compiler_wl_CXX='-Wl,'
20253             lt_prog_compiler_pic_CXX='-KPIC'
20254             lt_prog_compiler_static_CXX='-Bstatic'
20255             ;;
20256         esac
20257         ;;
20258       tandem*)
20259         case $cc_basename in
20260           NCC*)
20261             # NonStop-UX NCC 3.20
20262             lt_prog_compiler_pic_CXX='-KPIC'
20263             ;;
20264           *)
20265             ;;
20266         esac
20267         ;;
20268       vxworks*)
20269         ;;
20270       *)
20271         lt_prog_compiler_can_build_shared_CXX=no
20272         ;;
20273     esac
20274   fi
20275
20276 case $host_os in
20277   # For platforms which do not support PIC, -DPIC is meaningless:
20278   *djgpp*)
20279     lt_prog_compiler_pic_CXX=
20280     ;;
20281   *)
20282     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20283     ;;
20284 esac
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20286 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20287
20288
20289
20290 #
20291 # Check to make sure the PIC flag actually works.
20292 #
20293 if test -n "$lt_prog_compiler_pic_CXX"; then
20294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20295 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20296 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20297   $as_echo_n "(cached) " >&6
20298 else
20299   lt_cv_prog_compiler_pic_works_CXX=no
20300    ac_outfile=conftest.$ac_objext
20301    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20302    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20303    # Insert the option either (1) after the last *FLAGS variable, or
20304    # (2) before a word containing "conftest.", or (3) at the end.
20305    # Note that $ac_compile itself does not contain backslashes and begins
20306    # with a dollar sign (not a hyphen), so the echo should work correctly.
20307    # The option is referenced via a variable to avoid confusing sed.
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>conftest.err)
20314    ac_status=$?
20315    cat conftest.err >&5
20316    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317    if (exit $ac_status) && test -s "$ac_outfile"; then
20318      # The compiler can only warn and ignore the option if not recognized
20319      # So say no if there are warnings other than the usual output.
20320      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20321      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20322      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20323        lt_cv_prog_compiler_pic_works_CXX=yes
20324      fi
20325    fi
20326    $RM conftest*
20327
20328 fi
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20330 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20331
20332 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20333     case $lt_prog_compiler_pic_CXX in
20334      "" | " "*) ;;
20335      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20336      esac
20337 else
20338     lt_prog_compiler_pic_CXX=
20339      lt_prog_compiler_can_build_shared_CXX=no
20340 fi
20341
20342 fi
20343
20344
20345
20346 #
20347 # Check to make sure the static flag actually works.
20348 #
20349 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20351 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20352 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20353   $as_echo_n "(cached) " >&6
20354 else
20355   lt_cv_prog_compiler_static_works_CXX=no
20356    save_LDFLAGS="$LDFLAGS"
20357    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20358    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20359    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20360      # The linker can only warn and ignore the option if not recognized
20361      # So say no if there are warnings
20362      if test -s conftest.err; then
20363        # Append any errors to the config.log.
20364        cat conftest.err 1>&5
20365        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20366        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20367        if diff conftest.exp conftest.er2 >/dev/null; then
20368          lt_cv_prog_compiler_static_works_CXX=yes
20369        fi
20370      else
20371        lt_cv_prog_compiler_static_works_CXX=yes
20372      fi
20373    fi
20374    $RM -r conftest*
20375    LDFLAGS="$save_LDFLAGS"
20376
20377 fi
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20379 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20380
20381 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20382     :
20383 else
20384     lt_prog_compiler_static_CXX=
20385 fi
20386
20387
20388
20389
20390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20392 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20393   $as_echo_n "(cached) " >&6
20394 else
20395   lt_cv_prog_compiler_c_o_CXX=no
20396    $RM -r conftest 2>/dev/null
20397    mkdir conftest
20398    cd conftest
20399    mkdir out
20400    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20401
20402    lt_compiler_flag="-o out/conftest2.$ac_objext"
20403    # Insert the option either (1) after the last *FLAGS variable, or
20404    # (2) before a word containing "conftest.", or (3) at the end.
20405    # Note that $ac_compile itself does not contain backslashes and begins
20406    # with a dollar sign (not a hyphen), so the echo should work correctly.
20407    lt_compile=`echo "$ac_compile" | $SED \
20408    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20409    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20410    -e 's:$: $lt_compiler_flag:'`
20411    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20412    (eval "$lt_compile" 2>out/conftest.err)
20413    ac_status=$?
20414    cat out/conftest.err >&5
20415    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20417    then
20418      # The compiler can only warn and ignore the option if not recognized
20419      # So say no if there are warnings
20420      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20421      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20422      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20423        lt_cv_prog_compiler_c_o_CXX=yes
20424      fi
20425    fi
20426    chmod u+w . 2>&5
20427    $RM conftest*
20428    # SGI C++ compiler will create directory out/ii_files/ for
20429    # template instantiation
20430    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20431    $RM out/* && rmdir out
20432    cd ..
20433    $RM -r conftest
20434    $RM conftest*
20435
20436 fi
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20438 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20439
20440
20441
20442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20443 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20444 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20445   $as_echo_n "(cached) " >&6
20446 else
20447   lt_cv_prog_compiler_c_o_CXX=no
20448    $RM -r conftest 2>/dev/null
20449    mkdir conftest
20450    cd conftest
20451    mkdir out
20452    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20453
20454    lt_compiler_flag="-o out/conftest2.$ac_objext"
20455    # Insert the option either (1) after the last *FLAGS variable, or
20456    # (2) before a word containing "conftest.", or (3) at the end.
20457    # Note that $ac_compile itself does not contain backslashes and begins
20458    # with a dollar sign (not a hyphen), so the echo should work correctly.
20459    lt_compile=`echo "$ac_compile" | $SED \
20460    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20461    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20462    -e 's:$: $lt_compiler_flag:'`
20463    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20464    (eval "$lt_compile" 2>out/conftest.err)
20465    ac_status=$?
20466    cat out/conftest.err >&5
20467    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20469    then
20470      # The compiler can only warn and ignore the option if not recognized
20471      # So say no if there are warnings
20472      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20473      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20474      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20475        lt_cv_prog_compiler_c_o_CXX=yes
20476      fi
20477    fi
20478    chmod u+w . 2>&5
20479    $RM conftest*
20480    # SGI C++ compiler will create directory out/ii_files/ for
20481    # template instantiation
20482    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20483    $RM out/* && rmdir out
20484    cd ..
20485    $RM -r conftest
20486    $RM conftest*
20487
20488 fi
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20490 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20491
20492
20493
20494
20495 hard_links="nottested"
20496 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20497   # do not overwrite the value of need_locks provided by the user
20498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20499 $as_echo_n "checking if we can lock with hard links... " >&6; }
20500   hard_links=yes
20501   $RM conftest*
20502   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20503   touch conftest.a
20504   ln conftest.a conftest.b 2>&5 || hard_links=no
20505   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20507 $as_echo "$hard_links" >&6; }
20508   if test "$hard_links" = no; then
20509     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20510 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20511     need_locks=warn
20512   fi
20513 else
20514   need_locks=no
20515 fi
20516
20517
20518
20519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20520 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20521
20522   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20523   case $host_os in
20524   aix[4-9]*)
20525     # If we're using GNU nm, then we don't want the "-C" option.
20526     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20527     # Also, AIX nm treats weak defined symbols like other global defined
20528     # symbols, whereas GNU nm marks them as "W".
20529     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20530       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'
20531     else
20532       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'
20533     fi
20534     ;;
20535   pw32*)
20536     export_symbols_cmds_CXX="$ltdll_cmds"
20537   ;;
20538   cygwin* | mingw* | cegcc*)
20539     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'
20540   ;;
20541   *)
20542     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20543   ;;
20544   esac
20545   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20546
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20548 $as_echo "$ld_shlibs_CXX" >&6; }
20549 test "$ld_shlibs_CXX" = no && can_build_shared=no
20550
20551 with_gnu_ld_CXX=$with_gnu_ld
20552
20553
20554
20555
20556
20557
20558 #
20559 # Do we need to explicitly link libc?
20560 #
20561 case "x$archive_cmds_need_lc_CXX" in
20562 x|xyes)
20563   # Assume -lc should be added
20564   archive_cmds_need_lc_CXX=yes
20565
20566   if test "$enable_shared" = yes && test "$GCC" = yes; then
20567     case $archive_cmds_CXX in
20568     *'~'*)
20569       # FIXME: we may have to deal with multi-command sequences.
20570       ;;
20571     '$CC '*)
20572       # Test whether the compiler implicitly links with -lc since on some
20573       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20574       # to ld, don't add -lc before -lgcc.
20575       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20576 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20577 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20578   $as_echo_n "(cached) " >&6
20579 else
20580   $RM conftest*
20581         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20582
20583         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20584   (eval $ac_compile) 2>&5
20585   ac_status=$?
20586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20587   test $ac_status = 0; } 2>conftest.err; then
20588           soname=conftest
20589           lib=conftest
20590           libobjs=conftest.$ac_objext
20591           deplibs=
20592           wl=$lt_prog_compiler_wl_CXX
20593           pic_flag=$lt_prog_compiler_pic_CXX
20594           compiler_flags=-v
20595           linker_flags=-v
20596           verstring=
20597           output_objdir=.
20598           libname=conftest
20599           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20600           allow_undefined_flag_CXX=
20601           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20602   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20603   ac_status=$?
20604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20605   test $ac_status = 0; }
20606           then
20607             lt_cv_archive_cmds_need_lc_CXX=no
20608           else
20609             lt_cv_archive_cmds_need_lc_CXX=yes
20610           fi
20611           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20612         else
20613           cat conftest.err 1>&5
20614         fi
20615         $RM conftest*
20616
20617 fi
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20619 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20620       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20621       ;;
20622     esac
20623   fi
20624   ;;
20625 esac
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20691 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20692
20693 library_names_spec=
20694 libname_spec='lib$name'
20695 soname_spec=
20696 shrext_cmds=".so"
20697 postinstall_cmds=
20698 postuninstall_cmds=
20699 finish_cmds=
20700 finish_eval=
20701 shlibpath_var=
20702 shlibpath_overrides_runpath=unknown
20703 version_type=none
20704 dynamic_linker="$host_os ld.so"
20705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20706 need_lib_prefix=unknown
20707 hardcode_into_libs=no
20708
20709 # when you set need_version to no, make sure it does not cause -set_version
20710 # flags to be left without arguments
20711 need_version=unknown
20712
20713 case $host_os in
20714 aix3*)
20715   version_type=linux
20716   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20717   shlibpath_var=LIBPATH
20718
20719   # AIX 3 has no versioning support, so we append a major version to the name.
20720   soname_spec='${libname}${release}${shared_ext}$major'
20721   ;;
20722
20723 aix[4-9]*)
20724   version_type=linux
20725   need_lib_prefix=no
20726   need_version=no
20727   hardcode_into_libs=yes
20728   if test "$host_cpu" = ia64; then
20729     # AIX 5 supports IA64
20730     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20731     shlibpath_var=LD_LIBRARY_PATH
20732   else
20733     # With GCC up to 2.95.x, collect2 would create an import file
20734     # for dependence libraries.  The import file would start with
20735     # the line `#! .'.  This would cause the generated library to
20736     # depend on `.', always an invalid library.  This was fixed in
20737     # development snapshots of GCC prior to 3.0.
20738     case $host_os in
20739       aix4 | aix4.[01] | aix4.[01].*)
20740       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20741            echo ' yes '
20742            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20743         :
20744       else
20745         can_build_shared=no
20746       fi
20747       ;;
20748     esac
20749     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20750     # soname into executable. Probably we can add versioning support to
20751     # collect2, so additional links can be useful in future.
20752     if test "$aix_use_runtimelinking" = yes; then
20753       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20754       # instead of lib<name>.a to let people know that these are not
20755       # typical AIX shared libraries.
20756       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757     else
20758       # We preserve .a as extension for shared libraries through AIX4.2
20759       # and later when we are not doing run time linking.
20760       library_names_spec='${libname}${release}.a $libname.a'
20761       soname_spec='${libname}${release}${shared_ext}$major'
20762     fi
20763     shlibpath_var=LIBPATH
20764   fi
20765   ;;
20766
20767 amigaos*)
20768   case $host_cpu in
20769   powerpc)
20770     # Since July 2007 AmigaOS4 officially supports .so libraries.
20771     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20773     ;;
20774   m68k)
20775     library_names_spec='$libname.ixlibrary $libname.a'
20776     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20777     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'
20778     ;;
20779   esac
20780   ;;
20781
20782 beos*)
20783   library_names_spec='${libname}${shared_ext}'
20784   dynamic_linker="$host_os ld.so"
20785   shlibpath_var=LIBRARY_PATH
20786   ;;
20787
20788 bsdi[45]*)
20789   version_type=linux
20790   need_version=no
20791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20792   soname_spec='${libname}${release}${shared_ext}$major'
20793   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20794   shlibpath_var=LD_LIBRARY_PATH
20795   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20796   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20797   # the default ld.so.conf also contains /usr/contrib/lib and
20798   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20799   # libtool to hard-code these into programs
20800   ;;
20801
20802 cygwin* | mingw* | pw32* | cegcc*)
20803   version_type=windows
20804   shrext_cmds=".dll"
20805   need_version=no
20806   need_lib_prefix=no
20807
20808   case $GCC,$host_os in
20809   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20810     library_names_spec='$libname.dll.a'
20811     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20812     postinstall_cmds='base_file=`basename \${file}`~
20813       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20814       dldir=$destdir/`dirname \$dlpath`~
20815       test -d \$dldir || mkdir -p \$dldir~
20816       $install_prog $dir/$dlname \$dldir/$dlname~
20817       chmod a+x \$dldir/$dlname~
20818       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20819         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20820       fi'
20821     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20822       dlpath=$dir/\$dldll~
20823        $RM \$dlpath'
20824     shlibpath_overrides_runpath=yes
20825
20826     case $host_os in
20827     cygwin*)
20828       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20829       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20830
20831       ;;
20832     mingw* | cegcc*)
20833       # MinGW DLLs use traditional 'lib' prefix
20834       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20835       ;;
20836     pw32*)
20837       # pw32 DLLs use 'pw' prefix rather than 'lib'
20838       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20839       ;;
20840     esac
20841     ;;
20842
20843   *)
20844     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20845     ;;
20846   esac
20847   dynamic_linker='Win32 ld.exe'
20848   # FIXME: first we should search . and the directory the executable is in
20849   shlibpath_var=PATH
20850   ;;
20851
20852 darwin* | rhapsody*)
20853   dynamic_linker="$host_os dyld"
20854   version_type=darwin
20855   need_lib_prefix=no
20856   need_version=no
20857   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20858   soname_spec='${libname}${release}${major}$shared_ext'
20859   shlibpath_overrides_runpath=yes
20860   shlibpath_var=DYLD_LIBRARY_PATH
20861   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20862
20863   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20864   ;;
20865
20866 dgux*)
20867   version_type=linux
20868   need_lib_prefix=no
20869   need_version=no
20870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20871   soname_spec='${libname}${release}${shared_ext}$major'
20872   shlibpath_var=LD_LIBRARY_PATH
20873   ;;
20874
20875 freebsd* | dragonfly*)
20876   # DragonFly does not have aout.  When/if they implement a new
20877   # versioning mechanism, adjust this.
20878   if test -x /usr/bin/objformat; then
20879     objformat=`/usr/bin/objformat`
20880   else
20881     case $host_os in
20882     freebsd[123]*) objformat=aout ;;
20883     *) objformat=elf ;;
20884     esac
20885   fi
20886   version_type=freebsd-$objformat
20887   case $version_type in
20888     freebsd-elf*)
20889       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20890       need_version=no
20891       need_lib_prefix=no
20892       ;;
20893     freebsd-*)
20894       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20895       need_version=yes
20896       ;;
20897   esac
20898   shlibpath_var=LD_LIBRARY_PATH
20899   case $host_os in
20900   freebsd2*)
20901     shlibpath_overrides_runpath=yes
20902     ;;
20903   freebsd3.[01]* | freebsdelf3.[01]*)
20904     shlibpath_overrides_runpath=yes
20905     hardcode_into_libs=yes
20906     ;;
20907   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20908   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20909     shlibpath_overrides_runpath=no
20910     hardcode_into_libs=yes
20911     ;;
20912   *) # from 4.6 on, and DragonFly
20913     shlibpath_overrides_runpath=yes
20914     hardcode_into_libs=yes
20915     ;;
20916   esac
20917   ;;
20918
20919 gnu*)
20920   version_type=linux
20921   need_lib_prefix=no
20922   need_version=no
20923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20924   soname_spec='${libname}${release}${shared_ext}$major'
20925   shlibpath_var=LD_LIBRARY_PATH
20926   hardcode_into_libs=yes
20927   ;;
20928
20929 haiku*)
20930   version_type=linux
20931   need_lib_prefix=no
20932   need_version=no
20933   dynamic_linker="$host_os runtime_loader"
20934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20935   soname_spec='${libname}${release}${shared_ext}$major'
20936   shlibpath_var=LIBRARY_PATH
20937   shlibpath_overrides_runpath=yes
20938   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20939   hardcode_into_libs=yes
20940   ;;
20941
20942 hpux9* | hpux10* | hpux11*)
20943   # Give a soname corresponding to the major version so that dld.sl refuses to
20944   # link against other versions.
20945   version_type=sunos
20946   need_lib_prefix=no
20947   need_version=no
20948   case $host_cpu in
20949   ia64*)
20950     shrext_cmds='.so'
20951     hardcode_into_libs=yes
20952     dynamic_linker="$host_os dld.so"
20953     shlibpath_var=LD_LIBRARY_PATH
20954     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20956     soname_spec='${libname}${release}${shared_ext}$major'
20957     if test "X$HPUX_IA64_MODE" = X32; then
20958       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20959     else
20960       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20961     fi
20962     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20963     ;;
20964   hppa*64*)
20965     shrext_cmds='.sl'
20966     hardcode_into_libs=yes
20967     dynamic_linker="$host_os dld.sl"
20968     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20969     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20971     soname_spec='${libname}${release}${shared_ext}$major'
20972     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20973     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20974     ;;
20975   *)
20976     shrext_cmds='.sl'
20977     dynamic_linker="$host_os dld.sl"
20978     shlibpath_var=SHLIB_PATH
20979     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20981     soname_spec='${libname}${release}${shared_ext}$major'
20982     ;;
20983   esac
20984   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20985   postinstall_cmds='chmod 555 $lib'
20986   # or fails outright, so override atomically:
20987   install_override_mode=555
20988   ;;
20989
20990 interix[3-9]*)
20991   version_type=linux
20992   need_lib_prefix=no
20993   need_version=no
20994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20995   soname_spec='${libname}${release}${shared_ext}$major'
20996   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20997   shlibpath_var=LD_LIBRARY_PATH
20998   shlibpath_overrides_runpath=no
20999   hardcode_into_libs=yes
21000   ;;
21001
21002 irix5* | irix6* | nonstopux*)
21003   case $host_os in
21004     nonstopux*) version_type=nonstopux ;;
21005     *)
21006         if test "$lt_cv_prog_gnu_ld" = yes; then
21007                 version_type=linux
21008         else
21009                 version_type=irix
21010         fi ;;
21011   esac
21012   need_lib_prefix=no
21013   need_version=no
21014   soname_spec='${libname}${release}${shared_ext}$major'
21015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21016   case $host_os in
21017   irix5* | nonstopux*)
21018     libsuff= shlibsuff=
21019     ;;
21020   *)
21021     case $LD in # libtool.m4 will add one of these switches to LD
21022     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21023       libsuff= shlibsuff= libmagic=32-bit;;
21024     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21025       libsuff=32 shlibsuff=N32 libmagic=N32;;
21026     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21027       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21028     *) libsuff= shlibsuff= libmagic=never-match;;
21029     esac
21030     ;;
21031   esac
21032   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21033   shlibpath_overrides_runpath=no
21034   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21035   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21036   hardcode_into_libs=yes
21037   ;;
21038
21039 # No shared lib support for Linux oldld, aout, or coff.
21040 linux*oldld* | linux*aout* | linux*coff*)
21041   dynamic_linker=no
21042   ;;
21043
21044 # This must be Linux ELF.
21045 linux* | k*bsd*-gnu | kopensolaris*-gnu)
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21052   shlibpath_var=LD_LIBRARY_PATH
21053   shlibpath_overrides_runpath=no
21054
21055   # Some binutils ld are patched to set DT_RUNPATH
21056   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21057   $as_echo_n "(cached) " >&6
21058 else
21059   lt_cv_shlibpath_overrides_runpath=no
21060     save_LDFLAGS=$LDFLAGS
21061     save_libdir=$libdir
21062     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21063          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21064     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21065 /* end confdefs.h.  */
21066
21067 int
21068 main ()
21069 {
21070
21071   ;
21072   return 0;
21073 }
21074 _ACEOF
21075 if ac_fn_cxx_try_link "$LINENO"; then :
21076   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21077   lt_cv_shlibpath_overrides_runpath=yes
21078 fi
21079 fi
21080 rm -f core conftest.err conftest.$ac_objext \
21081     conftest$ac_exeext conftest.$ac_ext
21082     LDFLAGS=$save_LDFLAGS
21083     libdir=$save_libdir
21084
21085 fi
21086
21087   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21088
21089   # This implies no fast_install, which is unacceptable.
21090   # Some rework will be needed to allow for fast_install
21091   # before this can be enabled.
21092   hardcode_into_libs=yes
21093
21094   # Append ld.so.conf contents to the search path
21095   if test -f /etc/ld.so.conf; then
21096     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' ' '`
21097     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21098   fi
21099
21100   # We used to test for /lib/ld.so.1 and disable shared libraries on
21101   # powerpc, because MkLinux only supported shared libraries with the
21102   # GNU dynamic linker.  Since this was broken with cross compilers,
21103   # most powerpc-linux boxes support dynamic linking these days and
21104   # people can always --disable-shared, the test was removed, and we
21105   # assume the GNU/Linux dynamic linker is in use.
21106   dynamic_linker='GNU/Linux ld.so'
21107   ;;
21108
21109 netbsd*)
21110   version_type=sunos
21111   need_lib_prefix=no
21112   need_version=no
21113   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21115     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21116     dynamic_linker='NetBSD (a.out) ld.so'
21117   else
21118     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21119     soname_spec='${libname}${release}${shared_ext}$major'
21120     dynamic_linker='NetBSD ld.elf_so'
21121   fi
21122   shlibpath_var=LD_LIBRARY_PATH
21123   shlibpath_overrides_runpath=yes
21124   hardcode_into_libs=yes
21125   ;;
21126
21127 newsos6)
21128   version_type=linux
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=yes
21132   ;;
21133
21134 *nto* | *qnx*)
21135   version_type=qnx
21136   need_lib_prefix=no
21137   need_version=no
21138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21139   soname_spec='${libname}${release}${shared_ext}$major'
21140   shlibpath_var=LD_LIBRARY_PATH
21141   shlibpath_overrides_runpath=no
21142   hardcode_into_libs=yes
21143   dynamic_linker='ldqnx.so'
21144   ;;
21145
21146 openbsd*)
21147   version_type=sunos
21148   sys_lib_dlsearch_path_spec="/usr/lib"
21149   need_lib_prefix=no
21150   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21151   case $host_os in
21152     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21153     *)                          need_version=no  ;;
21154   esac
21155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21156   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21157   shlibpath_var=LD_LIBRARY_PATH
21158   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21159     case $host_os in
21160       openbsd2.[89] | openbsd2.[89].*)
21161         shlibpath_overrides_runpath=no
21162         ;;
21163       *)
21164         shlibpath_overrides_runpath=yes
21165         ;;
21166       esac
21167   else
21168     shlibpath_overrides_runpath=yes
21169   fi
21170   ;;
21171
21172 os2*)
21173   libname_spec='$name'
21174   shrext_cmds=".dll"
21175   need_lib_prefix=no
21176   library_names_spec='$libname${shared_ext} $libname.a'
21177   dynamic_linker='OS/2 ld.exe'
21178   shlibpath_var=LIBPATH
21179   ;;
21180
21181 osf3* | osf4* | osf5*)
21182   version_type=osf
21183   need_lib_prefix=no
21184   need_version=no
21185   soname_spec='${libname}${release}${shared_ext}$major'
21186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21187   shlibpath_var=LD_LIBRARY_PATH
21188   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21189   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21190   ;;
21191
21192 rdos*)
21193   dynamic_linker=no
21194   ;;
21195
21196 solaris*)
21197   version_type=linux
21198   need_lib_prefix=no
21199   need_version=no
21200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21201   soname_spec='${libname}${release}${shared_ext}$major'
21202   shlibpath_var=LD_LIBRARY_PATH
21203   shlibpath_overrides_runpath=yes
21204   hardcode_into_libs=yes
21205   # ldd complains unless libraries are executable
21206   postinstall_cmds='chmod +x $lib'
21207   ;;
21208
21209 sunos4*)
21210   version_type=sunos
21211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21212   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21213   shlibpath_var=LD_LIBRARY_PATH
21214   shlibpath_overrides_runpath=yes
21215   if test "$with_gnu_ld" = yes; then
21216     need_lib_prefix=no
21217   fi
21218   need_version=yes
21219   ;;
21220
21221 sysv4 | sysv4.3*)
21222   version_type=linux
21223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21224   soname_spec='${libname}${release}${shared_ext}$major'
21225   shlibpath_var=LD_LIBRARY_PATH
21226   case $host_vendor in
21227     sni)
21228       shlibpath_overrides_runpath=no
21229       need_lib_prefix=no
21230       runpath_var=LD_RUN_PATH
21231       ;;
21232     siemens)
21233       need_lib_prefix=no
21234       ;;
21235     motorola)
21236       need_lib_prefix=no
21237       need_version=no
21238       shlibpath_overrides_runpath=no
21239       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21240       ;;
21241   esac
21242   ;;
21243
21244 sysv4*MP*)
21245   if test -d /usr/nec ;then
21246     version_type=linux
21247     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21248     soname_spec='$libname${shared_ext}.$major'
21249     shlibpath_var=LD_LIBRARY_PATH
21250   fi
21251   ;;
21252
21253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21254   version_type=freebsd-elf
21255   need_lib_prefix=no
21256   need_version=no
21257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21258   soname_spec='${libname}${release}${shared_ext}$major'
21259   shlibpath_var=LD_LIBRARY_PATH
21260   shlibpath_overrides_runpath=yes
21261   hardcode_into_libs=yes
21262   if test "$with_gnu_ld" = yes; then
21263     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21264   else
21265     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21266     case $host_os in
21267       sco3.2v5*)
21268         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21269         ;;
21270     esac
21271   fi
21272   sys_lib_dlsearch_path_spec='/usr/lib'
21273   ;;
21274
21275 tpf*)
21276   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21277   version_type=linux
21278   need_lib_prefix=no
21279   need_version=no
21280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21281   shlibpath_var=LD_LIBRARY_PATH
21282   shlibpath_overrides_runpath=no
21283   hardcode_into_libs=yes
21284   ;;
21285
21286 uts4*)
21287   version_type=linux
21288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21289   soname_spec='${libname}${release}${shared_ext}$major'
21290   shlibpath_var=LD_LIBRARY_PATH
21291   ;;
21292
21293 *)
21294   dynamic_linker=no
21295   ;;
21296 esac
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21298 $as_echo "$dynamic_linker" >&6; }
21299 test "$dynamic_linker" = no && can_build_shared=no
21300
21301 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21302 if test "$GCC" = yes; then
21303   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21304 fi
21305
21306 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21307   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21308 fi
21309 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21310   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21311 fi
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21351 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21352 hardcode_action_CXX=
21353 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21354    test -n "$runpath_var_CXX" ||
21355    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21356
21357   # We can hardcode non-existent directories.
21358   if test "$hardcode_direct_CXX" != no &&
21359      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21360      # have to relink, otherwise we might link with an installed library
21361      # when we should be linking with a yet-to-be-installed one
21362      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21363      test "$hardcode_minus_L_CXX" != no; then
21364     # Linking always hardcodes the temporary library directory.
21365     hardcode_action_CXX=relink
21366   else
21367     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21368     hardcode_action_CXX=immediate
21369   fi
21370 else
21371   # We cannot hardcode anything, or else we can only hardcode existing
21372   # directories.
21373   hardcode_action_CXX=unsupported
21374 fi
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21376 $as_echo "$hardcode_action_CXX" >&6; }
21377
21378 if test "$hardcode_action_CXX" = relink ||
21379    test "$inherit_rpath_CXX" = yes; then
21380   # Fast installation is not supported
21381   enable_fast_install=no
21382 elif test "$shlibpath_overrides_runpath" = yes ||
21383      test "$enable_shared" = no; then
21384   # Fast installation is not necessary
21385   enable_fast_install=needless
21386 fi
21387
21388
21389
21390
21391
21392
21393
21394   fi # test -n "$compiler"
21395
21396   CC=$lt_save_CC
21397   LDCXX=$LD
21398   LD=$lt_save_LD
21399   GCC=$lt_save_GCC
21400   with_gnu_ld=$lt_save_with_gnu_ld
21401   lt_cv_path_LDCXX=$lt_cv_path_LD
21402   lt_cv_path_LD=$lt_save_path_LD
21403   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21404   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21405 fi # test "$_lt_caught_CXX_error" != yes
21406
21407 ac_ext=c
21408 ac_cpp='$CPP $CPPFLAGS'
21409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428 # Only expand once:
21429
21430
21431
21432
21433
21434 # Identify the assembler which will work hand-in-glove with the newly
21435 # built GCC, so that we can examine its features.  This is the assembler
21436 # which will be driven by the driver program.
21437 #
21438 # If build != host, and we aren't building gas in-tree, we identify a
21439 # build->target assembler and hope that it will have the same features
21440 # as the host->target assembler we'll be using.
21441 gcc_cv_gas_major_version=
21442 gcc_cv_gas_minor_version=
21443 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21444
21445 if test "${gcc_cv_as+set}" = set; then :
21446
21447 else
21448
21449 if test -x "$DEFAULT_ASSEMBLER"; then
21450         gcc_cv_as="$DEFAULT_ASSEMBLER"
21451 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21452      && test -f ../gas/Makefile \
21453      && test x$build = x$host; then
21454         gcc_cv_as=../gas/as-new$build_exeext
21455 elif test -x as$build_exeext; then
21456         # Build using assembler in the current directory.
21457         gcc_cv_as=./as$build_exeext
21458 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21459         gcc_cv_as="$AS_FOR_TARGET"
21460 else
21461         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21462 set dummy $AS_FOR_TARGET; ac_word=$2
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21464 $as_echo_n "checking for $ac_word... " >&6; }
21465 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21466   $as_echo_n "(cached) " >&6
21467 else
21468   case $gcc_cv_as in
21469   [\\/]* | ?:[\\/]*)
21470   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21471   ;;
21472   *)
21473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21474 for as_dir in $PATH
21475 do
21476   IFS=$as_save_IFS
21477   test -z "$as_dir" && as_dir=.
21478     for ac_exec_ext in '' $ac_executable_extensions; do
21479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21480     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21482     break 2
21483   fi
21484 done
21485   done
21486 IFS=$as_save_IFS
21487
21488   ;;
21489 esac
21490 fi
21491 gcc_cv_as=$ac_cv_path_gcc_cv_as
21492 if test -n "$gcc_cv_as"; then
21493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21494 $as_echo "$gcc_cv_as" >&6; }
21495 else
21496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21497 $as_echo "no" >&6; }
21498 fi
21499
21500
21501 fi
21502 fi
21503
21504 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21505
21506 case "$ORIGINAL_AS_FOR_TARGET" in
21507   ./as | ./as$build_exeext) ;;
21508   *) ac_config_files="$ac_config_files as:exec-tool.in"
21509  ;;
21510 esac
21511
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21513 $as_echo_n "checking what assembler to use... " >&6; }
21514 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21515   # Single tree build which includes gas.  We want to prefer it
21516   # over whatever linker top-level may have detected, since
21517   # we'll use what we're building after installation anyway.
21518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21519 $as_echo "newly built gas" >&6; }
21520   in_tree_gas=yes
21521   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21522 for f in $gcc_cv_as_bfd_srcdir/configure \
21523          $gcc_cv_as_gas_srcdir/configure \
21524          $gcc_cv_as_gas_srcdir/configure.in \
21525          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21526   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21527   if test x$gcc_cv_gas_version != x; then
21528     break
21529   fi
21530 done
21531 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21532 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21533 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21534 case $gcc_cv_gas_patch_version in
21535   "") gcc_cv_gas_patch_version="0" ;;
21536 esac
21537 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21538                             + $gcc_cv_gas_minor_version \) \* 1000 \
21539                             + $gcc_cv_gas_patch_version`
21540
21541   in_tree_gas_is_elf=no
21542   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21543      || (grep 'obj_format = multi' ../gas/Makefile \
21544          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21545   then
21546     in_tree_gas_is_elf=yes
21547   fi
21548 else
21549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21550 $as_echo "$gcc_cv_as" >&6; }
21551   in_tree_gas=no
21552 fi
21553
21554 # Identify the linker which will work hand-in-glove with the newly
21555 # built GCC, so that we can examine its features.  This is the linker
21556 # which will be driven by the driver program.
21557 #
21558 # If build != host, and we aren't building gas in-tree, we identify a
21559 # build->target linker and hope that it will have the same features
21560 # as the host->target linker we'll be using.
21561 gcc_cv_gld_major_version=
21562 gcc_cv_gld_minor_version=
21563 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21564 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21565
21566 if test "${gcc_cv_ld+set}" = set; then :
21567
21568 else
21569
21570 if test -x "$DEFAULT_LINKER"; then
21571         gcc_cv_ld="$DEFAULT_LINKER"
21572 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21573      && test -f ../ld/Makefile \
21574      && test x$build = x$host; then
21575         gcc_cv_ld=../ld/ld-new$build_exeext
21576 elif test -x collect-ld$build_exeext; then
21577         # Build using linker in the current directory.
21578         gcc_cv_ld=./collect-ld$build_exeext
21579 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21580         gcc_cv_ld="$LD_FOR_TARGET"
21581 else
21582         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21583 set dummy $LD_FOR_TARGET; ac_word=$2
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21585 $as_echo_n "checking for $ac_word... " >&6; }
21586 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21587   $as_echo_n "(cached) " >&6
21588 else
21589   case $gcc_cv_ld in
21590   [\\/]* | ?:[\\/]*)
21591   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21592   ;;
21593   *)
21594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21595 for as_dir in $PATH
21596 do
21597   IFS=$as_save_IFS
21598   test -z "$as_dir" && as_dir=.
21599     for ac_exec_ext in '' $ac_executable_extensions; do
21600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21601     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21603     break 2
21604   fi
21605 done
21606   done
21607 IFS=$as_save_IFS
21608
21609   ;;
21610 esac
21611 fi
21612 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21613 if test -n "$gcc_cv_ld"; then
21614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21615 $as_echo "$gcc_cv_ld" >&6; }
21616 else
21617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21618 $as_echo "no" >&6; }
21619 fi
21620
21621
21622 fi
21623 fi
21624
21625 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21626 PLUGIN_LD=`basename $gcc_cv_ld`
21627
21628 # Check whether --with-plugin-ld was given.
21629 if test "${with_plugin_ld+set}" = set; then :
21630   withval=$with_plugin_ld; if test x"$withval" != x; then
21631    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21632    PLUGIN_LD="$withval"
21633  fi
21634 fi
21635
21636
21637
21638 cat >>confdefs.h <<_ACEOF
21639 #define PLUGIN_LD "$PLUGIN_LD"
21640 _ACEOF
21641
21642
21643 # Check to see if we are using gold instead of ld
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21645 $as_echo_n "checking whether we are using gold... " >&6; }
21646 ld_is_gold=no
21647 if test x$gcc_cv_ld != x; then
21648   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21649      | grep "GNU gold" > /dev/null; then
21650     ld_is_gold=yes
21651   fi
21652 fi
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21654 $as_echo "$ld_is_gold" >&6; }
21655
21656 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21657
21658 case "$ORIGINAL_LD_FOR_TARGET" in
21659   ./collect-ld | ./collect-ld$build_exeext) ;;
21660   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21661  ;;
21662 esac
21663
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21665 $as_echo_n "checking what linker to use... " >&6; }
21666 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21667    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21668         # Single tree build which includes ld.  We want to prefer it
21669         # over whatever linker top-level may have detected, since
21670         # we'll use what we're building after installation anyway.
21671         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21672 $as_echo "newly built ld" >&6; }
21673         in_tree_ld=yes
21674         in_tree_ld_is_elf=no
21675         if (grep 'EMUL = .*elf' ../ld/Makefile \
21676             || grep 'EMUL = .*linux' ../ld/Makefile \
21677             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21678           in_tree_ld_is_elf=yes
21679         elif test "$ld_is_gold" = yes; then
21680           in_tree_ld_is_elf=yes
21681         fi
21682         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
21683         do
21684                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21685                 if test x$gcc_cv_gld_version != x; then
21686                         break
21687                 fi
21688         done
21689         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21690         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21691 else
21692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21693 $as_echo "$gcc_cv_ld" >&6; }
21694         in_tree_ld=no
21695 fi
21696
21697 # Figure out what nm we will be using.
21698 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21699 if test "${gcc_cv_nm+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         gcc_cv_nm=../binutils/nm-new$build_exeext
21707 elif test -x nm$build_exeext; then
21708         gcc_cv_nm=./nm$build_exeext
21709 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21710         gcc_cv_nm="$NM_FOR_TARGET"
21711 else
21712         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21713 set dummy $NM_FOR_TARGET; ac_word=$2
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21715 $as_echo_n "checking for $ac_word... " >&6; }
21716 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21717   $as_echo_n "(cached) " >&6
21718 else
21719   case $gcc_cv_nm in
21720   [\\/]* | ?:[\\/]*)
21721   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21722   ;;
21723   *)
21724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21725 for as_dir in $PATH
21726 do
21727   IFS=$as_save_IFS
21728   test -z "$as_dir" && as_dir=.
21729     for ac_exec_ext in '' $ac_executable_extensions; do
21730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21731     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21733     break 2
21734   fi
21735 done
21736   done
21737 IFS=$as_save_IFS
21738
21739   ;;
21740 esac
21741 fi
21742 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21743 if test -n "$gcc_cv_nm"; then
21744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21745 $as_echo "$gcc_cv_nm" >&6; }
21746 else
21747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21748 $as_echo "no" >&6; }
21749 fi
21750
21751
21752 fi
21753 fi
21754
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21756 $as_echo_n "checking what nm to use... " >&6; }
21757 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21758         # Single tree build which includes binutils.
21759         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21760 $as_echo "newly built nm" >&6; }
21761         in_tree_nm=yes
21762 else
21763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21764 $as_echo "$gcc_cv_nm" >&6; }
21765         in_tree_nm=no
21766 fi
21767
21768 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21769
21770 case "$ORIGINAL_NM_FOR_TARGET" in
21771   ./nm | ./nm$build_exeext) ;;
21772   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21773  ;;
21774 esac
21775
21776
21777 # Figure out what objdump we will be using.
21778 if test "${gcc_cv_objdump+set}" = set; then :
21779
21780 else
21781
21782 if test -f $gcc_cv_binutils_srcdir/configure.in \
21783      && test -f ../binutils/Makefile \
21784      && test x$build = x$host; then
21785         # Single tree build which includes binutils.
21786         gcc_cv_objdump=../binutils/objdump$build_exeext
21787 elif test -x objdump$build_exeext; then
21788         gcc_cv_objdump=./objdump$build_exeext
21789 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21790         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21791 else
21792         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21793 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21795 $as_echo_n "checking for $ac_word... " >&6; }
21796 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21797   $as_echo_n "(cached) " >&6
21798 else
21799   case $gcc_cv_objdump in
21800   [\\/]* | ?:[\\/]*)
21801   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21802   ;;
21803   *)
21804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21805 for as_dir in $PATH
21806 do
21807   IFS=$as_save_IFS
21808   test -z "$as_dir" && as_dir=.
21809     for ac_exec_ext in '' $ac_executable_extensions; do
21810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21811     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21813     break 2
21814   fi
21815 done
21816   done
21817 IFS=$as_save_IFS
21818
21819   ;;
21820 esac
21821 fi
21822 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21823 if test -n "$gcc_cv_objdump"; then
21824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21825 $as_echo "$gcc_cv_objdump" >&6; }
21826 else
21827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21828 $as_echo "no" >&6; }
21829 fi
21830
21831
21832 fi
21833 fi
21834
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21836 $as_echo_n "checking what objdump to use... " >&6; }
21837 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21838         # Single tree build which includes binutils.
21839         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21840 $as_echo "newly built objdump" >&6; }
21841 elif test x$gcc_cv_objdump = x; then
21842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21843 $as_echo "not found" >&6; }
21844 else
21845         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21846 $as_echo "$gcc_cv_objdump" >&6; }
21847 fi
21848
21849 # Figure out what readelf we will be using.
21850 if test "${gcc_cv_readelf+set}" = set; then :
21851
21852 else
21853
21854 if test -f $gcc_cv_binutils_srcdir/configure.in \
21855      && test -f ../binutils/Makefile \
21856      && test x$build = x$host; then
21857         # Single tree build which includes binutils.
21858         gcc_cv_readelf=../binutils/readelf$build_exeext
21859 elif test -x readelf$build_exeext; then
21860         gcc_cv_readelf=./readelf$build_exeext
21861 else
21862         # Extract the first word of "readelf", so it can be a program name with args.
21863 set dummy readelf; ac_word=$2
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21865 $as_echo_n "checking for $ac_word... " >&6; }
21866 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21867   $as_echo_n "(cached) " >&6
21868 else
21869   case $gcc_cv_readelf in
21870   [\\/]* | ?:[\\/]*)
21871   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21872   ;;
21873   *)
21874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21875 for as_dir in $PATH
21876 do
21877   IFS=$as_save_IFS
21878   test -z "$as_dir" && as_dir=.
21879     for ac_exec_ext in '' $ac_executable_extensions; do
21880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21881     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21883     break 2
21884   fi
21885 done
21886   done
21887 IFS=$as_save_IFS
21888
21889   ;;
21890 esac
21891 fi
21892 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21893 if test -n "$gcc_cv_readelf"; then
21894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21895 $as_echo "$gcc_cv_readelf" >&6; }
21896 else
21897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898 $as_echo "no" >&6; }
21899 fi
21900
21901
21902 fi
21903 fi
21904
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21906 $as_echo_n "checking what readelf to use... " >&6; }
21907 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21908         # Single tree build which includes binutils.
21909         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21910 $as_echo "newly built readelf" >&6; }
21911 elif test x$gcc_cv_readelf = x; then
21912         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21913 $as_echo "not found" >&6; }
21914 else
21915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21916 $as_echo "$gcc_cv_readelf" >&6; }
21917 fi
21918
21919 # Figure out what assembler alignment features are present.
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21921 $as_echo_n "checking assembler flags... " >&6; }
21922 if test "${gcc_cv_as_flags+set}" = set; then :
21923   $as_echo_n "(cached) " >&6
21924 else
21925    case "$target" in
21926   i[34567]86-*-linux*)
21927         gcc_cv_as_flags="--32"
21928     ;;
21929   powerpc*-*-darwin*)
21930         gcc_cv_as_flags="-arch ppc"
21931     ;;
21932   *)
21933     gcc_cv_as_flags=" "
21934     ;;
21935   esac
21936 fi
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21938 $as_echo "$gcc_cv_as_flags" >&6; }
21939
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21941 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21942 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21943   $as_echo_n "(cached) " >&6
21944 else
21945   gcc_cv_as_balign_and_p2align=no
21946     if test $in_tree_gas = yes; then
21947     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21948   then gcc_cv_as_balign_and_p2align=yes
21949 fi
21950   elif test x$gcc_cv_as != x; then
21951     $as_echo '.balign 4
21952 .p2align 2' > conftest.s
21953     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21954   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21955   (eval $ac_try) 2>&5
21956   ac_status=$?
21957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21958   test $ac_status = 0; }; }
21959     then
21960         gcc_cv_as_balign_and_p2align=yes
21961     else
21962       echo "configure: failed program was" >&5
21963       cat conftest.s >&5
21964     fi
21965     rm -f conftest.o conftest.s
21966   fi
21967 fi
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21969 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21970 if test $gcc_cv_as_balign_and_p2align = yes; then
21971
21972 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21973
21974 fi
21975
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21977 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21978 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21979   $as_echo_n "(cached) " >&6
21980 else
21981   gcc_cv_as_max_skip_p2align=no
21982     if test $in_tree_gas = yes; then
21983     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21984   then gcc_cv_as_max_skip_p2align=yes
21985 fi
21986   elif test x$gcc_cv_as != x; then
21987     $as_echo '.p2align 4,,7' > conftest.s
21988     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21989   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21990   (eval $ac_try) 2>&5
21991   ac_status=$?
21992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21993   test $ac_status = 0; }; }
21994     then
21995         gcc_cv_as_max_skip_p2align=yes
21996     else
21997       echo "configure: failed program was" >&5
21998       cat conftest.s >&5
21999     fi
22000     rm -f conftest.o conftest.s
22001   fi
22002 fi
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22004 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22005 if test $gcc_cv_as_max_skip_p2align = yes; then
22006
22007 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22008
22009 fi
22010
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22012 $as_echo_n "checking assembler for .literal16... " >&6; }
22013 if test "${gcc_cv_as_literal16+set}" = set; then :
22014   $as_echo_n "(cached) " >&6
22015 else
22016   gcc_cv_as_literal16=no
22017     if test $in_tree_gas = yes; then
22018     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22019   then gcc_cv_as_literal16=yes
22020 fi
22021   elif test x$gcc_cv_as != x; then
22022     $as_echo '.literal16' > conftest.s
22023     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22024   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22025   (eval $ac_try) 2>&5
22026   ac_status=$?
22027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22028   test $ac_status = 0; }; }
22029     then
22030         gcc_cv_as_literal16=yes
22031     else
22032       echo "configure: failed program was" >&5
22033       cat conftest.s >&5
22034     fi
22035     rm -f conftest.o conftest.s
22036   fi
22037 fi
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22039 $as_echo "$gcc_cv_as_literal16" >&6; }
22040 if test $gcc_cv_as_literal16 = yes; then
22041
22042 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22043
22044 fi
22045
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22047 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22048 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22049   $as_echo_n "(cached) " >&6
22050 else
22051   gcc_cv_as_subsection_m1=no
22052     if test $in_tree_gas = yes; then
22053     if test $in_tree_gas_is_elf = yes \
22054   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22055   then gcc_cv_as_subsection_m1=yes
22056 fi
22057   elif test x$gcc_cv_as != x; then
22058     $as_echo 'conftest_label1: .word 0
22059 .subsection -1
22060 conftest_label2: .word 0
22061 .previous' > conftest.s
22062     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22063   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22064   (eval $ac_try) 2>&5
22065   ac_status=$?
22066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22067   test $ac_status = 0; }; }
22068     then
22069         if test x$gcc_cv_nm != x; then
22070     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22071     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22072     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22073     then :
22074     else gcc_cv_as_subsection_m1=yes
22075     fi
22076     rm -f conftest.nm1 conftest.nm2
22077   fi
22078     else
22079       echo "configure: failed program was" >&5
22080       cat conftest.s >&5
22081     fi
22082     rm -f conftest.o conftest.s
22083   fi
22084 fi
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22086 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22087 if test $gcc_cv_as_subsection_m1 = yes; then
22088
22089 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22090
22091 fi
22092
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22094 $as_echo_n "checking assembler for .weak... " >&6; }
22095 if test "${gcc_cv_as_weak+set}" = set; then :
22096   $as_echo_n "(cached) " >&6
22097 else
22098   gcc_cv_as_weak=no
22099     if test $in_tree_gas = yes; then
22100     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22101   then gcc_cv_as_weak=yes
22102 fi
22103   elif test x$gcc_cv_as != x; then
22104     $as_echo '  .weak foobar' > conftest.s
22105     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22106   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22107   (eval $ac_try) 2>&5
22108   ac_status=$?
22109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22110   test $ac_status = 0; }; }
22111     then
22112         gcc_cv_as_weak=yes
22113     else
22114       echo "configure: failed program was" >&5
22115       cat conftest.s >&5
22116     fi
22117     rm -f conftest.o conftest.s
22118   fi
22119 fi
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22121 $as_echo "$gcc_cv_as_weak" >&6; }
22122 if test $gcc_cv_as_weak = yes; then
22123
22124 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22125
22126 fi
22127
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22129 $as_echo_n "checking assembler for .weakref... " >&6; }
22130 if test "${gcc_cv_as_weakref+set}" = set; then :
22131   $as_echo_n "(cached) " >&6
22132 else
22133   gcc_cv_as_weakref=no
22134     if test $in_tree_gas = yes; then
22135     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22136   then gcc_cv_as_weakref=yes
22137 fi
22138   elif test x$gcc_cv_as != x; then
22139     $as_echo '  .weakref foobar, barfnot' > conftest.s
22140     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22141   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22142   (eval $ac_try) 2>&5
22143   ac_status=$?
22144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22145   test $ac_status = 0; }; }
22146     then
22147         gcc_cv_as_weakref=yes
22148     else
22149       echo "configure: failed program was" >&5
22150       cat conftest.s >&5
22151     fi
22152     rm -f conftest.o conftest.s
22153   fi
22154 fi
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22156 $as_echo "$gcc_cv_as_weakref" >&6; }
22157 if test $gcc_cv_as_weakref = yes; then
22158
22159 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22160
22161 fi
22162
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22164 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22165 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22166   $as_echo_n "(cached) " >&6
22167 else
22168   gcc_cv_as_nsubspa_comdat=no
22169     if test $in_tree_gas = yes; then
22170     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22171   then gcc_cv_as_nsubspa_comdat=yes
22172 fi
22173   elif test x$gcc_cv_as != x; then
22174     $as_echo '  .SPACE $TEXT$
22175         .NSUBSPA $CODE$,COMDAT' > conftest.s
22176     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22177   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22178   (eval $ac_try) 2>&5
22179   ac_status=$?
22180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22181   test $ac_status = 0; }; }
22182     then
22183         gcc_cv_as_nsubspa_comdat=yes
22184     else
22185       echo "configure: failed program was" >&5
22186       cat conftest.s >&5
22187     fi
22188     rm -f conftest.o conftest.s
22189   fi
22190 fi
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22192 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22193 if test $gcc_cv_as_nsubspa_comdat = yes; then
22194
22195 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22196
22197 fi
22198
22199 # .hidden needs to be supported in both the assembler and the linker,
22200 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22201 # This is irritatingly difficult to feature test for; we have to check the
22202 # date string after the version number.  If we've got an in-tree
22203 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22204 # to be safe.
22205 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22207 $as_echo_n "checking assembler for .hidden... " >&6; }
22208 if test "${gcc_cv_as_hidden+set}" = set; then :
22209   $as_echo_n "(cached) " >&6
22210 else
22211   gcc_cv_as_hidden=no
22212     if test $in_tree_gas = yes; then
22213     if test $in_tree_gas_is_elf = yes \
22214   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22215   then gcc_cv_as_hidden=yes
22216 fi
22217   elif test x$gcc_cv_as != x; then
22218     $as_echo '  .hidden foobar
22219 foobar:' > conftest.s
22220     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22221   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22222   (eval $ac_try) 2>&5
22223   ac_status=$?
22224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22225   test $ac_status = 0; }; }
22226     then
22227
22228 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22229 # STV_HIDDEN, so disable .hidden support if so.
22230 case "${target}" in
22231   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22232     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22233       cat > conftest.s <<EOF
22234 .globl hidden
22235         .hidden hidden
22236 hidden:
22237 .globl default
22238         .set    default,hidden
22239 EOF
22240       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22241         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22242         grep '\.hidden default' > /dev/null; then
22243         gcc_cv_as_hidden=no
22244       else
22245         gcc_cv_as_hidden=yes
22246       fi
22247     else
22248       # Assume bug is present if objdump is missing.
22249       gcc_cv_as_hidden=no
22250     fi
22251     ;;
22252   *)
22253     gcc_cv_as_hidden=yes
22254     ;;
22255 esac
22256     else
22257       echo "configure: failed program was" >&5
22258       cat conftest.s >&5
22259     fi
22260     rm -f conftest.o conftest.s
22261   fi
22262 fi
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22264 $as_echo "$gcc_cv_as_hidden" >&6; }
22265
22266 case "${target}" in
22267   *-*-darwin*)
22268     # Darwin as has some visibility support, though with a different syntax.
22269     gcc_cv_as_hidden=yes
22270     ;;
22271 esac
22272
22273 # gnu_indirect_function type is an extension proposed at
22274 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22275 # selection of function implementation
22276 # Check whether --enable-gnu-indirect-function was given.
22277 if test "${enable_gnu_indirect_function+set}" = set; then :
22278   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22279     yes | no) ;;
22280     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22281 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22282   esac
22283 else
22284   enable_gnu_indirect_function="$default_gnu_indirect_function"
22285 fi
22286
22287 if test x$enable_gnu_indirect_function = xyes; then
22288
22289 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22290
22291 fi
22292
22293 if test $in_tree_ld != yes ; then
22294   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22295   if echo "$ld_ver" | grep GNU > /dev/null; then
22296     if test x"$ld_is_gold" = xyes; then
22297       # GNU gold --version looks like this:
22298       #
22299       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22300       #
22301       # We extract the binutils version which is more familiar and specific
22302       # than the gold version.
22303       ld_vers=`echo $ld_ver | sed -n \
22304           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22305     else
22306       # GNU ld --version looks like this:
22307       #
22308       # GNU ld (GNU Binutils) 2.21.51.20110225
22309       ld_vers=`echo $ld_ver | sed -n \
22310           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22311     fi
22312     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'`
22313     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22314     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22315     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22316   else
22317     case "${target}" in
22318       *-*-solaris2*)
22319         #
22320         # Solaris 2 ld -V output looks like this for a regular version:
22321         #
22322         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22323         #
22324         # but test versions add stuff at the end:
22325         #
22326         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22327         #
22328         ld_ver=`$gcc_cv_ld -V 2>&1`
22329         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22330           ld_vers=`echo $ld_ver | sed -n \
22331             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22332           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22333           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22334         fi
22335         ;;
22336     esac
22337   fi
22338 fi
22339
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22341 $as_echo_n "checking linker for .hidden support... " >&6; }
22342 if test "${gcc_cv_ld_hidden+set}" = set; then :
22343   $as_echo_n "(cached) " >&6
22344 else
22345   if test $in_tree_ld = yes ; then
22346   gcc_cv_ld_hidden=no
22347   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 \
22348      && test $in_tree_ld_is_elf = yes; then
22349      gcc_cv_ld_hidden=yes
22350   fi
22351 else
22352   gcc_cv_ld_hidden=yes
22353   if test x"$ld_is_gold" = xyes; then
22354     :
22355   elif echo "$ld_ver" | grep GNU > /dev/null; then
22356     if test 0"$ld_date" -lt 20020404; then
22357       if test -n "$ld_date"; then
22358         # If there was date string, but was earlier than 2002-04-04, fail
22359         gcc_cv_ld_hidden=no
22360       elif test -z "$ld_vers"; then
22361         # If there was no date string nor ld version number, something is wrong
22362         gcc_cv_ld_hidden=no
22363       else
22364         test -z "$ld_vers_patch" && ld_vers_patch=0
22365         if test "$ld_vers_major" -lt 2; then
22366           gcc_cv_ld_hidden=no
22367         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22368           gcc_cv_ld_hidden="no"
22369         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22370           gcc_cv_ld_hidden=no
22371         fi
22372       fi
22373     fi
22374   else
22375     case "${target}" in
22376       *-*-darwin*)
22377         # Darwin ld has some visibility support.
22378         gcc_cv_ld_hidden=yes
22379         ;;
22380       hppa64*-*-hpux* | ia64*-*-hpux*)
22381         gcc_cv_ld_hidden=yes
22382         ;;
22383       *-*-solaris2.8*)
22384         # .hidden support was backported to Solaris 8, starting with ld
22385         # version 1.276.
22386         if test "$ld_vers_minor" -ge 276; then
22387           gcc_cv_ld_hidden=yes
22388         else
22389           gcc_cv_ld_hidden=no
22390         fi
22391         ;;
22392       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22393         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22394         # .symbolic was only added in Solaris 9 12/02.
22395         gcc_cv_ld_hidden=yes
22396         ;;
22397       *)
22398         gcc_cv_ld_hidden=no
22399         ;;
22400     esac
22401   fi
22402 fi
22403 fi
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22405 $as_echo "$gcc_cv_ld_hidden" >&6; }
22406 libgcc_visibility=no
22407
22408
22409 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22410   libgcc_visibility=yes
22411
22412 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22413
22414 fi
22415
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22417 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22418 gcc_cv_ld_ro_rw_mix=unknown
22419 if test $in_tree_ld = yes ; then
22420   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 \
22421      && test $in_tree_ld_is_elf = yes; then
22422     gcc_cv_ld_ro_rw_mix=read-write
22423   fi
22424 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22425   echo '.section myfoosect, "a"' > conftest1.s
22426   echo '.section myfoosect, "aw"' > conftest2.s
22427   echo '.byte 1' >> conftest2.s
22428   echo '.section myfoosect, "a"' > conftest3.s
22429   echo '.byte 0' >> conftest3.s
22430   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22431      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22432      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22433      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22434         conftest2.o conftest3.o > /dev/null 2>&1; then
22435     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22436                          | sed -e '/myfoosect/!d' -e N`
22437     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22438       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22439         gcc_cv_ld_ro_rw_mix=read-only
22440       else
22441         gcc_cv_ld_ro_rw_mix=read-write
22442       fi
22443     fi
22444   fi
22445   rm -f conftest.* conftest[123].*
22446 fi
22447 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22448
22449 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22450
22451 fi
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22453 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22454
22455 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22457 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22458 if test "${gcc_cv_as_leb128+set}" = set; then :
22459   $as_echo_n "(cached) " >&6
22460 else
22461   gcc_cv_as_leb128=no
22462     if test $in_tree_gas = yes; then
22463     if test $in_tree_gas_is_elf = yes \
22464   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22465   then gcc_cv_as_leb128=yes
22466 fi
22467   elif test x$gcc_cv_as != x; then
22468     $as_echo '  .data
22469         .uleb128 L2 - L1
22470 L1:
22471         .uleb128 1280
22472         .sleb128 -1010
22473 L2:' > conftest.s
22474     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22475   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22476   (eval $ac_try) 2>&5
22477   ac_status=$?
22478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22479   test $ac_status = 0; }; }
22480     then
22481         # GAS versions before 2.11 do not support uleb128,
22482   # despite appearing to.
22483   # ??? There exists an elf-specific test that will crash
22484   # the assembler.  Perhaps it's better to figure out whether
22485   # arbitrary sections are supported and try the test.
22486   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22487   if echo "$as_ver" | grep GNU > /dev/null; then
22488     as_vers=`echo $as_ver | sed -n \
22489         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22490     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22491     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22492     if test $as_major -eq 2 && test $as_minor -lt 11
22493     then :
22494     else gcc_cv_as_leb128=yes
22495     fi
22496   fi
22497     else
22498       echo "configure: failed program was" >&5
22499       cat conftest.s >&5
22500     fi
22501     rm -f conftest.o conftest.s
22502   fi
22503 fi
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22505 $as_echo "$gcc_cv_as_leb128" >&6; }
22506 if test $gcc_cv_as_leb128 = yes; then
22507
22508 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22509
22510 fi
22511
22512 # Check if we have assembler support for unwind directives.
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22514 $as_echo_n "checking assembler for cfi directives... " >&6; }
22515 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22516   $as_echo_n "(cached) " >&6
22517 else
22518   gcc_cv_as_cfi_directive=no
22519   if test x$gcc_cv_as != x; then
22520     $as_echo '  .text
22521         .cfi_startproc
22522         .cfi_offset 0, 0
22523         .cfi_same_value 1
22524         .cfi_def_cfa 1, 2
22525         .cfi_escape 1, 2, 3, 4, 5
22526         .cfi_endproc' > conftest.s
22527     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22528   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22529   (eval $ac_try) 2>&5
22530   ac_status=$?
22531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22532   test $ac_status = 0; }; }
22533     then
22534         case "$target" in
22535   *-*-solaris*)
22536     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22537     # read-only and read-write sections, we need to make sure that the
22538     # assembler used emits read-write .eh_frame sections.
22539     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22540       if test "x$gcc_cv_objdump" != x; then
22541         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22542                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22543           gcc_cv_as_cfi_directive=no
22544         else
22545           case "$target" in
22546             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22547               # On Solaris/x86, make sure that GCC and gas agree on using
22548               # read-only .eh_frame sections for 64-bit.
22549               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22550                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22551                         sed -e /.eh_frame/!d -e N | \
22552                         grep READONLY > /dev/null; then
22553                 gcc_cv_as_cfi_directive=yes
22554               else
22555                 gcc_cv_as_cfi_directive=no
22556               fi
22557               ;;
22558             *)
22559               gcc_cv_as_cfi_directive=yes
22560               ;;
22561           esac
22562         fi
22563       else
22564         # no objdump, err on the side of caution
22565         gcc_cv_as_cfi_directive=no
22566       fi
22567     else
22568       gcc_cv_as_cfi_directive=yes
22569     fi
22570     ;;
22571   *-*-*)
22572     gcc_cv_as_cfi_directive=yes
22573     ;;
22574 esac
22575     else
22576       echo "configure: failed program was" >&5
22577       cat conftest.s >&5
22578     fi
22579     rm -f conftest.o conftest.s
22580   fi
22581 fi
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22583 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22584
22585 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22587 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22588 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22589   $as_echo_n "(cached) " >&6
22590 else
22591   gcc_cv_as_cfi_advance_working=no
22592   if test x$gcc_cv_as != x; then
22593     $as_echo '  .text
22594         .cfi_startproc
22595         .cfi_adjust_cfa_offset 64
22596         .skip 75040, 0
22597         .cfi_adjust_cfa_offset 128
22598         .cfi_endproc' > conftest.s
22599     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22600   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22601   (eval $ac_try) 2>&5
22602   ac_status=$?
22603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22604   test $ac_status = 0; }; }
22605     then
22606
22607 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22608     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22609    gcc_cv_as_cfi_advance_working=yes
22610 fi
22611
22612     else
22613       echo "configure: failed program was" >&5
22614       cat conftest.s >&5
22615     fi
22616     rm -f conftest.o conftest.s
22617   fi
22618 fi
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22620 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22621
22622 else
22623   # no objdump, err on the side of caution
22624   gcc_cv_as_cfi_advance_working=no
22625 fi
22626
22627
22628 cat >>confdefs.h <<_ACEOF
22629 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22630        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22631 _ACEOF
22632
22633
22634
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22636 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22637 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22638   $as_echo_n "(cached) " >&6
22639 else
22640   gcc_cv_as_cfi_personality_directive=no
22641   if test x$gcc_cv_as != x; then
22642     $as_echo '  .text
22643         .cfi_startproc
22644         .cfi_personality 0, symbol
22645         .cfi_endproc' > conftest.s
22646     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22647   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22648   (eval $ac_try) 2>&5
22649   ac_status=$?
22650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22651   test $ac_status = 0; }; }
22652     then
22653         gcc_cv_as_cfi_personality_directive=yes
22654     else
22655       echo "configure: failed program was" >&5
22656       cat conftest.s >&5
22657     fi
22658     rm -f conftest.o conftest.s
22659   fi
22660 fi
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22662 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22663
22664
22665 cat >>confdefs.h <<_ACEOF
22666 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22667     then echo 1; else echo 0; fi`
22668 _ACEOF
22669
22670
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22672 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22673 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22674   $as_echo_n "(cached) " >&6
22675 else
22676   gcc_cv_as_cfi_sections_directive=no
22677   if test x$gcc_cv_as != x; then
22678     $as_echo '  .text
22679         .cfi_sections .debug_frame, .eh_frame
22680         .cfi_startproc
22681         .cfi_endproc' > conftest.s
22682     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22683   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22684   (eval $ac_try) 2>&5
22685   ac_status=$?
22686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22687   test $ac_status = 0; }; }
22688     then
22689         case $target_os in
22690   win32 | pe | cygwin* | mingw32* | uwin*)
22691     # Need to check that we generated the correct relocation for the
22692     # .debug_frame section.  This was fixed for binutils 2.21.
22693     gcc_cv_as_cfi_sections_directive=no
22694     if test "x$gcc_cv_objdump" != x; then
22695      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22696         grep secrel > /dev/null; then
22697       gcc_cv_as_cfi_sections_directive=yes
22698      fi
22699     fi
22700     ;;
22701   *)
22702     gcc_cv_as_cfi_sections_directive=yes
22703     ;;
22704 esac
22705     else
22706       echo "configure: failed program was" >&5
22707       cat conftest.s >&5
22708     fi
22709     rm -f conftest.o conftest.s
22710   fi
22711 fi
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22713 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22714
22715
22716
22717 cat >>confdefs.h <<_ACEOF
22718 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22719     then echo 1; else echo 0; fi`
22720 _ACEOF
22721
22722
22723 # GAS versions up to and including 2.11.0 may mis-optimize
22724 # .eh_frame data.
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22726 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22727 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22728   $as_echo_n "(cached) " >&6
22729 else
22730   gcc_cv_as_eh_frame=no
22731     if test $in_tree_gas = yes; then
22732     if test $in_tree_gas_is_elf = yes \
22733   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22734   then gcc_cv_as_eh_frame=yes
22735 fi
22736   elif test x$gcc_cv_as != x; then
22737     $as_echo '  .text
22738 .LFB1:
22739         .4byte  0
22740 .L1:
22741         .4byte  0
22742 .LFE1:
22743         .section        .eh_frame,"aw",@progbits
22744 __FRAME_BEGIN__:
22745         .4byte  .LECIE1-.LSCIE1
22746 .LSCIE1:
22747         .4byte  0x0
22748         .byte   0x1
22749         .ascii "z\0"
22750         .byte   0x1
22751         .byte   0x78
22752         .byte   0x1a
22753         .byte   0x0
22754         .byte   0x4
22755         .4byte  1
22756         .p2align 1
22757 .LECIE1:
22758 .LSFDE1:
22759         .4byte  .LEFDE1-.LASFDE1
22760 .LASFDE1:
22761         .4byte  .LASFDE1-__FRAME_BEGIN__
22762         .4byte  .LFB1
22763         .4byte  .LFE1-.LFB1
22764         .byte   0x4
22765         .4byte  .LFE1-.LFB1
22766         .byte   0x4
22767         .4byte  .L1-.LFB1
22768 .LEFDE1:' > conftest.s
22769     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22770   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22771   (eval $ac_try) 2>&5
22772   ac_status=$?
22773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22774   test $ac_status = 0; }; }
22775     then
22776           cat > conftest.lit <<EOF
22777  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22778  0010 01000000 12000000 18000000 00000000  ................
22779  0020 08000000 04080000 0044               .........D      
22780 EOF
22781 cat > conftest.big <<EOF
22782  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22783  0010 00000001 00000012 00000018 00000000  ................
22784  0020 00000008 04000000 0844               .........D      
22785 EOF
22786   # If the assembler didn't choke, and we can objdump,
22787   # and we got the correct data, then succeed.
22788   # The text in the here-document typically retains its unix-style line
22789   # endings, while the output of objdump will use host line endings.
22790   # Therefore, use diff -b for the comparisons.
22791   if test x$gcc_cv_objdump != x \
22792   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22793      | tail -3 > conftest.got \
22794   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22795     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22796   then
22797     gcc_cv_as_eh_frame=yes
22798   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22799   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22800   (eval $ac_try) 2>&5
22801   ac_status=$?
22802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22803   test $ac_status = 0; }; }; then
22804     gcc_cv_as_eh_frame=buggy
22805   else
22806     # Uh oh, what do we do now?
22807     gcc_cv_as_eh_frame=no
22808   fi
22809     else
22810       echo "configure: failed program was" >&5
22811       cat conftest.s >&5
22812     fi
22813     rm -f conftest.o conftest.s
22814   fi
22815 fi
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22817 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22818
22819
22820 if test $gcc_cv_as_eh_frame = buggy; then
22821
22822 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22823
22824 fi
22825
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22827 $as_echo_n "checking assembler for section merging support... " >&6; }
22828 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22829   $as_echo_n "(cached) " >&6
22830 else
22831   gcc_cv_as_shf_merge=no
22832     if test $in_tree_gas = yes; then
22833     if test $in_tree_gas_is_elf = yes \
22834   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22835   then gcc_cv_as_shf_merge=yes
22836 fi
22837   elif test x$gcc_cv_as != x; then
22838     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22839     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22840   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22841   (eval $ac_try) 2>&5
22842   ac_status=$?
22843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22844   test $ac_status = 0; }; }
22845     then
22846         gcc_cv_as_shf_merge=yes
22847     else
22848       echo "configure: failed program was" >&5
22849       cat conftest.s >&5
22850     fi
22851     rm -f conftest.o conftest.s
22852   fi
22853 fi
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22855 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22856
22857 if test $gcc_cv_as_shf_merge = no; then
22858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22859 $as_echo_n "checking assembler for section merging support... " >&6; }
22860 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22861   $as_echo_n "(cached) " >&6
22862 else
22863   gcc_cv_as_shf_merge=no
22864     if test $in_tree_gas = yes; then
22865     if test $in_tree_gas_is_elf = yes \
22866   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22867   then gcc_cv_as_shf_merge=yes
22868 fi
22869   elif test x$gcc_cv_as != x; then
22870     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22871     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22872   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22873   (eval $ac_try) 2>&5
22874   ac_status=$?
22875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22876   test $ac_status = 0; }; }
22877     then
22878         gcc_cv_as_shf_merge=yes
22879     else
22880       echo "configure: failed program was" >&5
22881       cat conftest.s >&5
22882     fi
22883     rm -f conftest.o conftest.s
22884   fi
22885 fi
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22887 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22888
22889 fi
22890
22891 cat >>confdefs.h <<_ACEOF
22892 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22893 _ACEOF
22894
22895
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22897 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22898 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22899   $as_echo_n "(cached) " >&6
22900 else
22901   gcc_cv_as_comdat_group=no
22902     if test $in_tree_gas = yes; then
22903     if test $in_tree_gas_is_elf = yes \
22904   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22905   then gcc_cv_as_comdat_group=yes
22906 fi
22907   elif test x$gcc_cv_as != x; then
22908     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22909     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22910   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22911   (eval $ac_try) 2>&5
22912   ac_status=$?
22913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22914   test $ac_status = 0; }; }
22915     then
22916         gcc_cv_as_comdat_group=yes
22917     else
22918       echo "configure: failed program was" >&5
22919       cat conftest.s >&5
22920     fi
22921     rm -f conftest.o conftest.s
22922   fi
22923 fi
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22925 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22926
22927 if test $gcc_cv_as_comdat_group = yes; then
22928   gcc_cv_as_comdat_group_percent=no
22929   gcc_cv_as_comdat_group_group=no
22930 else
22931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22932 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22933 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22934   $as_echo_n "(cached) " >&6
22935 else
22936   gcc_cv_as_comdat_group_percent=no
22937     if test $in_tree_gas = yes; then
22938     if test $in_tree_gas_is_elf = yes \
22939   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22940   then gcc_cv_as_comdat_group_percent=yes
22941 fi
22942   elif test x$gcc_cv_as != x; then
22943     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22944     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22945   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22946   (eval $ac_try) 2>&5
22947   ac_status=$?
22948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22949   test $ac_status = 0; }; }
22950     then
22951         gcc_cv_as_comdat_group_percent=yes
22952     else
22953       echo "configure: failed program was" >&5
22954       cat conftest.s >&5
22955     fi
22956     rm -f conftest.o conftest.s
22957   fi
22958 fi
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22960 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22961
22962  if test $gcc_cv_as_comdat_group_percent = yes; then
22963    gcc_cv_as_comdat_group_group=no
22964  else
22965    case "${target}" in
22966      # Sun as uses a completely different syntax.
22967      *-*-solaris2*)
22968        case "${target}" in
22969          sparc*-*-solaris2*)
22970            conftest_s='
22971                .group foo,".text%foo",#comdat
22972                .section ".text%foo", #alloc,#execinstr,#progbits
22973                .globl foo
22974              foo:
22975              '
22976            ;;
22977          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22978            conftest_s='
22979                .group foo,.text%foo,#comdat
22980                .section .text%foo, "ax", @progbits
22981                .globl  foo
22982              foo:
22983              '
22984            ;;
22985        esac
22986        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22987 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22988 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22989   $as_echo_n "(cached) " >&6
22990 else
22991   gcc_cv_as_comdat_group_group=no
22992   if test x$gcc_cv_as != x; then
22993     $as_echo "$conftest_s" > conftest.s
22994     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22995   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22996   (eval $ac_try) 2>&5
22997   ac_status=$?
22998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22999   test $ac_status = 0; }; }
23000     then
23001         gcc_cv_as_comdat_group_group=yes
23002     else
23003       echo "configure: failed program was" >&5
23004       cat conftest.s >&5
23005     fi
23006     rm -f conftest.o conftest.s
23007   fi
23008 fi
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23010 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23011
23012        ;;
23013    esac
23014  fi
23015 fi
23016 if test x"$ld_is_gold" = xyes; then
23017   comdat_group=yes
23018 elif test $in_tree_ld = yes ; then
23019   comdat_group=no
23020   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 \
23021      && test $in_tree_ld_is_elf = yes; then
23022      comdat_group=yes
23023   fi
23024 elif echo "$ld_ver" | grep GNU > /dev/null; then
23025   comdat_group=yes
23026   if test 0"$ld_date" -lt 20050308; then
23027     if test -n "$ld_date"; then
23028       # If there was date string, but was earlier than 2005-03-08, fail
23029       comdat_group=no
23030     elif test "$ld_vers_major" -lt 2; then
23031       comdat_group=no
23032     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23033       comdat_group=no
23034     fi
23035   fi
23036 else
23037   case "${target}" in
23038     *-*-solaris2.1[1-9]*)
23039       comdat_group=no
23040       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23041       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23042       # version 1.688.
23043       #
23044       # If using Sun as for COMDAT group as emitted by GCC, one needs at
23045       # least ld version 1.2267.
23046       if test "$ld_vers_major" -gt 1; then
23047         comdat_group=yes
23048       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23049         comdat_group=yes
23050       elif test "$ld_vers_minor" -ge 2267; then
23051         comdat_group=yes
23052       fi
23053       ;;
23054     *)
23055       # Assume linkers other than GNU ld don't support COMDAT group.
23056       comdat_group=no
23057       ;;
23058   esac
23059 fi
23060 # Allow overriding the automatic COMDAT group tests above.
23061 # Check whether --enable-comdat was given.
23062 if test "${enable_comdat+set}" = set; then :
23063   enableval=$enable_comdat; comdat_group="$enable_comdat"
23064 fi
23065
23066 if test $comdat_group = no; then
23067   gcc_cv_as_comdat_group=no
23068   gcc_cv_as_comdat_group_percent=no
23069   gcc_cv_as_comdat_group_group=no
23070 fi
23071
23072 cat >>confdefs.h <<_ACEOF
23073 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23074     || test $gcc_cv_as_comdat_group_percent = yes \
23075     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23076 _ACEOF
23077
23078
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23080 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23081 if test "${gcc_cv_as_discriminator+set}" = set; then :
23082   $as_echo_n "(cached) " >&6
23083 else
23084   gcc_cv_as_discriminator=no
23085     if test $in_tree_gas = yes; then
23086     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23087   then gcc_cv_as_discriminator=yes
23088 fi
23089   elif test x$gcc_cv_as != x; then
23090     $as_echo '  .text
23091         .file 1 "conf.c"
23092         .loc 1 1 0 discriminator 1' > conftest.s
23093     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23094   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23095   (eval $ac_try) 2>&5
23096   ac_status=$?
23097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23098   test $ac_status = 0; }; }
23099     then
23100         gcc_cv_as_discriminator=yes
23101     else
23102       echo "configure: failed program was" >&5
23103       cat conftest.s >&5
23104     fi
23105     rm -f conftest.o conftest.s
23106   fi
23107 fi
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23109 $as_echo "$gcc_cv_as_discriminator" >&6; }
23110 if test $gcc_cv_as_discriminator = yes; then
23111
23112 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23113
23114 fi
23115
23116 # Thread-local storage - the check is heavily parameterized.
23117 conftest_s=
23118 tls_first_major=
23119 tls_first_minor=
23120 tls_as_opt=
23121 case "$target" in
23122   alpha*-*-*)
23123     conftest_s='
23124         .section ".tdata","awT",@progbits
23125 foo:    .long   25
23126         .text
23127         ldq     $27,__tls_get_addr($29)         !literal!1
23128         lda     $16,foo($29)                    !tlsgd!1
23129         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
23130         ldq     $27,__tls_get_addr($29)         !literal!2
23131         lda     $16,foo($29)                    !tlsldm!2
23132         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
23133         ldq     $1,foo($29)                     !gotdtprel
23134         ldah    $2,foo($29)                     !dtprelhi
23135         lda     $3,foo($2)                      !dtprello
23136         lda     $4,foo($29)                     !dtprel
23137         ldq     $1,foo($29)                     !gottprel
23138         ldah    $2,foo($29)                     !tprelhi
23139         lda     $3,foo($2)                      !tprello
23140         lda     $4,foo($29)                     !tprel'
23141         tls_first_major=2
23142         tls_first_minor=13
23143         tls_as_opt=--fatal-warnings
23144         ;;
23145   cris-*-*|crisv32-*-*)
23146     conftest_s='
23147         .section ".tdata","awT",@progbits
23148 x:      .long   25
23149         .text
23150         move.d x:IE,$r10
23151         nop'
23152         tls_first_major=2
23153         tls_first_minor=20
23154         tls_as_opt=--fatal-warnings
23155         ;;
23156   frv*-*-*)
23157     conftest_s='
23158         .section ".tdata","awT",@progbits
23159 x:      .long   25
23160         .text
23161         call    #gettlsoff(x)'
23162         tls_first_major=2
23163         tls_first_minor=14
23164         ;;
23165   hppa*-*-linux*)
23166     conftest_s='
23167 t1:     .reg    %r20
23168 t2:     .reg    %r21
23169 gp:     .reg    %r19
23170         .section ".tdata","awT",@progbits
23171 foo:    .long   25
23172         .text
23173         .align  4
23174         addil LT%foo-$tls_gdidx$,gp
23175         ldo RT%foo-$tls_gdidx$(%r1),%arg0
23176         b __tls_get_addr
23177         nop
23178         addil LT%foo-$tls_ldidx$,gp
23179         b __tls_get_addr
23180         ldo RT%foo-$tls_ldidx$(%r1),%arg0
23181         addil LR%foo-$tls_dtpoff$,%ret0
23182         ldo RR%foo-$tls_dtpoff$(%r1),%t1
23183         mfctl %cr27,%t1
23184         addil LT%foo-$tls_ieoff$,gp
23185         ldw RT%foo-$tls_ieoff$(%r1),%t2
23186         add %t1,%t2,%t3
23187         mfctl %cr27,%t1
23188         addil LR%foo-$tls_leoff$,%t1
23189         ldo RR%foo-$tls_leoff$(%r1),%t2'
23190         tls_first_major=2
23191         tls_first_minor=15
23192         tls_as_opt=--fatal-warnings
23193         ;;
23194   arm*-*-*)
23195     conftest_s='
23196         .section ".tdata","awT",%progbits
23197 foo:    .long   25
23198         .text
23199 .word foo(gottpoff)
23200 .word foo(tpoff)
23201 .word foo(tlsgd)
23202 .word foo(tlsldm)
23203 .word foo(tlsldo)'
23204         tls_first_major=2
23205         tls_first_minor=17
23206         ;;
23207   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23208     case "$target" in
23209       i[34567]86-*-solaris2.*)
23210         on_solaris=yes
23211         tga_func=___tls_get_addr
23212         ;;
23213       x86_64-*-solaris2.1[0-9]*)
23214         on_solaris=yes
23215         tga_func=__tls_get_addr
23216         ;;
23217       *)
23218         on_solaris=no
23219         ;;
23220     esac
23221     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23222       conftest_s='
23223         .section .tdata,"awt",@progbits'
23224       tls_first_major=0
23225       tls_first_minor=0
23226
23227 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23228
23229     else
23230       conftest_s='
23231         .section ".tdata","awT",@progbits'
23232       tls_first_major=2
23233       tls_first_minor=14
23234       tls_as_opt="--fatal-warnings"
23235     fi
23236     conftest_s="$conftest_s
23237 foo:    .long   25
23238         .text
23239         movl    %gs:0, %eax
23240         leal    foo@tlsgd(,%ebx,1), %eax
23241         leal    foo@tlsldm(%ebx), %eax
23242         leal    foo@dtpoff(%eax), %edx
23243         movl    foo@gottpoff(%ebx), %eax
23244         subl    foo@gottpoff(%ebx), %eax
23245         addl    foo@gotntpoff(%ebx), %eax
23246         movl    foo@indntpoff, %eax
23247         movl    \$foo@tpoff, %eax
23248         subl    \$foo@tpoff, %eax
23249         leal    foo@ntpoff(%ecx), %eax"
23250     ;;
23251   x86_64-*-*)
23252     conftest_s='
23253         .section ".tdata","awT",@progbits
23254 foo:    .long   25
23255         .text
23256         movq    %fs:0, %rax
23257         leaq    foo@TLSGD(%rip), %rdi
23258         leaq    foo@TLSLD(%rip), %rdi
23259         leaq    foo@DTPOFF(%rax), %rdx
23260         movq    foo@GOTTPOFF(%rip), %rax
23261         movq    $foo@TPOFF, %rax'
23262         tls_first_major=2
23263         tls_first_minor=14
23264         tls_as_opt=--fatal-warnings
23265         ;;
23266   ia64-*-*)
23267     conftest_s='
23268         .section ".tdata","awT",@progbits
23269 foo:    data8   25
23270         .text
23271         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23272         addl    r17 = @ltoff(@dtprel(foo#)), gp
23273         addl    r18 = @ltoff(@tprel(foo#)), gp
23274         addl    r19 = @dtprel(foo#), gp
23275         adds    r21 = @dtprel(foo#), r13
23276         movl    r23 = @dtprel(foo#)
23277         addl    r20 = @tprel(foo#), gp
23278         adds    r22 = @tprel(foo#), r13
23279         movl    r24 = @tprel(foo#)'
23280         tls_first_major=2
23281         tls_first_minor=13
23282         tls_as_opt=--fatal-warnings
23283         ;;
23284   mips*-*-*)
23285     conftest_s='
23286         .section .tdata,"awT",@progbits
23287 x:
23288         .word 2
23289         .text
23290         addiu $4, $28, %tlsgd(x)
23291         addiu $4, $28, %tlsldm(x)
23292         lui $4, %dtprel_hi(x)
23293         addiu $4, $4, %dtprel_lo(x)
23294         lw $4, %gottprel(x)($28)
23295         lui $4, %tprel_hi(x)
23296         addiu $4, $4, %tprel_lo(x)'
23297         tls_first_major=2
23298         tls_first_minor=16
23299         tls_as_opt='-32 --fatal-warnings'
23300         ;;
23301   m68k-*-*)
23302     conftest_s='
23303         .section .tdata,"awT",@progbits
23304 x:
23305         .word 2
23306         .text
23307 foo:
23308         move.l x@TLSGD(%a5),%a0
23309         move.l x@TLSLDM(%a5),%a0
23310         move.l x@TLSLDO(%a5),%a0
23311         move.l x@TLSIE(%a5),%a0
23312         move.l x@TLSLE(%a5),%a0'
23313         tls_first_major=2
23314         tls_first_minor=19
23315         tls_as_opt='--fatal-warnings'
23316         ;;
23317   powerpc-*-*)
23318     conftest_s='
23319         .section ".tdata","awT",@progbits
23320         .align 2
23321 ld0:    .space 4
23322 ld1:    .space 4
23323 x1:     .space 4
23324 x2:     .space 4
23325 x3:     .space 4
23326         .text
23327         addi 3,31,ld0@got@tlsgd
23328         bl __tls_get_addr
23329         addi 3,31,x1@got@tlsld
23330         bl __tls_get_addr
23331         addi 9,3,x1@dtprel
23332         addis 9,3,x2@dtprel@ha
23333         addi 9,9,x2@dtprel@l
23334         lwz 9,x3@got@tprel(31)
23335         add 9,9,x@tls
23336         addi 9,2,x1@tprel
23337         addis 9,2,x2@tprel@ha
23338         addi 9,9,x2@tprel@l'
23339         tls_first_major=2
23340         tls_first_minor=14
23341         tls_as_opt="-a32 --fatal-warnings"
23342         ;;
23343   powerpc64-*-*)
23344     conftest_s='
23345         .section ".tdata","awT",@progbits
23346         .align 3
23347 ld0:    .space 8
23348 ld1:    .space 8
23349 x1:     .space 8
23350 x2:     .space 8
23351 x3:     .space 8
23352         .text
23353         addi 3,2,ld0@got@tlsgd
23354         bl .__tls_get_addr
23355         nop
23356         addi 3,2,ld1@toc
23357         bl .__tls_get_addr
23358         nop
23359         addi 3,2,x1@got@tlsld
23360         bl .__tls_get_addr
23361         nop
23362         addi 9,3,x1@dtprel
23363         bl .__tls_get_addr
23364         nop
23365         addis 9,3,x2@dtprel@ha
23366         addi 9,9,x2@dtprel@l
23367         bl .__tls_get_addr
23368         nop
23369         ld 9,x3@got@dtprel(2)
23370         add 9,9,3
23371         bl .__tls_get_addr
23372         nop'
23373         tls_first_major=2
23374         tls_first_minor=14
23375         tls_as_opt="-a64 --fatal-warnings"
23376         ;;
23377   s390-*-*)
23378     conftest_s='
23379         .section ".tdata","awT",@progbits
23380 foo:    .long   25
23381         .text
23382         .long   foo@TLSGD
23383         .long   foo@TLSLDM
23384         .long   foo@DTPOFF
23385         .long   foo@NTPOFF
23386         .long   foo@GOTNTPOFF
23387         .long   foo@INDNTPOFF
23388         l       %r1,foo@GOTNTPOFF(%r12)
23389         l       %r1,0(%r1):tls_load:foo
23390         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23391         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23392         tls_first_major=2
23393         tls_first_minor=14
23394         tls_as_opt="-m31 --fatal-warnings"
23395         ;;
23396   s390x-*-*)
23397     conftest_s='
23398         .section ".tdata","awT",@progbits
23399 foo:    .long   25
23400         .text
23401         .quad   foo@TLSGD
23402         .quad   foo@TLSLDM
23403         .quad   foo@DTPOFF
23404         .quad   foo@NTPOFF
23405         .quad   foo@GOTNTPOFF
23406         lg      %r1,foo@GOTNTPOFF(%r12)
23407         larl    %r1,foo@INDNTPOFF
23408         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23409         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23410         tls_first_major=2
23411         tls_first_minor=14
23412         tls_as_opt="-m64 -Aesame --fatal-warnings"
23413         ;;
23414   sh-*-* | sh[34]-*-*)
23415     conftest_s='
23416         .section ".tdata","awT",@progbits
23417 foo:    .long   25
23418         .text
23419         .long   foo@TLSGD
23420         .long   foo@TLSLDM
23421         .long   foo@DTPOFF
23422         .long   foo@GOTTPOFF
23423         .long   foo@TPOFF'
23424         tls_first_major=2
23425         tls_first_minor=13
23426         tls_as_opt=--fatal-warnings
23427         ;;
23428   sparc*-*-*)
23429     case "$target" in
23430       sparc*-sun-solaris2.*)
23431         on_solaris=yes
23432         tga_func=__tls_get_addr
23433         ;;
23434       *)
23435         on_solaris=no
23436         ;;
23437     esac
23438     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23439       conftest_s='
23440         .section ".tdata",#alloc,#write,#tls'
23441         tls_first_major=0
23442         tls_first_minor=0
23443     else
23444       conftest_s='
23445         .section ".tdata","awT",@progbits'
23446         tls_first_major=2
23447         tls_first_minor=14
23448         tls_as_opt="-32 --fatal-warnings"
23449     fi
23450     conftest_s="$conftest_s
23451 foo:    .long   25
23452         .text
23453         sethi   %tgd_hi22(foo), %o0
23454         add     %o0, %tgd_lo10(foo), %o1
23455         add     %l7, %o1, %o0, %tgd_add(foo)
23456         call    __tls_get_addr, %tgd_call(foo)
23457         sethi   %tldm_hi22(foo), %l1
23458         add     %l1, %tldm_lo10(foo), %l2
23459         add     %l7, %l2, %o0, %tldm_add(foo)
23460         call    __tls_get_addr, %tldm_call(foo)
23461         sethi   %tldo_hix22(foo), %l3
23462         xor     %l3, %tldo_lox10(foo), %l4
23463         add     %o0, %l4, %l5, %tldo_add(foo)
23464         sethi   %tie_hi22(foo), %o3
23465         add     %o3, %tie_lo10(foo), %o3
23466         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23467         add     %g7, %o2, %o4, %tie_add(foo)
23468         sethi   %tle_hix22(foo), %l1
23469         xor     %l1, %tle_lox10(foo), %o5
23470         ld      [%g7 + %o5], %o1"
23471         ;;
23472   xtensa*-*-*)
23473     conftest_s='
23474         .section ".tdata","awT",@progbits
23475 foo:    .long   25
23476         .text
23477         movi    a8, foo@TLSFUNC
23478         movi    a10, foo@TLSARG
23479         callx8.tls a8, foo@TLSCALL'
23480         tls_first_major=2
23481         tls_first_minor=19
23482         ;;
23483 esac
23484 set_have_as_tls=no
23485 if test "x$enable_tls" = xno ; then
23486   : # TLS explicitly disabled.
23487 elif test "x$enable_tls" = xyes ; then
23488   set_have_as_tls=yes # TLS explicitly enabled.
23489 elif test -z "$tls_first_major"; then
23490   : # If we don't have a check, assume no support.
23491 else
23492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23493 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23494 if test "${gcc_cv_as_tls+set}" = set; then :
23495   $as_echo_n "(cached) " >&6
23496 else
23497   gcc_cv_as_tls=no
23498     if test $in_tree_gas = yes; then
23499     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23500   then gcc_cv_as_tls=yes
23501 fi
23502   elif test x$gcc_cv_as != x; then
23503     $as_echo "$conftest_s" > conftest.s
23504     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23505   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23506   (eval $ac_try) 2>&5
23507   ac_status=$?
23508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23509   test $ac_status = 0; }; }
23510     then
23511         gcc_cv_as_tls=yes
23512     else
23513       echo "configure: failed program was" >&5
23514       cat conftest.s >&5
23515     fi
23516     rm -f conftest.o conftest.s
23517   fi
23518 fi
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23520 $as_echo "$gcc_cv_as_tls" >&6; }
23521 if test $gcc_cv_as_tls = yes; then
23522   set_have_as_tls=yes
23523 fi
23524 fi
23525 case "$target" in
23526   *-*-irix6*)
23527     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23528     # with TLS support are in use, native TLS cannot work.
23529     set_have_as_tls=no
23530     ;;
23531   *-*-osf*)
23532     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23533     # gld with TLS support are in use, native TLS cannot work.
23534     set_have_as_tls=no
23535     ;;
23536   # TLS was introduced in the Solaris 9 FCS release and backported to
23537   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
23538   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23539   # ld and GCC don't support any longer.
23540   *-*-solaris2.*)
23541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23542 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23543     ld_tls_support=no
23544     # Check ld and ld.so.1 TLS support.
23545     if echo "$ld_ver" | grep GNU > /dev/null; then
23546       # Assume all interesting versions of GNU ld have TLS support.
23547       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23548       ld_tls_support=yes
23549     else
23550       case "$target" in
23551         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23552         i?86-*-solaris2.8)
23553           min_tls_ld_vers_minor=280
23554           ;;
23555         # Solaris 8/SPARC ld has TLS support since version 1.272.
23556         sparc*-*-solaris2.8)
23557           min_tls_ld_vers_minor=272
23558           ;;
23559         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23560         i?86-*-solaris2.9)
23561           min_tls_ld_vers_minor=374
23562           ;;
23563         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23564         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23565           min_tls_ld_vers_minor=343
23566           ;;
23567       esac
23568       if test "$ld_vers_major" -gt 1 || \
23569         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23570         ld_tls_support=yes
23571       else
23572         set_have_as_tls=no
23573       fi
23574     fi
23575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23576 $as_echo "$ld_tls_support" >&6; }
23577
23578     save_LIBS="$LIBS"
23579     save_LDFLAGS="$LDFLAGS"
23580     LIBS=
23581     LDFLAGS=
23582
23583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23584 $as_echo_n "checking alternate thread library... " >&6; }
23585     case "$target" in
23586       # TLS support was backported to Solaris 8 patches, but only lives in
23587       # the alternate thread library which became the default in Solaris 9.
23588       # We want to always use that, irrespective of TLS support.
23589       *-*-solaris2.8)
23590         # Take multilib subdir into account.  There's no spec to handle
23591         # this.  The 64 symlink exists since Solaris 8.
23592         lwp_dir=/usr/lib/lwp
23593         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23594         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23595         ;;
23596       *-*-solaris2*)
23597         lwp_dir="none"
23598         lwp_spec=""
23599         ;;
23600     esac
23601     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23602
23603 cat >>confdefs.h <<_ACEOF
23604 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23605 _ACEOF
23606
23607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23608 $as_echo "$lwp_dir" >&6; }
23609
23610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23611 $as_echo_n "checking library containing $tga_func... " >&6; }
23612     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23613     # (32-bit x86) only lived in libthread, so check for that.  Keep
23614     # set_have_as_tls if found, disable if not.
23615     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23617 $as_echo_n "checking for library containing $tga_func... " >&6; }
23618 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23619   $as_echo_n "(cached) " >&6
23620 else
23621   ac_func_search_save_LIBS=$LIBS
23622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23623 /* end confdefs.h.  */
23624
23625 /* Override any GCC internal prototype to avoid an error.
23626    Use char because int might match the return type of a GCC
23627    builtin and then its argument prototype would still apply.  */
23628 #ifdef __cplusplus
23629 extern "C"
23630 #endif
23631 char $tga_func ();
23632 int
23633 main ()
23634 {
23635 return $tga_func ();
23636   ;
23637   return 0;
23638 }
23639 _ACEOF
23640 for ac_lib in '' thread; do
23641   if test -z "$ac_lib"; then
23642     ac_res="none required"
23643   else
23644     ac_res=-l$ac_lib
23645     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23646   fi
23647   if ac_fn_c_try_link "$LINENO"; then :
23648   eval "$as_ac_Search=\$ac_res"
23649 fi
23650 rm -f core conftest.err conftest.$ac_objext \
23651     conftest$ac_exeext
23652   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23653   break
23654 fi
23655 done
23656 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23657
23658 else
23659   eval "$as_ac_Search=no"
23660 fi
23661 rm conftest.$ac_ext
23662 LIBS=$ac_func_search_save_LIBS
23663 fi
23664 eval ac_res=\$$as_ac_Search
23665                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23666 $as_echo "$ac_res" >&6; }
23667 eval ac_res=\$$as_ac_Search
23668 if test "$ac_res" != no; then :
23669   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23670
23671 else
23672   set_have_as_tls=no
23673 fi
23674
23675     # Clear LIBS if we cannot support TLS.
23676     if test $set_have_as_tls = no; then
23677       LIBS=
23678     fi
23679     # Always define LIB_TLS_SPEC, even without TLS support.
23680
23681 cat >>confdefs.h <<_ACEOF
23682 #define LIB_TLS_SPEC "$LIBS"
23683 _ACEOF
23684
23685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23686 $as_echo "$LIBS" >&6; }
23687
23688     LIBS="$save_LIBS"
23689     LDFLAGS="$save_LDFLAGS"
23690     ;;
23691 esac
23692 if test $set_have_as_tls = yes ; then
23693
23694 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23695
23696 fi
23697
23698 # Target-specific assembler checks.
23699
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23701 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23702 gcc_cv_ld_static_dynamic=no
23703 gcc_cv_ld_static_option='-Bstatic'
23704 gcc_cv_ld_dynamic_option='-Bdynamic'
23705 if test $in_tree_ld = yes ; then
23706   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
23707     gcc_cv_ld_static_dynamic=yes
23708   fi
23709 elif test x$gcc_cv_ld != x; then
23710   # Check if linker supports -Bstatic/-Bdynamic option
23711   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23712      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23713       gcc_cv_ld_static_dynamic=yes
23714   else
23715     case "$target" in
23716       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23717       alpha*-dec-osf*)
23718         gcc_cv_ld_static_dynamic=yes
23719         gcc_cv_ld_static_option="-noso"
23720         gcc_cv_ld_dynamic_option="-so_archive"
23721         ;;
23722       # HP-UX ld uses -a flags to select between shared and archive.
23723       *-*-hpux*)
23724         if test x"$gnu_ld" = xno; then
23725           gcc_cv_ld_static_dynamic=yes
23726           gcc_cv_ld_static_option="-aarchive_shared"
23727           gcc_cv_ld_dynamic_option="-adefault"
23728         fi
23729         ;;
23730       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23731       mips-sgi-irix6*)
23732         gcc_cv_ld_static_dynamic=yes
23733         ;;
23734       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23735       *-*-solaris2*)
23736         gcc_cv_ld_static_dynamic=yes
23737         ;;
23738     esac
23739   fi
23740 fi
23741 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23742
23743 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23744
23745
23746 cat >>confdefs.h <<_ACEOF
23747 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23748 _ACEOF
23749
23750
23751 cat >>confdefs.h <<_ACEOF
23752 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23753 _ACEOF
23754
23755 fi
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23757 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23758
23759 if test x"$demangler_in_ld" = xyes; then
23760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23761 $as_echo_n "checking linker --demangle support... " >&6; }
23762   gcc_cv_ld_demangle=no
23763   if test $in_tree_ld = yes; then
23764     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 \
23765       gcc_cv_ld_demangle=yes
23766     fi
23767   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23768     # Check if the GNU linker supports --demangle option
23769     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23770       gcc_cv_ld_demangle=yes
23771     fi
23772   fi
23773   if test x"$gcc_cv_ld_demangle" = xyes; then
23774
23775 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23776
23777   fi
23778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23779 $as_echo "$gcc_cv_ld_demangle" >&6; }
23780 fi
23781
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23783 $as_echo_n "checking linker plugin support... " >&6; }
23784 gcc_cv_lto_plugin=0
23785 if test -f liblto_plugin.la; then
23786   save_ld_ver="$ld_ver"
23787   save_ld_vers_major="$ld_vers_major"
23788   save_ld_vers_minor="$ld_vers_minor"
23789   save_ld_is_gold="$ld_is_gold"
23790
23791   ld_is_gold=no
23792
23793   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23794     ld_ver="GNU ld"
23795     # FIXME: ld_is_gold?
23796     ld_vers_major="$gcc_cv_gld_major_version"
23797     ld_vers_minor="$gcc_cv_gld_minor_version"
23798   else
23799     # Determine plugin linker version.
23800     # FIXME: Partial duplicate from above, generalize.
23801     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23802     if echo "$ld_ver" | grep GNU > /dev/null; then
23803       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23804         ld_is_gold=yes
23805         ld_vers=`echo $ld_ver | sed -n \
23806             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23807       else
23808         ld_vers=`echo $ld_ver | sed -n \
23809             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23810       fi
23811       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23812       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23813     fi
23814   fi
23815
23816   # Determine plugin support.
23817   if echo "$ld_ver" | grep GNU > /dev/null; then
23818     # Require GNU ld or gold 2.21+ for plugin support by default.
23819     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23820       gcc_cv_lto_plugin=2
23821     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23822     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23823       gcc_cv_lto_plugin=1
23824     fi
23825   fi
23826
23827   ld_ver="$save_ld_ver"
23828   ld_vers_major="$save_ld_vers_major"
23829   ld_vers_minor="$save_ld_vers_minor"
23830   ld_is_gold="$save_ld_is_gold"
23831 fi
23832
23833 cat >>confdefs.h <<_ACEOF
23834 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23835 _ACEOF
23836
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23838 $as_echo "$gcc_cv_lto_plugin" >&6; }
23839
23840 case "$target" in
23841   # All TARGET_ABI_OSF targets.
23842   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23844 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23845 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23846   $as_echo_n "(cached) " >&6
23847 else
23848   gcc_cv_as_alpha_explicit_relocs=no
23849     if test $in_tree_gas = yes; then
23850     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23851   then gcc_cv_as_alpha_explicit_relocs=yes
23852 fi
23853   elif test x$gcc_cv_as != x; then
23854     $as_echo '  .set nomacro
23855         .text
23856         extbl   $3, $2, $3      !lituse_bytoff!1
23857         ldq     $2, a($29)      !literal!1
23858         ldq     $4, b($29)      !literal!2
23859         ldq_u   $3, 0($2)       !lituse_base!1
23860         ldq     $27, f($29)     !literal!5
23861         jsr     $26, ($27), f   !lituse_jsr!5
23862         ldah    $29, 0($26)     !gpdisp!3
23863         lda     $0, c($29)      !gprel
23864         ldah    $1, d($29)      !gprelhigh
23865         lda     $1, d($1)       !gprellow
23866         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23867     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23868   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23869   (eval $ac_try) 2>&5
23870   ac_status=$?
23871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23872   test $ac_status = 0; }; }
23873     then
23874         gcc_cv_as_alpha_explicit_relocs=yes
23875     else
23876       echo "configure: failed program was" >&5
23877       cat conftest.s >&5
23878     fi
23879     rm -f conftest.o conftest.s
23880   fi
23881 fi
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23883 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23884 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23885
23886 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23887
23888 fi
23889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23890 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23891 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23892   $as_echo_n "(cached) " >&6
23893 else
23894   gcc_cv_as_alpha_jsrdirect_relocs=no
23895     if test $in_tree_gas = yes; then
23896     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23897   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23898 fi
23899   elif test x$gcc_cv_as != x; then
23900     $as_echo '  .set nomacro
23901         .text
23902         ldq     $27, a($29)     !literal!1
23903         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23904     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23905   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23906   (eval $ac_try) 2>&5
23907   ac_status=$?
23908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23909   test $ac_status = 0; }; }
23910     then
23911         gcc_cv_as_alpha_jsrdirect_relocs=yes
23912     else
23913       echo "configure: failed program was" >&5
23914       cat conftest.s >&5
23915     fi
23916     rm -f conftest.o conftest.s
23917   fi
23918 fi
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23920 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23921 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23922
23923 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23924
23925 fi
23926     ;;
23927
23928   cris-*-*)
23929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23930 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23931 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23932   $as_echo_n "(cached) " >&6
23933 else
23934   gcc_cv_as_cris_no_mul_bug=no
23935     if test $in_tree_gas = yes; then
23936     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23937   then gcc_cv_as_cris_no_mul_bug=yes
23938 fi
23939   elif test x$gcc_cv_as != x; then
23940     $as_echo '.text' > conftest.s
23941     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23942   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23943   (eval $ac_try) 2>&5
23944   ac_status=$?
23945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23946   test $ac_status = 0; }; }
23947     then
23948         gcc_cv_as_cris_no_mul_bug=yes
23949     else
23950       echo "configure: failed program was" >&5
23951       cat conftest.s >&5
23952     fi
23953     rm -f conftest.o conftest.s
23954   fi
23955 fi
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23957 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23958 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23959
23960 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23961
23962 fi
23963     ;;
23964
23965   sparc*-*-*)
23966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23967 $as_echo_n "checking assembler for .register... " >&6; }
23968 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23969   $as_echo_n "(cached) " >&6
23970 else
23971   gcc_cv_as_sparc_register_op=no
23972   if test x$gcc_cv_as != x; then
23973     $as_echo '.register %g2, #scratch' > conftest.s
23974     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -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         gcc_cv_as_sparc_register_op=yes
23982     else
23983       echo "configure: failed program was" >&5
23984       cat conftest.s >&5
23985     fi
23986     rm -f conftest.o conftest.s
23987   fi
23988 fi
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23990 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23991 if test $gcc_cv_as_sparc_register_op = yes; then
23992
23993 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23994
23995 fi
23996
23997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23998 $as_echo_n "checking assembler for -relax option... " >&6; }
23999 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24000   $as_echo_n "(cached) " >&6
24001 else
24002   gcc_cv_as_sparc_relax=no
24003   if test x$gcc_cv_as != x; then
24004     $as_echo '.text' > conftest.s
24005     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24006   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24007   (eval $ac_try) 2>&5
24008   ac_status=$?
24009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24010   test $ac_status = 0; }; }
24011     then
24012         gcc_cv_as_sparc_relax=yes
24013     else
24014       echo "configure: failed program was" >&5
24015       cat conftest.s >&5
24016     fi
24017     rm -f conftest.o conftest.s
24018   fi
24019 fi
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24021 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24022 if test $gcc_cv_as_sparc_relax = yes; then
24023
24024 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24025
24026 fi
24027
24028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24029 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24030 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24031   $as_echo_n "(cached) " >&6
24032 else
24033   gcc_cv_as_sparc_gotdata_op=no
24034   if test x$gcc_cv_as != x; then
24035     $as_echo '.text
24036 .align 4
24037 foo:
24038         nop
24039 bar:
24040         sethi %gdop_hix22(foo), %g1
24041         xor    %g1, %gdop_lox10(foo), %g1
24042         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24043     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24044   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24045   (eval $ac_try) 2>&5
24046   ac_status=$?
24047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24048   test $ac_status = 0; }; }
24049     then
24050         if test x$gcc_cv_ld != x \
24051        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24052          if test x$gcc_cv_objdump != x; then
24053            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24054               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24055                gcc_cv_as_sparc_gotdata_op=no
24056            else
24057                gcc_cv_as_sparc_gotdata_op=yes
24058            fi
24059          fi
24060        fi
24061        rm -f conftest
24062     else
24063       echo "configure: failed program was" >&5
24064       cat conftest.s >&5
24065     fi
24066     rm -f conftest.o conftest.s
24067   fi
24068 fi
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24070 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24071 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24072
24073 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24074
24075 fi
24076
24077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24078 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24079 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24080   $as_echo_n "(cached) " >&6
24081 else
24082   gcc_cv_as_sparc_ua_pcrel=no
24083   if test x$gcc_cv_as != x; then
24084     $as_echo '.text
24085 foo:
24086         nop
24087 .data
24088 .align 4
24089 .byte 0
24090 .uaword %r_disp32(foo)' > conftest.s
24091     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24092   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24093   (eval $ac_try) 2>&5
24094   ac_status=$?
24095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24096   test $ac_status = 0; }; }
24097     then
24098         if test x$gcc_cv_ld != x \
24099        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24100          gcc_cv_as_sparc_ua_pcrel=yes
24101        fi
24102        rm -f conftest
24103     else
24104       echo "configure: failed program was" >&5
24105       cat conftest.s >&5
24106     fi
24107     rm -f conftest.o conftest.s
24108   fi
24109 fi
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24111 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24112 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24113
24114 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24115
24116
24117       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24118 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24119 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24120   $as_echo_n "(cached) " >&6
24121 else
24122   gcc_cv_as_sparc_ua_pcrel_hidden=no
24123   if test x$gcc_cv_as != x; then
24124     $as_echo '.data
24125 .align 4
24126 .byte 0x31
24127 .uaword %r_disp32(foo)
24128 .byte 0x32, 0x33, 0x34
24129 .global foo
24130 .hidden foo
24131 foo:
24132 .skip 4' > conftest.s
24133     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24134   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135   (eval $ac_try) 2>&5
24136   ac_status=$?
24137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138   test $ac_status = 0; }; }
24139     then
24140         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24141          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24142          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24143             | grep ' 31000000 07323334' > /dev/null 2>&1; then
24144             if $gcc_cv_objdump -R conftest 2> /dev/null \
24145                | grep 'DISP32' > /dev/null 2>&1; then
24146                 :
24147             else
24148                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24149             fi
24150          fi
24151          rm -f conftest
24152     else
24153       echo "configure: failed program was" >&5
24154       cat conftest.s >&5
24155     fi
24156     rm -f conftest.o conftest.s
24157   fi
24158 fi
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24160 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24161 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24162
24163 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24164
24165 fi
24166
24167 fi # unaligned pcrel relocs
24168
24169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24170 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24171 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24172   $as_echo_n "(cached) " >&6
24173 else
24174   gcc_cv_as_sparc_offsetable_lo10=no
24175   if test x$gcc_cv_as != x; then
24176     $as_echo '.text
24177         or %g1, %lo(ab) + 12, %g1
24178         or %g1, %lo(ab + 12), %g1' > conftest.s
24179     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24180   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24181   (eval $ac_try) 2>&5
24182   ac_status=$?
24183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24184   test $ac_status = 0; }; }
24185     then
24186         if test x$gcc_cv_objdump != x \
24187        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24188           | grep ' 82106000 82106000' > /dev/null 2>&1; then
24189          gcc_cv_as_sparc_offsetable_lo10=yes
24190        fi
24191     else
24192       echo "configure: failed program was" >&5
24193       cat conftest.s >&5
24194     fi
24195     rm -f conftest.o conftest.s
24196   fi
24197 fi
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24199 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24200 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24201
24202 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24203
24204 fi
24205
24206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24207 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24208 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24209   $as_echo_n "(cached) " >&6
24210 else
24211   gcc_cv_as_sparc_fmaf=no
24212   if test x$gcc_cv_as != x; then
24213     $as_echo '.text
24214        .register %g2, #scratch
24215        .register %g3, #scratch
24216        .align 4
24217        fmaddd %f0, %f2, %f4, %f6
24218        addxccc %g1, %g2, %g3
24219        fsrl32 %f2, %f4, %f8
24220        fnaddd %f10, %f12, %f14' > conftest.s
24221     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24222   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24223   (eval $ac_try) 2>&5
24224   ac_status=$?
24225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24226   test $ac_status = 0; }; }
24227     then
24228         gcc_cv_as_sparc_fmaf=yes
24229     else
24230       echo "configure: failed program was" >&5
24231       cat conftest.s >&5
24232     fi
24233     rm -f conftest.o conftest.s
24234   fi
24235 fi
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24237 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24238 if test $gcc_cv_as_sparc_fmaf = yes; then
24239
24240 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24241
24242 fi
24243     ;;
24244
24245   i[34567]86-*-* | x86_64-*-*)
24246     case $target_os in
24247       cygwin*)
24248         # Full C++ conformance when using a shared libstdc++-v3 requires some
24249         # support from the Cygwin DLL, which in more recent versions exports
24250         # wrappers to aid in interposing and redirecting operators new, delete,
24251         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24252         # are configuring for a version of Cygwin that exports the wrappers.
24253         if test x$host = x$target; then
24254           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24255 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24256   gcc_ac_cygwin_dll_wrappers=yes
24257 else
24258   gcc_ac_cygwin_dll_wrappers=no
24259 fi
24260
24261         else
24262           # Can't check presence of libc functions during cross-compile, so
24263           # we just have to assume we're building for an up-to-date target.
24264           gcc_ac_cygwin_dll_wrappers=yes
24265         fi
24266
24267 cat >>confdefs.h <<_ACEOF
24268 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24269 _ACEOF
24270
24271     esac
24272     case $target_os in
24273       cygwin* | pe | mingw32*)
24274         # Recent binutils allows the three-operand form of ".comm" on PE.  This
24275         # definition is used unconditionally to initialise the default state of
24276         # the target option variable that governs usage of the feature.
24277         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24278 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24279 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24280   $as_echo_n "(cached) " >&6
24281 else
24282   gcc_cv_as_comm_has_align=no
24283     if test $in_tree_gas = yes; then
24284     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24285   then gcc_cv_as_comm_has_align=yes
24286 fi
24287   elif test x$gcc_cv_as != x; then
24288     $as_echo '.comm foo,1,32' > conftest.s
24289     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24290   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24291   (eval $ac_try) 2>&5
24292   ac_status=$?
24293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24294   test $ac_status = 0; }; }
24295     then
24296         gcc_cv_as_comm_has_align=yes
24297     else
24298       echo "configure: failed program was" >&5
24299       cat conftest.s >&5
24300     fi
24301     rm -f conftest.o conftest.s
24302   fi
24303 fi
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24305 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24306
24307
24308 cat >>confdefs.h <<_ACEOF
24309 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24310 _ACEOF
24311
24312         # Used for DWARF 2 in PE
24313         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24314 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24315 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24316   $as_echo_n "(cached) " >&6
24317 else
24318   gcc_cv_as_ix86_pe_secrel32=no
24319     if test $in_tree_gas = yes; then
24320     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24321   then gcc_cv_as_ix86_pe_secrel32=yes
24322 fi
24323   elif test x$gcc_cv_as != x; then
24324     $as_echo '.text
24325 foo:    nop
24326 .data
24327         .secrel32 foo' > conftest.s
24328     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24329   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24330   (eval $ac_try) 2>&5
24331   ac_status=$?
24332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24333   test $ac_status = 0; }; }
24334     then
24335         if test x$gcc_cv_ld != x \
24336            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24337              gcc_cv_as_ix86_pe_secrel32=yes
24338            fi
24339            rm -f conftest
24340     else
24341       echo "configure: failed program was" >&5
24342       cat conftest.s >&5
24343     fi
24344     rm -f conftest.o conftest.s
24345   fi
24346 fi
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24348 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24349 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24350
24351 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24352
24353 fi
24354         # Test if the assembler supports the extended form of the .section
24355         # directive that specifies section alignment.  LTO support uses this,
24356         # but normally only after installation, so we warn but don't fail the
24357         # configure if LTO is enabled but the assembler does not support it.
24358         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24359 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24360 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24361   $as_echo_n "(cached) " >&6
24362 else
24363   gcc_cv_as_section_has_align=no
24364     if test $in_tree_gas = yes; then
24365     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24366   then gcc_cv_as_section_has_align=yes
24367 fi
24368   elif test x$gcc_cv_as != x; then
24369     $as_echo '.section lto_test,"dr0"' > conftest.s
24370     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24371   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24372   (eval $ac_try) 2>&5
24373   ac_status=$?
24374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24375   test $ac_status = 0; }; }
24376     then
24377         gcc_cv_as_section_has_align=yes
24378     else
24379       echo "configure: failed program was" >&5
24380       cat conftest.s >&5
24381     fi
24382     rm -f conftest.o conftest.s
24383   fi
24384 fi
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24386 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24387
24388         if test x$gcc_cv_as_section_has_align != xyes; then
24389           case ",$enable_languages," in
24390             *,lto,*)
24391               { $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
24392 $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;}
24393               ;;
24394           esac
24395         fi
24396         # Test if the assembler supports the section flag 'e' for specifying
24397         # an excluded section.
24398         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24399 $as_echo_n "checking assembler for .section with e... " >&6; }
24400 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24401   $as_echo_n "(cached) " >&6
24402 else
24403   gcc_cv_as_section_has_e=no
24404     if test $in_tree_gas = yes; then
24405     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24406   then gcc_cv_as_section_has_e=yes
24407 fi
24408   elif test x$gcc_cv_as != x; then
24409     $as_echo '.section foo1,"e"
24410 .byte 0,0,0,0' > conftest.s
24411     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24412   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24413   (eval $ac_try) 2>&5
24414   ac_status=$?
24415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24416   test $ac_status = 0; }; }
24417     then
24418         gcc_cv_as_section_has_e=yes
24419     else
24420       echo "configure: failed program was" >&5
24421       cat conftest.s >&5
24422     fi
24423     rm -f conftest.o conftest.s
24424   fi
24425 fi
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24427 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24428
24429
24430 cat >>confdefs.h <<_ACEOF
24431 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24432 _ACEOF
24433
24434         ;;
24435     esac
24436
24437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24438 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24439 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24440   $as_echo_n "(cached) " >&6
24441 else
24442   gcc_cv_as_ix86_filds=no
24443   if test x$gcc_cv_as != x; then
24444     $as_echo 'filds mem; fists mem' > conftest.s
24445     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24446   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447   (eval $ac_try) 2>&5
24448   ac_status=$?
24449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450   test $ac_status = 0; }; }
24451     then
24452         gcc_cv_as_ix86_filds=yes
24453     else
24454       echo "configure: failed program was" >&5
24455       cat conftest.s >&5
24456     fi
24457     rm -f conftest.o conftest.s
24458   fi
24459 fi
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24461 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24462 if test $gcc_cv_as_ix86_filds = yes; then
24463
24464 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24465
24466 fi
24467
24468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24469 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24470 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24471   $as_echo_n "(cached) " >&6
24472 else
24473   gcc_cv_as_ix86_fildq=no
24474   if test x$gcc_cv_as != x; then
24475     $as_echo 'fildq mem; fistpq mem' > conftest.s
24476     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24477   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24478   (eval $ac_try) 2>&5
24479   ac_status=$?
24480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24481   test $ac_status = 0; }; }
24482     then
24483         gcc_cv_as_ix86_fildq=yes
24484     else
24485       echo "configure: failed program was" >&5
24486       cat conftest.s >&5
24487     fi
24488     rm -f conftest.o conftest.s
24489   fi
24490 fi
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24492 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24493 if test $gcc_cv_as_ix86_fildq = yes; then
24494
24495 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24496
24497 fi
24498
24499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24500 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24501 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24502   $as_echo_n "(cached) " >&6
24503 else
24504   gcc_cv_as_ix86_cmov_sun_syntax=no
24505   if test x$gcc_cv_as != x; then
24506     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24507     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24508   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24509   (eval $ac_try) 2>&5
24510   ac_status=$?
24511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24512   test $ac_status = 0; }; }
24513     then
24514         gcc_cv_as_ix86_cmov_sun_syntax=yes
24515     else
24516       echo "configure: failed program was" >&5
24517       cat conftest.s >&5
24518     fi
24519     rm -f conftest.o conftest.s
24520   fi
24521 fi
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24523 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24524 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24525
24526 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24527
24528 fi
24529
24530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24531 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24532 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24533   $as_echo_n "(cached) " >&6
24534 else
24535   gcc_cv_as_ix86_ffreep=no
24536   if test x$gcc_cv_as != x; then
24537     $as_echo 'ffreep %st(1)' > conftest.s
24538     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24539   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24540   (eval $ac_try) 2>&5
24541   ac_status=$?
24542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24543   test $ac_status = 0; }; }
24544     then
24545         gcc_cv_as_ix86_ffreep=yes
24546     else
24547       echo "configure: failed program was" >&5
24548       cat conftest.s >&5
24549     fi
24550     rm -f conftest.o conftest.s
24551   fi
24552 fi
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24554 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24555 if test $gcc_cv_as_ix86_ffreep = yes; then
24556
24557 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24558
24559 fi
24560
24561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24562 $as_echo_n "checking assembler for .quad directive... " >&6; }
24563 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24564   $as_echo_n "(cached) " >&6
24565 else
24566   gcc_cv_as_ix86_quad=no
24567   if test x$gcc_cv_as != x; then
24568     $as_echo '.quad 0' > conftest.s
24569     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24570   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24571   (eval $ac_try) 2>&5
24572   ac_status=$?
24573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24574   test $ac_status = 0; }; }
24575     then
24576         gcc_cv_as_ix86_quad=yes
24577     else
24578       echo "configure: failed program was" >&5
24579       cat conftest.s >&5
24580     fi
24581     rm -f conftest.o conftest.s
24582   fi
24583 fi
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24585 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24586 if test $gcc_cv_as_ix86_quad = yes; then
24587
24588 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24589
24590 fi
24591
24592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24593 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24594 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24595   $as_echo_n "(cached) " >&6
24596 else
24597   gcc_cv_as_ix86_sahf=no
24598   if test x$gcc_cv_as != x; then
24599     $as_echo '.code64
24600        sahf' > conftest.s
24601     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24602   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24603   (eval $ac_try) 2>&5
24604   ac_status=$?
24605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24606   test $ac_status = 0; }; }
24607     then
24608         gcc_cv_as_ix86_sahf=yes
24609     else
24610       echo "configure: failed program was" >&5
24611       cat conftest.s >&5
24612     fi
24613     rm -f conftest.o conftest.s
24614   fi
24615 fi
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24617 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24618 if test $gcc_cv_as_ix86_sahf = yes; then
24619
24620 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24621
24622 fi
24623
24624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24625 $as_echo_n "checking assembler for swap suffix... " >&6; }
24626 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24627   $as_echo_n "(cached) " >&6
24628 else
24629   gcc_cv_as_ix86_swap=no
24630   if test x$gcc_cv_as != x; then
24631     $as_echo 'movl.s %esp, %ebp' > conftest.s
24632     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24633   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24634   (eval $ac_try) 2>&5
24635   ac_status=$?
24636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24637   test $ac_status = 0; }; }
24638     then
24639         gcc_cv_as_ix86_swap=yes
24640     else
24641       echo "configure: failed program was" >&5
24642       cat conftest.s >&5
24643     fi
24644     rm -f conftest.o conftest.s
24645   fi
24646 fi
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24648 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24649 if test $gcc_cv_as_ix86_swap = yes; then
24650
24651 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24652
24653 fi
24654
24655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24656 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24657 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24658   $as_echo_n "(cached) " >&6
24659 else
24660   gcc_cv_as_ix86_diff_sect_delta=no
24661   if test x$gcc_cv_as != x; then
24662     $as_echo '.section .rodata
24663 .L1:
24664         .long .L2-.L1
24665         .long .L3-.L1
24666         .text
24667 .L3:    nop
24668 .L2:    nop' > conftest.s
24669     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24670   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24671   (eval $ac_try) 2>&5
24672   ac_status=$?
24673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24674   test $ac_status = 0; }; }
24675     then
24676         gcc_cv_as_ix86_diff_sect_delta=yes
24677     else
24678       echo "configure: failed program was" >&5
24679       cat conftest.s >&5
24680     fi
24681     rm -f conftest.o conftest.s
24682   fi
24683 fi
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24685 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24686 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24687
24688 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24689
24690 fi
24691
24692     # These two are used unconditionally by i386.[ch]; it is to be defined
24693     # to 1 if the feature is present, 0 otherwise.
24694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24695 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24696 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24697   $as_echo_n "(cached) " >&6
24698 else
24699   gcc_cv_as_ix86_gotoff_in_data=no
24700     if test $in_tree_gas = yes; then
24701     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24702   then gcc_cv_as_ix86_gotoff_in_data=yes
24703 fi
24704   elif test x$gcc_cv_as != x; then
24705     $as_echo '  .text
24706 .L0:
24707         nop
24708         .data
24709         .long .L0@GOTOFF' > conftest.s
24710     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24711   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24712   (eval $ac_try) 2>&5
24713   ac_status=$?
24714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24715   test $ac_status = 0; }; }
24716     then
24717         gcc_cv_as_ix86_gotoff_in_data=yes
24718     else
24719       echo "configure: failed program was" >&5
24720       cat conftest.s >&5
24721     fi
24722     rm -f conftest.o conftest.s
24723   fi
24724 fi
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24726 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24727
24728
24729 cat >>confdefs.h <<_ACEOF
24730 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24731 _ACEOF
24732
24733
24734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24735 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24736 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24737   $as_echo_n "(cached) " >&6
24738 else
24739   gcc_cv_as_ix86_rep_lock_prefix=no
24740   if test x$gcc_cv_as != x; then
24741     $as_echo 'rep movsl
24742          lock addl %edi, (%eax,%esi)
24743          lock orl $0, (%esp)' > conftest.s
24744     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24745   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24746   (eval $ac_try) 2>&5
24747   ac_status=$?
24748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24749   test $ac_status = 0; }; }
24750     then
24751         gcc_cv_as_ix86_rep_lock_prefix=yes
24752     else
24753       echo "configure: failed program was" >&5
24754       cat conftest.s >&5
24755     fi
24756     rm -f conftest.o conftest.s
24757   fi
24758 fi
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24760 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24761 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24762
24763 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24764
24765 fi
24766
24767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24768 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24769 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24770   $as_echo_n "(cached) " >&6
24771 else
24772   gcc_cv_as_ix86_tlsgdplt=no
24773   if test x$gcc_cv_as != x; then
24774     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24775     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24776   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24777   (eval $ac_try) 2>&5
24778   ac_status=$?
24779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24780   test $ac_status = 0; }; }
24781     then
24782         gcc_cv_as_ix86_tlsgdplt=yes
24783     else
24784       echo "configure: failed program was" >&5
24785       cat conftest.s >&5
24786     fi
24787     rm -f conftest.o conftest.s
24788   fi
24789 fi
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24791 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24792 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24793
24794 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24795
24796 fi
24797
24798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24799 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24800 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24801   $as_echo_n "(cached) " >&6
24802 else
24803   gcc_cv_as_ix86_tlsldmplt=no
24804   if test x$gcc_cv_as != x; then
24805     $as_echo 'call    tls_ld@tlsldmplt' > conftest.s
24806     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24807   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24808   (eval $ac_try) 2>&5
24809   ac_status=$?
24810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24811   test $ac_status = 0; }; }
24812     then
24813         gcc_cv_as_ix86_tlsldmplt=yes
24814     else
24815       echo "configure: failed program was" >&5
24816       cat conftest.s >&5
24817     fi
24818     rm -f conftest.o conftest.s
24819   fi
24820 fi
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24822 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24823 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24824
24825 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24826
24827 fi
24828
24829     ;;
24830
24831   ia64*-*-*)
24832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24833 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24834 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24835   $as_echo_n "(cached) " >&6
24836 else
24837   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24838     if test $in_tree_gas = yes; then
24839     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24840   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24841 fi
24842   elif test x$gcc_cv_as != x; then
24843     $as_echo '  .text
24844         addl r15 = @ltoffx(x#), gp
24845         ;;
24846         ld8.mov r16 = [r15], x#' > conftest.s
24847     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24848   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24849   (eval $ac_try) 2>&5
24850   ac_status=$?
24851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24852   test $ac_status = 0; }; }
24853     then
24854         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24855     else
24856       echo "configure: failed program was" >&5
24857       cat conftest.s >&5
24858     fi
24859     rm -f conftest.o conftest.s
24860   fi
24861 fi
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24863 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24864 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24865
24866 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24867
24868 fi
24869
24870     ;;
24871
24872   powerpc*-*-*)
24873     case $target in
24874       *-*-aix*) conftest_s='    .machine "pwr5"
24875         .csect .text[PR]
24876         mfcr 3,128';;
24877       *-*-darwin*)
24878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24879 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24880 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24881   $as_echo_n "(cached) " >&6
24882 else
24883   gcc_cv_as_machine_directive=no
24884   if test x$gcc_cv_as != x; then
24885     $as_echo '  .machine ppc7400' > conftest.s
24886     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24887   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24888   (eval $ac_try) 2>&5
24889   ac_status=$?
24890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24891   test $ac_status = 0; }; }
24892     then
24893         gcc_cv_as_machine_directive=yes
24894     else
24895       echo "configure: failed program was" >&5
24896       cat conftest.s >&5
24897     fi
24898     rm -f conftest.o conftest.s
24899   fi
24900 fi
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24902 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24903
24904         if test x$gcc_cv_as_machine_directive != xyes; then
24905           echo "*** This target requires an assembler supporting \".machine\"" >&2
24906           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24907           test x$build = x$target && exit 1
24908         fi
24909         conftest_s='    .text
24910         mfcr r3,128';;
24911       *) conftest_s='   .machine power4
24912         .text
24913         mfcr 3,128';;
24914     esac
24915
24916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24917 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24918 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24919   $as_echo_n "(cached) " >&6
24920 else
24921   gcc_cv_as_powerpc_mfcrf=no
24922     if test $in_tree_gas = yes; then
24923     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24924   then gcc_cv_as_powerpc_mfcrf=yes
24925 fi
24926   elif test x$gcc_cv_as != x; then
24927     $as_echo "$conftest_s" > conftest.s
24928     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24929   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24930   (eval $ac_try) 2>&5
24931   ac_status=$?
24932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24933   test $ac_status = 0; }; }
24934     then
24935         gcc_cv_as_powerpc_mfcrf=yes
24936     else
24937       echo "configure: failed program was" >&5
24938       cat conftest.s >&5
24939     fi
24940     rm -f conftest.o conftest.s
24941   fi
24942 fi
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24944 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24945 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24946
24947 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24948
24949 fi
24950
24951     case $target in
24952       *-*-aix*) conftest_s='    .machine "pwr5"
24953         .csect .text[PR]
24954         popcntb 3,3';;
24955       *) conftest_s='   .machine power5
24956         .text
24957         popcntb 3,3';;
24958     esac
24959
24960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24961 $as_echo_n "checking assembler for popcntb support... " >&6; }
24962 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24963   $as_echo_n "(cached) " >&6
24964 else
24965   gcc_cv_as_powerpc_popcntb=no
24966     if test $in_tree_gas = yes; then
24967     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24968   then gcc_cv_as_powerpc_popcntb=yes
24969 fi
24970   elif test x$gcc_cv_as != x; then
24971     $as_echo "$conftest_s" > conftest.s
24972     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24973   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24974   (eval $ac_try) 2>&5
24975   ac_status=$?
24976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24977   test $ac_status = 0; }; }
24978     then
24979         gcc_cv_as_powerpc_popcntb=yes
24980     else
24981       echo "configure: failed program was" >&5
24982       cat conftest.s >&5
24983     fi
24984     rm -f conftest.o conftest.s
24985   fi
24986 fi
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24988 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24989 if test $gcc_cv_as_powerpc_popcntb = yes; then
24990
24991 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24992
24993 fi
24994
24995     case $target in
24996       *-*-aix*) conftest_s='    .machine "pwr5x"
24997         .csect .text[PR]
24998         frin 1,1';;
24999       *) conftest_s='   .machine power5
25000         .text
25001         frin 1,1';;
25002     esac
25003
25004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25005 $as_echo_n "checking assembler for fp round support... " >&6; }
25006 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25007   $as_echo_n "(cached) " >&6
25008 else
25009   gcc_cv_as_powerpc_fprnd=no
25010     if test $in_tree_gas = yes; then
25011     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25012   then gcc_cv_as_powerpc_fprnd=yes
25013 fi
25014   elif test x$gcc_cv_as != x; then
25015     $as_echo "$conftest_s" > conftest.s
25016     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25017   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25018   (eval $ac_try) 2>&5
25019   ac_status=$?
25020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25021   test $ac_status = 0; }; }
25022     then
25023         gcc_cv_as_powerpc_fprnd=yes
25024     else
25025       echo "configure: failed program was" >&5
25026       cat conftest.s >&5
25027     fi
25028     rm -f conftest.o conftest.s
25029   fi
25030 fi
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25032 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25033 if test $gcc_cv_as_powerpc_fprnd = yes; then
25034
25035 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25036
25037 fi
25038
25039     case $target in
25040       *-*-aix*) conftest_s='    .machine "pwr6"
25041         .csect .text[PR]
25042         mffgpr 1,3';;
25043       *) conftest_s='   .machine power6
25044         .text
25045         mffgpr 1,3';;
25046     esac
25047
25048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25049 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25050 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25051   $as_echo_n "(cached) " >&6
25052 else
25053   gcc_cv_as_powerpc_mfpgpr=no
25054     if test $in_tree_gas = yes; then
25055     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25056   then gcc_cv_as_powerpc_mfpgpr=yes
25057 fi
25058   elif test x$gcc_cv_as != x; then
25059     $as_echo "$conftest_s" > conftest.s
25060     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25061   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25062   (eval $ac_try) 2>&5
25063   ac_status=$?
25064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25065   test $ac_status = 0; }; }
25066     then
25067         gcc_cv_as_powerpc_mfpgpr=yes
25068     else
25069       echo "configure: failed program was" >&5
25070       cat conftest.s >&5
25071     fi
25072     rm -f conftest.o conftest.s
25073   fi
25074 fi
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25076 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25077 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25078
25079 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25080
25081 fi
25082
25083     case $target in
25084       *-*-aix*) conftest_s='    .csect .text[PR]
25085 LCF..0:
25086         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25087       *-*-darwin*)
25088         conftest_s='    .text
25089 LCF0:
25090         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25091       *) conftest_s='   .text
25092 .LCF0:
25093         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25094     esac
25095
25096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25097 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25098 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25099   $as_echo_n "(cached) " >&6
25100 else
25101   gcc_cv_as_powerpc_rel16=no
25102     if test $in_tree_gas = yes; then
25103     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25104   then gcc_cv_as_powerpc_rel16=yes
25105 fi
25106   elif test x$gcc_cv_as != x; then
25107     $as_echo "$conftest_s" > conftest.s
25108     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25109   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25110   (eval $ac_try) 2>&5
25111   ac_status=$?
25112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25113   test $ac_status = 0; }; }
25114     then
25115         gcc_cv_as_powerpc_rel16=yes
25116     else
25117       echo "configure: failed program was" >&5
25118       cat conftest.s >&5
25119     fi
25120     rm -f conftest.o conftest.s
25121   fi
25122 fi
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25124 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25125 if test $gcc_cv_as_powerpc_rel16 = yes; then
25126
25127 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25128
25129 fi
25130
25131     case $target in
25132       *-*-aix*) conftest_s='    .machine "pwr6"
25133         .csect .text[PR]
25134         cmpb 3,4,5';;
25135       *) conftest_s='   .machine power6
25136         .text
25137         cmpb 3,4,5';;
25138     esac
25139
25140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25141 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25142 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25143   $as_echo_n "(cached) " >&6
25144 else
25145   gcc_cv_as_powerpc_cmpb=no
25146     if test $in_tree_gas = yes; then
25147     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25148   then gcc_cv_as_powerpc_cmpb=yes
25149 fi
25150   elif test x$gcc_cv_as != x; then
25151     $as_echo "$conftest_s" > conftest.s
25152     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25153   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25154   (eval $ac_try) 2>&5
25155   ac_status=$?
25156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25157   test $ac_status = 0; }; }
25158     then
25159         gcc_cv_as_powerpc_cmpb=yes
25160     else
25161       echo "configure: failed program was" >&5
25162       cat conftest.s >&5
25163     fi
25164     rm -f conftest.o conftest.s
25165   fi
25166 fi
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25168 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25169 if test $gcc_cv_as_powerpc_cmpb = yes; then
25170
25171 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25172
25173 fi
25174
25175     case $target in
25176       *-*-aix*) conftest_s='    .machine "pwr6"
25177         .csect .text[PR]
25178         dadd 1,2,3';;
25179       *) conftest_s='   .machine power6
25180         .text
25181         dadd 1,2,3';;
25182     esac
25183
25184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25185 $as_echo_n "checking assembler for decimal float support... " >&6; }
25186 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25187   $as_echo_n "(cached) " >&6
25188 else
25189   gcc_cv_as_powerpc_dfp=no
25190     if test $in_tree_gas = yes; then
25191     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25192   then gcc_cv_as_powerpc_dfp=yes
25193 fi
25194   elif test x$gcc_cv_as != x; then
25195     $as_echo "$conftest_s" > conftest.s
25196     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25197   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25198   (eval $ac_try) 2>&5
25199   ac_status=$?
25200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25201   test $ac_status = 0; }; }
25202     then
25203         gcc_cv_as_powerpc_dfp=yes
25204     else
25205       echo "configure: failed program was" >&5
25206       cat conftest.s >&5
25207     fi
25208     rm -f conftest.o conftest.s
25209   fi
25210 fi
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25212 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25213 if test $gcc_cv_as_powerpc_dfp = yes; then
25214
25215 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25216
25217 fi
25218
25219     case $target in
25220       *-*-aix*) conftest_s='    .machine "pwr7"
25221         .csect .text[PR]
25222         lxvd2x 1,2,3';;
25223       *) conftest_s='   .machine power7
25224         .text
25225         lxvd2x 1,2,3';;
25226     esac
25227
25228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25229 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25230 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25231   $as_echo_n "(cached) " >&6
25232 else
25233   gcc_cv_as_powerpc_vsx=no
25234     if test $in_tree_gas = yes; then
25235     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25236   then gcc_cv_as_powerpc_vsx=yes
25237 fi
25238   elif test x$gcc_cv_as != x; then
25239     $as_echo "$conftest_s" > conftest.s
25240     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25241   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25242   (eval $ac_try) 2>&5
25243   ac_status=$?
25244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25245   test $ac_status = 0; }; }
25246     then
25247         gcc_cv_as_powerpc_vsx=yes
25248     else
25249       echo "configure: failed program was" >&5
25250       cat conftest.s >&5
25251     fi
25252     rm -f conftest.o conftest.s
25253   fi
25254 fi
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25256 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25257 if test $gcc_cv_as_powerpc_vsx = yes; then
25258
25259 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25260
25261 fi
25262
25263     case $target in
25264       *-*-aix*) conftest_s='    .machine "pwr7"
25265         .csect .text[PR]
25266         popcntd 3,3';;
25267       *) conftest_s='   .machine power7
25268         .text
25269         popcntd 3,3';;
25270     esac
25271
25272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25273 $as_echo_n "checking assembler for popcntd support... " >&6; }
25274 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25275   $as_echo_n "(cached) " >&6
25276 else
25277   gcc_cv_as_powerpc_popcntd=no
25278     if test $in_tree_gas = yes; then
25279     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25280   then gcc_cv_as_powerpc_popcntd=yes
25281 fi
25282   elif test x$gcc_cv_as != x; then
25283     $as_echo "$conftest_s" > conftest.s
25284     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25285   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25286   (eval $ac_try) 2>&5
25287   ac_status=$?
25288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25289   test $ac_status = 0; }; }
25290     then
25291         gcc_cv_as_powerpc_popcntd=yes
25292     else
25293       echo "configure: failed program was" >&5
25294       cat conftest.s >&5
25295     fi
25296     rm -f conftest.o conftest.s
25297   fi
25298 fi
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25300 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25301 if test $gcc_cv_as_powerpc_popcntd = yes; then
25302
25303 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25304
25305 fi
25306
25307     case $target in
25308       *-*-aix*) conftest_s='    .csect .text[PR]
25309         lwsync';;
25310       *) conftest_s='   .text
25311         lwsync';;
25312     esac
25313
25314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25315 $as_echo_n "checking assembler for lwsync support... " >&6; }
25316 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25317   $as_echo_n "(cached) " >&6
25318 else
25319   gcc_cv_as_powerpc_lwsync=no
25320     if test $in_tree_gas = yes; then
25321     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25322   then gcc_cv_as_powerpc_lwsync=yes
25323 fi
25324   elif test x$gcc_cv_as != x; then
25325     $as_echo "$conftest_s" > conftest.s
25326     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25327   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25328   (eval $ac_try) 2>&5
25329   ac_status=$?
25330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25331   test $ac_status = 0; }; }
25332     then
25333         gcc_cv_as_powerpc_lwsync=yes
25334     else
25335       echo "configure: failed program was" >&5
25336       cat conftest.s >&5
25337     fi
25338     rm -f conftest.o conftest.s
25339   fi
25340 fi
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25342 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25343 if test $gcc_cv_as_powerpc_lwsync = yes; then
25344
25345 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25346
25347 fi
25348
25349     case $target in
25350       *-*-aix*) conftest_s='    .machine "476"
25351         .csect .text[PR]
25352         dci 0';;
25353       *) conftest_s='   .machine "476"
25354         .text
25355         dci 0';;
25356     esac
25357
25358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25359 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25360 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25361   $as_echo_n "(cached) " >&6
25362 else
25363   gcc_cv_as_powerpc_dci=no
25364     if test $in_tree_gas = yes; then
25365     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25366   then gcc_cv_as_powerpc_dci=yes
25367 fi
25368   elif test x$gcc_cv_as != x; then
25369     $as_echo "$conftest_s" > conftest.s
25370     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25371   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25372   (eval $ac_try) 2>&5
25373   ac_status=$?
25374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25375   test $ac_status = 0; }; }
25376     then
25377         gcc_cv_as_powerpc_dci=yes
25378     else
25379       echo "configure: failed program was" >&5
25380       cat conftest.s >&5
25381     fi
25382     rm -f conftest.o conftest.s
25383   fi
25384 fi
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25386 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25387 if test $gcc_cv_as_powerpc_dci = yes; then
25388
25389 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25390
25391 fi
25392
25393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25394 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25395 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25396   $as_echo_n "(cached) " >&6
25397 else
25398   gcc_cv_as_powerpc_gnu_attribute=no
25399     if test $in_tree_gas = yes; then
25400     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25401   then gcc_cv_as_powerpc_gnu_attribute=yes
25402 fi
25403   elif test x$gcc_cv_as != x; then
25404     $as_echo '.gnu_attribute 4,1' > conftest.s
25405     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25406   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25407   (eval $ac_try) 2>&5
25408   ac_status=$?
25409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25410   test $ac_status = 0; }; }
25411     then
25412         gcc_cv_as_powerpc_gnu_attribute=yes
25413     else
25414       echo "configure: failed program was" >&5
25415       cat conftest.s >&5
25416     fi
25417     rm -f conftest.o conftest.s
25418   fi
25419 fi
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25421 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25422 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25423
25424 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25425
25426 fi
25427
25428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25429 $as_echo_n "checking assembler for tls marker support... " >&6; }
25430 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25431   $as_echo_n "(cached) " >&6
25432 else
25433   gcc_cv_as_powerpc_tls_markers=no
25434     if test $in_tree_gas = yes; then
25435     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25436   then gcc_cv_as_powerpc_tls_markers=yes
25437 fi
25438   elif test x$gcc_cv_as != x; then
25439     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25440     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25441   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25442   (eval $ac_try) 2>&5
25443   ac_status=$?
25444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25445   test $ac_status = 0; }; }
25446     then
25447         gcc_cv_as_powerpc_tls_markers=yes
25448     else
25449       echo "configure: failed program was" >&5
25450       cat conftest.s >&5
25451     fi
25452     rm -f conftest.o conftest.s
25453   fi
25454 fi
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25456 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25457 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25458
25459 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25460
25461 fi
25462
25463     case $target in
25464       *-*-aix*)
25465         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25466 $as_echo_n "checking assembler for .ref support... " >&6; }
25467 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25468   $as_echo_n "(cached) " >&6
25469 else
25470   gcc_cv_as_aix_ref=no
25471     if test $in_tree_gas = yes; then
25472     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25473   then :
25474 fi
25475   elif test x$gcc_cv_as != x; then
25476     $as_echo '  .csect stuff[rw]
25477              stuff:
25478                 .long 1
25479                 .extern sym
25480                 .ref sym
25481           ' > conftest.s
25482     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25483   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25484   (eval $ac_try) 2>&5
25485   ac_status=$?
25486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25487   test $ac_status = 0; }; }
25488     then
25489         gcc_cv_as_aix_ref=yes
25490     else
25491       echo "configure: failed program was" >&5
25492       cat conftest.s >&5
25493     fi
25494     rm -f conftest.o conftest.s
25495   fi
25496 fi
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25498 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25499 if test $gcc_cv_as_aix_ref = yes; then
25500
25501 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25502
25503 fi
25504         ;;
25505     esac
25506     ;;
25507
25508   mips*-*-*)
25509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25510 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25511 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25512   $as_echo_n "(cached) " >&6
25513 else
25514   gcc_cv_as_mips_explicit_relocs=no
25515     if test $in_tree_gas = yes; then
25516     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25517   then gcc_cv_as_mips_explicit_relocs=yes
25518 fi
25519   elif test x$gcc_cv_as != x; then
25520     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25521     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25522   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25523   (eval $ac_try) 2>&5
25524   ac_status=$?
25525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25526   test $ac_status = 0; }; }
25527     then
25528         gcc_cv_as_mips_explicit_relocs=yes
25529     else
25530       echo "configure: failed program was" >&5
25531       cat conftest.s >&5
25532     fi
25533     rm -f conftest.o conftest.s
25534   fi
25535 fi
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25537 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25538 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25539   if test x$target_cpu_default = x
25540        then target_cpu_default=MASK_EXPLICIT_RELOCS
25541        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25542        fi
25543 fi
25544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25545 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25546 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25547   $as_echo_n "(cached) " >&6
25548 else
25549   gcc_cv_as_mips_no_shared=no
25550     if test $in_tree_gas = yes; then
25551     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25552   then gcc_cv_as_mips_no_shared=yes
25553 fi
25554   elif test x$gcc_cv_as != x; then
25555     $as_echo 'nop' > conftest.s
25556     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25557   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25558   (eval $ac_try) 2>&5
25559   ac_status=$?
25560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25561   test $ac_status = 0; }; }
25562     then
25563         gcc_cv_as_mips_no_shared=yes
25564     else
25565       echo "configure: failed program was" >&5
25566       cat conftest.s >&5
25567     fi
25568     rm -f conftest.o conftest.s
25569   fi
25570 fi
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25572 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25573 if test $gcc_cv_as_mips_no_shared = yes; then
25574
25575 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25576
25577 fi
25578
25579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25580 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25581 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25582   $as_echo_n "(cached) " >&6
25583 else
25584   gcc_cv_as_mips_gnu_attribute=no
25585     if test $in_tree_gas = yes; then
25586     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25587   then gcc_cv_as_mips_gnu_attribute=yes
25588 fi
25589   elif test x$gcc_cv_as != x; then
25590     $as_echo '.gnu_attribute 4,1' > conftest.s
25591     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25592   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593   (eval $ac_try) 2>&5
25594   ac_status=$?
25595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596   test $ac_status = 0; }; }
25597     then
25598         gcc_cv_as_mips_gnu_attribute=yes
25599     else
25600       echo "configure: failed program was" >&5
25601       cat conftest.s >&5
25602     fi
25603     rm -f conftest.o conftest.s
25604   fi
25605 fi
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25607 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25608 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25609
25610 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25611
25612 fi
25613
25614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25615 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25616 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25617   $as_echo_n "(cached) " >&6
25618 else
25619   gcc_cv_as_mips_dtprelword=no
25620     if test $in_tree_gas = yes; then
25621     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25622   then gcc_cv_as_mips_dtprelword=yes
25623 fi
25624   elif test x$gcc_cv_as != x; then
25625     $as_echo '.section .tdata,"awT",@progbits
25626 x:
25627         .word 2
25628         .text
25629         .dtprelword x+0x8000' > conftest.s
25630     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25631   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25632   (eval $ac_try) 2>&5
25633   ac_status=$?
25634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25635   test $ac_status = 0; }; }
25636     then
25637         gcc_cv_as_mips_dtprelword=yes
25638     else
25639       echo "configure: failed program was" >&5
25640       cat conftest.s >&5
25641     fi
25642     rm -f conftest.o conftest.s
25643   fi
25644 fi
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25646 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25647 if test $gcc_cv_as_mips_dtprelword = yes; then
25648
25649 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25650
25651 fi
25652
25653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25654 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25655 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25656   $as_echo_n "(cached) " >&6
25657 else
25658   gcc_cv_as_mips_dspr1_mult=no
25659   if test x$gcc_cv_as != x; then
25660     $as_echo '  .set    mips32r2
25661         .set    nodspr2
25662         .set    dsp
25663         madd    $ac3,$4,$5
25664         maddu   $ac3,$4,$5
25665         msub    $ac3,$4,$5
25666         msubu   $ac3,$4,$5
25667         mult    $ac3,$4,$5
25668         multu   $ac3,$4,$5' > conftest.s
25669     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25670   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25671   (eval $ac_try) 2>&5
25672   ac_status=$?
25673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25674   test $ac_status = 0; }; }
25675     then
25676         gcc_cv_as_mips_dspr1_mult=yes
25677     else
25678       echo "configure: failed program was" >&5
25679       cat conftest.s >&5
25680     fi
25681     rm -f conftest.o conftest.s
25682   fi
25683 fi
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25685 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25686 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25687
25688 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25689
25690 fi
25691
25692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25693 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25694     gcc_cv_as_ld_jalr_reloc=no
25695     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25696       if test $in_tree_ld = yes ; then
25697         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 \
25698            && test $in_tree_ld_is_elf = yes; then
25699           gcc_cv_as_ld_jalr_reloc=yes
25700         fi
25701       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25702         echo '  .ent x' > conftest.s
25703         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25704         echo '  ld $25,%call16(y)($28)' >> conftest.s
25705         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25706         echo '1:        jalr $25' >> conftest.s
25707         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25708         echo '1:        jalr $25' >> conftest.s
25709         echo '  .end x' >> conftest.s
25710         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25711            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25712           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25713              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25714             gcc_cv_as_ld_jalr_reloc=yes
25715           fi
25716         fi
25717         rm -f conftest.*
25718       fi
25719     fi
25720     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25721       if test x$target_cpu_default = x; then
25722         target_cpu_default=MASK_RELAX_PIC_CALLS
25723       else
25724         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25725       fi
25726     fi
25727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25728 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25729
25730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25731 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25732 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25733   $as_echo_n "(cached) " >&6
25734 else
25735   gcc_cv_ld_mips_personality_relaxation=no
25736        if test $in_tree_ld = yes ; then
25737          if test "$gcc_cv_gld_major_version" -eq 2 \
25738                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25739                  -o "$gcc_cv_gld_major_version" -gt 2; then
25740            gcc_cv_ld_mips_personality_relaxation=yes
25741          fi
25742        elif test x$gcc_cv_as != x \
25743                  -a x$gcc_cv_ld != x \
25744                  -a x$gcc_cv_readelf != x ; then
25745          cat > conftest.s <<EOF
25746         .cfi_startproc
25747         .cfi_personality 0x80,indirect_ptr
25748         .ent test
25749 test:
25750         nop
25751         .end test
25752         .cfi_endproc
25753
25754         .section .data,"aw",@progbits
25755 indirect_ptr:
25756         .dc.a personality
25757 EOF
25758          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25759             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25760            if $gcc_cv_readelf -d conftest 2>&1 \
25761               | grep TEXTREL > /dev/null 2>&1; then
25762              :
25763            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25764                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25765              :
25766            else
25767              gcc_cv_ld_mips_personality_relaxation=yes
25768            fi
25769          fi
25770        fi
25771        rm -f conftest.s conftest.o conftest
25772 fi
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25774 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25775     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25776
25777 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25778
25779     fi
25780     ;;
25781 esac
25782
25783 # Mips and HP-UX need the GNU assembler.
25784 # Linux on IA64 might be able to use the Intel assembler.
25785
25786 case "$target" in
25787   mips*-*-* | *-*-hpux* )
25788     if test x$gas_flag = xyes \
25789        || test x"$host" != x"$build" \
25790        || test ! -x "$gcc_cv_as" \
25791        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25792       :
25793     else
25794       echo "*** This configuration requires the GNU assembler" >&2
25795       exit 1
25796     fi
25797     ;;
25798 esac
25799
25800 # ??? Not all targets support dwarf2 debug_line, even within a version
25801 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25802 # info to the output file.  So, as supported targets are added to gas 2.11,
25803 # add some instruction here to (also) show we expect this might work.
25804 # ??? Once 2.11 is released, probably need to add first known working
25805 # version to the per-target configury.
25806 case "$cpu_type" in
25807   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25808   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25809     insn="nop"
25810     ;;
25811   ia64 | s390)
25812     insn="nop 0"
25813     ;;
25814   mmix)
25815     insn="swym 0"
25816     ;;
25817 esac
25818 if test x"$insn" != x; then
25819  conftest_s="\
25820         .file 1 \"conftest.s\"
25821         .loc 1 3 0
25822         $insn"
25823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25824 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25825 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25826   $as_echo_n "(cached) " >&6
25827 else
25828   gcc_cv_as_dwarf2_debug_line=no
25829     if test $in_tree_gas = yes; then
25830     if test $in_tree_gas_is_elf = yes \
25831   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25832   then gcc_cv_as_dwarf2_debug_line=yes
25833 fi
25834   elif test x$gcc_cv_as != x; then
25835     $as_echo "$conftest_s" > conftest.s
25836     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25837   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25838   (eval $ac_try) 2>&5
25839   ac_status=$?
25840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25841   test $ac_status = 0; }; }
25842     then
25843         if test x$gcc_cv_objdump != x \
25844    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25845       | grep debug_line > /dev/null 2>&1; then
25846      gcc_cv_as_dwarf2_debug_line=yes
25847    fi
25848     else
25849       echo "configure: failed program was" >&5
25850       cat conftest.s >&5
25851     fi
25852     rm -f conftest.o conftest.s
25853   fi
25854 fi
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25856 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25857
25858
25859 # The .debug_line file table must be in the exact order that
25860 # we specified the files, since these indices are also used
25861 # by DW_AT_decl_file.  Approximate this test by testing if
25862 # the assembler bitches if the same index is assigned twice.
25863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25864 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25865 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25866   $as_echo_n "(cached) " >&6
25867 else
25868   gcc_cv_as_dwarf2_file_buggy=no
25869   if test x$gcc_cv_as != x; then
25870     $as_echo '  .file 1 "foo.s"
25871         .file 1 "bar.s"' > conftest.s
25872     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25873   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25874   (eval $ac_try) 2>&5
25875   ac_status=$?
25876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25877   test $ac_status = 0; }; }
25878     then
25879         gcc_cv_as_dwarf2_file_buggy=yes
25880     else
25881       echo "configure: failed program was" >&5
25882       cat conftest.s >&5
25883     fi
25884     rm -f conftest.o conftest.s
25885   fi
25886 fi
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25888 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25889
25890
25891  if test $gcc_cv_as_dwarf2_debug_line = yes \
25892  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25893
25894 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25895
25896  fi
25897
25898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25899 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25900 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25901   $as_echo_n "(cached) " >&6
25902 else
25903   gcc_cv_as_gdwarf2_flag=no
25904     if test $in_tree_gas = yes; then
25905     if test $in_tree_gas_is_elf = yes \
25906   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25907   then gcc_cv_as_gdwarf2_flag=yes
25908 fi
25909   elif test x$gcc_cv_as != x; then
25910     $as_echo "$insn" > conftest.s
25911     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25912   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25913   (eval $ac_try) 2>&5
25914   ac_status=$?
25915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25916   test $ac_status = 0; }; }
25917     then
25918         gcc_cv_as_gdwarf2_flag=yes
25919     else
25920       echo "configure: failed program was" >&5
25921       cat conftest.s >&5
25922     fi
25923     rm -f conftest.o conftest.s
25924   fi
25925 fi
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25927 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25928 if test $gcc_cv_as_gdwarf2_flag = yes; then
25929
25930 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25931
25932 fi
25933
25934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25935 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25936 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25937   $as_echo_n "(cached) " >&6
25938 else
25939   gcc_cv_as_gstabs_flag=no
25940     if test $in_tree_gas = yes; then
25941     if test $in_tree_gas_is_elf = yes \
25942   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25943   then gcc_cv_as_gstabs_flag=yes
25944 fi
25945   elif test x$gcc_cv_as != x; then
25946     $as_echo "$insn" > conftest.s
25947     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25948   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25949   (eval $ac_try) 2>&5
25950   ac_status=$?
25951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25952   test $ac_status = 0; }; }
25953     then
25954         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25955    # and warns about it, but still exits successfully.  So check for
25956    # this.
25957    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25958   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25959   (eval $ac_try) 2>&5
25960   ac_status=$?
25961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25962   test $ac_status = 0; }; }
25963    then :
25964    else gcc_cv_as_gstabs_flag=yes
25965    fi
25966     else
25967       echo "configure: failed program was" >&5
25968       cat conftest.s >&5
25969     fi
25970     rm -f conftest.o conftest.s
25971   fi
25972 fi
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25974 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25975 if test $gcc_cv_as_gstabs_flag = yes; then
25976
25977 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25978
25979 fi
25980
25981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25982 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25983 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25984   $as_echo_n "(cached) " >&6
25985 else
25986   gcc_cv_as_debug_prefix_map_flag=no
25987     if test $in_tree_gas = yes; then
25988     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25989   then gcc_cv_as_debug_prefix_map_flag=yes
25990 fi
25991   elif test x$gcc_cv_as != x; then
25992     $as_echo "$insn" > conftest.s
25993     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25994   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25995   (eval $ac_try) 2>&5
25996   ac_status=$?
25997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25998   test $ac_status = 0; }; }
25999     then
26000         gcc_cv_as_debug_prefix_map_flag=yes
26001     else
26002       echo "configure: failed program was" >&5
26003       cat conftest.s >&5
26004     fi
26005     rm -f conftest.o conftest.s
26006   fi
26007 fi
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26009 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26010 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26011
26012 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26013
26014 fi
26015 fi
26016
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26018 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26019 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26020   $as_echo_n "(cached) " >&6
26021 else
26022   gcc_cv_as_lcomm_with_alignment=no
26023   if test x$gcc_cv_as != x; then
26024     $as_echo '.lcomm bar,4,16' > conftest.s
26025     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26026   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26027   (eval $ac_try) 2>&5
26028   ac_status=$?
26029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26030   test $ac_status = 0; }; }
26031     then
26032         gcc_cv_as_lcomm_with_alignment=yes
26033     else
26034       echo "configure: failed program was" >&5
26035       cat conftest.s >&5
26036     fi
26037     rm -f conftest.o conftest.s
26038   fi
26039 fi
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26041 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26042 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26043
26044 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26045
26046 fi
26047
26048 # Check whether --enable-gnu-unique-object was given.
26049 if test "${enable_gnu_unique_object+set}" = set; then :
26050   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26051     yes | no) ;;
26052     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26053 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26054   esac
26055 else
26056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26057 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26058 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26059   $as_echo_n "(cached) " >&6
26060 else
26061   gcc_cv_as_gnu_unique_object=no
26062     if test $in_tree_gas = yes; then
26063     if test $in_tree_gas_is_elf = yes \
26064   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26065   then gcc_cv_as_gnu_unique_object=yes
26066 fi
26067   elif test x$gcc_cv_as != x; then
26068     $as_echo '.type foo, @gnu_unique_object' > conftest.s
26069     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26070   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26071   (eval $ac_try) 2>&5
26072   ac_status=$?
26073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074   test $ac_status = 0; }; }
26075     then
26076         gcc_cv_as_gnu_unique_object=yes
26077     else
26078       echo "configure: failed program was" >&5
26079       cat conftest.s >&5
26080     fi
26081     rm -f conftest.o conftest.s
26082   fi
26083 fi
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26085 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26086 if test $gcc_cv_as_gnu_unique_object = yes; then
26087   # Also check for ld.so support, i.e. glibc 2.11 or higher.
26088    if test x$host = x$build -a x$host = x$target &&
26089        ldd --version 2>/dev/null &&
26090        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26091       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26092       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26093       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26094       if test "$glibcnum" -ge 2011 ; then
26095         enable_gnu_unique_object=yes
26096       fi
26097     fi
26098 fi
26099 fi
26100
26101 if test x$enable_gnu_unique_object = xyes; then
26102
26103 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26104
26105 fi
26106
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26108 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26109 if test "${gcc_cv_as_line_zero+set}" = set; then :
26110   $as_echo_n "(cached) " >&6
26111 else
26112   gcc_cv_as_line_zero=no
26113   if test $in_tree_gas = yes; then
26114     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26115   then gcc_cv_as_line_zero=yes
26116 fi
26117   elif test "x$gcc_cv_as" != x; then
26118     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26119     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26120   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26121   (eval $ac_try) 2>&5
26122   ac_status=$?
26123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26124   test $ac_status = 0; }; } &&
26125        test "x`cat conftest.out`" = x
26126     then
26127       gcc_cv_as_line_zero=yes
26128     else
26129       echo "configure: failed program was" >&5
26130       cat conftest.s >&5
26131       echo "configure: error output was" >&5
26132       cat conftest.out >&5
26133     fi
26134     rm -f conftest.o conftest.s conftest.out
26135   fi
26136 fi
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26138 $as_echo "$gcc_cv_as_line_zero" >&6; }
26139 if test "x$gcc_cv_as_line_zero" = xyes; then
26140
26141 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26142
26143 fi
26144
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26146 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26147 gcc_cv_ld_eh_frame_hdr=no
26148 if test $in_tree_ld = yes ; then
26149   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 \
26150      && test $in_tree_ld_is_elf = yes; then
26151     gcc_cv_ld_eh_frame_hdr=yes
26152   fi
26153 elif test x$gcc_cv_ld != x; then
26154   if echo "$ld_ver" | grep GNU > /dev/null; then
26155     # Check if linker supports --eh-frame-hdr option
26156     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26157       gcc_cv_ld_eh_frame_hdr=yes
26158     fi
26159   else
26160     case "$target" in
26161       *-*-solaris2*)
26162         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26163         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26164           gcc_cv_ld_eh_frame_hdr=yes
26165         fi
26166         ;;
26167     esac
26168   fi
26169 fi
26170
26171 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26172
26173 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26174
26175 fi
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26177 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26178
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26180 $as_echo_n "checking linker position independent executable support... " >&6; }
26181 gcc_cv_ld_pie=no
26182 if test $in_tree_ld = yes ; then
26183   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 \
26184      && test $in_tree_ld_is_elf = yes; then
26185     gcc_cv_ld_pie=yes
26186   fi
26187 elif test x$gcc_cv_ld != x; then
26188         # Check if linker supports -pie option
26189         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26190                 gcc_cv_ld_pie=yes
26191         fi
26192 fi
26193 if test x"$gcc_cv_ld_pie" = xyes; then
26194
26195 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26196
26197 fi
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26199 $as_echo "$gcc_cv_ld_pie" >&6; }
26200
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26202 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26203 gcc_cv_ld_eh_gc_sections=no
26204 if test $in_tree_ld = yes ; then
26205   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 \
26206      && test $in_tree_ld_is_elf = yes; then
26207     gcc_cv_ld_eh_gc_sections=yes
26208   fi
26209 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26210   cat > conftest.s <<EOF
26211         .section        .text
26212 .globl _start
26213         .type _start, @function
26214 _start:
26215         .long foo
26216         .size _start, .-_start
26217         .section        .text.foo,"ax",@progbits
26218         .type foo, @function
26219 foo:
26220         .long 0
26221         .size foo, .-foo
26222         .section        .gcc_except_table.foo,"a",@progbits
26223 .L0:
26224         .long 0
26225         .section        .eh_frame,"a",@progbits
26226         .long .L0
26227 EOF
26228   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26229     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26230          | grep "gc-sections option ignored" > /dev/null; then
26231       gcc_cv_ld_eh_gc_sections=no
26232     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26233          | grep gcc_except_table > /dev/null; then
26234       gcc_cv_ld_eh_gc_sections=yes
26235       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26236       if test x$gcc_cv_as_comdat_group != xyes; then
26237         gcc_cv_ld_eh_gc_sections=no
26238         cat > conftest.s <<EOF
26239         .section        .text
26240 .globl _start
26241         .type _start, @function
26242 _start:
26243         .long foo
26244         .size _start, .-_start
26245         .section        .gnu.linkonce.t.foo,"ax",@progbits
26246         .type foo, @function
26247 foo:
26248         .long 0
26249         .size foo, .-foo
26250         .section        .gcc_except_table.foo,"a",@progbits
26251 .L0:
26252         .long 0
26253         .section        .eh_frame,"a",@progbits
26254         .long .L0
26255 EOF
26256         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26257           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26258                | grep "gc-sections option ignored" > /dev/null; then
26259             gcc_cv_ld_eh_gc_sections=no
26260           elif $gcc_cv_objdump -h conftest 2> /dev/null \
26261                | grep gcc_except_table > /dev/null; then
26262             gcc_cv_ld_eh_gc_sections=yes
26263           fi
26264         fi
26265       fi
26266     fi
26267   fi
26268   rm -f conftest.s conftest.o conftest
26269 fi
26270 case "$target" in
26271   hppa*-*-linux*)
26272     # ??? This apparently exposes a binutils bug with PC-relative relocations.
26273     gcc_cv_ld_eh_gc_sections=no
26274     ;;
26275 esac
26276 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26277
26278 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26279
26280 fi
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26282 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26283
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26285 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26286 gcc_cv_ld_eh_gc_sections_bug=no
26287 if test $in_tree_ld = yes ; then
26288   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 \
26289      && test $in_tree_ld_is_elf = yes; then
26290     gcc_cv_ld_eh_gc_sections_bug=yes
26291   fi
26292 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
26293   gcc_cv_ld_eh_gc_sections_bug=yes
26294   cat > conftest.s <<EOF
26295         .section        .text
26296 .globl _start
26297         .type _start, @function
26298 _start:
26299         .long foo
26300         .size _start, .-_start
26301         .section        .text.startup.foo,"ax",@progbits
26302         .type foo, @function
26303 foo:
26304         .long 0
26305         .size foo, .-foo
26306         .section        .gcc_except_table.foo,"a",@progbits
26307 .L0:
26308         .long 0
26309         .section        .eh_frame,"a",@progbits
26310         .long .L0
26311 EOF
26312   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26313     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26314          | grep "gc-sections option ignored" > /dev/null; then
26315       :
26316     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26317          | grep gcc_except_table > /dev/null; then
26318       gcc_cv_ld_eh_gc_sections_bug=no
26319     fi
26320   fi
26321   rm -f conftest.s conftest.o conftest
26322 fi
26323 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26324
26325 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26326
26327 fi
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26329 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26330
26331 # --------
26332 # UNSORTED
26333 # --------
26334
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26336 $as_echo_n "checking linker --as-needed support... " >&6; }
26337 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26338   $as_echo_n "(cached) " >&6
26339 else
26340   gcc_cv_ld_as_needed=no
26341 if test $in_tree_ld = yes ; then
26342   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 \
26343      && test $in_tree_ld_is_elf = yes; then
26344     gcc_cv_ld_as_needed=yes
26345   fi
26346 elif test x$gcc_cv_ld != x; then
26347         # Check if linker supports --as-needed and --no-as-needed options
26348         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26349                 gcc_cv_ld_as_needed=yes
26350         fi
26351 fi
26352
26353 fi
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26355 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26356 if test x"$gcc_cv_ld_as_needed" = xyes; then
26357
26358 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26359
26360 fi
26361
26362 case "$target:$tm_file" in
26363   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26365 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26366 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26367   $as_echo_n "(cached) " >&6
26368 else
26369   gcc_cv_ld_no_dot_syms=no
26370     if test $in_tree_ld = yes ; then
26371       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
26372         gcc_cv_ld_no_dot_syms=yes
26373       fi
26374     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26375       cat > conftest1.s <<EOF
26376         .text
26377         bl .foo
26378 EOF
26379       cat > conftest2.s <<EOF
26380         .section ".opd","aw"
26381         .align 3
26382         .globl foo
26383         .type foo,@function
26384 foo:
26385         .quad .LEfoo,.TOC.@tocbase,0
26386         .text
26387 .LEfoo:
26388         blr
26389         .size foo,.-.LEfoo
26390 EOF
26391       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26392          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26393          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26394         gcc_cv_ld_no_dot_syms=yes
26395       fi
26396       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26397     fi
26398
26399 fi
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26401 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26402     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26403
26404 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26405
26406     fi
26407
26408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26409 $as_echo_n "checking linker large toc support... " >&6; }
26410 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26411   $as_echo_n "(cached) " >&6
26412 else
26413   gcc_cv_ld_large_toc=no
26414     if test $in_tree_ld = yes ; then
26415       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
26416         gcc_cv_ld_large_toc=yes
26417       fi
26418     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26419       cat > conftest.s <<EOF
26420         .section ".tbss","awT",@nobits
26421         .align 3
26422 ie0:    .space 8
26423         .global _start
26424         .text
26425 _start:
26426         addis 9,13,ie0@got@tprel@ha
26427         ld 9,ie0@got@tprel@l(9)
26428 EOF
26429       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26430          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26431         gcc_cv_ld_large_toc=yes
26432       fi
26433       rm -f conftest conftest.o conftest.s
26434     fi
26435
26436 fi
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26438 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26439     if test x"$gcc_cv_ld_large_toc" = xyes; then
26440
26441 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26442
26443     fi
26444     ;;
26445 esac
26446
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26448 $as_echo_n "checking linker --build-id support... " >&6; }
26449 if test "${gcc_cv_ld_buildid+set}" = set; then :
26450   $as_echo_n "(cached) " >&6
26451 else
26452   gcc_cv_ld_buildid=no
26453   if test $in_tree_ld = yes ; then
26454     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26455        "$gcc_cv_gld_minor_version" -ge 18 -o \
26456        "$gcc_cv_gld_major_version" -gt 2 \
26457        && test $in_tree_ld_is_elf = yes; then
26458       gcc_cv_ld_buildid=yes
26459     fi
26460   elif test x$gcc_cv_ld != x; then
26461     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26462       gcc_cv_ld_buildid=yes
26463     fi
26464   fi
26465 fi
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26467 $as_echo "$gcc_cv_ld_buildid" >&6; }
26468 if test x"$gcc_cv_ld_buildid" = xyes; then
26469
26470 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26471
26472 fi
26473
26474 # Check whether --enable-linker-build-id was given.
26475 if test "${enable_linker_build_id+set}" = set; then :
26476   enableval=$enable_linker_build_id;
26477 else
26478   enable_linker_build_id=no
26479 fi
26480
26481
26482 if test x"$enable_linker_build_id" = xyes; then
26483   if test x"$gcc_cv_ld_buildid" = xyes; then
26484
26485 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26486
26487   else
26488     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26489 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26490   fi
26491 fi
26492
26493 # In binutils 2.21, GNU ld gained support for new emulations fully
26494 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26496 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26497 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26498   $as_echo_n "(cached) " >&6
26499 else
26500   gcc_cv_ld_sol2_emulation=no
26501   if test $in_tree_ld = yes ; then
26502     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26503        "$gcc_cv_gld_minor_version" -ge 21 -o \
26504        "$gcc_cv_gld_major_version" -gt 2 \
26505        && test $in_tree_ld_is_elf = yes; then
26506       gcc_cv_ld_sol2_emulation=yes
26507     fi
26508   elif test x$gcc_cv_ld != x; then
26509     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26510        grep _sol2 > /dev/null; then
26511       gcc_cv_ld_sol2_emulation=yes
26512     fi
26513   fi
26514 fi
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26516 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26517 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26518
26519 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26520
26521 fi
26522
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26524 $as_echo_n "checking linker --sysroot support... " >&6; }
26525 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26526   $as_echo_n "(cached) " >&6
26527 else
26528   gcc_cv_ld_sysroot=no
26529   if test $in_tree_ld = yes ; then
26530       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
26531         gcc_cv_ld_sysroot=yes
26532       fi
26533   elif test x$gcc_cv_ld != x; then
26534     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26535       gcc_cv_ld_sysroot=yes
26536     fi
26537   fi
26538 fi
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26540 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26541 if test x"$gcc_cv_ld_sysroot" = xyes; then
26542
26543 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26544
26545 fi
26546
26547 if test x$with_sysroot = x && test x$host = x$target \
26548    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26549    && test "$prefix" != "NONE"; then
26550
26551 cat >>confdefs.h <<_ACEOF
26552 #define PREFIX_INCLUDE_DIR "$prefix/include"
26553 _ACEOF
26554
26555 fi
26556
26557 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26558   if test "x$with_headers" != x; then
26559     target_header_dir=$with_headers
26560   elif test "x$with_sysroot" = x; then
26561     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26562   elif test "x$with_build_sysroot" != "x"; then
26563     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26564   elif test "x$with_sysroot" = xyes; then
26565     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26566   else
26567     target_header_dir="${with_sysroot}${native_system_header_dir}"
26568   fi
26569 else
26570   target_header_dir=${native_system_header_dir}
26571 fi
26572
26573 # Test for stack protector support in target C library.
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26575 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26576 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26577   $as_echo_n "(cached) " >&6
26578 else
26579   gcc_cv_libc_provides_ssp=no
26580     case "$target" in
26581        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26582       # glibc 2.4 and later provides __stack_chk_fail and
26583       # either __stack_chk_guard, or TLS access to stack guard canary.
26584       if test -f $target_header_dir/features.h \
26585          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26586             $target_header_dir/features.h > /dev/null; then
26587         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26588            $target_header_dir/features.h > /dev/null; then
26589           gcc_cv_libc_provides_ssp=yes
26590         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26591              $target_header_dir/features.h > /dev/null \
26592              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26593              $target_header_dir/features.h > /dev/null; then
26594           gcc_cv_libc_provides_ssp=yes
26595         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26596              $target_header_dir/features.h > /dev/null && \
26597              test -f $target_header_dir/bits/uClibc_config.h && \
26598              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26599              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26600           gcc_cv_libc_provides_ssp=yes
26601         fi
26602       fi
26603         ;;
26604        *-*-gnu*)
26605          # Avoid complicated tests (see
26606          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26607          # simply assert that glibc does provide this, which is true for all
26608          # realistically usable GNU/Hurd configurations.
26609          gcc_cv_libc_provides_ssp=yes;;
26610        *-*-darwin* | *-*-freebsd*)
26611          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26612 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26613   gcc_cv_libc_provides_ssp=yes
26614 else
26615   echo "no __stack_chk_fail on this target"
26616 fi
26617
26618         ;;
26619   *) gcc_cv_libc_provides_ssp=no ;;
26620     esac
26621 fi
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26623 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26624
26625 if test x$gcc_cv_libc_provides_ssp = xyes; then
26626
26627 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26628
26629 fi
26630
26631 # Test for <sys/sdt.h> on the target.
26632
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26634 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26635 have_sys_sdt_h=no
26636 if test -f $target_header_dir/sys/sdt.h; then
26637   have_sys_sdt_h=yes
26638
26639 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26640
26641 fi
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26643 $as_echo "$have_sys_sdt_h" >&6; }
26644
26645 # Check if TFmode long double should be used by default or not.
26646 # Some glibc targets used DFmode long double, but with glibc 2.4
26647 # and later they can use TFmode.
26648 case "$target" in
26649   powerpc*-*-linux* | \
26650   sparc*-*-linux* | \
26651   s390*-*-linux* | \
26652   alpha*-*-linux*)
26653
26654 # Check whether --with-long-double-128 was given.
26655 if test "${with_long_double_128+set}" = set; then :
26656   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26657 else
26658   gcc_cv_target_ldbl128=no
26659       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26660         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26661       && gcc_cv_target_ldbl128=yes
26662
26663 fi
26664
26665     ;;
26666 esac
26667 if test x$gcc_cv_target_ldbl128 = xyes; then
26668
26669 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26670
26671 fi
26672
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26674 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26675 gcc_cv_target_dl_iterate_phdr=unknown
26676 case "$target" in
26677   *-*-solaris2*)
26678     # <link.h> needs both a dl_iterate_phdr declaration and support for
26679     # compilation with largefile support.
26680     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26681       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26682       gcc_cv_target_dl_iterate_phdr=yes
26683     else
26684       gcc_cv_target_dl_iterate_phdr=no
26685     fi
26686     ;;
26687 esac
26688
26689 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26690
26691 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26692
26693 fi
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26695 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26696
26697 # Find out what GC implementation we want, or may, use.
26698
26699 # Check whether --with-gc was given.
26700 if test "${with_gc+set}" = set; then :
26701   withval=$with_gc; case "$withval" in
26702   page)
26703     GGC=ggc-$withval
26704     ;;
26705   zone)
26706     GGC=ggc-$withval
26707
26708 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26709
26710     ;;
26711   *)
26712     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26713     ;;
26714 esac
26715 else
26716   GGC=ggc-page
26717 fi
26718
26719
26720 echo "Using $GGC for garbage collection."
26721
26722 # Libraries to use on the host.  This will normally be set by the top
26723 # level Makefile.  Here we simply capture the value for our Makefile.
26724 if test -z "${HOST_LIBS+set}"; then
26725   HOST_LIBS=
26726 fi
26727
26728
26729 # Use the system's zlib library.
26730 zlibdir=-L../zlib
26731 zlibinc="-I\$(srcdir)/../zlib"
26732
26733 # Check whether --with-system-zlib was given.
26734 if test "${with_system_zlib+set}" = set; then :
26735   withval=$with_system_zlib; zlibdir=
26736 zlibinc=
26737
26738 fi
26739
26740
26741
26742
26743
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26745 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26746     # Check whether --enable-maintainer-mode was given.
26747 if test "${enable_maintainer_mode+set}" = set; then :
26748   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26749 else
26750   maintainer_mode=no
26751 fi
26752
26753
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26755 $as_echo "$maintainer_mode" >&6; }
26756
26757 if test "$maintainer_mode" = "yes"; then
26758   MAINT=''
26759 else
26760   MAINT='#'
26761 fi
26762
26763 # --------------
26764 # Language hooks
26765 # --------------
26766
26767 # Make empty files to contain the specs and options for each language.
26768 # Then add #include lines to for a compiler that has specs and/or options.
26769
26770 subdirs=
26771 lang_opt_files=
26772 lang_specs_files=
26773 lang_tree_files=
26774 # These (without "all_") are set in each config-lang.in.
26775 # `language' must be a single word so is spelled singularly.
26776 all_languages=
26777 all_compilers=
26778 all_outputs='Makefile'
26779 # List of language makefile fragments.
26780 all_lang_makefrags=
26781 # Additional files for gengtype
26782 all_gtfiles="$target_gtfiles"
26783
26784 # These are the languages that are set in --enable-languages,
26785 # and are available in the GCC tree.
26786 all_selected_languages=
26787
26788 # Add the language fragments.
26789 # Languages are added via two mechanisms.  Some information must be
26790 # recorded in makefile variables, these are defined in config-lang.in.
26791 # We accumulate them and plug them into the main Makefile.
26792 # The other mechanism is a set of hooks for each of the main targets
26793 # like `clean', `install', etc.
26794
26795 language_hooks="Make-hooks"
26796
26797 for lang in ${srcdir}/*/config-lang.in
26798 do
26799         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26800
26801         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26802         if test "x$lang_alias" = x
26803         then
26804               echo "$lang doesn't set \$language." 1>&2
26805               exit 1
26806         fi
26807         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26808         subdirs="$subdirs $subdir"
26809
26810         # $gcc_subdir is where the gcc integration files are to be found
26811         # for a language, both for internal compiler purposes (compiler
26812         # sources implementing front-end to GCC tree converters), and for
26813         # build infrastructure purposes (Make-lang.in, etc.)
26814         #
26815         # This will be <subdir> (relative to $srcdir) if a line like
26816         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26817         # is found in <langdir>/config-lang.in, and will remain <langdir>
26818         # otherwise.
26819         #
26820         # Except for the language alias (fetched above), the regular
26821         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26822         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26823         # only this and the language alias.
26824
26825         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26826         if [ "$gcc_subdir" = "" ]; then
26827            gcc_subdir="$subdir"
26828         fi
26829
26830         case ",$enable_languages," in
26831         *,$lang_alias,*)
26832             all_selected_languages="$all_selected_languages $lang_alias"
26833             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26834                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26835             fi
26836             ;;
26837         esac
26838
26839         language=
26840         boot_language=
26841         compilers=
26842         outputs=
26843         gtfiles=
26844         subdir_requires=
26845         . ${srcdir}/$gcc_subdir/config-lang.in
26846         if test "x$language" = x
26847         then
26848                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26849                 exit 1
26850         fi
26851
26852         ok=:
26853         case ",$enable_languages," in
26854                 *,$lang_alias,*) ;;
26855                 *)
26856                         for i in $subdir_requires; do
26857                                 test -f "${srcdir}/$i/config-lang.in" && continue
26858                                 ok=false
26859                                 break
26860                         done
26861                 ;;
26862         esac
26863         $ok || continue
26864
26865         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26866         if test -f $srcdir/$gcc_subdir/lang.opt; then
26867             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26868             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26869         fi
26870         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26871             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26872         fi
26873         all_languages="$all_languages $language"
26874         all_compilers="$all_compilers $compilers"
26875         all_outputs="$all_outputs $outputs"
26876         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26877         case ",$enable_languages," in
26878                 *,lto,*)
26879
26880 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26881
26882                     enable_lto=yes
26883
26884                     ;;
26885                 *) ;;
26886         esac
26887 done
26888
26889 # Pick up gtfiles for c
26890 gtfiles=
26891 . ${srcdir}/c-config-lang.in
26892 all_gtfiles="$all_gtfiles [c] $gtfiles"
26893
26894 check_languages=
26895 for language in $all_selected_languages
26896 do
26897         check_languages="$check_languages check-$language"
26898 done
26899
26900 # We link each language in with a set of hooks, reached indirectly via
26901 # lang.${target}.  Only do so for selected languages.
26902
26903 rm -f Make-hooks
26904 touch Make-hooks
26905 target_list="all.cross start.encap rest.encap tags \
26906         install-common install-man install-info install-pdf install-html dvi \
26907         pdf html uninstall info man srcextra srcman srcinfo \
26908         mostlyclean clean distclean maintainer-clean install-plugin"
26909
26910 for t in $target_list
26911 do
26912         x=
26913         for lang in $all_selected_languages
26914         do
26915                 x="$x $lang.$t"
26916         done
26917         echo "lang.$t: $x" >> Make-hooks
26918 done
26919
26920 # --------
26921 # Option include files
26922 # --------
26923
26924 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26925 option_includes="option-includes.mk"
26926
26927
26928 # --------
26929 # UNSORTED
26930 # --------
26931
26932 # Create .gdbinit.
26933
26934 echo "dir ." > .gdbinit
26935 echo "dir ${srcdir}" >> .gdbinit
26936 if test x$gdb_needs_out_file_path = xyes
26937 then
26938         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26939 fi
26940 if test "x$subdirs" != x; then
26941         for s in $subdirs
26942         do
26943                 echo "dir ${srcdir}/$s" >> .gdbinit
26944         done
26945 fi
26946 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26947
26948 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26949
26950
26951
26952 # Find a directory in which to install a shared libgcc.
26953
26954 # Check whether --enable-version-specific-runtime-libs was given.
26955 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26956   enableval=$enable_version_specific_runtime_libs;
26957 fi
26958
26959
26960
26961 # Check whether --with-slibdir was given.
26962 if test "${with_slibdir+set}" = set; then :
26963   withval=$with_slibdir; slibdir="$with_slibdir"
26964 else
26965   if test "${enable_version_specific_runtime_libs+set}" = set; then
26966   slibdir='$(libsubdir)'
26967 elif test "$host" != "$target"; then
26968   slibdir='$(build_tooldir)/lib'
26969 else
26970   slibdir='$(libdir)'
26971 fi
26972 fi
26973
26974
26975
26976 # Substitute configuration variables
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043 # Echo link setup.
27044 if test x${build} = x${host} ; then
27045   if test x${host} = x${target} ; then
27046     echo "Links are now set up to build a native compiler for ${target}." 1>&2
27047   else
27048     echo "Links are now set up to build a cross-compiler" 1>&2
27049     echo " from ${host} to ${target}." 1>&2
27050   fi
27051 else
27052   if test x${host} = x${target} ; then
27053     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27054     echo " for ${target}." 1>&2
27055   else
27056     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27057     echo " from ${host} to ${target}." 1>&2
27058   fi
27059 fi
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069 if test "x${CLOOGLIBS}" != "x" ; then
27070
27071 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27072
27073 fi
27074
27075 # Check for plugin support
27076 # Check whether --enable-plugin was given.
27077 if test "${enable_plugin+set}" = set; then :
27078   enableval=$enable_plugin; enable_plugin=$enableval
27079 else
27080   enable_plugin=yes; default_plugin=yes
27081 fi
27082
27083
27084 pluginlibs=
27085
27086 case "${host}" in
27087   *-*-darwin*)
27088     if test x$build = x$host; then
27089       export_sym_check="nm${exeext} -g"
27090     elif test x$host = x$target; then
27091       export_sym_check="$gcc_cv_nm -g"
27092     else
27093       export_sym_check=
27094     fi
27095   ;;
27096   *)
27097     if test x$build = x$host; then
27098       export_sym_check="objdump${exeext} -T"
27099     elif test x$host = x$target; then
27100       export_sym_check="$gcc_cv_objdump -T"
27101     else
27102       export_sym_check=
27103     fi
27104   ;;
27105 esac
27106
27107 if test x"$enable_plugin" = x"yes"; then
27108
27109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27110 $as_echo_n "checking for exported symbols... " >&6; }
27111   if test "x$export_sym_check" != x; then
27112     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27113     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27114     if $export_sym_check conftest | grep foobar > /dev/null; then
27115       : # No need to use a flag
27116       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27117 $as_echo "yes" >&6; }
27118     else
27119       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27120 $as_echo "yes" >&6; }
27121       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27122 $as_echo_n "checking for -rdynamic... " >&6; }
27123       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27124       if $export_sym_check conftest | grep foobar > /dev/null; then
27125         plugin_rdynamic=yes
27126         pluginlibs="-rdynamic"
27127       else
27128         plugin_rdynamic=no
27129         enable_plugin=no
27130       fi
27131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27132 $as_echo "$plugin_rdynamic" >&6; }
27133     fi
27134   else
27135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27136 $as_echo "unable to check" >&6; }
27137   fi
27138
27139   # Check -ldl
27140   saved_LIBS="$LIBS"
27141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27142 $as_echo_n "checking for library containing dlopen... " >&6; }
27143 if test "${ac_cv_search_dlopen+set}" = set; then :
27144   $as_echo_n "(cached) " >&6
27145 else
27146   ac_func_search_save_LIBS=$LIBS
27147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27148 /* end confdefs.h.  */
27149
27150 /* Override any GCC internal prototype to avoid an error.
27151    Use char because int might match the return type of a GCC
27152    builtin and then its argument prototype would still apply.  */
27153 #ifdef __cplusplus
27154 extern "C"
27155 #endif
27156 char dlopen ();
27157 int
27158 main ()
27159 {
27160 return dlopen ();
27161   ;
27162   return 0;
27163 }
27164 _ACEOF
27165 for ac_lib in '' dl; do
27166   if test -z "$ac_lib"; then
27167     ac_res="none required"
27168   else
27169     ac_res=-l$ac_lib
27170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27171   fi
27172   if ac_fn_c_try_link "$LINENO"; then :
27173   ac_cv_search_dlopen=$ac_res
27174 fi
27175 rm -f core conftest.err conftest.$ac_objext \
27176     conftest$ac_exeext
27177   if test "${ac_cv_search_dlopen+set}" = set; then :
27178   break
27179 fi
27180 done
27181 if test "${ac_cv_search_dlopen+set}" = set; then :
27182
27183 else
27184   ac_cv_search_dlopen=no
27185 fi
27186 rm conftest.$ac_ext
27187 LIBS=$ac_func_search_save_LIBS
27188 fi
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27190 $as_echo "$ac_cv_search_dlopen" >&6; }
27191 ac_res=$ac_cv_search_dlopen
27192 if test "$ac_res" != no; then :
27193   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27194
27195 fi
27196
27197   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27198     pluginlibs="$pluginlibs -ldl"
27199   fi
27200   LIBS="$saved_LIBS"
27201
27202   # Check that we can build shared objects with -fPIC -shared
27203   saved_LDFLAGS="$LDFLAGS"
27204   saved_CFLAGS="$CFLAGS"
27205   case "${host}" in
27206     *-*-darwin*)
27207       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27208       CFLAGS="$CFLAGS -fPIC"
27209       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27210     ;;
27211     *)
27212       CFLAGS="$CFLAGS -fPIC"
27213       LDFLAGS="$LDFLAGS -fPIC -shared"
27214     ;;
27215   esac
27216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27217 $as_echo_n "checking for -fPIC -shared... " >&6; }
27218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27219 /* end confdefs.h.  */
27220 extern int X;
27221 int
27222 main ()
27223 {
27224 return X == 0;
27225   ;
27226   return 0;
27227 }
27228 _ACEOF
27229 if ac_fn_c_try_link "$LINENO"; then :
27230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27231 $as_echo "yes" >&6; }; have_pic_shared=yes
27232 else
27233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27234 $as_echo "no" >&6; }; have_pic_shared=no
27235 fi
27236 rm -f core conftest.err conftest.$ac_objext \
27237     conftest$ac_exeext conftest.$ac_ext
27238   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27239     pluginlibs=
27240     enable_plugin=no
27241   fi
27242   LDFLAGS="$saved_LDFLAGS"
27243   CFLAGS="$saved_CFLAGS"
27244
27245   # If plugin support had been requested but not available, fail.
27246   if test x"$enable_plugin" = x"no" ; then
27247     if test x"$default_plugin" != x"yes"; then
27248       as_fn_error "
27249 Building GCC with plugin support requires a host that supports
27250 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27251     fi
27252   fi
27253 fi
27254
27255
27256
27257 if test x"$enable_plugin" = x"yes"; then
27258
27259 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27260
27261 fi
27262
27263
27264 # Check whether --enable-libquadmath-support was given.
27265 if test "${enable_libquadmath_support+set}" = set; then :
27266   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27267 else
27268   ENABLE_LIBQUADMATH_SUPPORT=yes
27269 fi
27270
27271 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27272
27273 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27274
27275 fi
27276
27277
27278 # Specify what hash style to use by default.
27279
27280 # Check whether --with-linker-hash-style was given.
27281 if test "${with_linker_hash_style+set}" = set; then :
27282   withval=$with_linker_hash_style; case x"$withval" in
27283    xsysv)
27284      LINKER_HASH_STYLE=sysv
27285      ;;
27286    xgnu)
27287      LINKER_HASH_STYLE=gnu
27288      ;;
27289    xboth)
27290      LINKER_HASH_STYLE=both
27291      ;;
27292    *)
27293      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27294      ;;
27295  esac
27296 else
27297   LINKER_HASH_STYLE=''
27298 fi
27299
27300 if test x"${LINKER_HASH_STYLE}" != x; then
27301
27302 cat >>confdefs.h <<_ACEOF
27303 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27304 _ACEOF
27305
27306 fi
27307
27308 # Configure the subdirectories
27309 # AC_CONFIG_SUBDIRS($subdirs)
27310
27311 # Create the Makefile
27312 # and configure language subdirectories
27313 ac_config_files="$ac_config_files $all_outputs"
27314
27315
27316 ac_config_commands="$ac_config_commands default"
27317
27318 cat >confcache <<\_ACEOF
27319 # This file is a shell script that caches the results of configure
27320 # tests run on this system so they can be shared between configure
27321 # scripts and configure runs, see configure's option --config-cache.
27322 # It is not useful on other systems.  If it contains results you don't
27323 # want to keep, you may remove or edit it.
27324 #
27325 # config.status only pays attention to the cache file if you give it
27326 # the --recheck option to rerun configure.
27327 #
27328 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27329 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27330 # following values.
27331
27332 _ACEOF
27333
27334 # The following way of writing the cache mishandles newlines in values,
27335 # but we know of no workaround that is simple, portable, and efficient.
27336 # So, we kill variables containing newlines.
27337 # Ultrix sh set writes to stderr and can't be redirected directly,
27338 # and sets the high bit in the cache file unless we assign to the vars.
27339 (
27340   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27341     eval ac_val=\$$ac_var
27342     case $ac_val in #(
27343     *${as_nl}*)
27344       case $ac_var in #(
27345       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27346 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27347       esac
27348       case $ac_var in #(
27349       _ | IFS | as_nl) ;; #(
27350       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27351       *) { eval $ac_var=; unset $ac_var;} ;;
27352       esac ;;
27353     esac
27354   done
27355
27356   (set) 2>&1 |
27357     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27358     *${as_nl}ac_space=\ *)
27359       # `set' does not quote correctly, so add quotes: double-quote
27360       # substitution turns \\\\ into \\, and sed turns \\ into \.
27361       sed -n \
27362         "s/'/'\\\\''/g;
27363           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27364       ;; #(
27365     *)
27366       # `set' quotes correctly as required by POSIX, so do not add quotes.
27367       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27368       ;;
27369     esac |
27370     sort
27371 ) |
27372   sed '
27373      /^ac_cv_env_/b end
27374      t clear
27375      :clear
27376      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27377      t end
27378      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27379      :end' >>confcache
27380 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27381   if test -w "$cache_file"; then
27382     test "x$cache_file" != "x/dev/null" &&
27383       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27384 $as_echo "$as_me: updating cache $cache_file" >&6;}
27385     cat confcache >$cache_file
27386   else
27387     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27388 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27389   fi
27390 fi
27391 rm -f confcache
27392
27393 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27394 # Let make expand exec_prefix.
27395 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27396
27397 DEFS=-DHAVE_CONFIG_H
27398
27399 ac_libobjs=
27400 ac_ltlibobjs=
27401 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27402   # 1. Remove the extension, and $U if already installed.
27403   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27404   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27405   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27406   #    will be set to the directory where LIBOBJS objects are built.
27407   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27408   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27409 done
27410 LIBOBJS=$ac_libobjs
27411
27412 LTLIBOBJS=$ac_ltlibobjs
27413
27414
27415
27416
27417 : ${CONFIG_STATUS=./config.status}
27418 ac_write_fail=0
27419 ac_clean_files_save=$ac_clean_files
27420 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27422 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27423 as_write_fail=0
27424 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27425 #! $SHELL
27426 # Generated by $as_me.
27427 # Run this file to recreate the current configuration.
27428 # Compiler output produced by configure, useful for debugging
27429 # configure, is in config.log if it exists.
27430
27431 debug=false
27432 ac_cs_recheck=false
27433 ac_cs_silent=false
27434
27435 SHELL=\${CONFIG_SHELL-$SHELL}
27436 export SHELL
27437 _ASEOF
27438 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27439 ## -------------------- ##
27440 ## M4sh Initialization. ##
27441 ## -------------------- ##
27442
27443 # Be more Bourne compatible
27444 DUALCASE=1; export DUALCASE # for MKS sh
27445 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27446   emulate sh
27447   NULLCMD=:
27448   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27449   # is contrary to our usage.  Disable this feature.
27450   alias -g '${1+"$@"}'='"$@"'
27451   setopt NO_GLOB_SUBST
27452 else
27453   case `(set -o) 2>/dev/null` in #(
27454   *posix*) :
27455     set -o posix ;; #(
27456   *) :
27457      ;;
27458 esac
27459 fi
27460
27461
27462 as_nl='
27463 '
27464 export as_nl
27465 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27466 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27467 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27468 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27469 # Prefer a ksh shell builtin over an external printf program on Solaris,
27470 # but without wasting forks for bash or zsh.
27471 if test -z "$BASH_VERSION$ZSH_VERSION" \
27472     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27473   as_echo='print -r --'
27474   as_echo_n='print -rn --'
27475 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27476   as_echo='printf %s\n'
27477   as_echo_n='printf %s'
27478 else
27479   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27480     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27481     as_echo_n='/usr/ucb/echo -n'
27482   else
27483     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27484     as_echo_n_body='eval
27485       arg=$1;
27486       case $arg in #(
27487       *"$as_nl"*)
27488         expr "X$arg" : "X\\(.*\\)$as_nl";
27489         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27490       esac;
27491       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27492     '
27493     export as_echo_n_body
27494     as_echo_n='sh -c $as_echo_n_body as_echo'
27495   fi
27496   export as_echo_body
27497   as_echo='sh -c $as_echo_body as_echo'
27498 fi
27499
27500 # The user is always right.
27501 if test "${PATH_SEPARATOR+set}" != set; then
27502   PATH_SEPARATOR=:
27503   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27504     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27505       PATH_SEPARATOR=';'
27506   }
27507 fi
27508
27509
27510 # IFS
27511 # We need space, tab and new line, in precisely that order.  Quoting is
27512 # there to prevent editors from complaining about space-tab.
27513 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27514 # splitting by setting IFS to empty value.)
27515 IFS=" ""        $as_nl"
27516
27517 # Find who we are.  Look in the path if we contain no directory separator.
27518 case $0 in #((
27519   *[\\/]* ) as_myself=$0 ;;
27520   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27521 for as_dir in $PATH
27522 do
27523   IFS=$as_save_IFS
27524   test -z "$as_dir" && as_dir=.
27525     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27526   done
27527 IFS=$as_save_IFS
27528
27529      ;;
27530 esac
27531 # We did not find ourselves, most probably we were run as `sh COMMAND'
27532 # in which case we are not to be found in the path.
27533 if test "x$as_myself" = x; then
27534   as_myself=$0
27535 fi
27536 if test ! -f "$as_myself"; then
27537   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27538   exit 1
27539 fi
27540
27541 # Unset variables that we do not need and which cause bugs (e.g. in
27542 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27543 # suppresses any "Segmentation fault" message there.  '((' could
27544 # trigger a bug in pdksh 5.2.14.
27545 for as_var in BASH_ENV ENV MAIL MAILPATH
27546 do eval test x\${$as_var+set} = xset \
27547   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27548 done
27549 PS1='$ '
27550 PS2='> '
27551 PS4='+ '
27552
27553 # NLS nuisances.
27554 LC_ALL=C
27555 export LC_ALL
27556 LANGUAGE=C
27557 export LANGUAGE
27558
27559 # CDPATH.
27560 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27561
27562
27563 # as_fn_error ERROR [LINENO LOG_FD]
27564 # ---------------------------------
27565 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27566 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27567 # script with status $?, using 1 if that was 0.
27568 as_fn_error ()
27569 {
27570   as_status=$?; test $as_status -eq 0 && as_status=1
27571   if test "$3"; then
27572     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27573     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27574   fi
27575   $as_echo "$as_me: error: $1" >&2
27576   as_fn_exit $as_status
27577 } # as_fn_error
27578
27579
27580 # as_fn_set_status STATUS
27581 # -----------------------
27582 # Set $? to STATUS, without forking.
27583 as_fn_set_status ()
27584 {
27585   return $1
27586 } # as_fn_set_status
27587
27588 # as_fn_exit STATUS
27589 # -----------------
27590 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27591 as_fn_exit ()
27592 {
27593   set +e
27594   as_fn_set_status $1
27595   exit $1
27596 } # as_fn_exit
27597
27598 # as_fn_unset VAR
27599 # ---------------
27600 # Portably unset VAR.
27601 as_fn_unset ()
27602 {
27603   { eval $1=; unset $1;}
27604 }
27605 as_unset=as_fn_unset
27606 # as_fn_append VAR VALUE
27607 # ----------------------
27608 # Append the text in VALUE to the end of the definition contained in VAR. Take
27609 # advantage of any shell optimizations that allow amortized linear growth over
27610 # repeated appends, instead of the typical quadratic growth present in naive
27611 # implementations.
27612 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27613   eval 'as_fn_append ()
27614   {
27615     eval $1+=\$2
27616   }'
27617 else
27618   as_fn_append ()
27619   {
27620     eval $1=\$$1\$2
27621   }
27622 fi # as_fn_append
27623
27624 # as_fn_arith ARG...
27625 # ------------------
27626 # Perform arithmetic evaluation on the ARGs, and store the result in the
27627 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27628 # must be portable across $(()) and expr.
27629 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27630   eval 'as_fn_arith ()
27631   {
27632     as_val=$(( $* ))
27633   }'
27634 else
27635   as_fn_arith ()
27636   {
27637     as_val=`expr "$@" || test $? -eq 1`
27638   }
27639 fi # as_fn_arith
27640
27641
27642 if expr a : '\(a\)' >/dev/null 2>&1 &&
27643    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27644   as_expr=expr
27645 else
27646   as_expr=false
27647 fi
27648
27649 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27650   as_basename=basename
27651 else
27652   as_basename=false
27653 fi
27654
27655 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27656   as_dirname=dirname
27657 else
27658   as_dirname=false
27659 fi
27660
27661 as_me=`$as_basename -- "$0" ||
27662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27663          X"$0" : 'X\(//\)$' \| \
27664          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27665 $as_echo X/"$0" |
27666     sed '/^.*\/\([^/][^/]*\)\/*$/{
27667             s//\1/
27668             q
27669           }
27670           /^X\/\(\/\/\)$/{
27671             s//\1/
27672             q
27673           }
27674           /^X\/\(\/\).*/{
27675             s//\1/
27676             q
27677           }
27678           s/.*/./; q'`
27679
27680 # Avoid depending upon Character Ranges.
27681 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27682 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27683 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27684 as_cr_digits='0123456789'
27685 as_cr_alnum=$as_cr_Letters$as_cr_digits
27686
27687 ECHO_C= ECHO_N= ECHO_T=
27688 case `echo -n x` in #(((((
27689 -n*)
27690   case `echo 'xy\c'` in
27691   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27692   xy)  ECHO_C='\c';;
27693   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27694        ECHO_T=' ';;
27695   esac;;
27696 *)
27697   ECHO_N='-n';;
27698 esac
27699
27700 rm -f conf$$ conf$$.exe conf$$.file
27701 if test -d conf$$.dir; then
27702   rm -f conf$$.dir/conf$$.file
27703 else
27704   rm -f conf$$.dir
27705   mkdir conf$$.dir 2>/dev/null
27706 fi
27707 if (echo >conf$$.file) 2>/dev/null; then
27708   if ln -s conf$$.file conf$$ 2>/dev/null; then
27709     as_ln_s='ln -s'
27710     # ... but there are two gotchas:
27711     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27712     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27713     # In both cases, we have to default to `cp -p'.
27714     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27715       as_ln_s='cp -p'
27716   elif ln conf$$.file conf$$ 2>/dev/null; then
27717     as_ln_s=ln
27718   else
27719     as_ln_s='cp -p'
27720   fi
27721 else
27722   as_ln_s='cp -p'
27723 fi
27724 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27725 rmdir conf$$.dir 2>/dev/null
27726
27727
27728 # as_fn_mkdir_p
27729 # -------------
27730 # Create "$as_dir" as a directory, including parents if necessary.
27731 as_fn_mkdir_p ()
27732 {
27733
27734   case $as_dir in #(
27735   -*) as_dir=./$as_dir;;
27736   esac
27737   test -d "$as_dir" || eval $as_mkdir_p || {
27738     as_dirs=
27739     while :; do
27740       case $as_dir in #(
27741       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27742       *) as_qdir=$as_dir;;
27743       esac
27744       as_dirs="'$as_qdir' $as_dirs"
27745       as_dir=`$as_dirname -- "$as_dir" ||
27746 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27747          X"$as_dir" : 'X\(//\)[^/]' \| \
27748          X"$as_dir" : 'X\(//\)$' \| \
27749          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27750 $as_echo X"$as_dir" |
27751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27752             s//\1/
27753             q
27754           }
27755           /^X\(\/\/\)[^/].*/{
27756             s//\1/
27757             q
27758           }
27759           /^X\(\/\/\)$/{
27760             s//\1/
27761             q
27762           }
27763           /^X\(\/\).*/{
27764             s//\1/
27765             q
27766           }
27767           s/.*/./; q'`
27768       test -d "$as_dir" && break
27769     done
27770     test -z "$as_dirs" || eval "mkdir $as_dirs"
27771   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27772
27773
27774 } # as_fn_mkdir_p
27775 if mkdir -p . 2>/dev/null; then
27776   as_mkdir_p='mkdir -p "$as_dir"'
27777 else
27778   test -d ./-p && rmdir ./-p
27779   as_mkdir_p=false
27780 fi
27781
27782 if test -x / >/dev/null 2>&1; then
27783   as_test_x='test -x'
27784 else
27785   if ls -dL / >/dev/null 2>&1; then
27786     as_ls_L_option=L
27787   else
27788     as_ls_L_option=
27789   fi
27790   as_test_x='
27791     eval sh -c '\''
27792       if test -d "$1"; then
27793         test -d "$1/.";
27794       else
27795         case $1 in #(
27796         -*)set "./$1";;
27797         esac;
27798         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27799         ???[sx]*):;;*)false;;esac;fi
27800     '\'' sh
27801   '
27802 fi
27803 as_executable_p=$as_test_x
27804
27805 # Sed expression to map a string onto a valid CPP name.
27806 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27807
27808 # Sed expression to map a string onto a valid variable name.
27809 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27810
27811
27812 exec 6>&1
27813 ## ----------------------------------- ##
27814 ## Main body of $CONFIG_STATUS script. ##
27815 ## ----------------------------------- ##
27816 _ASEOF
27817 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27818
27819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27820 # Save the log message, to keep $0 and so on meaningful, and to
27821 # report actual input values of CONFIG_FILES etc. instead of their
27822 # values after options handling.
27823 ac_log="
27824 This file was extended by $as_me, which was
27825 generated by GNU Autoconf 2.64.  Invocation command line was
27826
27827   CONFIG_FILES    = $CONFIG_FILES
27828   CONFIG_HEADERS  = $CONFIG_HEADERS
27829   CONFIG_LINKS    = $CONFIG_LINKS
27830   CONFIG_COMMANDS = $CONFIG_COMMANDS
27831   $ $0 $@
27832
27833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27834 "
27835
27836 _ACEOF
27837
27838 case $ac_config_files in *"
27839 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27840 esac
27841
27842 case $ac_config_headers in *"
27843 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27844 esac
27845
27846
27847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27848 # Files that config.status was made for.
27849 config_files="$ac_config_files"
27850 config_headers="$ac_config_headers"
27851 config_commands="$ac_config_commands"
27852
27853 _ACEOF
27854
27855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27856 ac_cs_usage="\
27857 \`$as_me' instantiates files and other configuration actions
27858 from templates according to the current configuration.  Unless the files
27859 and actions are specified as TAGs, all are instantiated by default.
27860
27861 Usage: $0 [OPTION]... [TAG]...
27862
27863   -h, --help       print this help, then exit
27864   -V, --version    print version number and configuration settings, then exit
27865   -q, --quiet, --silent
27866                    do not print progress messages
27867   -d, --debug      don't remove temporary files
27868       --recheck    update $as_me by reconfiguring in the same conditions
27869       --file=FILE[:TEMPLATE]
27870                    instantiate the configuration file FILE
27871       --header=FILE[:TEMPLATE]
27872                    instantiate the configuration header FILE
27873
27874 Configuration files:
27875 $config_files
27876
27877 Configuration headers:
27878 $config_headers
27879
27880 Configuration commands:
27881 $config_commands
27882
27883 Report bugs to the package provider."
27884
27885 _ACEOF
27886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27887 ac_cs_version="\\
27888 config.status
27889 configured by $0, generated by GNU Autoconf 2.64,
27890   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27891
27892 Copyright (C) 2009 Free Software Foundation, Inc.
27893 This config.status script is free software; the Free Software Foundation
27894 gives unlimited permission to copy, distribute and modify it."
27895
27896 ac_pwd='$ac_pwd'
27897 srcdir='$srcdir'
27898 AWK='$AWK'
27899 test -n "\$AWK" || AWK=awk
27900 _ACEOF
27901
27902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27903 # The default lists apply if the user does not specify any file.
27904 ac_need_defaults=:
27905 while test $# != 0
27906 do
27907   case $1 in
27908   --*=*)
27909     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27910     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27911     ac_shift=:
27912     ;;
27913   *)
27914     ac_option=$1
27915     ac_optarg=$2
27916     ac_shift=shift
27917     ;;
27918   esac
27919
27920   case $ac_option in
27921   # Handling of the options.
27922   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27923     ac_cs_recheck=: ;;
27924   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27925     $as_echo "$ac_cs_version"; exit ;;
27926   --debug | --debu | --deb | --de | --d | -d )
27927     debug=: ;;
27928   --file | --fil | --fi | --f )
27929     $ac_shift
27930     case $ac_optarg in
27931     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27932     esac
27933     as_fn_append CONFIG_FILES " '$ac_optarg'"
27934     ac_need_defaults=false;;
27935   --header | --heade | --head | --hea )
27936     $ac_shift
27937     case $ac_optarg in
27938     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27939     esac
27940     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27941     ac_need_defaults=false;;
27942   --he | --h)
27943     # Conflict between --help and --header
27944     as_fn_error "ambiguous option: \`$1'
27945 Try \`$0 --help' for more information.";;
27946   --help | --hel | -h )
27947     $as_echo "$ac_cs_usage"; exit ;;
27948   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27949   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27950     ac_cs_silent=: ;;
27951
27952   # This is an error.
27953   -*) as_fn_error "unrecognized option: \`$1'
27954 Try \`$0 --help' for more information." ;;
27955
27956   *) as_fn_append ac_config_targets " $1"
27957      ac_need_defaults=false ;;
27958
27959   esac
27960   shift
27961 done
27962
27963 ac_configure_extra_args=
27964
27965 if $ac_cs_silent; then
27966   exec 6>/dev/null
27967   ac_configure_extra_args="$ac_configure_extra_args --silent"
27968 fi
27969
27970 _ACEOF
27971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27972 if \$ac_cs_recheck; then
27973   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27974   shift
27975   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27976   CONFIG_SHELL='$SHELL'
27977   export CONFIG_SHELL
27978   exec "\$@"
27979 fi
27980
27981 _ACEOF
27982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27983 exec 5>>config.log
27984 {
27985   echo
27986   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27987 ## Running $as_me. ##
27988 _ASBOX
27989   $as_echo "$ac_log"
27990 } >&5
27991
27992 _ACEOF
27993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27994 #
27995 # INIT-COMMANDS
27996 #
27997 subdirs='$subdirs'
27998
27999 _ACEOF
28000
28001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28002
28003 # Handling of arguments.
28004 for ac_config_target in $ac_config_targets
28005 do
28006   case $ac_config_target in
28007     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28008     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28009     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28010     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28011     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28012     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28013
28014   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28015   esac
28016 done
28017
28018
28019 # If the user did not use the arguments to specify the items to instantiate,
28020 # then the envvar interface is used.  Set only those that are not.
28021 # We use the long form for the default assignment because of an extremely
28022 # bizarre bug on SunOS 4.1.3.
28023 if $ac_need_defaults; then
28024   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28025   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28026   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28027 fi
28028
28029 # Have a temporary directory for convenience.  Make it in the build tree
28030 # simply because there is no reason against having it here, and in addition,
28031 # creating and moving files from /tmp can sometimes cause problems.
28032 # Hook for its removal unless debugging.
28033 # Note that there is a small window in which the directory will not be cleaned:
28034 # after its creation but before its name has been assigned to `$tmp'.
28035 $debug ||
28036 {
28037   tmp=
28038   trap 'exit_status=$?
28039   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28040 ' 0
28041   trap 'as_fn_exit 1' 1 2 13 15
28042 }
28043 # Create a (secure) tmp directory for tmp files.
28044
28045 {
28046   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28047   test -n "$tmp" && test -d "$tmp"
28048 }  ||
28049 {
28050   tmp=./conf$$-$RANDOM
28051   (umask 077 && mkdir "$tmp")
28052 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28053
28054 # Set up the scripts for CONFIG_FILES section.
28055 # No need to generate them if there are no CONFIG_FILES.
28056 # This happens for instance with `./config.status config.h'.
28057 if test -n "$CONFIG_FILES"; then
28058
28059 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28060   ac_cs_awk_getline=:
28061   ac_cs_awk_pipe_init=
28062   ac_cs_awk_read_file='
28063       while ((getline aline < (F[key])) > 0)
28064         print(aline)
28065       close(F[key])'
28066   ac_cs_awk_pipe_fini=
28067 else
28068   ac_cs_awk_getline=false
28069   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28070   ac_cs_awk_read_file='
28071       print "|#_!!_#|"
28072       print "cat " F[key] " &&"
28073       '$ac_cs_awk_pipe_init
28074   # The final `:' finishes the AND list.
28075   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28076 fi
28077 ac_cr=`echo X | tr X '\015'`
28078 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28079 # But we know of no other shell where ac_cr would be empty at this
28080 # point, so we can use a bashism as a fallback.
28081 if test "x$ac_cr" = x; then
28082   eval ac_cr=\$\'\\r\'
28083 fi
28084 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28085 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28086   ac_cs_awk_cr='\r'
28087 else
28088   ac_cs_awk_cr=$ac_cr
28089 fi
28090
28091 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28092 _ACEOF
28093
28094 # Create commands to substitute file output variables.
28095 {
28096   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28097   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28098   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28099   echo "_ACAWK" &&
28100   echo "_ACEOF"
28101 } >conf$$files.sh &&
28102 . ./conf$$files.sh ||
28103   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28104 rm -f conf$$files.sh
28105
28106 {
28107   echo "cat >conf$$subs.awk <<_ACEOF" &&
28108   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28109   echo "_ACEOF"
28110 } >conf$$subs.sh ||
28111   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28112 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28113 ac_delim='%!_!# '
28114 for ac_last_try in false false false false false :; do
28115   . ./conf$$subs.sh ||
28116     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28117
28118   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28119   if test $ac_delim_n = $ac_delim_num; then
28120     break
28121   elif $ac_last_try; then
28122     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28123   else
28124     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28125   fi
28126 done
28127 rm -f conf$$subs.sh
28128
28129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28130 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28131 _ACEOF
28132 sed -n '
28133 h
28134 s/^/S["/; s/!.*/"]=/
28135 p
28136 g
28137 s/^[^!]*!//
28138 :repl
28139 t repl
28140 s/'"$ac_delim"'$//
28141 t delim
28142 :nl
28143 h
28144 s/\(.\{148\}\).*/\1/
28145 t more1
28146 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28147 p
28148 n
28149 b repl
28150 :more1
28151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28152 p
28153 g
28154 s/.\{148\}//
28155 t nl
28156 :delim
28157 h
28158 s/\(.\{148\}\).*/\1/
28159 t more2
28160 s/["\\]/\\&/g; s/^/"/; s/$/"/
28161 p
28162 b
28163 :more2
28164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28165 p
28166 g
28167 s/.\{148\}//
28168 t delim
28169 ' <conf$$subs.awk | sed '
28170 /^[^""]/{
28171   N
28172   s/\n//
28173 }
28174 ' >>$CONFIG_STATUS || ac_write_fail=1
28175 rm -f conf$$subs.awk
28176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28177 _ACAWK
28178 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28179   for (key in S) S_is_set[key] = 1
28180   FS = "\a"
28181   \$ac_cs_awk_pipe_init
28182 }
28183 {
28184   line = $ 0
28185   nfields = split(line, field, "@")
28186   substed = 0
28187   len = length(field[1])
28188   for (i = 2; i < nfields; i++) {
28189     key = field[i]
28190     keylen = length(key)
28191     if (S_is_set[key]) {
28192       value = S[key]
28193       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28194       len += length(value) + length(field[++i])
28195       substed = 1
28196     } else
28197       len += 1 + keylen
28198   }
28199   if (nfields == 3 && !substed) {
28200     key = field[2]
28201     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
28202       \$ac_cs_awk_read_file
28203       next
28204     }
28205   }
28206   print line
28207 }
28208 \$ac_cs_awk_pipe_fini
28209 _ACAWK
28210 _ACEOF
28211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28212 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28213   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28214 else
28215   cat
28216 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28217   || as_fn_error "could not setup config files machinery" "$LINENO" 5
28218 _ACEOF
28219
28220 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28221 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28222 # trailing colons and then remove the whole line if VPATH becomes empty
28223 # (actually we leave an empty line to preserve line numbers).
28224 if test "x$srcdir" = x.; then
28225   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28226 s/:*\$(srcdir):*/:/
28227 s/:*\${srcdir}:*/:/
28228 s/:*@srcdir@:*/:/
28229 s/^\([^=]*=[     ]*\):*/\1/
28230 s/:*$//
28231 s/^[^=]*=[       ]*$//
28232 }'
28233 fi
28234
28235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28236 fi # test -n "$CONFIG_FILES"
28237
28238 # Set up the scripts for CONFIG_HEADERS section.
28239 # No need to generate them if there are no CONFIG_HEADERS.
28240 # This happens for instance with `./config.status Makefile'.
28241 if test -n "$CONFIG_HEADERS"; then
28242 cat >"$tmp/defines.awk" <<\_ACAWK ||
28243 BEGIN {
28244 _ACEOF
28245
28246 # Transform confdefs.h into an awk script `defines.awk', embedded as
28247 # here-document in config.status, that substitutes the proper values into
28248 # config.h.in to produce config.h.
28249
28250 # Create a delimiter string that does not exist in confdefs.h, to ease
28251 # handling of long lines.
28252 ac_delim='%!_!# '
28253 for ac_last_try in false false :; do
28254   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28255   if test -z "$ac_t"; then
28256     break
28257   elif $ac_last_try; then
28258     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28259   else
28260     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28261   fi
28262 done
28263
28264 # For the awk script, D is an array of macro values keyed by name,
28265 # likewise P contains macro parameters if any.  Preserve backslash
28266 # newline sequences.
28267
28268 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28269 sed -n '
28270 s/.\{148\}/&'"$ac_delim"'/g
28271 t rset
28272 :rset
28273 s/^[     ]*#[    ]*define[       ][      ]*/ /
28274 t def
28275 d
28276 :def
28277 s/\\$//
28278 t bsnl
28279 s/["\\]/\\&/g
28280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28281 D["\1"]=" \3"/p
28282 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28283 d
28284 :bsnl
28285 s/["\\]/\\&/g
28286 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28287 D["\1"]=" \3\\\\\\n"\\/p
28288 t cont
28289 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28290 t cont
28291 d
28292 :cont
28293 n
28294 s/.\{148\}/&'"$ac_delim"'/g
28295 t clear
28296 :clear
28297 s/\\$//
28298 t bsnlc
28299 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28300 d
28301 :bsnlc
28302 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28303 b cont
28304 ' <confdefs.h | sed '
28305 s/'"$ac_delim"'/"\\\
28306 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28307
28308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28309   for (key in D) D_is_set[key] = 1
28310   FS = "\a"
28311 }
28312 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28313   line = \$ 0
28314   split(line, arg, " ")
28315   if (arg[1] == "#") {
28316     defundef = arg[2]
28317     mac1 = arg[3]
28318   } else {
28319     defundef = substr(arg[1], 2)
28320     mac1 = arg[2]
28321   }
28322   split(mac1, mac2, "(") #)
28323   macro = mac2[1]
28324   prefix = substr(line, 1, index(line, defundef) - 1)
28325   if (D_is_set[macro]) {
28326     # Preserve the white space surrounding the "#".
28327     print prefix "define", macro P[macro] D[macro]
28328     next
28329   } else {
28330     # Replace #undef with comments.  This is necessary, for example,
28331     # in the case of _POSIX_SOURCE, which is predefined and required
28332     # on some systems where configure will not decide to define it.
28333     if (defundef == "undef") {
28334       print "/*", prefix defundef, macro, "*/"
28335       next
28336     }
28337   }
28338 }
28339 { print }
28340 _ACAWK
28341 _ACEOF
28342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28343   as_fn_error "could not setup config headers machinery" "$LINENO" 5
28344 fi # test -n "$CONFIG_HEADERS"
28345
28346
28347 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28348 shift
28349 for ac_tag
28350 do
28351   case $ac_tag in
28352   :[FHLC]) ac_mode=$ac_tag; continue;;
28353   esac
28354   case $ac_mode$ac_tag in
28355   :[FHL]*:*);;
28356   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28357   :[FH]-) ac_tag=-:-;;
28358   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28359   esac
28360   ac_save_IFS=$IFS
28361   IFS=:
28362   set x $ac_tag
28363   IFS=$ac_save_IFS
28364   shift
28365   ac_file=$1
28366   shift
28367
28368   case $ac_mode in
28369   :L) ac_source=$1;;
28370   :[FH])
28371     ac_file_inputs=
28372     for ac_f
28373     do
28374       case $ac_f in
28375       -) ac_f="$tmp/stdin";;
28376       *) # Look for the file first in the build tree, then in the source tree
28377          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28378          # because $ac_f cannot contain `:'.
28379          test -f "$ac_f" ||
28380            case $ac_f in
28381            [\\/$]*) false;;
28382            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28383            esac ||
28384            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28385       esac
28386       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28387       as_fn_append ac_file_inputs " '$ac_f'"
28388     done
28389
28390     # Let's still pretend it is `configure' which instantiates (i.e., don't
28391     # use $as_me), people would be surprised to read:
28392     #    /* config.h.  Generated by config.status.  */
28393     configure_input='Generated from '`
28394           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28395         `' by configure.'
28396     if test x"$ac_file" != x-; then
28397       configure_input="$ac_file.  $configure_input"
28398       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28399 $as_echo "$as_me: creating $ac_file" >&6;}
28400     fi
28401     # Neutralize special characters interpreted by sed in replacement strings.
28402     case $configure_input in #(
28403     *\&* | *\|* | *\\* )
28404        ac_sed_conf_input=`$as_echo "$configure_input" |
28405        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28406     *) ac_sed_conf_input=$configure_input;;
28407     esac
28408
28409     case $ac_tag in
28410     *:-:* | *:-) cat >"$tmp/stdin" \
28411       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28412     esac
28413     ;;
28414   esac
28415
28416   ac_dir=`$as_dirname -- "$ac_file" ||
28417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28418          X"$ac_file" : 'X\(//\)[^/]' \| \
28419          X"$ac_file" : 'X\(//\)$' \| \
28420          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28421 $as_echo X"$ac_file" |
28422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28423             s//\1/
28424             q
28425           }
28426           /^X\(\/\/\)[^/].*/{
28427             s//\1/
28428             q
28429           }
28430           /^X\(\/\/\)$/{
28431             s//\1/
28432             q
28433           }
28434           /^X\(\/\).*/{
28435             s//\1/
28436             q
28437           }
28438           s/.*/./; q'`
28439   as_dir="$ac_dir"; as_fn_mkdir_p
28440   ac_builddir=.
28441
28442 case "$ac_dir" in
28443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28444 *)
28445   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28446   # A ".." for each directory in $ac_dir_suffix.
28447   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28448   case $ac_top_builddir_sub in
28449   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28450   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28451   esac ;;
28452 esac
28453 ac_abs_top_builddir=$ac_pwd
28454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28455 # for backward compatibility:
28456 ac_top_builddir=$ac_top_build_prefix
28457
28458 case $srcdir in
28459   .)  # We are building in place.
28460     ac_srcdir=.
28461     ac_top_srcdir=$ac_top_builddir_sub
28462     ac_abs_top_srcdir=$ac_pwd ;;
28463   [\\/]* | ?:[\\/]* )  # Absolute name.
28464     ac_srcdir=$srcdir$ac_dir_suffix;
28465     ac_top_srcdir=$srcdir
28466     ac_abs_top_srcdir=$srcdir ;;
28467   *) # Relative name.
28468     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28469     ac_top_srcdir=$ac_top_build_prefix$srcdir
28470     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28471 esac
28472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28473
28474
28475   case $ac_mode in
28476   :F)
28477   #
28478   # CONFIG_FILE
28479   #
28480
28481 _ACEOF
28482
28483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28484 # If the template does not know about datarootdir, expand it.
28485 # FIXME: This hack should be removed a few years after 2.60.
28486 ac_datarootdir_hack=; ac_datarootdir_seen=
28487 ac_sed_dataroot='
28488 /datarootdir/ {
28489   p
28490   q
28491 }
28492 /@datadir@/p
28493 /@docdir@/p
28494 /@infodir@/p
28495 /@localedir@/p
28496 /@mandir@/p'
28497 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28498 *datarootdir*) ac_datarootdir_seen=yes;;
28499 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28500   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28501 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28502 _ACEOF
28503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28504   ac_datarootdir_hack='
28505   s&@datadir@&$datadir&g
28506   s&@docdir@&$docdir&g
28507   s&@infodir@&$infodir&g
28508   s&@localedir@&$localedir&g
28509   s&@mandir@&$mandir&g
28510   s&\\\${datarootdir}&$datarootdir&g' ;;
28511 esac
28512 _ACEOF
28513
28514 # Neutralize VPATH when `$srcdir' = `.'.
28515 # Shell code in configure.ac might set extrasub.
28516 # FIXME: do we really want to maintain this feature?
28517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28518 ac_sed_extra="$ac_vpsub
28519 $extrasub
28520 _ACEOF
28521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28522 :t
28523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28524 s|@configure_input@|$ac_sed_conf_input|;t t
28525 s&@top_builddir@&$ac_top_builddir_sub&;t t
28526 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28527 s&@srcdir@&$ac_srcdir&;t t
28528 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28529 s&@top_srcdir@&$ac_top_srcdir&;t t
28530 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28531 s&@builddir@&$ac_builddir&;t t
28532 s&@abs_builddir@&$ac_abs_builddir&;t t
28533 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28534 $ac_datarootdir_hack
28535 "
28536 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28537 if $ac_cs_awk_getline; then
28538   $AWK -f "$tmp/subs.awk"
28539 else
28540   $AWK -f "$tmp/subs.awk" | $SHELL
28541 fi >$tmp/out \
28542   || as_fn_error "could not create $ac_file" "$LINENO" 5
28543
28544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28545   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28546   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28547   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28548 which seems to be undefined.  Please make sure it is defined." >&5
28549 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28550 which seems to be undefined.  Please make sure it is defined." >&2;}
28551
28552   rm -f "$tmp/stdin"
28553   case $ac_file in
28554   -) cat "$tmp/out" && rm -f "$tmp/out";;
28555   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28556   esac \
28557   || as_fn_error "could not create $ac_file" "$LINENO" 5
28558  ;;
28559   :H)
28560   #
28561   # CONFIG_HEADER
28562   #
28563   if test x"$ac_file" != x-; then
28564     {
28565       $as_echo "/* $configure_input  */" \
28566       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28567     } >"$tmp/config.h" \
28568       || as_fn_error "could not create $ac_file" "$LINENO" 5
28569     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28570       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28571 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28572     else
28573       rm -f "$ac_file"
28574       mv "$tmp/config.h" "$ac_file" \
28575         || as_fn_error "could not create $ac_file" "$LINENO" 5
28576     fi
28577   else
28578     $as_echo "/* $configure_input  */" \
28579       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28580       || as_fn_error "could not create -" "$LINENO" 5
28581   fi
28582  ;;
28583
28584   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28585 $as_echo "$as_me: executing $ac_file commands" >&6;}
28586  ;;
28587   esac
28588
28589
28590   case $ac_file$ac_mode in
28591     "as":F) chmod +x as ;;
28592     "collect-ld":F) chmod +x collect-ld ;;
28593     "nm":F) chmod +x nm ;;
28594     "default":C)
28595 case ${CONFIG_HEADERS} in
28596   *auto-host.h:config.in*)
28597   echo > cstamp-h ;;
28598 esac
28599 # Make sure all the subdirs exist.
28600 for d in $subdirs doc build common c-family
28601 do
28602     test -d $d || mkdir $d
28603 done
28604  ;;
28605
28606   esac
28607 done # for ac_tag
28608
28609
28610 as_fn_exit 0
28611 _ACEOF
28612 ac_clean_files=$ac_clean_files_save
28613
28614 test $ac_write_fail = 0 ||
28615   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28616
28617
28618 # configure is writing to config.log, and then calls config.status.
28619 # config.status does its own redirection, appending to config.log.
28620 # Unfortunately, on DOS this fails, as config.log is still kept open
28621 # by configure, so config.status won't be able to write to it; its
28622 # output is simply discarded.  So we exec the FD to /dev/null,
28623 # effectively closing config.log, so it can be properly (re)opened and
28624 # appended to by config.status.  When coming back to configure, we
28625 # need to make the FD available again.
28626 if test "$no_create" != yes; then
28627   ac_cs_success=:
28628   ac_config_status_args=
28629   test "$silent" = yes &&
28630     ac_config_status_args="$ac_config_status_args --quiet"
28631   exec 5>/dev/null
28632   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28633   exec 5>>config.log
28634   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28635   # would make configure fail if this is the last instruction.
28636   $ac_cs_success || as_fn_exit $?
28637 fi
28638 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28639   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28640 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28641 fi
28642
28643