OSDN Git Service

* configure.ac (gnu_indirect_function): New test.
[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 LIBELFINC
606 LIBELFLIBS
607 CLOOGINC
608 CLOOGLIBS
609 PPLINC
610 PPLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 out_object_file
628 out_file
629 objc_boehm_gc
630 md_file
631 local_prefix
632 lang_tree_files
633 lang_specs_files
634 lang_opt_files
635 install
636 out_host_hook_obj
637 host_xm_defines
638 host_xm_include_list
639 host_xm_file_list
640 host_exeext
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_parts
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 slibdir
673 dollar
674 gcc_tooldir
675 LTO_USE_LIBELF
676 LTO_BINARY_READER
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 CXXCPP
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 SED
708 LIBTOOL
709 collect2
710 STMP_FIXINC
711 BUILD_LDFLAGS
712 BUILD_CFLAGS
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
716 ALL
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 gthread_flags
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 GNAT_LIBEXC
740 COLLECT2_LIBS
741 AR
742 NM
743 BISON
744 FLEX
745 GENERATED_MANPAGES
746 BUILD_INFO
747 MAKEINFO
748 have_mktemp_command
749 make_compare_target
750 INSTALL_DATA
751 INSTALL_PROGRAM
752 INSTALL
753 ranlib_flags
754 RANLIB
755 LN
756 LN_S
757 AWK
758 SET_MAKE
759 REPORT_BUGS_TEXI
760 REPORT_BUGS_TO
761 PKGVERSION
762 onestep
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 enable_shared
768 enable_fixed_point
769 enable_decimal_float
770 enable_multilib
771 ENABLE_BUILD_WITH_CXX
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
786 CPP
787 OUTPUT_OPTION
788 NO_MINUS_C_MINUS_O
789 GNATMAKE
790 GNATBIND
791 ac_ct_CXX
792 CXXFLAGS
793 CXX
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 GENINSRC
802 target_subdir
803 host_subdir
804 build_subdir
805 build_libsubdir
806 target_noncanonical
807 target_os
808 target_vendor
809 target_cpu
810 target
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL'
857 ac_subst_files='language_hooks'
858 ac_user_opts='
859 enable_option_checking
860 with_build_libsubdir
861 with_local_prefix
862 with_gxx_include_dir
863 with_cpp_install_dir
864 enable_generated_files_in_srcdir
865 with_gnu_ld
866 with_ld
867 with_demangler_in_ld
868 with_gnu_as
869 with_as
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_build_sysroot
886 with_sysroot
887 with_specs
888 enable_intermodule
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_initfini_array
896 enable_sjlj_exceptions
897 with_system_libunwind
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 with_slibdir
917 enable_plugin
918 '
919       ac_precious_vars='build_alias
920 host_alias
921 target_alias
922 CC
923 CFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
927 CXX
928 CXXFLAGS
929 CCC
930 CPP
931 CXXCPP
932 GMPLIBS
933 GMPINC
934 PPLLIBS
935 PPLINC
936 CLOOGLIBS
937 CLOOGINC
938 LIBELFLIBS
939 LIBELFINC'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994   # If the previous option needs an argument, assign it.
995   if test -n "$ac_prev"; then
996     eval $ac_prev=\$ac_option
997     ac_prev=
998     continue
999   fi
1000
1001   case $ac_option in
1002   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003   *)    ac_optarg=yes ;;
1004   esac
1005
1006   # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008   case $ac_dashdash$ac_option in
1009   --)
1010     ac_dashdash=yes ;;
1011
1012   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013     ac_prev=bindir ;;
1014   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015     bindir=$ac_optarg ;;
1016
1017   -build | --build | --buil | --bui | --bu)
1018     ac_prev=build_alias ;;
1019   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020     build_alias=$ac_optarg ;;
1021
1022   -cache-file | --cache-file | --cache-fil | --cache-fi \
1023   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024     ac_prev=cache_file ;;
1025   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027     cache_file=$ac_optarg ;;
1028
1029   --config-cache | -C)
1030     cache_file=config.cache ;;
1031
1032   -datadir | --datadir | --datadi | --datad)
1033     ac_prev=datadir ;;
1034   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035     datadir=$ac_optarg ;;
1036
1037   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038   | --dataroo | --dataro | --datar)
1039     ac_prev=datarootdir ;;
1040   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042     datarootdir=$ac_optarg ;;
1043
1044   -disable-* | --disable-*)
1045     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048       as_fn_error "invalid feature name: $ac_useropt"
1049     ac_useropt_orig=$ac_useropt
1050     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051     case $ac_user_opts in
1052       *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056          ac_unrecognized_sep=', ';;
1057     esac
1058     eval enable_$ac_useropt=no ;;
1059
1060   -docdir | --docdir | --docdi | --doc | --do)
1061     ac_prev=docdir ;;
1062   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063     docdir=$ac_optarg ;;
1064
1065   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066     ac_prev=dvidir ;;
1067   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068     dvidir=$ac_optarg ;;
1069
1070   -enable-* | --enable-*)
1071     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074       as_fn_error "invalid feature name: $ac_useropt"
1075     ac_useropt_orig=$ac_useropt
1076     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077     case $ac_user_opts in
1078       *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082          ac_unrecognized_sep=', ';;
1083     esac
1084     eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088   | --exec | --exe | --ex)
1089     ac_prev=exec_prefix ;;
1090   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092   | --exec=* | --exe=* | --ex=*)
1093     exec_prefix=$ac_optarg ;;
1094
1095   -gas | --gas | --ga | --g)
1096     # Obsolete; use --with-gas.
1097     with_gas=yes ;;
1098
1099   -help | --help | --hel | --he | -h)
1100     ac_init_help=long ;;
1101   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102     ac_init_help=recursive ;;
1103   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104     ac_init_help=short ;;
1105
1106   -host | --host | --hos | --ho)
1107     ac_prev=host_alias ;;
1108   -host=* | --host=* | --hos=* | --ho=*)
1109     host_alias=$ac_optarg ;;
1110
1111   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112     ac_prev=htmldir ;;
1113   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114   | --ht=*)
1115     htmldir=$ac_optarg ;;
1116
1117   -includedir | --includedir | --includedi | --included | --include \
1118   | --includ | --inclu | --incl | --inc)
1119     ac_prev=includedir ;;
1120   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121   | --includ=* | --inclu=* | --incl=* | --inc=*)
1122     includedir=$ac_optarg ;;
1123
1124   -infodir | --infodir | --infodi | --infod | --info | --inf)
1125     ac_prev=infodir ;;
1126   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127     infodir=$ac_optarg ;;
1128
1129   -libdir | --libdir | --libdi | --libd)
1130     ac_prev=libdir ;;
1131   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132     libdir=$ac_optarg ;;
1133
1134   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135   | --libexe | --libex | --libe)
1136     ac_prev=libexecdir ;;
1137   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138   | --libexe=* | --libex=* | --libe=*)
1139     libexecdir=$ac_optarg ;;
1140
1141   -localedir | --localedir | --localedi | --localed | --locale)
1142     ac_prev=localedir ;;
1143   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144     localedir=$ac_optarg ;;
1145
1146   -localstatedir | --localstatedir | --localstatedi | --localstated \
1147   | --localstate | --localstat | --localsta | --localst | --locals)
1148     ac_prev=localstatedir ;;
1149   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151     localstatedir=$ac_optarg ;;
1152
1153   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154     ac_prev=mandir ;;
1155   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156     mandir=$ac_optarg ;;
1157
1158   -nfp | --nfp | --nf)
1159     # Obsolete; use --without-fp.
1160     with_fp=no ;;
1161
1162   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163   | --no-cr | --no-c | -n)
1164     no_create=yes ;;
1165
1166   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168     no_recursion=yes ;;
1169
1170   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172   | --oldin | --oldi | --old | --ol | --o)
1173     ac_prev=oldincludedir ;;
1174   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177     oldincludedir=$ac_optarg ;;
1178
1179   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180     ac_prev=prefix ;;
1181   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182     prefix=$ac_optarg ;;
1183
1184   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185   | --program-pre | --program-pr | --program-p)
1186     ac_prev=program_prefix ;;
1187   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189     program_prefix=$ac_optarg ;;
1190
1191   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192   | --program-suf | --program-su | --program-s)
1193     ac_prev=program_suffix ;;
1194   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196     program_suffix=$ac_optarg ;;
1197
1198   -program-transform-name | --program-transform-name \
1199   | --program-transform-nam | --program-transform-na \
1200   | --program-transform-n | --program-transform- \
1201   | --program-transform | --program-transfor \
1202   | --program-transfo | --program-transf \
1203   | --program-trans | --program-tran \
1204   | --progr-tra | --program-tr | --program-t)
1205     ac_prev=program_transform_name ;;
1206   -program-transform-name=* | --program-transform-name=* \
1207   | --program-transform-nam=* | --program-transform-na=* \
1208   | --program-transform-n=* | --program-transform-=* \
1209   | --program-transform=* | --program-transfor=* \
1210   | --program-transfo=* | --program-transf=* \
1211   | --program-trans=* | --program-tran=* \
1212   | --progr-tra=* | --program-tr=* | --program-t=*)
1213     program_transform_name=$ac_optarg ;;
1214
1215   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216     ac_prev=pdfdir ;;
1217   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218     pdfdir=$ac_optarg ;;
1219
1220   -psdir | --psdir | --psdi | --psd | --ps)
1221     ac_prev=psdir ;;
1222   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223     psdir=$ac_optarg ;;
1224
1225   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226   | -silent | --silent | --silen | --sile | --sil)
1227     silent=yes ;;
1228
1229   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230     ac_prev=sbindir ;;
1231   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232   | --sbi=* | --sb=*)
1233     sbindir=$ac_optarg ;;
1234
1235   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237   | --sharedst | --shareds | --shared | --share | --shar \
1238   | --sha | --sh)
1239     ac_prev=sharedstatedir ;;
1240   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243   | --sha=* | --sh=*)
1244     sharedstatedir=$ac_optarg ;;
1245
1246   -site | --site | --sit)
1247     ac_prev=site ;;
1248   -site=* | --site=* | --sit=*)
1249     site=$ac_optarg ;;
1250
1251   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252     ac_prev=srcdir ;;
1253   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254     srcdir=$ac_optarg ;;
1255
1256   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257   | --syscon | --sysco | --sysc | --sys | --sy)
1258     ac_prev=sysconfdir ;;
1259   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261     sysconfdir=$ac_optarg ;;
1262
1263   -target | --target | --targe | --targ | --tar | --ta | --t)
1264     ac_prev=target_alias ;;
1265   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266     target_alias=$ac_optarg ;;
1267
1268   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269     verbose=yes ;;
1270
1271   -version | --version | --versio | --versi | --vers | -V)
1272     ac_init_version=: ;;
1273
1274   -with-* | --with-*)
1275     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278       as_fn_error "invalid package name: $ac_useropt"
1279     ac_useropt_orig=$ac_useropt
1280     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281     case $ac_user_opts in
1282       *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286          ac_unrecognized_sep=', ';;
1287     esac
1288     eval with_$ac_useropt=\$ac_optarg ;;
1289
1290   -without-* | --without-*)
1291     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294       as_fn_error "invalid package name: $ac_useropt"
1295     ac_useropt_orig=$ac_useropt
1296     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297     case $ac_user_opts in
1298       *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302          ac_unrecognized_sep=', ';;
1303     esac
1304     eval with_$ac_useropt=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1326     ;;
1327
1328   *=*)
1329     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330     # Reject names that are not valid shell variable names.
1331     case $ac_envvar in #(
1332       '' | [0-9]* | *[!_$as_cr_alnum]* )
1333       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334     esac
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   as_fn_error "missing argument to $ac_option"
1352 fi
1353
1354 if test -n "$ac_unrecognized_opts"; then
1355   case $enable_option_checking in
1356     no) ;;
1357     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359   esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364                 datadir sysconfdir sharedstatedir localstatedir includedir \
1365                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366                 libdir localedir mandir
1367 do
1368   eval ac_val=\$$ac_var
1369   # Remove trailing slashes.
1370   case $ac_val in
1371     */ )
1372       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373       eval $ac_var=\$ac_val;;
1374   esac
1375   # Be sure to have absolute directory names.
1376   case $ac_val in
1377     [\\/$]* | ?:[\\/]* )  continue;;
1378     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379   esac
1380   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392   if test "x$build_alias" = x; then
1393     cross_compiling=maybe
1394     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395     If a cross compiler is detected then cross compile mode will be used." >&2
1396   elif test "x$build_alias" != "x$host_alias"; then
1397     cross_compiling=yes
1398   fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410   as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412   as_fn_error "pwd does not report name of working directory"
1413
1414
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417   ac_srcdir_defaulted=yes
1418   # Try the directory containing this script, then the parent directory.
1419   ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421          X"$as_myself" : 'X\(//\)[^/]' \| \
1422          X"$as_myself" : 'X\(//\)$' \| \
1423          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\/\)[^/].*/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\/\)$/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\).*/{
1438             s//\1/
1439             q
1440           }
1441           s/.*/./; q'`
1442   srcdir=$ac_confdir
1443   if test ! -r "$srcdir/$ac_unique_file"; then
1444     srcdir=..
1445   fi
1446 else
1447   ac_srcdir_defaulted=no
1448 fi
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1452 fi
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456         pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459   srcdir=.
1460 fi
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_env_${ac_var}_value=\$${ac_var}
1470   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1473
1474 #
1475 # Report the --help message.
1476 #
1477 if test "$ac_init_help" = "long"; then
1478   # Omit some internal or obsolete options to make the list less imposing.
1479   # This message is too long to be a string in the A/UX 3.1 sh.
1480   cat <<_ACEOF
1481 \`configure' configures this package to adapt to many kinds of systems.
1482
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE.  See below for descriptions of some of the useful variables.
1487
1488 Defaults for the options are specified in brackets.
1489
1490 Configuration:
1491   -h, --help              display this help and exit
1492       --help=short        display options specific to this package
1493       --help=recursive    display the short help of all the included packages
1494   -V, --version           display version information and exit
1495   -q, --quiet, --silent   do not print \`checking...' messages
1496       --cache-file=FILE   cache test results in FILE [disabled]
1497   -C, --config-cache      alias for \`--cache-file=config.cache'
1498   -n, --no-create         do not create output files
1499       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1500
1501 Installation directories:
1502   --prefix=PREFIX         install architecture-independent files in PREFIX
1503                           [$ac_default_prefix]
1504   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1505                           [PREFIX]
1506
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1511
1512 For better control, use the options below.
1513
1514 Fine tuning of the installation directories:
1515   --bindir=DIR            user executables [EPREFIX/bin]
1516   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1517   --libexecdir=DIR        program executables [EPREFIX/libexec]
1518   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1519   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1520   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1521   --libdir=DIR            object code libraries [EPREFIX/lib]
1522   --includedir=DIR        C header files [PREFIX/include]
1523   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1524   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1525   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1526   --infodir=DIR           info documentation [DATAROOTDIR/info]
1527   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1528   --mandir=DIR            man documentation [DATAROOTDIR/man]
1529   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1530   --htmldir=DIR           html documentation [DOCDIR]
1531   --dvidir=DIR            dvi documentation [DOCDIR]
1532   --pdfdir=DIR            pdf documentation [DOCDIR]
1533   --psdir=DIR             ps documentation [DOCDIR]
1534 _ACEOF
1535
1536   cat <<\_ACEOF
1537
1538 Program names:
1539   --program-prefix=PREFIX            prepend PREFIX to installed program names
1540   --program-suffix=SUFFIX            append SUFFIX to installed program names
1541   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1542
1543 System types:
1544   --build=BUILD     configure for building on BUILD [guessed]
1545   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1546   --target=TARGET   configure for building compilers for TARGET [HOST]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551
1552   cat <<\_ACEOF
1553
1554 Optional Features:
1555   --disable-option-checking  ignore unrecognized --enable/--with options
1556   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558   --enable-generated-files-in-srcdir
1559                           put copies of generated files in source dir
1560                           intended for creating source tarballs for users
1561                           without texinfo bison or flex.
1562   --enable-werror-always  enable -Werror despite compiler version
1563   --enable-checking=LIST
1564                           enable expensive run-time checks.  With LIST,
1565                           enable only specific categories of checks.
1566                           Categories are: yes,no,all,none,release.
1567                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1568                           rtlflag,rtl,runtime,tree,valgrind,types.
1569   --enable-coverage=LEVEL
1570                           enable compiler's code coverage collection.
1571                           Use to measure compiler performance and locate
1572                           unused parts of the compiler. With LEVEL, specify
1573                           optimization. Values are opt, noopt,
1574                           default is noopt
1575   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1576   --enable-build-with-cxx build with C++ compiler instead of C compiler
1577   --enable-multilib       enable library support for multiple ABIs
1578   --enable-__cxa_atexit   enable __cxa_atexit for C++
1579   --enable-decimal-float={no,yes,bid,dpd}
1580                         enable decimal float extension to C.  Selecting 'bid'
1581                         or 'dpd' choses which decimal floating point format
1582                         to use
1583   --enable-fixed-point    enable fixed-point arithmetic extension to C
1584   --enable-threads        enable thread usage for target GCC
1585   --enable-threads=LIB    use LIB thread package for target GCC
1586   --enable-tls            enable or disable generation of tls code
1587                           overriding the assembler check for tls support
1588   --enable-objc-gc        enable the use of Boehm's garbage collector with
1589                           the GNU Objective-C runtime
1590   --disable-shared        don't provide a shared libgcc
1591   --enable-intermodule    build the compiler in one step
1592   --enable-languages=LIST specify which front-ends to build
1593   --disable-rpath         do not hardcode runtime library paths
1594   --enable-initfini-array       use .init_array/.fini_array sections
1595   --enable-sjlj-exceptions
1596                           arrange to use setjmp/longjmp exception handling
1597   --enable-secureplt      enable -msecure-plt by default for PowerPC
1598   --enable-leading-mingw64-underscores
1599                           Enable leading underscores on 64 bit mingw targets
1600   --enable-cld            enable -mcld by default for 32bit x86
1601   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit x86
1602   --disable-win32-registry
1603                           disable lookup of installation paths in the
1604                           Registry on Windows hosts
1605   --enable-win32-registry enable registry lookup (default)
1606   --enable-win32-registry=KEY
1607                           use KEY instead of GCC version as the last portion
1608                           of the registry key
1609   --enable-shared[=PKGS]  build shared libraries [default=yes]
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-fast-install[=PKGS]
1612                           optimize for fast installation [default=yes]
1613   --disable-libtool-lock  avoid locking (might break parallel builds)
1614   --enable-comdat         enable COMDAT group support
1615   --enable-gnu-unique-object    enable the use of the @gnu_unique_object ELF extension on
1616                                 glibc systems
1617   --enable-linker-build-id
1618                           compiler will always pass --build-id to linker
1619   --enable-maintainer-mode
1620                           enable make rules and dependencies not useful
1621                           (and sometimes confusing) to the casual installer
1622   --enable-version-specific-runtime-libs
1623                           specify that runtime libraries should be
1624                           installed in a compiler-specific directory
1625   --enable-plugin         enable plugin support
1626
1627 Optional Packages:
1628   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1629   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1630   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1631   --with-local-prefix=DIR specifies directory to put local include
1632   --with-gxx-include-dir=DIR
1633                           specifies directory to put g++ header files
1634   --with-cpp-install-dir=DIR
1635                           install the user visible C preprocessor in DIR
1636                           (relative to PREFIX) as well as PREFIX/bin
1637   --with-gnu-ld           arrange to work with GNU ld.
1638   --with-ld               arrange to use the specified ld (full pathname)
1639   --with-demangler-in-ld  try to use demangler in GNU ld.
1640   --with-gnu-as           arrange to work with GNU as
1641   --with-as               arrange to use the specified as (full pathname)
1642   --with-stabs            arrange to use stabs instead of host debug format
1643   --with-dwarf2           force the default debug format to be DWARF 2
1644   --with-build-sysroot=sysroot
1645                           use sysroot as the system root during the build
1646   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1647   --with-specs=SPECS      add SPECS to driver command-line processing
1648   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1649   --with-bugurl=URL       Direct users to URL to report a bug
1650   --with-multilib-list    Select multilibs (SH only)
1651   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1652   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1653   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1654   --with-system-libunwind use installed libunwind
1655   --with-pic              try to use only PIC/non-PIC objects [default=use
1656                           both]
1657   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1658   --with-plugin-ld=[ARG]  specify the plugin linker
1659   --with-long-double-128  Use 128-bit long double by default.
1660   --with-gc={page,zone}   choose the garbage collection mechanism to use
1661                           with the compiler
1662   --with-system-zlib      use installed libz
1663   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1664
1665 Some influential environment variables:
1666   CC          C compiler command
1667   CFLAGS      C compiler flags
1668   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1669               nonstandard directory <lib dir>
1670   LIBS        libraries to pass to the linker, e.g. -l<library>
1671   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1672               you have headers in a nonstandard directory <include dir>
1673   CXX         C++ compiler command
1674   CXXFLAGS    C++ compiler flags
1675   CPP         C preprocessor
1676   CXXCPP      C++ preprocessor
1677   GMPLIBS     How to link GMP
1678   GMPINC      How to find GMP include files
1679   PPLLIBS     How to link PPL
1680   PPLINC      How to find PPL include files
1681   CLOOGLIBS   How to link CLOOG
1682   CLOOGINC    How to find CLOOG include files
1683   LIBELFLIBS  How to link libelf
1684   LIBELFINC   How to find libelf include files
1685
1686 Use these variables to override the choices made by `configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1688
1689 Report bugs to the package provider.
1690 _ACEOF
1691 ac_status=$?
1692 fi
1693
1694 if test "$ac_init_help" = "recursive"; then
1695   # If there are subdirs, report their specific --help.
1696   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697     test -d "$ac_dir" ||
1698       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699       continue
1700     ac_builddir=.
1701
1702 case "$ac_dir" in
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *)
1705   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706   # A ".." for each directory in $ac_dir_suffix.
1707   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708   case $ac_top_builddir_sub in
1709   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711   esac ;;
1712 esac
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1717
1718 case $srcdir in
1719   .)  # We are building in place.
1720     ac_srcdir=.
1721     ac_top_srcdir=$ac_top_builddir_sub
1722     ac_abs_top_srcdir=$ac_pwd ;;
1723   [\\/]* | ?:[\\/]* )  # Absolute name.
1724     ac_srcdir=$srcdir$ac_dir_suffix;
1725     ac_top_srcdir=$srcdir
1726     ac_abs_top_srcdir=$srcdir ;;
1727   *) # Relative name.
1728     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729     ac_top_srcdir=$ac_top_build_prefix$srcdir
1730     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 esac
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733
1734     cd "$ac_dir" || { ac_status=$?; continue; }
1735     # Check for guested configure.
1736     if test -f "$ac_srcdir/configure.gnu"; then
1737       echo &&
1738       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739     elif test -f "$ac_srcdir/configure"; then
1740       echo &&
1741       $SHELL "$ac_srcdir/configure" --help=recursive
1742     else
1743       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744     fi || ac_status=$?
1745     cd "$ac_pwd" || { ac_status=$?; break; }
1746   done
1747 fi
1748
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1751   cat <<\_ACEOF
1752 configure
1753 generated by GNU Autoconf 2.64
1754
1755 Copyright (C) 2009 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1758 _ACEOF
1759   exit
1760 fi
1761
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1765
1766 # ac_fn_c_try_compile LINENO
1767 # --------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_compile ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   rm -f conftest.$ac_objext
1773   if { { ac_try="$ac_compile"
1774 case "(($ac_try" in
1775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776   *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780   (eval "$ac_compile") 2>conftest.err
1781   ac_status=$?
1782   if test -s conftest.err; then
1783     grep -v '^ *+' conftest.err >conftest.er1
1784     cat conftest.er1 >&5
1785     mv -f conftest.er1 conftest.err
1786   fi
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; } && {
1789          test -z "$ac_c_werror_flag" ||
1790          test ! -s conftest.err
1791        } && test -s conftest.$ac_objext; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797         ac_retval=1
1798 fi
1799   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800   return $ac_retval
1801
1802 } # ac_fn_c_try_compile
1803
1804 # ac_fn_cxx_try_compile LINENO
1805 # ----------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_compile ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   rm -f conftest.$ac_objext
1811   if { { ac_try="$ac_compile"
1812 case "(($ac_try" in
1813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814   *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818   (eval "$ac_compile") 2>conftest.err
1819   ac_status=$?
1820   if test -s conftest.err; then
1821     grep -v '^ *+' conftest.err >conftest.er1
1822     cat conftest.er1 >&5
1823     mv -f conftest.er1 conftest.err
1824   fi
1825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826   test $ac_status = 0; } && {
1827          test -z "$ac_cxx_werror_flag" ||
1828          test ! -s conftest.err
1829        } && test -s conftest.$ac_objext; then :
1830   ac_retval=0
1831 else
1832   $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835         ac_retval=1
1836 fi
1837   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838   return $ac_retval
1839
1840 } # ac_fn_cxx_try_compile
1841
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_cpp ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   if { { ac_try="$ac_cpp conftest.$ac_ext"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856   ac_status=$?
1857   if test -s conftest.err; then
1858     grep -v '^ *+' conftest.err >conftest.er1
1859     cat conftest.er1 >&5
1860     mv -f conftest.er1 conftest.err
1861   fi
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } >/dev/null && {
1864          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865          test ! -s conftest.err
1866        }; then :
1867   ac_retval=0
1868 else
1869   $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872     ac_retval=1
1873 fi
1874   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875   return $ac_retval
1876
1877 } # ac_fn_c_try_cpp
1878
1879 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882 # the include files in INCLUDES and setting the cache variable VAR
1883 # accordingly.
1884 ac_fn_c_check_header_mongrel ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891   $as_echo_n "(cached) " >&6
1892 fi
1893 eval ac_res=\$$3
1894                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 else
1897   # Is the header compilable?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899 $as_echo_n "checking $2 usability... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h.  */
1902 $4
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906   ac_header_compiler=yes
1907 else
1908   ac_header_compiler=no
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912 $as_echo "$ac_header_compiler" >&6; }
1913
1914 # Is the header present?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916 $as_echo_n "checking $2 presence... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h.  */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_cpp "$LINENO"; then :
1922   ac_header_preproc=yes
1923 else
1924   ac_header_preproc=no
1925 fi
1926 rm -f conftest.err conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928 $as_echo "$ac_header_preproc" >&6; }
1929
1930 # So?  What about this header?
1931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1932   yes:no: )
1933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937     ;;
1938   no:yes:* )
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1942 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1946 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949     ;;
1950 esac
1951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954   $as_echo_n "(cached) " >&6
1955 else
1956   eval "$3=\$ac_header_compiler"
1957 fi
1958 eval ac_res=\$$3
1959                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 fi
1962   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963
1964 } # ac_fn_c_check_header_mongrel
1965
1966 # ac_fn_c_try_run LINENO
1967 # ----------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969 # that executables *can* be run.
1970 ac_fn_c_try_run ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   if { { ac_try="$ac_link"
1974 case "(($ac_try" in
1975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976   *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980   (eval "$ac_link") 2>&5
1981   ac_status=$?
1982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984   { { case "(($ac_try" in
1985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986   *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990   (eval "$ac_try") 2>&5
1991   ac_status=$?
1992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993   test $ac_status = 0; }; }; then :
1994   ac_retval=0
1995 else
1996   $as_echo "$as_me: program exited with status $ac_status" >&5
1997        $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000        ac_retval=$ac_status
2001 fi
2002   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004   return $ac_retval
2005
2006 } # ac_fn_c_try_run
2007
2008 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists and can be compiled using the include files in
2011 # INCLUDES, setting the cache variable VAR accordingly.
2012 ac_fn_c_check_header_compile ()
2013 {
2014   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018   $as_echo_n "(cached) " >&6
2019 else
2020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h.  */
2022 $4
2023 #include <$2>
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026   eval "$3=yes"
2027 else
2028   eval "$3=no"
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 fi
2032 eval ac_res=\$$3
2033                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036
2037 } # ac_fn_c_check_header_compile
2038
2039 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2040 # --------------------------------------------
2041 # Tries to find the compile-time value of EXPR in a program that includes
2042 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2043 # computed
2044 ac_fn_c_compute_int ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   if test "$cross_compiling" = yes; then
2048     # Depending upon the size, compute the lo and hi bounds.
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h.  */
2051 $4
2052 int
2053 main ()
2054 {
2055 static int test_array [1 - 2 * !(($2) >= 0)];
2056 test_array [0] = 0
2057
2058   ;
2059   return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063   ac_lo=0 ac_mid=0
2064   while :; do
2065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h.  */
2067 $4
2068 int
2069 main ()
2070 {
2071 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072 test_array [0] = 0
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079   ac_hi=$ac_mid; break
2080 else
2081   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2082                         if test $ac_lo -le $ac_mid; then
2083                           ac_lo= ac_hi=
2084                           break
2085                         fi
2086                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089   done
2090 else
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 int
2095 main ()
2096 {
2097 static int test_array [1 - 2 * !(($2) < 0)];
2098 test_array [0] = 0
2099
2100   ;
2101   return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105   ac_hi=-1 ac_mid=-1
2106   while :; do
2107     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2114 test_array [0] = 0
2115
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121   ac_lo=$ac_mid; break
2122 else
2123   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2124                         if test $ac_mid -le $ac_hi; then
2125                           ac_lo= ac_hi=
2126                           break
2127                         fi
2128                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131   done
2132 else
2133   ac_lo= ac_hi=
2134 fi
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 # Binary search between lo and hi bounds.
2139 while test "x$ac_lo" != "x$ac_hi"; do
2140   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h.  */
2143 $4
2144 int
2145 main ()
2146 {
2147 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2148 test_array [0] = 0
2149
2150   ;
2151   return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155   ac_hi=$ac_mid
2156 else
2157   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161 case $ac_lo in #((
2162 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2163 '') ac_retval=1 ;;
2164 esac
2165   else
2166     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h.  */
2168 $4
2169 static long int longval () { return $2; }
2170 static unsigned long int ulongval () { return $2; }
2171 #include <stdio.h>
2172 #include <stdlib.h>
2173 int
2174 main ()
2175 {
2176
2177   FILE *f = fopen ("conftest.val", "w");
2178   if (! f)
2179     return 1;
2180   if (($2) < 0)
2181     {
2182       long int i = longval ();
2183       if (i != ($2))
2184         return 1;
2185       fprintf (f, "%ld", i);
2186     }
2187   else
2188     {
2189       unsigned long int i = ulongval ();
2190       if (i != ($2))
2191         return 1;
2192       fprintf (f, "%lu", i);
2193     }
2194   /* Do not output a trailing newline, as this causes \r\n confusion
2195      on some platforms.  */
2196   return ferror (f) || fclose (f) != 0;
2197
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 if ac_fn_c_try_run "$LINENO"; then :
2203   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2204 else
2205   ac_retval=1
2206 fi
2207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2208   conftest.$ac_objext conftest.beam conftest.$ac_ext
2209 rm -f conftest.val
2210
2211   fi
2212   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213   return $ac_retval
2214
2215 } # ac_fn_c_compute_int
2216
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type ()
2222 {
2223   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227   $as_echo_n "(cached) " >&6
2228 else
2229   eval "$3=no"
2230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h.  */
2232 $4
2233 int
2234 main ()
2235 {
2236 if (sizeof ($2))
2237          return 0;
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 if (sizeof (($2)))
2250             return 0;
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256
2257 else
2258   eval "$3=yes"
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 eval ac_res=\$$3
2265                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2268
2269 } # ac_fn_c_check_type
2270
2271 # ac_fn_c_find_intX_t LINENO BITS VAR
2272 # -----------------------------------
2273 # Finds a signed integer type with width BITS, setting cache variable VAR
2274 # accordingly.
2275 ac_fn_c_find_intX_t ()
2276 {
2277   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2279 $as_echo_n "checking for int$2_t... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281   $as_echo_n "(cached) " >&6
2282 else
2283   eval "$3=no"
2284      for ac_type in int$2_t 'int' 'long int' \
2285          'long long int' 'short int' 'signed char'; do
2286        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h.  */
2288 $ac_includes_default
2289 int
2290 main ()
2291 {
2292 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2293 test_array [0] = 0
2294
2295   ;
2296   return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 $ac_includes_default
2303 int
2304 main ()
2305 {
2306 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2307                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2308 test_array [0] = 0
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315
2316 else
2317   case $ac_type in #(
2318   int$2_t) :
2319     eval "$3=yes" ;; #(
2320   *) :
2321     eval "$3=\$ac_type" ;;
2322 esac
2323 fi
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327        eval as_val=\$$3
2328    if test "x$as_val" = x""no; then :
2329
2330 else
2331   break
2332 fi
2333      done
2334 fi
2335 eval ac_res=\$$3
2336                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2339
2340 } # ac_fn_c_find_intX_t
2341
2342 # ac_fn_c_try_link LINENO
2343 # -----------------------
2344 # Try to link conftest.$ac_ext, and return whether this succeeded.
2345 ac_fn_c_try_link ()
2346 {
2347   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348   rm -f conftest.$ac_objext conftest$ac_exeext
2349   if { { ac_try="$ac_link"
2350 case "(($ac_try" in
2351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352   *) ac_try_echo=$ac_try;;
2353 esac
2354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2355 $as_echo "$ac_try_echo"; } >&5
2356   (eval "$ac_link") 2>conftest.err
2357   ac_status=$?
2358   if test -s conftest.err; then
2359     grep -v '^ *+' conftest.err >conftest.er1
2360     cat conftest.er1 >&5
2361     mv -f conftest.er1 conftest.err
2362   fi
2363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2364   test $ac_status = 0; } && {
2365          test -z "$ac_c_werror_flag" ||
2366          test ! -s conftest.err
2367        } && test -s conftest$ac_exeext && {
2368          test "$cross_compiling" = yes ||
2369          $as_test_x conftest$ac_exeext
2370        }; then :
2371   ac_retval=0
2372 else
2373   $as_echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376         ac_retval=1
2377 fi
2378   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2379   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2380   # interfere with the next link command; also delete a directory that is
2381   # left behind by Apple's compiler.  We do this before executing the actions.
2382   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2383   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384   return $ac_retval
2385
2386 } # ac_fn_c_try_link
2387
2388 # ac_fn_c_find_uintX_t LINENO BITS VAR
2389 # ------------------------------------
2390 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2391 # accordingly.
2392 ac_fn_c_find_uintX_t ()
2393 {
2394   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2396 $as_echo_n "checking for uint$2_t... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398   $as_echo_n "(cached) " >&6
2399 else
2400   eval "$3=no"
2401      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2402          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2403        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h.  */
2405 $ac_includes_default
2406 int
2407 main ()
2408 {
2409 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2410 test_array [0] = 0
2411
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417   case $ac_type in #(
2418   uint$2_t) :
2419     eval "$3=yes" ;; #(
2420   *) :
2421     eval "$3=\$ac_type" ;;
2422 esac
2423 fi
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425        eval as_val=\$$3
2426    if test "x$as_val" = x""no; then :
2427
2428 else
2429   break
2430 fi
2431      done
2432 fi
2433 eval ac_res=\$$3
2434                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2437
2438 } # ac_fn_c_find_uintX_t
2439
2440 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2441 # ----------------------------------------------
2442 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2443 ac_fn_c_check_header_preproc ()
2444 {
2445   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449   $as_echo_n "(cached) " >&6
2450 else
2451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h.  */
2453 #include <$2>
2454 _ACEOF
2455 if ac_fn_c_try_cpp "$LINENO"; then :
2456   eval "$3=yes"
2457 else
2458   eval "$3=no"
2459 fi
2460 rm -f conftest.err conftest.$ac_ext
2461 fi
2462 eval ac_res=\$$3
2463                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2466
2467 } # ac_fn_c_check_header_preproc
2468
2469 # ac_fn_c_check_func LINENO FUNC VAR
2470 # ----------------------------------
2471 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2472 ac_fn_c_check_func ()
2473 {
2474   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478   $as_echo_n "(cached) " >&6
2479 else
2480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h.  */
2482 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2484 #define $2 innocuous_$2
2485
2486 /* System header to define __stub macros and hopefully few prototypes,
2487     which can conflict with char $2 (); below.
2488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2489     <limits.h> exists even on freestanding compilers.  */
2490
2491 #ifdef __STDC__
2492 # include <limits.h>
2493 #else
2494 # include <assert.h>
2495 #endif
2496
2497 #undef $2
2498
2499 /* Override any GCC internal prototype to avoid an error.
2500    Use char because int might match the return type of a GCC
2501    builtin and then its argument prototype would still apply.  */
2502 #ifdef __cplusplus
2503 extern "C"
2504 #endif
2505 char $2 ();
2506 /* The GNU C library defines this for functions which it implements
2507     to always fail with ENOSYS.  Some functions are actually named
2508     something starting with __ and the normal name is an alias.  */
2509 #if defined __stub_$2 || defined __stub___$2
2510 choke me
2511 #endif
2512
2513 int
2514 main ()
2515 {
2516 return $2 ();
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 if ac_fn_c_try_link "$LINENO"; then :
2522   eval "$3=yes"
2523 else
2524   eval "$3=no"
2525 fi
2526 rm -f core conftest.err conftest.$ac_objext \
2527     conftest$ac_exeext conftest.$ac_ext
2528 fi
2529 eval ac_res=\$$3
2530                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2533
2534 } # ac_fn_c_check_func
2535
2536 # ac_fn_cxx_try_cpp LINENO
2537 # ------------------------
2538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2539 ac_fn_cxx_try_cpp ()
2540 {
2541   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542   if { { ac_try="$ac_cpp conftest.$ac_ext"
2543 case "(($ac_try" in
2544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545   *) ac_try_echo=$ac_try;;
2546 esac
2547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2550   ac_status=$?
2551   if test -s conftest.err; then
2552     grep -v '^ *+' conftest.err >conftest.er1
2553     cat conftest.er1 >&5
2554     mv -f conftest.er1 conftest.err
2555   fi
2556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557   test $ac_status = 0; } >/dev/null && {
2558          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2559          test ! -s conftest.err
2560        }; then :
2561   ac_retval=0
2562 else
2563   $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566     ac_retval=1
2567 fi
2568   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569   return $ac_retval
2570
2571 } # ac_fn_cxx_try_cpp
2572
2573 # ac_fn_cxx_try_link LINENO
2574 # -------------------------
2575 # Try to link conftest.$ac_ext, and return whether this succeeded.
2576 ac_fn_cxx_try_link ()
2577 {
2578   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579   rm -f conftest.$ac_objext conftest$ac_exeext
2580   if { { ac_try="$ac_link"
2581 case "(($ac_try" in
2582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583   *) ac_try_echo=$ac_try;;
2584 esac
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587   (eval "$ac_link") 2>conftest.err
2588   ac_status=$?
2589   if test -s conftest.err; then
2590     grep -v '^ *+' conftest.err >conftest.er1
2591     cat conftest.er1 >&5
2592     mv -f conftest.er1 conftest.err
2593   fi
2594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595   test $ac_status = 0; } && {
2596          test -z "$ac_cxx_werror_flag" ||
2597          test ! -s conftest.err
2598        } && test -s conftest$ac_exeext && {
2599          test "$cross_compiling" = yes ||
2600          $as_test_x conftest$ac_exeext
2601        }; then :
2602   ac_retval=0
2603 else
2604   $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607         ac_retval=1
2608 fi
2609   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611   # interfere with the next link command; also delete a directory that is
2612   # left behind by Apple's compiler.  We do this before executing the actions.
2613   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615   return $ac_retval
2616
2617 } # ac_fn_cxx_try_link
2618 cat >config.log <<_ACEOF
2619 This file contains any messages produced by compilers while
2620 running configure, to aid debugging if configure makes a mistake.
2621
2622 It was created by $as_me, which was
2623 generated by GNU Autoconf 2.64.  Invocation command line was
2624
2625   $ $0 $@
2626
2627 _ACEOF
2628 exec 5>>config.log
2629 {
2630 cat <<_ASUNAME
2631 ## --------- ##
2632 ## Platform. ##
2633 ## --------- ##
2634
2635 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2636 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2637 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2638 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2639 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2640
2641 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2642 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2643
2644 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2645 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2646 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2647 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2648 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2649 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2650 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2651
2652 _ASUNAME
2653
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659     $as_echo "PATH: $as_dir"
2660   done
2661 IFS=$as_save_IFS
2662
2663 } >&5
2664
2665 cat >&5 <<_ACEOF
2666
2667
2668 ## ----------- ##
2669 ## Core tests. ##
2670 ## ----------- ##
2671
2672 _ACEOF
2673
2674
2675 # Keep a trace of the command line.
2676 # Strip out --no-create and --no-recursion so they do not pile up.
2677 # Strip out --silent because we don't want to record it for future runs.
2678 # Also quote any args containing shell meta-characters.
2679 # Make two passes to allow for proper duplicate-argument suppression.
2680 ac_configure_args=
2681 ac_configure_args0=
2682 ac_configure_args1=
2683 ac_must_keep_next=false
2684 for ac_pass in 1 2
2685 do
2686   for ac_arg
2687   do
2688     case $ac_arg in
2689     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2690     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2691     | -silent | --silent | --silen | --sile | --sil)
2692       continue ;;
2693     *\'*)
2694       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2695     esac
2696     case $ac_pass in
2697     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2698     2)
2699       as_fn_append ac_configure_args1 " '$ac_arg'"
2700       if test $ac_must_keep_next = true; then
2701         ac_must_keep_next=false # Got value, back to normal.
2702       else
2703         case $ac_arg in
2704           *=* | --config-cache | -C | -disable-* | --disable-* \
2705           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2706           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2707           | -with-* | --with-* | -without-* | --without-* | --x)
2708             case "$ac_configure_args0 " in
2709               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2710             esac
2711             ;;
2712           -* ) ac_must_keep_next=true ;;
2713         esac
2714       fi
2715       as_fn_append ac_configure_args " '$ac_arg'"
2716       ;;
2717     esac
2718   done
2719 done
2720 { ac_configure_args0=; unset ac_configure_args0;}
2721 { ac_configure_args1=; unset ac_configure_args1;}
2722
2723 # When interrupted or exit'd, cleanup temporary files, and complete
2724 # config.log.  We remove comments because anyway the quotes in there
2725 # would cause problems or look ugly.
2726 # WARNING: Use '\'' to represent an apostrophe within the trap.
2727 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2728 trap 'exit_status=$?
2729   # Save into config.log some information that might help in debugging.
2730   {
2731     echo
2732
2733     cat <<\_ASBOX
2734 ## ---------------- ##
2735 ## Cache variables. ##
2736 ## ---------------- ##
2737 _ASBOX
2738     echo
2739     # The following way of writing the cache mishandles newlines in values,
2740 (
2741   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2742     eval ac_val=\$$ac_var
2743     case $ac_val in #(
2744     *${as_nl}*)
2745       case $ac_var in #(
2746       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2747 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2748       esac
2749       case $ac_var in #(
2750       _ | IFS | as_nl) ;; #(
2751       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2752       *) { eval $ac_var=; unset $ac_var;} ;;
2753       esac ;;
2754     esac
2755   done
2756   (set) 2>&1 |
2757     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2758     *${as_nl}ac_space=\ *)
2759       sed -n \
2760         "s/'\''/'\''\\\\'\'''\''/g;
2761           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2762       ;; #(
2763     *)
2764       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2765       ;;
2766     esac |
2767     sort
2768 )
2769     echo
2770
2771     cat <<\_ASBOX
2772 ## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##
2775 _ASBOX
2776     echo
2777     for ac_var in $ac_subst_vars
2778     do
2779       eval ac_val=\$$ac_var
2780       case $ac_val in
2781       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2782       esac
2783       $as_echo "$ac_var='\''$ac_val'\''"
2784     done | sort
2785     echo
2786
2787     if test -n "$ac_subst_files"; then
2788       cat <<\_ASBOX
2789 ## ------------------- ##
2790 ## File substitutions. ##
2791 ## ------------------- ##
2792 _ASBOX
2793       echo
2794       for ac_var in $ac_subst_files
2795       do
2796         eval ac_val=\$$ac_var
2797         case $ac_val in
2798         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2799         esac
2800         $as_echo "$ac_var='\''$ac_val'\''"
2801       done | sort
2802       echo
2803     fi
2804
2805     if test -s confdefs.h; then
2806       cat <<\_ASBOX
2807 ## ----------- ##
2808 ## confdefs.h. ##
2809 ## ----------- ##
2810 _ASBOX
2811       echo
2812       cat confdefs.h
2813       echo
2814     fi
2815     test "$ac_signal" != 0 &&
2816       $as_echo "$as_me: caught signal $ac_signal"
2817     $as_echo "$as_me: exit $exit_status"
2818   } >&5
2819   rm -f core *.core core.conftest.* &&
2820     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2821     exit $exit_status
2822 ' 0
2823 for ac_signal in 1 2 13 15; do
2824   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2825 done
2826 ac_signal=0
2827
2828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2829 rm -f -r conftest* confdefs.h
2830
2831 $as_echo "/* confdefs.h */" > confdefs.h
2832
2833 # Predefined preprocessor variables.
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_NAME "$PACKAGE_NAME"
2837 _ACEOF
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2841 _ACEOF
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2845 _ACEOF
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_STRING "$PACKAGE_STRING"
2849 _ACEOF
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2853 _ACEOF
2854
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_URL "$PACKAGE_URL"
2857 _ACEOF
2858
2859
2860 # Let the site file select an alternate cache file if it wants to.
2861 # Prefer an explicitly selected file to automatically selected ones.
2862 ac_site_file1=NONE
2863 ac_site_file2=NONE
2864 if test -n "$CONFIG_SITE"; then
2865   ac_site_file1=$CONFIG_SITE
2866 elif test "x$prefix" != xNONE; then
2867   ac_site_file1=$prefix/share/config.site
2868   ac_site_file2=$prefix/etc/config.site
2869 else
2870   ac_site_file1=$ac_default_prefix/share/config.site
2871   ac_site_file2=$ac_default_prefix/etc/config.site
2872 fi
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2874 do
2875   test "x$ac_site_file" = xNONE && continue
2876   if test -r "$ac_site_file"; then
2877     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879     sed 's/^/| /' "$ac_site_file" >&5
2880     . "$ac_site_file"
2881   fi
2882 done
2883
2884 if test -r "$cache_file"; then
2885   # Some versions of bash will fail to source /dev/null (special
2886   # files actually), so we avoid doing that.
2887   if test -f "$cache_file"; then
2888     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2889 $as_echo "$as_me: loading cache $cache_file" >&6;}
2890     case $cache_file in
2891       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2892       *)                      . "./$cache_file";;
2893     esac
2894   fi
2895 else
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2897 $as_echo "$as_me: creating cache $cache_file" >&6;}
2898   >$cache_file
2899 fi
2900
2901 # Check that the precious variables saved in the cache have kept the same
2902 # value.
2903 ac_cache_corrupted=false
2904 for ac_var in $ac_precious_vars; do
2905   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2906   eval ac_new_set=\$ac_env_${ac_var}_set
2907   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2908   eval ac_new_val=\$ac_env_${ac_var}_value
2909   case $ac_old_set,$ac_new_set in
2910     set,)
2911       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2913       ac_cache_corrupted=: ;;
2914     ,set)
2915       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2917       ac_cache_corrupted=: ;;
2918     ,);;
2919     *)
2920       if test "x$ac_old_val" != "x$ac_new_val"; then
2921         # differences in whitespace do not lead to failure.
2922         ac_old_val_w=`echo x $ac_old_val`
2923         ac_new_val_w=`echo x $ac_new_val`
2924         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2926 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2927           ac_cache_corrupted=:
2928         else
2929           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2930 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2931           eval $ac_var=\$ac_old_val
2932         fi
2933         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2934 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2935         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2936 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2937       fi;;
2938   esac
2939   # Pass precious variables to config.status.
2940   if test "$ac_new_set" = set; then
2941     case $ac_new_val in
2942     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2943     *) ac_arg=$ac_var=$ac_new_val ;;
2944     esac
2945     case " $ac_configure_args " in
2946       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2947       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2948     esac
2949   fi
2950 done
2951 if $ac_cache_corrupted; then
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2956   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2957 fi
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2961
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967
2968
2969
2970
2971
2972
2973 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2974
2975
2976 gcc_version=`cat $srcdir/BASE-VER`
2977
2978 # Determine the host, build, and target systems
2979 ac_aux_dir=
2980 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2981   for ac_t in install-sh install.sh shtool; do
2982     if test -f "$ac_dir/$ac_t"; then
2983       ac_aux_dir=$ac_dir
2984       ac_install_sh="$ac_aux_dir/$ac_t -c"
2985       break 2
2986     fi
2987   done
2988 done
2989 if test -z "$ac_aux_dir"; then
2990   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2991 fi
2992
2993 # These three variables are undocumented and unsupported,
2994 # and are intended to be withdrawn in a future Autoconf release.
2995 # They can cause serious problems if a builder's source tree is in a directory
2996 # whose full name contains unusual characters.
2997 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2998 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2999 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3000
3001
3002 # Make sure we can run config.sub.
3003 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3004   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3007 $as_echo_n "checking build system type... " >&6; }
3008 if test "${ac_cv_build+set}" = set; then :
3009   $as_echo_n "(cached) " >&6
3010 else
3011   ac_build_alias=$build_alias
3012 test "x$ac_build_alias" = x &&
3013   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3014 test "x$ac_build_alias" = x &&
3015   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3017   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3018
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3021 $as_echo "$ac_cv_build" >&6; }
3022 case $ac_cv_build in
3023 *-*-*) ;;
3024 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3025 esac
3026 build=$ac_cv_build
3027 ac_save_IFS=$IFS; IFS='-'
3028 set x $ac_cv_build
3029 shift
3030 build_cpu=$1
3031 build_vendor=$2
3032 shift; shift
3033 # Remember, the first character of IFS is used to create $*,
3034 # except with old shells:
3035 build_os=$*
3036 IFS=$ac_save_IFS
3037 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3038
3039
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3041 $as_echo_n "checking host system type... " >&6; }
3042 if test "${ac_cv_host+set}" = set; then :
3043   $as_echo_n "(cached) " >&6
3044 else
3045   if test "x$host_alias" = x; then
3046   ac_cv_host=$ac_cv_build
3047 else
3048   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3049     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3050 fi
3051
3052 fi
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3054 $as_echo "$ac_cv_host" >&6; }
3055 case $ac_cv_host in
3056 *-*-*) ;;
3057 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3058 esac
3059 host=$ac_cv_host
3060 ac_save_IFS=$IFS; IFS='-'
3061 set x $ac_cv_host
3062 shift
3063 host_cpu=$1
3064 host_vendor=$2
3065 shift; shift
3066 # Remember, the first character of IFS is used to create $*,
3067 # except with old shells:
3068 host_os=$*
3069 IFS=$ac_save_IFS
3070 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3071
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3074 $as_echo_n "checking target system type... " >&6; }
3075 if test "${ac_cv_target+set}" = set; then :
3076   $as_echo_n "(cached) " >&6
3077 else
3078   if test "x$target_alias" = x; then
3079   ac_cv_target=$ac_cv_host
3080 else
3081   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3082     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3083 fi
3084
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3087 $as_echo "$ac_cv_target" >&6; }
3088 case $ac_cv_target in
3089 *-*-*) ;;
3090 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3091 esac
3092 target=$ac_cv_target
3093 ac_save_IFS=$IFS; IFS='-'
3094 set x $ac_cv_target
3095 shift
3096 target_cpu=$1
3097 target_vendor=$2
3098 shift; shift
3099 # Remember, the first character of IFS is used to create $*,
3100 # except with old shells:
3101 target_os=$*
3102 IFS=$ac_save_IFS
3103 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3104
3105
3106 # The aliases save the names the user supplied, while $host etc.
3107 # will get canonicalized.
3108 test -n "$target_alias" &&
3109   test "$program_prefix$program_suffix$program_transform_name" = \
3110     NONENONEs,x,x, &&
3111   program_prefix=${target_alias}-
3112
3113 # Determine the noncanonical target name, for directory use.
3114  case ${build_alias} in
3115   "") build_noncanonical=${build} ;;
3116   *) build_noncanonical=${build_alias} ;;
3117 esac
3118
3119  case ${host_alias} in
3120   "") host_noncanonical=${build_noncanonical} ;;
3121   *) host_noncanonical=${host_alias} ;;
3122 esac
3123
3124  case ${target_alias} in
3125   "") target_noncanonical=${host_noncanonical} ;;
3126   *) target_noncanonical=${target_alias} ;;
3127 esac
3128
3129
3130
3131
3132 # Determine the target- and build-specific subdirectories
3133
3134 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3135 # have matching libraries, they should use host libraries: Makefile.tpl
3136 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3137 # However, they still use the build modules, because the corresponding
3138 # host modules (e.g. bison) are only built for the host when bootstrap
3139 # finishes. So:
3140 # - build_subdir is where we find build modules, and never changes.
3141 # - build_libsubdir is where we find build libraries, and can be overridden.
3142
3143 # Prefix 'build-' so this never conflicts with target_subdir.
3144 build_subdir="build-${build_noncanonical}"
3145
3146 # Check whether --with-build-libsubdir was given.
3147 if test "${with_build_libsubdir+set}" = set; then :
3148   withval=$with_build_libsubdir; build_libsubdir="$withval"
3149 else
3150   build_libsubdir="$build_subdir"
3151 fi
3152
3153 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3154 if ( test $srcdir = . && test -d gcc ) \
3155    || test -d $srcdir/../host-${host_noncanonical}; then
3156   host_subdir="host-${host_noncanonical}"
3157 else
3158   host_subdir=.
3159 fi
3160 # No prefix.
3161 target_subdir=${target_noncanonical}
3162
3163
3164 # Set program_transform_name
3165 test "$program_prefix" != NONE &&
3166   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3167 # Use a double $ so make ignores it.
3168 test "$program_suffix" != NONE &&
3169   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3170 # Double any \ or $.
3171 # By default was `s,x,x', remove it if useless.
3172 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3173 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3174
3175
3176 # Check for bogus environment variables.
3177 # Test if LIBRARY_PATH contains the notation for the current directory
3178 # since this would lead to problems installing/building glibc.
3179 # LIBRARY_PATH contains the current directory if one of the following
3180 # is true:
3181 # - one of the terminals (":" and ";") is the first or last sign
3182 # - two terminals occur directly after each other
3183 # - the path contains an element with a dot in it
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3185 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3186 case ${LIBRARY_PATH} in
3187   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3188     library_path_setting="contains current directory"
3189     ;;
3190   *)
3191     library_path_setting="ok"
3192     ;;
3193 esac
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3195 $as_echo "$library_path_setting" >&6; }
3196 if test "$library_path_setting" != "ok"; then
3197 as_fn_error "
3198 *** LIBRARY_PATH shouldn't contain the current directory when
3199 *** building gcc. Please change the environment variable
3200 *** and run configure again." "$LINENO" 5
3201 fi
3202
3203 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3204 # since this would lead to problems installing/building glibc.
3205 # GCC_EXEC_PREFIX contains the current directory if one of the following
3206 # is true:
3207 # - one of the terminals (":" and ";") is the first or last sign
3208 # - two terminals occur directly after each other
3209 # - the path contains an element with a dot in it
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3211 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3212 case ${GCC_EXEC_PREFIX} in
3213   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3214     gcc_exec_prefix_setting="contains current directory"
3215     ;;
3216   *)
3217     gcc_exec_prefix_setting="ok"
3218     ;;
3219 esac
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3221 $as_echo "$gcc_exec_prefix_setting" >&6; }
3222 if test "$gcc_exec_prefix_setting" != "ok"; then
3223 as_fn_error "
3224 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3225 *** building gcc. Please change the environment variable
3226 *** and run configure again." "$LINENO" 5
3227 fi
3228
3229 # -----------
3230 # Directories
3231 # -----------
3232
3233 # Specify the local prefix
3234 local_prefix=
3235
3236 # Check whether --with-local-prefix was given.
3237 if test "${with_local_prefix+set}" = set; then :
3238   withval=$with_local_prefix; case "${withval}" in
3239 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3240 no)     ;;
3241 *)      local_prefix=$with_local_prefix ;;
3242 esac
3243 fi
3244
3245
3246 # Default local prefix if it is empty
3247 if test x$local_prefix = x; then
3248         local_prefix=/usr/local
3249 fi
3250
3251 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3252 # passed in by the toplevel make and thus we'd get different behavior
3253 # depending on where we built the sources.
3254 gcc_gxx_include_dir=
3255 # Specify the g++ header file directory
3256
3257 # Check whether --with-gxx-include-dir was given.
3258 if test "${with_gxx_include_dir+set}" = set; then :
3259   withval=$with_gxx_include_dir; case "${withval}" in
3260 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3261 no)     ;;
3262 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3263 esac
3264 fi
3265
3266
3267 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3268 if test x${gcc_gxx_include_dir} = x; then
3269   if test x${enable_version_specific_runtime_libs} = xyes; then
3270     gcc_gxx_include_dir='${libsubdir}/include/c++'
3271   else
3272     libstdcxx_incdir='include/c++/$(version)'
3273     if test x$host != x$target; then
3274        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3275     fi
3276     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3277   fi
3278 fi
3279
3280
3281 # Check whether --with-cpp_install_dir was given.
3282 if test "${with_cpp_install_dir+set}" = set; then :
3283   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3284   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3285 elif test x$withval != xno; then
3286   cpp_install_dir=$withval
3287 fi
3288 fi
3289
3290
3291 # We would like to our source tree to be readonly.  However when releases or
3292 # pre-releases are generated, the flex/bison generated files as well as the
3293 # various formats of manuals need to be included along with the rest of the
3294 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3295 # just that.
3296
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3298 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3299     # Check whether --enable-generated-files-in-srcdir was given.
3300 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3301   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3302 else
3303   generated_files_in_srcdir=no
3304 fi
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3308 $as_echo "$generated_files_in_srcdir" >&6; }
3309
3310 if test "$generated_files_in_srcdir" = "yes"; then
3311   GENINSRC=''
3312 else
3313   GENINSRC='#'
3314 fi
3315
3316
3317 # -------------------
3318 # Find default linker
3319 # -------------------
3320
3321 # With GNU ld
3322
3323 # Check whether --with-gnu-ld was given.
3324 if test "${with_gnu_ld+set}" = set; then :
3325   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3326 else
3327   gnu_ld_flag=no
3328 fi
3329
3330
3331 # With pre-defined ld
3332
3333 # Check whether --with-ld was given.
3334 if test "${with_ld+set}" = set; then :
3335   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3336 fi
3337
3338 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3339   if test ! -x "$DEFAULT_LINKER"; then
3340     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3341   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3342     gnu_ld_flag=yes
3343   fi
3344
3345 cat >>confdefs.h <<_ACEOF
3346 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3347 _ACEOF
3348
3349 fi
3350
3351 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3352
3353 cat >>confdefs.h <<_ACEOF
3354 #define HAVE_GNU_LD $gnu_ld
3355 _ACEOF
3356
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3359 $as_echo_n "checking whether a default linker was specified... " >&6; }
3360 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3361   if test x"$gnu_ld_flag" = x"no"; then
3362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3363 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3364   else
3365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3366 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3367   fi
3368 else
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 fi
3372
3373 # With demangler in GNU ld
3374
3375 # Check whether --with-demangler-in-ld was given.
3376 if test "${with_demangler_in_ld+set}" = set; then :
3377   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3378 else
3379   demangler_in_ld=no
3380 fi
3381
3382
3383 # ----------------------
3384 # Find default assembler
3385 # ----------------------
3386
3387 # With GNU as
3388
3389 # Check whether --with-gnu-as was given.
3390 if test "${with_gnu_as+set}" = set; then :
3391   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3392 else
3393   gas_flag=no
3394 fi
3395
3396
3397
3398 # Check whether --with-as was given.
3399 if test "${with_as+set}" = set; then :
3400   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3401 fi
3402
3403 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3404   if test ! -x "$DEFAULT_ASSEMBLER"; then
3405     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3406   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3407     gas_flag=yes
3408   fi
3409
3410 cat >>confdefs.h <<_ACEOF
3411 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3412 _ACEOF
3413
3414 fi
3415
3416 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3417
3418 cat >>confdefs.h <<_ACEOF
3419 #define HAVE_GNU_AS $gnu_as
3420 _ACEOF
3421
3422
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3424 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3425 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3426   if test x"$gas_flag" = x"no"; then
3427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3428 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3429   else
3430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3431 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3432   fi
3433 else
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438 # ---------------
3439 # Find C compiler
3440 # ---------------
3441
3442 # If a non-executable a.out is present (e.g. created by GNU as above even if
3443 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3444 # file, even when creating an executable, so an execution test fails.
3445 # Remove possible default executable files to avoid this.
3446 #
3447 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3448 # Autoconf includes it.
3449 rm -f a.out a.exe b.out
3450
3451 # Find the native compiler
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 if test -n "$ac_tool_prefix"; then
3458   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if test -n "$CC"; then
3466   ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473     for ac_exec_ext in '' $ac_executable_extensions; do
3474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480   done
3481 IFS=$as_save_IFS
3482
3483 fi
3484 fi
3485 CC=$ac_cv_prog_CC
3486 if test -n "$CC"; then
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3489 else
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492 fi
3493
3494
3495 fi
3496 if test -z "$ac_cv_prog_CC"; then
3497   ac_ct_CC=$CC
3498   # Extract the first word of "gcc", so it can be a program name with args.
3499 set dummy gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3503   $as_echo_n "(cached) " >&6
3504 else
3505   if test -n "$ac_ct_CC"; then
3506   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513     for ac_exec_ext in '' $ac_executable_extensions; do
3514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515     ac_cv_prog_ac_ct_CC="gcc"
3516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517     break 2
3518   fi
3519 done
3520   done
3521 IFS=$as_save_IFS
3522
3523 fi
3524 fi
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3529 else
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 fi
3533
3534   if test "x$ac_ct_CC" = x; then
3535     CC=""
3536   else
3537     case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543     CC=$ac_ct_CC
3544   fi
3545 else
3546   CC="$ac_cv_prog_CC"
3547 fi
3548
3549 if test -z "$CC"; then
3550           if test -n "$ac_tool_prefix"; then
3551     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}cc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556   $as_echo_n "(cached) " >&6
3557 else
3558   if test -n "$CC"; then
3559   ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566     for ac_exec_ext in '' $ac_executable_extensions; do
3567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568     ac_cv_prog_CC="${ac_tool_prefix}cc"
3569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573   done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587
3588   fi
3589 fi
3590 if test -z "$CC"; then
3591   # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596   $as_echo_n "(cached) " >&6
3597 else
3598   if test -n "$CC"; then
3599   ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601   ac_prog_rejected=no
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607     for ac_exec_ext in '' $ac_executable_extensions; do
3608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610        ac_prog_rejected=yes
3611        continue
3612      fi
3613     ac_cv_prog_CC="cc"
3614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615     break 2
3616   fi
3617 done
3618   done
3619 IFS=$as_save_IFS
3620
3621 if test $ac_prog_rejected = yes; then
3622   # We found a bogon in the path, so make sure we never use it.
3623   set dummy $ac_cv_prog_CC
3624   shift
3625   if test $# != 0; then
3626     # We chose a different compiler from the bogus one.
3627     # However, it has the same basename, so the bogon will be chosen
3628     # first if we set CC to just the basename; use the full file name.
3629     shift
3630     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3631   fi
3632 fi
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 fi
3643
3644
3645 fi
3646 if test -z "$CC"; then
3647   if test -n "$ac_tool_prefix"; then
3648   for ac_prog in cl.exe
3649   do
3650     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_CC+set}" = set; then :
3655   $as_echo_n "(cached) " >&6
3656 else
3657   if test -n "$CC"; then
3658   ac_cv_prog_CC="$CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663   IFS=$as_save_IFS
3664   test -z "$as_dir" && as_dir=.
3665     for ac_exec_ext in '' $ac_executable_extensions; do
3666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669     break 2
3670   fi
3671 done
3672   done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3681 else
3682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3684 fi
3685
3686
3687     test -n "$CC" && break
3688   done
3689 fi
3690 if test -z "$CC"; then
3691   ac_ct_CC=$CC
3692   for ac_prog in cl.exe
3693 do
3694   # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   if test -n "$ac_ct_CC"; then
3702   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707   IFS=$as_save_IFS
3708   test -z "$as_dir" && as_dir=.
3709     for ac_exec_ext in '' $ac_executable_extensions; do
3710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711     ac_cv_prog_ac_ct_CC="$ac_prog"
3712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713     break 2
3714   fi
3715 done
3716   done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3725 else
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731   test -n "$ac_ct_CC" && break
3732 done
3733
3734   if test "x$ac_ct_CC" = x; then
3735     CC=""
3736   else
3737     case $cross_compiling:$ac_tool_warned in
3738 yes:)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3742 esac
3743     CC=$ac_ct_CC
3744   fi
3745 fi
3746
3747 fi
3748
3749
3750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error "no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." "$LINENO" 5; }
3754
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3757 set X $ac_compile
3758 ac_compiler=$2
3759 for ac_option in --version -v -V -qversion; do
3760   { { ac_try="$ac_compiler $ac_option >&5"
3761 case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3768   ac_status=$?
3769   if test -s conftest.err; then
3770     sed '10a\
3771 ... rest of stderr output deleted ...
3772          10q' conftest.err >conftest.er1
3773     cat conftest.er1 >&5
3774     rm -f conftest.er1 conftest.err
3775   fi
3776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777   test $ac_status = 0; }
3778 done
3779
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h.  */
3782
3783 int
3784 main ()
3785 {
3786
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3795 # of exeext.
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3797 $as_echo_n "checking for C compiler default output file name... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3799
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3802
3803 ac_rmfiles=
3804 for ac_file in $ac_files
3805 do
3806   case $ac_file in
3807     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3809   esac
3810 done
3811 rm -f $ac_rmfiles
3812
3813 if { { ac_try="$ac_link_default"
3814 case "(($ac_try" in
3815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816   *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820   (eval "$ac_link_default") 2>&5
3821   ac_status=$?
3822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823   test $ac_status = 0; }; then :
3824   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3828 # Autoconf.
3829 for ac_file in $ac_files ''
3830 do
3831   test -f "$ac_file" || continue
3832   case $ac_file in
3833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3834         ;;
3835     [ab].out )
3836         # We found the default executable, but exeext='' is most
3837         # certainly right.
3838         break;;
3839     *.* )
3840         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3841         then :; else
3842            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843         fi
3844         # We set ac_cv_exeext here because the later test for it is not
3845         # safe: cross compilers may not add the suffix if given an `-o'
3846         # argument, so we may need to know it at that point already.
3847         # Even if this section looks crufty: it has the advantage of
3848         # actually working.
3849         break;;
3850     * )
3851         break;;
3852   esac
3853 done
3854 test "$ac_cv_exeext" = no && ac_cv_exeext=
3855
3856 else
3857   ac_file=''
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3860 $as_echo "$ac_file" >&6; }
3861 if test -z "$ac_file"; then :
3862   $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status 77
3868 as_fn_error "C compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3870 fi
3871 ac_exeext=$ac_cv_exeext
3872
3873 # Check that the compiler produces executables we can run.  If not, either
3874 # the compiler is broken, or we cross compile.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3876 $as_echo_n "checking whether the C compiler works... " >&6; }
3877 # If not cross compiling, check that we can run a simple program.
3878 if test "$cross_compiling" != yes; then
3879   if { ac_try='./$ac_file'
3880   { { case "(($ac_try" in
3881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882   *) ac_try_echo=$ac_try;;
3883 esac
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886   (eval "$ac_try") 2>&5
3887   ac_status=$?
3888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889   test $ac_status = 0; }; }; then
3890     cross_compiling=no
3891   else
3892     if test "$cross_compiling" = maybe; then
3893         cross_compiling=yes
3894     else
3895         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error "cannot run C compiled programs.
3898 If you meant to cross compile, use \`--host'.
3899 See \`config.log' for more details." "$LINENO" 5; }
3900     fi
3901   fi
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3905
3906 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3907 ac_clean_files=$ac_clean_files_save
3908 # Check that the compiler produces executables we can run.  If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 $as_echo_n "checking whether we are cross compiling... " >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3914
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3916 $as_echo_n "checking for suffix of executables... " >&6; }
3917 if { { ac_try="$ac_link"
3918 case "(($ac_try" in
3919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920   *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924   (eval "$ac_link") 2>&5
3925   ac_status=$?
3926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927   test $ac_status = 0; }; then :
3928   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3929 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3930 # work properly (i.e., refer to `conftest.exe'), while it won't with
3931 # `rm'.
3932 for ac_file in conftest.exe conftest conftest.*; do
3933   test -f "$ac_file" || continue
3934   case $ac_file in
3935     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3936     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937           break;;
3938     * ) break;;
3939   esac
3940 done
3941 else
3942   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error "cannot compute suffix of executables: cannot compile and link
3945 See \`config.log' for more details." "$LINENO" 5; }
3946 fi
3947 rm -f conftest$ac_cv_exeext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3949 $as_echo "$ac_cv_exeext" >&6; }
3950
3951 rm -f conftest.$ac_ext
3952 EXEEXT=$ac_cv_exeext
3953 ac_exeext=$EXEEXT
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if test "${ac_cv_objext+set}" = set; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h.  */
3961
3962 int
3963 main ()
3964 {
3965
3966   ;
3967   return 0;
3968 }
3969 _ACEOF
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try="$ac_compile"
3972 case "(($ac_try" in
3973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974   *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978   (eval "$ac_compile") 2>&5
3979   ac_status=$?
3980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981   test $ac_status = 0; }; then :
3982   for ac_file in conftest.o conftest.obj conftest.*; do
3983   test -f "$ac_file" || continue;
3984   case $ac_file in
3985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3987        break;;
3988   esac
3989 done
3990 else
3991   $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error "cannot compute suffix of object files: cannot compile
3997 See \`config.log' for more details." "$LINENO" 5; }
3998 fi
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4004 ac_objext=$OBJEXT
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4008   $as_echo_n "(cached) " >&6
4009 else
4010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016 #ifndef __GNUC__
4017        choke me
4018 #endif
4019
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025   ac_compiler_gnu=yes
4026 else
4027   ac_compiler_gnu=no
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4031
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4036   GCC=yes
4037 else
4038   GCC=
4039 fi
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if test "${ac_cv_prog_cc_g+set}" = set; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047   ac_save_c_werror_flag=$ac_c_werror_flag
4048    ac_c_werror_flag=yes
4049    ac_cv_prog_cc_g=no
4050    CFLAGS="-g"
4051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h.  */
4053
4054 int
4055 main ()
4056 {
4057
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063   ac_cv_prog_cc_g=yes
4064 else
4065   CFLAGS=""
4066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h.  */
4068
4069 int
4070 main ()
4071 {
4072
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078
4079 else
4080   ac_c_werror_flag=$ac_save_c_werror_flag
4081          CFLAGS="-g"
4082          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h.  */
4084
4085 int
4086 main ()
4087 {
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094   ac_cv_prog_cc_g=yes
4095 fi
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101    ac_c_werror_flag=$ac_save_c_werror_flag
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106   CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108   if test "$GCC" = yes; then
4109     CFLAGS="-g -O2"
4110   else
4111     CFLAGS="-g"
4112   fi
4113 else
4114   if test "$GCC" = yes; then
4115     CFLAGS="-O2"
4116   else
4117     CFLAGS=
4118   fi
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4123   $as_echo_n "(cached) " >&6
4124 else
4125   ac_cv_prog_cc_c89=no
4126 ac_save_CC=$CC
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h.  */
4129 #include <stdarg.h>
4130 #include <stdio.h>
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4137      char **p;
4138      int i;
4139 {
4140   return p[i];
4141 }
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4143 {
4144   char *s;
4145   va_list v;
4146   va_start (v,p);
4147   s = g (p, va_arg (v,int));
4148   va_end (v);
4149   return s;
4150 }
4151
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4153    function prototypes and stuff, but not '\xHH' hex character constants.
4154    These don't provoke an error unfortunately, instead are silently treated
4155    as 'x'.  The following induces an error, until -std is added to get
4156    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4157    array size at least.  It's necessary to write '\x00'==0 to get something
4158    that's true only with -std.  */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4160
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162    inside strings and character constants.  */
4163 #define FOO(x) 'x'
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4165
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170 int argc;
4171 char **argv;
4172 int
4173 main ()
4174 {
4175 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4182 do
4183   CC="$ac_save_CC $ac_arg"
4184   if ac_fn_c_try_compile "$LINENO"; then :
4185   ac_cv_prog_cc_c89=$ac_arg
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext
4188   test "x$ac_cv_prog_cc_c89" != "xno" && break
4189 done
4190 rm -f conftest.$ac_ext
4191 CC=$ac_save_CC
4192
4193 fi
4194 # AC_CACHE_VAL
4195 case "x$ac_cv_prog_cc_c89" in
4196   x)
4197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4199   xno)
4200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4202   *)
4203     CC="$CC $ac_cv_prog_cc_c89"
4204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4206 esac
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4208
4209 fi
4210
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216
4217 if test "x$CC" != xcc; then
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4219 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4220 else
4221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4222 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4223 fi
4224 set dummy $CC; ac_cc=`$as_echo "$2" |
4225                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4226 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h.  */
4231
4232 int
4233 main ()
4234 {
4235
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 # Make sure it works both with $CC and with simple cc.
4241 # We do the test twice because some compilers refuse to overwrite an
4242 # existing .o file with -o, though they will create one.
4243 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4244 rm -f conftest2.*
4245 if { { case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251   (eval "$ac_try") 2>&5
4252   ac_status=$?
4253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254   test $ac_status = 0; } &&
4255    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257   *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261   (eval "$ac_try") 2>&5
4262   ac_status=$?
4263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264   test $ac_status = 0; };
4265 then
4266   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4267   if test "x$CC" != xcc; then
4268     # Test first that cc exists at all.
4269     if { ac_try='cc -c conftest.$ac_ext >&5'
4270   { { case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279   test $ac_status = 0; }; }; then
4280       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281       rm -f conftest2.*
4282       if { { case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291   test $ac_status = 0; } &&
4292          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298   (eval "$ac_try") 2>&5
4299   ac_status=$?
4300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301   test $ac_status = 0; };
4302       then
4303         # cc works too.
4304         :
4305       else
4306         # cc exists but doesn't like -o.
4307         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4308       fi
4309     fi
4310   fi
4311 else
4312   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4313 fi
4314 rm -f core conftest*
4315
4316 fi
4317 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319 $as_echo "yes" >&6; }
4320 else
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323
4324 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4325
4326 fi
4327
4328 # expand $ac_aux_dir to an absolute path
4329 am_aux_dir=`cd $ac_aux_dir && pwd`
4330
4331 # FIXME: we rely on the cache variable name because
4332 # there is no other way.
4333 set dummy $CC
4334 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4335 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4336 if test "$am_t" != yes; then
4337    # Losing compiler, so override with the script.
4338    # FIXME: It is wrong to rewrite CC.
4339    # But if we don't then we get into trouble of one sort or another.
4340    # A longer-term fix would be to have automake use am__CC in this case,
4341    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4342    CC="$am_aux_dir/compile $CC"
4343 fi
4344
4345
4346 ac_ext=cpp
4347 ac_cpp='$CXXCPP $CPPFLAGS'
4348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4351 if test -z "$CXX"; then
4352   if test -n "$CCC"; then
4353     CXX=$CCC
4354   else
4355     if test -n "$ac_tool_prefix"; then
4356   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4357   do
4358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_CXX+set}" = set; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   if test -n "$CXX"; then
4366   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373     for ac_exec_ext in '' $ac_executable_extensions; do
4374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380   done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 CXX=$ac_cv_prog_CXX
4386 if test -n "$CXX"; then
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4388 $as_echo "$CXX" >&6; }
4389 else
4390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395     test -n "$CXX" && break
4396   done
4397 fi
4398 if test -z "$CXX"; then
4399   ac_ct_CXX=$CXX
4400   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4401 do
4402   # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy $ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   if test -n "$ac_ct_CXX"; then
4410   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419     ac_cv_prog_ac_ct_CXX="$ac_prog"
4420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421     break 2
4422   fi
4423 done
4424   done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4430 if test -n "$ac_ct_CXX"; then
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4432 $as_echo "$ac_ct_CXX" >&6; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439   test -n "$ac_ct_CXX" && break
4440 done
4441
4442   if test "x$ac_ct_CXX" = x; then
4443     CXX="g++"
4444   else
4445     case $cross_compiling:$ac_tool_warned in
4446 yes:)
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned=yes ;;
4450 esac
4451     CXX=$ac_ct_CXX
4452   fi
4453 fi
4454
4455   fi
4456 fi
4457 # Provide some information about the compiler.
4458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4459 set X $ac_compile
4460 ac_compiler=$2
4461 for ac_option in --version -v -V -qversion; do
4462   { { ac_try="$ac_compiler $ac_option >&5"
4463 case "(($ac_try" in
4464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465   *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4470   ac_status=$?
4471   if test -s conftest.err; then
4472     sed '10a\
4473 ... rest of stderr output deleted ...
4474          10q' conftest.err >conftest.er1
4475     cat conftest.er1 >&5
4476     rm -f conftest.er1 conftest.err
4477   fi
4478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479   test $ac_status = 0; }
4480 done
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4484 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4485   $as_echo_n "(cached) " >&6
4486 else
4487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h.  */
4489
4490 int
4491 main ()
4492 {
4493 #ifndef __GNUC__
4494        choke me
4495 #endif
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4502   ac_compiler_gnu=yes
4503 else
4504   ac_compiler_gnu=no
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4508
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4512 if test $ac_compiler_gnu = yes; then
4513   GXX=yes
4514 else
4515   GXX=
4516 fi
4517 ac_test_CXXFLAGS=${CXXFLAGS+set}
4518 ac_save_CXXFLAGS=$CXXFLAGS
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4521 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4525    ac_cxx_werror_flag=yes
4526    ac_cv_prog_cxx_g=no
4527    CXXFLAGS="-g"
4528    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h.  */
4530
4531 int
4532 main ()
4533 {
4534
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540   ac_cv_prog_cxx_g=yes
4541 else
4542   CXXFLAGS=""
4543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h.  */
4545
4546 int
4547 main ()
4548 {
4549
4550   ;
4551   return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4555
4556 else
4557   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4558          CXXFLAGS="-g"
4559          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561
4562 int
4563 main ()
4564 {
4565
4566   ;
4567   return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571   ac_cv_prog_cxx_g=yes
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4582 if test "$ac_test_CXXFLAGS" = set; then
4583   CXXFLAGS=$ac_save_CXXFLAGS
4584 elif test $ac_cv_prog_cxx_g = yes; then
4585   if test "$GXX" = yes; then
4586     CXXFLAGS="-g -O2"
4587   else
4588     CXXFLAGS="-g"
4589   fi
4590 else
4591   if test "$GXX" = yes; then
4592     CXXFLAGS="-O2"
4593   else
4594     CXXFLAGS=
4595   fi
4596 fi
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603
4604
4605
4606 if test -n "$ac_tool_prefix"; then
4607   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4612   $as_echo_n "(cached) " >&6
4613 else
4614   if test -n "$GNATBIND"; then
4615   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622     for ac_exec_ext in '' $ac_executable_extensions; do
4623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626     break 2
4627   fi
4628 done
4629   done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 GNATBIND=$ac_cv_prog_GNATBIND
4635 if test -n "$GNATBIND"; then
4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4637 $as_echo "$GNATBIND" >&6; }
4638 else
4639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 fi
4642
4643
4644 fi
4645 if test -z "$ac_cv_prog_GNATBIND"; then
4646   ac_ct_GNATBIND=$GNATBIND
4647   # Extract the first word of "gnatbind", so it can be a program name with args.
4648 set dummy gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   if test -n "$ac_ct_GNATBIND"; then
4655   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662     for ac_exec_ext in '' $ac_executable_extensions; do
4663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666     break 2
4667   fi
4668 done
4669   done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4675 if test -n "$ac_ct_GNATBIND"; then
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4677 $as_echo "$ac_ct_GNATBIND" >&6; }
4678 else
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683   if test "x$ac_ct_GNATBIND" = x; then
4684     GNATBIND="no"
4685   else
4686     case $cross_compiling:$ac_tool_warned in
4687 yes:)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4691 esac
4692     GNATBIND=$ac_ct_GNATBIND
4693   fi
4694 else
4695   GNATBIND="$ac_cv_prog_GNATBIND"
4696 fi
4697
4698 if test -n "$ac_tool_prefix"; then
4699   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4704   $as_echo_n "(cached) " >&6
4705 else
4706   if test -n "$GNATMAKE"; then
4707   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714     for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721   done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 GNATMAKE=$ac_cv_prog_GNATMAKE
4727 if test -n "$GNATMAKE"; then
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4729 $as_echo "$GNATMAKE" >&6; }
4730 else
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735
4736 fi
4737 if test -z "$ac_cv_prog_GNATMAKE"; then
4738   ac_ct_GNATMAKE=$GNATMAKE
4739   # Extract the first word of "gnatmake", so it can be a program name with args.
4740 set dummy gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4744   $as_echo_n "(cached) " >&6
4745 else
4746   if test -n "$ac_ct_GNATMAKE"; then
4747   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_exec_ext in '' $ac_executable_extensions; do
4755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761   done
4762 IFS=$as_save_IFS
4763
4764 fi
4765 fi
4766 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4767 if test -n "$ac_ct_GNATMAKE"; then
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4769 $as_echo "$ac_ct_GNATMAKE" >&6; }
4770 else
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774
4775   if test "x$ac_ct_GNATMAKE" = x; then
4776     GNATMAKE="no"
4777   else
4778     case $cross_compiling:$ac_tool_warned in
4779 yes:)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4783 esac
4784     GNATMAKE=$ac_ct_GNATMAKE
4785   fi
4786 else
4787   GNATMAKE="$ac_cv_prog_GNATMAKE"
4788 fi
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4791 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4792 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795   cat >conftest.adb <<EOF
4796 procedure conftest is begin null; end conftest;
4797 EOF
4798 acx_cv_cc_gcc_supports_ada=no
4799 # There is a bug in old released versions of GCC which causes the
4800 # driver to exit successfully when the appropriate language module
4801 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4802 # Therefore we must check for the error message as well as an
4803 # unsuccessful exit.
4804 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4805 # given a .adb file, but produce no object file.  So we must check
4806 # if an object file was really produced to guard against this.
4807 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4808 if test x"$errors" = x && test -f conftest.$ac_objext; then
4809   acx_cv_cc_gcc_supports_ada=yes
4810 fi
4811 rm -f conftest.*
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4814 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4815
4816 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4817   have_gnat=yes
4818 else
4819   have_gnat=no
4820 fi
4821
4822
4823 # autoconf is lame and doesn't give us any substitution variable for this.
4824 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4825   NO_MINUS_C_MINUS_O=yes
4826 else
4827   OUTPUT_OPTION='-o $@'
4828 fi
4829
4830
4831
4832 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4833 # optimizations to be activated explicitly by the toplevel.
4834 case "$CC" in
4835   */prev-gcc/xgcc*) ;;
4836   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4837 esac
4838
4839
4840 # -------------------------
4841 # Check C compiler features
4842 # -------------------------
4843
4844
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4851 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4852 # On Suns, sometimes $CPP names a directory.
4853 if test -n "$CPP" && test -d "$CPP"; then
4854   CPP=
4855 fi
4856 if test -z "$CPP"; then
4857   if test "${ac_cv_prog_CPP+set}" = set; then :
4858   $as_echo_n "(cached) " >&6
4859 else
4860       # Double quotes because CPP needs to be expanded
4861     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4862     do
4863       ac_preproc_ok=false
4864 for ac_c_preproc_warn_flag in '' yes
4865 do
4866   # Use a header file that comes with gcc, so configuring glibc
4867   # with a fresh cross-compiler works.
4868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869   # <limits.h> exists even on freestanding compilers.
4870   # On the NeXT, cc -E runs the code through the compiler's parser,
4871   # not just through cpp. "Syntax error" is here to catch this case.
4872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874 #ifdef __STDC__
4875 # include <limits.h>
4876 #else
4877 # include <assert.h>
4878 #endif
4879                      Syntax error
4880 _ACEOF
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4882
4883 else
4884   # Broken: fails on valid input.
4885 continue
4886 fi
4887 rm -f conftest.err conftest.$ac_ext
4888
4889   # OK, works on sane cases.  Now check whether nonexistent headers
4890   # can be detected and how.
4891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h.  */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896   # Broken: success on invalid input.
4897 continue
4898 else
4899   # Passes both tests.
4900 ac_preproc_ok=:
4901 break
4902 fi
4903 rm -f conftest.err conftest.$ac_ext
4904
4905 done
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then :
4909   break
4910 fi
4911
4912     done
4913     ac_cv_prog_CPP=$CPP
4914
4915 fi
4916   CPP=$ac_cv_prog_CPP
4917 else
4918   ac_cv_prog_CPP=$CPP
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4921 $as_echo "$CPP" >&6; }
4922 ac_preproc_ok=false
4923 for ac_c_preproc_warn_flag in '' yes
4924 do
4925   # Use a header file that comes with gcc, so configuring glibc
4926   # with a fresh cross-compiler works.
4927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928   # <limits.h> exists even on freestanding compilers.
4929   # On the NeXT, cc -E runs the code through the compiler's parser,
4930   # not just through cpp. "Syntax error" is here to catch this case.
4931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h.  */
4933 #ifdef __STDC__
4934 # include <limits.h>
4935 #else
4936 # include <assert.h>
4937 #endif
4938                      Syntax error
4939 _ACEOF
4940 if ac_fn_c_try_cpp "$LINENO"; then :
4941
4942 else
4943   # Broken: fails on valid input.
4944 continue
4945 fi
4946 rm -f conftest.err conftest.$ac_ext
4947
4948   # OK, works on sane cases.  Now check whether nonexistent headers
4949   # can be detected and how.
4950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h.  */
4952 #include <ac_nonexistent.h>
4953 _ACEOF
4954 if ac_fn_c_try_cpp "$LINENO"; then :
4955   # Broken: success on invalid input.
4956 continue
4957 else
4958   # Passes both tests.
4959 ac_preproc_ok=:
4960 break
4961 fi
4962 rm -f conftest.err conftest.$ac_ext
4963
4964 done
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.$ac_ext
4967 if $ac_preproc_ok; then :
4968
4969 else
4970   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4973 See \`config.log' for more details." "$LINENO" 5; }
4974 fi
4975
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4984 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4985 if test "${ac_cv_path_GREP+set}" = set; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   if test -z "$GREP"; then
4989   ac_path_GREP_found=false
4990   # Loop through the user's path and test for each of PROGNAME-LIST
4991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996     for ac_prog in grep ggrep; do
4997     for ac_exec_ext in '' $ac_executable_extensions; do
4998       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4999       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5000 # Check for GNU ac_path_GREP and select it if it is found.
5001   # Check for GNU $ac_path_GREP
5002 case `"$ac_path_GREP" --version 2>&1` in
5003 *GNU*)
5004   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5005 *)
5006   ac_count=0
5007   $as_echo_n 0123456789 >"conftest.in"
5008   while :
5009   do
5010     cat "conftest.in" "conftest.in" >"conftest.tmp"
5011     mv "conftest.tmp" "conftest.in"
5012     cp "conftest.in" "conftest.nl"
5013     $as_echo 'GREP' >> "conftest.nl"
5014     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5015     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5016     as_fn_arith $ac_count + 1 && ac_count=$as_val
5017     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5018       # Best one so far, save it but keep looking for a better one
5019       ac_cv_path_GREP="$ac_path_GREP"
5020       ac_path_GREP_max=$ac_count
5021     fi
5022     # 10*(2^10) chars as input seems more than enough
5023     test $ac_count -gt 10 && break
5024   done
5025   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5026 esac
5027
5028       $ac_path_GREP_found && break 3
5029     done
5030   done
5031   done
5032 IFS=$as_save_IFS
5033   if test -z "$ac_cv_path_GREP"; then
5034     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5035   fi
5036 else
5037   ac_cv_path_GREP=$GREP
5038 fi
5039
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5042 $as_echo "$ac_cv_path_GREP" >&6; }
5043  GREP="$ac_cv_path_GREP"
5044
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5047 $as_echo_n "checking for egrep... " >&6; }
5048 if test "${ac_cv_path_EGREP+set}" = set; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5052    then ac_cv_path_EGREP="$GREP -E"
5053    else
5054      if test -z "$EGREP"; then
5055   ac_path_EGREP_found=false
5056   # Loop through the user's path and test for each of PROGNAME-LIST
5057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062     for ac_prog in egrep; do
5063     for ac_exec_ext in '' $ac_executable_extensions; do
5064       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5065       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5066 # Check for GNU ac_path_EGREP and select it if it is found.
5067   # Check for GNU $ac_path_EGREP
5068 case `"$ac_path_EGREP" --version 2>&1` in
5069 *GNU*)
5070   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5071 *)
5072   ac_count=0
5073   $as_echo_n 0123456789 >"conftest.in"
5074   while :
5075   do
5076     cat "conftest.in" "conftest.in" >"conftest.tmp"
5077     mv "conftest.tmp" "conftest.in"
5078     cp "conftest.in" "conftest.nl"
5079     $as_echo 'EGREP' >> "conftest.nl"
5080     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5081     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5082     as_fn_arith $ac_count + 1 && ac_count=$as_val
5083     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5084       # Best one so far, save it but keep looking for a better one
5085       ac_cv_path_EGREP="$ac_path_EGREP"
5086       ac_path_EGREP_max=$ac_count
5087     fi
5088     # 10*(2^10) chars as input seems more than enough
5089     test $ac_count -gt 10 && break
5090   done
5091   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5092 esac
5093
5094       $ac_path_EGREP_found && break 3
5095     done
5096   done
5097   done
5098 IFS=$as_save_IFS
5099   if test -z "$ac_cv_path_EGREP"; then
5100     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5101   fi
5102 else
5103   ac_cv_path_EGREP=$EGREP
5104 fi
5105
5106    fi
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5109 $as_echo "$ac_cv_path_EGREP" >&6; }
5110  EGREP="$ac_cv_path_EGREP"
5111
5112
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5114 $as_echo_n "checking for ANSI C header files... " >&6; }
5115 if test "${ac_cv_header_stdc+set}" = set; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h.  */
5120 #include <stdlib.h>
5121 #include <stdarg.h>
5122 #include <string.h>
5123 #include <float.h>
5124
5125 int
5126 main ()
5127 {
5128
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134   ac_cv_header_stdc=yes
5135 else
5136   ac_cv_header_stdc=no
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139
5140 if test $ac_cv_header_stdc = yes; then
5141   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h.  */
5144 #include <string.h>
5145
5146 _ACEOF
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148   $EGREP "memchr" >/dev/null 2>&1; then :
5149
5150 else
5151   ac_cv_header_stdc=no
5152 fi
5153 rm -f conftest*
5154
5155 fi
5156
5157 if test $ac_cv_header_stdc = yes; then
5158   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h.  */
5161 #include <stdlib.h>
5162
5163 _ACEOF
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165   $EGREP "free" >/dev/null 2>&1; then :
5166
5167 else
5168   ac_cv_header_stdc=no
5169 fi
5170 rm -f conftest*
5171
5172 fi
5173
5174 if test $ac_cv_header_stdc = yes; then
5175   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5176   if test "$cross_compiling" = yes; then :
5177   :
5178 else
5179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h.  */
5181 #include <ctype.h>
5182 #include <stdlib.h>
5183 #if ((' ' & 0x0FF) == 0x020)
5184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5186 #else
5187 # define ISLOWER(c) \
5188                    (('a' <= (c) && (c) <= 'i') \
5189                      || ('j' <= (c) && (c) <= 'r') \
5190                      || ('s' <= (c) && (c) <= 'z'))
5191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5192 #endif
5193
5194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195 int
5196 main ()
5197 {
5198   int i;
5199   for (i = 0; i < 256; i++)
5200     if (XOR (islower (i), ISLOWER (i))
5201         || toupper (i) != TOUPPER (i))
5202       return 2;
5203   return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_run "$LINENO"; then :
5207
5208 else
5209   ac_cv_header_stdc=no
5210 fi
5211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5212   conftest.$ac_objext conftest.beam conftest.$ac_ext
5213 fi
5214
5215 fi
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5218 $as_echo "$ac_cv_header_stdc" >&6; }
5219 if test $ac_cv_header_stdc = yes; then
5220
5221 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5222
5223 fi
5224
5225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5227                   inttypes.h stdint.h unistd.h
5228 do :
5229   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5230 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5231 "
5232 eval as_val=\$$as_ac_Header
5233    if test "x$as_val" = x""yes; then :
5234   cat >>confdefs.h <<_ACEOF
5235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5236 _ACEOF
5237
5238 fi
5239
5240 done
5241
5242
5243
5244   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5245 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5246   MINIX=yes
5247 else
5248   MINIX=
5249 fi
5250
5251
5252   if test "$MINIX" = yes; then
5253
5254 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5255
5256
5257 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5258
5259
5260 $as_echo "#define _MINIX 1" >>confdefs.h
5261
5262   fi
5263
5264
5265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5266 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5267 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h.  */
5272
5273 #         define __EXTENSIONS__ 1
5274           $ac_includes_default
5275 int
5276 main ()
5277 {
5278
5279   ;
5280   return 0;
5281 }
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284   ac_cv_safe_to_define___extensions__=yes
5285 else
5286   ac_cv_safe_to_define___extensions__=no
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5291 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5292   test $ac_cv_safe_to_define___extensions__ = yes &&
5293     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5294
5295   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5296
5297   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5298
5299   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5300
5301   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5302
5303
5304 ac_ext=c
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5313   CPP=
5314 fi
5315 if test -z "$CPP"; then
5316   if test "${ac_cv_prog_CPP+set}" = set; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319       # Double quotes because CPP needs to be expanded
5320     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5321     do
5322       ac_preproc_ok=false
5323 for ac_c_preproc_warn_flag in '' yes
5324 do
5325   # Use a header file that comes with gcc, so configuring glibc
5326   # with a fresh cross-compiler works.
5327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328   # <limits.h> exists even on freestanding compilers.
5329   # On the NeXT, cc -E runs the code through the compiler's parser,
5330   # not just through cpp. "Syntax error" is here to catch this case.
5331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h.  */
5333 #ifdef __STDC__
5334 # include <limits.h>
5335 #else
5336 # include <assert.h>
5337 #endif
5338                      Syntax error
5339 _ACEOF
5340 if ac_fn_c_try_cpp "$LINENO"; then :
5341
5342 else
5343   # Broken: fails on valid input.
5344 continue
5345 fi
5346 rm -f conftest.err conftest.$ac_ext
5347
5348   # OK, works on sane cases.  Now check whether nonexistent headers
5349   # can be detected and how.
5350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h.  */
5352 #include <ac_nonexistent.h>
5353 _ACEOF
5354 if ac_fn_c_try_cpp "$LINENO"; then :
5355   # Broken: success on invalid input.
5356 continue
5357 else
5358   # Passes both tests.
5359 ac_preproc_ok=:
5360 break
5361 fi
5362 rm -f conftest.err conftest.$ac_ext
5363
5364 done
5365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5366 rm -f conftest.err conftest.$ac_ext
5367 if $ac_preproc_ok; then :
5368   break
5369 fi
5370
5371     done
5372     ac_cv_prog_CPP=$CPP
5373
5374 fi
5375   CPP=$ac_cv_prog_CPP
5376 else
5377   ac_cv_prog_CPP=$CPP
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5380 $as_echo "$CPP" >&6; }
5381 ac_preproc_ok=false
5382 for ac_c_preproc_warn_flag in '' yes
5383 do
5384   # Use a header file that comes with gcc, so configuring glibc
5385   # with a fresh cross-compiler works.
5386   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387   # <limits.h> exists even on freestanding compilers.
5388   # On the NeXT, cc -E runs the code through the compiler's parser,
5389   # not just through cpp. "Syntax error" is here to catch this case.
5390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h.  */
5392 #ifdef __STDC__
5393 # include <limits.h>
5394 #else
5395 # include <assert.h>
5396 #endif
5397                      Syntax error
5398 _ACEOF
5399 if ac_fn_c_try_cpp "$LINENO"; then :
5400
5401 else
5402   # Broken: fails on valid input.
5403 continue
5404 fi
5405 rm -f conftest.err conftest.$ac_ext
5406
5407   # OK, works on sane cases.  Now check whether nonexistent headers
5408   # can be detected and how.
5409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h.  */
5411 #include <ac_nonexistent.h>
5412 _ACEOF
5413 if ac_fn_c_try_cpp "$LINENO"; then :
5414   # Broken: success on invalid input.
5415 continue
5416 else
5417   # Passes both tests.
5418 ac_preproc_ok=:
5419 break
5420 fi
5421 rm -f conftest.err conftest.$ac_ext
5422
5423 done
5424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5425 rm -f conftest.err conftest.$ac_ext
5426 if $ac_preproc_ok; then :
5427
5428 else
5429   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5431 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5432 See \`config.log' for more details." "$LINENO" 5; }
5433 fi
5434
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5442 $as_echo_n "checking for inline... " >&6; }
5443 if test "${ac_cv_c_inline+set}" = set; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   ac_cv_c_inline=no
5447 for ac_kw in inline __inline__ __inline; do
5448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h.  */
5450 #ifndef __cplusplus
5451 typedef int foo_t;
5452 static $ac_kw foo_t static_foo () {return 0; }
5453 $ac_kw foo_t foo () {return 0; }
5454 #endif
5455
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458   ac_cv_c_inline=$ac_kw
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461   test "$ac_cv_c_inline" != no && break
5462 done
5463
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5466 $as_echo "$ac_cv_c_inline" >&6; }
5467
5468 case $ac_cv_c_inline in
5469   inline | yes) ;;
5470   *)
5471     case $ac_cv_c_inline in
5472       no) ac_val=;;
5473       *) ac_val=$ac_cv_c_inline;;
5474     esac
5475     cat >>confdefs.h <<_ACEOF
5476 #ifndef __cplusplus
5477 #define inline $ac_val
5478 #endif
5479 _ACEOF
5480     ;;
5481 esac
5482
5483
5484 # sizeof(char) is 1 by definition.
5485 # The cast to long int works around a bug in the HP C Compiler
5486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5488 # This bug is HP SR number 8606223364.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5490 $as_echo_n "checking size of void *... " >&6; }
5491 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5495
5496 else
5497   if test "$ac_cv_type_void_p" = yes; then
5498      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5500 { as_fn_set_status 77
5501 as_fn_error "cannot compute sizeof (void *)
5502 See \`config.log' for more details." "$LINENO" 5; }; }
5503    else
5504      ac_cv_sizeof_void_p=0
5505    fi
5506 fi
5507
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5510 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5511
5512
5513
5514 cat >>confdefs.h <<_ACEOF
5515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5516 _ACEOF
5517
5518
5519 # The cast to long int works around a bug in the HP C Compiler
5520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5522 # This bug is HP SR number 8606223364.
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5524 $as_echo_n "checking size of short... " >&6; }
5525 if test "${ac_cv_sizeof_short+set}" = set; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5529
5530 else
5531   if test "$ac_cv_type_short" = yes; then
5532      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5534 { as_fn_set_status 77
5535 as_fn_error "cannot compute sizeof (short)
5536 See \`config.log' for more details." "$LINENO" 5; }; }
5537    else
5538      ac_cv_sizeof_short=0
5539    fi
5540 fi
5541
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5544 $as_echo "$ac_cv_sizeof_short" >&6; }
5545
5546
5547
5548 cat >>confdefs.h <<_ACEOF
5549 #define SIZEOF_SHORT $ac_cv_sizeof_short
5550 _ACEOF
5551
5552
5553 # The cast to long int works around a bug in the HP C Compiler
5554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5556 # This bug is HP SR number 8606223364.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5558 $as_echo_n "checking size of int... " >&6; }
5559 if test "${ac_cv_sizeof_int+set}" = set; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5563
5564 else
5565   if test "$ac_cv_type_int" = yes; then
5566      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568 { as_fn_set_status 77
5569 as_fn_error "cannot compute sizeof (int)
5570 See \`config.log' for more details." "$LINENO" 5; }; }
5571    else
5572      ac_cv_sizeof_int=0
5573    fi
5574 fi
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5578 $as_echo "$ac_cv_sizeof_int" >&6; }
5579
5580
5581
5582 cat >>confdefs.h <<_ACEOF
5583 #define SIZEOF_INT $ac_cv_sizeof_int
5584 _ACEOF
5585
5586
5587 # The cast to long int works around a bug in the HP C Compiler
5588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5590 # This bug is HP SR number 8606223364.
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5592 $as_echo_n "checking size of long... " >&6; }
5593 if test "${ac_cv_sizeof_long+set}" = set; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5597
5598 else
5599   if test "$ac_cv_type_long" = yes; then
5600      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5602 { as_fn_set_status 77
5603 as_fn_error "cannot compute sizeof (long)
5604 See \`config.log' for more details." "$LINENO" 5; }; }
5605    else
5606      ac_cv_sizeof_long=0
5607    fi
5608 fi
5609
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5612 $as_echo "$ac_cv_sizeof_long" >&6; }
5613
5614
5615
5616 cat >>confdefs.h <<_ACEOF
5617 #define SIZEOF_LONG $ac_cv_sizeof_long
5618 _ACEOF
5619
5620
5621 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5622 if test "x$ac_cv_type_long_long" = x""yes; then :
5623
5624 cat >>confdefs.h <<_ACEOF
5625 #define HAVE_LONG_LONG 1
5626 _ACEOF
5627
5628 # The cast to long int works around a bug in the HP C Compiler
5629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5631 # This bug is HP SR number 8606223364.
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5633 $as_echo_n "checking size of long long... " >&6; }
5634 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5635   $as_echo_n "(cached) " >&6
5636 else
5637   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5638
5639 else
5640   if test "$ac_cv_type_long_long" = yes; then
5641      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643 { as_fn_set_status 77
5644 as_fn_error "cannot compute sizeof (long long)
5645 See \`config.log' for more details." "$LINENO" 5; }; }
5646    else
5647      ac_cv_sizeof_long_long=0
5648    fi
5649 fi
5650
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5653 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5654
5655
5656
5657 cat >>confdefs.h <<_ACEOF
5658 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5659 _ACEOF
5660
5661
5662 fi
5663
5664 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5665 if test "x$ac_cv_type___int64" = x""yes; then :
5666
5667 cat >>confdefs.h <<_ACEOF
5668 #define HAVE___INT64 1
5669 _ACEOF
5670
5671 # The cast to long int works around a bug in the HP C Compiler
5672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5674 # This bug is HP SR number 8606223364.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5676 $as_echo_n "checking size of __int64... " >&6; }
5677 if test "${ac_cv_sizeof___int64+set}" = set; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5681
5682 else
5683   if test "$ac_cv_type___int64" = yes; then
5684      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5686 { as_fn_set_status 77
5687 as_fn_error "cannot compute sizeof (__int64)
5688 See \`config.log' for more details." "$LINENO" 5; }; }
5689    else
5690      ac_cv_sizeof___int64=0
5691    fi
5692 fi
5693
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5696 $as_echo "$ac_cv_sizeof___int64" >&6; }
5697
5698
5699
5700 cat >>confdefs.h <<_ACEOF
5701 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5702 _ACEOF
5703
5704
5705 fi
5706
5707 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5708 case $ac_cv_c_int8_t in #(
5709   no|yes) ;; #(
5710   *)
5711
5712 cat >>confdefs.h <<_ACEOF
5713 #define int8_t $ac_cv_c_int8_t
5714 _ACEOF
5715 ;;
5716 esac
5717
5718 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5719 case $ac_cv_c_int16_t in #(
5720   no|yes) ;; #(
5721   *)
5722
5723 cat >>confdefs.h <<_ACEOF
5724 #define int16_t $ac_cv_c_int16_t
5725 _ACEOF
5726 ;;
5727 esac
5728
5729 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5730 case $ac_cv_c_int32_t in #(
5731   no|yes) ;; #(
5732   *)
5733
5734 cat >>confdefs.h <<_ACEOF
5735 #define int32_t $ac_cv_c_int32_t
5736 _ACEOF
5737 ;;
5738 esac
5739
5740 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5741 case $ac_cv_c_int64_t in #(
5742   no|yes) ;; #(
5743   *)
5744
5745 cat >>confdefs.h <<_ACEOF
5746 #define int64_t $ac_cv_c_int64_t
5747 _ACEOF
5748 ;;
5749 esac
5750
5751
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5753 $as_echo_n "checking for long long int... " >&6; }
5754 if test "${ac_cv_type_long_long_int+set}" = set; then :
5755   $as_echo_n "(cached) " >&6
5756 else
5757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h.  */
5759
5760   /* For now, do not test the preprocessor; as of 2007 there are too many
5761          implementations with broken preprocessors.  Perhaps this can
5762          be revisited in 2012.  In the meantime, code should not expect
5763          #if to work with literals wider than 32 bits.  */
5764       /* Test literals.  */
5765       long long int ll = 9223372036854775807ll;
5766       long long int nll = -9223372036854775807LL;
5767       unsigned long long int ull = 18446744073709551615ULL;
5768       /* Test constant expressions.   */
5769       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5770                      ? 1 : -1)];
5771       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5772                      ? 1 : -1)];
5773       int i = 63;
5774 int
5775 main ()
5776 {
5777 /* Test availability of runtime routines for shift and division.  */
5778       long long int llmax = 9223372036854775807ll;
5779       unsigned long long int ullmax = 18446744073709551615ull;
5780       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5781               | (llmax / ll) | (llmax % ll)
5782               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5783               | (ullmax / ull) | (ullmax % ull));
5784   ;
5785   return 0;
5786 }
5787
5788 _ACEOF
5789 if ac_fn_c_try_link "$LINENO"; then :
5790                         if test "$cross_compiling" = yes; then :
5791   ac_cv_type_long_long_int=yes
5792 else
5793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h.  */
5795 #include <limits.h>
5796                #ifndef LLONG_MAX
5797                # define HALF \
5798                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5799                # define LLONG_MAX (HALF - 1 + HALF)
5800                #endif
5801 int
5802 main ()
5803 {
5804 long long int n = 1;
5805                int i;
5806                for (i = 0; ; i++)
5807                  {
5808                    long long int m = n << i;
5809                    if (m >> i != n)
5810                      return 1;
5811                    if (LLONG_MAX / 2 < m)
5812                      break;
5813                  }
5814                return 0;
5815   ;
5816   return 0;
5817 }
5818 _ACEOF
5819 if ac_fn_c_try_run "$LINENO"; then :
5820   ac_cv_type_long_long_int=yes
5821 else
5822   ac_cv_type_long_long_int=no
5823 fi
5824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5825   conftest.$ac_objext conftest.beam conftest.$ac_ext
5826 fi
5827
5828 else
5829   ac_cv_type_long_long_int=no
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext \
5832     conftest$ac_exeext conftest.$ac_ext
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5835 $as_echo "$ac_cv_type_long_long_int" >&6; }
5836   if test $ac_cv_type_long_long_int = yes; then
5837
5838 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5839
5840   fi
5841
5842
5843
5844   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5845 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5846
5847 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5848
5849 else
5850   test $ac_cv_type_long_long_int = yes \
5851        && ac_type='long long int' \
5852        || ac_type='long int'
5853
5854 cat >>confdefs.h <<_ACEOF
5855 #define intmax_t $ac_type
5856 _ACEOF
5857
5858 fi
5859
5860
5861
5862   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5863 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5864
5865 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5866
5867 else
5868   for ac_type in 'int' 'long int' 'long long int'; do
5869        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h.  */
5871 $ac_includes_default
5872 int
5873 main ()
5874 {
5875 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5876 test_array [0] = 0
5877
5878   ;
5879   return 0;
5880 }
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883
5884 cat >>confdefs.h <<_ACEOF
5885 #define intptr_t $ac_type
5886 _ACEOF
5887
5888           ac_type=
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891        test -z "$ac_type" && break
5892      done
5893 fi
5894
5895
5896 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5897 case $ac_cv_c_uint8_t in #(
5898   no|yes) ;; #(
5899   *)
5900
5901 $as_echo "#define _UINT8_T 1" >>confdefs.h
5902
5903
5904 cat >>confdefs.h <<_ACEOF
5905 #define uint8_t $ac_cv_c_uint8_t
5906 _ACEOF
5907 ;;
5908   esac
5909
5910 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5911 case $ac_cv_c_uint16_t in #(
5912   no|yes) ;; #(
5913   *)
5914
5915
5916 cat >>confdefs.h <<_ACEOF
5917 #define uint16_t $ac_cv_c_uint16_t
5918 _ACEOF
5919 ;;
5920   esac
5921
5922 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5923 case $ac_cv_c_uint32_t in #(
5924   no|yes) ;; #(
5925   *)
5926
5927 $as_echo "#define _UINT32_T 1" >>confdefs.h
5928
5929
5930 cat >>confdefs.h <<_ACEOF
5931 #define uint32_t $ac_cv_c_uint32_t
5932 _ACEOF
5933 ;;
5934   esac
5935
5936 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5937 case $ac_cv_c_uint64_t in #(
5938   no|yes) ;; #(
5939   *)
5940
5941 $as_echo "#define _UINT64_T 1" >>confdefs.h
5942
5943
5944 cat >>confdefs.h <<_ACEOF
5945 #define uint64_t $ac_cv_c_uint64_t
5946 _ACEOF
5947 ;;
5948   esac
5949
5950
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5952 $as_echo_n "checking for unsigned long long int... " >&6; }
5953 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h.  */
5958
5959   /* For now, do not test the preprocessor; as of 2007 there are too many
5960          implementations with broken preprocessors.  Perhaps this can
5961          be revisited in 2012.  In the meantime, code should not expect
5962          #if to work with literals wider than 32 bits.  */
5963       /* Test literals.  */
5964       long long int ll = 9223372036854775807ll;
5965       long long int nll = -9223372036854775807LL;
5966       unsigned long long int ull = 18446744073709551615ULL;
5967       /* Test constant expressions.   */
5968       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5969                      ? 1 : -1)];
5970       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5971                      ? 1 : -1)];
5972       int i = 63;
5973 int
5974 main ()
5975 {
5976 /* Test availability of runtime routines for shift and division.  */
5977       long long int llmax = 9223372036854775807ll;
5978       unsigned long long int ullmax = 18446744073709551615ull;
5979       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5980               | (llmax / ll) | (llmax % ll)
5981               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5982               | (ullmax / ull) | (ullmax % ull));
5983   ;
5984   return 0;
5985 }
5986
5987 _ACEOF
5988 if ac_fn_c_try_link "$LINENO"; then :
5989   ac_cv_type_unsigned_long_long_int=yes
5990 else
5991   ac_cv_type_unsigned_long_long_int=no
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext \
5994     conftest$ac_exeext conftest.$ac_ext
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5997 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5998   if test $ac_cv_type_unsigned_long_long_int = yes; then
5999
6000 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6001
6002   fi
6003
6004
6005
6006   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6007 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6008
6009 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6010
6011 else
6012   test $ac_cv_type_unsigned_long_long_int = yes \
6013        && ac_type='unsigned long long int' \
6014        || ac_type='unsigned long int'
6015
6016 cat >>confdefs.h <<_ACEOF
6017 #define uintmax_t $ac_type
6018 _ACEOF
6019
6020 fi
6021
6022
6023
6024   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6025 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6026
6027 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6028
6029 else
6030   for ac_type in 'unsigned int' 'unsigned long int' \
6031         'unsigned long long int'; do
6032        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h.  */
6034 $ac_includes_default
6035 int
6036 main ()
6037 {
6038 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6039 test_array [0] = 0
6040
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"; then :
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define uintptr_t $ac_type
6049 _ACEOF
6050
6051           ac_type=
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054        test -z "$ac_type" && break
6055      done
6056 fi
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072 # ---------------------
6073 # Warnings and checking
6074 # ---------------------
6075
6076 # Check $CC warning features (if it's GCC).
6077 # We want to use -pedantic, but we don't want warnings about
6078 # * 'long long'
6079 # * variadic macros
6080 # * overlong strings
6081 # So, we only use -pedantic if we can disable those warnings.
6082
6083 loose_warn=
6084 save_CFLAGS="$CFLAGS"
6085 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6086   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6087
6088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6089 $as_echo_n "checking whether $CC supports $option... " >&6; }
6090 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6091   $as_echo_n "(cached) " >&6
6092 else
6093   CFLAGS="$option"
6094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h.  */
6096
6097 int
6098 main ()
6099 {
6100
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"; then :
6106   eval "$as_acx_Woption=yes"
6107 else
6108   eval "$as_acx_Woption=no"
6109 fi
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111
6112 fi
6113 eval ac_res=\$$as_acx_Woption
6114                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6115 $as_echo "$ac_res" >&6; }
6116   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6117   loose_warn="$loose_warn${loose_warn:+ }$option"
6118 fi
6119   done
6120 CFLAGS="$save_CFLAGS"
6121
6122 c_loose_warn=
6123 save_CFLAGS="$CFLAGS"
6124 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6125   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6126
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6128 $as_echo_n "checking whether $CC supports $option... " >&6; }
6129 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   CFLAGS="$option"
6133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h.  */
6135
6136 int
6137 main ()
6138 {
6139
6140   ;
6141   return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145   eval "$as_acx_Woption=yes"
6146 else
6147   eval "$as_acx_Woption=no"
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150
6151 fi
6152 eval ac_res=\$$as_acx_Woption
6153                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6154 $as_echo "$ac_res" >&6; }
6155   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6156   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6157 fi
6158   done
6159 CFLAGS="$save_CFLAGS"
6160
6161 strict_warn=
6162 save_CFLAGS="$CFLAGS"
6163 for option in -Wmissing-format-attribute; do
6164   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6165
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6167 $as_echo_n "checking whether $CC supports $option... " >&6; }
6168 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   CFLAGS="$option"
6172     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h.  */
6174
6175 int
6176 main ()
6177 {
6178
6179   ;
6180   return 0;
6181 }
6182 _ACEOF
6183 if ac_fn_c_try_compile "$LINENO"; then :
6184   eval "$as_acx_Woption=yes"
6185 else
6186   eval "$as_acx_Woption=no"
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189
6190 fi
6191 eval ac_res=\$$as_acx_Woption
6192                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6193 $as_echo "$ac_res" >&6; }
6194   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6195   strict_warn="$strict_warn${strict_warn:+ }$option"
6196 fi
6197   done
6198 CFLAGS="$save_CFLAGS"
6199
6200 c_strict_warn=
6201 save_CFLAGS="$CFLAGS"
6202 for option in -Wold-style-definition -Wc++-compat; do
6203   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6204
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6206 $as_echo_n "checking whether $CC supports $option... " >&6; }
6207 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6208   $as_echo_n "(cached) " >&6
6209 else
6210   CFLAGS="$option"
6211     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h.  */
6213
6214 int
6215 main ()
6216 {
6217
6218   ;
6219   return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"; then :
6223   eval "$as_acx_Woption=yes"
6224 else
6225   eval "$as_acx_Woption=no"
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228
6229 fi
6230 eval ac_res=\$$as_acx_Woption
6231                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6232 $as_echo "$ac_res" >&6; }
6233   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6234   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6235 fi
6236   done
6237 CFLAGS="$save_CFLAGS"
6238
6239 if test "$GCC" = yes; then :
6240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6241 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6242 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   save_CFLAGS="$CFLAGS"
6246 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h.  */
6249
6250 int
6251 main ()
6252 {
6253
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 if ac_fn_c_try_compile "$LINENO"; then :
6259   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6260 else
6261   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6262 fi
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 CFLAGS="$save_CFLAGS"
6265 fi
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6267 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6268 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6269   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6270 fi
6271
6272 fi
6273
6274 # Check whether --enable-werror-always was given.
6275 if test "${enable_werror_always+set}" = set; then :
6276   enableval=$enable_werror_always;
6277 else
6278   enable_werror_always=no
6279 fi
6280
6281 if test $enable_werror_always = yes; then :
6282   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6283 fi
6284
6285
6286
6287 # The above macros do nothing if the compiler is not GCC.  However, the
6288 # Makefile has more goo to add other flags, so these variables are used
6289 # to enable warnings only for GCC.
6290 warn_cflags=
6291 warn_cxxflags=
6292 if test "x$GCC" = "xyes"; then
6293   warn_cflags='$(GCC_WARN_CFLAGS)'
6294   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6295 fi
6296
6297
6298
6299 # Enable expensive internal checks
6300 is_release=
6301 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6302   is_release=yes
6303 fi
6304
6305 # Check whether --enable-checking was given.
6306 if test "${enable_checking+set}" = set; then :
6307   enableval=$enable_checking; ac_checking_flags="${enableval}"
6308 else
6309
6310 # Determine the default checks.
6311 if test x$is_release = x ; then
6312   ac_checking_flags=yes
6313 else
6314   ac_checking_flags=release
6315 fi
6316 fi
6317
6318 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6319 for check in release $ac_checking_flags
6320 do
6321         case $check in
6322         # these set all the flags to specific states
6323         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6324                         ac_fold_checking= ; ac_gc_checking=1 ;
6325                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6326                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6327                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6328                         ac_types_checking=1 ;;
6329         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6330                         ac_fold_checking= ; ac_gc_checking= ;
6331                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6332                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6333                         ac_tree_checking= ; ac_valgrind_checking= ;
6334                         ac_types_checking= ;;
6335         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6336                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6337                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6338                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6339                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6340                         ac_types_checking=1 ;;
6341         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6342                         ac_fold_checking= ; ac_gc_checking= ;
6343                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6344                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6345                         ac_tree_checking= ; ac_valgrind_checking= ;
6346                         ac_types_checking= ;;
6347         # these enable particular checks
6348         assert)         ac_assert_checking=1 ;;
6349         df)             ac_df_checking=1 ;;
6350         fold)           ac_fold_checking=1 ;;
6351         gc)             ac_gc_checking=1 ;;
6352         gcac)           ac_gc_always_collect=1 ;;
6353         gimple)         ac_gimple_checking=1 ;;
6354         misc)           ac_checking=1 ;;
6355         rtl)            ac_rtl_checking=1 ;;
6356         rtlflag)        ac_rtlflag_checking=1 ;;
6357         runtime)        ac_runtime_checking=1 ;;
6358         tree)           ac_tree_checking=1 ;;
6359         types)          ac_types_checking=1 ;;
6360         valgrind)       ac_valgrind_checking=1 ;;
6361         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6362         esac
6363 done
6364 IFS="$ac_save_IFS"
6365
6366 nocommon_flag=""
6367 if test x$ac_checking != x ; then
6368
6369 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6370
6371   nocommon_flag=-fno-common
6372 fi
6373
6374 if test x$ac_df_checking != x ; then
6375
6376 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6377
6378 fi
6379 if test x$ac_assert_checking != x ; then
6380
6381 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6382
6383 fi
6384 if test x$ac_gimple_checking != x ; then
6385
6386 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6387
6388 fi
6389
6390 if test x$ac_runtime_checking != x ; then
6391
6392 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6393
6394 fi
6395 if test x$ac_tree_checking != x ; then
6396
6397 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6398
6399   TREEBROWSER=tree-browser.o
6400 fi
6401 if test x$ac_types_checking != x ; then
6402
6403 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6404
6405 fi
6406
6407 if test x$ac_rtl_checking != x ; then
6408
6409 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6410
6411 fi
6412 if test x$ac_rtlflag_checking != x ; then
6413
6414 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6415
6416 fi
6417 if test x$ac_gc_checking != x ; then
6418
6419 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6420
6421 fi
6422 if test x$ac_gc_always_collect != x ; then
6423
6424 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6425
6426 fi
6427 if test x$ac_fold_checking != x ; then
6428
6429 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6430
6431 fi
6432 valgrind_path_defines=
6433 valgrind_command=
6434
6435 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6436 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6437   have_valgrind_h=yes
6438 else
6439   have_valgrind_h=no
6440 fi
6441
6442
6443
6444 if test x$ac_valgrind_checking != x ; then
6445   # It is certainly possible that there's valgrind but no valgrind.h.
6446   # GCC relies on making annotations so we must have both.
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6448 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h.  */
6451 #include <valgrind/memcheck.h>
6452 #ifndef VALGRIND_DISCARD
6453 #error VALGRIND_DISCARD not defined
6454 #endif
6455 _ACEOF
6456 if ac_fn_c_try_cpp "$LINENO"; then :
6457   gcc_cv_header_valgrind_memcheck_h=yes
6458 else
6459   gcc_cv_header_valgrind_memcheck_h=no
6460 fi
6461 rm -f conftest.err conftest.$ac_ext
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6463 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6465 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h.  */
6468 #include <memcheck.h>
6469 #ifndef VALGRIND_DISCARD
6470 #error VALGRIND_DISCARD not defined
6471 #endif
6472 _ACEOF
6473 if ac_fn_c_try_cpp "$LINENO"; then :
6474   gcc_cv_header_memcheck_h=yes
6475 else
6476   gcc_cv_header_memcheck_h=no
6477 fi
6478 rm -f conftest.err conftest.$ac_ext
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6480 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6481
6482 # Prepare PATH_SEPARATOR.
6483 # The user is always right.
6484 if test "${PATH_SEPARATOR+set}" != set; then
6485   echo "#! /bin/sh" >conf$$.sh
6486   echo  "exit 0"   >>conf$$.sh
6487   chmod +x conf$$.sh
6488   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6489     PATH_SEPARATOR=';'
6490   else
6491     PATH_SEPARATOR=:
6492   fi
6493   rm -f conf$$.sh
6494 fi
6495
6496 # Find out how to test for executable files. Don't use a zero-byte file,
6497 # as systems may use methods other than mode bits to determine executability.
6498 cat >conf$$.file <<_ASEOF
6499 #! /bin/sh
6500 exit 0
6501 _ASEOF
6502 chmod +x conf$$.file
6503 if test -x conf$$.file >/dev/null 2>&1; then
6504   ac_executable_p="test -x"
6505 else
6506   ac_executable_p="test -f"
6507 fi
6508 rm -f conf$$.file
6509
6510 # Extract the first word of "valgrind", so it can be a program name with args.
6511 set dummy valgrind; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   case "$valgrind_path" in
6518   [\\/]* | ?:[\\/]*)
6519     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6520     ;;
6521   *)
6522     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6523     for ac_dir in $PATH; do
6524       IFS="$ac_save_IFS"
6525       test -z "$ac_dir" && ac_dir=.
6526       for ac_exec_ext in '' $ac_executable_extensions; do
6527         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6528           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6529             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6530             break 2
6531           fi
6532         fi
6533       done
6534     done
6535     IFS="$ac_save_IFS"
6536     ;;
6537 esac
6538 fi
6539 valgrind_path="$ac_cv_path_valgrind_path"
6540 if test -n "$valgrind_path"; then
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6542 $as_echo "$valgrind_path" >&6; }
6543 else
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548   if test "x$valgrind_path" = "x" \
6549     || (test $have_valgrind_h = no \
6550         && test $gcc_cv_header_memcheck_h = no \
6551         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6552         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6553   fi
6554   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6555   valgrind_command="$valgrind_path -q"
6556
6557 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6558
6559   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6560
6561 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6562
6563   fi
6564   if test $gcc_cv_header_memcheck_h = yes; then
6565
6566 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6567
6568   fi
6569 fi
6570
6571
6572
6573 # Enable code coverage collection
6574 # Check whether --enable-coverage was given.
6575 if test "${enable_coverage+set}" = set; then :
6576   enableval=$enable_coverage; case "${enableval}" in
6577   yes|noopt)
6578     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6579     ;;
6580   opt)
6581     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6582     ;;
6583   no)
6584     # a.k.a. --disable-coverage
6585     coverage_flags=""
6586     ;;
6587   *)
6588     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6589     ;;
6590 esac
6591 else
6592   coverage_flags=""
6593 fi
6594
6595
6596
6597 # Check whether --enable-gather-detailed-mem-stats was given.
6598 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6599   enableval=$enable_gather_detailed_mem_stats;
6600 else
6601   enable_gather_detailed_mem_stats=no
6602 fi
6603
6604 if test x$enable_gather_detailed_mem_stats = xyes ; then
6605
6606 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6607
6608 fi
6609
6610 # -------------------------------
6611 # Miscenalleous configure options
6612 # -------------------------------
6613
6614 # See if we are building gcc with C++.
6615 # Check whether --enable-build-with-cxx was given.
6616 if test "${enable_build_with_cxx+set}" = set; then :
6617   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6618 else
6619   ENABLE_BUILD_WITH_CXX=no
6620 fi
6621
6622
6623
6624 # With stabs
6625
6626 # Check whether --with-stabs was given.
6627 if test "${with_stabs+set}" = set; then :
6628   withval=$with_stabs; stabs="$with_stabs"
6629 else
6630   stabs=no
6631 fi
6632
6633
6634 # Determine whether or not multilibs are enabled.
6635 # Check whether --enable-multilib was given.
6636 if test "${enable_multilib+set}" = set; then :
6637   enableval=$enable_multilib;
6638 else
6639   enable_multilib=yes
6640 fi
6641
6642
6643
6644 # Enable __cxa_atexit for C++.
6645 # Check whether --enable-__cxa_atexit was given.
6646 if test "${enable___cxa_atexit+set}" = set; then :
6647   enableval=$enable___cxa_atexit;
6648 fi
6649
6650
6651 # Enable C extension for decimal float if target supports it.
6652
6653 # Check whether --enable-decimal-float was given.
6654 if test "${enable_decimal_float+set}" = set; then :
6655   enableval=$enable_decimal_float;
6656   case $enable_decimal_float in
6657     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6658     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6659 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6660   esac
6661
6662 else
6663
6664   case $target in
6665     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux*)
6666       enable_decimal_float=yes
6667       ;;
6668     *)
6669       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6670 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6671       enable_decimal_float=no
6672       ;;
6673   esac
6674
6675 fi
6676
6677
6678 # x86's use BID format instead of DPD
6679 case x$enable_decimal_float in
6680   xyes)
6681     case $target in
6682       i?86*-*-* | x86_64*-*-*)
6683         enable_decimal_float=bid
6684         ;;
6685       *)
6686         enable_decimal_float=dpd
6687         ;;
6688     esac
6689     default_decimal_float=$enable_decimal_float
6690     ;;
6691   xno)
6692     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6693     # dependency on libdecnumber.
6694     default_decimal_float=dpd
6695     ;;
6696 esac
6697
6698
6699
6700
6701 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6702
6703 cat >>confdefs.h <<_ACEOF
6704 #define ENABLE_DECIMAL_FLOAT $dfp
6705 _ACEOF
6706
6707
6708 # Use default_decimal_float for dependency.
6709 enable_decimal_float=$default_decimal_float
6710
6711 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6712
6713 cat >>confdefs.h <<_ACEOF
6714 #define ENABLE_DECIMAL_BID_FORMAT $bid
6715 _ACEOF
6716
6717
6718 # Enable C extension for fixed-point arithmetic.
6719 # Check whether --enable-fixed-point was given.
6720 if test "${enable_fixed_point+set}" = set; then :
6721   enableval=$enable_fixed_point;
6722
6723 else
6724
6725   case $target in
6726     mips*-*-*)
6727       case $host in
6728         mips*-sgi-irix*)
6729           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6730 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6731           enable_fixed_point=no
6732           ;;
6733         *)
6734           enable_fixed_point=yes
6735           ;;
6736       esac
6737       ;;
6738     *)
6739       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6740 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6741       enable_fixed_point=no
6742       ;;
6743   esac
6744
6745 fi
6746
6747
6748
6749 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6750
6751 cat >>confdefs.h <<_ACEOF
6752 #define ENABLE_FIXED_POINT $fixedpoint
6753 _ACEOF
6754
6755
6756 # Enable threads
6757 # Pass with no value to take the default
6758 # Pass with a value to specify a thread package
6759 # Check whether --enable-threads was given.
6760 if test "${enable_threads+set}" = set; then :
6761   enableval=$enable_threads;
6762 else
6763   enable_threads=''
6764 fi
6765
6766
6767 # Check whether --enable-tls was given.
6768 if test "${enable_tls+set}" = set; then :
6769   enableval=$enable_tls;
6770   case $enable_tls in
6771     yes | no) ;;
6772     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6773 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6774   esac
6775
6776 else
6777   enable_tls=''
6778 fi
6779
6780
6781 # Check whether --enable-objc-gc was given.
6782 if test "${enable_objc_gc+set}" = set; then :
6783   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6784         objc_boehm_gc=''
6785 else
6786         objc_boehm_gc=1
6787 fi
6788 else
6789   objc_boehm_gc=''
6790 fi
6791
6792
6793
6794 # Check whether --with-dwarf2 was given.
6795 if test "${with_dwarf2+set}" = set; then :
6796   withval=$with_dwarf2; dwarf2="$with_dwarf2"
6797 else
6798   dwarf2=no
6799 fi
6800
6801
6802 # Check whether --enable-shared was given.
6803 if test "${enable_shared+set}" = set; then :
6804   enableval=$enable_shared;
6805   case $enable_shared in
6806   yes | no) ;;
6807   *)
6808     enable_shared=no
6809     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6810     for pkg in $enableval; do
6811       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6812         enable_shared=yes
6813       fi
6814     done
6815     IFS="$ac_save_ifs"
6816     ;;
6817   esac
6818
6819 else
6820   enable_shared=yes
6821 fi
6822
6823
6824
6825
6826 # Check whether --with-build-sysroot was given.
6827 if test "${with_build_sysroot+set}" = set; then :
6828   withval=$with_build_sysroot;
6829 fi
6830
6831
6832
6833 # Check whether --with-sysroot was given.
6834 if test "${with_sysroot+set}" = set; then :
6835   withval=$with_sysroot;
6836  case ${with_sysroot} in
6837  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6838  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6839  esac
6840
6841  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6842  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6843
6844  if test "x$prefix" = xNONE; then
6845   test_prefix=/usr/local
6846  else
6847   test_prefix=$prefix
6848  fi
6849  if test "x$exec_prefix" = xNONE; then
6850   test_exec_prefix=$test_prefix
6851  else
6852   test_exec_prefix=$exec_prefix
6853  fi
6854  case ${TARGET_SYSTEM_ROOT} in
6855  "${test_prefix}"|"${test_prefix}/"*|\
6856  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6857  '${prefix}'|'${prefix}/'*|\
6858  '${exec_prefix}'|'${exec_prefix}/'*)
6859    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6860    TARGET_SYSTEM_ROOT_DEFINE="$t"
6861    ;;
6862  esac
6863
6864 else
6865
6866  TARGET_SYSTEM_ROOT=
6867  TARGET_SYSTEM_ROOT_DEFINE=
6868  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6869
6870 fi
6871
6872
6873
6874
6875
6876
6877 # Check whether --with-specs was given.
6878 if test "${with_specs+set}" = set; then :
6879   withval=$with_specs; CONFIGURE_SPECS=$withval
6880 else
6881   CONFIGURE_SPECS=
6882
6883 fi
6884
6885
6886
6887 # Build with intermodule optimisations
6888 # Check whether --enable-intermodule was given.
6889 if test "${enable_intermodule+set}" = set; then :
6890   enableval=$enable_intermodule; case ${enable_intermodule} in
6891   yes) onestep="-onestep";;
6892   *) onestep="";;
6893 esac
6894 else
6895   onestep=""
6896 fi
6897
6898
6899
6900
6901
6902 # Check whether --with-pkgversion was given.
6903 if test "${with_pkgversion+set}" = set; then :
6904   withval=$with_pkgversion; case "$withval" in
6905       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6906       no)  PKGVERSION= ;;
6907       *)   PKGVERSION="($withval) " ;;
6908      esac
6909 else
6910   PKGVERSION="(GCC) "
6911
6912 fi
6913
6914
6915
6916
6917
6918 # Check whether --with-bugurl was given.
6919 if test "${with_bugurl+set}" = set; then :
6920   withval=$with_bugurl; case "$withval" in
6921       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6922       no)  BUGURL=
6923            ;;
6924       *)   BUGURL="$withval"
6925            ;;
6926      esac
6927 else
6928   BUGURL="http://gcc.gnu.org/bugs.html"
6929
6930 fi
6931
6932   case ${BUGURL} in
6933   "")
6934     REPORT_BUGS_TO=
6935     REPORT_BUGS_TEXI=
6936     ;;
6937   *)
6938     REPORT_BUGS_TO="<$BUGURL>"
6939     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6940     ;;
6941   esac;
6942
6943
6944
6945
6946 # Sanity check enable_languages in case someone does not run the toplevel
6947 # configure # script.
6948 # Check whether --enable-languages was given.
6949 if test "${enable_languages+set}" = set; then :
6950   enableval=$enable_languages; case ,${enable_languages}, in
6951        ,,|,yes,)
6952                 # go safe -- we cannot be much sure without the toplevel
6953                 # configure's
6954                 # analysis of which target libs are present and usable
6955                 enable_languages=c
6956                 ;;
6957          *,all,*)
6958                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6959                 ;;
6960         *,c,*)
6961                 ;;
6962         *)
6963                 enable_languages=c,${enable_languages}
6964                 ;;
6965 esac
6966 else
6967   enable_languages=c
6968 fi
6969
6970
6971
6972 # Check whether --with-multilib-list was given.
6973 if test "${with_multilib_list+set}" = set; then :
6974   withval=$with_multilib_list; :
6975 else
6976   with_multilib_list=default
6977 fi
6978
6979
6980 # -------------------------
6981 # Checks for other programs
6982 # -------------------------
6983
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6985 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6986 set x ${MAKE-make}
6987 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6988 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6989   $as_echo_n "(cached) " >&6
6990 else
6991   cat >conftest.make <<\_ACEOF
6992 SHELL = /bin/sh
6993 all:
6994         @echo '@@@%%%=$(MAKE)=@@@%%%'
6995 _ACEOF
6996 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6997 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6998   *@@@%%%=?*=@@@%%%*)
6999     eval ac_cv_prog_make_${ac_make}_set=yes;;
7000   *)
7001     eval ac_cv_prog_make_${ac_make}_set=no;;
7002 esac
7003 rm -f conftest.make
7004 fi
7005 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7007 $as_echo "yes" >&6; }
7008   SET_MAKE=
7009 else
7010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7012   SET_MAKE="MAKE=${MAKE-make}"
7013 fi
7014
7015
7016 # Find some useful tools
7017 for ac_prog in gawk mawk nawk awk
7018 do
7019   # Extract the first word of "$ac_prog", so it can be a program name with args.
7020 set dummy $ac_prog; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if test "${ac_cv_prog_AWK+set}" = set; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   if test -n "$AWK"; then
7027   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034     for ac_exec_ext in '' $ac_executable_extensions; do
7035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036     ac_cv_prog_AWK="$ac_prog"
7037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041   done
7042 IFS=$as_save_IFS
7043
7044 fi
7045 fi
7046 AWK=$ac_cv_prog_AWK
7047 if test -n "$AWK"; then
7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7049 $as_echo "$AWK" >&6; }
7050 else
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054
7055
7056   test -n "$AWK" && break
7057 done
7058
7059 # We need awk to create options.c and options.h.
7060 # Bail out if it's missing.
7061 case ${AWK} in
7062   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7063 esac
7064
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7066 $as_echo_n "checking whether ln -s works... " >&6; }
7067 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7068   $as_echo_n "(cached) " >&6
7069 else
7070   rm -f conftestdata_t
7071 echo >conftestdata_f
7072 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7073 then
7074   gcc_cv_prog_LN_S="ln -s"
7075 else
7076   if ln conftestdata_f conftestdata_t 2>/dev/null
7077   then
7078     gcc_cv_prog_LN_S=ln
7079   else
7080     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7081     then
7082       gcc_cv_prog_LN_S="cp -p"
7083     else
7084       gcc_cv_prog_LN_S=cp
7085     fi
7086   fi
7087 fi
7088 rm -f conftestdata_f conftestdata_t
7089
7090 fi
7091 LN_S="$gcc_cv_prog_LN_S"
7092 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7094 $as_echo "yes" >&6; }
7095 else
7096   if test "$gcc_cv_prog_LN_S" = "ln"; then
7097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7098 $as_echo "no, using ln" >&6; }
7099   else
7100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7101 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7102   fi
7103 fi
7104
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7106 $as_echo_n "checking whether ln works... " >&6; }
7107 if test "${acx_cv_prog_LN+set}" = set; then :
7108   $as_echo_n "(cached) " >&6
7109 else
7110   rm -f conftestdata_t
7111 echo >conftestdata_f
7112 if ln conftestdata_f conftestdata_t 2>/dev/null
7113 then
7114   acx_cv_prog_LN=ln
7115 else
7116   acx_cv_prog_LN=no
7117 fi
7118 rm -f conftestdata_f conftestdata_t
7119
7120 fi
7121 if test $acx_cv_prog_LN = no; then
7122   LN="$LN_S"
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7124 $as_echo "no, using $LN" >&6; }
7125 else
7126   LN="$acx_cv_prog_LN"
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7128 $as_echo "yes" >&6; }
7129 fi
7130
7131 if test -n "$ac_tool_prefix"; then
7132   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7137   $as_echo_n "(cached) " >&6
7138 else
7139   if test -n "$RANLIB"; then
7140   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147     for ac_exec_ext in '' $ac_executable_extensions; do
7148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154   done
7155 IFS=$as_save_IFS
7156
7157 fi
7158 fi
7159 RANLIB=$ac_cv_prog_RANLIB
7160 if test -n "$RANLIB"; then
7161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7162 $as_echo "$RANLIB" >&6; }
7163 else
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7166 fi
7167
7168
7169 fi
7170 if test -z "$ac_cv_prog_RANLIB"; then
7171   ac_ct_RANLIB=$RANLIB
7172   # Extract the first word of "ranlib", so it can be a program name with args.
7173 set dummy ranlib; ac_word=$2
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175 $as_echo_n "checking for $ac_word... " >&6; }
7176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7177   $as_echo_n "(cached) " >&6
7178 else
7179   if test -n "$ac_ct_RANLIB"; then
7180   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185   IFS=$as_save_IFS
7186   test -z "$as_dir" && as_dir=.
7187     for ac_exec_ext in '' $ac_executable_extensions; do
7188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7189     ac_cv_prog_ac_ct_RANLIB="ranlib"
7190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191     break 2
7192   fi
7193 done
7194   done
7195 IFS=$as_save_IFS
7196
7197 fi
7198 fi
7199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7200 if test -n "$ac_ct_RANLIB"; then
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7202 $as_echo "$ac_ct_RANLIB" >&6; }
7203 else
7204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 $as_echo "no" >&6; }
7206 fi
7207
7208   if test "x$ac_ct_RANLIB" = x; then
7209     RANLIB=":"
7210   else
7211     case $cross_compiling:$ac_tool_warned in
7212 yes:)
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7215 ac_tool_warned=yes ;;
7216 esac
7217     RANLIB=$ac_ct_RANLIB
7218   fi
7219 else
7220   RANLIB="$ac_cv_prog_RANLIB"
7221 fi
7222
7223 case "${host}" in
7224 *-*-darwin*)
7225   # By default, the Darwin ranlib will not treat common symbols as
7226   # definitions when  building the archive table of contents.  Other
7227   # ranlibs do that; pass an option to the Darwin ranlib that makes
7228   # it behave similarly.
7229   ranlib_flags="-c"
7230   ;;
7231 *)
7232   ranlib_flags=""
7233 esac
7234
7235
7236 # Find a good install program.  We prefer a C program (faster),
7237 # so one script is as good as another.  But avoid the broken or
7238 # incompatible versions:
7239 # SysV /etc/install, /usr/sbin/install
7240 # SunOS /usr/etc/install
7241 # IRIX /sbin/install
7242 # AIX /bin/install
7243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7245 # ./install, which can be erroneously created by make from ./install.sh.
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7247 $as_echo_n "checking for a BSD compatible install... " >&6; }
7248 if test -z "$INSTALL"; then
7249 if test "${ac_cv_path_install+set}" = set; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7253   for ac_dir in $PATH; do
7254     # Account for people who put trailing slashes in PATH elements.
7255     case "$ac_dir/" in
7256     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7257     *)
7258       # OSF1 and SCO ODT 3.0 have their own names for install.
7259       for ac_prog in ginstall scoinst install; do
7260         if test -f $ac_dir/$ac_prog; then
7261           if test $ac_prog = install &&
7262             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7263             # AIX install.  It has an incompatible calling convention.
7264             # OSF/1 installbsd also uses dspmsg, but is usable.
7265             :
7266           else
7267             ac_cv_path_install="$ac_dir/$ac_prog -c"
7268             break 2
7269           fi
7270         fi
7271       done
7272       ;;
7273     esac
7274   done
7275   IFS="$ac_save_IFS"
7276
7277 fi
7278   if test "${ac_cv_path_install+set}" = set; then
7279     INSTALL="$ac_cv_path_install"
7280   else
7281     # As a last resort, use the slow shell script.  We don't cache a
7282     # path for INSTALL within a source directory, because that will
7283     # break other packages using the cache if that directory is
7284     # removed, or if the path is relative.
7285     INSTALL="$ac_install_sh"
7286   fi
7287 fi
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7289 $as_echo "$INSTALL" >&6; }
7290
7291 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7292 # It thinks the first close brace ends the variable substitution.
7293 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7294
7295 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7296
7297
7298 # See if cmp has --ignore-initial.
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7300 $as_echo_n "checking for cmp's capabilities... " >&6; }
7301 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7302   $as_echo_n "(cached) " >&6
7303 else
7304    echo abfoo >t1
7305   echo cdfoo >t2
7306   gcc_cv_prog_cmp_skip=slowcompare
7307   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7308     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7309       :
7310     else
7311       gcc_cv_prog_cmp_skip=gnucompare
7312     fi
7313   fi
7314   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7315     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7316       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7317         :
7318       else
7319         gcc_cv_prog_cmp_skip=fastcompare
7320       fi
7321     fi
7322   fi
7323   rm t1 t2
7324
7325 fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7327 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7328 make_compare_target=$gcc_cv_prog_cmp_skip
7329
7330
7331
7332 # See if we have the mktemp command.
7333 # Extract the first word of "mktemp", so it can be a program name with args.
7334 set dummy mktemp; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   if test -n "$have_mktemp_command"; then
7341   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348     for ac_exec_ext in '' $ac_executable_extensions; do
7349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350     ac_cv_prog_have_mktemp_command="yes"
7351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355   done
7356 IFS=$as_save_IFS
7357
7358   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7359 fi
7360 fi
7361 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7362 if test -n "$have_mktemp_command"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7364 $as_echo "$have_mktemp_command" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371
7372 # See if makeinfo has been installed and is modern enough
7373 # that we can use it.
7374
7375   # Extract the first word of "makeinfo", so it can be a program name with args.
7376 set dummy makeinfo; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7380   $as_echo_n "(cached) " >&6
7381 else
7382   if test -n "$MAKEINFO"; then
7383   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388   IFS=$as_save_IFS
7389   test -z "$as_dir" && as_dir=.
7390     for ac_exec_ext in '' $ac_executable_extensions; do
7391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7392     ac_cv_prog_MAKEINFO="makeinfo"
7393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394     break 2
7395   fi
7396 done
7397   done
7398 IFS=$as_save_IFS
7399
7400 fi
7401 fi
7402 MAKEINFO=$ac_cv_prog_MAKEINFO
7403 if test -n "$MAKEINFO"; then
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7405 $as_echo "$MAKEINFO" >&6; }
7406 else
7407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410
7411
7412   if test -n "$MAKEINFO"; then
7413     # Found it, now check the version.
7414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7415 $as_echo_n "checking for modern makeinfo... " >&6; }
7416 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7417   $as_echo_n "(cached) " >&6
7418 else
7419   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7420                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7421
7422                     case $ac_prog_version in
7423                       '')  gcc_cv_prog_makeinfo_modern=no;;
7424                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7425                       *)   gcc_cv_prog_makeinfo_modern=no;;
7426                     esac
7427
7428 fi
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7430 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7431   else
7432     gcc_cv_prog_makeinfo_modern=no
7433   fi
7434   if test $gcc_cv_prog_makeinfo_modern = no; then
7435     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7436   fi
7437
7438 if test $gcc_cv_prog_makeinfo_modern = no; then
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7440 *** Makeinfo is missing or too old.
7441 *** Info documentation will not be built." >&5
7442 $as_echo "$as_me: WARNING:
7443 *** Makeinfo is missing or too old.
7444 *** Info documentation will not be built." >&2;}
7445   BUILD_INFO=
7446 else
7447   BUILD_INFO=info
7448 fi
7449
7450
7451 # Is pod2man recent enough to regenerate manpages?
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7453 $as_echo_n "checking for recent Pod::Man... " >&6; }
7454 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7456 $as_echo "yes" >&6; }
7457   GENERATED_MANPAGES=generated-manpages
7458 else
7459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7461   GENERATED_MANPAGES=
7462 fi
7463
7464
7465 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7466
7467 # How about lex?
7468 for ac_prog in flex
7469 do
7470   # Extract the first word of "$ac_prog", so it can be a program name with args.
7471 set dummy $ac_prog; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if test "${ac_cv_prog_FLEX+set}" = set; then :
7475   $as_echo_n "(cached) " >&6
7476 else
7477   if test -n "$FLEX"; then
7478   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483   IFS=$as_save_IFS
7484   test -z "$as_dir" && as_dir=.
7485     for ac_exec_ext in '' $ac_executable_extensions; do
7486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487     ac_cv_prog_FLEX="$ac_prog"
7488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492   done
7493 IFS=$as_save_IFS
7494
7495 fi
7496 fi
7497 FLEX=$ac_cv_prog_FLEX
7498 if test -n "$FLEX"; then
7499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7500 $as_echo "$FLEX" >&6; }
7501 else
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7504 fi
7505
7506
7507   test -n "$FLEX" && break
7508 done
7509 test -n "$FLEX" || FLEX="$MISSING flex"
7510
7511
7512 # Bison?
7513 for ac_prog in bison
7514 do
7515   # Extract the first word of "$ac_prog", so it can be a program name with args.
7516 set dummy $ac_prog; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if test "${ac_cv_prog_BISON+set}" = set; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   if test -n "$BISON"; then
7523   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530     for ac_exec_ext in '' $ac_executable_extensions; do
7531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532     ac_cv_prog_BISON="$ac_prog"
7533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537   done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 BISON=$ac_cv_prog_BISON
7543 if test -n "$BISON"; then
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7545 $as_echo "$BISON" >&6; }
7546 else
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551
7552   test -n "$BISON" && break
7553 done
7554 test -n "$BISON" || BISON="$MISSING bison"
7555
7556
7557 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7558 # check for build == host before using them.
7559
7560 # NM
7561 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7562   && test -d ../binutils ; then
7563   NM='${objdir}/../binutils/nm-new'
7564 else
7565   # Extract the first word of "nm", so it can be a program name with args.
7566 set dummy nm; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if test "${ac_cv_prog_NM+set}" = set; then :
7570   $as_echo_n "(cached) " >&6
7571 else
7572   if test -n "$NM"; then
7573   ac_cv_prog_NM="$NM" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578   IFS=$as_save_IFS
7579   test -z "$as_dir" && as_dir=.
7580     for ac_exec_ext in '' $ac_executable_extensions; do
7581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582     ac_cv_prog_NM="nm"
7583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584     break 2
7585   fi
7586 done
7587   done
7588 IFS=$as_save_IFS
7589
7590   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7591 fi
7592 fi
7593 NM=$ac_cv_prog_NM
7594 if test -n "$NM"; then
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7596 $as_echo "$NM" >&6; }
7597 else
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7600 fi
7601
7602
7603 fi
7604
7605 # AR
7606 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7607   && test -d ../binutils ; then
7608   AR='${objdir}/../binutils/ar'
7609 else
7610   # Extract the first word of "ar", so it can be a program name with args.
7611 set dummy ar; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if test "${ac_cv_prog_AR+set}" = set; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   if test -n "$AR"; then
7618   ac_cv_prog_AR="$AR" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625     for ac_exec_ext in '' $ac_executable_extensions; do
7626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627     ac_cv_prog_AR="ar"
7628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632   done
7633 IFS=$as_save_IFS
7634
7635   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7636 fi
7637 fi
7638 AR=$ac_cv_prog_AR
7639 if test -n "$AR"; then
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7641 $as_echo "$AR" >&6; }
7642 else
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7645 fi
7646
7647
7648 fi
7649
7650
7651 # --------------------
7652 # Checks for C headers
7653 # --------------------
7654
7655 # Need to reject headers which give warnings, so that the -Werror bootstrap
7656 # works later. *sigh*  This needs to come before all header checks.
7657
7658 ac_c_preproc_warn_flag=yes
7659
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7661 $as_echo_n "checking for ANSI C header files... " >&6; }
7662 if test "${ac_cv_header_stdc+set}" = set; then :
7663   $as_echo_n "(cached) " >&6
7664 else
7665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h.  */
7667 #include <stdlib.h>
7668 #include <stdarg.h>
7669 #include <string.h>
7670 #include <float.h>
7671
7672 int
7673 main ()
7674 {
7675
7676   ;
7677   return 0;
7678 }
7679 _ACEOF
7680 if ac_fn_c_try_compile "$LINENO"; then :
7681   ac_cv_header_stdc=yes
7682 else
7683   ac_cv_header_stdc=no
7684 fi
7685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686
7687 if test $ac_cv_header_stdc = yes; then
7688   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h.  */
7691 #include <string.h>
7692
7693 _ACEOF
7694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7695   $EGREP "memchr" >/dev/null 2>&1; then :
7696
7697 else
7698   ac_cv_header_stdc=no
7699 fi
7700 rm -f conftest*
7701
7702 fi
7703
7704 if test $ac_cv_header_stdc = yes; then
7705   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h.  */
7708 #include <stdlib.h>
7709
7710 _ACEOF
7711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7712   $EGREP "free" >/dev/null 2>&1; then :
7713
7714 else
7715   ac_cv_header_stdc=no
7716 fi
7717 rm -f conftest*
7718
7719 fi
7720
7721 if test $ac_cv_header_stdc = yes; then
7722   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7723   if test "$cross_compiling" = yes; then :
7724   :
7725 else
7726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h.  */
7728 #include <ctype.h>
7729 #include <stdlib.h>
7730 #if ((' ' & 0x0FF) == 0x020)
7731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7733 #else
7734 # define ISLOWER(c) \
7735                    (('a' <= (c) && (c) <= 'i') \
7736                      || ('j' <= (c) && (c) <= 'r') \
7737                      || ('s' <= (c) && (c) <= 'z'))
7738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7739 #endif
7740
7741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7742 int
7743 main ()
7744 {
7745   int i;
7746   for (i = 0; i < 256; i++)
7747     if (XOR (islower (i), ISLOWER (i))
7748         || toupper (i) != TOUPPER (i))
7749       return 2;
7750   return 0;
7751 }
7752 _ACEOF
7753 if ac_fn_c_try_run "$LINENO"; then :
7754
7755 else
7756   ac_cv_header_stdc=no
7757 fi
7758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7759   conftest.$ac_objext conftest.beam conftest.$ac_ext
7760 fi
7761
7762 fi
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7765 $as_echo "$ac_cv_header_stdc" >&6; }
7766 if test $ac_cv_header_stdc = yes; then
7767
7768 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7769
7770 fi
7771
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7773 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7774 if test "${ac_cv_header_time+set}" = set; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h.  */
7779 #include <sys/types.h>
7780 #include <sys/time.h>
7781 #include <time.h>
7782
7783 int
7784 main ()
7785 {
7786 if ((struct tm *) 0)
7787 return 0;
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793   ac_cv_header_time=yes
7794 else
7795   ac_cv_header_time=no
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7800 $as_echo "$ac_cv_header_time" >&6; }
7801 if test $ac_cv_header_time = yes; then
7802
7803 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7804
7805 fi
7806
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7808 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7809 if test "${gcc_cv_header_string+set}" = set; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h.  */
7814 #include <string.h>
7815 #include <strings.h>
7816 int
7817 main ()
7818 {
7819
7820   ;
7821   return 0;
7822 }
7823 _ACEOF
7824 if ac_fn_c_try_compile "$LINENO"; then :
7825   gcc_cv_header_string=yes
7826 else
7827   gcc_cv_header_string=no
7828 fi
7829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7830 fi
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7832 $as_echo "$gcc_cv_header_string" >&6; }
7833 if test $gcc_cv_header_string = yes; then
7834
7835 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7836
7837 fi
7838
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7840 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7841 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h.  */
7846 #include <sys/types.h>
7847 #include <sys/wait.h>
7848 #ifndef WEXITSTATUS
7849 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7850 #endif
7851 #ifndef WIFEXITED
7852 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7853 #endif
7854
7855 int
7856 main ()
7857 {
7858   int s;
7859   wait (&s);
7860   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7861   ;
7862   return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_c_try_compile "$LINENO"; then :
7866   ac_cv_header_sys_wait_h=yes
7867 else
7868   ac_cv_header_sys_wait_h=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 fi
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7873 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7874 if test $ac_cv_header_sys_wait_h = yes; then
7875
7876 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7877
7878 fi
7879
7880 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7881                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7882                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
7883                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7884 do :
7885   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7886 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7887 eval as_val=\$$as_ac_Header
7888    if test "x$as_val" = x""yes; then :
7889   cat >>confdefs.h <<_ACEOF
7890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7891 _ACEOF
7892
7893 fi
7894 done
7895
7896
7897 # Check for thread headers.
7898 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7899 if test "x$ac_cv_header_thread_h" = x""yes; then :
7900   have_thread_h=yes
7901 else
7902   have_thread_h=
7903 fi
7904
7905 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7906 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7907   have_pthread_h=yes
7908 else
7909   have_pthread_h=
7910 fi
7911
7912
7913 # These tests can't be done till we know if we have limits.h.
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7915 $as_echo_n "checking for CHAR_BIT... " >&6; }
7916 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7917   $as_echo_n "(cached) " >&6
7918 else
7919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h.  */
7921 #ifdef HAVE_LIMITS_H
7922 #include <limits.h>
7923 #endif
7924 #ifdef CHAR_BIT
7925 found
7926 #endif
7927 _ACEOF
7928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7929   $EGREP "found" >/dev/null 2>&1; then :
7930   gcc_cv_decl_char_bit=yes
7931 else
7932   gcc_cv_decl_char_bit=no
7933 fi
7934 rm -f conftest*
7935
7936
7937 fi
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7939 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7940 if test $gcc_cv_decl_char_bit = no; then
7941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7942 $as_echo_n "checking number of bits in a byte... " >&6; }
7943 if test "${gcc_cv_c_nbby+set}" = set; then :
7944   $as_echo_n "(cached) " >&6
7945 else
7946   i=8
7947  gcc_cv_c_nbby=
7948  while test $i -lt 65; do
7949    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h.  */
7951
7952 int
7953 main ()
7954 {
7955 switch(0) {
7956   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7957   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7958   ; }
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 if ac_fn_c_try_compile "$LINENO"; then :
7964   gcc_cv_c_nbby=$i; break
7965 fi
7966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967    i=`expr $i + 1`
7968  done
7969  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7970
7971 fi
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7973 $as_echo "$gcc_cv_c_nbby" >&6; }
7974 if test $gcc_cv_c_nbby = failed; then
7975   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7976 else
7977
7978 cat >>confdefs.h <<_ACEOF
7979 #define CHAR_BIT $gcc_cv_c_nbby
7980 _ACEOF
7981
7982 fi
7983 fi
7984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7985 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7986 if test "${ac_cv_c_bigendian+set}" = set; then :
7987   $as_echo_n "(cached) " >&6
7988 else
7989   ac_cv_c_bigendian=unknown
7990     # See if we're dealing with a universal compiler.
7991     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h.  */
7993 #ifndef __APPLE_CC__
7994                not a universal capable compiler
7995              #endif
7996              typedef int dummy;
7997
7998 _ACEOF
7999 if ac_fn_c_try_compile "$LINENO"; then :
8000
8001         # Check for potential -arch flags.  It is not universal unless
8002         # there are at least two -arch flags with different values.
8003         ac_arch=
8004         ac_prev=
8005         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8006          if test -n "$ac_prev"; then
8007            case $ac_word in
8008              i?86 | x86_64 | ppc | ppc64)
8009                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8010                  ac_arch=$ac_word
8011                else
8012                  ac_cv_c_bigendian=universal
8013                  break
8014                fi
8015                ;;
8016            esac
8017            ac_prev=
8018          elif test "x$ac_word" = "x-arch"; then
8019            ac_prev=arch
8020          fi
8021        done
8022 fi
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024     if test $ac_cv_c_bigendian = unknown; then
8025       # See if sys/param.h defines the BYTE_ORDER macro.
8026       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h.  */
8028 #include <sys/types.h>
8029              #include <sys/param.h>
8030
8031 int
8032 main ()
8033 {
8034 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8035                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8036                      && LITTLE_ENDIAN)
8037               bogus endian macros
8038              #endif
8039
8040   ;
8041   return 0;
8042 }
8043 _ACEOF
8044 if ac_fn_c_try_compile "$LINENO"; then :
8045   # It does; now see whether it defined to BIG_ENDIAN or not.
8046          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h.  */
8048 #include <sys/types.h>
8049                 #include <sys/param.h>
8050
8051 int
8052 main ()
8053 {
8054 #if BYTE_ORDER != BIG_ENDIAN
8055                  not big endian
8056                 #endif
8057
8058   ;
8059   return 0;
8060 }
8061 _ACEOF
8062 if ac_fn_c_try_compile "$LINENO"; then :
8063   ac_cv_c_bigendian=yes
8064 else
8065   ac_cv_c_bigendian=no
8066 fi
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 fi
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070     fi
8071     if test $ac_cv_c_bigendian = unknown; then
8072       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8073       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h.  */
8075 #include <limits.h>
8076
8077 int
8078 main ()
8079 {
8080 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8081               bogus endian macros
8082              #endif
8083
8084   ;
8085   return 0;
8086 }
8087 _ACEOF
8088 if ac_fn_c_try_compile "$LINENO"; then :
8089   # It does; now see whether it defined to _BIG_ENDIAN or not.
8090          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h.  */
8092 #include <limits.h>
8093
8094 int
8095 main ()
8096 {
8097 #ifndef _BIG_ENDIAN
8098                  not big endian
8099                 #endif
8100
8101   ;
8102   return 0;
8103 }
8104 _ACEOF
8105 if ac_fn_c_try_compile "$LINENO"; then :
8106   ac_cv_c_bigendian=yes
8107 else
8108   ac_cv_c_bigendian=no
8109 fi
8110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113     fi
8114     if test $ac_cv_c_bigendian = unknown; then
8115       # Compile a test program.
8116       if test "$cross_compiling" = yes; then :
8117   # Try to guess by grepping values from an object file.
8118          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h.  */
8120 short int ascii_mm[] =
8121                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8122                 short int ascii_ii[] =
8123                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8124                 int use_ascii (int i) {
8125                   return ascii_mm[i] + ascii_ii[i];
8126                 }
8127                 short int ebcdic_ii[] =
8128                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8129                 short int ebcdic_mm[] =
8130                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8131                 int use_ebcdic (int i) {
8132                   return ebcdic_mm[i] + ebcdic_ii[i];
8133                 }
8134                 extern int foo;
8135
8136 int
8137 main ()
8138 {
8139 return use_ascii (foo) == use_ebcdic (foo);
8140   ;
8141   return 0;
8142 }
8143 _ACEOF
8144 if ac_fn_c_try_compile "$LINENO"; then :
8145   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8146               ac_cv_c_bigendian=yes
8147             fi
8148             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8149               if test "$ac_cv_c_bigendian" = unknown; then
8150                 ac_cv_c_bigendian=no
8151               else
8152                 # finding both strings is unlikely to happen, but who knows?
8153                 ac_cv_c_bigendian=unknown
8154               fi
8155             fi
8156 fi
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 else
8159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h.  */
8161 $ac_includes_default
8162 int
8163 main ()
8164 {
8165
8166              /* Are we little or big endian?  From Harbison&Steele.  */
8167              union
8168              {
8169                long int l;
8170                char c[sizeof (long int)];
8171              } u;
8172              u.l = 1;
8173              return u.c[sizeof (long int) - 1] == 1;
8174
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_run "$LINENO"; then :
8180   ac_cv_c_bigendian=no
8181 else
8182   ac_cv_c_bigendian=yes
8183 fi
8184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8185   conftest.$ac_objext conftest.beam conftest.$ac_ext
8186 fi
8187
8188     fi
8189 fi
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8191 $as_echo "$ac_cv_c_bigendian" >&6; }
8192  case $ac_cv_c_bigendian in #(
8193    yes)
8194      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8195 ;; #(
8196    no)
8197       ;; #(
8198    universal)
8199
8200 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8201
8202      ;; #(
8203    *)
8204      as_fn_error "unknown endianness
8205  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8206  esac
8207
8208
8209 # --------
8210 # UNSORTED
8211 # --------
8212
8213
8214 # These libraries may be used by collect2.
8215 # We may need a special search path to get them linked.
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8217 $as_echo_n "checking for collect2 libraries... " >&6; }
8218 if test "${gcc_cv_collect2_libs+set}" = set; then :
8219   $as_echo_n "(cached) " >&6
8220 else
8221   save_LIBS="$LIBS"
8222 for libs in '' -lld -lmld \
8223                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8224                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8225 do
8226         LIBS="$libs"
8227         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h.  */
8229
8230 /* Override any GCC internal prototype to avoid an error.
8231    Use char because int might match the return type of a GCC
8232    builtin and then its argument prototype would still apply.  */
8233 #ifdef __cplusplus
8234 extern "C"
8235 #endif
8236 char ldopen ();
8237 int
8238 main ()
8239 {
8240 return ldopen ();
8241   ;
8242   return 0;
8243 }
8244 _ACEOF
8245 if ac_fn_c_try_link "$LINENO"; then :
8246   gcc_cv_collect2_libs="$libs"; break
8247 fi
8248 rm -f core conftest.err conftest.$ac_objext \
8249     conftest$ac_exeext conftest.$ac_ext
8250 done
8251 LIBS="$save_LIBS"
8252 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8253 fi
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8255 $as_echo "$gcc_cv_collect2_libs" >&6; }
8256 case $gcc_cv_collect2_libs in
8257         "none required")        ;;
8258         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8259 esac
8260
8261
8262 # When building Ada code on Alpha, we need exc_resume which is usually in
8263 # -lexc.  So test for it.
8264 save_LIBS="$LIBS"
8265 LIBS=
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8267 $as_echo_n "checking for library containing exc_resume... " >&6; }
8268 if test "${ac_cv_search_exc_resume+set}" = set; then :
8269   $as_echo_n "(cached) " >&6
8270 else
8271   ac_func_search_save_LIBS=$LIBS
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h.  */
8274
8275 /* Override any GCC internal prototype to avoid an error.
8276    Use char because int might match the return type of a GCC
8277    builtin and then its argument prototype would still apply.  */
8278 #ifdef __cplusplus
8279 extern "C"
8280 #endif
8281 char exc_resume ();
8282 int
8283 main ()
8284 {
8285 return exc_resume ();
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 for ac_lib in '' exc; do
8291   if test -z "$ac_lib"; then
8292     ac_res="none required"
8293   else
8294     ac_res=-l$ac_lib
8295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8296   fi
8297   if ac_fn_c_try_link "$LINENO"; then :
8298   ac_cv_search_exc_resume=$ac_res
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext \
8301     conftest$ac_exeext
8302   if test "${ac_cv_search_exc_resume+set}" = set; then :
8303   break
8304 fi
8305 done
8306 if test "${ac_cv_search_exc_resume+set}" = set; then :
8307
8308 else
8309   ac_cv_search_exc_resume=no
8310 fi
8311 rm conftest.$ac_ext
8312 LIBS=$ac_func_search_save_LIBS
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8315 $as_echo "$ac_cv_search_exc_resume" >&6; }
8316 ac_res=$ac_cv_search_exc_resume
8317 if test "$ac_res" != no; then :
8318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8319
8320 fi
8321
8322 GNAT_LIBEXC="$LIBS"
8323 LIBS="$save_LIBS"
8324
8325
8326 # Some systems put ldexp and frexp in libm instead of libc; assume
8327 # they're both in the same place.  jcf-dump needs them.
8328 save_LIBS="$LIBS"
8329 LIBS=
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8331 $as_echo_n "checking for library containing ldexp... " >&6; }
8332 if test "${ac_cv_search_ldexp+set}" = set; then :
8333   $as_echo_n "(cached) " >&6
8334 else
8335   ac_func_search_save_LIBS=$LIBS
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h.  */
8338
8339 /* Override any GCC internal prototype to avoid an error.
8340    Use char because int might match the return type of a GCC
8341    builtin and then its argument prototype would still apply.  */
8342 #ifdef __cplusplus
8343 extern "C"
8344 #endif
8345 char ldexp ();
8346 int
8347 main ()
8348 {
8349 return ldexp ();
8350   ;
8351   return 0;
8352 }
8353 _ACEOF
8354 for ac_lib in '' m; do
8355   if test -z "$ac_lib"; then
8356     ac_res="none required"
8357   else
8358     ac_res=-l$ac_lib
8359     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8360   fi
8361   if ac_fn_c_try_link "$LINENO"; then :
8362   ac_cv_search_ldexp=$ac_res
8363 fi
8364 rm -f core conftest.err conftest.$ac_objext \
8365     conftest$ac_exeext
8366   if test "${ac_cv_search_ldexp+set}" = set; then :
8367   break
8368 fi
8369 done
8370 if test "${ac_cv_search_ldexp+set}" = set; then :
8371
8372 else
8373   ac_cv_search_ldexp=no
8374 fi
8375 rm conftest.$ac_ext
8376 LIBS=$ac_func_search_save_LIBS
8377 fi
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8379 $as_echo "$ac_cv_search_ldexp" >&6; }
8380 ac_res=$ac_cv_search_ldexp
8381 if test "$ac_res" != no; then :
8382   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8383
8384 fi
8385
8386 LDEXP_LIB="$LIBS"
8387 LIBS="$save_LIBS"
8388
8389
8390 # Use <inttypes.h> only if it exists,
8391 # doesn't clash with <sys/types.h>, and declares intmax_t.
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8393 $as_echo_n "checking for inttypes.h... " >&6; }
8394 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8395   $as_echo_n "(cached) " >&6
8396 else
8397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h.  */
8399 #include <sys/types.h>
8400 #include <inttypes.h>
8401 int
8402 main ()
8403 {
8404 intmax_t i = -1;
8405   ;
8406   return 0;
8407 }
8408 _ACEOF
8409 if ac_fn_c_try_compile "$LINENO"; then :
8410   gcc_cv_header_inttypes_h=yes
8411 else
8412   gcc_cv_header_inttypes_h=no
8413 fi
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 fi
8416
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8418 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8419 if test $gcc_cv_header_inttypes_h = yes; then
8420
8421 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8422
8423 fi
8424
8425
8426
8427 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8428         sysconf strsignal getrusage nl_langinfo \
8429         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8430         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
8431 do :
8432   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8433 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8434 eval as_val=\$$as_ac_var
8435    if test "x$as_val" = x""yes; then :
8436   cat >>confdefs.h <<_ACEOF
8437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8438 _ACEOF
8439
8440 fi
8441 done
8442
8443
8444 save_CPPFLAGS="$CPPFLAGS"
8445 save_LIBS="$LIBS"
8446 LIBS="$LIBS $LIBELFLIBS"
8447 for ac_func in elf_getshdrstrndx
8448 do :
8449   ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8450 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8451   cat >>confdefs.h <<_ACEOF
8452 #define HAVE_ELF_GETSHDRSTRNDX 1
8453 _ACEOF
8454
8455 else
8456   for ac_func in elf_getshstrndx
8457 do :
8458   ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8459 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8460   cat >>confdefs.h <<_ACEOF
8461 #define HAVE_ELF_GETSHSTRNDX 1
8462 _ACEOF
8463  if test "$cross_compiling" = yes; then :
8464   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8466 as_fn_error "cannot run test program while cross compiling
8467 See \`config.log' for more details." "$LINENO" 5; }
8468 else
8469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h.  */
8471 #include <stdlib.h>
8472 #include <libelf.h>
8473 int main()
8474 {
8475   return elf_getshstrndx (NULL, 0) == 0;
8476 }
8477 _ACEOF
8478 if ac_fn_c_try_run "$LINENO"; then :
8479
8480 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8481
8482 fi
8483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8484   conftest.$ac_objext conftest.beam conftest.$ac_ext
8485 fi
8486
8487 fi
8488 done
8489
8490
8491 fi
8492 done
8493
8494 LIBS="$save_LIBS"
8495 CPPFLAGS="$save_CPPFLAGS"
8496
8497 if test x$ac_cv_func_mbstowcs = xyes; then
8498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8499 $as_echo_n "checking whether mbstowcs works... " >&6; }
8500 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8501   $as_echo_n "(cached) " >&6
8502 else
8503       if test "$cross_compiling" = yes; then :
8504   gcc_cv_func_mbstowcs_works=yes
8505 else
8506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h.  */
8508 #include <stdlib.h>
8509 int main()
8510 {
8511   mbstowcs(0, "", 0);
8512   return 0;
8513 }
8514 _ACEOF
8515 if ac_fn_c_try_run "$LINENO"; then :
8516   gcc_cv_func_mbstowcs_works=yes
8517 else
8518   gcc_cv_func_mbstowcs_works=no
8519 fi
8520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8521   conftest.$ac_objext conftest.beam conftest.$ac_ext
8522 fi
8523
8524 fi
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8526 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8527   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8528
8529 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8530
8531   fi
8532 fi
8533
8534 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8535 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8536
8537 else
8538
8539 cat >>confdefs.h <<_ACEOF
8540 #define ssize_t int
8541 _ACEOF
8542
8543 fi
8544
8545 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8546 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8547
8548 else
8549
8550 cat >>confdefs.h <<_ACEOF
8551 #define caddr_t char *
8552 _ACEOF
8553
8554 fi
8555
8556
8557
8558 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8559 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8560   gcc_header_sys_mman_h=yes
8561 else
8562   gcc_header_sys_mman_h=no
8563 fi
8564
8565 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8566 if test "x$ac_cv_func_mmap" = x""yes; then :
8567   gcc_func_mmap=yes
8568 else
8569   gcc_func_mmap=no
8570 fi
8571
8572 if test "$gcc_header_sys_mman_h" != yes \
8573  || test "$gcc_func_mmap" != yes; then
8574    gcc_cv_func_mmap_file=no
8575    gcc_cv_func_mmap_dev_zero=no
8576    gcc_cv_func_mmap_anon=no
8577 else
8578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8579 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8580 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8581   $as_echo_n "(cached) " >&6
8582 else
8583   # Add a system to this blacklist if
8584    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8585    # memory area containing the same data that you'd get if you applied
8586    # read() to the same fd.  The only system known to have a problem here
8587    # is VMS, where text files have record structure.
8588    case "$host_os" in
8589      vms* | ultrix*)
8590         gcc_cv_func_mmap_file=no ;;
8591      *)
8592         gcc_cv_func_mmap_file=yes;;
8593    esac
8594 fi
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8596 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8597    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8598 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8599 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8600   $as_echo_n "(cached) " >&6
8601 else
8602   # Add a system to this blacklist if it has mmap() but /dev/zero
8603    # does not exist, or if mmapping /dev/zero does not give anonymous
8604    # zeroed pages with both the following properties:
8605    # 1. If you map N consecutive pages in with one call, and then
8606    #    unmap any subset of those pages, the pages that were not
8607    #    explicitly unmapped remain accessible.
8608    # 2. If you map two adjacent blocks of memory and then unmap them
8609    #    both at once, they must both go away.
8610    # Systems known to be in this category are Windows (all variants),
8611    # VMS, and Darwin.
8612    case "$host_os" in
8613      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8614         gcc_cv_func_mmap_dev_zero=no ;;
8615      *)
8616         gcc_cv_func_mmap_dev_zero=yes;;
8617    esac
8618 fi
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8620 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8621
8622    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8624 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8625 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8626   $as_echo_n "(cached) " >&6
8627 else
8628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h.  */
8630 #include <sys/types.h>
8631 #include <sys/mman.h>
8632 #include <unistd.h>
8633
8634 #ifndef MAP_ANONYMOUS
8635 #define MAP_ANONYMOUS MAP_ANON
8636 #endif
8637
8638 int
8639 main ()
8640 {
8641 int n = MAP_ANONYMOUS;
8642   ;
8643   return 0;
8644 }
8645 _ACEOF
8646 if ac_fn_c_try_compile "$LINENO"; then :
8647   gcc_cv_decl_map_anon=yes
8648 else
8649   gcc_cv_decl_map_anon=no
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 fi
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8654 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8655
8656    if test $gcc_cv_decl_map_anon = no; then
8657      gcc_cv_func_mmap_anon=no
8658    else
8659      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8660 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8661 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8662   $as_echo_n "(cached) " >&6
8663 else
8664   # Add a system to this blacklist if it has mmap() and MAP_ANON or
8665    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8666    # doesn't give anonymous zeroed pages with the same properties listed
8667    # above for use of /dev/zero.
8668    # Systems known to be in this category are Windows, VMS, and SCO Unix.
8669    case "$host_os" in
8670      vms* | cygwin* | pe | mingw* | sco* | udk* )
8671         gcc_cv_func_mmap_anon=no ;;
8672      *)
8673         gcc_cv_func_mmap_anon=yes;;
8674    esac
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8677 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8678    fi
8679 fi
8680
8681 if test $gcc_cv_func_mmap_file = yes; then
8682
8683 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8684
8685 fi
8686 if test $gcc_cv_func_mmap_dev_zero = yes; then
8687
8688 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8689
8690 fi
8691 if test $gcc_cv_func_mmap_anon = yes; then
8692
8693 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8694
8695 fi
8696
8697
8698 case "${host}" in
8699 *-*-*vms*)
8700   # Under VMS, vfork works very differently than on Unix. The standard test
8701   # won't work, and it isn't easily adaptable. It makes more sense to
8702   # just force it.
8703   ac_cv_func_vfork_works=yes
8704   ;;
8705 esac
8706 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8707 if test "x$ac_cv_type_pid_t" = x""yes; then :
8708
8709 else
8710
8711 cat >>confdefs.h <<_ACEOF
8712 #define pid_t int
8713 _ACEOF
8714
8715 fi
8716
8717 for ac_header in vfork.h
8718 do :
8719   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8720 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8721   cat >>confdefs.h <<_ACEOF
8722 #define HAVE_VFORK_H 1
8723 _ACEOF
8724
8725 fi
8726 done
8727
8728 for ac_func in fork vfork
8729 do :
8730   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8731 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8732 eval as_val=\$$as_ac_var
8733    if test "x$as_val" = x""yes; then :
8734   cat >>confdefs.h <<_ACEOF
8735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8736 _ACEOF
8737
8738 fi
8739 done
8740
8741 if test "x$ac_cv_func_fork" = xyes; then
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8743 $as_echo_n "checking for working fork... " >&6; }
8744 if test "${ac_cv_func_fork_works+set}" = set; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   if test "$cross_compiling" = yes; then :
8748   ac_cv_func_fork_works=cross
8749 else
8750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h.  */
8752 $ac_includes_default
8753 int
8754 main ()
8755 {
8756
8757           /* By Ruediger Kuhlmann. */
8758           return fork () < 0;
8759
8760   ;
8761   return 0;
8762 }
8763 _ACEOF
8764 if ac_fn_c_try_run "$LINENO"; then :
8765   ac_cv_func_fork_works=yes
8766 else
8767   ac_cv_func_fork_works=no
8768 fi
8769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8770   conftest.$ac_objext conftest.beam conftest.$ac_ext
8771 fi
8772
8773 fi
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8775 $as_echo "$ac_cv_func_fork_works" >&6; }
8776
8777 else
8778   ac_cv_func_fork_works=$ac_cv_func_fork
8779 fi
8780 if test "x$ac_cv_func_fork_works" = xcross; then
8781   case $host in
8782     *-*-amigaos* | *-*-msdosdjgpp*)
8783       # Override, as these systems have only a dummy fork() stub
8784       ac_cv_func_fork_works=no
8785       ;;
8786     *)
8787       ac_cv_func_fork_works=yes
8788       ;;
8789   esac
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8791 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8792 fi
8793 ac_cv_func_vfork_works=$ac_cv_func_vfork
8794 if test "x$ac_cv_func_vfork" = xyes; then
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8796 $as_echo_n "checking for working vfork... " >&6; }
8797 if test "${ac_cv_func_vfork_works+set}" = set; then :
8798   $as_echo_n "(cached) " >&6
8799 else
8800   if test "$cross_compiling" = yes; then :
8801   ac_cv_func_vfork_works=cross
8802 else
8803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h.  */
8805 /* Thanks to Paul Eggert for this test.  */
8806 $ac_includes_default
8807 #include <sys/wait.h>
8808 #ifdef HAVE_VFORK_H
8809 # include <vfork.h>
8810 #endif
8811 /* On some sparc systems, changes by the child to local and incoming
8812    argument registers are propagated back to the parent.  The compiler
8813    is told about this with #include <vfork.h>, but some compilers
8814    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8815    static variable whose address is put into a register that is
8816    clobbered by the vfork.  */
8817 static void
8818 #ifdef __cplusplus
8819 sparc_address_test (int arg)
8820 # else
8821 sparc_address_test (arg) int arg;
8822 #endif
8823 {
8824   static pid_t child;
8825   if (!child) {
8826     child = vfork ();
8827     if (child < 0) {
8828       perror ("vfork");
8829       _exit(2);
8830     }
8831     if (!child) {
8832       arg = getpid();
8833       write(-1, "", 0);
8834       _exit (arg);
8835     }
8836   }
8837 }
8838
8839 int
8840 main ()
8841 {
8842   pid_t parent = getpid ();
8843   pid_t child;
8844
8845   sparc_address_test (0);
8846
8847   child = vfork ();
8848
8849   if (child == 0) {
8850     /* Here is another test for sparc vfork register problems.  This
8851        test uses lots of local variables, at least as many local
8852        variables as main has allocated so far including compiler
8853        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8854        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8855        reuse the register of parent for one of the local variables,
8856        since it will think that parent can't possibly be used any more
8857        in this routine.  Assigning to the local variable will thus
8858        munge parent in the parent process.  */
8859     pid_t
8860       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8861       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8862     /* Convince the compiler that p..p7 are live; otherwise, it might
8863        use the same hardware register for all 8 local variables.  */
8864     if (p != p1 || p != p2 || p != p3 || p != p4
8865         || p != p5 || p != p6 || p != p7)
8866       _exit(1);
8867
8868     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8869        from child file descriptors.  If the child closes a descriptor
8870        before it execs or exits, this munges the parent's descriptor
8871        as well.  Test for this by closing stdout in the child.  */
8872     _exit(close(fileno(stdout)) != 0);
8873   } else {
8874     int status;
8875     struct stat st;
8876
8877     while (wait(&status) != child)
8878       ;
8879     return (
8880          /* Was there some problem with vforking?  */
8881          child < 0
8882
8883          /* Did the child fail?  (This shouldn't happen.)  */
8884          || status
8885
8886          /* Did the vfork/compiler bug occur?  */
8887          || parent != getpid()
8888
8889          /* Did the file descriptor bug occur?  */
8890          || fstat(fileno(stdout), &st) != 0
8891          );
8892   }
8893 }
8894 _ACEOF
8895 if ac_fn_c_try_run "$LINENO"; then :
8896   ac_cv_func_vfork_works=yes
8897 else
8898   ac_cv_func_vfork_works=no
8899 fi
8900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8901   conftest.$ac_objext conftest.beam conftest.$ac_ext
8902 fi
8903
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8906 $as_echo "$ac_cv_func_vfork_works" >&6; }
8907
8908 fi;
8909 if test "x$ac_cv_func_fork_works" = xcross; then
8910   ac_cv_func_vfork_works=$ac_cv_func_vfork
8911   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8912 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8913 fi
8914
8915 if test "x$ac_cv_func_vfork_works" = xyes; then
8916
8917 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8918
8919 else
8920
8921 $as_echo "#define vfork fork" >>confdefs.h
8922
8923 fi
8924 if test "x$ac_cv_func_fork_works" = xyes; then
8925
8926 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8927
8928 fi
8929
8930
8931
8932       if test "X$prefix" = "XNONE"; then
8933     acl_final_prefix="$ac_default_prefix"
8934   else
8935     acl_final_prefix="$prefix"
8936   fi
8937   if test "X$exec_prefix" = "XNONE"; then
8938     acl_final_exec_prefix='${prefix}'
8939   else
8940     acl_final_exec_prefix="$exec_prefix"
8941   fi
8942   acl_save_prefix="$prefix"
8943   prefix="$acl_final_prefix"
8944   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8945   prefix="$acl_save_prefix"
8946
8947
8948 # Check whether --with-gnu-ld was given.
8949 if test "${with_gnu_ld+set}" = set; then :
8950   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8951 else
8952   with_gnu_ld=no
8953 fi
8954
8955 # Prepare PATH_SEPARATOR.
8956 # The user is always right.
8957 if test "${PATH_SEPARATOR+set}" != set; then
8958   echo "#! /bin/sh" >conf$$.sh
8959   echo  "exit 0"   >>conf$$.sh
8960   chmod +x conf$$.sh
8961   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8962     PATH_SEPARATOR=';'
8963   else
8964     PATH_SEPARATOR=:
8965   fi
8966   rm -f conf$$.sh
8967 fi
8968 ac_prog=ld
8969 if test "$GCC" = yes; then
8970   # Check if gcc -print-prog-name=ld gives a path.
8971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8972 $as_echo_n "checking for ld used by GCC... " >&6; }
8973   case $host in
8974   *-*-mingw*)
8975     # gcc leaves a trailing carriage return which upsets mingw
8976     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8977   *)
8978     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8979   esac
8980   case $ac_prog in
8981     # Accept absolute paths.
8982     [\\/]* | [A-Za-z]:[\\/]*)
8983       re_direlt='/[^/][^/]*/\.\./'
8984       # Canonicalize the path of ld
8985       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8986       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8987         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8988       done
8989       test -z "$LD" && LD="$ac_prog"
8990       ;;
8991   "")
8992     # If it fails, then pretend we aren't using GCC.
8993     ac_prog=ld
8994     ;;
8995   *)
8996     # If it is relative, then search for the first ld in PATH.
8997     with_gnu_ld=unknown
8998     ;;
8999   esac
9000 elif test "$with_gnu_ld" = yes; then
9001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9002 $as_echo_n "checking for GNU ld... " >&6; }
9003 else
9004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9005 $as_echo_n "checking for non-GNU ld... " >&6; }
9006 fi
9007 if test "${acl_cv_path_LD+set}" = set; then :
9008   $as_echo_n "(cached) " >&6
9009 else
9010   if test -z "$LD"; then
9011   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9012   for ac_dir in $PATH; do
9013     test -z "$ac_dir" && ac_dir=.
9014     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9015       acl_cv_path_LD="$ac_dir/$ac_prog"
9016       # Check to see if the program is GNU ld.  I'd rather use --version,
9017       # but apparently some GNU ld's only accept -v.
9018       # Break only if it was the GNU/non-GNU ld that we prefer.
9019       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9020         test "$with_gnu_ld" != no && break
9021       else
9022         test "$with_gnu_ld" != yes && break
9023       fi
9024     fi
9025   done
9026   IFS="$ac_save_ifs"
9027 else
9028   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9029 fi
9030 fi
9031
9032 LD="$acl_cv_path_LD"
9033 if test -n "$LD"; then
9034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9035 $as_echo "$LD" >&6; }
9036 else
9037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9038 $as_echo "no" >&6; }
9039 fi
9040 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9042 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9043 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9044   $as_echo_n "(cached) " >&6
9045 else
9046   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9047 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9048   acl_cv_prog_gnu_ld=yes
9049 else
9050   acl_cv_prog_gnu_ld=no
9051 fi
9052 fi
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9054 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9055 with_gnu_ld=$acl_cv_prog_gnu_ld
9056
9057
9058
9059                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9060 $as_echo_n "checking for shared library run path origin... " >&6; }
9061 if test "${acl_cv_rpath+set}" = set; then :
9062   $as_echo_n "(cached) " >&6
9063 else
9064
9065     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9066     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9067     . ./conftest.sh
9068     rm -f ./conftest.sh
9069     acl_cv_rpath=done
9070
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9073 $as_echo "$acl_cv_rpath" >&6; }
9074   wl="$acl_cv_wl"
9075   libext="$acl_cv_libext"
9076   shlibext="$acl_cv_shlibext"
9077   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9078   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9079   hardcode_direct="$acl_cv_hardcode_direct"
9080   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9081     # Check whether --enable-rpath was given.
9082 if test "${enable_rpath+set}" = set; then :
9083   enableval=$enable_rpath; :
9084 else
9085   enable_rpath=yes
9086 fi
9087
9088
9089
9090
9091
9092
9093
9094
9095     use_additional=yes
9096
9097   acl_save_prefix="$prefix"
9098   prefix="$acl_final_prefix"
9099   acl_save_exec_prefix="$exec_prefix"
9100   exec_prefix="$acl_final_exec_prefix"
9101
9102     eval additional_includedir=\"$includedir\"
9103     eval additional_libdir=\"$libdir\"
9104
9105   exec_prefix="$acl_save_exec_prefix"
9106   prefix="$acl_save_prefix"
9107
9108
9109 # Check whether --with-libiconv-prefix was given.
9110 if test "${with_libiconv_prefix+set}" = set; then :
9111   withval=$with_libiconv_prefix;
9112     if test "X$withval" = "Xno"; then
9113       use_additional=no
9114     else
9115       if test "X$withval" = "X"; then
9116
9117   acl_save_prefix="$prefix"
9118   prefix="$acl_final_prefix"
9119   acl_save_exec_prefix="$exec_prefix"
9120   exec_prefix="$acl_final_exec_prefix"
9121
9122           eval additional_includedir=\"$includedir\"
9123           eval additional_libdir=\"$libdir\"
9124
9125   exec_prefix="$acl_save_exec_prefix"
9126   prefix="$acl_save_prefix"
9127
9128       else
9129         additional_includedir="$withval/include"
9130         additional_libdir="$withval/lib"
9131       fi
9132     fi
9133
9134 fi
9135
9136       LIBICONV=
9137   LTLIBICONV=
9138   INCICONV=
9139   rpathdirs=
9140   ltrpathdirs=
9141   names_already_handled=
9142   names_next_round='iconv '
9143   while test -n "$names_next_round"; do
9144     names_this_round="$names_next_round"
9145     names_next_round=
9146     for name in $names_this_round; do
9147       already_handled=
9148       for n in $names_already_handled; do
9149         if test "$n" = "$name"; then
9150           already_handled=yes
9151           break
9152         fi
9153       done
9154       if test -z "$already_handled"; then
9155         names_already_handled="$names_already_handled $name"
9156                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9157         eval value=\"\$HAVE_LIB$uppername\"
9158         if test -n "$value"; then
9159           if test "$value" = yes; then
9160             eval value=\"\$LIB$uppername\"
9161             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9162             eval value=\"\$LTLIB$uppername\"
9163             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9164           else
9165                                     :
9166           fi
9167         else
9168                               found_dir=
9169           found_la=
9170           found_so=
9171           found_a=
9172           if test $use_additional = yes; then
9173             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9174               found_dir="$additional_libdir"
9175               found_so="$additional_libdir/lib$name.$shlibext"
9176               if test -f "$additional_libdir/lib$name.la"; then
9177                 found_la="$additional_libdir/lib$name.la"
9178               fi
9179             else
9180               if test -f "$additional_libdir/lib$name.$libext"; then
9181                 found_dir="$additional_libdir"
9182                 found_a="$additional_libdir/lib$name.$libext"
9183                 if test -f "$additional_libdir/lib$name.la"; then
9184                   found_la="$additional_libdir/lib$name.la"
9185                 fi
9186               fi
9187             fi
9188           fi
9189           if test "X$found_dir" = "X"; then
9190             for x in $LDFLAGS $LTLIBICONV; do
9191
9192   acl_save_prefix="$prefix"
9193   prefix="$acl_final_prefix"
9194   acl_save_exec_prefix="$exec_prefix"
9195   exec_prefix="$acl_final_exec_prefix"
9196   eval x=\"$x\"
9197   exec_prefix="$acl_save_exec_prefix"
9198   prefix="$acl_save_prefix"
9199
9200               case "$x" in
9201                 -L*)
9202                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9203                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9204                     found_dir="$dir"
9205                     found_so="$dir/lib$name.$shlibext"
9206                     if test -f "$dir/lib$name.la"; then
9207                       found_la="$dir/lib$name.la"
9208                     fi
9209                   else
9210                     if test -f "$dir/lib$name.$libext"; then
9211                       found_dir="$dir"
9212                       found_a="$dir/lib$name.$libext"
9213                       if test -f "$dir/lib$name.la"; then
9214                         found_la="$dir/lib$name.la"
9215                       fi
9216                     fi
9217                   fi
9218                   ;;
9219               esac
9220               if test "X$found_dir" != "X"; then
9221                 break
9222               fi
9223             done
9224           fi
9225           if test "X$found_dir" != "X"; then
9226                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9227             if test "X$found_so" != "X"; then
9228                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9229                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9230               else
9231                                                                                 haveit=
9232                 for x in $ltrpathdirs; do
9233                   if test "X$x" = "X$found_dir"; then
9234                     haveit=yes
9235                     break
9236                   fi
9237                 done
9238                 if test -z "$haveit"; then
9239                   ltrpathdirs="$ltrpathdirs $found_dir"
9240                 fi
9241                                 if test "$hardcode_direct" = yes; then
9242                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9243                 else
9244                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9245                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9246                                                             haveit=
9247                     for x in $rpathdirs; do
9248                       if test "X$x" = "X$found_dir"; then
9249                         haveit=yes
9250                         break
9251                       fi
9252                     done
9253                     if test -z "$haveit"; then
9254                       rpathdirs="$rpathdirs $found_dir"
9255                     fi
9256                   else
9257                                                                                 haveit=
9258                     for x in $LDFLAGS $LIBICONV; do
9259
9260   acl_save_prefix="$prefix"
9261   prefix="$acl_final_prefix"
9262   acl_save_exec_prefix="$exec_prefix"
9263   exec_prefix="$acl_final_exec_prefix"
9264   eval x=\"$x\"
9265   exec_prefix="$acl_save_exec_prefix"
9266   prefix="$acl_save_prefix"
9267
9268                       if test "X$x" = "X-L$found_dir"; then
9269                         haveit=yes
9270                         break
9271                       fi
9272                     done
9273                     if test -z "$haveit"; then
9274                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9275                     fi
9276                     if test "$hardcode_minus_L" != no; then
9277                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9278                     else
9279                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9280                     fi
9281                   fi
9282                 fi
9283               fi
9284             else
9285               if test "X$found_a" != "X"; then
9286                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9287               else
9288                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9289               fi
9290             fi
9291                         additional_includedir=
9292             case "$found_dir" in
9293               */lib | */lib/)
9294                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9295                 additional_includedir="$basedir/include"
9296                 ;;
9297             esac
9298             if test "X$additional_includedir" != "X"; then
9299                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9300                 haveit=
9301                 if test "X$additional_includedir" = "X/usr/local/include"; then
9302                   if test -n "$GCC"; then
9303                     case $host_os in
9304                       linux*) haveit=yes;;
9305                     esac
9306                   fi
9307                 fi
9308                 if test -z "$haveit"; then
9309                   for x in $CPPFLAGS $INCICONV; do
9310
9311   acl_save_prefix="$prefix"
9312   prefix="$acl_final_prefix"
9313   acl_save_exec_prefix="$exec_prefix"
9314   exec_prefix="$acl_final_exec_prefix"
9315   eval x=\"$x\"
9316   exec_prefix="$acl_save_exec_prefix"
9317   prefix="$acl_save_prefix"
9318
9319                     if test "X$x" = "X-I$additional_includedir"; then
9320                       haveit=yes
9321                       break
9322                     fi
9323                   done
9324                   if test -z "$haveit"; then
9325                     if test -d "$additional_includedir"; then
9326                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9327                     fi
9328                   fi
9329                 fi
9330               fi
9331             fi
9332                         if test -n "$found_la"; then
9333                                                         save_libdir="$libdir"
9334               case "$found_la" in
9335                 */* | *\\*) . "$found_la" ;;
9336                 *) . "./$found_la" ;;
9337               esac
9338               libdir="$save_libdir"
9339                             for dep in $dependency_libs; do
9340                 case "$dep" in
9341                   -L*)
9342                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9343                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9344                       haveit=
9345                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9346                         if test -n "$GCC"; then
9347                           case $host_os in
9348                             linux*) haveit=yes;;
9349                           esac
9350                         fi
9351                       fi
9352                       if test -z "$haveit"; then
9353                         haveit=
9354                         for x in $LDFLAGS $LIBICONV; do
9355
9356   acl_save_prefix="$prefix"
9357   prefix="$acl_final_prefix"
9358   acl_save_exec_prefix="$exec_prefix"
9359   exec_prefix="$acl_final_exec_prefix"
9360   eval x=\"$x\"
9361   exec_prefix="$acl_save_exec_prefix"
9362   prefix="$acl_save_prefix"
9363
9364                           if test "X$x" = "X-L$additional_libdir"; then
9365                             haveit=yes
9366                             break
9367                           fi
9368                         done
9369                         if test -z "$haveit"; then
9370                           if test -d "$additional_libdir"; then
9371                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9372                           fi
9373                         fi
9374                         haveit=
9375                         for x in $LDFLAGS $LTLIBICONV; do
9376
9377   acl_save_prefix="$prefix"
9378   prefix="$acl_final_prefix"
9379   acl_save_exec_prefix="$exec_prefix"
9380   exec_prefix="$acl_final_exec_prefix"
9381   eval x=\"$x\"
9382   exec_prefix="$acl_save_exec_prefix"
9383   prefix="$acl_save_prefix"
9384
9385                           if test "X$x" = "X-L$additional_libdir"; then
9386                             haveit=yes
9387                             break
9388                           fi
9389                         done
9390                         if test -z "$haveit"; then
9391                           if test -d "$additional_libdir"; then
9392                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9393                           fi
9394                         fi
9395                       fi
9396                     fi
9397                     ;;
9398                   -R*)
9399                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9400                     if test "$enable_rpath" != no; then
9401                                                                   haveit=
9402                       for x in $rpathdirs; do
9403                         if test "X$x" = "X$dir"; then
9404                           haveit=yes
9405                           break
9406                         fi
9407                       done
9408                       if test -z "$haveit"; then
9409                         rpathdirs="$rpathdirs $dir"
9410                       fi
9411                                                                   haveit=
9412                       for x in $ltrpathdirs; do
9413                         if test "X$x" = "X$dir"; then
9414                           haveit=yes
9415                           break
9416                         fi
9417                       done
9418                       if test -z "$haveit"; then
9419                         ltrpathdirs="$ltrpathdirs $dir"
9420                       fi
9421                     fi
9422                     ;;
9423                   -l*)
9424                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9425                     ;;
9426                   *.la)
9427                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9428                     ;;
9429                   *)
9430                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9431                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9432                     ;;
9433                 esac
9434               done
9435             fi
9436           else
9437                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9438             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9439           fi
9440         fi
9441       fi
9442     done
9443   done
9444   if test "X$rpathdirs" != "X"; then
9445     if test -n "$hardcode_libdir_separator"; then
9446                         alldirs=
9447       for found_dir in $rpathdirs; do
9448         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9449       done
9450             acl_save_libdir="$libdir"
9451       libdir="$alldirs"
9452       eval flag=\"$hardcode_libdir_flag_spec\"
9453       libdir="$acl_save_libdir"
9454       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9455     else
9456             for found_dir in $rpathdirs; do
9457         acl_save_libdir="$libdir"
9458         libdir="$found_dir"
9459         eval flag=\"$hardcode_libdir_flag_spec\"
9460         libdir="$acl_save_libdir"
9461         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9462       done
9463     fi
9464   fi
9465   if test "X$ltrpathdirs" != "X"; then
9466             for found_dir in $ltrpathdirs; do
9467       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9468     done
9469   fi
9470
9471
9472
9473
9474
9475
9476
9477           am_save_CPPFLAGS="$CPPFLAGS"
9478
9479   for element in $INCICONV; do
9480     haveit=
9481     for x in $CPPFLAGS; do
9482
9483   acl_save_prefix="$prefix"
9484   prefix="$acl_final_prefix"
9485   acl_save_exec_prefix="$exec_prefix"
9486   exec_prefix="$acl_final_exec_prefix"
9487   eval x=\"$x\"
9488   exec_prefix="$acl_save_exec_prefix"
9489   prefix="$acl_save_prefix"
9490
9491       if test "X$x" = "X$element"; then
9492         haveit=yes
9493         break
9494       fi
9495     done
9496     if test -z "$haveit"; then
9497       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9498     fi
9499   done
9500
9501
9502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9503 $as_echo_n "checking for iconv... " >&6; }
9504 if test "${am_cv_func_iconv+set}" = set; then :
9505   $as_echo_n "(cached) " >&6
9506 else
9507
9508     am_cv_func_iconv="no, consider installing GNU libiconv"
9509     am_cv_lib_iconv=no
9510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h.  */
9512 #include <stdlib.h>
9513 #include <iconv.h>
9514 int
9515 main ()
9516 {
9517 iconv_t cd = iconv_open("","");
9518        iconv(cd,NULL,NULL,NULL,NULL);
9519        iconv_close(cd);
9520   ;
9521   return 0;
9522 }
9523 _ACEOF
9524 if ac_fn_c_try_link "$LINENO"; then :
9525   am_cv_func_iconv=yes
9526 fi
9527 rm -f core conftest.err conftest.$ac_objext \
9528     conftest$ac_exeext conftest.$ac_ext
9529     if test "$am_cv_func_iconv" != yes; then
9530       am_save_LIBS="$LIBS"
9531       LIBS="$LIBS $LIBICONV"
9532       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h.  */
9534 #include <stdlib.h>
9535 #include <iconv.h>
9536 int
9537 main ()
9538 {
9539 iconv_t cd = iconv_open("","");
9540          iconv(cd,NULL,NULL,NULL,NULL);
9541          iconv_close(cd);
9542   ;
9543   return 0;
9544 }
9545 _ACEOF
9546 if ac_fn_c_try_link "$LINENO"; then :
9547   am_cv_lib_iconv=yes
9548         am_cv_func_iconv=yes
9549 fi
9550 rm -f core conftest.err conftest.$ac_objext \
9551     conftest$ac_exeext conftest.$ac_ext
9552       LIBS="$am_save_LIBS"
9553     fi
9554
9555 fi
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9557 $as_echo "$am_cv_func_iconv" >&6; }
9558   if test "$am_cv_func_iconv" = yes; then
9559
9560 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9561
9562   fi
9563   if test "$am_cv_lib_iconv" = yes; then
9564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9565 $as_echo_n "checking how to link with libiconv... " >&6; }
9566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9567 $as_echo "$LIBICONV" >&6; }
9568   else
9569             CPPFLAGS="$am_save_CPPFLAGS"
9570     LIBICONV=
9571     LTLIBICONV=
9572   fi
9573
9574
9575
9576   if test "$am_cv_func_iconv" = yes; then
9577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9578 $as_echo_n "checking for iconv declaration... " >&6; }
9579     if test "${am_cv_proto_iconv+set}" = set; then :
9580   $as_echo_n "(cached) " >&6
9581 else
9582
9583       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h.  */
9585
9586 #include <stdlib.h>
9587 #include <iconv.h>
9588 extern
9589 #ifdef __cplusplus
9590 "C"
9591 #endif
9592 #if defined(__STDC__) || defined(__cplusplus)
9593 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9594 #else
9595 size_t iconv();
9596 #endif
9597
9598 int
9599 main ()
9600 {
9601
9602   ;
9603   return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_compile "$LINENO"; then :
9607   am_cv_proto_iconv_arg1=""
9608 else
9609   am_cv_proto_iconv_arg1="const"
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612       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);"
9613 fi
9614
9615     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9617          }$am_cv_proto_iconv" >&5
9618 $as_echo "${ac_t:-
9619          }$am_cv_proto_iconv" >&6; }
9620
9621 cat >>confdefs.h <<_ACEOF
9622 #define ICONV_CONST $am_cv_proto_iconv_arg1
9623 _ACEOF
9624
9625   fi
9626
9627 # Until we have in-tree GNU iconv:
9628 LIBICONV_DEP=
9629
9630
9631
9632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9633 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9634 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9635   $as_echo_n "(cached) " >&6
9636 else
9637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h.  */
9639 #include <locale.h>
9640 int
9641 main ()
9642 {
9643 return LC_MESSAGES
9644   ;
9645   return 0;
9646 }
9647 _ACEOF
9648 if ac_fn_c_try_link "$LINENO"; then :
9649   am_cv_val_LC_MESSAGES=yes
9650 else
9651   am_cv_val_LC_MESSAGES=no
9652 fi
9653 rm -f core conftest.err conftest.$ac_objext \
9654     conftest$ac_exeext conftest.$ac_ext
9655 fi
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9657 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9658   if test $am_cv_val_LC_MESSAGES = yes; then
9659
9660 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9661
9662   fi
9663
9664
9665
9666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9667 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9668 if test "${am_cv_langinfo_codeset+set}" = set; then :
9669   $as_echo_n "(cached) " >&6
9670 else
9671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h.  */
9673 #include <langinfo.h>
9674 int
9675 main ()
9676 {
9677 char* cs = nl_langinfo(CODESET);
9678   ;
9679   return 0;
9680 }
9681 _ACEOF
9682 if ac_fn_c_try_link "$LINENO"; then :
9683   am_cv_langinfo_codeset=yes
9684 else
9685   am_cv_langinfo_codeset=no
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext \
9688     conftest$ac_exeext conftest.$ac_ext
9689
9690 fi
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9692 $as_echo "$am_cv_langinfo_codeset" >&6; }
9693   if test $am_cv_langinfo_codeset = yes; then
9694
9695 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9696
9697   fi
9698
9699
9700 # We will need to find libiberty.h and ansidecl.h
9701 saved_CFLAGS="$CFLAGS"
9702 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9703 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9704         strsignal strstr strverscmp \
9705         errno snprintf vsnprintf vasprintf malloc realloc calloc \
9706         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
9707 do
9708   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9710 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9711 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9712   $as_echo_n "(cached) " >&6
9713 else
9714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h.  */
9716 #undef $ac_tr_decl
9717 #define $ac_tr_decl 1
9718
9719 #include "ansidecl.h"
9720 #include "system.h"
9721
9722 int
9723 main ()
9724 {
9725 #ifndef $ac_func
9726 char *(*pfn) = (char *(*)) $ac_func ;
9727 #endif
9728   ;
9729   return 0;
9730 }
9731 _ACEOF
9732 if ac_fn_c_try_compile "$LINENO"; then :
9733   eval "gcc_cv_have_decl_$ac_func=yes"
9734 else
9735   eval "gcc_cv_have_decl_$ac_func=no"
9736 fi
9737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9738 fi
9739
9740 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9743 #define $ac_tr_decl 1
9744 _ACEOF
9745
9746 else
9747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9749 #define $ac_tr_decl 0
9750 _ACEOF
9751
9752 fi
9753
9754 done
9755
9756
9757 for ac_func in getrlimit setrlimit getrusage
9758 do
9759   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9761 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9762 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9763   $as_echo_n "(cached) " >&6
9764 else
9765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h.  */
9767 #undef $ac_tr_decl
9768 #define $ac_tr_decl 1
9769
9770 #include "ansidecl.h"
9771 #include "system.h"
9772 #ifdef HAVE_SYS_RESOURCE_H
9773 #include <sys/resource.h>
9774 #endif
9775
9776
9777 int
9778 main ()
9779 {
9780 #ifndef $ac_func
9781 char *(*pfn) = (char *(*)) $ac_func ;
9782 #endif
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_compile "$LINENO"; then :
9788   eval "gcc_cv_have_decl_$ac_func=yes"
9789 else
9790   eval "gcc_cv_have_decl_$ac_func=no"
9791 fi
9792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 fi
9794
9795 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9797 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9798 #define $ac_tr_decl 1
9799 _ACEOF
9800
9801 else
9802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9804 #define $ac_tr_decl 0
9805 _ACEOF
9806
9807 fi
9808
9809 done
9810
9811
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h.  */
9814
9815 #include "ansidecl.h"
9816 #include "system.h"
9817 #ifdef HAVE_SYS_RESOURCE_H
9818 #include <sys/resource.h>
9819 #endif
9820
9821 int
9822 main ()
9823 {
9824 rlim_t l = 0;
9825   ;
9826   return 0;
9827 }
9828 _ACEOF
9829 if ac_fn_c_try_compile "$LINENO"; then :
9830
9831 else
9832
9833 $as_echo "#define rlim_t long" >>confdefs.h
9834
9835 fi
9836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9837
9838 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9839 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
9840 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9841 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9842 for ac_func in ldgetname
9843 do
9844   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9846 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9847 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9848   $as_echo_n "(cached) " >&6
9849 else
9850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h.  */
9852 #undef $ac_tr_decl
9853 #define $ac_tr_decl 1
9854
9855 #include "ansidecl.h"
9856 #include "system.h"
9857 #ifdef HAVE_LDFCN_H
9858 #undef FREAD
9859 #undef FWRITE
9860 #include <ldfcn.h>
9861 #endif
9862
9863
9864 int
9865 main ()
9866 {
9867 #ifndef $ac_func
9868 char *(*pfn) = (char *(*)) $ac_func ;
9869 #endif
9870   ;
9871   return 0;
9872 }
9873 _ACEOF
9874 if ac_fn_c_try_compile "$LINENO"; then :
9875   eval "gcc_cv_have_decl_$ac_func=yes"
9876 else
9877   eval "gcc_cv_have_decl_$ac_func=no"
9878 fi
9879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9880 fi
9881
9882 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9884 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9885 #define $ac_tr_decl 1
9886 _ACEOF
9887
9888 else
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9891 #define $ac_tr_decl 0
9892 _ACEOF
9893
9894 fi
9895
9896 done
9897
9898
9899 for ac_func in times
9900 do
9901   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9903 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9904 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9905   $as_echo_n "(cached) " >&6
9906 else
9907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h.  */
9909 #undef $ac_tr_decl
9910 #define $ac_tr_decl 1
9911
9912 #include "ansidecl.h"
9913 #include "system.h"
9914 #ifdef HAVE_SYS_TIMES_H
9915 #include <sys/times.h>
9916 #endif
9917
9918
9919 int
9920 main ()
9921 {
9922 #ifndef $ac_func
9923 char *(*pfn) = (char *(*)) $ac_func ;
9924 #endif
9925   ;
9926   return 0;
9927 }
9928 _ACEOF
9929 if ac_fn_c_try_compile "$LINENO"; then :
9930   eval "gcc_cv_have_decl_$ac_func=yes"
9931 else
9932   eval "gcc_cv_have_decl_$ac_func=no"
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935 fi
9936
9937 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9939 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9940 #define $ac_tr_decl 1
9941 _ACEOF
9942
9943 else
9944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9946 #define $ac_tr_decl 0
9947 _ACEOF
9948
9949 fi
9950
9951 done
9952
9953
9954 for ac_func in sigaltstack
9955 do
9956   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9958 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9959 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9960   $as_echo_n "(cached) " >&6
9961 else
9962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h.  */
9964 #undef $ac_tr_decl
9965 #define $ac_tr_decl 1
9966
9967 #include "ansidecl.h"
9968 #include "system.h"
9969 #include <signal.h>
9970
9971
9972 int
9973 main ()
9974 {
9975 #ifndef $ac_func
9976 char *(*pfn) = (char *(*)) $ac_func ;
9977 #endif
9978   ;
9979   return 0;
9980 }
9981 _ACEOF
9982 if ac_fn_c_try_compile "$LINENO"; then :
9983   eval "gcc_cv_have_decl_$ac_func=yes"
9984 else
9985   eval "gcc_cv_have_decl_$ac_func=no"
9986 fi
9987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9988 fi
9989
9990 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9992 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9993 #define $ac_tr_decl 1
9994 _ACEOF
9995
9996 else
9997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9999 #define $ac_tr_decl 0
10000 _ACEOF
10001
10002 fi
10003
10004 done
10005
10006
10007 # More time-related stuff.
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10009 $as_echo_n "checking for struct tms... " >&6; }
10010 if test "${ac_cv_struct_tms+set}" = set; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h.  */
10016
10017 #include "ansidecl.h"
10018 #include "system.h"
10019 #ifdef HAVE_SYS_TIMES_H
10020 #include <sys/times.h>
10021 #endif
10022
10023 int
10024 main ()
10025 {
10026 struct tms tms;
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 if ac_fn_c_try_compile "$LINENO"; then :
10032   ac_cv_struct_tms=yes
10033 else
10034   ac_cv_struct_tms=no
10035 fi
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10037 fi
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10039 $as_echo "$ac_cv_struct_tms" >&6; }
10040 if test $ac_cv_struct_tms = yes; then
10041
10042 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10043
10044 fi
10045
10046 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10047 # revisit after autoconf 2.50.
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10049 $as_echo_n "checking for clock_t... " >&6; }
10050 if test "${gcc_cv_type_clock_t+set}" = set; then :
10051   $as_echo_n "(cached) " >&6
10052 else
10053
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h.  */
10056
10057 #include "ansidecl.h"
10058 #include "system.h"
10059
10060 int
10061 main ()
10062 {
10063 clock_t x;
10064   ;
10065   return 0;
10066 }
10067 _ACEOF
10068 if ac_fn_c_try_compile "$LINENO"; then :
10069   gcc_cv_type_clock_t=yes
10070 else
10071   gcc_cv_type_clock_t=no
10072 fi
10073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10074 fi
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10076 $as_echo "$gcc_cv_type_clock_t" >&6; }
10077 if test $gcc_cv_type_clock_t = yes; then
10078
10079 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10080
10081 fi
10082
10083 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10084 CFLAGS="$saved_CFLAGS"
10085
10086 # Check whether --enable-initfini-array was given.
10087 if test "${enable_initfini_array+set}" = set; then :
10088   enableval=$enable_initfini_array;
10089 else
10090
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10092 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10093 if test "${gcc_cv_initfini_array+set}" = set; then :
10094   $as_echo_n "(cached) " >&6
10095 else
10096     if test "$cross_compiling" = yes; then :
10097   gcc_cv_initfini_array=no
10098 else
10099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h.  */
10101
10102 static int x = -1;
10103 int main (void) { return x; }
10104 int foo (void) { x = 0; }
10105 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10106 _ACEOF
10107 if ac_fn_c_try_run "$LINENO"; then :
10108   gcc_cv_initfini_array=yes
10109 else
10110   gcc_cv_initfini_array=no
10111 fi
10112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10113   conftest.$ac_objext conftest.beam conftest.$ac_ext
10114 fi
10115
10116 fi
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10118 $as_echo "$gcc_cv_initfini_array" >&6; }
10119   enable_initfini_array=$gcc_cv_initfini_array
10120
10121 fi
10122
10123 if test $enable_initfini_array = yes; then
10124
10125 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10126
10127 fi
10128
10129 # mkdir takes a single argument on some systems.
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10131 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10132 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10133   $as_echo_n "(cached) " >&6
10134 else
10135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h.  */
10137
10138 #include <sys/types.h>
10139 #ifdef HAVE_SYS_STAT_H
10140 # include <sys/stat.h>
10141 #endif
10142 #ifdef HAVE_UNISTD_H
10143 # include <unistd.h>
10144 #endif
10145 #ifdef HAVE_DIRECT_H
10146 # include <direct.h>
10147 #endif
10148 int
10149 main ()
10150 {
10151 mkdir ("foo", 0);
10152   ;
10153   return 0;
10154 }
10155 _ACEOF
10156 if ac_fn_c_try_compile "$LINENO"; then :
10157   gcc_cv_mkdir_takes_one_arg=no
10158 else
10159   gcc_cv_mkdir_takes_one_arg=yes
10160 fi
10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162 fi
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10164 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10165 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10166
10167 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10168
10169 fi
10170
10171
10172 # File extensions
10173 manext='.1'
10174 objext='.o'
10175
10176
10177
10178 # With Setjmp/Longjmp based exception handling.
10179 # Check whether --enable-sjlj-exceptions was given.
10180 if test "${enable_sjlj_exceptions+set}" = set; then :
10181   enableval=$enable_sjlj_exceptions; case $target in
10182   *-*-hpux10*)
10183     if test $enableval != yes; then
10184       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10185 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10186       enableval=yes
10187     fi
10188     ;;
10189 esac
10190 force_sjlj_exceptions=yes
10191 else
10192   case $target in
10193   *-*-hpux10*)
10194     force_sjlj_exceptions=yes
10195     enableval=yes
10196     ;;
10197   *)
10198     force_sjlj_exceptions=no
10199     ;;
10200 esac
10201 fi
10202
10203 if test $force_sjlj_exceptions = yes; then
10204   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10205
10206 cat >>confdefs.h <<_ACEOF
10207 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10208 _ACEOF
10209
10210 fi
10211
10212 # For platforms with the unwind ABI which includes an unwind library,
10213 # libunwind, we can choose to use the system libunwind.
10214 # config.gcc also contains tests of with_system_libunwind.
10215
10216
10217 # Check whether --with-system-libunwind was given.
10218 if test "${with_system_libunwind+set}" = set; then :
10219   withval=$with_system_libunwind;
10220 fi
10221
10222   # If system-libunwind was not specifically set, pick a default setting.
10223   if test x$with_system_libunwind = x; then
10224     case ${target} in
10225       ia64-*-hpux*) with_system_libunwind=yes ;;
10226       *) with_system_libunwind=no ;;
10227     esac
10228   fi
10229   # Based on system-libunwind and target, do we have ipinfo?
10230   if  test x$with_system_libunwind = xyes; then
10231     case ${target} in
10232       ia64-*-*) have_unwind_getipinfo=no ;;
10233       *) have_unwind_getipinfo=yes ;;
10234     esac
10235   else
10236     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10237
10238     case ${target} in
10239       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10240       *) have_unwind_getipinfo=yes ;;
10241     esac
10242
10243   fi
10244
10245   if test x$have_unwind_getipinfo = xyes; then
10246
10247 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10248
10249   fi
10250
10251
10252 # --------------------------------------------------------
10253 # Build, host, and target specific configuration fragments
10254 # --------------------------------------------------------
10255
10256 # Collect build-machine-specific information.
10257 . ${srcdir}/config.build
10258
10259 # Collect host-machine-specific information.
10260 . ${srcdir}/config.host
10261
10262 target_gtfiles=
10263
10264 # Collect target-machine-specific information.
10265 . ${srcdir}/config.gcc
10266
10267 extra_objs="${host_extra_objs} ${extra_objs}"
10268 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10269
10270 # Default the target-machine variables that were not explicitly set.
10271 if test x"$tm_file" = x
10272 then tm_file=$cpu_type/$cpu_type.h; fi
10273
10274 if test x"$extra_headers" = x
10275 then extra_headers=; fi
10276
10277 if test x$md_file = x
10278 then md_file=$cpu_type/$cpu_type.md; fi
10279
10280 if test x$out_file = x
10281 then out_file=$cpu_type/$cpu_type.c; fi
10282
10283 if test x"$tmake_file" = x
10284 then tmake_file=$cpu_type/t-$cpu_type
10285 fi
10286
10287 if test x"$dwarf2" = xyes
10288 then tm_file="$tm_file tm-dwarf2.h"
10289 fi
10290
10291 # Say what files are being used for the output code and MD file.
10292 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10293 echo "Using \`$srcdir/config/$md_file' as machine description file."
10294
10295 # If any of the xm_file variables contain nonexistent files, warn
10296 # about them and drop them.
10297
10298 bx=
10299 for x in $build_xm_file; do
10300   if    test -f $srcdir/config/$x
10301   then      bx="$bx $x"
10302   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10303 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10304   fi
10305 done
10306 build_xm_file="$bx"
10307
10308 hx=
10309 for x in $host_xm_file; do
10310   if    test -f $srcdir/config/$x
10311   then      hx="$hx $x"
10312   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10313 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10314   fi
10315 done
10316 host_xm_file="$hx"
10317
10318 tx=
10319 for x in $xm_file; do
10320   if    test -f $srcdir/config/$x
10321   then      tx="$tx $x"
10322   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10323 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10324   fi
10325 done
10326 xm_file="$tx"
10327
10328 count=a
10329 for f in $tm_file; do
10330         count=${count}x
10331 done
10332 if test $count = ax; then
10333         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10334 else
10335         echo "Using the following target machine macro files:"
10336         for f in $tm_file; do
10337                 echo "  $srcdir/config/$f"
10338         done
10339 fi
10340
10341 if test x$need_64bit_hwint = xyes; then
10342
10343 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10344
10345 fi
10346
10347 if test x$use_long_long_for_widest_fast_int = xyes; then
10348
10349 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10350
10351 fi
10352
10353 count=a
10354 for f in $host_xm_file; do
10355         count=${count}x
10356 done
10357 if test $count = a; then
10358         :
10359 elif test $count = ax; then
10360         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10361 else
10362         echo "Using the following host machine macro files:"
10363         for f in $host_xm_file; do
10364                 echo "  $srcdir/config/$f"
10365         done
10366 fi
10367 echo "Using ${out_host_hook_obj} for host machine hooks."
10368
10369 if test "$host_xm_file" != "$build_xm_file"; then
10370         count=a
10371         for f in $build_xm_file; do
10372                 count=${count}x
10373         done
10374         if test $count = a; then
10375                 :
10376         elif test $count = ax; then
10377                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10378         else
10379                 echo "Using the following build machine macro files:"
10380                 for f in $build_xm_file; do
10381                         echo "  $srcdir/config/$f"
10382                 done
10383         fi
10384 fi
10385
10386 case ${host} in
10387   powerpc*-*-darwin*)
10388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10389 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10390 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10391   $as_echo_n "(cached) " >&6
10392 else
10393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h.  */
10395
10396 #include <sys/cdefs.h>
10397 #include <sys/signal.h>
10398 #include <ucontext.h>
10399 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10400
10401 _ACEOF
10402 if ac_fn_c_try_compile "$LINENO"; then :
10403   gcc_cv_mcontext_underscores=no
10404 else
10405   gcc_cv_mcontext_underscores=yes
10406 fi
10407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10408 fi
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10410 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10411       if test $gcc_cv_mcontext_underscores = yes; then
10412
10413 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10414
10415       fi
10416     ;;
10417 esac
10418
10419 # ---------
10420 # Threading
10421 # ---------
10422
10423 # Check if a valid thread package
10424 case ${enable_threads} in
10425   "" | no)
10426     # No threads
10427     target_thread_file='single'
10428     ;;
10429   yes)
10430     # default
10431     target_thread_file='single'
10432     ;;
10433   aix | dce | gnat | irix | posix | posix95 | rtems | \
10434   single | solaris | vxworks | win32 | mipssde)
10435     target_thread_file=${enable_threads}
10436     ;;
10437   *)
10438     echo "${enable_threads} is an unknown thread package" 1>&2
10439     exit 1
10440     ;;
10441 esac
10442
10443 if test x${thread_file} = x; then
10444   # No thread file set by target-specific clauses in config.gcc,
10445   # so use file chosen by default logic above
10446   thread_file=${target_thread_file}
10447 fi
10448
10449 # Make gthr-default.h if we have a thread file.
10450 gthread_flags=
10451 if test $thread_file != single; then
10452   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10453   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10454     rm -f gthr-default.h-t
10455   else
10456     mv -f gthr-default.h-t gthr-default.h
10457   fi
10458   gthread_flags=-DHAVE_GTHR_DEFAULT
10459 fi
10460
10461
10462 # --------
10463 # UNSORTED
10464 # --------
10465
10466 use_cxa_atexit=no
10467 if test x$enable___cxa_atexit = xyes || \
10468    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10469   if test x$host = x$target; then
10470     case $host in
10471       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10472       # keyed to flag_use_cxa_atexit
10473       *-*-mingw32*)
10474         use_cxa_atexit=yes
10475         ;;
10476       *)
10477         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10478 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10479   use_cxa_atexit=yes
10480 else
10481   echo "__cxa_atexit can't be enabled on this target"
10482 fi
10483
10484         ;;
10485     esac
10486   else
10487     # We can't check for __cxa_atexit when building a cross, so assume
10488     # it is available
10489     use_cxa_atexit=yes
10490   fi
10491   if test x$use_cxa_atexit = xyes; then
10492
10493 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10494
10495   fi
10496 fi
10497
10498 # Look for a file containing extra machine modes.
10499 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10500   extra_modes_file='$(srcdir)'/config/${extra_modes}
10501
10502
10503 cat >>confdefs.h <<_ACEOF
10504 #define EXTRA_MODES_FILE "config/$extra_modes"
10505 _ACEOF
10506
10507 fi
10508
10509 # Convert extra_options into a form suitable for Makefile use.
10510 extra_opt_files=
10511 for f in $extra_options; do
10512   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10513 done
10514
10515
10516 # auto-host.h is the file containing items generated by autoconf and is
10517 # the first file included by config.h.
10518 # If host=build, it is correct to have bconfig include auto-host.h
10519 # as well.  If host!=build, we are in error and need to do more
10520 # work to find out the build config parameters.
10521 if test x$host = x$build
10522 then
10523         build_auto=auto-host.h
10524 else
10525         # We create a subdir, then run autoconf in the subdir.
10526         # To prevent recursion we set host and build for the new
10527         # invocation of configure to the build for this invocation
10528         # of configure.
10529         tempdir=build.$$
10530         rm -rf $tempdir
10531         mkdir $tempdir
10532         cd $tempdir
10533         case ${srcdir} in
10534         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10535         *) realsrcdir=../${srcdir};;
10536         esac
10537         saved_CFLAGS="${CFLAGS}"
10538         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10539         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10540         ${realsrcdir}/configure \
10541                 --enable-languages=${enable_languages-all} \
10542                 --target=$target_alias --host=$build_alias --build=$build_alias
10543         CFLAGS="${saved_CFLAGS}"
10544
10545         # We just finished tests for the build machine, so rename
10546         # the file auto-build.h in the gcc directory.
10547         mv auto-host.h ../auto-build.h
10548         cd ..
10549         rm -rf $tempdir
10550         build_auto=auto-build.h
10551 fi
10552
10553
10554 tm_file="${tm_file} defaults.h"
10555 tm_p_file="${tm_p_file} tm-preds.h"
10556 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10557 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10558 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10559 # put this back in temporarily.
10560 xm_file="auto-host.h ansidecl.h ${xm_file}"
10561
10562 # --------
10563 # UNSORTED
10564 # --------
10565
10566 # Compile in configure arguments.
10567 if test -f configargs.h ; then
10568         # Being re-configured.
10569         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10570         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10571 else
10572         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10573 fi
10574
10575 # Double all backslashes and backslash all quotes to turn
10576 # gcc_config_arguments into a C string.
10577 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10578 $gcc_config_arguments
10579 EOF
10580 gcc_config_arguments_str=`cat conftest.out`
10581 rm -f conftest.out
10582
10583 cat > configargs.h <<EOF
10584 /* Generated automatically. */
10585 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10586 static const char thread_model[] = "$thread_file";
10587
10588 static const struct {
10589   const char *name, *value;
10590 } configure_default_options[] = $configure_default_options;
10591 EOF
10592
10593 gcc_BASEVER=`cat $srcdir/BASE-VER`
10594 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10595 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10596 if test -f $srcdir/REVISION ; then
10597         gcc_REVISION=`cat $srcdir/REVISION`
10598 else
10599         gcc_REVISION=""
10600 fi
10601 cat > plugin-version.h <<EOF
10602 #include "configargs.h"
10603
10604 static char basever[] = "$gcc_BASEVER";
10605 static char datestamp[] = "$gcc_DATESTAMP";
10606 static char devphase[] = "$gcc_DEVPHASE";
10607 static char revision[] = "$gcc_REVISION";
10608
10609 /* FIXME plugins: We should make the version information more precise.
10610    One way to do is to add a checksum. */
10611
10612 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10613                                                 devphase, revision,
10614                                                 configuration_arguments};
10615 EOF
10616
10617 # Internationalization
10618 # If we haven't got the data from the intl directory,
10619 # assume NLS is disabled.
10620 USE_NLS=no
10621 LIBINTL=
10622 LIBINTL_DEP=
10623 INCINTL=
10624 XGETTEXT=
10625 GMSGFMT=
10626 POSUB=
10627
10628 if test -f  ../intl/config.intl; then
10629   .  ../intl/config.intl
10630 fi
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10632 $as_echo_n "checking whether NLS is requested... " >&6; }
10633 if test x"$USE_NLS" != xyes; then
10634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; }
10636 else
10637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10638 $as_echo "yes" >&6; }
10639
10640 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10641
10642
10643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10644 $as_echo_n "checking for catalogs to be installed... " >&6; }
10645   # Look for .po and .gmo files in the source directory.
10646   CATALOGS=
10647   XLINGUAS=
10648   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10649     # If there aren't any .gmo files the shell will give us the
10650     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10651     # weeded out.
10652     case "$cat" in *\**)
10653       continue;;
10654     esac
10655     # The quadruple backslash is collapsed to a double backslash
10656     # by the backticks, then collapsed again by the double quotes,
10657     # leaving us with one backslash in the sed expression (right
10658     # before the dot that mustn't act as a wildcard).
10659     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10660     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10661     # The user is allowed to set LINGUAS to a list of languages to
10662     # install catalogs for.  If it's empty that means "all of them."
10663     if test "x$LINGUAS" = x; then
10664       CATALOGS="$CATALOGS $cat"
10665       XLINGUAS="$XLINGUAS $lang"
10666     else
10667       case "$LINGUAS" in *$lang*)
10668         CATALOGS="$CATALOGS $cat"
10669         XLINGUAS="$XLINGUAS $lang"
10670         ;;
10671       esac
10672     fi
10673   done
10674   LINGUAS="$XLINGUAS"
10675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10676 $as_echo "$LINGUAS" >&6; }
10677
10678
10679     DATADIRNAME=share
10680
10681   INSTOBJEXT=.mo
10682
10683   GENCAT=gencat
10684
10685   CATOBJEXT=.gmo
10686
10687 fi
10688
10689 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10690 # -liconv on the link line twice.
10691 case "$LIBINTL" in *$LIBICONV*)
10692         LIBICONV= ;;
10693 esac
10694
10695 # Check whether --enable-secureplt was given.
10696 if test "${enable_secureplt+set}" = set; then :
10697   enableval=$enable_secureplt;
10698 fi
10699
10700
10701 # Check whether --enable-leading-mingw64-underscores was given.
10702 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10703   enableval=$enable_leading_mingw64_underscores;
10704 fi
10705
10706 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
10707
10708 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10709
10710 fi
10711
10712 # Check whether --enable-cld was given.
10713 if test "${enable_cld+set}" = set; then :
10714   enableval=$enable_cld;
10715 else
10716   enable_cld=no
10717 fi
10718
10719
10720 # Check whether --enable-frame-pointer was given.
10721 if test "${enable_frame_pointer+set}" = set; then :
10722   enableval=$enable_frame_pointer;
10723 else
10724
10725 case $target_os in
10726 linux* | darwin[8912]*)
10727   # Enable -fomit-frame-pointer by default for Linux and Darwin with
10728   # DWARF2.
10729   enable_frame_pointer=no
10730   ;;
10731 *)
10732   enable_frame_pointer=yes
10733   ;;
10734 esac
10735
10736 fi
10737
10738
10739 # Windows32 Registry support for specifying GCC installation paths.
10740 # Check whether --enable-win32-registry was given.
10741 if test "${enable_win32_registry+set}" = set; then :
10742   enableval=$enable_win32_registry;
10743 fi
10744
10745
10746 case $host_os in
10747   win32 | pe | cygwin* | mingw32* | uwin*)
10748     if test "x$enable_win32_registry" != xno; then
10749       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10750 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10751 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10752   $as_echo_n "(cached) " >&6
10753 else
10754   ac_func_search_save_LIBS=$LIBS
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h.  */
10757
10758 /* Override any GCC internal prototype to avoid an error.
10759    Use char because int might match the return type of a GCC
10760    builtin and then its argument prototype would still apply.  */
10761 #ifdef __cplusplus
10762 extern "C"
10763 #endif
10764 char RegOpenKeyExA ();
10765 int
10766 main ()
10767 {
10768 return RegOpenKeyExA ();
10769   ;
10770   return 0;
10771 }
10772 _ACEOF
10773 for ac_lib in '' advapi32; do
10774   if test -z "$ac_lib"; then
10775     ac_res="none required"
10776   else
10777     ac_res=-l$ac_lib
10778     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10779   fi
10780   if ac_fn_c_try_link "$LINENO"; then :
10781   ac_cv_search_RegOpenKeyExA=$ac_res
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784     conftest$ac_exeext
10785   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10786   break
10787 fi
10788 done
10789 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10790
10791 else
10792   ac_cv_search_RegOpenKeyExA=no
10793 fi
10794 rm conftest.$ac_ext
10795 LIBS=$ac_func_search_save_LIBS
10796 fi
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10798 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10799 ac_res=$ac_cv_search_RegOpenKeyExA
10800 if test "$ac_res" != no; then :
10801   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10802
10803 else
10804   enable_win32_registry=no
10805 fi
10806
10807     fi
10808
10809     if test "x$enable_win32_registry" != xno; then
10810
10811 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10812
10813
10814       if test "x$enable_win32_registry" != xyes \
10815          && test "x$enable_win32_registry" != x; then
10816
10817 cat >>confdefs.h <<_ACEOF
10818 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10819 _ACEOF
10820
10821       fi
10822     fi
10823   ;;
10824 esac
10825
10826 # Get an absolute path to the GCC top-level source directory
10827 holddir=`${PWDCMD-pwd}`
10828 cd $srcdir
10829 topdir=`${PWDCMD-pwd}`
10830 cd $holddir
10831
10832 # Conditionalize the makefile for this host machine.
10833 xmake_file=
10834 for f in ${host_xmake_file}
10835 do
10836         if test -f ${srcdir}/config/$f
10837         then
10838                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10839         fi
10840 done
10841
10842 # Conditionalize the makefile for this target machine.
10843 tmake_file_=
10844 for f in ${tmake_file}
10845 do
10846         if test -f ${srcdir}/config/$f
10847         then
10848                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10849         fi
10850 done
10851 tmake_file="${tmake_file_}"
10852
10853 out_object_file=`basename $out_file .c`.o
10854
10855 tm_file_list="options.h"
10856 tm_include_list="options.h insn-constants.h"
10857 for f in $tm_file; do
10858   case $f in
10859     ./* )
10860        f=`echo $f | sed 's/^..//'`
10861        tm_file_list="${tm_file_list} $f"
10862        tm_include_list="${tm_include_list} $f"
10863        ;;
10864     defaults.h )
10865        tm_file_list="${tm_file_list} \$(srcdir)/$f"
10866        tm_include_list="${tm_include_list} $f"
10867        ;;
10868     * )
10869        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10870        tm_include_list="${tm_include_list} config/$f"
10871        ;;
10872   esac
10873 done
10874
10875 tm_p_file_list=
10876 tm_p_include_list=
10877 for f in $tm_p_file; do
10878   case $f in
10879     tm-preds.h )
10880        tm_p_file_list="${tm_p_file_list} $f"
10881        tm_p_include_list="${tm_p_include_list} $f"
10882        ;;
10883     * )
10884        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10885        tm_p_include_list="${tm_p_include_list} config/$f"
10886   esac
10887 done
10888
10889 xm_file_list=
10890 xm_include_list=
10891 for f in $xm_file; do
10892   case $f in
10893     ansidecl.h )
10894        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10895        xm_include_list="${xm_include_list} $f"
10896        ;;
10897     auto-host.h )
10898        xm_file_list="${xm_file_list} $f"
10899        xm_include_list="${xm_include_list} $f"
10900        ;;
10901     * )
10902        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10903        xm_include_list="${xm_include_list} config/$f"
10904        ;;
10905   esac
10906 done
10907
10908 host_xm_file_list=
10909 host_xm_include_list=
10910 for f in $host_xm_file; do
10911   case $f in
10912     ansidecl.h )
10913        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10914        host_xm_include_list="${host_xm_include_list} $f"
10915        ;;
10916     auto-host.h )
10917        host_xm_file_list="${host_xm_file_list} $f"
10918        host_xm_include_list="${host_xm_include_list} $f"
10919        ;;
10920     * )
10921        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10922        host_xm_include_list="${host_xm_include_list} config/$f"
10923        ;;
10924   esac
10925 done
10926
10927 build_xm_file_list=
10928 for f in $build_xm_file; do
10929   case $f in
10930     ansidecl.h )
10931        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10932        build_xm_include_list="${build_xm_include_list} $f"
10933        ;;
10934     auto-build.h | auto-host.h )
10935        build_xm_file_list="${build_xm_file_list} $f"
10936        build_xm_include_list="${build_xm_include_list} $f"
10937        ;;
10938     * )
10939        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10940        build_xm_include_list="${build_xm_include_list} config/$f"
10941        ;;
10942   esac
10943 done
10944
10945 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10946 # cross-compiler which does not use the native headers and libraries.
10947 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10948 CROSS=
10949 ALL=all.internal
10950 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10951
10952 if test "x$with_build_sysroot" != x; then
10953   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10954 else
10955   # This value is used, even on a native system, because
10956   # CROSS_SYSTEM_HEADER_DIR is just
10957   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10958   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10959 fi
10960
10961 if test x$host != x$target
10962 then
10963         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10964         ALL=all.cross
10965         SYSTEM_HEADER_DIR=$build_system_header_dir
10966         case "$host","$target" in
10967         # Darwin crosses can use the host system's libraries and headers,
10968         # because of the fat library support.  Of course, it must be the
10969         # same version of Darwin on both sides.  Allow the user to
10970         # just say --target=foo-darwin without a version number to mean
10971         # "the version on this system".
10972             *-*-darwin*,*-*-darwin*)
10973                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10974                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10975                 if test $hostos = $targetos -o $targetos = darwin ; then
10976                     CROSS=
10977                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10978                     with_headers=yes
10979                 fi
10980                 ;;
10981
10982             i?86-*-*,x86_64-*-* \
10983             | powerpc*-*-*,powerpc64*-*-*)
10984                 CROSS="$CROSS -DNATIVE_CROSS" ;;
10985         esac
10986 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10987         SYSTEM_HEADER_DIR=$build_system_header_dir
10988 fi
10989
10990 # If this is a cross-compiler that does not
10991 # have its own set of headers then define
10992 # inhibit_libc
10993
10994 # If this is using newlib, without having the headers available now,
10995 # then define inhibit_libc in LIBGCC2_CFLAGS.
10996 # This prevents libgcc2 from containing any code which requires libc
10997 # support.
10998 : ${inhibit_libc=false}
10999 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11000        test x$with_newlib = xyes ; } &&
11001      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11002        inhibit_libc=true
11003 fi
11004
11005
11006 # When building gcc with a cross-compiler, we need to adjust things so
11007 # that the generator programs are still built with the native compiler.
11008 # Also, we cannot run fixincludes.
11009
11010 # These are the normal (build=host) settings:
11011 CC_FOR_BUILD='$(CC)'
11012 BUILD_CFLAGS='$(ALL_CFLAGS)'
11013 BUILD_LDFLAGS='$(LDFLAGS)'
11014 STMP_FIXINC=stmp-fixinc
11015
11016 # And these apply if build != host, or we are generating coverage data
11017 if test x$build != x$host || test "x$coverage_flags" != x
11018 then
11019     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11020     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11021 fi
11022
11023 # Expand extra_headers to include complete path.
11024 # This substitutes for lots of t-* files.
11025 extra_headers_list=
11026 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11027 for file in ${extra_headers} ; do
11028   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11029 done
11030
11031 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11032 if test x"$use_gcc_tgmath" = xyes
11033 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11034 fi
11035
11036 # Define collect2 in Makefile.
11037 case $host_can_use_collect2 in
11038   no) collect2= ;;
11039   *) collect2='collect2$(exeext)' ;;
11040 esac
11041
11042
11043 # Add a definition of USE_COLLECT2 if system wants one.
11044 case $use_collect2 in
11045   no) use_collect2= ;;
11046   "") ;;
11047   *)
11048     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11049     xm_defines="${xm_defines} USE_COLLECT2"
11050     case $host_can_use_collect2 in
11051       no)
11052         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11053         ;;
11054     esac
11055     ;;
11056 esac
11057
11058 # ---------------------------
11059 # Assembler & linker features
11060 # ---------------------------
11061
11062 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11063 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11064 # However when ld-new is first executed from the build tree, libtool will
11065 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11066 # to the build tree.  While doing this we need to use the previous-stage
11067 # linker, or we have an infinite loop.  The presence of a shell script as
11068 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11069 # the gcc/collect-ld script.  So we need to know how libtool works, or
11070 # exec-tool will fail.
11071
11072
11073 case `pwd` in
11074   *\ * | *\     *)
11075     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11076 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11077 esac
11078
11079
11080
11081 macro_version='2.2.7a'
11082 macro_revision='1.3134'
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096 ltmain="$ac_aux_dir/ltmain.sh"
11097
11098 # Backslashify metacharacters that are still active within
11099 # double-quoted strings.
11100 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11101
11102 # Same as above, but do not quote variable references.
11103 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11104
11105 # Sed substitution to delay expansion of an escaped shell variable in a
11106 # double_quote_subst'ed string.
11107 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11108
11109 # Sed substitution to delay expansion of an escaped single quote.
11110 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11111
11112 # Sed substitution to avoid accidental globbing in evaled expressions
11113 no_glob_subst='s/\*/\\\*/g'
11114
11115 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11116 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11117 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11118
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11120 $as_echo_n "checking how to print strings... " >&6; }
11121 # Test print first, because it will be a builtin if present.
11122 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11123    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11124   ECHO='print -r --'
11125 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11126   ECHO='printf %s\n'
11127 else
11128   # Use this function as a fallback that always works.
11129   func_fallback_echo ()
11130   {
11131     eval 'cat <<_LTECHO_EOF
11132 $1
11133 _LTECHO_EOF'
11134   }
11135   ECHO='func_fallback_echo'
11136 fi
11137
11138 # func_echo_all arg...
11139 # Invoke $ECHO with all args, space-separated.
11140 func_echo_all ()
11141 {
11142     $ECHO ""
11143 }
11144
11145 case "$ECHO" in
11146   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11147 $as_echo "printf" >&6; } ;;
11148   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11149 $as_echo "print -r" >&6; } ;;
11150   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11151 $as_echo "cat" >&6; } ;;
11152 esac
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11168 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11169 if test "${ac_cv_path_SED+set}" = set; then :
11170   $as_echo_n "(cached) " >&6
11171 else
11172             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11173      for ac_i in 1 2 3 4 5 6 7; do
11174        ac_script="$ac_script$as_nl$ac_script"
11175      done
11176      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11177      { ac_script=; unset ac_script;}
11178      if test -z "$SED"; then
11179   ac_path_SED_found=false
11180   # Loop through the user's path and test for each of PROGNAME-LIST
11181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in $PATH
11183 do
11184   IFS=$as_save_IFS
11185   test -z "$as_dir" && as_dir=.
11186     for ac_prog in sed gsed; do
11187     for ac_exec_ext in '' $ac_executable_extensions; do
11188       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11189       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11190 # Check for GNU ac_path_SED and select it if it is found.
11191   # Check for GNU $ac_path_SED
11192 case `"$ac_path_SED" --version 2>&1` in
11193 *GNU*)
11194   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11195 *)
11196   ac_count=0
11197   $as_echo_n 0123456789 >"conftest.in"
11198   while :
11199   do
11200     cat "conftest.in" "conftest.in" >"conftest.tmp"
11201     mv "conftest.tmp" "conftest.in"
11202     cp "conftest.in" "conftest.nl"
11203     $as_echo '' >> "conftest.nl"
11204     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11206     as_fn_arith $ac_count + 1 && ac_count=$as_val
11207     if test $ac_count -gt ${ac_path_SED_max-0}; then
11208       # Best one so far, save it but keep looking for a better one
11209       ac_cv_path_SED="$ac_path_SED"
11210       ac_path_SED_max=$ac_count
11211     fi
11212     # 10*(2^10) chars as input seems more than enough
11213     test $ac_count -gt 10 && break
11214   done
11215   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11216 esac
11217
11218       $ac_path_SED_found && break 3
11219     done
11220   done
11221   done
11222 IFS=$as_save_IFS
11223   if test -z "$ac_cv_path_SED"; then
11224     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11225   fi
11226 else
11227   ac_cv_path_SED=$SED
11228 fi
11229
11230 fi
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11232 $as_echo "$ac_cv_path_SED" >&6; }
11233  SED="$ac_cv_path_SED"
11234   rm -f conftest.sed
11235
11236 test -z "$SED" && SED=sed
11237 Xsed="$SED -e 1s/^X//"
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11250 $as_echo_n "checking for fgrep... " >&6; }
11251 if test "${ac_cv_path_FGREP+set}" = set; then :
11252   $as_echo_n "(cached) " >&6
11253 else
11254   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11255    then ac_cv_path_FGREP="$GREP -F"
11256    else
11257      if test -z "$FGREP"; then
11258   ac_path_FGREP_found=false
11259   # Loop through the user's path and test for each of PROGNAME-LIST
11260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11262 do
11263   IFS=$as_save_IFS
11264   test -z "$as_dir" && as_dir=.
11265     for ac_prog in fgrep; do
11266     for ac_exec_ext in '' $ac_executable_extensions; do
11267       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11268       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11269 # Check for GNU ac_path_FGREP and select it if it is found.
11270   # Check for GNU $ac_path_FGREP
11271 case `"$ac_path_FGREP" --version 2>&1` in
11272 *GNU*)
11273   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11274 *)
11275   ac_count=0
11276   $as_echo_n 0123456789 >"conftest.in"
11277   while :
11278   do
11279     cat "conftest.in" "conftest.in" >"conftest.tmp"
11280     mv "conftest.tmp" "conftest.in"
11281     cp "conftest.in" "conftest.nl"
11282     $as_echo 'FGREP' >> "conftest.nl"
11283     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11284     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11285     as_fn_arith $ac_count + 1 && ac_count=$as_val
11286     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11287       # Best one so far, save it but keep looking for a better one
11288       ac_cv_path_FGREP="$ac_path_FGREP"
11289       ac_path_FGREP_max=$ac_count
11290     fi
11291     # 10*(2^10) chars as input seems more than enough
11292     test $ac_count -gt 10 && break
11293   done
11294   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11295 esac
11296
11297       $ac_path_FGREP_found && break 3
11298     done
11299   done
11300   done
11301 IFS=$as_save_IFS
11302   if test -z "$ac_cv_path_FGREP"; then
11303     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11304   fi
11305 else
11306   ac_cv_path_FGREP=$FGREP
11307 fi
11308
11309    fi
11310 fi
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11312 $as_echo "$ac_cv_path_FGREP" >&6; }
11313  FGREP="$ac_cv_path_FGREP"
11314
11315
11316 test -z "$GREP" && GREP=grep
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336 # Check whether --with-gnu-ld was given.
11337 if test "${with_gnu_ld+set}" = set; then :
11338   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11339 else
11340   with_gnu_ld=no
11341 fi
11342
11343 ac_prog=ld
11344 if test "$GCC" = yes; then
11345   # Check if gcc -print-prog-name=ld gives a path.
11346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11347 $as_echo_n "checking for ld used by $CC... " >&6; }
11348   case $host in
11349   *-*-mingw*)
11350     # gcc leaves a trailing carriage return which upsets mingw
11351     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11352   *)
11353     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11354   esac
11355   case $ac_prog in
11356     # Accept absolute paths.
11357     [\\/]* | ?:[\\/]*)
11358       re_direlt='/[^/][^/]*/\.\./'
11359       # Canonicalize the pathname of ld
11360       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11361       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11362         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11363       done
11364       test -z "$LD" && LD="$ac_prog"
11365       ;;
11366   "")
11367     # If it fails, then pretend we aren't using GCC.
11368     ac_prog=ld
11369     ;;
11370   *)
11371     # If it is relative, then search for the first ld in PATH.
11372     with_gnu_ld=unknown
11373     ;;
11374   esac
11375 elif test "$with_gnu_ld" = yes; then
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11377 $as_echo_n "checking for GNU ld... " >&6; }
11378 else
11379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11380 $as_echo_n "checking for non-GNU ld... " >&6; }
11381 fi
11382 if test "${lt_cv_path_LD+set}" = set; then :
11383   $as_echo_n "(cached) " >&6
11384 else
11385   if test -z "$LD"; then
11386   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11387   for ac_dir in $PATH; do
11388     IFS="$lt_save_ifs"
11389     test -z "$ac_dir" && ac_dir=.
11390     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11391       lt_cv_path_LD="$ac_dir/$ac_prog"
11392       # Check to see if the program is GNU ld.  I'd rather use --version,
11393       # but apparently some variants of GNU ld only accept -v.
11394       # Break only if it was the GNU/non-GNU ld that we prefer.
11395       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11396       *GNU* | *'with BFD'*)
11397         test "$with_gnu_ld" != no && break
11398         ;;
11399       *)
11400         test "$with_gnu_ld" != yes && break
11401         ;;
11402       esac
11403     fi
11404   done
11405   IFS="$lt_save_ifs"
11406 else
11407   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11408 fi
11409 fi
11410
11411 LD="$lt_cv_path_LD"
11412 if test -n "$LD"; then
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11414 $as_echo "$LD" >&6; }
11415 else
11416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11418 fi
11419 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11421 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11422 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11423   $as_echo_n "(cached) " >&6
11424 else
11425   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11426 case `$LD -v 2>&1 </dev/null` in
11427 *GNU* | *'with BFD'*)
11428   lt_cv_prog_gnu_ld=yes
11429   ;;
11430 *)
11431   lt_cv_prog_gnu_ld=no
11432   ;;
11433 esac
11434 fi
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11436 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11437 with_gnu_ld=$lt_cv_prog_gnu_ld
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11448 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11449 if test "${lt_cv_path_NM+set}" = set; then :
11450   $as_echo_n "(cached) " >&6
11451 else
11452   if test -n "$NM"; then
11453   # Let the user override the test.
11454   lt_cv_path_NM="$NM"
11455 else
11456   lt_nm_to_check="${ac_tool_prefix}nm"
11457   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11458     lt_nm_to_check="$lt_nm_to_check nm"
11459   fi
11460   for lt_tmp_nm in $lt_nm_to_check; do
11461     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11462     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11463       IFS="$lt_save_ifs"
11464       test -z "$ac_dir" && ac_dir=.
11465       tmp_nm="$ac_dir/$lt_tmp_nm"
11466       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11467         # Check to see if the nm accepts a BSD-compat flag.
11468         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11469         #   nm: unknown option "B" ignored
11470         # Tru64's nm complains that /dev/null is an invalid object file
11471         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11472         */dev/null* | *'Invalid file or object type'*)
11473           lt_cv_path_NM="$tmp_nm -B"
11474           break
11475           ;;
11476         *)
11477           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11478           */dev/null*)
11479             lt_cv_path_NM="$tmp_nm -p"
11480             break
11481             ;;
11482           *)
11483             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11484             continue # so that we can try to find one that supports BSD flags
11485             ;;
11486           esac
11487           ;;
11488         esac
11489       fi
11490     done
11491     IFS="$lt_save_ifs"
11492   done
11493   : ${lt_cv_path_NM=no}
11494 fi
11495 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11497 $as_echo "$lt_cv_path_NM" >&6; }
11498 if test "$lt_cv_path_NM" != "no"; then
11499   NM="$lt_cv_path_NM"
11500 else
11501   # Didn't find any BSD compatible name lister, look for dumpbin.
11502   if test -n "$DUMPBIN"; then :
11503     # Let the user override the test.
11504   else
11505     if test -n "$ac_tool_prefix"; then
11506   for ac_prog in dumpbin "link -dump"
11507   do
11508     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11509 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511 $as_echo_n "checking for $ac_word... " >&6; }
11512 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11513   $as_echo_n "(cached) " >&6
11514 else
11515   if test -n "$DUMPBIN"; then
11516   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11517 else
11518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11519 for as_dir in $PATH
11520 do
11521   IFS=$as_save_IFS
11522   test -z "$as_dir" && as_dir=.
11523     for ac_exec_ext in '' $ac_executable_extensions; do
11524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11525     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11527     break 2
11528   fi
11529 done
11530   done
11531 IFS=$as_save_IFS
11532
11533 fi
11534 fi
11535 DUMPBIN=$ac_cv_prog_DUMPBIN
11536 if test -n "$DUMPBIN"; then
11537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11538 $as_echo "$DUMPBIN" >&6; }
11539 else
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11542 fi
11543
11544
11545     test -n "$DUMPBIN" && break
11546   done
11547 fi
11548 if test -z "$DUMPBIN"; then
11549   ac_ct_DUMPBIN=$DUMPBIN
11550   for ac_prog in dumpbin "link -dump"
11551 do
11552   # Extract the first word of "$ac_prog", so it can be a program name with args.
11553 set dummy $ac_prog; ac_word=$2
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555 $as_echo_n "checking for $ac_word... " >&6; }
11556 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11557   $as_echo_n "(cached) " >&6
11558 else
11559   if test -n "$ac_ct_DUMPBIN"; then
11560   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11561 else
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11564 do
11565   IFS=$as_save_IFS
11566   test -z "$as_dir" && as_dir=.
11567     for ac_exec_ext in '' $ac_executable_extensions; do
11568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11569     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571     break 2
11572   fi
11573 done
11574   done
11575 IFS=$as_save_IFS
11576
11577 fi
11578 fi
11579 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11580 if test -n "$ac_ct_DUMPBIN"; then
11581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11582 $as_echo "$ac_ct_DUMPBIN" >&6; }
11583 else
11584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 $as_echo "no" >&6; }
11586 fi
11587
11588
11589   test -n "$ac_ct_DUMPBIN" && break
11590 done
11591
11592   if test "x$ac_ct_DUMPBIN" = x; then
11593     DUMPBIN=":"
11594   else
11595     case $cross_compiling:$ac_tool_warned in
11596 yes:)
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11599 ac_tool_warned=yes ;;
11600 esac
11601     DUMPBIN=$ac_ct_DUMPBIN
11602   fi
11603 fi
11604
11605     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11606     *COFF*)
11607       DUMPBIN="$DUMPBIN -symbols"
11608       ;;
11609     *)
11610       DUMPBIN=:
11611       ;;
11612     esac
11613   fi
11614
11615   if test "$DUMPBIN" != ":"; then
11616     NM="$DUMPBIN"
11617   fi
11618 fi
11619 test -z "$NM" && NM=nm
11620
11621
11622
11623
11624
11625
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11627 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11628 if test "${lt_cv_nm_interface+set}" = set; then :
11629   $as_echo_n "(cached) " >&6
11630 else
11631   lt_cv_nm_interface="BSD nm"
11632   echo "int some_variable = 0;" > conftest.$ac_ext
11633   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11634   (eval "$ac_compile" 2>conftest.err)
11635   cat conftest.err >&5
11636   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11637   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11638   cat conftest.err >&5
11639   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11640   cat conftest.out >&5
11641   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11642     lt_cv_nm_interface="MS dumpbin"
11643   fi
11644   rm -f conftest*
11645 fi
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11647 $as_echo "$lt_cv_nm_interface" >&6; }
11648
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11650 $as_echo_n "checking whether ln -s works... " >&6; }
11651 LN_S=$as_ln_s
11652 if test "$LN_S" = "ln -s"; then
11653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11654 $as_echo "yes" >&6; }
11655 else
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11657 $as_echo "no, using $LN_S" >&6; }
11658 fi
11659
11660 # find the maximum length of command line arguments
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11662 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11663 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11664   $as_echo_n "(cached) " >&6
11665 else
11666     i=0
11667   teststring="ABCD"
11668
11669   case $build_os in
11670   msdosdjgpp*)
11671     # On DJGPP, this test can blow up pretty badly due to problems in libc
11672     # (any single argument exceeding 2000 bytes causes a buffer overrun
11673     # during glob expansion).  Even if it were fixed, the result of this
11674     # check would be larger than it should be.
11675     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11676     ;;
11677
11678   gnu*)
11679     # Under GNU Hurd, this test is not required because there is
11680     # no limit to the length of command line arguments.
11681     # Libtool will interpret -1 as no limit whatsoever
11682     lt_cv_sys_max_cmd_len=-1;
11683     ;;
11684
11685   cygwin* | mingw* | cegcc*)
11686     # On Win9x/ME, this test blows up -- it succeeds, but takes
11687     # about 5 minutes as the teststring grows exponentially.
11688     # Worse, since 9x/ME are not pre-emptively multitasking,
11689     # you end up with a "frozen" computer, even though with patience
11690     # the test eventually succeeds (with a max line length of 256k).
11691     # Instead, let's just punt: use the minimum linelength reported by
11692     # all of the supported platforms: 8192 (on NT/2K/XP).
11693     lt_cv_sys_max_cmd_len=8192;
11694     ;;
11695
11696   mint*)
11697     # On MiNT this can take a long time and run out of memory.
11698     lt_cv_sys_max_cmd_len=8192;
11699     ;;
11700
11701   amigaos*)
11702     # On AmigaOS with pdksh, this test takes hours, literally.
11703     # So we just punt and use a minimum line length of 8192.
11704     lt_cv_sys_max_cmd_len=8192;
11705     ;;
11706
11707   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11708     # This has been around since 386BSD, at least.  Likely further.
11709     if test -x /sbin/sysctl; then
11710       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11711     elif test -x /usr/sbin/sysctl; then
11712       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11713     else
11714       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11715     fi
11716     # And add a safety zone
11717     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11718     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11719     ;;
11720
11721   interix*)
11722     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11723     lt_cv_sys_max_cmd_len=196608
11724     ;;
11725
11726   osf*)
11727     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11728     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11729     # nice to cause kernel panics so lets avoid the loop below.
11730     # First set a reasonable default.
11731     lt_cv_sys_max_cmd_len=16384
11732     #
11733     if test -x /sbin/sysconfig; then
11734       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11735         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11736       esac
11737     fi
11738     ;;
11739   sco3.2v5*)
11740     lt_cv_sys_max_cmd_len=102400
11741     ;;
11742   sysv5* | sco5v6* | sysv4.2uw2*)
11743     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11744     if test -n "$kargmax"; then
11745       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11746     else
11747       lt_cv_sys_max_cmd_len=32768
11748     fi
11749     ;;
11750   *)
11751     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11752     if test -n "$lt_cv_sys_max_cmd_len"; then
11753       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11754       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11755     else
11756       # Make teststring a little bigger before we do anything with it.
11757       # a 1K string should be a reasonable start.
11758       for i in 1 2 3 4 5 6 7 8 ; do
11759         teststring=$teststring$teststring
11760       done
11761       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11762       # If test is not a shell built-in, we'll probably end up computing a
11763       # maximum length that is only half of the actual maximum length, but
11764       # we can't tell.
11765       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11766                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11767               test $i != 17 # 1/2 MB should be enough
11768       do
11769         i=`expr $i + 1`
11770         teststring=$teststring$teststring
11771       done
11772       # Only check the string length outside the loop.
11773       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11774       teststring=
11775       # Add a significant safety factor because C++ compilers can tack on
11776       # massive amounts of additional arguments before passing them to the
11777       # linker.  It appears as though 1/2 is a usable value.
11778       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11779     fi
11780     ;;
11781   esac
11782
11783 fi
11784
11785 if test -n $lt_cv_sys_max_cmd_len ; then
11786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11787 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11788 else
11789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11790 $as_echo "none" >&6; }
11791 fi
11792 max_cmd_len=$lt_cv_sys_max_cmd_len
11793
11794
11795
11796
11797
11798
11799 : ${CP="cp -f"}
11800 : ${MV="mv -f"}
11801 : ${RM="rm -f"}
11802
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11804 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11805 # Try some XSI features
11806 xsi_shell=no
11807 ( _lt_dummy="a/b/c"
11808   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11809       = c,a/b,, \
11810     && eval 'test $(( 1 + 1 )) -eq 2 \
11811     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11812   && xsi_shell=yes
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11814 $as_echo "$xsi_shell" >&6; }
11815
11816
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11818 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11819 lt_shell_append=no
11820 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11821     >/dev/null 2>&1 \
11822   && lt_shell_append=yes
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11824 $as_echo "$lt_shell_append" >&6; }
11825
11826
11827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11828   lt_unset=unset
11829 else
11830   lt_unset=false
11831 fi
11832
11833
11834
11835
11836
11837 # test EBCDIC or ASCII
11838 case `echo X|tr X '\101'` in
11839  A) # ASCII based system
11840     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11841   lt_SP2NL='tr \040 \012'
11842   lt_NL2SP='tr \015\012 \040\040'
11843   ;;
11844  *) # EBCDIC based system
11845   lt_SP2NL='tr \100 \n'
11846   lt_NL2SP='tr \r\n \100\100'
11847   ;;
11848 esac
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11859 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11860 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11861   $as_echo_n "(cached) " >&6
11862 else
11863   lt_cv_ld_reload_flag='-r'
11864 fi
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11866 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11867 reload_flag=$lt_cv_ld_reload_flag
11868 case $reload_flag in
11869 "" | " "*) ;;
11870 *) reload_flag=" $reload_flag" ;;
11871 esac
11872 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11873 case $host_os in
11874   darwin*)
11875     if test "$GCC" = yes; then
11876       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11877     else
11878       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11879     fi
11880     ;;
11881 esac
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891 if test -n "$ac_tool_prefix"; then
11892   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11893 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895 $as_echo_n "checking for $ac_word... " >&6; }
11896 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11897   $as_echo_n "(cached) " >&6
11898 else
11899   if test -n "$OBJDUMP"; then
11900   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11901 else
11902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903 for as_dir in $PATH
11904 do
11905   IFS=$as_save_IFS
11906   test -z "$as_dir" && as_dir=.
11907     for ac_exec_ext in '' $ac_executable_extensions; do
11908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11909     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11911     break 2
11912   fi
11913 done
11914   done
11915 IFS=$as_save_IFS
11916
11917 fi
11918 fi
11919 OBJDUMP=$ac_cv_prog_OBJDUMP
11920 if test -n "$OBJDUMP"; then
11921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11922 $as_echo "$OBJDUMP" >&6; }
11923 else
11924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11926 fi
11927
11928
11929 fi
11930 if test -z "$ac_cv_prog_OBJDUMP"; then
11931   ac_ct_OBJDUMP=$OBJDUMP
11932   # Extract the first word of "objdump", so it can be a program name with args.
11933 set dummy objdump; ac_word=$2
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11935 $as_echo_n "checking for $ac_word... " >&6; }
11936 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11937   $as_echo_n "(cached) " >&6
11938 else
11939   if test -n "$ac_ct_OBJDUMP"; then
11940   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11941 else
11942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11943 for as_dir in $PATH
11944 do
11945   IFS=$as_save_IFS
11946   test -z "$as_dir" && as_dir=.
11947     for ac_exec_ext in '' $ac_executable_extensions; do
11948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11949     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11951     break 2
11952   fi
11953 done
11954   done
11955 IFS=$as_save_IFS
11956
11957 fi
11958 fi
11959 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11960 if test -n "$ac_ct_OBJDUMP"; then
11961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11962 $as_echo "$ac_ct_OBJDUMP" >&6; }
11963 else
11964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965 $as_echo "no" >&6; }
11966 fi
11967
11968   if test "x$ac_ct_OBJDUMP" = x; then
11969     OBJDUMP="false"
11970   else
11971     case $cross_compiling:$ac_tool_warned in
11972 yes:)
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11975 ac_tool_warned=yes ;;
11976 esac
11977     OBJDUMP=$ac_ct_OBJDUMP
11978   fi
11979 else
11980   OBJDUMP="$ac_cv_prog_OBJDUMP"
11981 fi
11982
11983 test -z "$OBJDUMP" && OBJDUMP=objdump
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11994 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11995 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11996   $as_echo_n "(cached) " >&6
11997 else
11998   lt_cv_file_magic_cmd='$MAGIC_CMD'
11999 lt_cv_file_magic_test_file=
12000 lt_cv_deplibs_check_method='unknown'
12001 # Need to set the preceding variable on all platforms that support
12002 # interlibrary dependencies.
12003 # 'none' -- dependencies not supported.
12004 # `unknown' -- same as none, but documents that we really don't know.
12005 # 'pass_all' -- all dependencies passed with no checks.
12006 # 'test_compile' -- check by making test program.
12007 # 'file_magic [[regex]]' -- check by looking for files in library path
12008 # which responds to the $file_magic_cmd with a given extended regex.
12009 # If you have `file' or equivalent on your system and you're not sure
12010 # whether `pass_all' will *always* work, you probably want this one.
12011
12012 case $host_os in
12013 aix[4-9]*)
12014   lt_cv_deplibs_check_method=pass_all
12015   ;;
12016
12017 beos*)
12018   lt_cv_deplibs_check_method=pass_all
12019   ;;
12020
12021 bsdi[45]*)
12022   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12023   lt_cv_file_magic_cmd='/usr/bin/file -L'
12024   lt_cv_file_magic_test_file=/shlib/libc.so
12025   ;;
12026
12027 cygwin*)
12028   # func_win32_libid is a shell function defined in ltmain.sh
12029   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12030   lt_cv_file_magic_cmd='func_win32_libid'
12031   ;;
12032
12033 mingw* | pw32*)
12034   # Base MSYS/MinGW do not provide the 'file' command needed by
12035   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12036   # unless we find 'file', for example because we are cross-compiling.
12037   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12038   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12039     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12040     lt_cv_file_magic_cmd='func_win32_libid'
12041   else
12042     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12043     lt_cv_file_magic_cmd='$OBJDUMP -f'
12044   fi
12045   ;;
12046
12047 cegcc*)
12048   # use the weaker test based on 'objdump'. See mingw*.
12049   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12050   lt_cv_file_magic_cmd='$OBJDUMP -f'
12051   ;;
12052
12053 darwin* | rhapsody*)
12054   lt_cv_deplibs_check_method=pass_all
12055   ;;
12056
12057 freebsd* | dragonfly*)
12058   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12059     case $host_cpu in
12060     i*86 )
12061       # Not sure whether the presence of OpenBSD here was a mistake.
12062       # Let's accept both of them until this is cleared up.
12063       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12064       lt_cv_file_magic_cmd=/usr/bin/file
12065       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12066       ;;
12067     esac
12068   else
12069     lt_cv_deplibs_check_method=pass_all
12070   fi
12071   ;;
12072
12073 gnu*)
12074   lt_cv_deplibs_check_method=pass_all
12075   ;;
12076
12077 haiku*)
12078   lt_cv_deplibs_check_method=pass_all
12079   ;;
12080
12081 hpux10.20* | hpux11*)
12082   lt_cv_file_magic_cmd=/usr/bin/file
12083   case $host_cpu in
12084   ia64*)
12085     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12086     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12087     ;;
12088   hppa*64*)
12089     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]'
12090     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12091     ;;
12092   *)
12093     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12094     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12095     ;;
12096   esac
12097   ;;
12098
12099 interix[3-9]*)
12100   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12101   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12102   ;;
12103
12104 irix5* | irix6* | nonstopux*)
12105   case $LD in
12106   *-32|*"-32 ") libmagic=32-bit;;
12107   *-n32|*"-n32 ") libmagic=N32;;
12108   *-64|*"-64 ") libmagic=64-bit;;
12109   *) libmagic=never-match;;
12110   esac
12111   lt_cv_deplibs_check_method=pass_all
12112   ;;
12113
12114 # This must be Linux ELF.
12115 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12116   lt_cv_deplibs_check_method=pass_all
12117   ;;
12118
12119 netbsd*)
12120   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12121     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12122   else
12123     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12124   fi
12125   ;;
12126
12127 newos6*)
12128   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12129   lt_cv_file_magic_cmd=/usr/bin/file
12130   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12131   ;;
12132
12133 *nto* | *qnx*)
12134   lt_cv_deplibs_check_method=pass_all
12135   ;;
12136
12137 openbsd*)
12138   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12139     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12140   else
12141     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12142   fi
12143   ;;
12144
12145 osf3* | osf4* | osf5*)
12146   lt_cv_deplibs_check_method=pass_all
12147   ;;
12148
12149 rdos*)
12150   lt_cv_deplibs_check_method=pass_all
12151   ;;
12152
12153 solaris*)
12154   lt_cv_deplibs_check_method=pass_all
12155   ;;
12156
12157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12158   lt_cv_deplibs_check_method=pass_all
12159   ;;
12160
12161 sysv4 | sysv4.3*)
12162   case $host_vendor in
12163   motorola)
12164     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]'
12165     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12166     ;;
12167   ncr)
12168     lt_cv_deplibs_check_method=pass_all
12169     ;;
12170   sequent)
12171     lt_cv_file_magic_cmd='/bin/file'
12172     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12173     ;;
12174   sni)
12175     lt_cv_file_magic_cmd='/bin/file'
12176     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12177     lt_cv_file_magic_test_file=/lib/libc.so
12178     ;;
12179   siemens)
12180     lt_cv_deplibs_check_method=pass_all
12181     ;;
12182   pc)
12183     lt_cv_deplibs_check_method=pass_all
12184     ;;
12185   esac
12186   ;;
12187
12188 tpf*)
12189   lt_cv_deplibs_check_method=pass_all
12190   ;;
12191 esac
12192
12193 fi
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12195 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12196 file_magic_cmd=$lt_cv_file_magic_cmd
12197 deplibs_check_method=$lt_cv_deplibs_check_method
12198 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211 if test -n "$ac_tool_prefix"; then
12212   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12213 set dummy ${ac_tool_prefix}ar; ac_word=$2
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215 $as_echo_n "checking for $ac_word... " >&6; }
12216 if test "${ac_cv_prog_AR+set}" = set; then :
12217   $as_echo_n "(cached) " >&6
12218 else
12219   if test -n "$AR"; then
12220   ac_cv_prog_AR="$AR" # Let the user override the test.
12221 else
12222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223 for as_dir in $PATH
12224 do
12225   IFS=$as_save_IFS
12226   test -z "$as_dir" && as_dir=.
12227     for ac_exec_ext in '' $ac_executable_extensions; do
12228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12229     ac_cv_prog_AR="${ac_tool_prefix}ar"
12230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231     break 2
12232   fi
12233 done
12234   done
12235 IFS=$as_save_IFS
12236
12237 fi
12238 fi
12239 AR=$ac_cv_prog_AR
12240 if test -n "$AR"; then
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12242 $as_echo "$AR" >&6; }
12243 else
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12246 fi
12247
12248
12249 fi
12250 if test -z "$ac_cv_prog_AR"; then
12251   ac_ct_AR=$AR
12252   # Extract the first word of "ar", so it can be a program name with args.
12253 set dummy ar; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12257   $as_echo_n "(cached) " >&6
12258 else
12259   if test -n "$ac_ct_AR"; then
12260   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12261 else
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12264 do
12265   IFS=$as_save_IFS
12266   test -z "$as_dir" && as_dir=.
12267     for ac_exec_ext in '' $ac_executable_extensions; do
12268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12269     ac_cv_prog_ac_ct_AR="ar"
12270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271     break 2
12272   fi
12273 done
12274   done
12275 IFS=$as_save_IFS
12276
12277 fi
12278 fi
12279 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12280 if test -n "$ac_ct_AR"; then
12281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12282 $as_echo "$ac_ct_AR" >&6; }
12283 else
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 fi
12287
12288   if test "x$ac_ct_AR" = x; then
12289     AR="false"
12290   else
12291     case $cross_compiling:$ac_tool_warned in
12292 yes:)
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12295 ac_tool_warned=yes ;;
12296 esac
12297     AR=$ac_ct_AR
12298   fi
12299 else
12300   AR="$ac_cv_prog_AR"
12301 fi
12302
12303 test -z "$AR" && AR=ar
12304 test -z "$AR_FLAGS" && AR_FLAGS=cru
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316 if test -n "$ac_tool_prefix"; then
12317   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12318 set dummy ${ac_tool_prefix}strip; ac_word=$2
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320 $as_echo_n "checking for $ac_word... " >&6; }
12321 if test "${ac_cv_prog_STRIP+set}" = set; then :
12322   $as_echo_n "(cached) " >&6
12323 else
12324   if test -n "$STRIP"; then
12325   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12326 else
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in $PATH
12329 do
12330   IFS=$as_save_IFS
12331   test -z "$as_dir" && as_dir=.
12332     for ac_exec_ext in '' $ac_executable_extensions; do
12333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12334     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336     break 2
12337   fi
12338 done
12339   done
12340 IFS=$as_save_IFS
12341
12342 fi
12343 fi
12344 STRIP=$ac_cv_prog_STRIP
12345 if test -n "$STRIP"; then
12346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12347 $as_echo "$STRIP" >&6; }
12348 else
12349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12351 fi
12352
12353
12354 fi
12355 if test -z "$ac_cv_prog_STRIP"; then
12356   ac_ct_STRIP=$STRIP
12357   # Extract the first word of "strip", so it can be a program name with args.
12358 set dummy strip; ac_word=$2
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360 $as_echo_n "checking for $ac_word... " >&6; }
12361 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12362   $as_echo_n "(cached) " >&6
12363 else
12364   if test -n "$ac_ct_STRIP"; then
12365   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12366 else
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 for as_dir in $PATH
12369 do
12370   IFS=$as_save_IFS
12371   test -z "$as_dir" && as_dir=.
12372     for ac_exec_ext in '' $ac_executable_extensions; do
12373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12374     ac_cv_prog_ac_ct_STRIP="strip"
12375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376     break 2
12377   fi
12378 done
12379   done
12380 IFS=$as_save_IFS
12381
12382 fi
12383 fi
12384 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12385 if test -n "$ac_ct_STRIP"; then
12386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12387 $as_echo "$ac_ct_STRIP" >&6; }
12388 else
12389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12391 fi
12392
12393   if test "x$ac_ct_STRIP" = x; then
12394     STRIP=":"
12395   else
12396     case $cross_compiling:$ac_tool_warned in
12397 yes:)
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12400 ac_tool_warned=yes ;;
12401 esac
12402     STRIP=$ac_ct_STRIP
12403   fi
12404 else
12405   STRIP="$ac_cv_prog_STRIP"
12406 fi
12407
12408 test -z "$STRIP" && STRIP=:
12409
12410
12411
12412
12413
12414
12415 if test -n "$ac_tool_prefix"; then
12416   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12419 $as_echo_n "checking for $ac_word... " >&6; }
12420 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12421   $as_echo_n "(cached) " >&6
12422 else
12423   if test -n "$RANLIB"; then
12424   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12425 else
12426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12427 for as_dir in $PATH
12428 do
12429   IFS=$as_save_IFS
12430   test -z "$as_dir" && as_dir=.
12431     for ac_exec_ext in '' $ac_executable_extensions; do
12432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12433     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12435     break 2
12436   fi
12437 done
12438   done
12439 IFS=$as_save_IFS
12440
12441 fi
12442 fi
12443 RANLIB=$ac_cv_prog_RANLIB
12444 if test -n "$RANLIB"; then
12445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12446 $as_echo "$RANLIB" >&6; }
12447 else
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449 $as_echo "no" >&6; }
12450 fi
12451
12452
12453 fi
12454 if test -z "$ac_cv_prog_RANLIB"; then
12455   ac_ct_RANLIB=$RANLIB
12456   # Extract the first word of "ranlib", so it can be a program name with args.
12457 set dummy ranlib; ac_word=$2
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459 $as_echo_n "checking for $ac_word... " >&6; }
12460 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12461   $as_echo_n "(cached) " >&6
12462 else
12463   if test -n "$ac_ct_RANLIB"; then
12464   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12465 else
12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in $PATH
12468 do
12469   IFS=$as_save_IFS
12470   test -z "$as_dir" && as_dir=.
12471     for ac_exec_ext in '' $ac_executable_extensions; do
12472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12473     ac_cv_prog_ac_ct_RANLIB="ranlib"
12474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12475     break 2
12476   fi
12477 done
12478   done
12479 IFS=$as_save_IFS
12480
12481 fi
12482 fi
12483 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12484 if test -n "$ac_ct_RANLIB"; then
12485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12486 $as_echo "$ac_ct_RANLIB" >&6; }
12487 else
12488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489 $as_echo "no" >&6; }
12490 fi
12491
12492   if test "x$ac_ct_RANLIB" = x; then
12493     RANLIB=":"
12494   else
12495     case $cross_compiling:$ac_tool_warned in
12496 yes:)
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12499 ac_tool_warned=yes ;;
12500 esac
12501     RANLIB=$ac_ct_RANLIB
12502   fi
12503 else
12504   RANLIB="$ac_cv_prog_RANLIB"
12505 fi
12506
12507 test -z "$RANLIB" && RANLIB=:
12508
12509
12510
12511
12512
12513
12514 # Determine commands to create old-style static archives.
12515 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12516 old_postinstall_cmds='chmod 644 $oldlib'
12517 old_postuninstall_cmds=
12518
12519 if test -n "$RANLIB"; then
12520   case $host_os in
12521   openbsd*)
12522     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12523     ;;
12524   *)
12525     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12526     ;;
12527   esac
12528   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12529 fi
12530
12531 case $host_os in
12532   darwin*)
12533     lock_old_archive_extraction=yes ;;
12534   *)
12535     lock_old_archive_extraction=no ;;
12536 esac
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576 # If no C compiler was specified, use CC.
12577 LTCC=${LTCC-"$CC"}
12578
12579 # If no C compiler flags were specified, use CFLAGS.
12580 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12581
12582 # Allow CC to be a program name with arguments.
12583 compiler=$CC
12584
12585
12586 # Check for command to grab the raw symbol name followed by C symbol from nm.
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12588 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12589 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12590   $as_echo_n "(cached) " >&6
12591 else
12592
12593 # These are sane defaults that work on at least a few old systems.
12594 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12595
12596 # Character class describing NM global symbol codes.
12597 symcode='[BCDEGRST]'
12598
12599 # Regexp to match symbols that can be accessed directly from C.
12600 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12601
12602 # Define system-specific variables.
12603 case $host_os in
12604 aix*)
12605   symcode='[BCDT]'
12606   ;;
12607 cygwin* | mingw* | pw32* | cegcc*)
12608   symcode='[ABCDGISTW]'
12609   ;;
12610 hpux*)
12611   if test "$host_cpu" = ia64; then
12612     symcode='[ABCDEGRST]'
12613   fi
12614   ;;
12615 irix* | nonstopux*)
12616   symcode='[BCDEGRST]'
12617   ;;
12618 osf*)
12619   symcode='[BCDEGQRST]'
12620   ;;
12621 solaris*)
12622   symcode='[BDRT]'
12623   ;;
12624 sco3.2v5*)
12625   symcode='[DT]'
12626   ;;
12627 sysv4.2uw2*)
12628   symcode='[DT]'
12629   ;;
12630 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12631   symcode='[ABDT]'
12632   ;;
12633 sysv4)
12634   symcode='[DFNSTU]'
12635   ;;
12636 esac
12637
12638 # If we're using GNU nm, then use its standard symbol codes.
12639 case `$NM -V 2>&1` in
12640 *GNU* | *'with BFD'*)
12641   symcode='[ABCDGIRSTW]' ;;
12642 esac
12643
12644 # Transform an extracted symbol line into a proper C declaration.
12645 # Some systems (esp. on ia64) link data and code symbols differently,
12646 # so use this general approach.
12647 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12648
12649 # Transform an extracted symbol line into symbol name and symbol address
12650 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12651 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'"
12652
12653 # Handle CRLF in mingw tool chain
12654 opt_cr=
12655 case $build_os in
12656 mingw*)
12657   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12658   ;;
12659 esac
12660
12661 # Try without a prefix underscore, then with it.
12662 for ac_symprfx in "" "_"; do
12663
12664   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12665   symxfrm="\\1 $ac_symprfx\\2 \\2"
12666
12667   # Write the raw and C identifiers.
12668   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12669     # Fake it for dumpbin and say T for any non-static function
12670     # and D for any global variable.
12671     # Also find C++ and __fastcall symbols from MSVC++,
12672     # which start with @ or ?.
12673     lt_cv_sys_global_symbol_pipe="$AWK '"\
12674 "     {last_section=section; section=\$ 3};"\
12675 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12676 "     \$ 0!~/External *\|/{next};"\
12677 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12678 "     {if(hide[section]) next};"\
12679 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12680 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12681 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12682 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12683 "     ' prfx=^$ac_symprfx"
12684   else
12685     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12686   fi
12687
12688   # Check to see that the pipe works correctly.
12689   pipe_works=no
12690
12691   rm -f conftest*
12692   cat > conftest.$ac_ext <<_LT_EOF
12693 #ifdef __cplusplus
12694 extern "C" {
12695 #endif
12696 char nm_test_var;
12697 void nm_test_func(void);
12698 void nm_test_func(void){}
12699 #ifdef __cplusplus
12700 }
12701 #endif
12702 int main(){nm_test_var='a';nm_test_func();return(0);}
12703 _LT_EOF
12704
12705   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12706   (eval $ac_compile) 2>&5
12707   ac_status=$?
12708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12709   test $ac_status = 0; }; then
12710     # Now try to grab the symbols.
12711     nlist=conftest.nm
12712     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12713   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12714   ac_status=$?
12715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12716   test $ac_status = 0; } && test -s "$nlist"; then
12717       # Try sorting and uniquifying the output.
12718       if sort "$nlist" | uniq > "$nlist"T; then
12719         mv -f "$nlist"T "$nlist"
12720       else
12721         rm -f "$nlist"T
12722       fi
12723
12724       # Make sure that we snagged all the symbols we need.
12725       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12726         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12727           cat <<_LT_EOF > conftest.$ac_ext
12728 #ifdef __cplusplus
12729 extern "C" {
12730 #endif
12731
12732 _LT_EOF
12733           # Now generate the symbol file.
12734           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12735
12736           cat <<_LT_EOF >> conftest.$ac_ext
12737
12738 /* The mapping between symbol names and symbols.  */
12739 const struct {
12740   const char *name;
12741   void       *address;
12742 }
12743 lt__PROGRAM__LTX_preloaded_symbols[] =
12744 {
12745   { "@PROGRAM@", (void *) 0 },
12746 _LT_EOF
12747           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12748           cat <<\_LT_EOF >> conftest.$ac_ext
12749   {0, (void *) 0}
12750 };
12751
12752 /* This works around a problem in FreeBSD linker */
12753 #ifdef FREEBSD_WORKAROUND
12754 static const void *lt_preloaded_setup() {
12755   return lt__PROGRAM__LTX_preloaded_symbols;
12756 }
12757 #endif
12758
12759 #ifdef __cplusplus
12760 }
12761 #endif
12762 _LT_EOF
12763           # Now try linking the two files.
12764           mv conftest.$ac_objext conftstm.$ac_objext
12765           lt_save_LIBS="$LIBS"
12766           lt_save_CFLAGS="$CFLAGS"
12767           LIBS="conftstm.$ac_objext"
12768           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12769           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12770   (eval $ac_link) 2>&5
12771   ac_status=$?
12772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12773   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12774             pipe_works=yes
12775           fi
12776           LIBS="$lt_save_LIBS"
12777           CFLAGS="$lt_save_CFLAGS"
12778         else
12779           echo "cannot find nm_test_func in $nlist" >&5
12780         fi
12781       else
12782         echo "cannot find nm_test_var in $nlist" >&5
12783       fi
12784     else
12785       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12786     fi
12787   else
12788     echo "$progname: failed program was:" >&5
12789     cat conftest.$ac_ext >&5
12790   fi
12791   rm -rf conftest* conftst*
12792
12793   # Do not use the global_symbol_pipe unless it works.
12794   if test "$pipe_works" = yes; then
12795     break
12796   else
12797     lt_cv_sys_global_symbol_pipe=
12798   fi
12799 done
12800
12801 fi
12802
12803 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12804   lt_cv_sys_global_symbol_to_cdecl=
12805 fi
12806 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12808 $as_echo "failed" >&6; }
12809 else
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12811 $as_echo "ok" >&6; }
12812 fi
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835 # Check whether --enable-libtool-lock was given.
12836 if test "${enable_libtool_lock+set}" = set; then :
12837   enableval=$enable_libtool_lock;
12838 fi
12839
12840 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12841
12842 # Some flags need to be propagated to the compiler or linker for good
12843 # libtool support.
12844 case $host in
12845 ia64-*-hpux*)
12846   # Find out which ABI we are using.
12847   echo 'int i;' > conftest.$ac_ext
12848   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12849   (eval $ac_compile) 2>&5
12850   ac_status=$?
12851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12852   test $ac_status = 0; }; then
12853     case `/usr/bin/file conftest.$ac_objext` in
12854       *ELF-32*)
12855         HPUX_IA64_MODE="32"
12856         ;;
12857       *ELF-64*)
12858         HPUX_IA64_MODE="64"
12859         ;;
12860     esac
12861   fi
12862   rm -rf conftest*
12863   ;;
12864 *-*-irix6*)
12865   # Find out which ABI we are using.
12866   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12867   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12868   (eval $ac_compile) 2>&5
12869   ac_status=$?
12870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12871   test $ac_status = 0; }; then
12872     if test "$lt_cv_prog_gnu_ld" = yes; then
12873       case `/usr/bin/file conftest.$ac_objext` in
12874         *32-bit*)
12875           LD="${LD-ld} -melf32bsmip"
12876           ;;
12877         *N32*)
12878           LD="${LD-ld} -melf32bmipn32"
12879           ;;
12880         *64-bit*)
12881           LD="${LD-ld} -melf64bmip"
12882         ;;
12883       esac
12884     else
12885       case `/usr/bin/file conftest.$ac_objext` in
12886         *32-bit*)
12887           LD="${LD-ld} -32"
12888           ;;
12889         *N32*)
12890           LD="${LD-ld} -n32"
12891           ;;
12892         *64-bit*)
12893           LD="${LD-ld} -64"
12894           ;;
12895       esac
12896     fi
12897   fi
12898   rm -rf conftest*
12899   ;;
12900
12901 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12902 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12903   # Find out which ABI we are using.
12904   echo 'int i;' > conftest.$ac_ext
12905   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12906   (eval $ac_compile) 2>&5
12907   ac_status=$?
12908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12909   test $ac_status = 0; }; then
12910     case `/usr/bin/file conftest.o` in
12911       *32-bit*)
12912         case $host in
12913           x86_64-*kfreebsd*-gnu)
12914             LD="${LD-ld} -m elf_i386_fbsd"
12915             ;;
12916           x86_64-*linux*)
12917             LD="${LD-ld} -m elf_i386"
12918             ;;
12919           ppc64-*linux*|powerpc64-*linux*)
12920             LD="${LD-ld} -m elf32ppclinux"
12921             ;;
12922           s390x-*linux*)
12923             LD="${LD-ld} -m elf_s390"
12924             ;;
12925           sparc64-*linux*)
12926             LD="${LD-ld} -m elf32_sparc"
12927             ;;
12928         esac
12929         ;;
12930       *64-bit*)
12931         case $host in
12932           x86_64-*kfreebsd*-gnu)
12933             LD="${LD-ld} -m elf_x86_64_fbsd"
12934             ;;
12935           x86_64-*linux*)
12936             LD="${LD-ld} -m elf_x86_64"
12937             ;;
12938           ppc*-*linux*|powerpc*-*linux*)
12939             LD="${LD-ld} -m elf64ppc"
12940             ;;
12941           s390*-*linux*|s390*-*tpf*)
12942             LD="${LD-ld} -m elf64_s390"
12943             ;;
12944           sparc*-*linux*)
12945             LD="${LD-ld} -m elf64_sparc"
12946             ;;
12947         esac
12948         ;;
12949     esac
12950   fi
12951   rm -rf conftest*
12952   ;;
12953
12954 *-*-sco3.2v5*)
12955   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12956   SAVE_CFLAGS="$CFLAGS"
12957   CFLAGS="$CFLAGS -belf"
12958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12959 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12960 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12961   $as_echo_n "(cached) " >&6
12962 else
12963   ac_ext=c
12964 ac_cpp='$CPP $CPPFLAGS'
12965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12968
12969      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h.  */
12971
12972 int
12973 main ()
12974 {
12975
12976   ;
12977   return 0;
12978 }
12979 _ACEOF
12980 if ac_fn_c_try_link "$LINENO"; then :
12981   lt_cv_cc_needs_belf=yes
12982 else
12983   lt_cv_cc_needs_belf=no
12984 fi
12985 rm -f core conftest.err conftest.$ac_objext \
12986     conftest$ac_exeext conftest.$ac_ext
12987      ac_ext=c
12988 ac_cpp='$CPP $CPPFLAGS'
12989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12992
12993 fi
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12995 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12996   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12997     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12998     CFLAGS="$SAVE_CFLAGS"
12999   fi
13000   ;;
13001 sparc*-*solaris*)
13002   # Find out which ABI we are using.
13003   echo 'int i;' > conftest.$ac_ext
13004   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13005   (eval $ac_compile) 2>&5
13006   ac_status=$?
13007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13008   test $ac_status = 0; }; then
13009     case `/usr/bin/file conftest.o` in
13010     *64-bit*)
13011       case $lt_cv_prog_gnu_ld in
13012       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13013       *)
13014         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13015           LD="${LD-ld} -64"
13016         fi
13017         ;;
13018       esac
13019       ;;
13020     esac
13021   fi
13022   rm -rf conftest*
13023   ;;
13024 esac
13025
13026 need_locks="$enable_libtool_lock"
13027
13028
13029   case $host_os in
13030     rhapsody* | darwin*)
13031     if test -n "$ac_tool_prefix"; then
13032   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13033 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13037   $as_echo_n "(cached) " >&6
13038 else
13039   if test -n "$DSYMUTIL"; then
13040   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13041 else
13042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 for as_dir in $PATH
13044 do
13045   IFS=$as_save_IFS
13046   test -z "$as_dir" && as_dir=.
13047     for ac_exec_ext in '' $ac_executable_extensions; do
13048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13049     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051     break 2
13052   fi
13053 done
13054   done
13055 IFS=$as_save_IFS
13056
13057 fi
13058 fi
13059 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13060 if test -n "$DSYMUTIL"; then
13061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13062 $as_echo "$DSYMUTIL" >&6; }
13063 else
13064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13066 fi
13067
13068
13069 fi
13070 if test -z "$ac_cv_prog_DSYMUTIL"; then
13071   ac_ct_DSYMUTIL=$DSYMUTIL
13072   # Extract the first word of "dsymutil", so it can be a program name with args.
13073 set dummy dsymutil; ac_word=$2
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13075 $as_echo_n "checking for $ac_word... " >&6; }
13076 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13077   $as_echo_n "(cached) " >&6
13078 else
13079   if test -n "$ac_ct_DSYMUTIL"; then
13080   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13081 else
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13084 do
13085   IFS=$as_save_IFS
13086   test -z "$as_dir" && as_dir=.
13087     for ac_exec_ext in '' $ac_executable_extensions; do
13088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13091     break 2
13092   fi
13093 done
13094   done
13095 IFS=$as_save_IFS
13096
13097 fi
13098 fi
13099 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13100 if test -n "$ac_ct_DSYMUTIL"; then
13101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13102 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13103 else
13104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13106 fi
13107
13108   if test "x$ac_ct_DSYMUTIL" = x; then
13109     DSYMUTIL=":"
13110   else
13111     case $cross_compiling:$ac_tool_warned in
13112 yes:)
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13115 ac_tool_warned=yes ;;
13116 esac
13117     DSYMUTIL=$ac_ct_DSYMUTIL
13118   fi
13119 else
13120   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13121 fi
13122
13123     if test -n "$ac_tool_prefix"; then
13124   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13125 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127 $as_echo_n "checking for $ac_word... " >&6; }
13128 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13129   $as_echo_n "(cached) " >&6
13130 else
13131   if test -n "$NMEDIT"; then
13132   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13133 else
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13136 do
13137   IFS=$as_save_IFS
13138   test -z "$as_dir" && as_dir=.
13139     for ac_exec_ext in '' $ac_executable_extensions; do
13140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13141     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143     break 2
13144   fi
13145 done
13146   done
13147 IFS=$as_save_IFS
13148
13149 fi
13150 fi
13151 NMEDIT=$ac_cv_prog_NMEDIT
13152 if test -n "$NMEDIT"; then
13153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13154 $as_echo "$NMEDIT" >&6; }
13155 else
13156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13158 fi
13159
13160
13161 fi
13162 if test -z "$ac_cv_prog_NMEDIT"; then
13163   ac_ct_NMEDIT=$NMEDIT
13164   # Extract the first word of "nmedit", so it can be a program name with args.
13165 set dummy nmedit; ac_word=$2
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167 $as_echo_n "checking for $ac_word... " >&6; }
13168 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13169   $as_echo_n "(cached) " >&6
13170 else
13171   if test -n "$ac_ct_NMEDIT"; then
13172   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13173 else
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13176 do
13177   IFS=$as_save_IFS
13178   test -z "$as_dir" && as_dir=.
13179     for ac_exec_ext in '' $ac_executable_extensions; do
13180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13181     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183     break 2
13184   fi
13185 done
13186   done
13187 IFS=$as_save_IFS
13188
13189 fi
13190 fi
13191 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13192 if test -n "$ac_ct_NMEDIT"; then
13193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13194 $as_echo "$ac_ct_NMEDIT" >&6; }
13195 else
13196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13198 fi
13199
13200   if test "x$ac_ct_NMEDIT" = x; then
13201     NMEDIT=":"
13202   else
13203     case $cross_compiling:$ac_tool_warned in
13204 yes:)
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13207 ac_tool_warned=yes ;;
13208 esac
13209     NMEDIT=$ac_ct_NMEDIT
13210   fi
13211 else
13212   NMEDIT="$ac_cv_prog_NMEDIT"
13213 fi
13214
13215     if test -n "$ac_tool_prefix"; then
13216   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13217 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219 $as_echo_n "checking for $ac_word... " >&6; }
13220 if test "${ac_cv_prog_LIPO+set}" = set; then :
13221   $as_echo_n "(cached) " >&6
13222 else
13223   if test -n "$LIPO"; then
13224   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13225 else
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $PATH
13228 do
13229   IFS=$as_save_IFS
13230   test -z "$as_dir" && as_dir=.
13231     for ac_exec_ext in '' $ac_executable_extensions; do
13232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13233     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235     break 2
13236   fi
13237 done
13238   done
13239 IFS=$as_save_IFS
13240
13241 fi
13242 fi
13243 LIPO=$ac_cv_prog_LIPO
13244 if test -n "$LIPO"; then
13245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13246 $as_echo "$LIPO" >&6; }
13247 else
13248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13250 fi
13251
13252
13253 fi
13254 if test -z "$ac_cv_prog_LIPO"; then
13255   ac_ct_LIPO=$LIPO
13256   # Extract the first word of "lipo", so it can be a program name with args.
13257 set dummy lipo; ac_word=$2
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259 $as_echo_n "checking for $ac_word... " >&6; }
13260 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13261   $as_echo_n "(cached) " >&6
13262 else
13263   if test -n "$ac_ct_LIPO"; then
13264   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13265 else
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13268 do
13269   IFS=$as_save_IFS
13270   test -z "$as_dir" && as_dir=.
13271     for ac_exec_ext in '' $ac_executable_extensions; do
13272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13273     ac_cv_prog_ac_ct_LIPO="lipo"
13274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275     break 2
13276   fi
13277 done
13278   done
13279 IFS=$as_save_IFS
13280
13281 fi
13282 fi
13283 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13284 if test -n "$ac_ct_LIPO"; then
13285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13286 $as_echo "$ac_ct_LIPO" >&6; }
13287 else
13288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 $as_echo "no" >&6; }
13290 fi
13291
13292   if test "x$ac_ct_LIPO" = x; then
13293     LIPO=":"
13294   else
13295     case $cross_compiling:$ac_tool_warned in
13296 yes:)
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13299 ac_tool_warned=yes ;;
13300 esac
13301     LIPO=$ac_ct_LIPO
13302   fi
13303 else
13304   LIPO="$ac_cv_prog_LIPO"
13305 fi
13306
13307     if test -n "$ac_tool_prefix"; then
13308   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13309 set dummy ${ac_tool_prefix}otool; ac_word=$2
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311 $as_echo_n "checking for $ac_word... " >&6; }
13312 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13313   $as_echo_n "(cached) " >&6
13314 else
13315   if test -n "$OTOOL"; then
13316   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13317 else
13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319 for as_dir in $PATH
13320 do
13321   IFS=$as_save_IFS
13322   test -z "$as_dir" && as_dir=.
13323     for ac_exec_ext in '' $ac_executable_extensions; do
13324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13325     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327     break 2
13328   fi
13329 done
13330   done
13331 IFS=$as_save_IFS
13332
13333 fi
13334 fi
13335 OTOOL=$ac_cv_prog_OTOOL
13336 if test -n "$OTOOL"; then
13337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13338 $as_echo "$OTOOL" >&6; }
13339 else
13340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13342 fi
13343
13344
13345 fi
13346 if test -z "$ac_cv_prog_OTOOL"; then
13347   ac_ct_OTOOL=$OTOOL
13348   # Extract the first word of "otool", so it can be a program name with args.
13349 set dummy otool; ac_word=$2
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351 $as_echo_n "checking for $ac_word... " >&6; }
13352 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13353   $as_echo_n "(cached) " >&6
13354 else
13355   if test -n "$ac_ct_OTOOL"; then
13356   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13357 else
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13360 do
13361   IFS=$as_save_IFS
13362   test -z "$as_dir" && as_dir=.
13363     for ac_exec_ext in '' $ac_executable_extensions; do
13364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13365     ac_cv_prog_ac_ct_OTOOL="otool"
13366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367     break 2
13368   fi
13369 done
13370   done
13371 IFS=$as_save_IFS
13372
13373 fi
13374 fi
13375 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13376 if test -n "$ac_ct_OTOOL"; then
13377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13378 $as_echo "$ac_ct_OTOOL" >&6; }
13379 else
13380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13382 fi
13383
13384   if test "x$ac_ct_OTOOL" = x; then
13385     OTOOL=":"
13386   else
13387     case $cross_compiling:$ac_tool_warned in
13388 yes:)
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13391 ac_tool_warned=yes ;;
13392 esac
13393     OTOOL=$ac_ct_OTOOL
13394   fi
13395 else
13396   OTOOL="$ac_cv_prog_OTOOL"
13397 fi
13398
13399     if test -n "$ac_tool_prefix"; then
13400   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13401 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+set}" = set; then :
13405   $as_echo_n "(cached) " >&6
13406 else
13407   if test -n "$OTOOL64"; then
13408   ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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 OTOOL64=$ac_cv_prog_OTOOL64
13428 if test -n "$OTOOL64"; then
13429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13430 $as_echo "$OTOOL64" >&6; }
13431 else
13432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13434 fi
13435
13436
13437 fi
13438 if test -z "$ac_cv_prog_OTOOL64"; then
13439   ac_ct_OTOOL64=$OTOOL64
13440   # Extract the first word of "otool64", so it can be a program name with args.
13441 set dummy otool64; ac_word=$2
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13443 $as_echo_n "checking for $ac_word... " >&6; }
13444 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13445   $as_echo_n "(cached) " >&6
13446 else
13447   if test -n "$ac_ct_OTOOL64"; then
13448   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13449 else
13450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451 for as_dir in $PATH
13452 do
13453   IFS=$as_save_IFS
13454   test -z "$as_dir" && as_dir=.
13455     for ac_exec_ext in '' $ac_executable_extensions; do
13456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13457     ac_cv_prog_ac_ct_OTOOL64="otool64"
13458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13459     break 2
13460   fi
13461 done
13462   done
13463 IFS=$as_save_IFS
13464
13465 fi
13466 fi
13467 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13468 if test -n "$ac_ct_OTOOL64"; then
13469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13470 $as_echo "$ac_ct_OTOOL64" >&6; }
13471 else
13472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13474 fi
13475
13476   if test "x$ac_ct_OTOOL64" = x; then
13477     OTOOL64=":"
13478   else
13479     case $cross_compiling:$ac_tool_warned in
13480 yes:)
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13483 ac_tool_warned=yes ;;
13484 esac
13485     OTOOL64=$ac_ct_OTOOL64
13486   fi
13487 else
13488   OTOOL64="$ac_cv_prog_OTOOL64"
13489 fi
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13518 $as_echo_n "checking for -single_module linker flag... " >&6; }
13519 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13520   $as_echo_n "(cached) " >&6
13521 else
13522   lt_cv_apple_cc_single_mod=no
13523       if test -z "${LT_MULTI_MODULE}"; then
13524         # By default we will add the -single_module flag. You can override
13525         # by either setting the environment variable LT_MULTI_MODULE
13526         # non-empty at configure time, or by adding -multi_module to the
13527         # link flags.
13528         rm -rf libconftest.dylib*
13529         echo "int foo(void){return 1;}" > conftest.c
13530         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13531 -dynamiclib -Wl,-single_module conftest.c" >&5
13532         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13533           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13534         _lt_result=$?
13535         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13536           lt_cv_apple_cc_single_mod=yes
13537         else
13538           cat conftest.err >&5
13539         fi
13540         rm -rf libconftest.dylib*
13541         rm -f conftest.*
13542       fi
13543 fi
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13545 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13547 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13548 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13549   $as_echo_n "(cached) " >&6
13550 else
13551   lt_cv_ld_exported_symbols_list=no
13552       save_LDFLAGS=$LDFLAGS
13553       echo "_main" > conftest.sym
13554       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13555       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h.  */
13557
13558 int
13559 main ()
13560 {
13561
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 if ac_fn_c_try_link "$LINENO"; then :
13567   lt_cv_ld_exported_symbols_list=yes
13568 else
13569   lt_cv_ld_exported_symbols_list=no
13570 fi
13571 rm -f core conftest.err conftest.$ac_objext \
13572     conftest$ac_exeext conftest.$ac_ext
13573         LDFLAGS="$save_LDFLAGS"
13574
13575 fi
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13577 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13579 $as_echo_n "checking for -force_load linker flag... " >&6; }
13580 if test "${lt_cv_ld_force_load+set}" = set; then :
13581   $as_echo_n "(cached) " >&6
13582 else
13583   lt_cv_ld_force_load=no
13584       cat > conftest.c << _LT_EOF
13585 int forced_loaded() { return 2;}
13586 _LT_EOF
13587       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13588       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13589       echo "$AR cru libconftest.a conftest.o" >&5
13590       $AR cru libconftest.a conftest.o 2>&5
13591       cat > conftest.c << _LT_EOF
13592 int main() { return 0;}
13593 _LT_EOF
13594       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13595       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13596       _lt_result=$?
13597       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13598         lt_cv_ld_force_load=yes
13599       else
13600         cat conftest.err >&5
13601       fi
13602         rm -f conftest.err libconftest.a conftest conftest.c
13603         rm -rf conftest.dSYM
13604
13605 fi
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13607 $as_echo "$lt_cv_ld_force_load" >&6; }
13608     case $host_os in
13609     rhapsody* | darwin1.[012])
13610       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13611     darwin1.*)
13612       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13613     darwin*) # darwin 5.x on
13614       # if running on 10.5 or later, the deployment target defaults
13615       # to the OS version, if on x86, and 10.4, the deployment
13616       # target defaults to 10.4. Don't you love it?
13617       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13618         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13619           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13620         10.[012]*)
13621           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13622         10.*)
13623           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13624       esac
13625     ;;
13626   esac
13627     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13628       _lt_dar_single_mod='$single_module'
13629     fi
13630     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13631       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13632     else
13633       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13634     fi
13635     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13636       _lt_dsymutil='~$DSYMUTIL $lib || :'
13637     else
13638       _lt_dsymutil=
13639     fi
13640     ;;
13641   esac
13642
13643 for ac_header in dlfcn.h
13644 do :
13645   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13646 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13647   cat >>confdefs.h <<_ACEOF
13648 #define HAVE_DLFCN_H 1
13649 _ACEOF
13650
13651 fi
13652 done
13653
13654
13655
13656
13657
13658
13659 # Set options
13660
13661
13662
13663         enable_dlopen=no
13664
13665
13666   enable_win32_dll=no
13667
13668
13669             # Check whether --enable-shared was given.
13670 if test "${enable_shared+set}" = set; then :
13671   enableval=$enable_shared; p=${PACKAGE-default}
13672     case $enableval in
13673     yes) enable_shared=yes ;;
13674     no) enable_shared=no ;;
13675     *)
13676       enable_shared=no
13677       # Look at the argument we got.  We use all the common list separators.
13678       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13679       for pkg in $enableval; do
13680         IFS="$lt_save_ifs"
13681         if test "X$pkg" = "X$p"; then
13682           enable_shared=yes
13683         fi
13684       done
13685       IFS="$lt_save_ifs"
13686       ;;
13687     esac
13688 else
13689   enable_shared=yes
13690 fi
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700   # Check whether --enable-static was given.
13701 if test "${enable_static+set}" = set; then :
13702   enableval=$enable_static; p=${PACKAGE-default}
13703     case $enableval in
13704     yes) enable_static=yes ;;
13705     no) enable_static=no ;;
13706     *)
13707      enable_static=no
13708       # Look at the argument we got.  We use all the common list separators.
13709       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13710       for pkg in $enableval; do
13711         IFS="$lt_save_ifs"
13712         if test "X$pkg" = "X$p"; then
13713           enable_static=yes
13714         fi
13715       done
13716       IFS="$lt_save_ifs"
13717       ;;
13718     esac
13719 else
13720   enable_static=yes
13721 fi
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732 # Check whether --with-pic was given.
13733 if test "${with_pic+set}" = set; then :
13734   withval=$with_pic; pic_mode="$withval"
13735 else
13736   pic_mode=default
13737 fi
13738
13739
13740 test -z "$pic_mode" && pic_mode=default
13741
13742
13743
13744
13745
13746
13747
13748   # Check whether --enable-fast-install was given.
13749 if test "${enable_fast_install+set}" = set; then :
13750   enableval=$enable_fast_install; p=${PACKAGE-default}
13751     case $enableval in
13752     yes) enable_fast_install=yes ;;
13753     no) enable_fast_install=no ;;
13754     *)
13755       enable_fast_install=no
13756       # Look at the argument we got.  We use all the common list separators.
13757       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13758       for pkg in $enableval; do
13759         IFS="$lt_save_ifs"
13760         if test "X$pkg" = "X$p"; then
13761           enable_fast_install=yes
13762         fi
13763       done
13764       IFS="$lt_save_ifs"
13765       ;;
13766     esac
13767 else
13768   enable_fast_install=yes
13769 fi
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781 # This can be used to rebuild libtool when needed
13782 LIBTOOL_DEPS="$ltmain"
13783
13784 # Always use our own libtool.
13785 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812 test -z "$LN_S" && LN_S="ln -s"
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827 if test -n "${ZSH_VERSION+set}" ; then
13828    setopt NO_GLOB_SUBST
13829 fi
13830
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13832 $as_echo_n "checking for objdir... " >&6; }
13833 if test "${lt_cv_objdir+set}" = set; then :
13834   $as_echo_n "(cached) " >&6
13835 else
13836   rm -f .libs 2>/dev/null
13837 mkdir .libs 2>/dev/null
13838 if test -d .libs; then
13839   lt_cv_objdir=.libs
13840 else
13841   # MS-DOS does not allow filenames that begin with a dot.
13842   lt_cv_objdir=_libs
13843 fi
13844 rmdir .libs 2>/dev/null
13845 fi
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13847 $as_echo "$lt_cv_objdir" >&6; }
13848 objdir=$lt_cv_objdir
13849
13850
13851
13852
13853
13854 cat >>confdefs.h <<_ACEOF
13855 #define LT_OBJDIR "$lt_cv_objdir/"
13856 _ACEOF
13857
13858
13859
13860
13861 case $host_os in
13862 aix3*)
13863   # AIX sometimes has problems with the GCC collect2 program.  For some
13864   # reason, if we set the COLLECT_NAMES environment variable, the problems
13865   # vanish in a puff of smoke.
13866   if test "X${COLLECT_NAMES+set}" != Xset; then
13867     COLLECT_NAMES=
13868     export COLLECT_NAMES
13869   fi
13870   ;;
13871 esac
13872
13873 # Global variables:
13874 ofile=libtool
13875 can_build_shared=yes
13876
13877 # All known linkers require a `.a' archive for static linking (except MSVC,
13878 # which needs '.lib').
13879 libext=a
13880
13881 with_gnu_ld="$lt_cv_prog_gnu_ld"
13882
13883 old_CC="$CC"
13884 old_CFLAGS="$CFLAGS"
13885
13886 # Set sane defaults for various variables
13887 test -z "$CC" && CC=cc
13888 test -z "$LTCC" && LTCC=$CC
13889 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13890 test -z "$LD" && LD=ld
13891 test -z "$ac_objext" && ac_objext=o
13892
13893 for cc_temp in $compiler""; do
13894   case $cc_temp in
13895     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13896     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13897     \-*) ;;
13898     *) break;;
13899   esac
13900 done
13901 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13902
13903
13904 # Only perform the check for file, if the check method requires it
13905 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13906 case $deplibs_check_method in
13907 file_magic*)
13908   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13910 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13911 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13912   $as_echo_n "(cached) " >&6
13913 else
13914   case $MAGIC_CMD in
13915 [\\/*] |  ?:[\\/]*)
13916   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13917   ;;
13918 *)
13919   lt_save_MAGIC_CMD="$MAGIC_CMD"
13920   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13921   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13922   for ac_dir in $ac_dummy; do
13923     IFS="$lt_save_ifs"
13924     test -z "$ac_dir" && ac_dir=.
13925     if test -f $ac_dir/${ac_tool_prefix}file; then
13926       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13927       if test -n "$file_magic_test_file"; then
13928         case $deplibs_check_method in
13929         "file_magic "*)
13930           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13931           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13932           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13933             $EGREP "$file_magic_regex" > /dev/null; then
13934             :
13935           else
13936             cat <<_LT_EOF 1>&2
13937
13938 *** Warning: the command libtool uses to detect shared libraries,
13939 *** $file_magic_cmd, produces output that libtool cannot recognize.
13940 *** The result is that libtool may fail to recognize shared libraries
13941 *** as such.  This will affect the creation of libtool libraries that
13942 *** depend on shared libraries, but programs linked with such libtool
13943 *** libraries will work regardless of this problem.  Nevertheless, you
13944 *** may want to report the problem to your system manager and/or to
13945 *** bug-libtool@gnu.org
13946
13947 _LT_EOF
13948           fi ;;
13949         esac
13950       fi
13951       break
13952     fi
13953   done
13954   IFS="$lt_save_ifs"
13955   MAGIC_CMD="$lt_save_MAGIC_CMD"
13956   ;;
13957 esac
13958 fi
13959
13960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13961 if test -n "$MAGIC_CMD"; then
13962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13963 $as_echo "$MAGIC_CMD" >&6; }
13964 else
13965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13967 fi
13968
13969
13970
13971
13972
13973 if test -z "$lt_cv_path_MAGIC_CMD"; then
13974   if test -n "$ac_tool_prefix"; then
13975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13976 $as_echo_n "checking for file... " >&6; }
13977 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13978   $as_echo_n "(cached) " >&6
13979 else
13980   case $MAGIC_CMD in
13981 [\\/*] |  ?:[\\/]*)
13982   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13983   ;;
13984 *)
13985   lt_save_MAGIC_CMD="$MAGIC_CMD"
13986   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13987   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13988   for ac_dir in $ac_dummy; do
13989     IFS="$lt_save_ifs"
13990     test -z "$ac_dir" && ac_dir=.
13991     if test -f $ac_dir/file; then
13992       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13993       if test -n "$file_magic_test_file"; then
13994         case $deplibs_check_method in
13995         "file_magic "*)
13996           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13997           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13998           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13999             $EGREP "$file_magic_regex" > /dev/null; then
14000             :
14001           else
14002             cat <<_LT_EOF 1>&2
14003
14004 *** Warning: the command libtool uses to detect shared libraries,
14005 *** $file_magic_cmd, produces output that libtool cannot recognize.
14006 *** The result is that libtool may fail to recognize shared libraries
14007 *** as such.  This will affect the creation of libtool libraries that
14008 *** depend on shared libraries, but programs linked with such libtool
14009 *** libraries will work regardless of this problem.  Nevertheless, you
14010 *** may want to report the problem to your system manager and/or to
14011 *** bug-libtool@gnu.org
14012
14013 _LT_EOF
14014           fi ;;
14015         esac
14016       fi
14017       break
14018     fi
14019   done
14020   IFS="$lt_save_ifs"
14021   MAGIC_CMD="$lt_save_MAGIC_CMD"
14022   ;;
14023 esac
14024 fi
14025
14026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14027 if test -n "$MAGIC_CMD"; then
14028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14029 $as_echo "$MAGIC_CMD" >&6; }
14030 else
14031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 $as_echo "no" >&6; }
14033 fi
14034
14035
14036   else
14037     MAGIC_CMD=:
14038   fi
14039 fi
14040
14041   fi
14042   ;;
14043 esac
14044
14045 # Use C for the default configuration in the libtool script
14046
14047 lt_save_CC="$CC"
14048 ac_ext=c
14049 ac_cpp='$CPP $CPPFLAGS'
14050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14053
14054
14055 # Source file extension for C test sources.
14056 ac_ext=c
14057
14058 # Object file extension for compiled C test sources.
14059 objext=o
14060 objext=$objext
14061
14062 # Code to be used in simple compile tests
14063 lt_simple_compile_test_code="int some_variable = 0;"
14064
14065 # Code to be used in simple link tests
14066 lt_simple_link_test_code='int main(){return(0);}'
14067
14068
14069
14070
14071
14072
14073
14074 # If no C compiler was specified, use CC.
14075 LTCC=${LTCC-"$CC"}
14076
14077 # If no C compiler flags were specified, use CFLAGS.
14078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14079
14080 # Allow CC to be a program name with arguments.
14081 compiler=$CC
14082
14083 # Save the default compiler, since it gets overwritten when the other
14084 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14085 compiler_DEFAULT=$CC
14086
14087 # save warnings/boilerplate of simple test code
14088 ac_outfile=conftest.$ac_objext
14089 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14090 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14091 _lt_compiler_boilerplate=`cat conftest.err`
14092 $RM conftest*
14093
14094 ac_outfile=conftest.$ac_objext
14095 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14096 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14097 _lt_linker_boilerplate=`cat conftest.err`
14098 $RM -r conftest*
14099
14100
14101 ## CAVEAT EMPTOR:
14102 ## There is no encapsulation within the following macros, do not change
14103 ## the running order or otherwise move them around unless you know exactly
14104 ## what you are doing...
14105 if test -n "$compiler"; then
14106
14107 lt_prog_compiler_no_builtin_flag=
14108
14109 if test "$GCC" = yes; then
14110   case $cc_basename in
14111   nvcc*)
14112     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14113   *)
14114     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14115   esac
14116
14117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14118 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14119 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14120   $as_echo_n "(cached) " >&6
14121 else
14122   lt_cv_prog_compiler_rtti_exceptions=no
14123    ac_outfile=conftest.$ac_objext
14124    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14125    lt_compiler_flag="-fno-rtti -fno-exceptions"
14126    # Insert the option either (1) after the last *FLAGS variable, or
14127    # (2) before a word containing "conftest.", or (3) at the end.
14128    # Note that $ac_compile itself does not contain backslashes and begins
14129    # with a dollar sign (not a hyphen), so the echo should work correctly.
14130    # The option is referenced via a variable to avoid confusing sed.
14131    lt_compile=`echo "$ac_compile" | $SED \
14132    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14133    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14134    -e 's:$: $lt_compiler_flag:'`
14135    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14136    (eval "$lt_compile" 2>conftest.err)
14137    ac_status=$?
14138    cat conftest.err >&5
14139    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140    if (exit $ac_status) && test -s "$ac_outfile"; then
14141      # The compiler can only warn and ignore the option if not recognized
14142      # So say no if there are warnings other than the usual output.
14143      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14144      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14145      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14146        lt_cv_prog_compiler_rtti_exceptions=yes
14147      fi
14148    fi
14149    $RM conftest*
14150
14151 fi
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14153 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14154
14155 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14156     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14157 else
14158     :
14159 fi
14160
14161 fi
14162
14163
14164
14165
14166
14167
14168   lt_prog_compiler_wl=
14169 lt_prog_compiler_pic=
14170 lt_prog_compiler_static=
14171
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14173 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14174
14175   if test "$GCC" = yes; then
14176     lt_prog_compiler_wl='-Wl,'
14177     lt_prog_compiler_static='-static'
14178
14179     case $host_os in
14180       aix*)
14181       # All AIX code is PIC.
14182       if test "$host_cpu" = ia64; then
14183         # AIX 5 now supports IA64 processor
14184         lt_prog_compiler_static='-Bstatic'
14185       fi
14186       ;;
14187
14188     amigaos*)
14189       case $host_cpu in
14190       powerpc)
14191             # see comment about AmigaOS4 .so support
14192             lt_prog_compiler_pic='-fPIC'
14193         ;;
14194       m68k)
14195             # FIXME: we need at least 68020 code to build shared libraries, but
14196             # adding the `-m68020' flag to GCC prevents building anything better,
14197             # like `-m68040'.
14198             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14199         ;;
14200       esac
14201       ;;
14202
14203     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14204       # PIC is the default for these OSes.
14205       ;;
14206
14207     mingw* | cygwin* | pw32* | os2* | cegcc*)
14208       # This hack is so that the source file can tell whether it is being
14209       # built for inclusion in a dll (and should export symbols for example).
14210       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14211       # (--disable-auto-import) libraries
14212       lt_prog_compiler_pic='-DDLL_EXPORT'
14213       ;;
14214
14215     darwin* | rhapsody*)
14216       # PIC is the default on this platform
14217       # Common symbols not allowed in MH_DYLIB files
14218       lt_prog_compiler_pic='-fno-common'
14219       ;;
14220
14221     haiku*)
14222       # PIC is the default for Haiku.
14223       # The "-static" flag exists, but is broken.
14224       lt_prog_compiler_static=
14225       ;;
14226
14227     hpux*)
14228       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14229       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14230       # sets the default TLS model and affects inlining.
14231       case $host_cpu in
14232       hppa*64*)
14233         # +Z the default
14234         ;;
14235       *)
14236         lt_prog_compiler_pic='-fPIC'
14237         ;;
14238       esac
14239       ;;
14240
14241     interix[3-9]*)
14242       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14243       # Instead, we relocate shared libraries at runtime.
14244       ;;
14245
14246     msdosdjgpp*)
14247       # Just because we use GCC doesn't mean we suddenly get shared libraries
14248       # on systems that don't support them.
14249       lt_prog_compiler_can_build_shared=no
14250       enable_shared=no
14251       ;;
14252
14253     *nto* | *qnx*)
14254       # QNX uses GNU C++, but need to define -shared option too, otherwise
14255       # it will coredump.
14256       lt_prog_compiler_pic='-fPIC -shared'
14257       ;;
14258
14259     sysv4*MP*)
14260       if test -d /usr/nec; then
14261         lt_prog_compiler_pic=-Kconform_pic
14262       fi
14263       ;;
14264
14265     *)
14266       lt_prog_compiler_pic='-fPIC'
14267       ;;
14268     esac
14269
14270     case $cc_basename in
14271     nvcc*) # Cuda Compiler Driver 2.2
14272       lt_prog_compiler_wl='-Xlinker '
14273       lt_prog_compiler_pic='-Xcompiler -fPIC'
14274       ;;
14275     esac
14276   else
14277     # PORTME Check for flag to pass linker flags through the system compiler.
14278     case $host_os in
14279     aix*)
14280       lt_prog_compiler_wl='-Wl,'
14281       if test "$host_cpu" = ia64; then
14282         # AIX 5 now supports IA64 processor
14283         lt_prog_compiler_static='-Bstatic'
14284       else
14285         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14286       fi
14287       ;;
14288
14289     mingw* | cygwin* | pw32* | os2* | cegcc*)
14290       # This hack is so that the source file can tell whether it is being
14291       # built for inclusion in a dll (and should export symbols for example).
14292       lt_prog_compiler_pic='-DDLL_EXPORT'
14293       ;;
14294
14295     hpux9* | hpux10* | hpux11*)
14296       lt_prog_compiler_wl='-Wl,'
14297       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14298       # not for PA HP-UX.
14299       case $host_cpu in
14300       hppa*64*|ia64*)
14301         # +Z the default
14302         ;;
14303       *)
14304         lt_prog_compiler_pic='+Z'
14305         ;;
14306       esac
14307       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14308       lt_prog_compiler_static='${wl}-a ${wl}archive'
14309       ;;
14310
14311     irix5* | irix6* | nonstopux*)
14312       lt_prog_compiler_wl='-Wl,'
14313       # PIC (with -KPIC) is the default.
14314       lt_prog_compiler_static='-non_shared'
14315       ;;
14316
14317     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14318       case $cc_basename in
14319       # old Intel for x86_64 which still supported -KPIC.
14320       ecc*)
14321         lt_prog_compiler_wl='-Wl,'
14322         lt_prog_compiler_pic='-KPIC'
14323         lt_prog_compiler_static='-static'
14324         ;;
14325       # icc used to be incompatible with GCC.
14326       # ICC 10 doesn't accept -KPIC any more.
14327       icc* | ifort*)
14328         lt_prog_compiler_wl='-Wl,'
14329         lt_prog_compiler_pic='-fPIC'
14330         lt_prog_compiler_static='-static'
14331         ;;
14332       # Lahey Fortran 8.1.
14333       lf95*)
14334         lt_prog_compiler_wl='-Wl,'
14335         lt_prog_compiler_pic='--shared'
14336         lt_prog_compiler_static='--static'
14337         ;;
14338       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14339         # Portland Group compilers (*not* the Pentium gcc compiler,
14340         # which looks to be a dead project)
14341         lt_prog_compiler_wl='-Wl,'
14342         lt_prog_compiler_pic='-fpic'
14343         lt_prog_compiler_static='-Bstatic'
14344         ;;
14345       ccc*)
14346         lt_prog_compiler_wl='-Wl,'
14347         # All Alpha code is PIC.
14348         lt_prog_compiler_static='-non_shared'
14349         ;;
14350       xl* | bgxl* | bgf* | mpixl*)
14351         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14352         lt_prog_compiler_wl='-Wl,'
14353         lt_prog_compiler_pic='-qpic'
14354         lt_prog_compiler_static='-qstaticlink'
14355         ;;
14356       *)
14357         case `$CC -V 2>&1 | sed 5q` in
14358         *Sun\ F* | *Sun*Fortran*)
14359           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14360           lt_prog_compiler_pic='-KPIC'
14361           lt_prog_compiler_static='-Bstatic'
14362           lt_prog_compiler_wl=''
14363           ;;
14364         *Sun\ C*)
14365           # Sun C 5.9
14366           lt_prog_compiler_pic='-KPIC'
14367           lt_prog_compiler_static='-Bstatic'
14368           lt_prog_compiler_wl='-Wl,'
14369           ;;
14370         esac
14371         ;;
14372       esac
14373       ;;
14374
14375     newsos6)
14376       lt_prog_compiler_pic='-KPIC'
14377       lt_prog_compiler_static='-Bstatic'
14378       ;;
14379
14380     *nto* | *qnx*)
14381       # QNX uses GNU C++, but need to define -shared option too, otherwise
14382       # it will coredump.
14383       lt_prog_compiler_pic='-fPIC -shared'
14384       ;;
14385
14386     osf3* | osf4* | osf5*)
14387       lt_prog_compiler_wl='-Wl,'
14388       # All OSF/1 code is PIC.
14389       lt_prog_compiler_static='-non_shared'
14390       ;;
14391
14392     rdos*)
14393       lt_prog_compiler_static='-non_shared'
14394       ;;
14395
14396     solaris*)
14397       lt_prog_compiler_pic='-KPIC'
14398       lt_prog_compiler_static='-Bstatic'
14399       case $cc_basename in
14400       f77* | f90* | f95*)
14401         lt_prog_compiler_wl='-Qoption ld ';;
14402       *)
14403         lt_prog_compiler_wl='-Wl,';;
14404       esac
14405       ;;
14406
14407     sunos4*)
14408       lt_prog_compiler_wl='-Qoption ld '
14409       lt_prog_compiler_pic='-PIC'
14410       lt_prog_compiler_static='-Bstatic'
14411       ;;
14412
14413     sysv4 | sysv4.2uw2* | sysv4.3*)
14414       lt_prog_compiler_wl='-Wl,'
14415       lt_prog_compiler_pic='-KPIC'
14416       lt_prog_compiler_static='-Bstatic'
14417       ;;
14418
14419     sysv4*MP*)
14420       if test -d /usr/nec ;then
14421         lt_prog_compiler_pic='-Kconform_pic'
14422         lt_prog_compiler_static='-Bstatic'
14423       fi
14424       ;;
14425
14426     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14427       lt_prog_compiler_wl='-Wl,'
14428       lt_prog_compiler_pic='-KPIC'
14429       lt_prog_compiler_static='-Bstatic'
14430       ;;
14431
14432     unicos*)
14433       lt_prog_compiler_wl='-Wl,'
14434       lt_prog_compiler_can_build_shared=no
14435       ;;
14436
14437     uts4*)
14438       lt_prog_compiler_pic='-pic'
14439       lt_prog_compiler_static='-Bstatic'
14440       ;;
14441
14442     *)
14443       lt_prog_compiler_can_build_shared=no
14444       ;;
14445     esac
14446   fi
14447
14448 case $host_os in
14449   # For platforms which do not support PIC, -DPIC is meaningless:
14450   *djgpp*)
14451     lt_prog_compiler_pic=
14452     ;;
14453   *)
14454     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14455     ;;
14456 esac
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14458 $as_echo "$lt_prog_compiler_pic" >&6; }
14459
14460
14461
14462
14463
14464
14465 #
14466 # Check to make sure the PIC flag actually works.
14467 #
14468 if test -n "$lt_prog_compiler_pic"; then
14469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14470 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14471 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14472   $as_echo_n "(cached) " >&6
14473 else
14474   lt_cv_prog_compiler_pic_works=no
14475    ac_outfile=conftest.$ac_objext
14476    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14477    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14478    # Insert the option either (1) after the last *FLAGS variable, or
14479    # (2) before a word containing "conftest.", or (3) at the end.
14480    # Note that $ac_compile itself does not contain backslashes and begins
14481    # with a dollar sign (not a hyphen), so the echo should work correctly.
14482    # The option is referenced via a variable to avoid confusing sed.
14483    lt_compile=`echo "$ac_compile" | $SED \
14484    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14485    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14486    -e 's:$: $lt_compiler_flag:'`
14487    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14488    (eval "$lt_compile" 2>conftest.err)
14489    ac_status=$?
14490    cat conftest.err >&5
14491    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492    if (exit $ac_status) && test -s "$ac_outfile"; then
14493      # The compiler can only warn and ignore the option if not recognized
14494      # So say no if there are warnings other than the usual output.
14495      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14496      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14497      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14498        lt_cv_prog_compiler_pic_works=yes
14499      fi
14500    fi
14501    $RM conftest*
14502
14503 fi
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14505 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14506
14507 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14508     case $lt_prog_compiler_pic in
14509      "" | " "*) ;;
14510      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14511      esac
14512 else
14513     lt_prog_compiler_pic=
14514      lt_prog_compiler_can_build_shared=no
14515 fi
14516
14517 fi
14518
14519
14520
14521
14522
14523
14524 #
14525 # Check to make sure the static flag actually works.
14526 #
14527 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14529 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14530 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14531   $as_echo_n "(cached) " >&6
14532 else
14533   lt_cv_prog_compiler_static_works=no
14534    save_LDFLAGS="$LDFLAGS"
14535    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14536    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14537    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14538      # The linker can only warn and ignore the option if not recognized
14539      # So say no if there are warnings
14540      if test -s conftest.err; then
14541        # Append any errors to the config.log.
14542        cat conftest.err 1>&5
14543        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14544        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14545        if diff conftest.exp conftest.er2 >/dev/null; then
14546          lt_cv_prog_compiler_static_works=yes
14547        fi
14548      else
14549        lt_cv_prog_compiler_static_works=yes
14550      fi
14551    fi
14552    $RM -r conftest*
14553    LDFLAGS="$save_LDFLAGS"
14554
14555 fi
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14557 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14558
14559 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14560     :
14561 else
14562     lt_prog_compiler_static=
14563 fi
14564
14565
14566
14567
14568
14569
14570
14571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14572 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14573 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14574   $as_echo_n "(cached) " >&6
14575 else
14576   lt_cv_prog_compiler_c_o=no
14577    $RM -r conftest 2>/dev/null
14578    mkdir conftest
14579    cd conftest
14580    mkdir out
14581    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14582
14583    lt_compiler_flag="-o out/conftest2.$ac_objext"
14584    # Insert the option either (1) after the last *FLAGS variable, or
14585    # (2) before a word containing "conftest.", or (3) at the end.
14586    # Note that $ac_compile itself does not contain backslashes and begins
14587    # with a dollar sign (not a hyphen), so the echo should work correctly.
14588    lt_compile=`echo "$ac_compile" | $SED \
14589    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14590    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14591    -e 's:$: $lt_compiler_flag:'`
14592    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14593    (eval "$lt_compile" 2>out/conftest.err)
14594    ac_status=$?
14595    cat out/conftest.err >&5
14596    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14598    then
14599      # The compiler can only warn and ignore the option if not recognized
14600      # So say no if there are warnings
14601      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14602      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14603      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14604        lt_cv_prog_compiler_c_o=yes
14605      fi
14606    fi
14607    chmod u+w . 2>&5
14608    $RM conftest*
14609    # SGI C++ compiler will create directory out/ii_files/ for
14610    # template instantiation
14611    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14612    $RM out/* && rmdir out
14613    cd ..
14614    $RM -r conftest
14615    $RM conftest*
14616
14617 fi
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14619 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14620
14621
14622
14623
14624
14625
14626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14627 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14628 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14629   $as_echo_n "(cached) " >&6
14630 else
14631   lt_cv_prog_compiler_c_o=no
14632    $RM -r conftest 2>/dev/null
14633    mkdir conftest
14634    cd conftest
14635    mkdir out
14636    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14637
14638    lt_compiler_flag="-o out/conftest2.$ac_objext"
14639    # Insert the option either (1) after the last *FLAGS variable, or
14640    # (2) before a word containing "conftest.", or (3) at the end.
14641    # Note that $ac_compile itself does not contain backslashes and begins
14642    # with a dollar sign (not a hyphen), so the echo should work correctly.
14643    lt_compile=`echo "$ac_compile" | $SED \
14644    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14645    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14646    -e 's:$: $lt_compiler_flag:'`
14647    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14648    (eval "$lt_compile" 2>out/conftest.err)
14649    ac_status=$?
14650    cat out/conftest.err >&5
14651    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14653    then
14654      # The compiler can only warn and ignore the option if not recognized
14655      # So say no if there are warnings
14656      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14657      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14658      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14659        lt_cv_prog_compiler_c_o=yes
14660      fi
14661    fi
14662    chmod u+w . 2>&5
14663    $RM conftest*
14664    # SGI C++ compiler will create directory out/ii_files/ for
14665    # template instantiation
14666    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14667    $RM out/* && rmdir out
14668    cd ..
14669    $RM -r conftest
14670    $RM conftest*
14671
14672 fi
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14674 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14675
14676
14677
14678
14679 hard_links="nottested"
14680 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14681   # do not overwrite the value of need_locks provided by the user
14682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14683 $as_echo_n "checking if we can lock with hard links... " >&6; }
14684   hard_links=yes
14685   $RM conftest*
14686   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14687   touch conftest.a
14688   ln conftest.a conftest.b 2>&5 || hard_links=no
14689   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14691 $as_echo "$hard_links" >&6; }
14692   if test "$hard_links" = no; then
14693     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14694 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14695     need_locks=warn
14696   fi
14697 else
14698   need_locks=no
14699 fi
14700
14701
14702
14703
14704
14705
14706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14707 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14708
14709   runpath_var=
14710   allow_undefined_flag=
14711   always_export_symbols=no
14712   archive_cmds=
14713   archive_expsym_cmds=
14714   compiler_needs_object=no
14715   enable_shared_with_static_runtimes=no
14716   export_dynamic_flag_spec=
14717   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14718   hardcode_automatic=no
14719   hardcode_direct=no
14720   hardcode_direct_absolute=no
14721   hardcode_libdir_flag_spec=
14722   hardcode_libdir_flag_spec_ld=
14723   hardcode_libdir_separator=
14724   hardcode_minus_L=no
14725   hardcode_shlibpath_var=unsupported
14726   inherit_rpath=no
14727   link_all_deplibs=unknown
14728   module_cmds=
14729   module_expsym_cmds=
14730   old_archive_from_new_cmds=
14731   old_archive_from_expsyms_cmds=
14732   thread_safe_flag_spec=
14733   whole_archive_flag_spec=
14734   # include_expsyms should be a list of space-separated symbols to be *always*
14735   # included in the symbol list
14736   include_expsyms=
14737   # exclude_expsyms can be an extended regexp of symbols to exclude
14738   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14739   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14740   # as well as any symbol that contains `d'.
14741   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14742   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14743   # platforms (ab)use it in PIC code, but their linkers get confused if
14744   # the symbol is explicitly referenced.  Since portable code cannot
14745   # rely on this symbol name, it's probably fine to never include it in
14746   # preloaded symbol tables.
14747   # Exclude shared library initialization/finalization symbols.
14748   extract_expsyms_cmds=
14749
14750   case $host_os in
14751   cygwin* | mingw* | pw32* | cegcc*)
14752     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14753     # When not using gcc, we currently assume that we are using
14754     # Microsoft Visual C++.
14755     if test "$GCC" != yes; then
14756       with_gnu_ld=no
14757     fi
14758     ;;
14759   interix*)
14760     # we just hope/assume this is gcc and not c89 (= MSVC++)
14761     with_gnu_ld=yes
14762     ;;
14763   openbsd*)
14764     with_gnu_ld=no
14765     ;;
14766   esac
14767
14768   ld_shlibs=yes
14769
14770   # On some targets, GNU ld is compatible enough with the native linker
14771   # that we're better off using the native interface for both.
14772   lt_use_gnu_ld_interface=no
14773   if test "$with_gnu_ld" = yes; then
14774     case $host_os in
14775       aix*)
14776         # The AIX port of GNU ld has always aspired to compatibility
14777         # with the native linker.  However, as the warning in the GNU ld
14778         # block says, versions before 2.19.5* couldn't really create working
14779         # shared libraries, regardless of the interface used.
14780         case `$LD -v 2>&1` in
14781           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14782           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14783           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14784           *)
14785             lt_use_gnu_ld_interface=yes
14786             ;;
14787         esac
14788         ;;
14789       *)
14790         lt_use_gnu_ld_interface=yes
14791         ;;
14792     esac
14793   fi
14794
14795   if test "$lt_use_gnu_ld_interface" = yes; then
14796     # If archive_cmds runs LD, not CC, wlarc should be empty
14797     wlarc='${wl}'
14798
14799     # Set some defaults for GNU ld with shared library support. These
14800     # are reset later if shared libraries are not supported. Putting them
14801     # here allows them to be overridden if necessary.
14802     runpath_var=LD_RUN_PATH
14803     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14804     export_dynamic_flag_spec='${wl}--export-dynamic'
14805     # ancient GNU ld didn't support --whole-archive et. al.
14806     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14807       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14808     else
14809       whole_archive_flag_spec=
14810     fi
14811     supports_anon_versioning=no
14812     case `$LD -v 2>&1` in
14813       *GNU\ gold*) supports_anon_versioning=yes ;;
14814       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14815       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14816       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14817       *\ 2.11.*) ;; # other 2.11 versions
14818       *) supports_anon_versioning=yes ;;
14819     esac
14820
14821     # See if GNU ld supports shared libraries.
14822     case $host_os in
14823     aix[3-9]*)
14824       # On AIX/PPC, the GNU linker is very broken
14825       if test "$host_cpu" != ia64; then
14826         ld_shlibs=no
14827         cat <<_LT_EOF 1>&2
14828
14829 *** Warning: the GNU linker, at least up to release 2.19, is reported
14830 *** to be unable to reliably create shared libraries on AIX.
14831 *** Therefore, libtool is disabling shared libraries support.  If you
14832 *** really care for shared libraries, you may want to install binutils
14833 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14834 *** You will then need to restart the configuration process.
14835
14836 _LT_EOF
14837       fi
14838       ;;
14839
14840     amigaos*)
14841       case $host_cpu in
14842       powerpc)
14843             # see comment about AmigaOS4 .so support
14844             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14845             archive_expsym_cmds=''
14846         ;;
14847       m68k)
14848             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)'
14849             hardcode_libdir_flag_spec='-L$libdir'
14850             hardcode_minus_L=yes
14851         ;;
14852       esac
14853       ;;
14854
14855     beos*)
14856       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14857         allow_undefined_flag=unsupported
14858         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14859         # support --undefined.  This deserves some investigation.  FIXME
14860         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14861       else
14862         ld_shlibs=no
14863       fi
14864       ;;
14865
14866     cygwin* | mingw* | pw32* | cegcc*)
14867       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14868       # as there is no search path for DLLs.
14869       hardcode_libdir_flag_spec='-L$libdir'
14870       export_dynamic_flag_spec='${wl}--export-all-symbols'
14871       allow_undefined_flag=unsupported
14872       always_export_symbols=no
14873       enable_shared_with_static_runtimes=yes
14874       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14875
14876       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14877         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14878         # If the export-symbols file already is a .def file (1st line
14879         # is EXPORTS), use it as is; otherwise, prepend...
14880         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14881           cp $export_symbols $output_objdir/$soname.def;
14882         else
14883           echo EXPORTS > $output_objdir/$soname.def;
14884           cat $export_symbols >> $output_objdir/$soname.def;
14885         fi~
14886         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14887       else
14888         ld_shlibs=no
14889       fi
14890       ;;
14891
14892     haiku*)
14893       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14894       link_all_deplibs=yes
14895       ;;
14896
14897     interix[3-9]*)
14898       hardcode_direct=no
14899       hardcode_shlibpath_var=no
14900       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14901       export_dynamic_flag_spec='${wl}-E'
14902       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14903       # Instead, shared libraries are loaded at an image base (0x10000000 by
14904       # default) and relocated if they conflict, which is a slow very memory
14905       # consuming and fragmenting process.  To avoid this, we pick a random,
14906       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14907       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14908       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14909       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'
14910       ;;
14911
14912     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14913       tmp_diet=no
14914       if test "$host_os" = linux-dietlibc; then
14915         case $cc_basename in
14916           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
14917         esac
14918       fi
14919       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14920          && test "$tmp_diet" = no
14921       then
14922         tmp_addflag=
14923         tmp_sharedflag='-shared'
14924         case $cc_basename,$host_cpu in
14925         pgcc*)                          # Portland Group C compiler
14926           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'
14927           tmp_addflag=' $pic_flag'
14928           ;;
14929         pgf77* | pgf90* | pgf95* | pgfortran*)
14930                                         # Portland Group f77 and f90 compilers
14931           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'
14932           tmp_addflag=' $pic_flag -Mnomain' ;;
14933         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
14934           tmp_addflag=' -i_dynamic' ;;
14935         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14936           tmp_addflag=' -i_dynamic -nofor_main' ;;
14937         ifc* | ifort*)                  # Intel Fortran compiler
14938           tmp_addflag=' -nofor_main' ;;
14939         lf95*)                          # Lahey Fortran 8.1
14940           whole_archive_flag_spec=
14941           tmp_sharedflag='--shared' ;;
14942         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14943           tmp_sharedflag='-qmkshrobj'
14944           tmp_addflag= ;;
14945         nvcc*)  # Cuda Compiler Driver 2.2
14946           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'
14947           compiler_needs_object=yes
14948           ;;
14949         esac
14950         case `$CC -V 2>&1 | sed 5q` in
14951         *Sun\ C*)                       # Sun C 5.9
14952           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'
14953           compiler_needs_object=yes
14954           tmp_sharedflag='-G' ;;
14955         *Sun\ F*)                       # Sun Fortran 8.3
14956           tmp_sharedflag='-G' ;;
14957         esac
14958         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14959
14960         if test "x$supports_anon_versioning" = xyes; then
14961           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14962             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14963             echo "local: *; };" >> $output_objdir/$libname.ver~
14964             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14965         fi
14966
14967         case $cc_basename in
14968         xlf* | bgf* | bgxlf* | mpixlf*)
14969           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14970           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14971           hardcode_libdir_flag_spec=
14972           hardcode_libdir_flag_spec_ld='-rpath $libdir'
14973           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14974           if test "x$supports_anon_versioning" = xyes; then
14975             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14976               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14977               echo "local: *; };" >> $output_objdir/$libname.ver~
14978               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14979           fi
14980           ;;
14981         esac
14982       else
14983         ld_shlibs=no
14984       fi
14985       ;;
14986
14987     netbsd*)
14988       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14989         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14990         wlarc=
14991       else
14992         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14993         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14994       fi
14995       ;;
14996
14997     solaris*)
14998       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14999         ld_shlibs=no
15000         cat <<_LT_EOF 1>&2
15001
15002 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15003 *** create shared libraries on Solaris systems.  Therefore, libtool
15004 *** is disabling shared libraries support.  We urge you to upgrade GNU
15005 *** binutils to release 2.9.1 or newer.  Another option is to modify
15006 *** your PATH or compiler configuration so that the native linker is
15007 *** used, and then restart.
15008
15009 _LT_EOF
15010       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15011         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15013       else
15014         ld_shlibs=no
15015       fi
15016       ;;
15017
15018     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15019       case `$LD -v 2>&1` in
15020         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15021         ld_shlibs=no
15022         cat <<_LT_EOF 1>&2
15023
15024 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15025 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15026 *** is disabling shared libraries support.  We urge you to upgrade GNU
15027 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15028 *** your PATH or compiler configuration so that the native linker is
15029 *** used, and then restart.
15030
15031 _LT_EOF
15032         ;;
15033         *)
15034           # For security reasons, it is highly recommended that you always
15035           # use absolute paths for naming shared libraries, and exclude the
15036           # DT_RUNPATH tag from executables and libraries.  But doing so
15037           # requires that you compile everything twice, which is a pain.
15038           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15039             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15040             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15041             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15042           else
15043             ld_shlibs=no
15044           fi
15045         ;;
15046       esac
15047       ;;
15048
15049     sunos4*)
15050       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15051       wlarc=
15052       hardcode_direct=yes
15053       hardcode_shlibpath_var=no
15054       ;;
15055
15056     *)
15057       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15058         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15059         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15060       else
15061         ld_shlibs=no
15062       fi
15063       ;;
15064     esac
15065
15066     if test "$ld_shlibs" = no; then
15067       runpath_var=
15068       hardcode_libdir_flag_spec=
15069       export_dynamic_flag_spec=
15070       whole_archive_flag_spec=
15071     fi
15072   else
15073     # PORTME fill in a description of your system's linker (not GNU ld)
15074     case $host_os in
15075     aix3*)
15076       allow_undefined_flag=unsupported
15077       always_export_symbols=yes
15078       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'
15079       # Note: this linker hardcodes the directories in LIBPATH if there
15080       # are no directories specified by -L.
15081       hardcode_minus_L=yes
15082       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15083         # Neither direct hardcoding nor static linking is supported with a
15084         # broken collect2.
15085         hardcode_direct=unsupported
15086       fi
15087       ;;
15088
15089     aix[4-9]*)
15090       if test "$host_cpu" = ia64; then
15091         # On IA64, the linker does run time linking by default, so we don't
15092         # have to do anything special.
15093         aix_use_runtimelinking=no
15094         exp_sym_flag='-Bexport'
15095         no_entry_flag=""
15096       else
15097         # If we're using GNU nm, then we don't want the "-C" option.
15098         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15099         # Also, AIX nm treats weak defined symbols like other global
15100         # defined symbols, whereas GNU nm marks them as "W".
15101         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15102           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'
15103         else
15104           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'
15105         fi
15106         aix_use_runtimelinking=no
15107
15108         # Test if we are trying to use run time linking or normal
15109         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15110         # need to do runtime linking.
15111         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15112           for ld_flag in $LDFLAGS; do
15113           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15114             aix_use_runtimelinking=yes
15115             break
15116           fi
15117           done
15118           ;;
15119         esac
15120
15121         exp_sym_flag='-bexport'
15122         no_entry_flag='-bnoentry'
15123       fi
15124
15125       # When large executables or shared objects are built, AIX ld can
15126       # have problems creating the table of contents.  If linking a library
15127       # or program results in "error TOC overflow" add -mminimal-toc to
15128       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15129       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15130
15131       archive_cmds=''
15132       hardcode_direct=yes
15133       hardcode_direct_absolute=yes
15134       hardcode_libdir_separator=':'
15135       link_all_deplibs=yes
15136       file_list_spec='${wl}-f,'
15137
15138       if test "$GCC" = yes; then
15139         case $host_os in aix4.[012]|aix4.[012].*)
15140         # We only want to do this on AIX 4.2 and lower, the check
15141         # below for broken collect2 doesn't work under 4.3+
15142           collect2name=`${CC} -print-prog-name=collect2`
15143           if test -f "$collect2name" &&
15144            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15145           then
15146           # We have reworked collect2
15147           :
15148           else
15149           # We have old collect2
15150           hardcode_direct=unsupported
15151           # It fails to find uninstalled libraries when the uninstalled
15152           # path is not listed in the libpath.  Setting hardcode_minus_L
15153           # to unsupported forces relinking
15154           hardcode_minus_L=yes
15155           hardcode_libdir_flag_spec='-L$libdir'
15156           hardcode_libdir_separator=
15157           fi
15158           ;;
15159         esac
15160         shared_flag='-shared'
15161         if test "$aix_use_runtimelinking" = yes; then
15162           shared_flag="$shared_flag "'${wl}-G'
15163         fi
15164       else
15165         # not using gcc
15166         if test "$host_cpu" = ia64; then
15167         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15168         # chokes on -Wl,-G. The following line is correct:
15169           shared_flag='-G'
15170         else
15171           if test "$aix_use_runtimelinking" = yes; then
15172             shared_flag='${wl}-G'
15173           else
15174             shared_flag='${wl}-bM:SRE'
15175           fi
15176         fi
15177       fi
15178
15179       export_dynamic_flag_spec='${wl}-bexpall'
15180       # It seems that -bexpall does not export symbols beginning with
15181       # underscore (_), so it is better to generate a list of symbols to export.
15182       always_export_symbols=yes
15183       if test "$aix_use_runtimelinking" = yes; then
15184         # Warning - without using the other runtime loading flags (-brtl),
15185         # -berok will link without error, but may produce a broken library.
15186         allow_undefined_flag='-berok'
15187         # Determine the default libpath from the value encoded in an
15188         # empty executable.
15189         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h.  */
15191
15192 int
15193 main ()
15194 {
15195
15196   ;
15197   return 0;
15198 }
15199 _ACEOF
15200 if ac_fn_c_try_link "$LINENO"; then :
15201
15202 lt_aix_libpath_sed='
15203     /Import File Strings/,/^$/ {
15204         /^0/ {
15205             s/^0  *\(.*\)$/\1/
15206             p
15207         }
15208     }'
15209 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15210 # Check for a 64-bit object if we didn't find anything.
15211 if test -z "$aix_libpath"; then
15212   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15213 fi
15214 fi
15215 rm -f core conftest.err conftest.$ac_objext \
15216     conftest$ac_exeext conftest.$ac_ext
15217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15218
15219         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15220         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"
15221       else
15222         if test "$host_cpu" = ia64; then
15223           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15224           allow_undefined_flag="-z nodefs"
15225           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"
15226         else
15227          # Determine the default libpath from the value encoded in an
15228          # empty executable.
15229          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h.  */
15231
15232 int
15233 main ()
15234 {
15235
15236   ;
15237   return 0;
15238 }
15239 _ACEOF
15240 if ac_fn_c_try_link "$LINENO"; then :
15241
15242 lt_aix_libpath_sed='
15243     /Import File Strings/,/^$/ {
15244         /^0/ {
15245             s/^0  *\(.*\)$/\1/
15246             p
15247         }
15248     }'
15249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15250 # Check for a 64-bit object if we didn't find anything.
15251 if test -z "$aix_libpath"; then
15252   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15253 fi
15254 fi
15255 rm -f core conftest.err conftest.$ac_objext \
15256     conftest$ac_exeext conftest.$ac_ext
15257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15258
15259          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15260           # Warning - without using the other run time loading flags,
15261           # -berok will link without error, but may produce a broken library.
15262           no_undefined_flag=' ${wl}-bernotok'
15263           allow_undefined_flag=' ${wl}-berok'
15264           if test "$with_gnu_ld" = yes; then
15265             # We only use this code for GNU lds that support --whole-archive.
15266             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15267           else
15268             # Exported symbols can be pulled into shared objects from archives
15269             whole_archive_flag_spec='$convenience'
15270           fi
15271           archive_cmds_need_lc=yes
15272           # This is similar to how AIX traditionally builds its shared libraries.
15273           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'
15274         fi
15275       fi
15276       ;;
15277
15278     amigaos*)
15279       case $host_cpu in
15280       powerpc)
15281             # see comment about AmigaOS4 .so support
15282             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15283             archive_expsym_cmds=''
15284         ;;
15285       m68k)
15286             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)'
15287             hardcode_libdir_flag_spec='-L$libdir'
15288             hardcode_minus_L=yes
15289         ;;
15290       esac
15291       ;;
15292
15293     bsdi[45]*)
15294       export_dynamic_flag_spec=-rdynamic
15295       ;;
15296
15297     cygwin* | mingw* | pw32* | cegcc*)
15298       # When not using gcc, we currently assume that we are using
15299       # Microsoft Visual C++.
15300       # hardcode_libdir_flag_spec is actually meaningless, as there is
15301       # no search path for DLLs.
15302       hardcode_libdir_flag_spec=' '
15303       allow_undefined_flag=unsupported
15304       # Tell ltmain to make .lib files, not .a files.
15305       libext=lib
15306       # Tell ltmain to make .dll files, not .so files.
15307       shrext_cmds=".dll"
15308       # FIXME: Setting linknames here is a bad hack.
15309       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15310       # The linker will automatically build a .lib file if we build a DLL.
15311       old_archive_from_new_cmds='true'
15312       # FIXME: Should let the user specify the lib program.
15313       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15314       fix_srcfile_path='`cygpath -w "$srcfile"`'
15315       enable_shared_with_static_runtimes=yes
15316       ;;
15317
15318     darwin* | rhapsody*)
15319
15320
15321   archive_cmds_need_lc=no
15322   hardcode_direct=no
15323   hardcode_automatic=yes
15324   hardcode_shlibpath_var=unsupported
15325   if test "$lt_cv_ld_force_load" = "yes"; then
15326     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\"`'
15327   else
15328     whole_archive_flag_spec=''
15329   fi
15330   link_all_deplibs=yes
15331   allow_undefined_flag="$_lt_dar_allow_undefined"
15332   case $cc_basename in
15333      ifort*) _lt_dar_can_shared=yes ;;
15334      *) _lt_dar_can_shared=$GCC ;;
15335   esac
15336   if test "$_lt_dar_can_shared" = "yes"; then
15337     output_verbose_link_cmd=func_echo_all
15338     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15339     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15340     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}"
15341     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}"
15342
15343   else
15344   ld_shlibs=no
15345   fi
15346
15347       ;;
15348
15349     dgux*)
15350       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15351       hardcode_libdir_flag_spec='-L$libdir'
15352       hardcode_shlibpath_var=no
15353       ;;
15354
15355     freebsd1*)
15356       ld_shlibs=no
15357       ;;
15358
15359     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15360     # support.  Future versions do this automatically, but an explicit c++rt0.o
15361     # does not break anything, and helps significantly (at the cost of a little
15362     # extra space).
15363     freebsd2.2*)
15364       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15365       hardcode_libdir_flag_spec='-R$libdir'
15366       hardcode_direct=yes
15367       hardcode_shlibpath_var=no
15368       ;;
15369
15370     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15371     freebsd2*)
15372       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15373       hardcode_direct=yes
15374       hardcode_minus_L=yes
15375       hardcode_shlibpath_var=no
15376       ;;
15377
15378     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15379     freebsd* | dragonfly*)
15380       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15381       hardcode_libdir_flag_spec='-R$libdir'
15382       hardcode_direct=yes
15383       hardcode_shlibpath_var=no
15384       ;;
15385
15386     hpux9*)
15387       if test "$GCC" = yes; then
15388         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'
15389       else
15390         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'
15391       fi
15392       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15393       hardcode_libdir_separator=:
15394       hardcode_direct=yes
15395
15396       # hardcode_minus_L: Not really in the search PATH,
15397       # but as the default location of the library.
15398       hardcode_minus_L=yes
15399       export_dynamic_flag_spec='${wl}-E'
15400       ;;
15401
15402     hpux10*)
15403       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15404         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15405       else
15406         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15407       fi
15408       if test "$with_gnu_ld" = no; then
15409         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15410         hardcode_libdir_flag_spec_ld='+b $libdir'
15411         hardcode_libdir_separator=:
15412         hardcode_direct=yes
15413         hardcode_direct_absolute=yes
15414         export_dynamic_flag_spec='${wl}-E'
15415         # hardcode_minus_L: Not really in the search PATH,
15416         # but as the default location of the library.
15417         hardcode_minus_L=yes
15418       fi
15419       ;;
15420
15421     hpux11*)
15422       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15423         case $host_cpu in
15424         hppa*64*)
15425           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15426           ;;
15427         ia64*)
15428           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15429           ;;
15430         *)
15431           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15432           ;;
15433         esac
15434       else
15435         case $host_cpu in
15436         hppa*64*)
15437           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15438           ;;
15439         ia64*)
15440           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15441           ;;
15442         *)
15443
15444           # Older versions of the 11.00 compiler do not understand -b yet
15445           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15446           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15447 $as_echo_n "checking if $CC understands -b... " >&6; }
15448 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15449   $as_echo_n "(cached) " >&6
15450 else
15451   lt_cv_prog_compiler__b=no
15452    save_LDFLAGS="$LDFLAGS"
15453    LDFLAGS="$LDFLAGS -b"
15454    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15455    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15456      # The linker can only warn and ignore the option if not recognized
15457      # So say no if there are warnings
15458      if test -s conftest.err; then
15459        # Append any errors to the config.log.
15460        cat conftest.err 1>&5
15461        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15462        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15463        if diff conftest.exp conftest.er2 >/dev/null; then
15464          lt_cv_prog_compiler__b=yes
15465        fi
15466      else
15467        lt_cv_prog_compiler__b=yes
15468      fi
15469    fi
15470    $RM -r conftest*
15471    LDFLAGS="$save_LDFLAGS"
15472
15473 fi
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15475 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15476
15477 if test x"$lt_cv_prog_compiler__b" = xyes; then
15478     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15479 else
15480     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15481 fi
15482
15483           ;;
15484         esac
15485       fi
15486       if test "$with_gnu_ld" = no; then
15487         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15488         hardcode_libdir_separator=:
15489
15490         case $host_cpu in
15491         hppa*64*|ia64*)
15492           hardcode_direct=no
15493           hardcode_shlibpath_var=no
15494           ;;
15495         *)
15496           hardcode_direct=yes
15497           hardcode_direct_absolute=yes
15498           export_dynamic_flag_spec='${wl}-E'
15499
15500           # hardcode_minus_L: Not really in the search PATH,
15501           # but as the default location of the library.
15502           hardcode_minus_L=yes
15503           ;;
15504         esac
15505       fi
15506       ;;
15507
15508     irix5* | irix6* | nonstopux*)
15509       if test "$GCC" = yes; then
15510         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'
15511         # Try to use the -exported_symbol ld option, if it does not
15512         # work, assume that -exports_file does not work either and
15513         # implicitly export all symbols.
15514         save_LDFLAGS="$LDFLAGS"
15515         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15516         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517 /* end confdefs.h.  */
15518 int foo(void) {}
15519 _ACEOF
15520 if ac_fn_c_try_link "$LINENO"; then :
15521   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'
15522
15523 fi
15524 rm -f core conftest.err conftest.$ac_objext \
15525     conftest$ac_exeext conftest.$ac_ext
15526         LDFLAGS="$save_LDFLAGS"
15527       else
15528         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'
15529         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'
15530       fi
15531       archive_cmds_need_lc='no'
15532       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15533       hardcode_libdir_separator=:
15534       inherit_rpath=yes
15535       link_all_deplibs=yes
15536       ;;
15537
15538     netbsd*)
15539       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15540         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15541       else
15542         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15543       fi
15544       hardcode_libdir_flag_spec='-R$libdir'
15545       hardcode_direct=yes
15546       hardcode_shlibpath_var=no
15547       ;;
15548
15549     newsos6)
15550       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15551       hardcode_direct=yes
15552       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15553       hardcode_libdir_separator=:
15554       hardcode_shlibpath_var=no
15555       ;;
15556
15557     *nto* | *qnx*)
15558       ;;
15559
15560     openbsd*)
15561       if test -f /usr/libexec/ld.so; then
15562         hardcode_direct=yes
15563         hardcode_shlibpath_var=no
15564         hardcode_direct_absolute=yes
15565         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15566           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15567           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15568           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15569           export_dynamic_flag_spec='${wl}-E'
15570         else
15571           case $host_os in
15572            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15573              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15574              hardcode_libdir_flag_spec='-R$libdir'
15575              ;;
15576            *)
15577              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15578              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15579              ;;
15580           esac
15581         fi
15582       else
15583         ld_shlibs=no
15584       fi
15585       ;;
15586
15587     os2*)
15588       hardcode_libdir_flag_spec='-L$libdir'
15589       hardcode_minus_L=yes
15590       allow_undefined_flag=unsupported
15591       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'
15592       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15593       ;;
15594
15595     osf3*)
15596       if test "$GCC" = yes; then
15597         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15598         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'
15599       else
15600         allow_undefined_flag=' -expect_unresolved \*'
15601         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'
15602       fi
15603       archive_cmds_need_lc='no'
15604       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15605       hardcode_libdir_separator=:
15606       ;;
15607
15608     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15609       if test "$GCC" = yes; then
15610         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15611         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'
15612         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15613       else
15614         allow_undefined_flag=' -expect_unresolved \*'
15615         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'
15616         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~
15617         $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'
15618
15619         # Both c and cxx compiler support -rpath directly
15620         hardcode_libdir_flag_spec='-rpath $libdir'
15621       fi
15622       archive_cmds_need_lc='no'
15623       hardcode_libdir_separator=:
15624       ;;
15625
15626     solaris*)
15627       no_undefined_flag=' -z defs'
15628       if test "$GCC" = yes; then
15629         wlarc='${wl}'
15630         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15631         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15632           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15633       else
15634         case `$CC -V 2>&1` in
15635         *"Compilers 5.0"*)
15636           wlarc=''
15637           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15638           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15639           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15640           ;;
15641         *)
15642           wlarc='${wl}'
15643           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15644           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15645           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15646           ;;
15647         esac
15648       fi
15649       hardcode_libdir_flag_spec='-R$libdir'
15650       hardcode_shlibpath_var=no
15651       case $host_os in
15652       solaris2.[0-5] | solaris2.[0-5].*) ;;
15653       *)
15654         # The compiler driver will combine and reorder linker options,
15655         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15656         # but is careful enough not to reorder.
15657         # Supported since Solaris 2.6 (maybe 2.5.1?)
15658         if test "$GCC" = yes; then
15659           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15660         else
15661           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15662         fi
15663         ;;
15664       esac
15665       link_all_deplibs=yes
15666       ;;
15667
15668     sunos4*)
15669       if test "x$host_vendor" = xsequent; then
15670         # Use $CC to link under sequent, because it throws in some extra .o
15671         # files that make .init and .fini sections work.
15672         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15673       else
15674         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15675       fi
15676       hardcode_libdir_flag_spec='-L$libdir'
15677       hardcode_direct=yes
15678       hardcode_minus_L=yes
15679       hardcode_shlibpath_var=no
15680       ;;
15681
15682     sysv4)
15683       case $host_vendor in
15684         sni)
15685           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15686           hardcode_direct=yes # is this really true???
15687         ;;
15688         siemens)
15689           ## LD is ld it makes a PLAMLIB
15690           ## CC just makes a GrossModule.
15691           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15692           reload_cmds='$CC -r -o $output$reload_objs'
15693           hardcode_direct=no
15694         ;;
15695         motorola)
15696           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15697           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15698         ;;
15699       esac
15700       runpath_var='LD_RUN_PATH'
15701       hardcode_shlibpath_var=no
15702       ;;
15703
15704     sysv4.3*)
15705       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706       hardcode_shlibpath_var=no
15707       export_dynamic_flag_spec='-Bexport'
15708       ;;
15709
15710     sysv4*MP*)
15711       if test -d /usr/nec; then
15712         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15713         hardcode_shlibpath_var=no
15714         runpath_var=LD_RUN_PATH
15715         hardcode_runpath_var=yes
15716         ld_shlibs=yes
15717       fi
15718       ;;
15719
15720     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15721       no_undefined_flag='${wl}-z,text'
15722       archive_cmds_need_lc=no
15723       hardcode_shlibpath_var=no
15724       runpath_var='LD_RUN_PATH'
15725
15726       if test "$GCC" = yes; then
15727         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729       else
15730         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15731         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732       fi
15733       ;;
15734
15735     sysv5* | sco3.2v5* | sco5v6*)
15736       # Note: We can NOT use -z defs as we might desire, because we do not
15737       # link with -lc, and that would cause any symbols used from libc to
15738       # always be unresolved, which means just about no library would
15739       # ever link correctly.  If we're not using GNU ld we use -z text
15740       # though, which does catch some bad symbols but isn't as heavy-handed
15741       # as -z defs.
15742       no_undefined_flag='${wl}-z,text'
15743       allow_undefined_flag='${wl}-z,nodefs'
15744       archive_cmds_need_lc=no
15745       hardcode_shlibpath_var=no
15746       hardcode_libdir_flag_spec='${wl}-R,$libdir'
15747       hardcode_libdir_separator=':'
15748       link_all_deplibs=yes
15749       export_dynamic_flag_spec='${wl}-Bexport'
15750       runpath_var='LD_RUN_PATH'
15751
15752       if test "$GCC" = yes; then
15753         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15754         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15755       else
15756         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15757         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15758       fi
15759       ;;
15760
15761     uts4*)
15762       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763       hardcode_libdir_flag_spec='-L$libdir'
15764       hardcode_shlibpath_var=no
15765       ;;
15766
15767     *)
15768       ld_shlibs=no
15769       ;;
15770     esac
15771
15772     if test x$host_vendor = xsni; then
15773       case $host in
15774       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15775         export_dynamic_flag_spec='${wl}-Blargedynsym'
15776         ;;
15777       esac
15778     fi
15779   fi
15780
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15782 $as_echo "$ld_shlibs" >&6; }
15783 test "$ld_shlibs" = no && can_build_shared=no
15784
15785 with_gnu_ld=$with_gnu_ld
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801 #
15802 # Do we need to explicitly link libc?
15803 #
15804 case "x$archive_cmds_need_lc" in
15805 x|xyes)
15806   # Assume -lc should be added
15807   archive_cmds_need_lc=yes
15808
15809   if test "$enable_shared" = yes && test "$GCC" = yes; then
15810     case $archive_cmds in
15811     *'~'*)
15812       # FIXME: we may have to deal with multi-command sequences.
15813       ;;
15814     '$CC '*)
15815       # Test whether the compiler implicitly links with -lc since on some
15816       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15817       # to ld, don't add -lc before -lgcc.
15818       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15819 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15820 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15821   $as_echo_n "(cached) " >&6
15822 else
15823   $RM conftest*
15824         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15825
15826         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15827   (eval $ac_compile) 2>&5
15828   ac_status=$?
15829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15830   test $ac_status = 0; } 2>conftest.err; then
15831           soname=conftest
15832           lib=conftest
15833           libobjs=conftest.$ac_objext
15834           deplibs=
15835           wl=$lt_prog_compiler_wl
15836           pic_flag=$lt_prog_compiler_pic
15837           compiler_flags=-v
15838           linker_flags=-v
15839           verstring=
15840           output_objdir=.
15841           libname=conftest
15842           lt_save_allow_undefined_flag=$allow_undefined_flag
15843           allow_undefined_flag=
15844           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15845   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15846   ac_status=$?
15847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15848   test $ac_status = 0; }
15849           then
15850             lt_cv_archive_cmds_need_lc=no
15851           else
15852             lt_cv_archive_cmds_need_lc=yes
15853           fi
15854           allow_undefined_flag=$lt_save_allow_undefined_flag
15855         else
15856           cat conftest.err 1>&5
15857         fi
15858         $RM conftest*
15859
15860 fi
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15862 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15863       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15864       ;;
15865     esac
15866   fi
15867   ;;
15868 esac
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16027 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16028
16029 if test "$GCC" = yes; then
16030   case $host_os in
16031     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16032     *) lt_awk_arg="/^libraries:/" ;;
16033   esac
16034   case $host_os in
16035     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16036     *) lt_sed_strip_eq="s,=/,/,g" ;;
16037   esac
16038   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16039   case $lt_search_path_spec in
16040   *\;*)
16041     # if the path contains ";" then we assume it to be the separator
16042     # otherwise default to the standard path separator (i.e. ":") - it is
16043     # assumed that no part of a normal pathname contains ";" but that should
16044     # okay in the real world where ";" in dirpaths is itself problematic.
16045     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16046     ;;
16047   *)
16048     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16049     ;;
16050   esac
16051   # Ok, now we have the path, separated by spaces, we can step through it
16052   # and add multilib dir if necessary.
16053   lt_tmp_lt_search_path_spec=
16054   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16055   for lt_sys_path in $lt_search_path_spec; do
16056     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16057       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16058     else
16059       test -d "$lt_sys_path" && \
16060         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16061     fi
16062   done
16063   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16064 BEGIN {RS=" "; FS="/|\n";} {
16065   lt_foo="";
16066   lt_count=0;
16067   for (lt_i = NF; lt_i > 0; lt_i--) {
16068     if ($lt_i != "" && $lt_i != ".") {
16069       if ($lt_i == "..") {
16070         lt_count++;
16071       } else {
16072         if (lt_count == 0) {
16073           lt_foo="/" $lt_i lt_foo;
16074         } else {
16075           lt_count--;
16076         }
16077       }
16078     }
16079   }
16080   if (lt_foo != "") { lt_freq[lt_foo]++; }
16081   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16082 }'`
16083   # AWK program above erroneously prepends '/' to C:/dos/paths
16084   # for these hosts.
16085   case $host_os in
16086     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16087       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16088   esac
16089   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16090 else
16091   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16092 fi
16093 library_names_spec=
16094 libname_spec='lib$name'
16095 soname_spec=
16096 shrext_cmds=".so"
16097 postinstall_cmds=
16098 postuninstall_cmds=
16099 finish_cmds=
16100 finish_eval=
16101 shlibpath_var=
16102 shlibpath_overrides_runpath=unknown
16103 version_type=none
16104 dynamic_linker="$host_os ld.so"
16105 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16106 need_lib_prefix=unknown
16107 hardcode_into_libs=no
16108
16109 # when you set need_version to no, make sure it does not cause -set_version
16110 # flags to be left without arguments
16111 need_version=unknown
16112
16113 case $host_os in
16114 aix3*)
16115   version_type=linux
16116   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16117   shlibpath_var=LIBPATH
16118
16119   # AIX 3 has no versioning support, so we append a major version to the name.
16120   soname_spec='${libname}${release}${shared_ext}$major'
16121   ;;
16122
16123 aix[4-9]*)
16124   version_type=linux
16125   need_lib_prefix=no
16126   need_version=no
16127   hardcode_into_libs=yes
16128   if test "$host_cpu" = ia64; then
16129     # AIX 5 supports IA64
16130     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16131     shlibpath_var=LD_LIBRARY_PATH
16132   else
16133     # With GCC up to 2.95.x, collect2 would create an import file
16134     # for dependence libraries.  The import file would start with
16135     # the line `#! .'.  This would cause the generated library to
16136     # depend on `.', always an invalid library.  This was fixed in
16137     # development snapshots of GCC prior to 3.0.
16138     case $host_os in
16139       aix4 | aix4.[01] | aix4.[01].*)
16140       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16141            echo ' yes '
16142            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16143         :
16144       else
16145         can_build_shared=no
16146       fi
16147       ;;
16148     esac
16149     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16150     # soname into executable. Probably we can add versioning support to
16151     # collect2, so additional links can be useful in future.
16152     if test "$aix_use_runtimelinking" = yes; then
16153       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16154       # instead of lib<name>.a to let people know that these are not
16155       # typical AIX shared libraries.
16156       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157     else
16158       # We preserve .a as extension for shared libraries through AIX4.2
16159       # and later when we are not doing run time linking.
16160       library_names_spec='${libname}${release}.a $libname.a'
16161       soname_spec='${libname}${release}${shared_ext}$major'
16162     fi
16163     shlibpath_var=LIBPATH
16164   fi
16165   ;;
16166
16167 amigaos*)
16168   case $host_cpu in
16169   powerpc)
16170     # Since July 2007 AmigaOS4 officially supports .so libraries.
16171     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173     ;;
16174   m68k)
16175     library_names_spec='$libname.ixlibrary $libname.a'
16176     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16177     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'
16178     ;;
16179   esac
16180   ;;
16181
16182 beos*)
16183   library_names_spec='${libname}${shared_ext}'
16184   dynamic_linker="$host_os ld.so"
16185   shlibpath_var=LIBRARY_PATH
16186   ;;
16187
16188 bsdi[45]*)
16189   version_type=linux
16190   need_version=no
16191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192   soname_spec='${libname}${release}${shared_ext}$major'
16193   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16194   shlibpath_var=LD_LIBRARY_PATH
16195   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16196   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16197   # the default ld.so.conf also contains /usr/contrib/lib and
16198   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16199   # libtool to hard-code these into programs
16200   ;;
16201
16202 cygwin* | mingw* | pw32* | cegcc*)
16203   version_type=windows
16204   shrext_cmds=".dll"
16205   need_version=no
16206   need_lib_prefix=no
16207
16208   case $GCC,$host_os in
16209   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16210     library_names_spec='$libname.dll.a'
16211     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16212     postinstall_cmds='base_file=`basename \${file}`~
16213       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16214       dldir=$destdir/`dirname \$dlpath`~
16215       test -d \$dldir || mkdir -p \$dldir~
16216       $install_prog $dir/$dlname \$dldir/$dlname~
16217       chmod a+x \$dldir/$dlname~
16218       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16219         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16220       fi'
16221     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16222       dlpath=$dir/\$dldll~
16223        $RM \$dlpath'
16224     shlibpath_overrides_runpath=yes
16225
16226     case $host_os in
16227     cygwin*)
16228       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16229       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16230
16231       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16232       ;;
16233     mingw* | cegcc*)
16234       # MinGW DLLs use traditional 'lib' prefix
16235       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16236       ;;
16237     pw32*)
16238       # pw32 DLLs use 'pw' prefix rather than 'lib'
16239       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16240       ;;
16241     esac
16242     ;;
16243
16244   *)
16245     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16246     ;;
16247   esac
16248   dynamic_linker='Win32 ld.exe'
16249   # FIXME: first we should search . and the directory the executable is in
16250   shlibpath_var=PATH
16251   ;;
16252
16253 darwin* | rhapsody*)
16254   dynamic_linker="$host_os dyld"
16255   version_type=darwin
16256   need_lib_prefix=no
16257   need_version=no
16258   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16259   soname_spec='${libname}${release}${major}$shared_ext'
16260   shlibpath_overrides_runpath=yes
16261   shlibpath_var=DYLD_LIBRARY_PATH
16262   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16263
16264   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16265   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16266   ;;
16267
16268 dgux*)
16269   version_type=linux
16270   need_lib_prefix=no
16271   need_version=no
16272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16273   soname_spec='${libname}${release}${shared_ext}$major'
16274   shlibpath_var=LD_LIBRARY_PATH
16275   ;;
16276
16277 freebsd1*)
16278   dynamic_linker=no
16279   ;;
16280
16281 freebsd* | dragonfly*)
16282   # DragonFly does not have aout.  When/if they implement a new
16283   # versioning mechanism, adjust this.
16284   if test -x /usr/bin/objformat; then
16285     objformat=`/usr/bin/objformat`
16286   else
16287     case $host_os in
16288     freebsd[123]*) objformat=aout ;;
16289     *) objformat=elf ;;
16290     esac
16291   fi
16292   version_type=freebsd-$objformat
16293   case $version_type in
16294     freebsd-elf*)
16295       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16296       need_version=no
16297       need_lib_prefix=no
16298       ;;
16299     freebsd-*)
16300       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16301       need_version=yes
16302       ;;
16303   esac
16304   shlibpath_var=LD_LIBRARY_PATH
16305   case $host_os in
16306   freebsd2*)
16307     shlibpath_overrides_runpath=yes
16308     ;;
16309   freebsd3.[01]* | freebsdelf3.[01]*)
16310     shlibpath_overrides_runpath=yes
16311     hardcode_into_libs=yes
16312     ;;
16313   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16314   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16315     shlibpath_overrides_runpath=no
16316     hardcode_into_libs=yes
16317     ;;
16318   *) # from 4.6 on, and DragonFly
16319     shlibpath_overrides_runpath=yes
16320     hardcode_into_libs=yes
16321     ;;
16322   esac
16323   ;;
16324
16325 gnu*)
16326   version_type=linux
16327   need_lib_prefix=no
16328   need_version=no
16329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16330   soname_spec='${libname}${release}${shared_ext}$major'
16331   shlibpath_var=LD_LIBRARY_PATH
16332   hardcode_into_libs=yes
16333   ;;
16334
16335 haiku*)
16336   version_type=linux
16337   need_lib_prefix=no
16338   need_version=no
16339   dynamic_linker="$host_os runtime_loader"
16340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16341   soname_spec='${libname}${release}${shared_ext}$major'
16342   shlibpath_var=LIBRARY_PATH
16343   shlibpath_overrides_runpath=yes
16344   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16345   hardcode_into_libs=yes
16346   ;;
16347
16348 hpux9* | hpux10* | hpux11*)
16349   # Give a soname corresponding to the major version so that dld.sl refuses to
16350   # link against other versions.
16351   version_type=sunos
16352   need_lib_prefix=no
16353   need_version=no
16354   case $host_cpu in
16355   ia64*)
16356     shrext_cmds='.so'
16357     hardcode_into_libs=yes
16358     dynamic_linker="$host_os dld.so"
16359     shlibpath_var=LD_LIBRARY_PATH
16360     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362     soname_spec='${libname}${release}${shared_ext}$major'
16363     if test "X$HPUX_IA64_MODE" = X32; then
16364       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16365     else
16366       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16367     fi
16368     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16369     ;;
16370   hppa*64*)
16371     shrext_cmds='.sl'
16372     hardcode_into_libs=yes
16373     dynamic_linker="$host_os dld.sl"
16374     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16375     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16377     soname_spec='${libname}${release}${shared_ext}$major'
16378     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16379     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16380     ;;
16381   *)
16382     shrext_cmds='.sl'
16383     dynamic_linker="$host_os dld.sl"
16384     shlibpath_var=SHLIB_PATH
16385     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387     soname_spec='${libname}${release}${shared_ext}$major'
16388     ;;
16389   esac
16390   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16391   postinstall_cmds='chmod 555 $lib'
16392   # or fails outright, so override atomically:
16393   install_override_mode=555
16394   ;;
16395
16396 interix[3-9]*)
16397   version_type=linux
16398   need_lib_prefix=no
16399   need_version=no
16400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16401   soname_spec='${libname}${release}${shared_ext}$major'
16402   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16403   shlibpath_var=LD_LIBRARY_PATH
16404   shlibpath_overrides_runpath=no
16405   hardcode_into_libs=yes
16406   ;;
16407
16408 irix5* | irix6* | nonstopux*)
16409   case $host_os in
16410     nonstopux*) version_type=nonstopux ;;
16411     *)
16412         if test "$lt_cv_prog_gnu_ld" = yes; then
16413                 version_type=linux
16414         else
16415                 version_type=irix
16416         fi ;;
16417   esac
16418   need_lib_prefix=no
16419   need_version=no
16420   soname_spec='${libname}${release}${shared_ext}$major'
16421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16422   case $host_os in
16423   irix5* | nonstopux*)
16424     libsuff= shlibsuff=
16425     ;;
16426   *)
16427     case $LD in # libtool.m4 will add one of these switches to LD
16428     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16429       libsuff= shlibsuff= libmagic=32-bit;;
16430     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16431       libsuff=32 shlibsuff=N32 libmagic=N32;;
16432     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16433       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16434     *) libsuff= shlibsuff= libmagic=never-match;;
16435     esac
16436     ;;
16437   esac
16438   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16439   shlibpath_overrides_runpath=no
16440   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16441   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16442   hardcode_into_libs=yes
16443   ;;
16444
16445 # No shared lib support for Linux oldld, aout, or coff.
16446 linux*oldld* | linux*aout* | linux*coff*)
16447   dynamic_linker=no
16448   ;;
16449
16450 # This must be Linux ELF.
16451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16452   version_type=linux
16453   need_lib_prefix=no
16454   need_version=no
16455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456   soname_spec='${libname}${release}${shared_ext}$major'
16457   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16458   shlibpath_var=LD_LIBRARY_PATH
16459   shlibpath_overrides_runpath=no
16460
16461   # Some binutils ld are patched to set DT_RUNPATH
16462   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16463   $as_echo_n "(cached) " >&6
16464 else
16465   lt_cv_shlibpath_overrides_runpath=no
16466     save_LDFLAGS=$LDFLAGS
16467     save_libdir=$libdir
16468     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16469          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h.  */
16472
16473 int
16474 main ()
16475 {
16476
16477   ;
16478   return 0;
16479 }
16480 _ACEOF
16481 if ac_fn_c_try_link "$LINENO"; then :
16482   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16483   lt_cv_shlibpath_overrides_runpath=yes
16484 fi
16485 fi
16486 rm -f core conftest.err conftest.$ac_objext \
16487     conftest$ac_exeext conftest.$ac_ext
16488     LDFLAGS=$save_LDFLAGS
16489     libdir=$save_libdir
16490
16491 fi
16492
16493   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16494
16495   # This implies no fast_install, which is unacceptable.
16496   # Some rework will be needed to allow for fast_install
16497   # before this can be enabled.
16498   hardcode_into_libs=yes
16499
16500   # Append ld.so.conf contents to the search path
16501   if test -f /etc/ld.so.conf; then
16502     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' ' '`
16503     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16504   fi
16505
16506   # We used to test for /lib/ld.so.1 and disable shared libraries on
16507   # powerpc, because MkLinux only supported shared libraries with the
16508   # GNU dynamic linker.  Since this was broken with cross compilers,
16509   # most powerpc-linux boxes support dynamic linking these days and
16510   # people can always --disable-shared, the test was removed, and we
16511   # assume the GNU/Linux dynamic linker is in use.
16512   dynamic_linker='GNU/Linux ld.so'
16513   ;;
16514
16515 netbsd*)
16516   version_type=sunos
16517   need_lib_prefix=no
16518   need_version=no
16519   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16521     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16522     dynamic_linker='NetBSD (a.out) ld.so'
16523   else
16524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16525     soname_spec='${libname}${release}${shared_ext}$major'
16526     dynamic_linker='NetBSD ld.elf_so'
16527   fi
16528   shlibpath_var=LD_LIBRARY_PATH
16529   shlibpath_overrides_runpath=yes
16530   hardcode_into_libs=yes
16531   ;;
16532
16533 newsos6)
16534   version_type=linux
16535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16536   shlibpath_var=LD_LIBRARY_PATH
16537   shlibpath_overrides_runpath=yes
16538   ;;
16539
16540 *nto* | *qnx*)
16541   version_type=qnx
16542   need_lib_prefix=no
16543   need_version=no
16544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16545   soname_spec='${libname}${release}${shared_ext}$major'
16546   shlibpath_var=LD_LIBRARY_PATH
16547   shlibpath_overrides_runpath=no
16548   hardcode_into_libs=yes
16549   dynamic_linker='ldqnx.so'
16550   ;;
16551
16552 openbsd*)
16553   version_type=sunos
16554   sys_lib_dlsearch_path_spec="/usr/lib"
16555   need_lib_prefix=no
16556   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16557   case $host_os in
16558     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16559     *)                          need_version=no  ;;
16560   esac
16561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16562   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16563   shlibpath_var=LD_LIBRARY_PATH
16564   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16565     case $host_os in
16566       openbsd2.[89] | openbsd2.[89].*)
16567         shlibpath_overrides_runpath=no
16568         ;;
16569       *)
16570         shlibpath_overrides_runpath=yes
16571         ;;
16572       esac
16573   else
16574     shlibpath_overrides_runpath=yes
16575   fi
16576   ;;
16577
16578 os2*)
16579   libname_spec='$name'
16580   shrext_cmds=".dll"
16581   need_lib_prefix=no
16582   library_names_spec='$libname${shared_ext} $libname.a'
16583   dynamic_linker='OS/2 ld.exe'
16584   shlibpath_var=LIBPATH
16585   ;;
16586
16587 osf3* | osf4* | osf5*)
16588   version_type=osf
16589   need_lib_prefix=no
16590   need_version=no
16591   soname_spec='${libname}${release}${shared_ext}$major'
16592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16593   shlibpath_var=LD_LIBRARY_PATH
16594   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16595   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16596   ;;
16597
16598 rdos*)
16599   dynamic_linker=no
16600   ;;
16601
16602 solaris*)
16603   version_type=linux
16604   need_lib_prefix=no
16605   need_version=no
16606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16607   soname_spec='${libname}${release}${shared_ext}$major'
16608   shlibpath_var=LD_LIBRARY_PATH
16609   shlibpath_overrides_runpath=yes
16610   hardcode_into_libs=yes
16611   # ldd complains unless libraries are executable
16612   postinstall_cmds='chmod +x $lib'
16613   ;;
16614
16615 sunos4*)
16616   version_type=sunos
16617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16618   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16619   shlibpath_var=LD_LIBRARY_PATH
16620   shlibpath_overrides_runpath=yes
16621   if test "$with_gnu_ld" = yes; then
16622     need_lib_prefix=no
16623   fi
16624   need_version=yes
16625   ;;
16626
16627 sysv4 | sysv4.3*)
16628   version_type=linux
16629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630   soname_spec='${libname}${release}${shared_ext}$major'
16631   shlibpath_var=LD_LIBRARY_PATH
16632   case $host_vendor in
16633     sni)
16634       shlibpath_overrides_runpath=no
16635       need_lib_prefix=no
16636       runpath_var=LD_RUN_PATH
16637       ;;
16638     siemens)
16639       need_lib_prefix=no
16640       ;;
16641     motorola)
16642       need_lib_prefix=no
16643       need_version=no
16644       shlibpath_overrides_runpath=no
16645       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16646       ;;
16647   esac
16648   ;;
16649
16650 sysv4*MP*)
16651   if test -d /usr/nec ;then
16652     version_type=linux
16653     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16654     soname_spec='$libname${shared_ext}.$major'
16655     shlibpath_var=LD_LIBRARY_PATH
16656   fi
16657   ;;
16658
16659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16660   version_type=freebsd-elf
16661   need_lib_prefix=no
16662   need_version=no
16663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16664   soname_spec='${libname}${release}${shared_ext}$major'
16665   shlibpath_var=LD_LIBRARY_PATH
16666   shlibpath_overrides_runpath=yes
16667   hardcode_into_libs=yes
16668   if test "$with_gnu_ld" = yes; then
16669     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16670   else
16671     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16672     case $host_os in
16673       sco3.2v5*)
16674         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16675         ;;
16676     esac
16677   fi
16678   sys_lib_dlsearch_path_spec='/usr/lib'
16679   ;;
16680
16681 tpf*)
16682   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16683   version_type=linux
16684   need_lib_prefix=no
16685   need_version=no
16686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687   shlibpath_var=LD_LIBRARY_PATH
16688   shlibpath_overrides_runpath=no
16689   hardcode_into_libs=yes
16690   ;;
16691
16692 uts4*)
16693   version_type=linux
16694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695   soname_spec='${libname}${release}${shared_ext}$major'
16696   shlibpath_var=LD_LIBRARY_PATH
16697   ;;
16698
16699 *)
16700   dynamic_linker=no
16701   ;;
16702 esac
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16704 $as_echo "$dynamic_linker" >&6; }
16705 test "$dynamic_linker" = no && can_build_shared=no
16706
16707 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16708 if test "$GCC" = yes; then
16709   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16710 fi
16711
16712 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16713   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16714 fi
16715 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16716   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16717 fi
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16811 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16812 hardcode_action=
16813 if test -n "$hardcode_libdir_flag_spec" ||
16814    test -n "$runpath_var" ||
16815    test "X$hardcode_automatic" = "Xyes" ; then
16816
16817   # We can hardcode non-existent directories.
16818   if test "$hardcode_direct" != no &&
16819      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16820      # have to relink, otherwise we might link with an installed library
16821      # when we should be linking with a yet-to-be-installed one
16822      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16823      test "$hardcode_minus_L" != no; then
16824     # Linking always hardcodes the temporary library directory.
16825     hardcode_action=relink
16826   else
16827     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16828     hardcode_action=immediate
16829   fi
16830 else
16831   # We cannot hardcode anything, or else we can only hardcode existing
16832   # directories.
16833   hardcode_action=unsupported
16834 fi
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16836 $as_echo "$hardcode_action" >&6; }
16837
16838 if test "$hardcode_action" = relink ||
16839    test "$inherit_rpath" = yes; then
16840   # Fast installation is not supported
16841   enable_fast_install=no
16842 elif test "$shlibpath_overrides_runpath" = yes ||
16843      test "$enable_shared" = no; then
16844   # Fast installation is not necessary
16845   enable_fast_install=needless
16846 fi
16847
16848
16849
16850
16851
16852
16853   if test "x$enable_dlopen" != xyes; then
16854   enable_dlopen=unknown
16855   enable_dlopen_self=unknown
16856   enable_dlopen_self_static=unknown
16857 else
16858   lt_cv_dlopen=no
16859   lt_cv_dlopen_libs=
16860
16861   case $host_os in
16862   beos*)
16863     lt_cv_dlopen="load_add_on"
16864     lt_cv_dlopen_libs=
16865     lt_cv_dlopen_self=yes
16866     ;;
16867
16868   mingw* | pw32* | cegcc*)
16869     lt_cv_dlopen="LoadLibrary"
16870     lt_cv_dlopen_libs=
16871     ;;
16872
16873   cygwin*)
16874     lt_cv_dlopen="dlopen"
16875     lt_cv_dlopen_libs=
16876     ;;
16877
16878   darwin*)
16879   # if libdl is installed we need to link against it
16880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16881 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16883   $as_echo_n "(cached) " >&6
16884 else
16885   ac_check_lib_save_LIBS=$LIBS
16886 LIBS="-ldl  $LIBS"
16887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16888 /* end confdefs.h.  */
16889
16890 /* Override any GCC internal prototype to avoid an error.
16891    Use char because int might match the return type of a GCC
16892    builtin and then its argument prototype would still apply.  */
16893 #ifdef __cplusplus
16894 extern "C"
16895 #endif
16896 char dlopen ();
16897 int
16898 main ()
16899 {
16900 return dlopen ();
16901   ;
16902   return 0;
16903 }
16904 _ACEOF
16905 if ac_fn_c_try_link "$LINENO"; then :
16906   ac_cv_lib_dl_dlopen=yes
16907 else
16908   ac_cv_lib_dl_dlopen=no
16909 fi
16910 rm -f core conftest.err conftest.$ac_objext \
16911     conftest$ac_exeext conftest.$ac_ext
16912 LIBS=$ac_check_lib_save_LIBS
16913 fi
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16915 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16916 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16917   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16918 else
16919
16920     lt_cv_dlopen="dyld"
16921     lt_cv_dlopen_libs=
16922     lt_cv_dlopen_self=yes
16923
16924 fi
16925
16926     ;;
16927
16928   *)
16929     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16930 if test "x$ac_cv_func_shl_load" = x""yes; then :
16931   lt_cv_dlopen="shl_load"
16932 else
16933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16934 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16935 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16936   $as_echo_n "(cached) " >&6
16937 else
16938   ac_check_lib_save_LIBS=$LIBS
16939 LIBS="-ldld  $LIBS"
16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h.  */
16942
16943 /* Override any GCC internal prototype to avoid an error.
16944    Use char because int might match the return type of a GCC
16945    builtin and then its argument prototype would still apply.  */
16946 #ifdef __cplusplus
16947 extern "C"
16948 #endif
16949 char shl_load ();
16950 int
16951 main ()
16952 {
16953 return shl_load ();
16954   ;
16955   return 0;
16956 }
16957 _ACEOF
16958 if ac_fn_c_try_link "$LINENO"; then :
16959   ac_cv_lib_dld_shl_load=yes
16960 else
16961   ac_cv_lib_dld_shl_load=no
16962 fi
16963 rm -f core conftest.err conftest.$ac_objext \
16964     conftest$ac_exeext conftest.$ac_ext
16965 LIBS=$ac_check_lib_save_LIBS
16966 fi
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16968 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16969 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16970   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16971 else
16972   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16973 if test "x$ac_cv_func_dlopen" = x""yes; then :
16974   lt_cv_dlopen="dlopen"
16975 else
16976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16979   $as_echo_n "(cached) " >&6
16980 else
16981   ac_check_lib_save_LIBS=$LIBS
16982 LIBS="-ldl  $LIBS"
16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984 /* end confdefs.h.  */
16985
16986 /* Override any GCC internal prototype to avoid an error.
16987    Use char because int might match the return type of a GCC
16988    builtin and then its argument prototype would still apply.  */
16989 #ifdef __cplusplus
16990 extern "C"
16991 #endif
16992 char dlopen ();
16993 int
16994 main ()
16995 {
16996 return dlopen ();
16997   ;
16998   return 0;
16999 }
17000 _ACEOF
17001 if ac_fn_c_try_link "$LINENO"; then :
17002   ac_cv_lib_dl_dlopen=yes
17003 else
17004   ac_cv_lib_dl_dlopen=no
17005 fi
17006 rm -f core conftest.err conftest.$ac_objext \
17007     conftest$ac_exeext conftest.$ac_ext
17008 LIBS=$ac_check_lib_save_LIBS
17009 fi
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17011 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17012 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17013   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17014 else
17015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17016 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17017 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17018   $as_echo_n "(cached) " >&6
17019 else
17020   ac_check_lib_save_LIBS=$LIBS
17021 LIBS="-lsvld  $LIBS"
17022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17023 /* end confdefs.h.  */
17024
17025 /* Override any GCC internal prototype to avoid an error.
17026    Use char because int might match the return type of a GCC
17027    builtin and then its argument prototype would still apply.  */
17028 #ifdef __cplusplus
17029 extern "C"
17030 #endif
17031 char dlopen ();
17032 int
17033 main ()
17034 {
17035 return dlopen ();
17036   ;
17037   return 0;
17038 }
17039 _ACEOF
17040 if ac_fn_c_try_link "$LINENO"; then :
17041   ac_cv_lib_svld_dlopen=yes
17042 else
17043   ac_cv_lib_svld_dlopen=no
17044 fi
17045 rm -f core conftest.err conftest.$ac_objext \
17046     conftest$ac_exeext conftest.$ac_ext
17047 LIBS=$ac_check_lib_save_LIBS
17048 fi
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17050 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17051 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17052   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17053 else
17054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17055 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17056 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17057   $as_echo_n "(cached) " >&6
17058 else
17059   ac_check_lib_save_LIBS=$LIBS
17060 LIBS="-ldld  $LIBS"
17061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h.  */
17063
17064 /* Override any GCC internal prototype to avoid an error.
17065    Use char because int might match the return type of a GCC
17066    builtin and then its argument prototype would still apply.  */
17067 #ifdef __cplusplus
17068 extern "C"
17069 #endif
17070 char dld_link ();
17071 int
17072 main ()
17073 {
17074 return dld_link ();
17075   ;
17076   return 0;
17077 }
17078 _ACEOF
17079 if ac_fn_c_try_link "$LINENO"; then :
17080   ac_cv_lib_dld_dld_link=yes
17081 else
17082   ac_cv_lib_dld_dld_link=no
17083 fi
17084 rm -f core conftest.err conftest.$ac_objext \
17085     conftest$ac_exeext conftest.$ac_ext
17086 LIBS=$ac_check_lib_save_LIBS
17087 fi
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17089 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17090 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17091   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17092 fi
17093
17094
17095 fi
17096
17097
17098 fi
17099
17100
17101 fi
17102
17103
17104 fi
17105
17106
17107 fi
17108
17109     ;;
17110   esac
17111
17112   if test "x$lt_cv_dlopen" != xno; then
17113     enable_dlopen=yes
17114   else
17115     enable_dlopen=no
17116   fi
17117
17118   case $lt_cv_dlopen in
17119   dlopen)
17120     save_CPPFLAGS="$CPPFLAGS"
17121     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17122
17123     save_LDFLAGS="$LDFLAGS"
17124     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17125
17126     save_LIBS="$LIBS"
17127     LIBS="$lt_cv_dlopen_libs $LIBS"
17128
17129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17130 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17131 if test "${lt_cv_dlopen_self+set}" = set; then :
17132   $as_echo_n "(cached) " >&6
17133 else
17134           if test "$cross_compiling" = yes; then :
17135   lt_cv_dlopen_self=cross
17136 else
17137   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17138   lt_status=$lt_dlunknown
17139   cat > conftest.$ac_ext <<_LT_EOF
17140 #line 17140 "configure"
17141 #include "confdefs.h"
17142
17143 #if HAVE_DLFCN_H
17144 #include <dlfcn.h>
17145 #endif
17146
17147 #include <stdio.h>
17148
17149 #ifdef RTLD_GLOBAL
17150 #  define LT_DLGLOBAL           RTLD_GLOBAL
17151 #else
17152 #  ifdef DL_GLOBAL
17153 #    define LT_DLGLOBAL         DL_GLOBAL
17154 #  else
17155 #    define LT_DLGLOBAL         0
17156 #  endif
17157 #endif
17158
17159 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17160    find out it does not work in some platform. */
17161 #ifndef LT_DLLAZY_OR_NOW
17162 #  ifdef RTLD_LAZY
17163 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17164 #  else
17165 #    ifdef DL_LAZY
17166 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17167 #    else
17168 #      ifdef RTLD_NOW
17169 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17170 #      else
17171 #        ifdef DL_NOW
17172 #          define LT_DLLAZY_OR_NOW      DL_NOW
17173 #        else
17174 #          define LT_DLLAZY_OR_NOW      0
17175 #        endif
17176 #      endif
17177 #    endif
17178 #  endif
17179 #endif
17180
17181 /* When -fvisbility=hidden is used, assume the code has been annotated
17182    correspondingly for the symbols needed.  */
17183 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17184 void fnord () __attribute__((visibility("default")));
17185 #endif
17186
17187 void fnord () { int i=42; }
17188 int main ()
17189 {
17190   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17191   int status = $lt_dlunknown;
17192
17193   if (self)
17194     {
17195       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17196       else
17197         {
17198           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17199           else puts (dlerror ());
17200         }
17201       /* dlclose (self); */
17202     }
17203   else
17204     puts (dlerror ());
17205
17206   return status;
17207 }
17208 _LT_EOF
17209   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17210   (eval $ac_link) 2>&5
17211   ac_status=$?
17212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17213   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17214     (./conftest; exit; ) >&5 2>/dev/null
17215     lt_status=$?
17216     case x$lt_status in
17217       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17218       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17219       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17220     esac
17221   else :
17222     # compilation failed
17223     lt_cv_dlopen_self=no
17224   fi
17225 fi
17226 rm -fr conftest*
17227
17228
17229 fi
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17231 $as_echo "$lt_cv_dlopen_self" >&6; }
17232
17233     if test "x$lt_cv_dlopen_self" = xyes; then
17234       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17235       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17236 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17237 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17238   $as_echo_n "(cached) " >&6
17239 else
17240           if test "$cross_compiling" = yes; then :
17241   lt_cv_dlopen_self_static=cross
17242 else
17243   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17244   lt_status=$lt_dlunknown
17245   cat > conftest.$ac_ext <<_LT_EOF
17246 #line 17246 "configure"
17247 #include "confdefs.h"
17248
17249 #if HAVE_DLFCN_H
17250 #include <dlfcn.h>
17251 #endif
17252
17253 #include <stdio.h>
17254
17255 #ifdef RTLD_GLOBAL
17256 #  define LT_DLGLOBAL           RTLD_GLOBAL
17257 #else
17258 #  ifdef DL_GLOBAL
17259 #    define LT_DLGLOBAL         DL_GLOBAL
17260 #  else
17261 #    define LT_DLGLOBAL         0
17262 #  endif
17263 #endif
17264
17265 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17266    find out it does not work in some platform. */
17267 #ifndef LT_DLLAZY_OR_NOW
17268 #  ifdef RTLD_LAZY
17269 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17270 #  else
17271 #    ifdef DL_LAZY
17272 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17273 #    else
17274 #      ifdef RTLD_NOW
17275 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17276 #      else
17277 #        ifdef DL_NOW
17278 #          define LT_DLLAZY_OR_NOW      DL_NOW
17279 #        else
17280 #          define LT_DLLAZY_OR_NOW      0
17281 #        endif
17282 #      endif
17283 #    endif
17284 #  endif
17285 #endif
17286
17287 /* When -fvisbility=hidden is used, assume the code has been annotated
17288    correspondingly for the symbols needed.  */
17289 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17290 void fnord () __attribute__((visibility("default")));
17291 #endif
17292
17293 void fnord () { int i=42; }
17294 int main ()
17295 {
17296   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17297   int status = $lt_dlunknown;
17298
17299   if (self)
17300     {
17301       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17302       else
17303         {
17304           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17305           else puts (dlerror ());
17306         }
17307       /* dlclose (self); */
17308     }
17309   else
17310     puts (dlerror ());
17311
17312   return status;
17313 }
17314 _LT_EOF
17315   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17316   (eval $ac_link) 2>&5
17317   ac_status=$?
17318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17319   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17320     (./conftest; exit; ) >&5 2>/dev/null
17321     lt_status=$?
17322     case x$lt_status in
17323       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17324       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17325       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17326     esac
17327   else :
17328     # compilation failed
17329     lt_cv_dlopen_self_static=no
17330   fi
17331 fi
17332 rm -fr conftest*
17333
17334
17335 fi
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17337 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17338     fi
17339
17340     CPPFLAGS="$save_CPPFLAGS"
17341     LDFLAGS="$save_LDFLAGS"
17342     LIBS="$save_LIBS"
17343     ;;
17344   esac
17345
17346   case $lt_cv_dlopen_self in
17347   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17348   *) enable_dlopen_self=unknown ;;
17349   esac
17350
17351   case $lt_cv_dlopen_self_static in
17352   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17353   *) enable_dlopen_self_static=unknown ;;
17354   esac
17355 fi
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373 striplib=
17374 old_striplib=
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17376 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17377 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17378   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17379   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17381 $as_echo "yes" >&6; }
17382 else
17383 # FIXME - insert some real tests, host_os isn't really good enough
17384   case $host_os in
17385   darwin*)
17386     if test -n "$STRIP" ; then
17387       striplib="$STRIP -x"
17388       old_striplib="$STRIP -S"
17389       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17390 $as_echo "yes" >&6; }
17391     else
17392       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17393 $as_echo "no" >&6; }
17394     fi
17395     ;;
17396   *)
17397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17398 $as_echo "no" >&6; }
17399     ;;
17400   esac
17401 fi
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414   # Report which library types will actually be built
17415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17416 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17418 $as_echo "$can_build_shared" >&6; }
17419
17420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17421 $as_echo_n "checking whether to build shared libraries... " >&6; }
17422   test "$can_build_shared" = "no" && enable_shared=no
17423
17424   # On AIX, shared libraries and static libraries use the same namespace, and
17425   # are all built from PIC.
17426   case $host_os in
17427   aix3*)
17428     test "$enable_shared" = yes && enable_static=no
17429     if test -n "$RANLIB"; then
17430       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17431       postinstall_cmds='$RANLIB $lib'
17432     fi
17433     ;;
17434
17435   aix[4-9]*)
17436     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17437       test "$enable_shared" = yes && enable_static=no
17438     fi
17439     ;;
17440   esac
17441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17442 $as_echo "$enable_shared" >&6; }
17443
17444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17445 $as_echo_n "checking whether to build static libraries... " >&6; }
17446   # Make sure either enable_shared or enable_static is yes.
17447   test "$enable_shared" = yes || enable_static=yes
17448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17449 $as_echo "$enable_static" >&6; }
17450
17451
17452
17453
17454 fi
17455 ac_ext=c
17456 ac_cpp='$CPP $CPPFLAGS'
17457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17460
17461 CC="$lt_save_CC"
17462
17463       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17464     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17465     (test "X$CXX" != "Xg++"))) ; then
17466   ac_ext=cpp
17467 ac_cpp='$CXXCPP $CPPFLAGS'
17468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17472 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17473 if test -z "$CXXCPP"; then
17474   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17475   $as_echo_n "(cached) " >&6
17476 else
17477       # Double quotes because CXXCPP needs to be expanded
17478     for CXXCPP in "$CXX -E" "/lib/cpp"
17479     do
17480       ac_preproc_ok=false
17481 for ac_cxx_preproc_warn_flag in '' yes
17482 do
17483   # Use a header file that comes with gcc, so configuring glibc
17484   # with a fresh cross-compiler works.
17485   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17486   # <limits.h> exists even on freestanding compilers.
17487   # On the NeXT, cc -E runs the code through the compiler's parser,
17488   # not just through cpp. "Syntax error" is here to catch this case.
17489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490 /* end confdefs.h.  */
17491 #ifdef __STDC__
17492 # include <limits.h>
17493 #else
17494 # include <assert.h>
17495 #endif
17496                      Syntax error
17497 _ACEOF
17498 if ac_fn_cxx_try_cpp "$LINENO"; then :
17499
17500 else
17501   # Broken: fails on valid input.
17502 continue
17503 fi
17504 rm -f conftest.err conftest.$ac_ext
17505
17506   # OK, works on sane cases.  Now check whether nonexistent headers
17507   # can be detected and how.
17508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509 /* end confdefs.h.  */
17510 #include <ac_nonexistent.h>
17511 _ACEOF
17512 if ac_fn_cxx_try_cpp "$LINENO"; then :
17513   # Broken: success on invalid input.
17514 continue
17515 else
17516   # Passes both tests.
17517 ac_preproc_ok=:
17518 break
17519 fi
17520 rm -f conftest.err conftest.$ac_ext
17521
17522 done
17523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17524 rm -f conftest.err conftest.$ac_ext
17525 if $ac_preproc_ok; then :
17526   break
17527 fi
17528
17529     done
17530     ac_cv_prog_CXXCPP=$CXXCPP
17531
17532 fi
17533   CXXCPP=$ac_cv_prog_CXXCPP
17534 else
17535   ac_cv_prog_CXXCPP=$CXXCPP
17536 fi
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17538 $as_echo "$CXXCPP" >&6; }
17539 ac_preproc_ok=false
17540 for ac_cxx_preproc_warn_flag in '' yes
17541 do
17542   # Use a header file that comes with gcc, so configuring glibc
17543   # with a fresh cross-compiler works.
17544   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17545   # <limits.h> exists even on freestanding compilers.
17546   # On the NeXT, cc -E runs the code through the compiler's parser,
17547   # not just through cpp. "Syntax error" is here to catch this case.
17548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549 /* end confdefs.h.  */
17550 #ifdef __STDC__
17551 # include <limits.h>
17552 #else
17553 # include <assert.h>
17554 #endif
17555                      Syntax error
17556 _ACEOF
17557 if ac_fn_cxx_try_cpp "$LINENO"; then :
17558
17559 else
17560   # Broken: fails on valid input.
17561 continue
17562 fi
17563 rm -f conftest.err conftest.$ac_ext
17564
17565   # OK, works on sane cases.  Now check whether nonexistent headers
17566   # can be detected and how.
17567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h.  */
17569 #include <ac_nonexistent.h>
17570 _ACEOF
17571 if ac_fn_cxx_try_cpp "$LINENO"; then :
17572   # Broken: success on invalid input.
17573 continue
17574 else
17575   # Passes both tests.
17576 ac_preproc_ok=:
17577 break
17578 fi
17579 rm -f conftest.err conftest.$ac_ext
17580
17581 done
17582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17583 rm -f conftest.err conftest.$ac_ext
17584 if $ac_preproc_ok; then :
17585
17586 else
17587   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17589 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17590 See \`config.log' for more details." "$LINENO" 5; }
17591 fi
17592
17593 ac_ext=c
17594 ac_cpp='$CPP $CPPFLAGS'
17595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17598
17599 else
17600   _lt_caught_CXX_error=yes
17601 fi
17602
17603 ac_ext=cpp
17604 ac_cpp='$CXXCPP $CPPFLAGS'
17605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17608
17609 archive_cmds_need_lc_CXX=no
17610 allow_undefined_flag_CXX=
17611 always_export_symbols_CXX=no
17612 archive_expsym_cmds_CXX=
17613 compiler_needs_object_CXX=no
17614 export_dynamic_flag_spec_CXX=
17615 hardcode_direct_CXX=no
17616 hardcode_direct_absolute_CXX=no
17617 hardcode_libdir_flag_spec_CXX=
17618 hardcode_libdir_flag_spec_ld_CXX=
17619 hardcode_libdir_separator_CXX=
17620 hardcode_minus_L_CXX=no
17621 hardcode_shlibpath_var_CXX=unsupported
17622 hardcode_automatic_CXX=no
17623 inherit_rpath_CXX=no
17624 module_cmds_CXX=
17625 module_expsym_cmds_CXX=
17626 link_all_deplibs_CXX=unknown
17627 old_archive_cmds_CXX=$old_archive_cmds
17628 reload_flag_CXX=$reload_flag
17629 reload_cmds_CXX=$reload_cmds
17630 no_undefined_flag_CXX=
17631 whole_archive_flag_spec_CXX=
17632 enable_shared_with_static_runtimes_CXX=no
17633
17634 # Source file extension for C++ test sources.
17635 ac_ext=cpp
17636
17637 # Object file extension for compiled C++ test sources.
17638 objext=o
17639 objext_CXX=$objext
17640
17641 # No sense in running all these tests if we already determined that
17642 # the CXX compiler isn't working.  Some variables (like enable_shared)
17643 # are currently assumed to apply to all compilers on this platform,
17644 # and will be corrupted by setting them based on a non-working compiler.
17645 if test "$_lt_caught_CXX_error" != yes; then
17646   # Code to be used in simple compile tests
17647   lt_simple_compile_test_code="int some_variable = 0;"
17648
17649   # Code to be used in simple link tests
17650   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17651
17652   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17653
17654
17655
17656
17657
17658
17659 # If no C compiler was specified, use CC.
17660 LTCC=${LTCC-"$CC"}
17661
17662 # If no C compiler flags were specified, use CFLAGS.
17663 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17664
17665 # Allow CC to be a program name with arguments.
17666 compiler=$CC
17667
17668
17669   # save warnings/boilerplate of simple test code
17670   ac_outfile=conftest.$ac_objext
17671 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17673 _lt_compiler_boilerplate=`cat conftest.err`
17674 $RM conftest*
17675
17676   ac_outfile=conftest.$ac_objext
17677 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17679 _lt_linker_boilerplate=`cat conftest.err`
17680 $RM -r conftest*
17681
17682
17683   # Allow CC to be a program name with arguments.
17684   lt_save_CC=$CC
17685   lt_save_LD=$LD
17686   lt_save_GCC=$GCC
17687   GCC=$GXX
17688   lt_save_with_gnu_ld=$with_gnu_ld
17689   lt_save_path_LD=$lt_cv_path_LD
17690   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17691     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17692   else
17693     $as_unset lt_cv_prog_gnu_ld
17694   fi
17695   if test -n "${lt_cv_path_LDCXX+set}"; then
17696     lt_cv_path_LD=$lt_cv_path_LDCXX
17697   else
17698     $as_unset lt_cv_path_LD
17699   fi
17700   test -z "${LDCXX+set}" || LD=$LDCXX
17701   CC=${CXX-"c++"}
17702   compiler=$CC
17703   compiler_CXX=$CC
17704   for cc_temp in $compiler""; do
17705   case $cc_temp in
17706     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17707     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17708     \-*) ;;
17709     *) break;;
17710   esac
17711 done
17712 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17713
17714
17715   if test -n "$compiler"; then
17716     # We don't want -fno-exception when compiling C++ code, so set the
17717     # no_builtin_flag separately
17718     if test "$GXX" = yes; then
17719       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17720     else
17721       lt_prog_compiler_no_builtin_flag_CXX=
17722     fi
17723
17724     if test "$GXX" = yes; then
17725       # Set up default GNU C++ configuration
17726
17727
17728
17729 # Check whether --with-gnu-ld was given.
17730 if test "${with_gnu_ld+set}" = set; then :
17731   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17732 else
17733   with_gnu_ld=no
17734 fi
17735
17736 ac_prog=ld
17737 if test "$GCC" = yes; then
17738   # Check if gcc -print-prog-name=ld gives a path.
17739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17740 $as_echo_n "checking for ld used by $CC... " >&6; }
17741   case $host in
17742   *-*-mingw*)
17743     # gcc leaves a trailing carriage return which upsets mingw
17744     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17745   *)
17746     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17747   esac
17748   case $ac_prog in
17749     # Accept absolute paths.
17750     [\\/]* | ?:[\\/]*)
17751       re_direlt='/[^/][^/]*/\.\./'
17752       # Canonicalize the pathname of ld
17753       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17754       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17755         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17756       done
17757       test -z "$LD" && LD="$ac_prog"
17758       ;;
17759   "")
17760     # If it fails, then pretend we aren't using GCC.
17761     ac_prog=ld
17762     ;;
17763   *)
17764     # If it is relative, then search for the first ld in PATH.
17765     with_gnu_ld=unknown
17766     ;;
17767   esac
17768 elif test "$with_gnu_ld" = yes; then
17769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17770 $as_echo_n "checking for GNU ld... " >&6; }
17771 else
17772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17773 $as_echo_n "checking for non-GNU ld... " >&6; }
17774 fi
17775 if test "${lt_cv_path_LD+set}" = set; then :
17776   $as_echo_n "(cached) " >&6
17777 else
17778   if test -z "$LD"; then
17779   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17780   for ac_dir in $PATH; do
17781     IFS="$lt_save_ifs"
17782     test -z "$ac_dir" && ac_dir=.
17783     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17784       lt_cv_path_LD="$ac_dir/$ac_prog"
17785       # Check to see if the program is GNU ld.  I'd rather use --version,
17786       # but apparently some variants of GNU ld only accept -v.
17787       # Break only if it was the GNU/non-GNU ld that we prefer.
17788       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17789       *GNU* | *'with BFD'*)
17790         test "$with_gnu_ld" != no && break
17791         ;;
17792       *)
17793         test "$with_gnu_ld" != yes && break
17794         ;;
17795       esac
17796     fi
17797   done
17798   IFS="$lt_save_ifs"
17799 else
17800   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17801 fi
17802 fi
17803
17804 LD="$lt_cv_path_LD"
17805 if test -n "$LD"; then
17806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17807 $as_echo "$LD" >&6; }
17808 else
17809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17810 $as_echo "no" >&6; }
17811 fi
17812 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17814 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17815 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17816   $as_echo_n "(cached) " >&6
17817 else
17818   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17819 case `$LD -v 2>&1 </dev/null` in
17820 *GNU* | *'with BFD'*)
17821   lt_cv_prog_gnu_ld=yes
17822   ;;
17823 *)
17824   lt_cv_prog_gnu_ld=no
17825   ;;
17826 esac
17827 fi
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17829 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17830 with_gnu_ld=$lt_cv_prog_gnu_ld
17831
17832
17833
17834
17835
17836
17837
17838       # Check if GNU C++ uses GNU ld as the underlying linker, since the
17839       # archiving commands below assume that GNU ld is being used.
17840       if test "$with_gnu_ld" = yes; then
17841         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17842         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'
17843
17844         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17845         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17846
17847         # If archive_cmds runs LD, not CC, wlarc should be empty
17848         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17849         #     investigate it a little bit more. (MM)
17850         wlarc='${wl}'
17851
17852         # ancient GNU ld didn't support --whole-archive et. al.
17853         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17854           $GREP 'no-whole-archive' > /dev/null; then
17855           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17856         else
17857           whole_archive_flag_spec_CXX=
17858         fi
17859       else
17860         with_gnu_ld=no
17861         wlarc=
17862
17863         # A generic and very simple default shared library creation
17864         # command for GNU C++ for the case where it uses the native
17865         # linker, instead of GNU ld.  If possible, this setting should
17866         # overridden to take advantage of the native linker features on
17867         # the platform it is being used on.
17868         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17869       fi
17870
17871       # Commands to make compiler produce verbose output that lists
17872       # what "hidden" libraries, object files and flags are used when
17873       # linking a shared library.
17874       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17875
17876     else
17877       GXX=no
17878       with_gnu_ld=no
17879       wlarc=
17880     fi
17881
17882     # PORTME: fill in a description of your system's C++ link characteristics
17883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17884 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17885     ld_shlibs_CXX=yes
17886     case $host_os in
17887       aix3*)
17888         # FIXME: insert proper C++ library support
17889         ld_shlibs_CXX=no
17890         ;;
17891       aix[4-9]*)
17892         if test "$host_cpu" = ia64; then
17893           # On IA64, the linker does run time linking by default, so we don't
17894           # have to do anything special.
17895           aix_use_runtimelinking=no
17896           exp_sym_flag='-Bexport'
17897           no_entry_flag=""
17898         else
17899           aix_use_runtimelinking=no
17900
17901           # Test if we are trying to use run time linking or normal
17902           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17903           # need to do runtime linking.
17904           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17905             for ld_flag in $LDFLAGS; do
17906               case $ld_flag in
17907               *-brtl*)
17908                 aix_use_runtimelinking=yes
17909                 break
17910                 ;;
17911               esac
17912             done
17913             ;;
17914           esac
17915
17916           exp_sym_flag='-bexport'
17917           no_entry_flag='-bnoentry'
17918         fi
17919
17920         # When large executables or shared objects are built, AIX ld can
17921         # have problems creating the table of contents.  If linking a library
17922         # or program results in "error TOC overflow" add -mminimal-toc to
17923         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17924         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17925
17926         archive_cmds_CXX=''
17927         hardcode_direct_CXX=yes
17928         hardcode_direct_absolute_CXX=yes
17929         hardcode_libdir_separator_CXX=':'
17930         link_all_deplibs_CXX=yes
17931         file_list_spec_CXX='${wl}-f,'
17932
17933         if test "$GXX" = yes; then
17934           case $host_os in aix4.[012]|aix4.[012].*)
17935           # We only want to do this on AIX 4.2 and lower, the check
17936           # below for broken collect2 doesn't work under 4.3+
17937           collect2name=`${CC} -print-prog-name=collect2`
17938           if test -f "$collect2name" &&
17939              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17940           then
17941             # We have reworked collect2
17942             :
17943           else
17944             # We have old collect2
17945             hardcode_direct_CXX=unsupported
17946             # It fails to find uninstalled libraries when the uninstalled
17947             # path is not listed in the libpath.  Setting hardcode_minus_L
17948             # to unsupported forces relinking
17949             hardcode_minus_L_CXX=yes
17950             hardcode_libdir_flag_spec_CXX='-L$libdir'
17951             hardcode_libdir_separator_CXX=
17952           fi
17953           esac
17954           shared_flag='-shared'
17955           if test "$aix_use_runtimelinking" = yes; then
17956             shared_flag="$shared_flag "'${wl}-G'
17957           fi
17958         else
17959           # not using gcc
17960           if test "$host_cpu" = ia64; then
17961           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17962           # chokes on -Wl,-G. The following line is correct:
17963           shared_flag='-G'
17964           else
17965             if test "$aix_use_runtimelinking" = yes; then
17966               shared_flag='${wl}-G'
17967             else
17968               shared_flag='${wl}-bM:SRE'
17969             fi
17970           fi
17971         fi
17972
17973         export_dynamic_flag_spec_CXX='${wl}-bexpall'
17974         # It seems that -bexpall does not export symbols beginning with
17975         # underscore (_), so it is better to generate a list of symbols to
17976         # export.
17977         always_export_symbols_CXX=yes
17978         if test "$aix_use_runtimelinking" = yes; then
17979           # Warning - without using the other runtime loading flags (-brtl),
17980           # -berok will link without error, but may produce a broken library.
17981           allow_undefined_flag_CXX='-berok'
17982           # Determine the default libpath from the value encoded in an empty
17983           # executable.
17984           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985 /* end confdefs.h.  */
17986
17987 int
17988 main ()
17989 {
17990
17991   ;
17992   return 0;
17993 }
17994 _ACEOF
17995 if ac_fn_cxx_try_link "$LINENO"; then :
17996
17997 lt_aix_libpath_sed='
17998     /Import File Strings/,/^$/ {
17999         /^0/ {
18000             s/^0  *\(.*\)$/\1/
18001             p
18002         }
18003     }'
18004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18005 # Check for a 64-bit object if we didn't find anything.
18006 if test -z "$aix_libpath"; then
18007   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18008 fi
18009 fi
18010 rm -f core conftest.err conftest.$ac_objext \
18011     conftest$ac_exeext conftest.$ac_ext
18012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18013
18014           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18015
18016           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"
18017         else
18018           if test "$host_cpu" = ia64; then
18019             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18020             allow_undefined_flag_CXX="-z nodefs"
18021             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"
18022           else
18023             # Determine the default libpath from the value encoded in an
18024             # empty executable.
18025             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18026 /* end confdefs.h.  */
18027
18028 int
18029 main ()
18030 {
18031
18032   ;
18033   return 0;
18034 }
18035 _ACEOF
18036 if ac_fn_cxx_try_link "$LINENO"; then :
18037
18038 lt_aix_libpath_sed='
18039     /Import File Strings/,/^$/ {
18040         /^0/ {
18041             s/^0  *\(.*\)$/\1/
18042             p
18043         }
18044     }'
18045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18046 # Check for a 64-bit object if we didn't find anything.
18047 if test -z "$aix_libpath"; then
18048   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18049 fi
18050 fi
18051 rm -f core conftest.err conftest.$ac_objext \
18052     conftest$ac_exeext conftest.$ac_ext
18053 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18054
18055             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18056             # Warning - without using the other run time loading flags,
18057             # -berok will link without error, but may produce a broken library.
18058             no_undefined_flag_CXX=' ${wl}-bernotok'
18059             allow_undefined_flag_CXX=' ${wl}-berok'
18060             if test "$with_gnu_ld" = yes; then
18061               # We only use this code for GNU lds that support --whole-archive.
18062               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18063             else
18064               # Exported symbols can be pulled into shared objects from archives
18065               whole_archive_flag_spec_CXX='$convenience'
18066             fi
18067             archive_cmds_need_lc_CXX=yes
18068             # This is similar to how AIX traditionally builds its shared
18069             # libraries.
18070             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'
18071           fi
18072         fi
18073         ;;
18074
18075       beos*)
18076         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18077           allow_undefined_flag_CXX=unsupported
18078           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18079           # support --undefined.  This deserves some investigation.  FIXME
18080           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18081         else
18082           ld_shlibs_CXX=no
18083         fi
18084         ;;
18085
18086       chorus*)
18087         case $cc_basename in
18088           *)
18089           # FIXME: insert proper C++ library support
18090           ld_shlibs_CXX=no
18091           ;;
18092         esac
18093         ;;
18094
18095       cygwin* | mingw* | pw32* | cegcc*)
18096         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18097         # as there is no search path for DLLs.
18098         hardcode_libdir_flag_spec_CXX='-L$libdir'
18099         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18100         allow_undefined_flag_CXX=unsupported
18101         always_export_symbols_CXX=no
18102         enable_shared_with_static_runtimes_CXX=yes
18103
18104         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18105           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'
18106           # If the export-symbols file already is a .def file (1st line
18107           # is EXPORTS), use it as is; otherwise, prepend...
18108           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18109             cp $export_symbols $output_objdir/$soname.def;
18110           else
18111             echo EXPORTS > $output_objdir/$soname.def;
18112             cat $export_symbols >> $output_objdir/$soname.def;
18113           fi~
18114           $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'
18115         else
18116           ld_shlibs_CXX=no
18117         fi
18118         ;;
18119       darwin* | rhapsody*)
18120
18121
18122   archive_cmds_need_lc_CXX=no
18123   hardcode_direct_CXX=no
18124   hardcode_automatic_CXX=yes
18125   hardcode_shlibpath_var_CXX=unsupported
18126   if test "$lt_cv_ld_force_load" = "yes"; then
18127     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\"`'
18128   else
18129     whole_archive_flag_spec_CXX=''
18130   fi
18131   link_all_deplibs_CXX=yes
18132   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18133   case $cc_basename in
18134      ifort*) _lt_dar_can_shared=yes ;;
18135      *) _lt_dar_can_shared=$GCC ;;
18136   esac
18137   if test "$_lt_dar_can_shared" = "yes"; then
18138     output_verbose_link_cmd=func_echo_all
18139     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}"
18140     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18141     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}"
18142     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}"
18143        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18144       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}"
18145       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}"
18146     fi
18147
18148   else
18149   ld_shlibs_CXX=no
18150   fi
18151
18152         ;;
18153
18154       dgux*)
18155         case $cc_basename in
18156           ec++*)
18157             # FIXME: insert proper C++ library support
18158             ld_shlibs_CXX=no
18159             ;;
18160           ghcx*)
18161             # Green Hills C++ Compiler
18162             # FIXME: insert proper C++ library support
18163             ld_shlibs_CXX=no
18164             ;;
18165           *)
18166             # FIXME: insert proper C++ library support
18167             ld_shlibs_CXX=no
18168             ;;
18169         esac
18170         ;;
18171
18172       freebsd[12]*)
18173         # C++ shared libraries reported to be fairly broken before
18174         # switch to ELF
18175         ld_shlibs_CXX=no
18176         ;;
18177
18178       freebsd-elf*)
18179         archive_cmds_need_lc_CXX=no
18180         ;;
18181
18182       freebsd* | dragonfly*)
18183         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18184         # conventions
18185         ld_shlibs_CXX=yes
18186         ;;
18187
18188       gnu*)
18189         ;;
18190
18191       haiku*)
18192         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18193         link_all_deplibs_CXX=yes
18194         ;;
18195
18196       hpux9*)
18197         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18198         hardcode_libdir_separator_CXX=:
18199         export_dynamic_flag_spec_CXX='${wl}-E'
18200         hardcode_direct_CXX=yes
18201         hardcode_minus_L_CXX=yes # Not in the search PATH,
18202                                              # but as the default
18203                                              # location of the library.
18204
18205         case $cc_basename in
18206           CC*)
18207             # FIXME: insert proper C++ library support
18208             ld_shlibs_CXX=no
18209             ;;
18210           aCC*)
18211             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'
18212             # Commands to make compiler produce verbose output that lists
18213             # what "hidden" libraries, object files and flags are used when
18214             # linking a shared library.
18215             #
18216             # There doesn't appear to be a way to prevent this compiler from
18217             # explicitly linking system object files so we need to strip them
18218             # from the output so that they don't get included in the library
18219             # dependencies.
18220             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"'
18221             ;;
18222           *)
18223             if test "$GXX" = yes; then
18224               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'
18225             else
18226               # FIXME: insert proper C++ library support
18227               ld_shlibs_CXX=no
18228             fi
18229             ;;
18230         esac
18231         ;;
18232
18233       hpux10*|hpux11*)
18234         if test $with_gnu_ld = no; then
18235           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18236           hardcode_libdir_separator_CXX=:
18237
18238           case $host_cpu in
18239             hppa*64*|ia64*)
18240               ;;
18241             *)
18242               export_dynamic_flag_spec_CXX='${wl}-E'
18243               ;;
18244           esac
18245         fi
18246         case $host_cpu in
18247           hppa*64*|ia64*)
18248             hardcode_direct_CXX=no
18249             hardcode_shlibpath_var_CXX=no
18250             ;;
18251           *)
18252             hardcode_direct_CXX=yes
18253             hardcode_direct_absolute_CXX=yes
18254             hardcode_minus_L_CXX=yes # Not in the search PATH,
18255                                                  # but as the default
18256                                                  # location of the library.
18257             ;;
18258         esac
18259
18260         case $cc_basename in
18261           CC*)
18262             # FIXME: insert proper C++ library support
18263             ld_shlibs_CXX=no
18264             ;;
18265           aCC*)
18266             case $host_cpu in
18267               hppa*64*)
18268                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18269                 ;;
18270               ia64*)
18271                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18272                 ;;
18273               *)
18274                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18275                 ;;
18276             esac
18277             # Commands to make compiler produce verbose output that lists
18278             # what "hidden" libraries, object files and flags are used when
18279             # linking a shared library.
18280             #
18281             # There doesn't appear to be a way to prevent this compiler from
18282             # explicitly linking system object files so we need to strip them
18283             # from the output so that they don't get included in the library
18284             # dependencies.
18285             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"'
18286             ;;
18287           *)
18288             if test "$GXX" = yes; then
18289               if test $with_gnu_ld = no; then
18290                 case $host_cpu in
18291                   hppa*64*)
18292                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18293                     ;;
18294                   ia64*)
18295                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18296                     ;;
18297                   *)
18298                     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'
18299                     ;;
18300                 esac
18301               fi
18302             else
18303               # FIXME: insert proper C++ library support
18304               ld_shlibs_CXX=no
18305             fi
18306             ;;
18307         esac
18308         ;;
18309
18310       interix[3-9]*)
18311         hardcode_direct_CXX=no
18312         hardcode_shlibpath_var_CXX=no
18313         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18314         export_dynamic_flag_spec_CXX='${wl}-E'
18315         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18316         # Instead, shared libraries are loaded at an image base (0x10000000 by
18317         # default) and relocated if they conflict, which is a slow very memory
18318         # consuming and fragmenting process.  To avoid this, we pick a random,
18319         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18320         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18321         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'
18322         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'
18323         ;;
18324       irix5* | irix6*)
18325         case $cc_basename in
18326           CC*)
18327             # SGI C++
18328             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'
18329
18330             # Archives containing C++ object files must be created using
18331             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18332             # necessary to make sure instantiated templates are included
18333             # in the archive.
18334             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18335             ;;
18336           *)
18337             if test "$GXX" = yes; then
18338               if test "$with_gnu_ld" = no; then
18339                 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'
18340               else
18341                 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'
18342               fi
18343             fi
18344             link_all_deplibs_CXX=yes
18345             ;;
18346         esac
18347         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18348         hardcode_libdir_separator_CXX=:
18349         inherit_rpath_CXX=yes
18350         ;;
18351
18352       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18353         case $cc_basename in
18354           KCC*)
18355             # Kuck and Associates, Inc. (KAI) C++ Compiler
18356
18357             # KCC will only create a shared library if the output file
18358             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18359             # to its proper name (with version) after linking.
18360             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'
18361             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'
18362             # Commands to make compiler produce verbose output that lists
18363             # what "hidden" libraries, object files and flags are used when
18364             # linking a shared library.
18365             #
18366             # There doesn't appear to be a way to prevent this compiler from
18367             # explicitly linking system object files so we need to strip them
18368             # from the output so that they don't get included in the library
18369             # dependencies.
18370             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"'
18371
18372             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18373             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18374
18375             # Archives containing C++ object files must be created using
18376             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18377             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18378             ;;
18379           icpc* | ecpc* )
18380             # Intel C++
18381             with_gnu_ld=yes
18382             # version 8.0 and above of icpc choke on multiply defined symbols
18383             # if we add $predep_objects and $postdep_objects, however 7.1 and
18384             # earlier do not add the objects themselves.
18385             case `$CC -V 2>&1` in
18386               *"Version 7."*)
18387                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18388                 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'
18389                 ;;
18390               *)  # Version 8.0 or newer
18391                 tmp_idyn=
18392                 case $host_cpu in
18393                   ia64*) tmp_idyn=' -i_dynamic';;
18394                 esac
18395                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18396                 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'
18397                 ;;
18398             esac
18399             archive_cmds_need_lc_CXX=no
18400             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18401             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18402             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18403             ;;
18404           pgCC* | pgcpp*)
18405             # Portland Group C++ compiler
18406             case `$CC -V` in
18407             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18408               prelink_cmds_CXX='tpldir=Template.dir~
18409                 rm -rf $tpldir~
18410                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18411                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18412               old_archive_cmds_CXX='tpldir=Template.dir~
18413                 rm -rf $tpldir~
18414                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18415                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18416                 $RANLIB $oldlib'
18417               archive_cmds_CXX='tpldir=Template.dir~
18418                 rm -rf $tpldir~
18419                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18420                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18421               archive_expsym_cmds_CXX='tpldir=Template.dir~
18422                 rm -rf $tpldir~
18423                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18424                 $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'
18425               ;;
18426             *) # Version 6 and above use weak symbols
18427               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18428               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'
18429               ;;
18430             esac
18431
18432             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18433             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18434             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'
18435             ;;
18436           cxx*)
18437             # Compaq C++
18438             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18439             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'
18440
18441             runpath_var=LD_RUN_PATH
18442             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18443             hardcode_libdir_separator_CXX=:
18444
18445             # Commands to make compiler produce verbose output that lists
18446             # what "hidden" libraries, object files and flags are used when
18447             # linking a shared library.
18448             #
18449             # There doesn't appear to be a way to prevent this compiler from
18450             # explicitly linking system object files so we need to strip them
18451             # from the output so that they don't get included in the library
18452             # dependencies.
18453             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'
18454             ;;
18455           xl* | mpixl* | bgxl*)
18456             # IBM XL 8.0 on PPC, with GNU ld
18457             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18458             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18459             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18460             if test "x$supports_anon_versioning" = xyes; then
18461               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18462                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18463                 echo "local: *; };" >> $output_objdir/$libname.ver~
18464                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18465             fi
18466             ;;
18467           *)
18468             case `$CC -V 2>&1 | sed 5q` in
18469             *Sun\ C*)
18470               # Sun C++ 5.9
18471               no_undefined_flag_CXX=' -zdefs'
18472               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18473               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'
18474               hardcode_libdir_flag_spec_CXX='-R$libdir'
18475               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'
18476               compiler_needs_object_CXX=yes
18477
18478               # Not sure whether something based on
18479               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18480               # would be better.
18481               output_verbose_link_cmd='func_echo_all'
18482
18483               # Archives containing C++ object files must be created using
18484               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18485               # necessary to make sure instantiated templates are included
18486               # in the archive.
18487               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18488               ;;
18489             esac
18490             ;;
18491         esac
18492         ;;
18493
18494       lynxos*)
18495         # FIXME: insert proper C++ library support
18496         ld_shlibs_CXX=no
18497         ;;
18498
18499       m88k*)
18500         # FIXME: insert proper C++ library support
18501         ld_shlibs_CXX=no
18502         ;;
18503
18504       mvs*)
18505         case $cc_basename in
18506           cxx*)
18507             # FIXME: insert proper C++ library support
18508             ld_shlibs_CXX=no
18509             ;;
18510           *)
18511             # FIXME: insert proper C++ library support
18512             ld_shlibs_CXX=no
18513             ;;
18514         esac
18515         ;;
18516
18517       netbsd*)
18518         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18519           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18520           wlarc=
18521           hardcode_libdir_flag_spec_CXX='-R$libdir'
18522           hardcode_direct_CXX=yes
18523           hardcode_shlibpath_var_CXX=no
18524         fi
18525         # Workaround some broken pre-1.5 toolchains
18526         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18527         ;;
18528
18529       *nto* | *qnx*)
18530         ld_shlibs_CXX=yes
18531         ;;
18532
18533       openbsd2*)
18534         # C++ shared libraries are fairly broken
18535         ld_shlibs_CXX=no
18536         ;;
18537
18538       openbsd*)
18539         if test -f /usr/libexec/ld.so; then
18540           hardcode_direct_CXX=yes
18541           hardcode_shlibpath_var_CXX=no
18542           hardcode_direct_absolute_CXX=yes
18543           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18544           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18545           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18546             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18547             export_dynamic_flag_spec_CXX='${wl}-E'
18548             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18549           fi
18550           output_verbose_link_cmd=func_echo_all
18551         else
18552           ld_shlibs_CXX=no
18553         fi
18554         ;;
18555
18556       osf3* | osf4* | osf5*)
18557         case $cc_basename in
18558           KCC*)
18559             # Kuck and Associates, Inc. (KAI) C++ Compiler
18560
18561             # KCC will only create a shared library if the output file
18562             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18563             # to its proper name (with version) after linking.
18564             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'
18565
18566             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18567             hardcode_libdir_separator_CXX=:
18568
18569             # Archives containing C++ object files must be created using
18570             # the KAI C++ compiler.
18571             case $host in
18572               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18573               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18574             esac
18575             ;;
18576           RCC*)
18577             # Rational C++ 2.4.1
18578             # FIXME: insert proper C++ library support
18579             ld_shlibs_CXX=no
18580             ;;
18581           cxx*)
18582             case $host in
18583               osf3*)
18584                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18585                 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'
18586                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18587                 ;;
18588               *)
18589                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18590                 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'
18591                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18592                   echo "-hidden">> $lib.exp~
18593                   $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~
18594                   $RM $lib.exp'
18595                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18596                 ;;
18597             esac
18598
18599             hardcode_libdir_separator_CXX=:
18600
18601             # Commands to make compiler produce verbose output that lists
18602             # what "hidden" libraries, object files and flags are used when
18603             # linking a shared library.
18604             #
18605             # There doesn't appear to be a way to prevent this compiler from
18606             # explicitly linking system object files so we need to strip them
18607             # from the output so that they don't get included in the library
18608             # dependencies.
18609             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"'
18610             ;;
18611           *)
18612             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18613               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18614               case $host in
18615                 osf3*)
18616                   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'
18617                   ;;
18618                 *)
18619                   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'
18620                   ;;
18621               esac
18622
18623               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18624               hardcode_libdir_separator_CXX=:
18625
18626               # Commands to make compiler produce verbose output that lists
18627               # what "hidden" libraries, object files and flags are used when
18628               # linking a shared library.
18629               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18630
18631             else
18632               # FIXME: insert proper C++ library support
18633               ld_shlibs_CXX=no
18634             fi
18635             ;;
18636         esac
18637         ;;
18638
18639       psos*)
18640         # FIXME: insert proper C++ library support
18641         ld_shlibs_CXX=no
18642         ;;
18643
18644       sunos4*)
18645         case $cc_basename in
18646           CC*)
18647             # Sun C++ 4.x
18648             # FIXME: insert proper C++ library support
18649             ld_shlibs_CXX=no
18650             ;;
18651           lcc*)
18652             # Lucid
18653             # FIXME: insert proper C++ library support
18654             ld_shlibs_CXX=no
18655             ;;
18656           *)
18657             # FIXME: insert proper C++ library support
18658             ld_shlibs_CXX=no
18659             ;;
18660         esac
18661         ;;
18662
18663       solaris*)
18664         case $cc_basename in
18665           CC*)
18666             # Sun C++ 4.2, 5.x and Centerline C++
18667             archive_cmds_need_lc_CXX=yes
18668             no_undefined_flag_CXX=' -zdefs'
18669             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18670             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18671               $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'
18672
18673             hardcode_libdir_flag_spec_CXX='-R$libdir'
18674             hardcode_shlibpath_var_CXX=no
18675             case $host_os in
18676               solaris2.[0-5] | solaris2.[0-5].*) ;;
18677               *)
18678                 # The compiler driver will combine and reorder linker options,
18679                 # but understands `-z linker_flag'.
18680                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18681                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18682                 ;;
18683             esac
18684             link_all_deplibs_CXX=yes
18685
18686             output_verbose_link_cmd='func_echo_all'
18687
18688             # Archives containing C++ object files must be created using
18689             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18690             # necessary to make sure instantiated templates are included
18691             # in the archive.
18692             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18693             ;;
18694           gcx*)
18695             # Green Hills C++ Compiler
18696             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18697
18698             # The C++ compiler must be used to create the archive.
18699             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18700             ;;
18701           *)
18702             # GNU C++ compiler with Solaris linker
18703             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18704               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18705               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18706                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18707                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18708                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18709
18710                 # Commands to make compiler produce verbose output that lists
18711                 # what "hidden" libraries, object files and flags are used when
18712                 # linking a shared library.
18713                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18714               else
18715                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18716                 # platform.
18717                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18718                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18719                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18720
18721                 # Commands to make compiler produce verbose output that lists
18722                 # what "hidden" libraries, object files and flags are used when
18723                 # linking a shared library.
18724                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18725               fi
18726
18727               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18728               case $host_os in
18729                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18730                 *)
18731                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18732                   ;;
18733               esac
18734             fi
18735             ;;
18736         esac
18737         ;;
18738
18739     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18740       no_undefined_flag_CXX='${wl}-z,text'
18741       archive_cmds_need_lc_CXX=no
18742       hardcode_shlibpath_var_CXX=no
18743       runpath_var='LD_RUN_PATH'
18744
18745       case $cc_basename in
18746         CC*)
18747           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18748           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18749           ;;
18750         *)
18751           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18752           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18753           ;;
18754       esac
18755       ;;
18756
18757       sysv5* | sco3.2v5* | sco5v6*)
18758         # Note: We can NOT use -z defs as we might desire, because we do not
18759         # link with -lc, and that would cause any symbols used from libc to
18760         # always be unresolved, which means just about no library would
18761         # ever link correctly.  If we're not using GNU ld we use -z text
18762         # though, which does catch some bad symbols but isn't as heavy-handed
18763         # as -z defs.
18764         no_undefined_flag_CXX='${wl}-z,text'
18765         allow_undefined_flag_CXX='${wl}-z,nodefs'
18766         archive_cmds_need_lc_CXX=no
18767         hardcode_shlibpath_var_CXX=no
18768         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18769         hardcode_libdir_separator_CXX=':'
18770         link_all_deplibs_CXX=yes
18771         export_dynamic_flag_spec_CXX='${wl}-Bexport'
18772         runpath_var='LD_RUN_PATH'
18773
18774         case $cc_basename in
18775           CC*)
18776             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18777             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18778             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18779               '"$old_archive_cmds_CXX"
18780             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18781               '"$reload_cmds_CXX"
18782             ;;
18783           *)
18784             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18785             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18786             ;;
18787         esac
18788       ;;
18789
18790       tandem*)
18791         case $cc_basename in
18792           NCC*)
18793             # NonStop-UX NCC 3.20
18794             # FIXME: insert proper C++ library support
18795             ld_shlibs_CXX=no
18796             ;;
18797           *)
18798             # FIXME: insert proper C++ library support
18799             ld_shlibs_CXX=no
18800             ;;
18801         esac
18802         ;;
18803
18804       vxworks*)
18805         # FIXME: insert proper C++ library support
18806         ld_shlibs_CXX=no
18807         ;;
18808
18809       *)
18810         # FIXME: insert proper C++ library support
18811         ld_shlibs_CXX=no
18812         ;;
18813     esac
18814
18815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18816 $as_echo "$ld_shlibs_CXX" >&6; }
18817     test "$ld_shlibs_CXX" = no && can_build_shared=no
18818
18819     GCC_CXX="$GXX"
18820     LD_CXX="$LD"
18821
18822     ## CAVEAT EMPTOR:
18823     ## There is no encapsulation within the following macros, do not change
18824     ## the running order or otherwise move them around unless you know exactly
18825     ## what you are doing...
18826     # Dependencies to place before and after the object being linked:
18827 predep_objects_CXX=
18828 postdep_objects_CXX=
18829 predeps_CXX=
18830 postdeps_CXX=
18831 compiler_lib_search_path_CXX=
18832
18833 cat > conftest.$ac_ext <<_LT_EOF
18834 class Foo
18835 {
18836 public:
18837   Foo (void) { a = 0; }
18838 private:
18839   int a;
18840 };
18841 _LT_EOF
18842
18843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18844   (eval $ac_compile) 2>&5
18845   ac_status=$?
18846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18847   test $ac_status = 0; }; then
18848   # Parse the compiler output and extract the necessary
18849   # objects, libraries and library flags.
18850
18851   # Sentinel used to keep track of whether or not we are before
18852   # the conftest object file.
18853   pre_test_object_deps_done=no
18854
18855   for p in `eval "$output_verbose_link_cmd"`; do
18856     case $p in
18857
18858     -L* | -R* | -l*)
18859        # Some compilers place space between "-{L,R}" and the path.
18860        # Remove the space.
18861        if test $p = "-L" ||
18862           test $p = "-R"; then
18863          prev=$p
18864          continue
18865        else
18866          prev=
18867        fi
18868
18869        if test "$pre_test_object_deps_done" = no; then
18870          case $p in
18871          -L* | -R*)
18872            # Internal compiler library paths should come after those
18873            # provided the user.  The postdeps already come after the
18874            # user supplied libs so there is no need to process them.
18875            if test -z "$compiler_lib_search_path_CXX"; then
18876              compiler_lib_search_path_CXX="${prev}${p}"
18877            else
18878              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18879            fi
18880            ;;
18881          # The "-l" case would never come before the object being
18882          # linked, so don't bother handling this case.
18883          esac
18884        else
18885          if test -z "$postdeps_CXX"; then
18886            postdeps_CXX="${prev}${p}"
18887          else
18888            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18889          fi
18890        fi
18891        ;;
18892
18893     *.$objext)
18894        # This assumes that the test object file only shows up
18895        # once in the compiler output.
18896        if test "$p" = "conftest.$objext"; then
18897          pre_test_object_deps_done=yes
18898          continue
18899        fi
18900
18901        if test "$pre_test_object_deps_done" = no; then
18902          if test -z "$predep_objects_CXX"; then
18903            predep_objects_CXX="$p"
18904          else
18905            predep_objects_CXX="$predep_objects_CXX $p"
18906          fi
18907        else
18908          if test -z "$postdep_objects_CXX"; then
18909            postdep_objects_CXX="$p"
18910          else
18911            postdep_objects_CXX="$postdep_objects_CXX $p"
18912          fi
18913        fi
18914        ;;
18915
18916     *) ;; # Ignore the rest.
18917
18918     esac
18919   done
18920
18921   # Clean up.
18922   rm -f a.out a.exe
18923 else
18924   echo "libtool.m4: error: problem compiling CXX test program"
18925 fi
18926
18927 $RM -f confest.$objext
18928
18929 # PORTME: override above test on systems where it is broken
18930 case $host_os in
18931 interix[3-9]*)
18932   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18933   # hack all around it, let's just trust "g++" to DTRT.
18934   predep_objects_CXX=
18935   postdep_objects_CXX=
18936   postdeps_CXX=
18937   ;;
18938
18939 linux*)
18940   case `$CC -V 2>&1 | sed 5q` in
18941   *Sun\ C*)
18942     # Sun C++ 5.9
18943
18944     # The more standards-conforming stlport4 library is
18945     # incompatible with the Cstd library. Avoid specifying
18946     # it if it's in CXXFLAGS. Ignore libCrun as
18947     # -library=stlport4 depends on it.
18948     case " $CXX $CXXFLAGS " in
18949     *" -library=stlport4 "*)
18950       solaris_use_stlport4=yes
18951       ;;
18952     esac
18953
18954     if test "$solaris_use_stlport4" != yes; then
18955       postdeps_CXX='-library=Cstd -library=Crun'
18956     fi
18957     ;;
18958   esac
18959   ;;
18960
18961 solaris*)
18962   case $cc_basename in
18963   CC*)
18964     # The more standards-conforming stlport4 library is
18965     # incompatible with the Cstd library. Avoid specifying
18966     # it if it's in CXXFLAGS. Ignore libCrun as
18967     # -library=stlport4 depends on it.
18968     case " $CXX $CXXFLAGS " in
18969     *" -library=stlport4 "*)
18970       solaris_use_stlport4=yes
18971       ;;
18972     esac
18973
18974     # Adding this requires a known-good setup of shared libraries for
18975     # Sun compiler versions before 5.6, else PIC objects from an old
18976     # archive will be linked into the output, leading to subtle bugs.
18977     if test "$solaris_use_stlport4" != yes; then
18978       postdeps_CXX='-library=Cstd -library=Crun'
18979     fi
18980     ;;
18981   esac
18982   ;;
18983 esac
18984
18985
18986 case " $postdeps_CXX " in
18987 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18988 esac
18989  compiler_lib_search_dirs_CXX=
18990 if test -n "${compiler_lib_search_path_CXX}"; then
18991  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18992 fi
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024     lt_prog_compiler_wl_CXX=
19025 lt_prog_compiler_pic_CXX=
19026 lt_prog_compiler_static_CXX=
19027
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19029 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19030
19031   # C++ specific cases for pic, static, wl, etc.
19032   if test "$GXX" = yes; then
19033     lt_prog_compiler_wl_CXX='-Wl,'
19034     lt_prog_compiler_static_CXX='-static'
19035
19036     case $host_os in
19037     aix*)
19038       # All AIX code is PIC.
19039       if test "$host_cpu" = ia64; then
19040         # AIX 5 now supports IA64 processor
19041         lt_prog_compiler_static_CXX='-Bstatic'
19042       fi
19043       ;;
19044
19045     amigaos*)
19046       case $host_cpu in
19047       powerpc)
19048             # see comment about AmigaOS4 .so support
19049             lt_prog_compiler_pic_CXX='-fPIC'
19050         ;;
19051       m68k)
19052             # FIXME: we need at least 68020 code to build shared libraries, but
19053             # adding the `-m68020' flag to GCC prevents building anything better,
19054             # like `-m68040'.
19055             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19056         ;;
19057       esac
19058       ;;
19059
19060     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19061       # PIC is the default for these OSes.
19062       ;;
19063     mingw* | cygwin* | os2* | pw32* | cegcc*)
19064       # This hack is so that the source file can tell whether it is being
19065       # built for inclusion in a dll (and should export symbols for example).
19066       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19067       # (--disable-auto-import) libraries
19068       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19069       ;;
19070     darwin* | rhapsody*)
19071       # PIC is the default on this platform
19072       # Common symbols not allowed in MH_DYLIB files
19073       lt_prog_compiler_pic_CXX='-fno-common'
19074       ;;
19075     *djgpp*)
19076       # DJGPP does not support shared libraries at all
19077       lt_prog_compiler_pic_CXX=
19078       ;;
19079     haiku*)
19080       # PIC is the default for Haiku.
19081       # The "-static" flag exists, but is broken.
19082       lt_prog_compiler_static_CXX=
19083       ;;
19084     interix[3-9]*)
19085       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19086       # Instead, we relocate shared libraries at runtime.
19087       ;;
19088     sysv4*MP*)
19089       if test -d /usr/nec; then
19090         lt_prog_compiler_pic_CXX=-Kconform_pic
19091       fi
19092       ;;
19093     hpux*)
19094       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19095       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19096       # sets the default TLS model and affects inlining.
19097       case $host_cpu in
19098       hppa*64*)
19099         ;;
19100       *)
19101         lt_prog_compiler_pic_CXX='-fPIC'
19102         ;;
19103       esac
19104       ;;
19105     *qnx* | *nto*)
19106       # QNX uses GNU C++, but need to define -shared option too, otherwise
19107       # it will coredump.
19108       lt_prog_compiler_pic_CXX='-fPIC -shared'
19109       ;;
19110     *)
19111       lt_prog_compiler_pic_CXX='-fPIC'
19112       ;;
19113     esac
19114   else
19115     case $host_os in
19116       aix[4-9]*)
19117         # All AIX code is PIC.
19118         if test "$host_cpu" = ia64; then
19119           # AIX 5 now supports IA64 processor
19120           lt_prog_compiler_static_CXX='-Bstatic'
19121         else
19122           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19123         fi
19124         ;;
19125       chorus*)
19126         case $cc_basename in
19127         cxch68*)
19128           # Green Hills C++ Compiler
19129           # _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"
19130           ;;
19131         esac
19132         ;;
19133       dgux*)
19134         case $cc_basename in
19135           ec++*)
19136             lt_prog_compiler_pic_CXX='-KPIC'
19137             ;;
19138           ghcx*)
19139             # Green Hills C++ Compiler
19140             lt_prog_compiler_pic_CXX='-pic'
19141             ;;
19142           *)
19143             ;;
19144         esac
19145         ;;
19146       freebsd* | dragonfly*)
19147         # FreeBSD uses GNU C++
19148         ;;
19149       hpux9* | hpux10* | hpux11*)
19150         case $cc_basename in
19151           CC*)
19152             lt_prog_compiler_wl_CXX='-Wl,'
19153             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19154             if test "$host_cpu" != ia64; then
19155               lt_prog_compiler_pic_CXX='+Z'
19156             fi
19157             ;;
19158           aCC*)
19159             lt_prog_compiler_wl_CXX='-Wl,'
19160             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19161             case $host_cpu in
19162             hppa*64*|ia64*)
19163               # +Z the default
19164               ;;
19165             *)
19166               lt_prog_compiler_pic_CXX='+Z'
19167               ;;
19168             esac
19169             ;;
19170           *)
19171             ;;
19172         esac
19173         ;;
19174       interix*)
19175         # This is c89, which is MS Visual C++ (no shared libs)
19176         # Anyone wants to do a port?
19177         ;;
19178       irix5* | irix6* | nonstopux*)
19179         case $cc_basename in
19180           CC*)
19181             lt_prog_compiler_wl_CXX='-Wl,'
19182             lt_prog_compiler_static_CXX='-non_shared'
19183             # CC pic flag -KPIC is the default.
19184             ;;
19185           *)
19186             ;;
19187         esac
19188         ;;
19189       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19190         case $cc_basename in
19191           KCC*)
19192             # KAI C++ Compiler
19193             lt_prog_compiler_wl_CXX='--backend -Wl,'
19194             lt_prog_compiler_pic_CXX='-fPIC'
19195             ;;
19196           ecpc* )
19197             # old Intel C++ for x86_64 which still supported -KPIC.
19198             lt_prog_compiler_wl_CXX='-Wl,'
19199             lt_prog_compiler_pic_CXX='-KPIC'
19200             lt_prog_compiler_static_CXX='-static'
19201             ;;
19202           icpc* )
19203             # Intel C++, used to be incompatible with GCC.
19204             # ICC 10 doesn't accept -KPIC any more.
19205             lt_prog_compiler_wl_CXX='-Wl,'
19206             lt_prog_compiler_pic_CXX='-fPIC'
19207             lt_prog_compiler_static_CXX='-static'
19208             ;;
19209           pgCC* | pgcpp*)
19210             # Portland Group C++ compiler
19211             lt_prog_compiler_wl_CXX='-Wl,'
19212             lt_prog_compiler_pic_CXX='-fpic'
19213             lt_prog_compiler_static_CXX='-Bstatic'
19214             ;;
19215           cxx*)
19216             # Compaq C++
19217             # Make sure the PIC flag is empty.  It appears that all Alpha
19218             # Linux and Compaq Tru64 Unix objects are PIC.
19219             lt_prog_compiler_pic_CXX=
19220             lt_prog_compiler_static_CXX='-non_shared'
19221             ;;
19222           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19223             # IBM XL 8.0, 9.0 on PPC and BlueGene
19224             lt_prog_compiler_wl_CXX='-Wl,'
19225             lt_prog_compiler_pic_CXX='-qpic'
19226             lt_prog_compiler_static_CXX='-qstaticlink'
19227             ;;
19228           *)
19229             case `$CC -V 2>&1 | sed 5q` in
19230             *Sun\ C*)
19231               # Sun C++ 5.9
19232               lt_prog_compiler_pic_CXX='-KPIC'
19233               lt_prog_compiler_static_CXX='-Bstatic'
19234               lt_prog_compiler_wl_CXX='-Qoption ld '
19235               ;;
19236             esac
19237             ;;
19238         esac
19239         ;;
19240       lynxos*)
19241         ;;
19242       m88k*)
19243         ;;
19244       mvs*)
19245         case $cc_basename in
19246           cxx*)
19247             lt_prog_compiler_pic_CXX='-W c,exportall'
19248             ;;
19249           *)
19250             ;;
19251         esac
19252         ;;
19253       netbsd*)
19254         ;;
19255       *qnx* | *nto*)
19256         # QNX uses GNU C++, but need to define -shared option too, otherwise
19257         # it will coredump.
19258         lt_prog_compiler_pic_CXX='-fPIC -shared'
19259         ;;
19260       osf3* | osf4* | osf5*)
19261         case $cc_basename in
19262           KCC*)
19263             lt_prog_compiler_wl_CXX='--backend -Wl,'
19264             ;;
19265           RCC*)
19266             # Rational C++ 2.4.1
19267             lt_prog_compiler_pic_CXX='-pic'
19268             ;;
19269           cxx*)
19270             # Digital/Compaq C++
19271             lt_prog_compiler_wl_CXX='-Wl,'
19272             # Make sure the PIC flag is empty.  It appears that all Alpha
19273             # Linux and Compaq Tru64 Unix objects are PIC.
19274             lt_prog_compiler_pic_CXX=
19275             lt_prog_compiler_static_CXX='-non_shared'
19276             ;;
19277           *)
19278             ;;
19279         esac
19280         ;;
19281       psos*)
19282         ;;
19283       solaris*)
19284         case $cc_basename in
19285           CC*)
19286             # Sun C++ 4.2, 5.x and Centerline C++
19287             lt_prog_compiler_pic_CXX='-KPIC'
19288             lt_prog_compiler_static_CXX='-Bstatic'
19289             lt_prog_compiler_wl_CXX='-Qoption ld '
19290             ;;
19291           gcx*)
19292             # Green Hills C++ Compiler
19293             lt_prog_compiler_pic_CXX='-PIC'
19294             ;;
19295           *)
19296             ;;
19297         esac
19298         ;;
19299       sunos4*)
19300         case $cc_basename in
19301           CC*)
19302             # Sun C++ 4.x
19303             lt_prog_compiler_pic_CXX='-pic'
19304             lt_prog_compiler_static_CXX='-Bstatic'
19305             ;;
19306           lcc*)
19307             # Lucid
19308             lt_prog_compiler_pic_CXX='-pic'
19309             ;;
19310           *)
19311             ;;
19312         esac
19313         ;;
19314       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19315         case $cc_basename in
19316           CC*)
19317             lt_prog_compiler_wl_CXX='-Wl,'
19318             lt_prog_compiler_pic_CXX='-KPIC'
19319             lt_prog_compiler_static_CXX='-Bstatic'
19320             ;;
19321         esac
19322         ;;
19323       tandem*)
19324         case $cc_basename in
19325           NCC*)
19326             # NonStop-UX NCC 3.20
19327             lt_prog_compiler_pic_CXX='-KPIC'
19328             ;;
19329           *)
19330             ;;
19331         esac
19332         ;;
19333       vxworks*)
19334         ;;
19335       *)
19336         lt_prog_compiler_can_build_shared_CXX=no
19337         ;;
19338     esac
19339   fi
19340
19341 case $host_os in
19342   # For platforms which do not support PIC, -DPIC is meaningless:
19343   *djgpp*)
19344     lt_prog_compiler_pic_CXX=
19345     ;;
19346   *)
19347     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19348     ;;
19349 esac
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19351 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19352
19353
19354
19355 #
19356 # Check to make sure the PIC flag actually works.
19357 #
19358 if test -n "$lt_prog_compiler_pic_CXX"; then
19359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19360 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19361 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19362   $as_echo_n "(cached) " >&6
19363 else
19364   lt_cv_prog_compiler_pic_works_CXX=no
19365    ac_outfile=conftest.$ac_objext
19366    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19367    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19368    # Insert the option either (1) after the last *FLAGS variable, or
19369    # (2) before a word containing "conftest.", or (3) at the end.
19370    # Note that $ac_compile itself does not contain backslashes and begins
19371    # with a dollar sign (not a hyphen), so the echo should work correctly.
19372    # The option is referenced via a variable to avoid confusing sed.
19373    lt_compile=`echo "$ac_compile" | $SED \
19374    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19375    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19376    -e 's:$: $lt_compiler_flag:'`
19377    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19378    (eval "$lt_compile" 2>conftest.err)
19379    ac_status=$?
19380    cat conftest.err >&5
19381    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382    if (exit $ac_status) && test -s "$ac_outfile"; then
19383      # The compiler can only warn and ignore the option if not recognized
19384      # So say no if there are warnings other than the usual output.
19385      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19386      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19387      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19388        lt_cv_prog_compiler_pic_works_CXX=yes
19389      fi
19390    fi
19391    $RM conftest*
19392
19393 fi
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19395 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19396
19397 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19398     case $lt_prog_compiler_pic_CXX in
19399      "" | " "*) ;;
19400      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19401      esac
19402 else
19403     lt_prog_compiler_pic_CXX=
19404      lt_prog_compiler_can_build_shared_CXX=no
19405 fi
19406
19407 fi
19408
19409
19410
19411 #
19412 # Check to make sure the static flag actually works.
19413 #
19414 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19416 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19417 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19418   $as_echo_n "(cached) " >&6
19419 else
19420   lt_cv_prog_compiler_static_works_CXX=no
19421    save_LDFLAGS="$LDFLAGS"
19422    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19423    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19424    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19425      # The linker can only warn and ignore the option if not recognized
19426      # So say no if there are warnings
19427      if test -s conftest.err; then
19428        # Append any errors to the config.log.
19429        cat conftest.err 1>&5
19430        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19431        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19432        if diff conftest.exp conftest.er2 >/dev/null; then
19433          lt_cv_prog_compiler_static_works_CXX=yes
19434        fi
19435      else
19436        lt_cv_prog_compiler_static_works_CXX=yes
19437      fi
19438    fi
19439    $RM -r conftest*
19440    LDFLAGS="$save_LDFLAGS"
19441
19442 fi
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19444 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19445
19446 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19447     :
19448 else
19449     lt_prog_compiler_static_CXX=
19450 fi
19451
19452
19453
19454
19455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19456 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19457 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19458   $as_echo_n "(cached) " >&6
19459 else
19460   lt_cv_prog_compiler_c_o_CXX=no
19461    $RM -r conftest 2>/dev/null
19462    mkdir conftest
19463    cd conftest
19464    mkdir out
19465    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19466
19467    lt_compiler_flag="-o out/conftest2.$ac_objext"
19468    # Insert the option either (1) after the last *FLAGS variable, or
19469    # (2) before a word containing "conftest.", or (3) at the end.
19470    # Note that $ac_compile itself does not contain backslashes and begins
19471    # with a dollar sign (not a hyphen), so the echo should work correctly.
19472    lt_compile=`echo "$ac_compile" | $SED \
19473    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19475    -e 's:$: $lt_compiler_flag:'`
19476    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19477    (eval "$lt_compile" 2>out/conftest.err)
19478    ac_status=$?
19479    cat out/conftest.err >&5
19480    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19482    then
19483      # The compiler can only warn and ignore the option if not recognized
19484      # So say no if there are warnings
19485      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19486      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19487      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19488        lt_cv_prog_compiler_c_o_CXX=yes
19489      fi
19490    fi
19491    chmod u+w . 2>&5
19492    $RM conftest*
19493    # SGI C++ compiler will create directory out/ii_files/ for
19494    # template instantiation
19495    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19496    $RM out/* && rmdir out
19497    cd ..
19498    $RM -r conftest
19499    $RM conftest*
19500
19501 fi
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19503 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19504
19505
19506
19507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19508 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19509 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19510   $as_echo_n "(cached) " >&6
19511 else
19512   lt_cv_prog_compiler_c_o_CXX=no
19513    $RM -r conftest 2>/dev/null
19514    mkdir conftest
19515    cd conftest
19516    mkdir out
19517    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19518
19519    lt_compiler_flag="-o out/conftest2.$ac_objext"
19520    # Insert the option either (1) after the last *FLAGS variable, or
19521    # (2) before a word containing "conftest.", or (3) at the end.
19522    # Note that $ac_compile itself does not contain backslashes and begins
19523    # with a dollar sign (not a hyphen), so the echo should work correctly.
19524    lt_compile=`echo "$ac_compile" | $SED \
19525    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19526    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19527    -e 's:$: $lt_compiler_flag:'`
19528    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19529    (eval "$lt_compile" 2>out/conftest.err)
19530    ac_status=$?
19531    cat out/conftest.err >&5
19532    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19534    then
19535      # The compiler can only warn and ignore the option if not recognized
19536      # So say no if there are warnings
19537      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19538      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19539      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19540        lt_cv_prog_compiler_c_o_CXX=yes
19541      fi
19542    fi
19543    chmod u+w . 2>&5
19544    $RM conftest*
19545    # SGI C++ compiler will create directory out/ii_files/ for
19546    # template instantiation
19547    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19548    $RM out/* && rmdir out
19549    cd ..
19550    $RM -r conftest
19551    $RM conftest*
19552
19553 fi
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19555 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19556
19557
19558
19559
19560 hard_links="nottested"
19561 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19562   # do not overwrite the value of need_locks provided by the user
19563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19564 $as_echo_n "checking if we can lock with hard links... " >&6; }
19565   hard_links=yes
19566   $RM conftest*
19567   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19568   touch conftest.a
19569   ln conftest.a conftest.b 2>&5 || hard_links=no
19570   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19572 $as_echo "$hard_links" >&6; }
19573   if test "$hard_links" = no; then
19574     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19575 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19576     need_locks=warn
19577   fi
19578 else
19579   need_locks=no
19580 fi
19581
19582
19583
19584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19585 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19586
19587   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19588   case $host_os in
19589   aix[4-9]*)
19590     # If we're using GNU nm, then we don't want the "-C" option.
19591     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19592     # Also, AIX nm treats weak defined symbols like other global defined
19593     # symbols, whereas GNU nm marks them as "W".
19594     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19595       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'
19596     else
19597       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'
19598     fi
19599     ;;
19600   pw32*)
19601     export_symbols_cmds_CXX="$ltdll_cmds"
19602   ;;
19603   cygwin* | mingw* | cegcc*)
19604     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'
19605   ;;
19606   *)
19607     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19608   ;;
19609   esac
19610   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19611
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19613 $as_echo "$ld_shlibs_CXX" >&6; }
19614 test "$ld_shlibs_CXX" = no && can_build_shared=no
19615
19616 with_gnu_ld_CXX=$with_gnu_ld
19617
19618
19619
19620
19621
19622
19623 #
19624 # Do we need to explicitly link libc?
19625 #
19626 case "x$archive_cmds_need_lc_CXX" in
19627 x|xyes)
19628   # Assume -lc should be added
19629   archive_cmds_need_lc_CXX=yes
19630
19631   if test "$enable_shared" = yes && test "$GCC" = yes; then
19632     case $archive_cmds_CXX in
19633     *'~'*)
19634       # FIXME: we may have to deal with multi-command sequences.
19635       ;;
19636     '$CC '*)
19637       # Test whether the compiler implicitly links with -lc since on some
19638       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19639       # to ld, don't add -lc before -lgcc.
19640       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19641 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19642 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19643   $as_echo_n "(cached) " >&6
19644 else
19645   $RM conftest*
19646         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19647
19648         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19649   (eval $ac_compile) 2>&5
19650   ac_status=$?
19651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19652   test $ac_status = 0; } 2>conftest.err; then
19653           soname=conftest
19654           lib=conftest
19655           libobjs=conftest.$ac_objext
19656           deplibs=
19657           wl=$lt_prog_compiler_wl_CXX
19658           pic_flag=$lt_prog_compiler_pic_CXX
19659           compiler_flags=-v
19660           linker_flags=-v
19661           verstring=
19662           output_objdir=.
19663           libname=conftest
19664           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19665           allow_undefined_flag_CXX=
19666           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19667   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19668   ac_status=$?
19669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19670   test $ac_status = 0; }
19671           then
19672             lt_cv_archive_cmds_need_lc_CXX=no
19673           else
19674             lt_cv_archive_cmds_need_lc_CXX=yes
19675           fi
19676           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19677         else
19678           cat conftest.err 1>&5
19679         fi
19680         $RM conftest*
19681
19682 fi
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19684 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19685       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19686       ;;
19687     esac
19688   fi
19689   ;;
19690 esac
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19756 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19757
19758 library_names_spec=
19759 libname_spec='lib$name'
19760 soname_spec=
19761 shrext_cmds=".so"
19762 postinstall_cmds=
19763 postuninstall_cmds=
19764 finish_cmds=
19765 finish_eval=
19766 shlibpath_var=
19767 shlibpath_overrides_runpath=unknown
19768 version_type=none
19769 dynamic_linker="$host_os ld.so"
19770 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19771 need_lib_prefix=unknown
19772 hardcode_into_libs=no
19773
19774 # when you set need_version to no, make sure it does not cause -set_version
19775 # flags to be left without arguments
19776 need_version=unknown
19777
19778 case $host_os in
19779 aix3*)
19780   version_type=linux
19781   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19782   shlibpath_var=LIBPATH
19783
19784   # AIX 3 has no versioning support, so we append a major version to the name.
19785   soname_spec='${libname}${release}${shared_ext}$major'
19786   ;;
19787
19788 aix[4-9]*)
19789   version_type=linux
19790   need_lib_prefix=no
19791   need_version=no
19792   hardcode_into_libs=yes
19793   if test "$host_cpu" = ia64; then
19794     # AIX 5 supports IA64
19795     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19796     shlibpath_var=LD_LIBRARY_PATH
19797   else
19798     # With GCC up to 2.95.x, collect2 would create an import file
19799     # for dependence libraries.  The import file would start with
19800     # the line `#! .'.  This would cause the generated library to
19801     # depend on `.', always an invalid library.  This was fixed in
19802     # development snapshots of GCC prior to 3.0.
19803     case $host_os in
19804       aix4 | aix4.[01] | aix4.[01].*)
19805       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19806            echo ' yes '
19807            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19808         :
19809       else
19810         can_build_shared=no
19811       fi
19812       ;;
19813     esac
19814     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19815     # soname into executable. Probably we can add versioning support to
19816     # collect2, so additional links can be useful in future.
19817     if test "$aix_use_runtimelinking" = yes; then
19818       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19819       # instead of lib<name>.a to let people know that these are not
19820       # typical AIX shared libraries.
19821       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19822     else
19823       # We preserve .a as extension for shared libraries through AIX4.2
19824       # and later when we are not doing run time linking.
19825       library_names_spec='${libname}${release}.a $libname.a'
19826       soname_spec='${libname}${release}${shared_ext}$major'
19827     fi
19828     shlibpath_var=LIBPATH
19829   fi
19830   ;;
19831
19832 amigaos*)
19833   case $host_cpu in
19834   powerpc)
19835     # Since July 2007 AmigaOS4 officially supports .so libraries.
19836     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19837     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19838     ;;
19839   m68k)
19840     library_names_spec='$libname.ixlibrary $libname.a'
19841     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19842     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'
19843     ;;
19844   esac
19845   ;;
19846
19847 beos*)
19848   library_names_spec='${libname}${shared_ext}'
19849   dynamic_linker="$host_os ld.so"
19850   shlibpath_var=LIBRARY_PATH
19851   ;;
19852
19853 bsdi[45]*)
19854   version_type=linux
19855   need_version=no
19856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19857   soname_spec='${libname}${release}${shared_ext}$major'
19858   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19859   shlibpath_var=LD_LIBRARY_PATH
19860   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19861   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19862   # the default ld.so.conf also contains /usr/contrib/lib and
19863   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19864   # libtool to hard-code these into programs
19865   ;;
19866
19867 cygwin* | mingw* | pw32* | cegcc*)
19868   version_type=windows
19869   shrext_cmds=".dll"
19870   need_version=no
19871   need_lib_prefix=no
19872
19873   case $GCC,$host_os in
19874   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19875     library_names_spec='$libname.dll.a'
19876     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19877     postinstall_cmds='base_file=`basename \${file}`~
19878       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19879       dldir=$destdir/`dirname \$dlpath`~
19880       test -d \$dldir || mkdir -p \$dldir~
19881       $install_prog $dir/$dlname \$dldir/$dlname~
19882       chmod a+x \$dldir/$dlname~
19883       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19884         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19885       fi'
19886     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19887       dlpath=$dir/\$dldll~
19888        $RM \$dlpath'
19889     shlibpath_overrides_runpath=yes
19890
19891     case $host_os in
19892     cygwin*)
19893       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19894       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19895
19896       ;;
19897     mingw* | cegcc*)
19898       # MinGW DLLs use traditional 'lib' prefix
19899       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19900       ;;
19901     pw32*)
19902       # pw32 DLLs use 'pw' prefix rather than 'lib'
19903       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19904       ;;
19905     esac
19906     ;;
19907
19908   *)
19909     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19910     ;;
19911   esac
19912   dynamic_linker='Win32 ld.exe'
19913   # FIXME: first we should search . and the directory the executable is in
19914   shlibpath_var=PATH
19915   ;;
19916
19917 darwin* | rhapsody*)
19918   dynamic_linker="$host_os dyld"
19919   version_type=darwin
19920   need_lib_prefix=no
19921   need_version=no
19922   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19923   soname_spec='${libname}${release}${major}$shared_ext'
19924   shlibpath_overrides_runpath=yes
19925   shlibpath_var=DYLD_LIBRARY_PATH
19926   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19927
19928   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19929   ;;
19930
19931 dgux*)
19932   version_type=linux
19933   need_lib_prefix=no
19934   need_version=no
19935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19936   soname_spec='${libname}${release}${shared_ext}$major'
19937   shlibpath_var=LD_LIBRARY_PATH
19938   ;;
19939
19940 freebsd1*)
19941   dynamic_linker=no
19942   ;;
19943
19944 freebsd* | dragonfly*)
19945   # DragonFly does not have aout.  When/if they implement a new
19946   # versioning mechanism, adjust this.
19947   if test -x /usr/bin/objformat; then
19948     objformat=`/usr/bin/objformat`
19949   else
19950     case $host_os in
19951     freebsd[123]*) objformat=aout ;;
19952     *) objformat=elf ;;
19953     esac
19954   fi
19955   version_type=freebsd-$objformat
19956   case $version_type in
19957     freebsd-elf*)
19958       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19959       need_version=no
19960       need_lib_prefix=no
19961       ;;
19962     freebsd-*)
19963       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19964       need_version=yes
19965       ;;
19966   esac
19967   shlibpath_var=LD_LIBRARY_PATH
19968   case $host_os in
19969   freebsd2*)
19970     shlibpath_overrides_runpath=yes
19971     ;;
19972   freebsd3.[01]* | freebsdelf3.[01]*)
19973     shlibpath_overrides_runpath=yes
19974     hardcode_into_libs=yes
19975     ;;
19976   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19977   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19978     shlibpath_overrides_runpath=no
19979     hardcode_into_libs=yes
19980     ;;
19981   *) # from 4.6 on, and DragonFly
19982     shlibpath_overrides_runpath=yes
19983     hardcode_into_libs=yes
19984     ;;
19985   esac
19986   ;;
19987
19988 gnu*)
19989   version_type=linux
19990   need_lib_prefix=no
19991   need_version=no
19992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19993   soname_spec='${libname}${release}${shared_ext}$major'
19994   shlibpath_var=LD_LIBRARY_PATH
19995   hardcode_into_libs=yes
19996   ;;
19997
19998 haiku*)
19999   version_type=linux
20000   need_lib_prefix=no
20001   need_version=no
20002   dynamic_linker="$host_os runtime_loader"
20003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20004   soname_spec='${libname}${release}${shared_ext}$major'
20005   shlibpath_var=LIBRARY_PATH
20006   shlibpath_overrides_runpath=yes
20007   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20008   hardcode_into_libs=yes
20009   ;;
20010
20011 hpux9* | hpux10* | hpux11*)
20012   # Give a soname corresponding to the major version so that dld.sl refuses to
20013   # link against other versions.
20014   version_type=sunos
20015   need_lib_prefix=no
20016   need_version=no
20017   case $host_cpu in
20018   ia64*)
20019     shrext_cmds='.so'
20020     hardcode_into_libs=yes
20021     dynamic_linker="$host_os dld.so"
20022     shlibpath_var=LD_LIBRARY_PATH
20023     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20025     soname_spec='${libname}${release}${shared_ext}$major'
20026     if test "X$HPUX_IA64_MODE" = X32; then
20027       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20028     else
20029       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20030     fi
20031     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20032     ;;
20033   hppa*64*)
20034     shrext_cmds='.sl'
20035     hardcode_into_libs=yes
20036     dynamic_linker="$host_os dld.sl"
20037     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20038     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20040     soname_spec='${libname}${release}${shared_ext}$major'
20041     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20042     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20043     ;;
20044   *)
20045     shrext_cmds='.sl'
20046     dynamic_linker="$host_os dld.sl"
20047     shlibpath_var=SHLIB_PATH
20048     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20050     soname_spec='${libname}${release}${shared_ext}$major'
20051     ;;
20052   esac
20053   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20054   postinstall_cmds='chmod 555 $lib'
20055   # or fails outright, so override atomically:
20056   install_override_mode=555
20057   ;;
20058
20059 interix[3-9]*)
20060   version_type=linux
20061   need_lib_prefix=no
20062   need_version=no
20063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20064   soname_spec='${libname}${release}${shared_ext}$major'
20065   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20066   shlibpath_var=LD_LIBRARY_PATH
20067   shlibpath_overrides_runpath=no
20068   hardcode_into_libs=yes
20069   ;;
20070
20071 irix5* | irix6* | nonstopux*)
20072   case $host_os in
20073     nonstopux*) version_type=nonstopux ;;
20074     *)
20075         if test "$lt_cv_prog_gnu_ld" = yes; then
20076                 version_type=linux
20077         else
20078                 version_type=irix
20079         fi ;;
20080   esac
20081   need_lib_prefix=no
20082   need_version=no
20083   soname_spec='${libname}${release}${shared_ext}$major'
20084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20085   case $host_os in
20086   irix5* | nonstopux*)
20087     libsuff= shlibsuff=
20088     ;;
20089   *)
20090     case $LD in # libtool.m4 will add one of these switches to LD
20091     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20092       libsuff= shlibsuff= libmagic=32-bit;;
20093     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20094       libsuff=32 shlibsuff=N32 libmagic=N32;;
20095     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20096       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20097     *) libsuff= shlibsuff= libmagic=never-match;;
20098     esac
20099     ;;
20100   esac
20101   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20102   shlibpath_overrides_runpath=no
20103   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20104   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20105   hardcode_into_libs=yes
20106   ;;
20107
20108 # No shared lib support for Linux oldld, aout, or coff.
20109 linux*oldld* | linux*aout* | linux*coff*)
20110   dynamic_linker=no
20111   ;;
20112
20113 # This must be Linux ELF.
20114 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20115   version_type=linux
20116   need_lib_prefix=no
20117   need_version=no
20118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20119   soname_spec='${libname}${release}${shared_ext}$major'
20120   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20121   shlibpath_var=LD_LIBRARY_PATH
20122   shlibpath_overrides_runpath=no
20123
20124   # Some binutils ld are patched to set DT_RUNPATH
20125   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20126   $as_echo_n "(cached) " >&6
20127 else
20128   lt_cv_shlibpath_overrides_runpath=no
20129     save_LDFLAGS=$LDFLAGS
20130     save_libdir=$libdir
20131     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20132          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h.  */
20135
20136 int
20137 main ()
20138 {
20139
20140   ;
20141   return 0;
20142 }
20143 _ACEOF
20144 if ac_fn_cxx_try_link "$LINENO"; then :
20145   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20146   lt_cv_shlibpath_overrides_runpath=yes
20147 fi
20148 fi
20149 rm -f core conftest.err conftest.$ac_objext \
20150     conftest$ac_exeext conftest.$ac_ext
20151     LDFLAGS=$save_LDFLAGS
20152     libdir=$save_libdir
20153
20154 fi
20155
20156   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20157
20158   # This implies no fast_install, which is unacceptable.
20159   # Some rework will be needed to allow for fast_install
20160   # before this can be enabled.
20161   hardcode_into_libs=yes
20162
20163   # Append ld.so.conf contents to the search path
20164   if test -f /etc/ld.so.conf; then
20165     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' ' '`
20166     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20167   fi
20168
20169   # We used to test for /lib/ld.so.1 and disable shared libraries on
20170   # powerpc, because MkLinux only supported shared libraries with the
20171   # GNU dynamic linker.  Since this was broken with cross compilers,
20172   # most powerpc-linux boxes support dynamic linking these days and
20173   # people can always --disable-shared, the test was removed, and we
20174   # assume the GNU/Linux dynamic linker is in use.
20175   dynamic_linker='GNU/Linux ld.so'
20176   ;;
20177
20178 netbsd*)
20179   version_type=sunos
20180   need_lib_prefix=no
20181   need_version=no
20182   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20184     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20185     dynamic_linker='NetBSD (a.out) ld.so'
20186   else
20187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20188     soname_spec='${libname}${release}${shared_ext}$major'
20189     dynamic_linker='NetBSD ld.elf_so'
20190   fi
20191   shlibpath_var=LD_LIBRARY_PATH
20192   shlibpath_overrides_runpath=yes
20193   hardcode_into_libs=yes
20194   ;;
20195
20196 newsos6)
20197   version_type=linux
20198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199   shlibpath_var=LD_LIBRARY_PATH
20200   shlibpath_overrides_runpath=yes
20201   ;;
20202
20203 *nto* | *qnx*)
20204   version_type=qnx
20205   need_lib_prefix=no
20206   need_version=no
20207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20208   soname_spec='${libname}${release}${shared_ext}$major'
20209   shlibpath_var=LD_LIBRARY_PATH
20210   shlibpath_overrides_runpath=no
20211   hardcode_into_libs=yes
20212   dynamic_linker='ldqnx.so'
20213   ;;
20214
20215 openbsd*)
20216   version_type=sunos
20217   sys_lib_dlsearch_path_spec="/usr/lib"
20218   need_lib_prefix=no
20219   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20220   case $host_os in
20221     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20222     *)                          need_version=no  ;;
20223   esac
20224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20225   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20226   shlibpath_var=LD_LIBRARY_PATH
20227   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20228     case $host_os in
20229       openbsd2.[89] | openbsd2.[89].*)
20230         shlibpath_overrides_runpath=no
20231         ;;
20232       *)
20233         shlibpath_overrides_runpath=yes
20234         ;;
20235       esac
20236   else
20237     shlibpath_overrides_runpath=yes
20238   fi
20239   ;;
20240
20241 os2*)
20242   libname_spec='$name'
20243   shrext_cmds=".dll"
20244   need_lib_prefix=no
20245   library_names_spec='$libname${shared_ext} $libname.a'
20246   dynamic_linker='OS/2 ld.exe'
20247   shlibpath_var=LIBPATH
20248   ;;
20249
20250 osf3* | osf4* | osf5*)
20251   version_type=osf
20252   need_lib_prefix=no
20253   need_version=no
20254   soname_spec='${libname}${release}${shared_ext}$major'
20255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20256   shlibpath_var=LD_LIBRARY_PATH
20257   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20258   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20259   ;;
20260
20261 rdos*)
20262   dynamic_linker=no
20263   ;;
20264
20265 solaris*)
20266   version_type=linux
20267   need_lib_prefix=no
20268   need_version=no
20269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270   soname_spec='${libname}${release}${shared_ext}$major'
20271   shlibpath_var=LD_LIBRARY_PATH
20272   shlibpath_overrides_runpath=yes
20273   hardcode_into_libs=yes
20274   # ldd complains unless libraries are executable
20275   postinstall_cmds='chmod +x $lib'
20276   ;;
20277
20278 sunos4*)
20279   version_type=sunos
20280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20281   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20282   shlibpath_var=LD_LIBRARY_PATH
20283   shlibpath_overrides_runpath=yes
20284   if test "$with_gnu_ld" = yes; then
20285     need_lib_prefix=no
20286   fi
20287   need_version=yes
20288   ;;
20289
20290 sysv4 | sysv4.3*)
20291   version_type=linux
20292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20293   soname_spec='${libname}${release}${shared_ext}$major'
20294   shlibpath_var=LD_LIBRARY_PATH
20295   case $host_vendor in
20296     sni)
20297       shlibpath_overrides_runpath=no
20298       need_lib_prefix=no
20299       runpath_var=LD_RUN_PATH
20300       ;;
20301     siemens)
20302       need_lib_prefix=no
20303       ;;
20304     motorola)
20305       need_lib_prefix=no
20306       need_version=no
20307       shlibpath_overrides_runpath=no
20308       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20309       ;;
20310   esac
20311   ;;
20312
20313 sysv4*MP*)
20314   if test -d /usr/nec ;then
20315     version_type=linux
20316     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20317     soname_spec='$libname${shared_ext}.$major'
20318     shlibpath_var=LD_LIBRARY_PATH
20319   fi
20320   ;;
20321
20322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20323   version_type=freebsd-elf
20324   need_lib_prefix=no
20325   need_version=no
20326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20327   soname_spec='${libname}${release}${shared_ext}$major'
20328   shlibpath_var=LD_LIBRARY_PATH
20329   shlibpath_overrides_runpath=yes
20330   hardcode_into_libs=yes
20331   if test "$with_gnu_ld" = yes; then
20332     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20333   else
20334     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20335     case $host_os in
20336       sco3.2v5*)
20337         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20338         ;;
20339     esac
20340   fi
20341   sys_lib_dlsearch_path_spec='/usr/lib'
20342   ;;
20343
20344 tpf*)
20345   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20346   version_type=linux
20347   need_lib_prefix=no
20348   need_version=no
20349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20350   shlibpath_var=LD_LIBRARY_PATH
20351   shlibpath_overrides_runpath=no
20352   hardcode_into_libs=yes
20353   ;;
20354
20355 uts4*)
20356   version_type=linux
20357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358   soname_spec='${libname}${release}${shared_ext}$major'
20359   shlibpath_var=LD_LIBRARY_PATH
20360   ;;
20361
20362 *)
20363   dynamic_linker=no
20364   ;;
20365 esac
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20367 $as_echo "$dynamic_linker" >&6; }
20368 test "$dynamic_linker" = no && can_build_shared=no
20369
20370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20371 if test "$GCC" = yes; then
20372   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20373 fi
20374
20375 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20376   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20377 fi
20378 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20379   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20380 fi
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20420 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20421 hardcode_action_CXX=
20422 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20423    test -n "$runpath_var_CXX" ||
20424    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20425
20426   # We can hardcode non-existent directories.
20427   if test "$hardcode_direct_CXX" != no &&
20428      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20429      # have to relink, otherwise we might link with an installed library
20430      # when we should be linking with a yet-to-be-installed one
20431      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20432      test "$hardcode_minus_L_CXX" != no; then
20433     # Linking always hardcodes the temporary library directory.
20434     hardcode_action_CXX=relink
20435   else
20436     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20437     hardcode_action_CXX=immediate
20438   fi
20439 else
20440   # We cannot hardcode anything, or else we can only hardcode existing
20441   # directories.
20442   hardcode_action_CXX=unsupported
20443 fi
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20445 $as_echo "$hardcode_action_CXX" >&6; }
20446
20447 if test "$hardcode_action_CXX" = relink ||
20448    test "$inherit_rpath_CXX" = yes; then
20449   # Fast installation is not supported
20450   enable_fast_install=no
20451 elif test "$shlibpath_overrides_runpath" = yes ||
20452      test "$enable_shared" = no; then
20453   # Fast installation is not necessary
20454   enable_fast_install=needless
20455 fi
20456
20457
20458
20459
20460
20461
20462
20463   fi # test -n "$compiler"
20464
20465   CC=$lt_save_CC
20466   LDCXX=$LD
20467   LD=$lt_save_LD
20468   GCC=$lt_save_GCC
20469   with_gnu_ld=$lt_save_with_gnu_ld
20470   lt_cv_path_LDCXX=$lt_cv_path_LD
20471   lt_cv_path_LD=$lt_save_path_LD
20472   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20473   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20474 fi # test "$_lt_caught_CXX_error" != yes
20475
20476 ac_ext=c
20477 ac_cpp='$CPP $CPPFLAGS'
20478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497 # Only expand once:
20498
20499
20500
20501
20502
20503 # Identify the assembler which will work hand-in-glove with the newly
20504 # built GCC, so that we can examine its features.  This is the assembler
20505 # which will be driven by the driver program.
20506 #
20507 # If build != host, and we aren't building gas in-tree, we identify a
20508 # build->target assembler and hope that it will have the same features
20509 # as the host->target assembler we'll be using.
20510 gcc_cv_gas_major_version=
20511 gcc_cv_gas_minor_version=
20512 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20513
20514 if test "${gcc_cv_as+set}" = set; then :
20515
20516 else
20517
20518 if test -x "$DEFAULT_ASSEMBLER"; then
20519         gcc_cv_as="$DEFAULT_ASSEMBLER"
20520 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20521      && test -f ../gas/Makefile \
20522      && test x$build = x$host; then
20523         gcc_cv_as=../gas/as-new$build_exeext
20524 elif test -x as$build_exeext; then
20525         # Build using assembler in the current directory.
20526         gcc_cv_as=./as$build_exeext
20527 elif test -x $AS_FOR_TARGET; then
20528         gcc_cv_as="$AS_FOR_TARGET"
20529 else
20530         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20531 set dummy $AS_FOR_TARGET; ac_word=$2
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20533 $as_echo_n "checking for $ac_word... " >&6; }
20534 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20535   $as_echo_n "(cached) " >&6
20536 else
20537   case $gcc_cv_as in
20538   [\\/]* | ?:[\\/]*)
20539   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20540   ;;
20541   *)
20542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20543 for as_dir in $PATH
20544 do
20545   IFS=$as_save_IFS
20546   test -z "$as_dir" && as_dir=.
20547     for ac_exec_ext in '' $ac_executable_extensions; do
20548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20549     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20551     break 2
20552   fi
20553 done
20554   done
20555 IFS=$as_save_IFS
20556
20557   ;;
20558 esac
20559 fi
20560 gcc_cv_as=$ac_cv_path_gcc_cv_as
20561 if test -n "$gcc_cv_as"; then
20562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20563 $as_echo "$gcc_cv_as" >&6; }
20564 else
20565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20566 $as_echo "no" >&6; }
20567 fi
20568
20569
20570 fi
20571 fi
20572
20573 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20574
20575 case "$ORIGINAL_AS_FOR_TARGET" in
20576   ./as | ./as$build_exeext) ;;
20577   *) ac_config_files="$ac_config_files as:exec-tool.in"
20578  ;;
20579 esac
20580
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20582 $as_echo_n "checking what assembler to use... " >&6; }
20583 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20584   # Single tree build which includes gas.  We want to prefer it
20585   # over whatever linker top-level may have detected, since
20586   # we'll use what we're building after installation anyway.
20587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20588 $as_echo "newly built gas" >&6; }
20589   in_tree_gas=yes
20590   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20591 for f in $gcc_cv_as_bfd_srcdir/configure \
20592          $gcc_cv_as_gas_srcdir/configure \
20593          $gcc_cv_as_gas_srcdir/configure.in \
20594          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20595   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20596   if test x$gcc_cv_gas_version != x; then
20597     break
20598   fi
20599 done
20600 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20601 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20602 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20603 case $gcc_cv_gas_patch_version in
20604   "") gcc_cv_gas_patch_version="0" ;;
20605 esac
20606 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20607                             + $gcc_cv_gas_minor_version \) \* 1000 \
20608                             + $gcc_cv_gas_patch_version`
20609
20610   in_tree_gas_is_elf=no
20611   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20612      || (grep 'obj_format = multi' ../gas/Makefile \
20613          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20614   then
20615     in_tree_gas_is_elf=yes
20616   fi
20617 else
20618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20619 $as_echo "$gcc_cv_as" >&6; }
20620   in_tree_gas=no
20621 fi
20622
20623 # Identify the linker which will work hand-in-glove with the newly
20624 # built GCC, so that we can examine its features.  This is the linker
20625 # which will be driven by the driver program.
20626 #
20627 # If build != host, and we aren't building gas in-tree, we identify a
20628 # build->target linker and hope that it will have the same features
20629 # as the host->target linker we'll be using.
20630 gcc_cv_gld_major_version=
20631 gcc_cv_gld_minor_version=
20632 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20633 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20634
20635 if test "${gcc_cv_ld+set}" = set; then :
20636
20637 else
20638
20639 if test -x "$DEFAULT_LINKER"; then
20640         gcc_cv_ld="$DEFAULT_LINKER"
20641 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20642      && test -f ../ld/Makefile \
20643      && test x$build = x$host; then
20644         gcc_cv_ld=../ld/ld-new$build_exeext
20645 elif test -x collect-ld$build_exeext; then
20646         # Build using linker in the current directory.
20647         gcc_cv_ld=./collect-ld$build_exeext
20648 elif test -x $LD_FOR_TARGET; then
20649         gcc_cv_ld="$LD_FOR_TARGET"
20650 else
20651         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20652 set dummy $LD_FOR_TARGET; ac_word=$2
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20654 $as_echo_n "checking for $ac_word... " >&6; }
20655 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20656   $as_echo_n "(cached) " >&6
20657 else
20658   case $gcc_cv_ld in
20659   [\\/]* | ?:[\\/]*)
20660   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20661   ;;
20662   *)
20663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20664 for as_dir in $PATH
20665 do
20666   IFS=$as_save_IFS
20667   test -z "$as_dir" && as_dir=.
20668     for ac_exec_ext in '' $ac_executable_extensions; do
20669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20670     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20672     break 2
20673   fi
20674 done
20675   done
20676 IFS=$as_save_IFS
20677
20678   ;;
20679 esac
20680 fi
20681 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20682 if test -n "$gcc_cv_ld"; then
20683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20684 $as_echo "$gcc_cv_ld" >&6; }
20685 else
20686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20687 $as_echo "no" >&6; }
20688 fi
20689
20690
20691 fi
20692 fi
20693
20694 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20695 PLUGIN_LD=`basename $gcc_cv_ld`
20696
20697 # Check whether --with-plugin-ld was given.
20698 if test "${with_plugin_ld+set}" = set; then :
20699   withval=$with_plugin_ld; if test x"$withval" != x; then
20700    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20701    PLUGIN_LD="$withval"
20702  fi
20703 fi
20704
20705
20706
20707 cat >>confdefs.h <<_ACEOF
20708 #define PLUGIN_LD "$PLUGIN_LD"
20709 _ACEOF
20710
20711
20712 # Check to see if we are using gold instead of ld
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20714 $as_echo_n "checking whether we are using gold... " >&6; }
20715 ld_is_gold=no
20716 if test x$gcc_cv_ld != x; then
20717   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20718      | grep "GNU gold" > /dev/null; then
20719     ld_is_gold=yes
20720   fi
20721 fi
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20723 $as_echo "$ld_is_gold" >&6; }
20724
20725 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20726
20727 case "$ORIGINAL_LD_FOR_TARGET" in
20728   ./collect-ld | ./collect-ld$build_exeext) ;;
20729   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20730  ;;
20731 esac
20732
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20734 $as_echo_n "checking what linker to use... " >&6; }
20735 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20736         # Single tree build which includes ld.  We want to prefer it
20737         # over whatever linker top-level may have detected, since
20738         # we'll use what we're building after installation anyway.
20739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20740 $as_echo "newly built ld" >&6; }
20741         in_tree_ld=yes
20742         in_tree_ld_is_elf=no
20743         if (grep 'EMUL = .*elf' ../ld/Makefile \
20744             || grep 'EMUL = .*linux' ../ld/Makefile \
20745             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20746           in_tree_ld_is_elf=yes
20747         fi
20748         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
20749         do
20750                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20751                 if test x$gcc_cv_gld_version != x; then
20752                         break
20753                 fi
20754         done
20755         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20756         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20757 else
20758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20759 $as_echo "$gcc_cv_ld" >&6; }
20760         in_tree_ld=no
20761 fi
20762
20763 # Figure out what nm we will be using.
20764 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20765 if test "${gcc_cv_nm+set}" = set; then :
20766
20767 else
20768
20769 if test -f $gcc_cv_binutils_srcdir/configure.in \
20770      && test -f ../binutils/Makefile \
20771      && test x$build = x$host; then
20772         gcc_cv_nm=../binutils/nm-new$build_exeext
20773 elif test -x nm$build_exeext; then
20774         gcc_cv_nm=./nm$build_exeext
20775 elif test -x $NM_FOR_TARGET; then
20776         gcc_cv_nm="$NM_FOR_TARGET"
20777 else
20778         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20779 set dummy $NM_FOR_TARGET; ac_word=$2
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20781 $as_echo_n "checking for $ac_word... " >&6; }
20782 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20783   $as_echo_n "(cached) " >&6
20784 else
20785   case $gcc_cv_nm in
20786   [\\/]* | ?:[\\/]*)
20787   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20788   ;;
20789   *)
20790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20791 for as_dir in $PATH
20792 do
20793   IFS=$as_save_IFS
20794   test -z "$as_dir" && as_dir=.
20795     for ac_exec_ext in '' $ac_executable_extensions; do
20796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20797     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20799     break 2
20800   fi
20801 done
20802   done
20803 IFS=$as_save_IFS
20804
20805   ;;
20806 esac
20807 fi
20808 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20809 if test -n "$gcc_cv_nm"; then
20810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20811 $as_echo "$gcc_cv_nm" >&6; }
20812 else
20813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20814 $as_echo "no" >&6; }
20815 fi
20816
20817
20818 fi
20819 fi
20820
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20822 $as_echo_n "checking what nm to use... " >&6; }
20823 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20824         # Single tree build which includes binutils.
20825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20826 $as_echo "newly built nm" >&6; }
20827         in_tree_nm=yes
20828 else
20829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20830 $as_echo "$gcc_cv_nm" >&6; }
20831         in_tree_nm=no
20832 fi
20833
20834 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20835
20836 case "$ORIGINAL_NM_FOR_TARGET" in
20837   ./nm | ./nm$build_exeext) ;;
20838   *) ac_config_files="$ac_config_files nm:exec-tool.in"
20839  ;;
20840 esac
20841
20842
20843 # Figure out what objdump we will be using.
20844 if test "${gcc_cv_objdump+set}" = set; then :
20845
20846 else
20847
20848 if test -f $gcc_cv_binutils_srcdir/configure.in \
20849      && test -f ../binutils/Makefile \
20850      && test x$build = x$host; then
20851         # Single tree build which includes binutils.
20852         gcc_cv_objdump=../binutils/objdump$build_exeext
20853 elif test -x objdump$build_exeext; then
20854         gcc_cv_objdump=./objdump$build_exeext
20855 elif test -x $OBJDUMP_FOR_TARGET; then
20856         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20857 else
20858         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20859 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20861 $as_echo_n "checking for $ac_word... " >&6; }
20862 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20863   $as_echo_n "(cached) " >&6
20864 else
20865   case $gcc_cv_objdump in
20866   [\\/]* | ?:[\\/]*)
20867   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20868   ;;
20869   *)
20870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20871 for as_dir in $PATH
20872 do
20873   IFS=$as_save_IFS
20874   test -z "$as_dir" && as_dir=.
20875     for ac_exec_ext in '' $ac_executable_extensions; do
20876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20877     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20879     break 2
20880   fi
20881 done
20882   done
20883 IFS=$as_save_IFS
20884
20885   ;;
20886 esac
20887 fi
20888 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20889 if test -n "$gcc_cv_objdump"; then
20890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20891 $as_echo "$gcc_cv_objdump" >&6; }
20892 else
20893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20894 $as_echo "no" >&6; }
20895 fi
20896
20897
20898 fi
20899 fi
20900
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20902 $as_echo_n "checking what objdump to use... " >&6; }
20903 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20904         # Single tree build which includes binutils.
20905         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20906 $as_echo "newly built objdump" >&6; }
20907 elif test x$gcc_cv_objdump = x; then
20908         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20909 $as_echo "not found" >&6; }
20910 else
20911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20912 $as_echo "$gcc_cv_objdump" >&6; }
20913 fi
20914
20915 # Figure out what readelf we will be using.
20916 if test "${gcc_cv_readelf+set}" = set; then :
20917
20918 else
20919
20920 if test -f $gcc_cv_binutils_srcdir/configure.in \
20921      && test -f ../binutils/Makefile \
20922      && test x$build = x$host; then
20923         # Single tree build which includes binutils.
20924         gcc_cv_readelf=../binutils/readelf$build_exeext
20925 elif test -x readelf$build_exeext; then
20926         gcc_cv_readelf=./readelf$build_exeext
20927 else
20928         # Extract the first word of "readelf", so it can be a program name with args.
20929 set dummy readelf; ac_word=$2
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20931 $as_echo_n "checking for $ac_word... " >&6; }
20932 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20933   $as_echo_n "(cached) " >&6
20934 else
20935   case $gcc_cv_readelf in
20936   [\\/]* | ?:[\\/]*)
20937   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20938   ;;
20939   *)
20940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20941 for as_dir in $PATH
20942 do
20943   IFS=$as_save_IFS
20944   test -z "$as_dir" && as_dir=.
20945     for ac_exec_ext in '' $ac_executable_extensions; do
20946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20947     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20949     break 2
20950   fi
20951 done
20952   done
20953 IFS=$as_save_IFS
20954
20955   ;;
20956 esac
20957 fi
20958 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20959 if test -n "$gcc_cv_readelf"; then
20960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20961 $as_echo "$gcc_cv_readelf" >&6; }
20962 else
20963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20964 $as_echo "no" >&6; }
20965 fi
20966
20967
20968 fi
20969 fi
20970
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20972 $as_echo_n "checking what readelf to use... " >&6; }
20973 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20974         # Single tree build which includes binutils.
20975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20976 $as_echo "newly built readelf" >&6; }
20977 elif test x$gcc_cv_readelf = x; then
20978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20979 $as_echo "not found" >&6; }
20980 else
20981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20982 $as_echo "$gcc_cv_readelf" >&6; }
20983 fi
20984
20985 # Figure out what assembler alignment features are present.
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20987 $as_echo_n "checking assembler flags... " >&6; }
20988 if test "${gcc_cv_as_flags+set}" = set; then :
20989   $as_echo_n "(cached) " >&6
20990 else
20991    case "$target" in
20992   i[34567]86-*-linux*)
20993         gcc_cv_as_flags="--32"
20994     ;;
20995   *)
20996     gcc_cv_as_flags=" "
20997     ;;
20998   esac
20999 fi
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21001 $as_echo "$gcc_cv_as_flags" >&6; }
21002
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21004 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21005 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21006   $as_echo_n "(cached) " >&6
21007 else
21008   gcc_cv_as_balign_and_p2align=no
21009     if test $in_tree_gas = yes; then
21010     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21011   then gcc_cv_as_balign_and_p2align=yes
21012 fi
21013   elif test x$gcc_cv_as != x; then
21014     echo '.balign 4
21015 .p2align 2' > conftest.s
21016     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21017   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21018   (eval $ac_try) 2>&5
21019   ac_status=$?
21020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21021   test $ac_status = 0; }; }
21022     then
21023         gcc_cv_as_balign_and_p2align=yes
21024     else
21025       echo "configure: failed program was" >&5
21026       cat conftest.s >&5
21027     fi
21028     rm -f conftest.o conftest.s
21029   fi
21030 fi
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21032 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21033 if test $gcc_cv_as_balign_and_p2align = yes; then
21034
21035 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21036
21037 fi
21038
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21040 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21041 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21042   $as_echo_n "(cached) " >&6
21043 else
21044   gcc_cv_as_max_skip_p2align=no
21045     if test $in_tree_gas = yes; then
21046     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21047   then gcc_cv_as_max_skip_p2align=yes
21048 fi
21049   elif test x$gcc_cv_as != x; then
21050     echo '.p2align 4,,7' > conftest.s
21051     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21052   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21053   (eval $ac_try) 2>&5
21054   ac_status=$?
21055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21056   test $ac_status = 0; }; }
21057     then
21058         gcc_cv_as_max_skip_p2align=yes
21059     else
21060       echo "configure: failed program was" >&5
21061       cat conftest.s >&5
21062     fi
21063     rm -f conftest.o conftest.s
21064   fi
21065 fi
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21067 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21068 if test $gcc_cv_as_max_skip_p2align = yes; then
21069
21070 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21071
21072 fi
21073
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21075 $as_echo_n "checking assembler for .literal16... " >&6; }
21076 if test "${gcc_cv_as_literal16+set}" = set; then :
21077   $as_echo_n "(cached) " >&6
21078 else
21079   gcc_cv_as_literal16=no
21080     if test $in_tree_gas = yes; then
21081     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21082   then gcc_cv_as_literal16=yes
21083 fi
21084   elif test x$gcc_cv_as != x; then
21085     echo '.literal16' > conftest.s
21086     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21087   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21088   (eval $ac_try) 2>&5
21089   ac_status=$?
21090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21091   test $ac_status = 0; }; }
21092     then
21093         gcc_cv_as_literal16=yes
21094     else
21095       echo "configure: failed program was" >&5
21096       cat conftest.s >&5
21097     fi
21098     rm -f conftest.o conftest.s
21099   fi
21100 fi
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21102 $as_echo "$gcc_cv_as_literal16" >&6; }
21103 if test $gcc_cv_as_literal16 = yes; then
21104
21105 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21106
21107 fi
21108
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21110 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21111 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21112   $as_echo_n "(cached) " >&6
21113 else
21114   gcc_cv_as_subsection_m1=no
21115     if test $in_tree_gas = yes; then
21116     if test $in_tree_gas_is_elf = yes \
21117   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21118   then gcc_cv_as_subsection_m1=yes
21119 fi
21120   elif test x$gcc_cv_as != x; then
21121     echo 'conftest_label1: .word 0
21122 .subsection -1
21123 conftest_label2: .word 0
21124 .previous' > conftest.s
21125     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21126   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21127   (eval $ac_try) 2>&5
21128   ac_status=$?
21129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21130   test $ac_status = 0; }; }
21131     then
21132         if test x$gcc_cv_nm != x; then
21133     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21134     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21135     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21136     then :
21137     else gcc_cv_as_subsection_m1=yes
21138     fi
21139     rm -f conftest.nm1 conftest.nm2
21140   fi
21141     else
21142       echo "configure: failed program was" >&5
21143       cat conftest.s >&5
21144     fi
21145     rm -f conftest.o conftest.s
21146   fi
21147 fi
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21149 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21150 if test $gcc_cv_as_subsection_m1 = yes; then
21151
21152 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21153
21154 fi
21155
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21157 $as_echo_n "checking assembler for .weak... " >&6; }
21158 if test "${gcc_cv_as_weak+set}" = set; then :
21159   $as_echo_n "(cached) " >&6
21160 else
21161   gcc_cv_as_weak=no
21162     if test $in_tree_gas = yes; then
21163     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21164   then gcc_cv_as_weak=yes
21165 fi
21166   elif test x$gcc_cv_as != x; then
21167     echo '      .weak foobar' > conftest.s
21168     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21169   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21170   (eval $ac_try) 2>&5
21171   ac_status=$?
21172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21173   test $ac_status = 0; }; }
21174     then
21175         gcc_cv_as_weak=yes
21176     else
21177       echo "configure: failed program was" >&5
21178       cat conftest.s >&5
21179     fi
21180     rm -f conftest.o conftest.s
21181   fi
21182 fi
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21184 $as_echo "$gcc_cv_as_weak" >&6; }
21185 if test $gcc_cv_as_weak = yes; then
21186
21187 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21188
21189 fi
21190
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21192 $as_echo_n "checking assembler for .weakref... " >&6; }
21193 if test "${gcc_cv_as_weakref+set}" = set; then :
21194   $as_echo_n "(cached) " >&6
21195 else
21196   gcc_cv_as_weakref=no
21197     if test $in_tree_gas = yes; then
21198     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21199   then gcc_cv_as_weakref=yes
21200 fi
21201   elif test x$gcc_cv_as != x; then
21202     echo '      .weakref foobar, barfnot' > conftest.s
21203     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21204   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21205   (eval $ac_try) 2>&5
21206   ac_status=$?
21207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21208   test $ac_status = 0; }; }
21209     then
21210         gcc_cv_as_weakref=yes
21211     else
21212       echo "configure: failed program was" >&5
21213       cat conftest.s >&5
21214     fi
21215     rm -f conftest.o conftest.s
21216   fi
21217 fi
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21219 $as_echo "$gcc_cv_as_weakref" >&6; }
21220 if test $gcc_cv_as_weakref = yes; then
21221
21222 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21223
21224 fi
21225
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21227 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21228 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21229   $as_echo_n "(cached) " >&6
21230 else
21231   gcc_cv_as_nsubspa_comdat=no
21232     if test $in_tree_gas = yes; then
21233     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21234   then gcc_cv_as_nsubspa_comdat=yes
21235 fi
21236   elif test x$gcc_cv_as != x; then
21237     echo '      .SPACE $TEXT$
21238         .NSUBSPA $CODE$,COMDAT' > conftest.s
21239     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21240   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21241   (eval $ac_try) 2>&5
21242   ac_status=$?
21243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21244   test $ac_status = 0; }; }
21245     then
21246         gcc_cv_as_nsubspa_comdat=yes
21247     else
21248       echo "configure: failed program was" >&5
21249       cat conftest.s >&5
21250     fi
21251     rm -f conftest.o conftest.s
21252   fi
21253 fi
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21255 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21256 if test $gcc_cv_as_nsubspa_comdat = yes; then
21257
21258 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21259
21260 fi
21261
21262 # .hidden needs to be supported in both the assembler and the linker,
21263 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21264 # This is irritatingly difficult to feature test for; we have to check the
21265 # date string after the version number.  If we've got an in-tree
21266 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21267 # to be safe.
21268 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21270 $as_echo_n "checking assembler for .hidden... " >&6; }
21271 if test "${gcc_cv_as_hidden+set}" = set; then :
21272   $as_echo_n "(cached) " >&6
21273 else
21274   gcc_cv_as_hidden=no
21275     if test $in_tree_gas = yes; then
21276     if test $in_tree_gas_is_elf = yes \
21277   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21278   then gcc_cv_as_hidden=yes
21279 fi
21280   elif test x$gcc_cv_as != x; then
21281     echo '      .hidden foobar
21282 foobar:' > conftest.s
21283     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21284   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21285   (eval $ac_try) 2>&5
21286   ac_status=$?
21287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21288   test $ac_status = 0; }; }
21289     then
21290
21291 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21292 # STV_HIDDEN, so disable .hidden support if so.
21293 case "${target}" in
21294   i?86-*-solaris2*)
21295     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21296       cat > conftest.s <<EOF
21297 .globl hidden
21298         .hidden hidden
21299 hidden:
21300 .globl default
21301         .set    default,hidden
21302 EOF
21303       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21304         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21305         grep '\.hidden default' > /dev/null; then
21306         gcc_cv_as_hidden=no
21307       else
21308         gcc_cv_as_hidden=yes
21309       fi
21310     else
21311       # Assume bug is present if objdump is missing.
21312       gcc_cv_as_hidden=no
21313     fi
21314     ;;
21315   *)
21316     gcc_cv_as_hidden=yes
21317     ;;
21318 esac
21319     else
21320       echo "configure: failed program was" >&5
21321       cat conftest.s >&5
21322     fi
21323     rm -f conftest.o conftest.s
21324   fi
21325 fi
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21327 $as_echo "$gcc_cv_as_hidden" >&6; }
21328
21329
21330 # gnu_indirect_function type is an extension proposed at
21331 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21332 # selection of function implementation
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_indirect_function" >&5
21334 $as_echo_n "checking assembler for gnu_indirect_function... " >&6; }
21335 if test "${gcc_cv_as_indirect_function+set}" = set; then :
21336   $as_echo_n "(cached) " >&6
21337 else
21338   gcc_cv_as_indirect_function=no
21339     if test $in_tree_gas = yes; then
21340     if test $in_tree_gas_is_elf = yes \
21341   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
21342   then gcc_cv_as_indirect_function=yes
21343 fi
21344   elif test x$gcc_cv_as != x; then
21345     echo '      .type  Foo, @gnu_indirect_function
21346 Foo:' > conftest.s
21347     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21348   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21349   (eval $ac_try) 2>&5
21350   ac_status=$?
21351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21352   test $ac_status = 0; }; }
21353     then
21354         gcc_cv_as_indirect_function=yes
21355     else
21356       echo "configure: failed program was" >&5
21357       cat conftest.s >&5
21358     fi
21359     rm -f conftest.o conftest.s
21360   fi
21361 fi
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_indirect_function" >&5
21363 $as_echo "$gcc_cv_as_indirect_function" >&6; }
21364
21365
21366 if test $gcc_cv_as_indirect_function = yes ; then
21367
21368 $as_echo "#define HAVE_GAS_INDIRECT_FUNCTION 1" >>confdefs.h
21369
21370 fi
21371
21372 if test $in_tree_ld != yes ; then
21373   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21374   if test x"$ld_is_gold" = xyes; then
21375     gcc_cv_ld_hidden=yes
21376   elif echo "$ld_ver" | grep GNU > /dev/null; then
21377     ld_vers=`echo $ld_ver | sed -n \
21378         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21379     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'`
21380     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21381     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21382     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21383   else
21384     case "${target}" in
21385       *-*-solaris2*)
21386         #
21387         # Solaris 2 ld -V output looks like this for a regular version:
21388         #
21389         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21390         #
21391         # but test versions add stuff at the end:
21392         #
21393         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21394         #
21395         ld_ver=`$gcc_cv_ld -V 2>&1`
21396         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21397           ld_vers=`echo $ld_ver | sed -n \
21398             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21399           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21400           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21401         fi
21402         ;;
21403     esac
21404   fi
21405 fi
21406
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21408 $as_echo_n "checking linker for .hidden support... " >&6; }
21409 if test "${gcc_cv_ld_hidden+set}" = set; then :
21410   $as_echo_n "(cached) " >&6
21411 else
21412   if test $in_tree_ld = yes ; then
21413   gcc_cv_ld_hidden=no
21414   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 \
21415      && test $in_tree_ld_is_elf = yes; then
21416      gcc_cv_ld_hidden=yes
21417   fi
21418 else
21419   gcc_cv_ld_hidden=yes
21420   if echo "$ld_ver" | grep GNU > /dev/null; then
21421     if test 0"$ld_date" -lt 20020404; then
21422       if test -n "$ld_date"; then
21423         # If there was date string, but was earlier than 2002-04-04, fail
21424         gcc_cv_ld_hidden=no
21425       elif test -z "$ld_vers"; then
21426         # If there was no date string nor ld version number, something is wrong
21427         gcc_cv_ld_hidden=no
21428       else
21429         test -z "$ld_vers_patch" && ld_vers_patch=0
21430         if test "$ld_vers_major" -lt 2; then
21431           gcc_cv_ld_hidden=no
21432         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21433           gcc_cv_ld_hidden="no"
21434         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21435           gcc_cv_ld_hidden=no
21436         fi
21437       fi
21438     fi
21439   else
21440     case "${target}" in
21441       hppa64*-*-hpux* | ia64*-*-hpux*)
21442         gcc_cv_ld_hidden=yes
21443         ;;
21444       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21445         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21446         # .symbolic was only added in Solaris 9 12/02.
21447         gcc_cv_ld_hidden=yes
21448         ;;
21449       *)
21450         gcc_cv_ld_hidden=no
21451         ;;
21452     esac
21453   fi
21454 fi
21455 fi
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21457 $as_echo "$gcc_cv_ld_hidden" >&6; }
21458 libgcc_visibility=no
21459
21460
21461 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21462   libgcc_visibility=yes
21463
21464 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21465
21466 fi
21467
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21469 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21470 gcc_cv_ld_ro_rw_mix=unknown
21471 if test $in_tree_ld = yes ; then
21472   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 \
21473      && test $in_tree_ld_is_elf = yes; then
21474     gcc_cv_ld_ro_rw_mix=read-write
21475   fi
21476 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21477   echo '.section myfoosect, "a"' > conftest1.s
21478   echo '.section myfoosect, "aw"' > conftest2.s
21479   echo '.byte 1' >> conftest2.s
21480   echo '.section myfoosect, "a"' > conftest3.s
21481   echo '.byte 0' >> conftest3.s
21482   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21483      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21484      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21485      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21486         conftest2.o conftest3.o > /dev/null 2>&1; then
21487     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21488                          | sed -e '/myfoosect/!d' -e N`
21489     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21490       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21491         gcc_cv_ld_ro_rw_mix=read-only
21492       else
21493         gcc_cv_ld_ro_rw_mix=read-write
21494       fi
21495     fi
21496   fi
21497   rm -f conftest.* conftest[123].*
21498 fi
21499 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21500
21501 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21502
21503 fi
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21505 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21506
21507 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21509 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21510 if test "${gcc_cv_as_leb128+set}" = set; then :
21511   $as_echo_n "(cached) " >&6
21512 else
21513   gcc_cv_as_leb128=no
21514     if test $in_tree_gas = yes; then
21515     if test $in_tree_gas_is_elf = yes \
21516   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21517   then gcc_cv_as_leb128=yes
21518 fi
21519   elif test x$gcc_cv_as != x; then
21520     echo '      .data
21521         .uleb128 L2 - L1
21522 L1:
21523         .uleb128 1280
21524         .sleb128 -1010
21525 L2:' > conftest.s
21526     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21527   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21528   (eval $ac_try) 2>&5
21529   ac_status=$?
21530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21531   test $ac_status = 0; }; }
21532     then
21533         # GAS versions before 2.11 do not support uleb128,
21534   # despite appearing to.
21535   # ??? There exists an elf-specific test that will crash
21536   # the assembler.  Perhaps it's better to figure out whether
21537   # arbitrary sections are supported and try the test.
21538   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21539   if echo "$as_ver" | grep GNU > /dev/null; then
21540     as_vers=`echo $as_ver | sed -n \
21541         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21542     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21543     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21544     if test $as_major -eq 2 && test $as_minor -lt 11
21545     then :
21546     else gcc_cv_as_leb128=yes
21547     fi
21548   fi
21549     else
21550       echo "configure: failed program was" >&5
21551       cat conftest.s >&5
21552     fi
21553     rm -f conftest.o conftest.s
21554   fi
21555 fi
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21557 $as_echo "$gcc_cv_as_leb128" >&6; }
21558 if test $gcc_cv_as_leb128 = yes; then
21559
21560 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21561
21562 fi
21563
21564 # Check if we have assembler support for unwind directives.
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21566 $as_echo_n "checking assembler for cfi directives... " >&6; }
21567 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21568   $as_echo_n "(cached) " >&6
21569 else
21570   gcc_cv_as_cfi_directive=no
21571   if test x$gcc_cv_as != x; then
21572     echo '      .text
21573         .cfi_startproc
21574         .cfi_offset 0, 0
21575         .cfi_same_value 1
21576         .cfi_def_cfa 1, 2
21577         .cfi_escape 1, 2, 3, 4, 5
21578         .cfi_endproc' > conftest.s
21579     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21580   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21581   (eval $ac_try) 2>&5
21582   ac_status=$?
21583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21584   test $ac_status = 0; }; }
21585     then
21586         case "$target" in
21587   *-*-solaris*)
21588     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21589     # read-only and read-write sections, we need to make sure that the
21590     # assembler used emits read-write .eh_frame sections.
21591     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21592       if test "x$gcc_cv_objdump" != x; then
21593         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21594                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21595           gcc_cv_as_cfi_directive=no
21596         else
21597           case "$target" in
21598             i?86-*-solaris2.1[0-9]*)
21599               # On Solaris/x86, make sure that GCC and gas agree on using
21600               # read-only .eh_frame sections for 64-bit.
21601               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21602                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21603                         sed -e /.eh_frame/!d -e N | \
21604                         grep READONLY > /dev/null; then
21605                 gcc_cv_as_cfi_directive=yes
21606               else
21607                 gcc_cv_as_cfi_directive=no
21608               fi
21609               ;;
21610             *)
21611               gcc_cv_as_cfi_directive=yes
21612               ;;
21613           esac
21614         fi
21615       else
21616         # no objdump, err on the side of caution
21617         gcc_cv_as_cfi_directive=no
21618       fi
21619     else
21620       gcc_cv_as_cfi_directive=yes
21621     fi
21622     ;;
21623   *-*-*)
21624     gcc_cv_as_cfi_directive=yes
21625     ;;
21626 esac
21627     else
21628       echo "configure: failed program was" >&5
21629       cat conftest.s >&5
21630     fi
21631     rm -f conftest.o conftest.s
21632   fi
21633 fi
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21635 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21636
21637 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21639 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21640 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21641   $as_echo_n "(cached) " >&6
21642 else
21643   gcc_cv_as_cfi_advance_working=no
21644   if test x$gcc_cv_as != x; then
21645     echo '      .text
21646         .cfi_startproc
21647         .cfi_adjust_cfa_offset 64
21648         .skip 75040, 0
21649         .cfi_adjust_cfa_offset 128
21650         .cfi_endproc' > conftest.s
21651     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21652   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21656   test $ac_status = 0; }; }
21657     then
21658
21659 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
21660     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
21661    gcc_cv_as_cfi_advance_working=yes
21662 fi
21663
21664     else
21665       echo "configure: failed program was" >&5
21666       cat conftest.s >&5
21667     fi
21668     rm -f conftest.o conftest.s
21669   fi
21670 fi
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21672 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21673
21674 else
21675   # no objdump, err on the side of caution
21676   gcc_cv_as_cfi_advance_working=no
21677 fi
21678
21679 cat >>confdefs.h <<_ACEOF
21680 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21681        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21682 _ACEOF
21683
21684
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21686 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21687 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21688   $as_echo_n "(cached) " >&6
21689 else
21690   gcc_cv_as_cfi_personality_directive=no
21691   if test x$gcc_cv_as != x; then
21692     echo '      .text
21693         .cfi_startproc
21694         .cfi_personality 0, symbol
21695         .cfi_endproc' > conftest.s
21696     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21697   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21698   (eval $ac_try) 2>&5
21699   ac_status=$?
21700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21701   test $ac_status = 0; }; }
21702     then
21703         gcc_cv_as_cfi_personality_directive=yes
21704     else
21705       echo "configure: failed program was" >&5
21706       cat conftest.s >&5
21707     fi
21708     rm -f conftest.o conftest.s
21709   fi
21710 fi
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21712 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21713
21714
21715 cat >>confdefs.h <<_ACEOF
21716 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21717     then echo 1; else echo 0; fi`
21718 _ACEOF
21719
21720
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21722 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21723 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21724   $as_echo_n "(cached) " >&6
21725 else
21726   gcc_cv_as_cfi_sections_directive=no
21727   if test x$gcc_cv_as != x; then
21728     echo '      .text
21729         .cfi_sections .debug_frame, .eh_frame
21730         .cfi_startproc
21731         .cfi_endproc' > conftest.s
21732     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21733   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21734   (eval $ac_try) 2>&5
21735   ac_status=$?
21736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21737   test $ac_status = 0; }; }
21738     then
21739         case $target_os in
21740   win32 | pe | cygwin* | mingw32* | uwin*)
21741     # Need to check that we generated the correct relocation for the
21742     # .debug_frame section.  This was fixed for binutils 2.21.
21743     gcc_cv_as_cfi_sections_directive=no
21744     if test "x$gcc_cv_objdump" != x; then
21745      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
21746         grep secrel > /dev/null; then
21747       gcc_cv_as_cfi_sections_directive=yes
21748      fi
21749     fi
21750     ;;
21751   *)
21752     gcc_cv_as_cfi_sections_directive=yes
21753     ;;
21754 esac
21755     else
21756       echo "configure: failed program was" >&5
21757       cat conftest.s >&5
21758     fi
21759     rm -f conftest.o conftest.s
21760   fi
21761 fi
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21763 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21764
21765
21766 cat >>confdefs.h <<_ACEOF
21767 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21768     then echo 1; else echo 0; fi`
21769 _ACEOF
21770
21771
21772 # GAS versions up to and including 2.11.0 may mis-optimize
21773 # .eh_frame data.
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21775 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21776 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21777   $as_echo_n "(cached) " >&6
21778 else
21779   gcc_cv_as_eh_frame=no
21780     if test $in_tree_gas = yes; then
21781     if test $in_tree_gas_is_elf = yes \
21782   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21783   then gcc_cv_as_eh_frame=yes
21784 fi
21785   elif test x$gcc_cv_as != x; then
21786     echo '      .text
21787 .LFB1:
21788         .4byte  0
21789 .L1:
21790         .4byte  0
21791 .LFE1:
21792         .section        .eh_frame,"aw",@progbits
21793 __FRAME_BEGIN__:
21794         .4byte  .LECIE1-.LSCIE1
21795 .LSCIE1:
21796         .4byte  0x0
21797         .byte   0x1
21798         .ascii "z\0"
21799         .byte   0x1
21800         .byte   0x78
21801         .byte   0x1a
21802         .byte   0x0
21803         .byte   0x4
21804         .4byte  1
21805         .p2align 1
21806 .LECIE1:
21807 .LSFDE1:
21808         .4byte  .LEFDE1-.LASFDE1
21809 .LASFDE1:
21810         .4byte  .LASFDE1-__FRAME_BEGIN__
21811         .4byte  .LFB1
21812         .4byte  .LFE1-.LFB1
21813         .byte   0x4
21814         .4byte  .LFE1-.LFB1
21815         .byte   0x4
21816         .4byte  .L1-.LFB1
21817 .LEFDE1:' > conftest.s
21818     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21819   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21820   (eval $ac_try) 2>&5
21821   ac_status=$?
21822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21823   test $ac_status = 0; }; }
21824     then
21825           cat > conftest.lit <<EOF
21826  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21827  0010 01000000 12000000 18000000 00000000  ................
21828  0020 08000000 04080000 0044               .........D      
21829 EOF
21830 cat > conftest.big <<EOF
21831  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21832  0010 00000001 00000012 00000018 00000000  ................
21833  0020 00000008 04000000 0844               .........D      
21834 EOF
21835   # If the assembler didn't choke, and we can objdump,
21836   # and we got the correct data, then succeed.
21837   # The text in the here-document typically retains its unix-style line
21838   # endings, while the output of objdump will use host line endings.
21839   # Therefore, use diff -b for the comparisons.
21840   if test x$gcc_cv_objdump != x \
21841   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21842      | tail -3 > conftest.got \
21843   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21844     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21845   then
21846     gcc_cv_as_eh_frame=yes
21847   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21848   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21849   (eval $ac_try) 2>&5
21850   ac_status=$?
21851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21852   test $ac_status = 0; }; }; then
21853     gcc_cv_as_eh_frame=buggy
21854   else
21855     # Uh oh, what do we do now?
21856     gcc_cv_as_eh_frame=no
21857   fi
21858     else
21859       echo "configure: failed program was" >&5
21860       cat conftest.s >&5
21861     fi
21862     rm -f conftest.o conftest.s
21863   fi
21864 fi
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21866 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21867
21868
21869 if test $gcc_cv_as_eh_frame = buggy; then
21870
21871 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21872
21873 fi
21874
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21876 $as_echo_n "checking assembler for section merging support... " >&6; }
21877 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21878   $as_echo_n "(cached) " >&6
21879 else
21880   gcc_cv_as_shf_merge=no
21881     if test $in_tree_gas = yes; then
21882     if test $in_tree_gas_is_elf = yes \
21883   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21884   then gcc_cv_as_shf_merge=yes
21885 fi
21886   elif test x$gcc_cv_as != x; then
21887     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21888     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21889   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21890   (eval $ac_try) 2>&5
21891   ac_status=$?
21892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21893   test $ac_status = 0; }; }
21894     then
21895         gcc_cv_as_shf_merge=yes
21896     else
21897       echo "configure: failed program was" >&5
21898       cat conftest.s >&5
21899     fi
21900     rm -f conftest.o conftest.s
21901   fi
21902 fi
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21904 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21905
21906 if test $gcc_cv_as_shf_merge = no; then
21907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21908 $as_echo_n "checking assembler for section merging support... " >&6; }
21909 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21910   $as_echo_n "(cached) " >&6
21911 else
21912   gcc_cv_as_shf_merge=no
21913     if test $in_tree_gas = yes; then
21914     if test $in_tree_gas_is_elf = yes \
21915   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21916   then gcc_cv_as_shf_merge=yes
21917 fi
21918   elif test x$gcc_cv_as != x; then
21919     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21920     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21921   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21922   (eval $ac_try) 2>&5
21923   ac_status=$?
21924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21925   test $ac_status = 0; }; }
21926     then
21927         gcc_cv_as_shf_merge=yes
21928     else
21929       echo "configure: failed program was" >&5
21930       cat conftest.s >&5
21931     fi
21932     rm -f conftest.o conftest.s
21933   fi
21934 fi
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21936 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21937
21938 fi
21939
21940 cat >>confdefs.h <<_ACEOF
21941 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21942 _ACEOF
21943
21944
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21946 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21947 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21948   $as_echo_n "(cached) " >&6
21949 else
21950   gcc_cv_as_comdat_group=no
21951     if test $in_tree_gas = yes; then
21952     if test $in_tree_gas_is_elf = yes \
21953   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21954   then gcc_cv_as_comdat_group=yes
21955 fi
21956   elif test x$gcc_cv_as != x; then
21957     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21958     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21959   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21960   (eval $ac_try) 2>&5
21961   ac_status=$?
21962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21963   test $ac_status = 0; }; }
21964     then
21965         gcc_cv_as_comdat_group=yes
21966     else
21967       echo "configure: failed program was" >&5
21968       cat conftest.s >&5
21969     fi
21970     rm -f conftest.o conftest.s
21971   fi
21972 fi
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21974 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21975
21976 if test $gcc_cv_as_comdat_group = yes; then
21977   gcc_cv_as_comdat_group_percent=no
21978 else
21979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21980 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21981 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21982   $as_echo_n "(cached) " >&6
21983 else
21984   gcc_cv_as_comdat_group_percent=no
21985     if test $in_tree_gas = yes; then
21986     if test $in_tree_gas_is_elf = yes \
21987   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21988   then gcc_cv_as_comdat_group_percent=yes
21989 fi
21990   elif test x$gcc_cv_as != x; then
21991     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21992     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21993   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21994   (eval $ac_try) 2>&5
21995   ac_status=$?
21996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21997   test $ac_status = 0; }; }
21998     then
21999         gcc_cv_as_comdat_group_percent=yes
22000     else
22001       echo "configure: failed program was" >&5
22002       cat conftest.s >&5
22003     fi
22004     rm -f conftest.o conftest.s
22005   fi
22006 fi
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22008 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22009
22010 fi
22011 if test x"$ld_is_gold" = xyes; then
22012   comdat_group=yes
22013 elif test $in_tree_ld = yes ; then
22014   comdat_group=no
22015   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 \
22016      && test $in_tree_ld_is_elf = yes; then
22017      comdat_group=yes
22018   fi
22019 elif echo "$ld_ver" | grep GNU > /dev/null; then
22020   comdat_group=yes
22021   if test 0"$ld_date" -lt 20050308; then
22022     if test -n "$ld_date"; then
22023       # If there was date string, but was earlier than 2005-03-08, fail
22024       comdat_group=no
22025     elif test "$ld_vers_major" -lt 2; then
22026       comdat_group=no
22027     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22028       comdat_group=no
22029     fi
22030   fi
22031 else
22032   case "${target}" in
22033     *-*-solaris2.1[1-9]*)
22034       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22035       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22036       # version 1.688.
22037       #
22038       # FIXME: Maybe need to refine later when COMDAT group support with
22039       # Sun as is implemented.
22040       if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22041         comdat_group=yes
22042       else
22043         comdat_group=no
22044       fi
22045       ;;
22046     *)
22047       # Assume linkers other than GNU ld don't support COMDAT group.
22048       comdat_group=no
22049       ;;
22050   esac
22051 fi
22052 # Allow overriding the automatic COMDAT group tests above.
22053 # Check whether --enable-comdat was given.
22054 if test "${enable_comdat+set}" = set; then :
22055   enableval=$enable_comdat; comdat_group="$enable_comdat"
22056 fi
22057
22058 if test $comdat_group = no; then
22059   gcc_cv_as_comdat_group=no
22060   gcc_cv_as_comdat_group_percent=no
22061 fi
22062
22063 cat >>confdefs.h <<_ACEOF
22064 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22065 _ACEOF
22066
22067
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22069 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22070 if test "${gcc_cv_as_discriminator+set}" = set; then :
22071   $as_echo_n "(cached) " >&6
22072 else
22073   gcc_cv_as_discriminator=no
22074     if test $in_tree_gas = yes; then
22075     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22076   then gcc_cv_as_discriminator=yes
22077 fi
22078   elif test x$gcc_cv_as != x; then
22079     echo '      .text
22080         .file 1 "conf.c"
22081         .loc 1 1 0 discriminator 1' > conftest.s
22082     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22083   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22084   (eval $ac_try) 2>&5
22085   ac_status=$?
22086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22087   test $ac_status = 0; }; }
22088     then
22089         gcc_cv_as_discriminator=yes
22090     else
22091       echo "configure: failed program was" >&5
22092       cat conftest.s >&5
22093     fi
22094     rm -f conftest.o conftest.s
22095   fi
22096 fi
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22098 $as_echo "$gcc_cv_as_discriminator" >&6; }
22099 if test $gcc_cv_as_discriminator = yes; then
22100
22101 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22102
22103 fi
22104
22105 # Thread-local storage - the check is heavily parameterized.
22106 conftest_s=
22107 tls_first_major=
22108 tls_first_minor=
22109 tls_as_opt=
22110 case "$target" in
22111   alpha*-*-*)
22112     conftest_s='
22113         .section ".tdata","awT",@progbits
22114 foo:    .long   25
22115         .text
22116         ldq     $27,__tls_get_addr($29)         !literal!1
22117         lda     $16,foo($29)                    !tlsgd!1
22118         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22119         ldq     $27,__tls_get_addr($29)         !literal!2
22120         lda     $16,foo($29)                    !tlsldm!2
22121         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22122         ldq     $1,foo($29)                     !gotdtprel
22123         ldah    $2,foo($29)                     !dtprelhi
22124         lda     $3,foo($2)                      !dtprello
22125         lda     $4,foo($29)                     !dtprel
22126         ldq     $1,foo($29)                     !gottprel
22127         ldah    $2,foo($29)                     !tprelhi
22128         lda     $3,foo($2)                      !tprello
22129         lda     $4,foo($29)                     !tprel'
22130         tls_first_major=2
22131         tls_first_minor=13
22132         tls_as_opt=--fatal-warnings
22133         ;;
22134   cris-*-*|crisv32-*-*)
22135     conftest_s='
22136         .section ".tdata","awT",@progbits
22137 x:      .long   25
22138         .text
22139         move.d x:IE,$r10
22140         nop'
22141         tls_first_major=2
22142         tls_first_minor=20
22143         tls_as_opt=--fatal-warnings
22144         ;;
22145   frv*-*-*)
22146     conftest_s='
22147         .section ".tdata","awT",@progbits
22148 x:      .long   25
22149         .text
22150         call    #gettlsoff(x)'
22151         tls_first_major=2
22152         tls_first_minor=14
22153         ;;
22154   hppa*-*-linux*)
22155     conftest_s='
22156 t1:     .reg    %r20
22157 t2:     .reg    %r21
22158 gp:     .reg    %r19
22159         .section ".tdata","awT",@progbits
22160 foo:    .long   25
22161         .text
22162         .align  4
22163         addil LT%foo-$tls_gdidx$,gp
22164         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22165         b __tls_get_addr
22166         nop
22167         addil LT%foo-$tls_ldidx$,gp
22168         b __tls_get_addr
22169         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22170         addil LR%foo-$tls_dtpoff$,%ret0
22171         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22172         mfctl %cr27,%t1
22173         addil LT%foo-$tls_ieoff$,gp
22174         ldw RT%foo-$tls_ieoff$(%r1),%t2
22175         add %t1,%t2,%t3
22176         mfctl %cr27,%t1
22177         addil LR%foo-$tls_leoff$,%t1
22178         ldo RR%foo-$tls_leoff$(%r1),%t2'
22179         tls_first_major=2
22180         tls_first_minor=15
22181         tls_as_opt=--fatal-warnings
22182         ;;
22183   arm*-*-*)
22184     conftest_s='
22185         .section ".tdata","awT",%progbits
22186 foo:    .long   25
22187         .text
22188 .word foo(gottpoff)
22189 .word foo(tpoff)
22190 .word foo(tlsgd)
22191 .word foo(tlsldm)
22192 .word foo(tlsldo)'
22193         tls_first_major=2
22194         tls_first_minor=17
22195         ;;
22196   i[34567]86-*-*)
22197     case "$target" in
22198       i[34567]86-*-solaris2.*)
22199         on_solaris=yes
22200         tga_func=___tls_get_addr
22201         ;;
22202       *)
22203         on_solaris=no
22204         ;;
22205     esac
22206     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22207       conftest_s='
22208         .section .tdata,"awt",@progbits'
22209       tls_first_major=0
22210       tls_first_minor=0
22211
22212 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22213
22214     else
22215       conftest_s='
22216         .section ".tdata","awT",@progbits'
22217       tls_first_major=2
22218       tls_first_minor=14
22219       tls_as_opt="--fatal-warnings"
22220     fi
22221     conftest_s="$conftest_s
22222 foo:    .long   25
22223         .text
22224         movl    %gs:0, %eax
22225         leal    foo@tlsgd(,%ebx,1), %eax
22226         leal    foo@tlsldm(%ebx), %eax
22227         leal    foo@dtpoff(%eax), %edx
22228         movl    foo@gottpoff(%ebx), %eax
22229         subl    foo@gottpoff(%ebx), %eax
22230         addl    foo@gotntpoff(%ebx), %eax
22231         movl    foo@indntpoff, %eax
22232         movl    \$foo@tpoff, %eax
22233         subl    \$foo@tpoff, %eax
22234         leal    foo@ntpoff(%ecx), %eax"
22235     ;;
22236   x86_64-*-*)
22237     conftest_s='
22238         .section ".tdata","awT",@progbits
22239 foo:    .long   25
22240         .text
22241         movq    %fs:0, %rax
22242         leaq    foo@TLSGD(%rip), %rdi
22243         leaq    foo@TLSLD(%rip), %rdi
22244         leaq    foo@DTPOFF(%rax), %rdx
22245         movq    foo@GOTTPOFF(%rip), %rax
22246         movq    $foo@TPOFF, %rax'
22247         tls_first_major=2
22248         tls_first_minor=14
22249         tls_as_opt=--fatal-warnings
22250         ;;
22251   ia64-*-*)
22252     conftest_s='
22253         .section ".tdata","awT",@progbits
22254 foo:    data8   25
22255         .text
22256         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22257         addl    r17 = @ltoff(@dtprel(foo#)), gp
22258         addl    r18 = @ltoff(@tprel(foo#)), gp
22259         addl    r19 = @dtprel(foo#), gp
22260         adds    r21 = @dtprel(foo#), r13
22261         movl    r23 = @dtprel(foo#)
22262         addl    r20 = @tprel(foo#), gp
22263         adds    r22 = @tprel(foo#), r13
22264         movl    r24 = @tprel(foo#)'
22265         tls_first_major=2
22266         tls_first_minor=13
22267         tls_as_opt=--fatal-warnings
22268         ;;
22269   mips*-*-*)
22270     conftest_s='
22271         .section .tdata,"awT",@progbits
22272 x:
22273         .word 2
22274         .text
22275         addiu $4, $28, %tlsgd(x)
22276         addiu $4, $28, %tlsldm(x)
22277         lui $4, %dtprel_hi(x)
22278         addiu $4, $4, %dtprel_lo(x)
22279         lw $4, %gottprel(x)($28)
22280         lui $4, %tprel_hi(x)
22281         addiu $4, $4, %tprel_lo(x)'
22282         tls_first_major=2
22283         tls_first_minor=16
22284         tls_as_opt='-32 --fatal-warnings'
22285         ;;
22286   m68k-*-*)
22287     conftest_s='
22288         .section .tdata,"awT",@progbits
22289 x:
22290         .word 2
22291         .text
22292 foo:
22293         move.l x@TLSGD(%a5),%a0
22294         move.l x@TLSLDM(%a5),%a0
22295         move.l x@TLSLDO(%a5),%a0
22296         move.l x@TLSIE(%a5),%a0
22297         move.l x@TLSLE(%a5),%a0'
22298         tls_first_major=2
22299         tls_first_minor=19
22300         tls_as_opt='--fatal-warnings'
22301         ;;
22302   powerpc-*-*)
22303     conftest_s='
22304         .section ".tdata","awT",@progbits
22305         .align 2
22306 ld0:    .space 4
22307 ld1:    .space 4
22308 x1:     .space 4
22309 x2:     .space 4
22310 x3:     .space 4
22311         .text
22312         addi 3,31,ld0@got@tlsgd
22313         bl __tls_get_addr
22314         addi 3,31,x1@got@tlsld
22315         bl __tls_get_addr
22316         addi 9,3,x1@dtprel
22317         addis 9,3,x2@dtprel@ha
22318         addi 9,9,x2@dtprel@l
22319         lwz 9,x3@got@tprel(31)
22320         add 9,9,x@tls
22321         addi 9,2,x1@tprel
22322         addis 9,2,x2@tprel@ha
22323         addi 9,9,x2@tprel@l'
22324         tls_first_major=2
22325         tls_first_minor=14
22326         tls_as_opt="-a32 --fatal-warnings"
22327         ;;
22328   powerpc64-*-*)
22329     conftest_s='
22330         .section ".tdata","awT",@progbits
22331         .align 3
22332 ld0:    .space 8
22333 ld1:    .space 8
22334 x1:     .space 8
22335 x2:     .space 8
22336 x3:     .space 8
22337         .text
22338         addi 3,2,ld0@got@tlsgd
22339         bl .__tls_get_addr
22340         nop
22341         addi 3,2,ld1@toc
22342         bl .__tls_get_addr
22343         nop
22344         addi 3,2,x1@got@tlsld
22345         bl .__tls_get_addr
22346         nop
22347         addi 9,3,x1@dtprel
22348         bl .__tls_get_addr
22349         nop
22350         addis 9,3,x2@dtprel@ha
22351         addi 9,9,x2@dtprel@l
22352         bl .__tls_get_addr
22353         nop
22354         ld 9,x3@got@dtprel(2)
22355         add 9,9,3
22356         bl .__tls_get_addr
22357         nop'
22358         tls_first_major=2
22359         tls_first_minor=14
22360         tls_as_opt="-a64 --fatal-warnings"
22361         ;;
22362   s390-*-*)
22363     conftest_s='
22364         .section ".tdata","awT",@progbits
22365 foo:    .long   25
22366         .text
22367         .long   foo@TLSGD
22368         .long   foo@TLSLDM
22369         .long   foo@DTPOFF
22370         .long   foo@NTPOFF
22371         .long   foo@GOTNTPOFF
22372         .long   foo@INDNTPOFF
22373         l       %r1,foo@GOTNTPOFF(%r12)
22374         l       %r1,0(%r1):tls_load:foo
22375         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22376         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22377         tls_first_major=2
22378         tls_first_minor=14
22379         tls_as_opt="-m31 --fatal-warnings"
22380         ;;
22381   s390x-*-*)
22382     conftest_s='
22383         .section ".tdata","awT",@progbits
22384 foo:    .long   25
22385         .text
22386         .quad   foo@TLSGD
22387         .quad   foo@TLSLDM
22388         .quad   foo@DTPOFF
22389         .quad   foo@NTPOFF
22390         .quad   foo@GOTNTPOFF
22391         lg      %r1,foo@GOTNTPOFF(%r12)
22392         larl    %r1,foo@INDNTPOFF
22393         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22394         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22395         tls_first_major=2
22396         tls_first_minor=14
22397         tls_as_opt="-m64 -Aesame --fatal-warnings"
22398         ;;
22399   sh-*-* | sh[34]-*-*)
22400     conftest_s='
22401         .section ".tdata","awT",@progbits
22402 foo:    .long   25
22403         .text
22404         .long   foo@TLSGD
22405         .long   foo@TLSLDM
22406         .long   foo@DTPOFF
22407         .long   foo@GOTTPOFF
22408         .long   foo@TPOFF'
22409         tls_first_major=2
22410         tls_first_minor=13
22411         tls_as_opt=--fatal-warnings
22412         ;;
22413   sparc*-*-*)
22414     case "$target" in
22415       sparc*-sun-solaris2.*)
22416         on_solaris=yes
22417         tga_func=__tls_get_addr
22418         ;;
22419       *)
22420         on_solaris=no
22421         ;;
22422     esac
22423     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22424       conftest_s='
22425         .section ".tdata",#alloc,#write,#tls'
22426         tls_first_major=0
22427         tls_first_minor=0
22428     else
22429       conftest_s='
22430         .section ".tdata","awT",@progbits'
22431         tls_first_major=2
22432         tls_first_minor=14
22433         tls_as_opt="-32 --fatal-warnings"
22434     fi
22435     conftest_s="$conftest_s
22436 foo:    .long   25
22437         .text
22438         sethi   %tgd_hi22(foo), %o0
22439         add     %o0, %tgd_lo10(foo), %o1
22440         add     %l7, %o1, %o0, %tgd_add(foo)
22441         call    __tls_get_addr, %tgd_call(foo)
22442         sethi   %tldm_hi22(foo), %l1
22443         add     %l1, %tldm_lo10(foo), %l2
22444         add     %l7, %l2, %o0, %tldm_add(foo)
22445         call    __tls_get_addr, %tldm_call(foo)
22446         sethi   %tldo_hix22(foo), %l3
22447         xor     %l3, %tldo_lox10(foo), %l4
22448         add     %o0, %l4, %l5, %tldo_add(foo)
22449         sethi   %tie_hi22(foo), %o3
22450         add     %o3, %tie_lo10(foo), %o3
22451         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22452         add     %g7, %o2, %o4, %tie_add(foo)
22453         sethi   %tle_hix22(foo), %l1
22454         xor     %l1, %tle_lox10(foo), %o5
22455         ld      [%g7 + %o5], %o1"
22456         ;;
22457   xtensa*-*-*)
22458     conftest_s='
22459         .section ".tdata","awT",@progbits
22460 foo:    .long   25
22461         .text
22462         movi    a8, foo@TLSFUNC
22463         movi    a10, foo@TLSARG
22464         callx8.tls a8, foo@TLSCALL'
22465         tls_first_major=2
22466         tls_first_minor=19
22467         ;;
22468 esac
22469 set_have_as_tls=no
22470 if test "x$enable_tls" = xno ; then
22471   : # TLS explicitly disabled.
22472 elif test "x$enable_tls" = xyes ; then
22473   set_have_as_tls=yes # TLS explicitly enabled.
22474 elif test -z "$tls_first_major"; then
22475   : # If we don't have a check, assume no support.
22476 else
22477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22478 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22479 if test "${gcc_cv_as_tls+set}" = set; then :
22480   $as_echo_n "(cached) " >&6
22481 else
22482   gcc_cv_as_tls=no
22483     if test $in_tree_gas = yes; then
22484     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22485   then gcc_cv_as_tls=yes
22486 fi
22487   elif test x$gcc_cv_as != x; then
22488     echo "$conftest_s" > conftest.s
22489     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22490   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22491   (eval $ac_try) 2>&5
22492   ac_status=$?
22493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22494   test $ac_status = 0; }; }
22495     then
22496         gcc_cv_as_tls=yes
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_tls" >&5
22505 $as_echo "$gcc_cv_as_tls" >&6; }
22506 if test $gcc_cv_as_tls = yes; then
22507   set_have_as_tls=yes
22508 fi
22509 fi
22510 case "$target" in
22511   # TLS was introduced in the Solaris 9 FCS release and backported to
22512   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
22513   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22514   # ld and GCC don't support any longer.
22515   *-*-solaris2.*)
22516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22517 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22518     ld_tls_support=no
22519     # Check ld and ld.so.1 TLS support.
22520     if echo "$ld_ver" | grep GNU > /dev/null; then
22521       # Assume all interesting versions of GNU ld have TLS support.
22522       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22523       ld_tls_support=yes
22524     else
22525       case "$target" in
22526         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22527         i?86-*-solaris2.8)
22528           min_tls_ld_vers_minor=280
22529           ;;
22530         # Solaris 8/SPARC ld has TLS support since version 1.272.
22531         sparc*-*-solaris2.8)
22532           min_tls_ld_vers_minor=272
22533           ;;
22534         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22535         i?86-*-solaris2.9)
22536           min_tls_ld_vers_minor=374
22537           ;;
22538         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22539         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22540           min_tls_ld_vers_minor=343
22541           ;;
22542       esac
22543       if test "$ls_vers_major" -gt 1 || \
22544         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22545         ld_tls_support=yes
22546       else
22547         set_have_as_tls=no
22548       fi
22549     fi
22550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22551 $as_echo "$ld_tls_support" >&6; }
22552
22553     save_LIBS="$LIBS"
22554     save_LDFLAGS="$LDFLAGS"
22555     LIBS=
22556     LDFLAGS=
22557
22558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22559 $as_echo_n "checking alternate thread library... " >&6; }
22560     case "$target" in
22561       # TLS support was backported to Solaris 8 patches, but only lives in
22562       # the alternate thread library which became the default in Solaris 9.
22563       # We want to always use that, irrespective of TLS support.
22564       *-*-solaris2.8)
22565         # Take multilib subdir into account.  There's no spec to handle
22566         # this.  The 64 symlink exists since Solaris 8.
22567         lwp_dir=/usr/lib/lwp
22568         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22569         LDFLAGS="-L$lwp_dir -R$lwp_dir"
22570         ;;
22571       *-*-solaris2*)
22572         lwp_dir="none"
22573         lwp_spec=""
22574         ;;
22575     esac
22576     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22577
22578 cat >>confdefs.h <<_ACEOF
22579 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22580 _ACEOF
22581
22582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22583 $as_echo "$lwp_dir" >&6; }
22584
22585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22586 $as_echo_n "checking library containing $tga_func... " >&6; }
22587     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22588     # (32-bit x86) only lived in libthread, so check for that.  Keep
22589     # set_have_as_tls if found, disable if not.
22590     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22592 $as_echo_n "checking for library containing $tga_func... " >&6; }
22593 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22594   $as_echo_n "(cached) " >&6
22595 else
22596   ac_func_search_save_LIBS=$LIBS
22597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22598 /* end confdefs.h.  */
22599
22600 /* Override any GCC internal prototype to avoid an error.
22601    Use char because int might match the return type of a GCC
22602    builtin and then its argument prototype would still apply.  */
22603 #ifdef __cplusplus
22604 extern "C"
22605 #endif
22606 char $tga_func ();
22607 int
22608 main ()
22609 {
22610 return $tga_func ();
22611   ;
22612   return 0;
22613 }
22614 _ACEOF
22615 for ac_lib in '' thread; do
22616   if test -z "$ac_lib"; then
22617     ac_res="none required"
22618   else
22619     ac_res=-l$ac_lib
22620     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22621   fi
22622   if ac_fn_c_try_link "$LINENO"; then :
22623   eval "$as_ac_Search=\$ac_res"
22624 fi
22625 rm -f core conftest.err conftest.$ac_objext \
22626     conftest$ac_exeext
22627   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22628   break
22629 fi
22630 done
22631 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22632
22633 else
22634   eval "$as_ac_Search=no"
22635 fi
22636 rm conftest.$ac_ext
22637 LIBS=$ac_func_search_save_LIBS
22638 fi
22639 eval ac_res=\$$as_ac_Search
22640                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22641 $as_echo "$ac_res" >&6; }
22642 eval ac_res=\$$as_ac_Search
22643 if test "$ac_res" != no; then :
22644   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22645
22646 else
22647   set_have_as_tls=no
22648 fi
22649
22650     # Clear LIBS if we cannot support TLS.
22651     if test $set_have_as_tls = no; then
22652       LIBS=
22653     fi
22654     # Always define LIB_TLS_SPEC, even without TLS support.
22655
22656 cat >>confdefs.h <<_ACEOF
22657 #define LIB_TLS_SPEC "$LIBS"
22658 _ACEOF
22659
22660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22661 $as_echo "$LIBS" >&6; }
22662
22663     LIBS="$save_LIBS"
22664     LDFLAGS="$save_LDFLAGS"
22665     ;;
22666 esac
22667 if test $set_have_as_tls = yes ; then
22668
22669 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22670
22671 fi
22672
22673 # Target-specific assembler checks.
22674
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22676 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22677 gcc_cv_ld_static_dynamic=no
22678 if test $in_tree_ld = yes ; then
22679   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
22680     gcc_cv_ld_static_dynamic=yes
22681   fi
22682 elif test x$gcc_cv_ld != x; then
22683         # Check if linker supports -Bstatic/-Bdynamic option
22684         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22685           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22686                 gcc_cv_ld_static_dynamic=yes
22687         fi
22688 fi
22689 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22690
22691 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22692
22693 fi
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22695 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22696
22697 if test x"$demangler_in_ld" = xyes; then
22698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22699 $as_echo_n "checking linker --demangle support... " >&6; }
22700   gcc_cv_ld_demangle=no
22701   if test $in_tree_ld = yes; then
22702     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 \
22703       gcc_cv_ld_demangle=yes
22704     fi
22705   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22706     # Check if the GNU linker supports --demangle option
22707     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22708       gcc_cv_ld_demangle=yes
22709     fi
22710   fi
22711   if test x"$gcc_cv_ld_demangle" = xyes; then
22712
22713 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22714
22715   fi
22716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22717 $as_echo "$gcc_cv_ld_demangle" >&6; }
22718 fi
22719
22720 case "$target" in
22721   # All TARGET_ABI_OSF targets.
22722   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22724 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22725 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22726   $as_echo_n "(cached) " >&6
22727 else
22728   gcc_cv_as_alpha_explicit_relocs=no
22729     if test $in_tree_gas = yes; then
22730     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22731   then gcc_cv_as_alpha_explicit_relocs=yes
22732 fi
22733   elif test x$gcc_cv_as != x; then
22734     echo '      .set nomacro
22735         .text
22736         extbl   $3, $2, $3      !lituse_bytoff!1
22737         ldq     $2, a($29)      !literal!1
22738         ldq     $4, b($29)      !literal!2
22739         ldq_u   $3, 0($2)       !lituse_base!1
22740         ldq     $27, f($29)     !literal!5
22741         jsr     $26, ($27), f   !lituse_jsr!5
22742         ldah    $29, 0($26)     !gpdisp!3
22743         lda     $0, c($29)      !gprel
22744         ldah    $1, d($29)      !gprelhigh
22745         lda     $1, d($1)       !gprellow
22746         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22747     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22748   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22749   (eval $ac_try) 2>&5
22750   ac_status=$?
22751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22752   test $ac_status = 0; }; }
22753     then
22754         gcc_cv_as_alpha_explicit_relocs=yes
22755     else
22756       echo "configure: failed program was" >&5
22757       cat conftest.s >&5
22758     fi
22759     rm -f conftest.o conftest.s
22760   fi
22761 fi
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22763 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22764 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22765
22766 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22767
22768 fi
22769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22770 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22771 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22772   $as_echo_n "(cached) " >&6
22773 else
22774   gcc_cv_as_alpha_jsrdirect_relocs=no
22775     if test $in_tree_gas = yes; then
22776     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22777   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22778 fi
22779   elif test x$gcc_cv_as != x; then
22780     echo '      .set nomacro
22781         .text
22782         ldq     $27, a($29)     !literal!1
22783         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22784     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22785   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22786   (eval $ac_try) 2>&5
22787   ac_status=$?
22788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22789   test $ac_status = 0; }; }
22790     then
22791         gcc_cv_as_alpha_jsrdirect_relocs=yes
22792     else
22793       echo "configure: failed program was" >&5
22794       cat conftest.s >&5
22795     fi
22796     rm -f conftest.o conftest.s
22797   fi
22798 fi
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22800 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22801 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22802
22803 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22804
22805 fi
22806     ;;
22807
22808   cris-*-*)
22809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22810 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22811 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22812   $as_echo_n "(cached) " >&6
22813 else
22814   gcc_cv_as_cris_no_mul_bug=no
22815     if test $in_tree_gas = yes; then
22816     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22817   then gcc_cv_as_cris_no_mul_bug=yes
22818 fi
22819   elif test x$gcc_cv_as != x; then
22820     echo '.text' > conftest.s
22821     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22822   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22823   (eval $ac_try) 2>&5
22824   ac_status=$?
22825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22826   test $ac_status = 0; }; }
22827     then
22828         gcc_cv_as_cris_no_mul_bug=yes
22829     else
22830       echo "configure: failed program was" >&5
22831       cat conftest.s >&5
22832     fi
22833     rm -f conftest.o conftest.s
22834   fi
22835 fi
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22837 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22838 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22839
22840 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22841
22842 fi
22843     ;;
22844
22845   sparc*-*-*)
22846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22847 $as_echo_n "checking assembler for .register... " >&6; }
22848 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22849   $as_echo_n "(cached) " >&6
22850 else
22851   gcc_cv_as_sparc_register_op=no
22852   if test x$gcc_cv_as != x; then
22853     echo '.register %g2, #scratch' > conftest.s
22854     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22855   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22856   (eval $ac_try) 2>&5
22857   ac_status=$?
22858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859   test $ac_status = 0; }; }
22860     then
22861         gcc_cv_as_sparc_register_op=yes
22862     else
22863       echo "configure: failed program was" >&5
22864       cat conftest.s >&5
22865     fi
22866     rm -f conftest.o conftest.s
22867   fi
22868 fi
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22870 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22871 if test $gcc_cv_as_sparc_register_op = yes; then
22872
22873 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22874
22875 fi
22876
22877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22878 $as_echo_n "checking assembler for -relax option... " >&6; }
22879 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22880   $as_echo_n "(cached) " >&6
22881 else
22882   gcc_cv_as_sparc_relax=no
22883   if test x$gcc_cv_as != x; then
22884     echo '.text' > conftest.s
22885     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22886   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22887   (eval $ac_try) 2>&5
22888   ac_status=$?
22889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22890   test $ac_status = 0; }; }
22891     then
22892         gcc_cv_as_sparc_relax=yes
22893     else
22894       echo "configure: failed program was" >&5
22895       cat conftest.s >&5
22896     fi
22897     rm -f conftest.o conftest.s
22898   fi
22899 fi
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22901 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22902 if test $gcc_cv_as_sparc_relax = yes; then
22903
22904 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22905
22906 fi
22907
22908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22909 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22910 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22911   $as_echo_n "(cached) " >&6
22912 else
22913   gcc_cv_as_sparc_gotdata_op=no
22914   if test x$gcc_cv_as != x; then
22915     echo '.text
22916 foo:
22917         nop
22918 bar:
22919         sethi %gdop_hix22(foo), %g1
22920         xor    %g1, %gdop_lox10(foo), %g1
22921         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22922     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22923   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22924   (eval $ac_try) 2>&5
22925   ac_status=$?
22926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22927   test $ac_status = 0; }; }
22928     then
22929         if test x$gcc_cv_ld != x \
22930        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22931          if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22932            if test x$gcc_cv_objdump != x; then
22933              if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22934                 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22935                gcc_cv_as_sparc_gotdata_op=no
22936              else
22937                gcc_cv_as_sparc_gotdata_op=yes
22938              fi
22939            fi
22940          else
22941            gcc_cv_as_sparc_gotdata_op=yes
22942          fi
22943        fi
22944        rm -f conftest
22945     else
22946       echo "configure: failed program was" >&5
22947       cat conftest.s >&5
22948     fi
22949     rm -f conftest.o conftest.s
22950   fi
22951 fi
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22953 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22954 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22955
22956 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22957
22958 fi
22959
22960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22961 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22962 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22963   $as_echo_n "(cached) " >&6
22964 else
22965   gcc_cv_as_sparc_ua_pcrel=no
22966   if test x$gcc_cv_as != x; then
22967     echo '.text
22968 foo:
22969         nop
22970 .data
22971 .align 4
22972 .byte 0
22973 .uaword %r_disp32(foo)' > conftest.s
22974     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22975   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22976   (eval $ac_try) 2>&5
22977   ac_status=$?
22978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22979   test $ac_status = 0; }; }
22980     then
22981         if test x$gcc_cv_ld != x \
22982        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22983          gcc_cv_as_sparc_ua_pcrel=yes
22984        fi
22985        rm -f conftest
22986     else
22987       echo "configure: failed program was" >&5
22988       cat conftest.s >&5
22989     fi
22990     rm -f conftest.o conftest.s
22991   fi
22992 fi
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22994 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22995 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22996
22997 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22998
22999
23000       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23001 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23002 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23003   $as_echo_n "(cached) " >&6
23004 else
23005   gcc_cv_as_sparc_ua_pcrel_hidden=no
23006   if test x$gcc_cv_as != x; then
23007     echo '.data
23008 .align 4
23009 .byte 0x31
23010 .uaword %r_disp32(foo)
23011 .byte 0x32, 0x33, 0x34
23012 .global foo
23013 .hidden foo
23014 foo:
23015 .skip 4' > conftest.s
23016     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23017   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23018   (eval $ac_try) 2>&5
23019   ac_status=$?
23020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23021   test $ac_status = 0; }; }
23022     then
23023         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23024          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23025          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23026             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23027             if $gcc_cv_objdump -R conftest 2> /dev/null \
23028                | grep 'DISP32' > /dev/null 2>&1; then
23029                 :
23030             else
23031                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23032             fi
23033          fi
23034          rm -f conftest
23035     else
23036       echo "configure: failed program was" >&5
23037       cat conftest.s >&5
23038     fi
23039     rm -f conftest.o conftest.s
23040   fi
23041 fi
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23043 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23044 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23045
23046 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23047
23048 fi
23049
23050 fi # unaligned pcrel relocs
23051
23052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23053 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23054 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23055   $as_echo_n "(cached) " >&6
23056 else
23057   gcc_cv_as_sparc_offsetable_lo10=no
23058   if test x$gcc_cv_as != x; then
23059     echo '.text
23060         or %g1, %lo(ab) + 12, %g1
23061         or %g1, %lo(ab + 12), %g1' > conftest.s
23062     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23063   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23064   (eval $ac_try) 2>&5
23065   ac_status=$?
23066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23067   test $ac_status = 0; }; }
23068     then
23069         if test x$gcc_cv_objdump != x \
23070        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23071           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23072          gcc_cv_as_sparc_offsetable_lo10=yes
23073        fi
23074     else
23075       echo "configure: failed program was" >&5
23076       cat conftest.s >&5
23077     fi
23078     rm -f conftest.o conftest.s
23079   fi
23080 fi
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23082 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23083 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23084
23085 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23086
23087 fi
23088     ;;
23089
23090   i[34567]86-*-* | x86_64-*-*)
23091     case $target_os in
23092       cygwin*)
23093         # Full C++ conformance when using a shared libstdc++-v3 requires some
23094         # support from the Cygwin DLL, which in more recent versions exports
23095         # wrappers to aid in interposing and redirecting operators new, delete,
23096         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23097         # are configuring for a version of Cygwin that exports the wrappers.
23098         if test x$host = x$target; then
23099           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23100 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23101   gcc_ac_cygwin_dll_wrappers=yes
23102 else
23103   gcc_ac_cygwin_dll_wrappers=no
23104 fi
23105
23106         else
23107           # Can't check presence of libc functions during cross-compile, so
23108           # we just have to assume we're building for an up-to-date target.
23109           gcc_ac_cygwin_dll_wrappers=yes
23110         fi
23111
23112 cat >>confdefs.h <<_ACEOF
23113 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23114 _ACEOF
23115
23116     esac
23117     case $target_os in
23118       cygwin* | pe | mingw32*)
23119         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23120         # definition is used unconditionally to initialise the default state of
23121         # the target option variable that governs usage of the feature.
23122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23123 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23124 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23125   $as_echo_n "(cached) " >&6
23126 else
23127   gcc_cv_as_comm_has_align=no
23128     if test $in_tree_gas = yes; then
23129     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23130   then gcc_cv_as_comm_has_align=yes
23131 fi
23132   elif test x$gcc_cv_as != x; then
23133     echo '.comm foo,1,32' > conftest.s
23134     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23135   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23136   (eval $ac_try) 2>&5
23137   ac_status=$?
23138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23139   test $ac_status = 0; }; }
23140     then
23141         gcc_cv_as_comm_has_align=yes
23142     else
23143       echo "configure: failed program was" >&5
23144       cat conftest.s >&5
23145     fi
23146     rm -f conftest.o conftest.s
23147   fi
23148 fi
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23150 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23151
23152
23153 cat >>confdefs.h <<_ACEOF
23154 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23155 _ACEOF
23156
23157         # Used for DWARF 2 in PE
23158         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23159 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23160 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23161   $as_echo_n "(cached) " >&6
23162 else
23163   gcc_cv_as_ix86_pe_secrel32=no
23164     if test $in_tree_gas = yes; then
23165     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23166   then gcc_cv_as_ix86_pe_secrel32=yes
23167 fi
23168   elif test x$gcc_cv_as != x; then
23169     echo '.text
23170 foo:    nop
23171 .data
23172         .secrel32 foo' > conftest.s
23173     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23174   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23175   (eval $ac_try) 2>&5
23176   ac_status=$?
23177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23178   test $ac_status = 0; }; }
23179     then
23180         if test x$gcc_cv_ld != x \
23181            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23182              gcc_cv_as_ix86_pe_secrel32=yes
23183            fi
23184            rm -f conftest
23185     else
23186       echo "configure: failed program was" >&5
23187       cat conftest.s >&5
23188     fi
23189     rm -f conftest.o conftest.s
23190   fi
23191 fi
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23193 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23194 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23195
23196 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23197
23198 fi
23199         # Test if the assembler supports the extended form of the .section
23200         # directive that specifies section alignment.  LTO support uses this,
23201         # but normally only after installation, so we warn but don't fail the
23202         # configure if LTO is enabled but the assembler does not support it.
23203         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23204 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23205 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23206   $as_echo_n "(cached) " >&6
23207 else
23208   gcc_cv_as_section_has_align=no
23209     if test $in_tree_gas = yes; then
23210     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23211   then gcc_cv_as_section_has_align=yes
23212 fi
23213   elif test x$gcc_cv_as != x; then
23214     echo '.section lto_test,"dr0"' > conftest.s
23215     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23216   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23217   (eval $ac_try) 2>&5
23218   ac_status=$?
23219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23220   test $ac_status = 0; }; }
23221     then
23222         gcc_cv_as_section_has_align=yes
23223     else
23224       echo "configure: failed program was" >&5
23225       cat conftest.s >&5
23226     fi
23227     rm -f conftest.o conftest.s
23228   fi
23229 fi
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23231 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23232
23233         if test x$gcc_cv_as_section_has_align != xyes; then
23234           case ",$enable_languages," in
23235             *,lto,*)
23236               { $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
23237 $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;}
23238               ;;
23239           esac
23240         fi
23241         ;;
23242     esac
23243
23244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23245 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23246 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23247   $as_echo_n "(cached) " >&6
23248 else
23249   gcc_cv_as_ix86_filds=no
23250   if test x$gcc_cv_as != x; then
23251     echo 'filds mem; fists mem' > conftest.s
23252     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23253   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23254   (eval $ac_try) 2>&5
23255   ac_status=$?
23256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23257   test $ac_status = 0; }; }
23258     then
23259         gcc_cv_as_ix86_filds=yes
23260     else
23261       echo "configure: failed program was" >&5
23262       cat conftest.s >&5
23263     fi
23264     rm -f conftest.o conftest.s
23265   fi
23266 fi
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23268 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23269 if test $gcc_cv_as_ix86_filds = yes; then
23270
23271 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23272
23273 fi
23274
23275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23276 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23277 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23278   $as_echo_n "(cached) " >&6
23279 else
23280   gcc_cv_as_ix86_fildq=no
23281   if test x$gcc_cv_as != x; then
23282     echo 'fildq mem; fistpq mem' > conftest.s
23283     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23284   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23285   (eval $ac_try) 2>&5
23286   ac_status=$?
23287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23288   test $ac_status = 0; }; }
23289     then
23290         gcc_cv_as_ix86_fildq=yes
23291     else
23292       echo "configure: failed program was" >&5
23293       cat conftest.s >&5
23294     fi
23295     rm -f conftest.o conftest.s
23296   fi
23297 fi
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23299 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23300 if test $gcc_cv_as_ix86_fildq = yes; then
23301
23302 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23303
23304 fi
23305
23306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23307 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23308 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23309   $as_echo_n "(cached) " >&6
23310 else
23311   gcc_cv_as_ix86_cmov_sun_syntax=no
23312   if test x$gcc_cv_as != x; then
23313     echo 'cmovl.l %edx, %eax' > conftest.s
23314     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23315   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23316   (eval $ac_try) 2>&5
23317   ac_status=$?
23318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23319   test $ac_status = 0; }; }
23320     then
23321         gcc_cv_as_ix86_cmov_sun_syntax=yes
23322     else
23323       echo "configure: failed program was" >&5
23324       cat conftest.s >&5
23325     fi
23326     rm -f conftest.o conftest.s
23327   fi
23328 fi
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23330 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23331 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23332
23333 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23334
23335 fi
23336
23337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23338 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23339 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23340   $as_echo_n "(cached) " >&6
23341 else
23342   gcc_cv_as_ix86_ffreep=no
23343   if test x$gcc_cv_as != x; then
23344     echo 'ffreep %st(1)' > conftest.s
23345     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23346   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23347   (eval $ac_try) 2>&5
23348   ac_status=$?
23349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23350   test $ac_status = 0; }; }
23351     then
23352         gcc_cv_as_ix86_ffreep=yes
23353     else
23354       echo "configure: failed program was" >&5
23355       cat conftest.s >&5
23356     fi
23357     rm -f conftest.o conftest.s
23358   fi
23359 fi
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23361 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23362 if test $gcc_cv_as_ix86_ffreep = yes; then
23363
23364 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23365
23366 fi
23367
23368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23369 $as_echo_n "checking assembler for .quad directive... " >&6; }
23370 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23371   $as_echo_n "(cached) " >&6
23372 else
23373   gcc_cv_as_ix86_quad=no
23374   if test x$gcc_cv_as != x; then
23375     echo '.quad 0' > conftest.s
23376     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23377   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23378   (eval $ac_try) 2>&5
23379   ac_status=$?
23380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23381   test $ac_status = 0; }; }
23382     then
23383         gcc_cv_as_ix86_quad=yes
23384     else
23385       echo "configure: failed program was" >&5
23386       cat conftest.s >&5
23387     fi
23388     rm -f conftest.o conftest.s
23389   fi
23390 fi
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23392 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23393 if test $gcc_cv_as_ix86_quad = yes; then
23394
23395 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23396
23397 fi
23398
23399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23400 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23401 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23402   $as_echo_n "(cached) " >&6
23403 else
23404   gcc_cv_as_ix86_sahf=no
23405   if test x$gcc_cv_as != x; then
23406     echo '.code64
23407        sahf' > conftest.s
23408     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23409   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23410   (eval $ac_try) 2>&5
23411   ac_status=$?
23412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23413   test $ac_status = 0; }; }
23414     then
23415         gcc_cv_as_ix86_sahf=yes
23416     else
23417       echo "configure: failed program was" >&5
23418       cat conftest.s >&5
23419     fi
23420     rm -f conftest.o conftest.s
23421   fi
23422 fi
23423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23424 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23425 if test $gcc_cv_as_ix86_sahf = yes; then
23426
23427 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23428
23429 fi
23430
23431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23432 $as_echo_n "checking assembler for swap suffix... " >&6; }
23433 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23434   $as_echo_n "(cached) " >&6
23435 else
23436   gcc_cv_as_ix86_swap=no
23437   if test x$gcc_cv_as != x; then
23438     echo 'movl.s %esp, %ebp' > conftest.s
23439     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23440   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23441   (eval $ac_try) 2>&5
23442   ac_status=$?
23443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23444   test $ac_status = 0; }; }
23445     then
23446         gcc_cv_as_ix86_swap=yes
23447     else
23448       echo "configure: failed program was" >&5
23449       cat conftest.s >&5
23450     fi
23451     rm -f conftest.o conftest.s
23452   fi
23453 fi
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23455 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23456 if test $gcc_cv_as_ix86_swap = yes; then
23457
23458 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23459
23460 fi
23461
23462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23463 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23464 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23465   $as_echo_n "(cached) " >&6
23466 else
23467   gcc_cv_as_ix86_diff_sect_delta=no
23468   if test x$gcc_cv_as != x; then
23469     echo '.section .rodata
23470 .L1:
23471         .long .L2-.L1
23472         .long .L3-.L1
23473         .text
23474 .L3:    nop
23475 .L2:    nop' > conftest.s
23476     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23477   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23478   (eval $ac_try) 2>&5
23479   ac_status=$?
23480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23481   test $ac_status = 0; }; }
23482     then
23483         gcc_cv_as_ix86_diff_sect_delta=yes
23484     else
23485       echo "configure: failed program was" >&5
23486       cat conftest.s >&5
23487     fi
23488     rm -f conftest.o conftest.s
23489   fi
23490 fi
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23492 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23493 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23494
23495 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23496
23497 fi
23498
23499     # These two are used unconditionally by i386.[ch]; it is to be defined
23500     # to 1 if the feature is present, 0 otherwise.
23501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23502 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23503 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23504   $as_echo_n "(cached) " >&6
23505 else
23506   gcc_cv_as_ix86_gotoff_in_data=no
23507     if test $in_tree_gas = yes; then
23508     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23509   then gcc_cv_as_ix86_gotoff_in_data=yes
23510 fi
23511   elif test x$gcc_cv_as != x; then
23512     echo '      .text
23513 .L0:
23514         nop
23515         .data
23516         .long .L0@GOTOFF' > conftest.s
23517     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23518   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23519   (eval $ac_try) 2>&5
23520   ac_status=$?
23521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23522   test $ac_status = 0; }; }
23523     then
23524         gcc_cv_as_ix86_gotoff_in_data=yes
23525     else
23526       echo "configure: failed program was" >&5
23527       cat conftest.s >&5
23528     fi
23529     rm -f conftest.o conftest.s
23530   fi
23531 fi
23532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23533 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23534
23535
23536 cat >>confdefs.h <<_ACEOF
23537 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23538 _ACEOF
23539
23540
23541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23542 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23543 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23544   $as_echo_n "(cached) " >&6
23545 else
23546   gcc_cv_as_ix86_rep_lock_prefix=no
23547   if test x$gcc_cv_as != x; then
23548     echo 'rep movsl
23549          lock addl %edi, (%eax,%esi)
23550          lock orl $0, (%esp)' > conftest.s
23551     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23552   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23553   (eval $ac_try) 2>&5
23554   ac_status=$?
23555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23556   test $ac_status = 0; }; }
23557     then
23558         gcc_cv_as_ix86_rep_lock_prefix=yes
23559     else
23560       echo "configure: failed program was" >&5
23561       cat conftest.s >&5
23562     fi
23563     rm -f conftest.o conftest.s
23564   fi
23565 fi
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23567 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23568 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23569
23570 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23571
23572 fi
23573
23574     ;;
23575
23576   ia64*-*-*)
23577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23578 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23579 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23580   $as_echo_n "(cached) " >&6
23581 else
23582   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23583     if test $in_tree_gas = yes; then
23584     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23585   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23586 fi
23587   elif test x$gcc_cv_as != x; then
23588     echo '      .text
23589         addl r15 = @ltoffx(x#), gp
23590         ;;
23591         ld8.mov r16 = [r15], x#' > conftest.s
23592     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23593   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23594   (eval $ac_try) 2>&5
23595   ac_status=$?
23596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23597   test $ac_status = 0; }; }
23598     then
23599         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23600     else
23601       echo "configure: failed program was" >&5
23602       cat conftest.s >&5
23603     fi
23604     rm -f conftest.o conftest.s
23605   fi
23606 fi
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23608 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23609 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23610
23611 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23612
23613 fi
23614
23615     ;;
23616
23617   powerpc*-*-*)
23618     case $target in
23619       *-*-aix*) conftest_s='    .machine "pwr5"
23620         .csect .text[PR]
23621         mfcr 3,128';;
23622       *-*-darwin*)
23623         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23624 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23625 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23626   $as_echo_n "(cached) " >&6
23627 else
23628   gcc_cv_as_machine_directive=no
23629   if test x$gcc_cv_as != x; then
23630     echo '      .machine ppc7400' > conftest.s
23631     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23632   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23633   (eval $ac_try) 2>&5
23634   ac_status=$?
23635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23636   test $ac_status = 0; }; }
23637     then
23638         gcc_cv_as_machine_directive=yes
23639     else
23640       echo "configure: failed program was" >&5
23641       cat conftest.s >&5
23642     fi
23643     rm -f conftest.o conftest.s
23644   fi
23645 fi
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23647 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23648
23649         if test x$gcc_cv_as_machine_directive != xyes; then
23650           echo "*** This target requires an assembler supporting \".machine\"" >&2
23651           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23652           test x$build = x$target && exit 1
23653         fi
23654         conftest_s='    .text
23655         mfcr r3,128';;
23656       *) conftest_s='   .machine power4
23657         .text
23658         mfcr 3,128';;
23659     esac
23660
23661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23662 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23663 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23664   $as_echo_n "(cached) " >&6
23665 else
23666   gcc_cv_as_powerpc_mfcrf=no
23667     if test $in_tree_gas = yes; then
23668     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23669   then gcc_cv_as_powerpc_mfcrf=yes
23670 fi
23671   elif test x$gcc_cv_as != x; then
23672     echo "$conftest_s" > conftest.s
23673     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23674   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23675   (eval $ac_try) 2>&5
23676   ac_status=$?
23677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23678   test $ac_status = 0; }; }
23679     then
23680         gcc_cv_as_powerpc_mfcrf=yes
23681     else
23682       echo "configure: failed program was" >&5
23683       cat conftest.s >&5
23684     fi
23685     rm -f conftest.o conftest.s
23686   fi
23687 fi
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23689 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23690 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23691
23692 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23693
23694 fi
23695
23696     case $target in
23697       *-*-aix*) conftest_s='    .machine "pwr5"
23698         .csect .text[PR]
23699         popcntb 3,3';;
23700       *) conftest_s='   .machine power5
23701         .text
23702         popcntb 3,3';;
23703     esac
23704
23705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23706 $as_echo_n "checking assembler for popcntb support... " >&6; }
23707 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23708   $as_echo_n "(cached) " >&6
23709 else
23710   gcc_cv_as_powerpc_popcntb=no
23711     if test $in_tree_gas = yes; then
23712     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23713   then gcc_cv_as_powerpc_popcntb=yes
23714 fi
23715   elif test x$gcc_cv_as != x; then
23716     echo "$conftest_s" > conftest.s
23717     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23718   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23719   (eval $ac_try) 2>&5
23720   ac_status=$?
23721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23722   test $ac_status = 0; }; }
23723     then
23724         gcc_cv_as_powerpc_popcntb=yes
23725     else
23726       echo "configure: failed program was" >&5
23727       cat conftest.s >&5
23728     fi
23729     rm -f conftest.o conftest.s
23730   fi
23731 fi
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23733 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23734 if test $gcc_cv_as_powerpc_popcntb = yes; then
23735
23736 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23737
23738 fi
23739
23740     case $target in
23741       *-*-aix*) conftest_s='    .machine "pwr5x"
23742         .csect .text[PR]
23743         frin 1,1';;
23744       *) conftest_s='   .machine power5
23745         .text
23746         frin 1,1';;
23747     esac
23748
23749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23750 $as_echo_n "checking assembler for fp round support... " >&6; }
23751 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23752   $as_echo_n "(cached) " >&6
23753 else
23754   gcc_cv_as_powerpc_fprnd=no
23755     if test $in_tree_gas = yes; then
23756     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23757   then gcc_cv_as_powerpc_fprnd=yes
23758 fi
23759   elif test x$gcc_cv_as != x; then
23760     echo "$conftest_s" > conftest.s
23761     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23762   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23763   (eval $ac_try) 2>&5
23764   ac_status=$?
23765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23766   test $ac_status = 0; }; }
23767     then
23768         gcc_cv_as_powerpc_fprnd=yes
23769     else
23770       echo "configure: failed program was" >&5
23771       cat conftest.s >&5
23772     fi
23773     rm -f conftest.o conftest.s
23774   fi
23775 fi
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23777 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23778 if test $gcc_cv_as_powerpc_fprnd = yes; then
23779
23780 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23781
23782 fi
23783
23784     case $target in
23785       *-*-aix*) conftest_s='    .machine "pwr6"
23786         .csect .text[PR]
23787         mffgpr 1,3';;
23788       *) conftest_s='   .machine power6
23789         .text
23790         mffgpr 1,3';;
23791     esac
23792
23793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23794 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23795 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23796   $as_echo_n "(cached) " >&6
23797 else
23798   gcc_cv_as_powerpc_mfpgpr=no
23799     if test $in_tree_gas = yes; then
23800     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23801   then gcc_cv_as_powerpc_mfpgpr=yes
23802 fi
23803   elif test x$gcc_cv_as != x; then
23804     echo "$conftest_s" > conftest.s
23805     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23806   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23807   (eval $ac_try) 2>&5
23808   ac_status=$?
23809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23810   test $ac_status = 0; }; }
23811     then
23812         gcc_cv_as_powerpc_mfpgpr=yes
23813     else
23814       echo "configure: failed program was" >&5
23815       cat conftest.s >&5
23816     fi
23817     rm -f conftest.o conftest.s
23818   fi
23819 fi
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23821 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23822 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23823
23824 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23825
23826 fi
23827
23828     case $target in
23829       *-*-aix*) conftest_s='    .csect .text[PR]
23830 LCF..0:
23831         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23832       *-*-darwin*)
23833         conftest_s='    .text
23834 LCF0:
23835         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23836       *) conftest_s='   .text
23837 .LCF0:
23838         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23839     esac
23840
23841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23842 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23843 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23844   $as_echo_n "(cached) " >&6
23845 else
23846   gcc_cv_as_powerpc_rel16=no
23847     if test $in_tree_gas = yes; then
23848     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23849   then gcc_cv_as_powerpc_rel16=yes
23850 fi
23851   elif test x$gcc_cv_as != x; then
23852     echo "$conftest_s" > conftest.s
23853     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23854   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23855   (eval $ac_try) 2>&5
23856   ac_status=$?
23857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23858   test $ac_status = 0; }; }
23859     then
23860         gcc_cv_as_powerpc_rel16=yes
23861     else
23862       echo "configure: failed program was" >&5
23863       cat conftest.s >&5
23864     fi
23865     rm -f conftest.o conftest.s
23866   fi
23867 fi
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23869 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23870 if test $gcc_cv_as_powerpc_rel16 = yes; then
23871
23872 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23873
23874 fi
23875
23876     case $target in
23877       *-*-aix*) conftest_s='    .machine "pwr6"
23878         .csect .text[PR]
23879         cmpb 3,4,5';;
23880       *) conftest_s='   .machine power6
23881         .text
23882         cmpb 3,4,5';;
23883     esac
23884
23885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23886 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23887 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23888   $as_echo_n "(cached) " >&6
23889 else
23890   gcc_cv_as_powerpc_cmpb=no
23891     if test $in_tree_gas = yes; then
23892     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23893   then gcc_cv_as_powerpc_cmpb=yes
23894 fi
23895   elif test x$gcc_cv_as != x; then
23896     echo "$conftest_s" > conftest.s
23897     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23898   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23899   (eval $ac_try) 2>&5
23900   ac_status=$?
23901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23902   test $ac_status = 0; }; }
23903     then
23904         gcc_cv_as_powerpc_cmpb=yes
23905     else
23906       echo "configure: failed program was" >&5
23907       cat conftest.s >&5
23908     fi
23909     rm -f conftest.o conftest.s
23910   fi
23911 fi
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23913 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23914 if test $gcc_cv_as_powerpc_cmpb = yes; then
23915
23916 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23917
23918 fi
23919
23920     case $target in
23921       *-*-aix*) conftest_s='    .machine "pwr6"
23922         .csect .text[PR]
23923         dadd 1,2,3';;
23924       *) conftest_s='   .machine power6
23925         .text
23926         dadd 1,2,3';;
23927     esac
23928
23929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23930 $as_echo_n "checking assembler for decimal float support... " >&6; }
23931 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23932   $as_echo_n "(cached) " >&6
23933 else
23934   gcc_cv_as_powerpc_dfp=no
23935     if test $in_tree_gas = yes; then
23936     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23937   then gcc_cv_as_powerpc_dfp=yes
23938 fi
23939   elif test x$gcc_cv_as != x; then
23940     echo "$conftest_s" > conftest.s
23941     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_dfp=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_powerpc_dfp" >&5
23957 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23958 if test $gcc_cv_as_powerpc_dfp = yes; then
23959
23960 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23961
23962 fi
23963
23964     case $target in
23965       *-*-aix*) conftest_s='    .machine "pwr7"
23966         .csect .text[PR]
23967         lxvd2x 1,2,3';;
23968       *) conftest_s='   .machine power7
23969         .text
23970         lxvd2x 1,2,3';;
23971     esac
23972
23973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23974 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23975 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23976   $as_echo_n "(cached) " >&6
23977 else
23978   gcc_cv_as_powerpc_vsx=no
23979     if test $in_tree_gas = yes; then
23980     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23981   then gcc_cv_as_powerpc_vsx=yes
23982 fi
23983   elif test x$gcc_cv_as != x; then
23984     echo "$conftest_s" > conftest.s
23985     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23986   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23987   (eval $ac_try) 2>&5
23988   ac_status=$?
23989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23990   test $ac_status = 0; }; }
23991     then
23992         gcc_cv_as_powerpc_vsx=yes
23993     else
23994       echo "configure: failed program was" >&5
23995       cat conftest.s >&5
23996     fi
23997     rm -f conftest.o conftest.s
23998   fi
23999 fi
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24001 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24002 if test $gcc_cv_as_powerpc_vsx = yes; then
24003
24004 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24005
24006 fi
24007
24008     case $target in
24009       *-*-aix*) conftest_s='    .machine "pwr7"
24010         .csect .text[PR]
24011         popcntd 3,3';;
24012       *) conftest_s='   .machine power7
24013         .text
24014         popcntd 3,3';;
24015     esac
24016
24017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24018 $as_echo_n "checking assembler for popcntd support... " >&6; }
24019 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24020   $as_echo_n "(cached) " >&6
24021 else
24022   gcc_cv_as_powerpc_popcntd=no
24023     if test $in_tree_gas = yes; then
24024     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24025   then gcc_cv_as_powerpc_popcntd=yes
24026 fi
24027   elif test x$gcc_cv_as != x; then
24028     echo "$conftest_s" > conftest.s
24029     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24030   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24031   (eval $ac_try) 2>&5
24032   ac_status=$?
24033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24034   test $ac_status = 0; }; }
24035     then
24036         gcc_cv_as_powerpc_popcntd=yes
24037     else
24038       echo "configure: failed program was" >&5
24039       cat conftest.s >&5
24040     fi
24041     rm -f conftest.o conftest.s
24042   fi
24043 fi
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24045 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24046 if test $gcc_cv_as_powerpc_popcntd = yes; then
24047
24048 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24049
24050 fi
24051
24052     case $target in
24053       *-*-aix*) conftest_s='    .csect .text[PR]
24054         lwsync';;
24055       *) conftest_s='   .text
24056         lwsync';;
24057     esac
24058
24059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24060 $as_echo_n "checking assembler for lwsync support... " >&6; }
24061 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24062   $as_echo_n "(cached) " >&6
24063 else
24064   gcc_cv_as_powerpc_lwsync=no
24065     if test $in_tree_gas = yes; then
24066     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24067   then gcc_cv_as_powerpc_lwsync=yes
24068 fi
24069   elif test x$gcc_cv_as != x; then
24070     echo "$conftest_s" > conftest.s
24071     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24072   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24073   (eval $ac_try) 2>&5
24074   ac_status=$?
24075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24076   test $ac_status = 0; }; }
24077     then
24078         gcc_cv_as_powerpc_lwsync=yes
24079     else
24080       echo "configure: failed program was" >&5
24081       cat conftest.s >&5
24082     fi
24083     rm -f conftest.o conftest.s
24084   fi
24085 fi
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24087 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24088 if test $gcc_cv_as_powerpc_lwsync = yes; then
24089
24090 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24091
24092 fi
24093
24094     case $target in
24095       *-*-aix*) conftest_s='    .machine "476"
24096         .csect .text[PR]
24097         dci 0';;
24098       *) conftest_s='   .machine "476"
24099         .text
24100         dci 0';;
24101     esac
24102
24103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24104 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24105 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24106   $as_echo_n "(cached) " >&6
24107 else
24108   gcc_cv_as_powerpc_dci=no
24109     if test $in_tree_gas = yes; then
24110     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24111   then gcc_cv_as_powerpc_dci=yes
24112 fi
24113   elif test x$gcc_cv_as != x; then
24114     echo "$conftest_s" > conftest.s
24115     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24116   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24117   (eval $ac_try) 2>&5
24118   ac_status=$?
24119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24120   test $ac_status = 0; }; }
24121     then
24122         gcc_cv_as_powerpc_dci=yes
24123     else
24124       echo "configure: failed program was" >&5
24125       cat conftest.s >&5
24126     fi
24127     rm -f conftest.o conftest.s
24128   fi
24129 fi
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24131 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24132 if test $gcc_cv_as_powerpc_dci = yes; then
24133
24134 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24135
24136 fi
24137
24138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24139 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24140 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24141   $as_echo_n "(cached) " >&6
24142 else
24143   gcc_cv_as_powerpc_gnu_attribute=no
24144     if test $in_tree_gas = yes; then
24145     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24146   then gcc_cv_as_powerpc_gnu_attribute=yes
24147 fi
24148   elif test x$gcc_cv_as != x; then
24149     echo '.gnu_attribute 4,1' > conftest.s
24150     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24151   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24152   (eval $ac_try) 2>&5
24153   ac_status=$?
24154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155   test $ac_status = 0; }; }
24156     then
24157         gcc_cv_as_powerpc_gnu_attribute=yes
24158     else
24159       echo "configure: failed program was" >&5
24160       cat conftest.s >&5
24161     fi
24162     rm -f conftest.o conftest.s
24163   fi
24164 fi
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24166 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24167 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24168
24169 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24170
24171 fi
24172
24173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24174 $as_echo_n "checking assembler for tls marker support... " >&6; }
24175 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24176   $as_echo_n "(cached) " >&6
24177 else
24178   gcc_cv_as_powerpc_tls_markers=no
24179     if test $in_tree_gas = yes; then
24180     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24181   then gcc_cv_as_powerpc_tls_markers=yes
24182 fi
24183   elif test x$gcc_cv_as != x; then
24184     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24185     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24186   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24187   (eval $ac_try) 2>&5
24188   ac_status=$?
24189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24190   test $ac_status = 0; }; }
24191     then
24192         gcc_cv_as_powerpc_tls_markers=yes
24193     else
24194       echo "configure: failed program was" >&5
24195       cat conftest.s >&5
24196     fi
24197     rm -f conftest.o conftest.s
24198   fi
24199 fi
24200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24201 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24202 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24203
24204 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24205
24206 fi
24207
24208     case $target in
24209       *-*-aix*)
24210         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24211 $as_echo_n "checking assembler for .ref support... " >&6; }
24212 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24213   $as_echo_n "(cached) " >&6
24214 else
24215   gcc_cv_as_aix_ref=no
24216     if test $in_tree_gas = yes; then
24217     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24218   then :
24219 fi
24220   elif test x$gcc_cv_as != x; then
24221     echo '      .csect stuff[rw]
24222              stuff:
24223                 .long 1
24224                 .extern sym
24225                 .ref sym
24226           ' > conftest.s
24227     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24228   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24229   (eval $ac_try) 2>&5
24230   ac_status=$?
24231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24232   test $ac_status = 0; }; }
24233     then
24234         gcc_cv_as_aix_ref=yes
24235     else
24236       echo "configure: failed program was" >&5
24237       cat conftest.s >&5
24238     fi
24239     rm -f conftest.o conftest.s
24240   fi
24241 fi
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24243 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24244 if test $gcc_cv_as_aix_ref = yes; then
24245
24246 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24247
24248 fi
24249         ;;
24250     esac
24251     ;;
24252
24253   mips*-*-*)
24254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24255 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24256 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24257   $as_echo_n "(cached) " >&6
24258 else
24259   gcc_cv_as_mips_explicit_relocs=no
24260     if test $in_tree_gas = yes; then
24261     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24262   then gcc_cv_as_mips_explicit_relocs=yes
24263 fi
24264   elif test x$gcc_cv_as != x; then
24265     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
24266     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24267   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24268   (eval $ac_try) 2>&5
24269   ac_status=$?
24270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24271   test $ac_status = 0; }; }
24272     then
24273         gcc_cv_as_mips_explicit_relocs=yes
24274     else
24275       echo "configure: failed program was" >&5
24276       cat conftest.s >&5
24277     fi
24278     rm -f conftest.o conftest.s
24279   fi
24280 fi
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24282 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24283 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24284   if test x$target_cpu_default = x
24285        then target_cpu_default=MASK_EXPLICIT_RELOCS
24286        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24287        fi
24288 fi
24289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24290 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24291 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24292   $as_echo_n "(cached) " >&6
24293 else
24294   gcc_cv_as_mips_no_shared=no
24295     if test $in_tree_gas = yes; then
24296     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24297   then gcc_cv_as_mips_no_shared=yes
24298 fi
24299   elif test x$gcc_cv_as != x; then
24300     echo 'nop' > conftest.s
24301     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24302   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24303   (eval $ac_try) 2>&5
24304   ac_status=$?
24305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24306   test $ac_status = 0; }; }
24307     then
24308         gcc_cv_as_mips_no_shared=yes
24309     else
24310       echo "configure: failed program was" >&5
24311       cat conftest.s >&5
24312     fi
24313     rm -f conftest.o conftest.s
24314   fi
24315 fi
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24317 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24318 if test $gcc_cv_as_mips_no_shared = yes; then
24319
24320 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24321
24322 fi
24323
24324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24325 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24326 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24327   $as_echo_n "(cached) " >&6
24328 else
24329   gcc_cv_as_mips_gnu_attribute=no
24330     if test $in_tree_gas = yes; then
24331     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24332   then gcc_cv_as_mips_gnu_attribute=yes
24333 fi
24334   elif test x$gcc_cv_as != x; then
24335     echo '.gnu_attribute 4,1' > conftest.s
24336     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24337   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24338   (eval $ac_try) 2>&5
24339   ac_status=$?
24340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24341   test $ac_status = 0; }; }
24342     then
24343         gcc_cv_as_mips_gnu_attribute=yes
24344     else
24345       echo "configure: failed program was" >&5
24346       cat conftest.s >&5
24347     fi
24348     rm -f conftest.o conftest.s
24349   fi
24350 fi
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24352 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24353 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24354
24355 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24356
24357 fi
24358
24359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24360 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24361 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24362   $as_echo_n "(cached) " >&6
24363 else
24364   gcc_cv_as_mips_dtprelword=no
24365     if test $in_tree_gas = yes; then
24366     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24367   then gcc_cv_as_mips_dtprelword=yes
24368 fi
24369   elif test x$gcc_cv_as != x; then
24370     echo '.section .tdata,"awT",@progbits
24371 x:
24372         .word 2
24373         .text
24374         .dtprelword x+0x8000' > conftest.s
24375     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24376   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24377   (eval $ac_try) 2>&5
24378   ac_status=$?
24379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24380   test $ac_status = 0; }; }
24381     then
24382         gcc_cv_as_mips_dtprelword=yes
24383     else
24384       echo "configure: failed program was" >&5
24385       cat conftest.s >&5
24386     fi
24387     rm -f conftest.o conftest.s
24388   fi
24389 fi
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24391 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24392 if test $gcc_cv_as_mips_dtprelword = yes; then
24393
24394 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24395
24396 fi
24397
24398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24399 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24400     gcc_cv_as_ld_jalr_reloc=no
24401     if test $gcc_cv_as_mips_explicit_relocs = yes; then
24402       if test $in_tree_ld = yes ; then
24403         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 \
24404            && test $in_tree_ld_is_elf = yes; then
24405           gcc_cv_as_ld_jalr_reloc=yes
24406         fi
24407       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24408         echo '  .ent x' > conftest.s
24409         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
24410         echo '  ld $25,%call16(y)($28)' >> conftest.s
24411         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
24412         echo '1:        jalr $25' >> conftest.s
24413         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
24414         echo '1:        jalr $25' >> conftest.s
24415         echo '  .end x' >> conftest.s
24416         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24417            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24418           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24419              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24420             gcc_cv_as_ld_jalr_reloc=yes
24421           fi
24422         fi
24423         rm -f conftest.*
24424       fi
24425     fi
24426     if test $gcc_cv_as_ld_jalr_reloc = yes; then
24427       if test x$target_cpu_default = x; then
24428         target_cpu_default=MASK_RELAX_PIC_CALLS
24429       else
24430         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24431       fi
24432     fi
24433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24434 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24435
24436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24437 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24438 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24439   $as_echo_n "(cached) " >&6
24440 else
24441   gcc_cv_ld_mips_personality_relaxation=no
24442        if test $in_tree_ld = yes ; then
24443          if test "$gcc_cv_gld_major_version" -eq 2 \
24444                  -a "$gcc_cv_gld_minor_version" -ge 21 \
24445                  -o "$gcc_cv_gld_major_version" -gt 2; then
24446            gcc_cv_ld_mips_personality_relaxation=yes
24447          fi
24448        elif test x$gcc_cv_as != x \
24449                  -a x$gcc_cv_ld != x \
24450                  -a x$gcc_cv_readelf != x ; then
24451          cat > conftest.s <<EOF
24452         .cfi_startproc
24453         .cfi_personality 0x80,indirect_ptr
24454         .ent test
24455 test:
24456         nop
24457         .end test
24458         .cfi_endproc
24459
24460         .section .data,"aw",@progbits
24461 indirect_ptr:
24462         .dc.a personality
24463 EOF
24464          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24465             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24466            if $gcc_cv_readelf -d conftest 2>&1 \
24467               | grep TEXTREL > /dev/null 2>&1; then
24468              :
24469            elif $gcc_cv_readelf --relocs conftest 2>&1 \
24470                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24471              :
24472            else
24473              gcc_cv_ld_mips_personality_relaxation=yes
24474            fi
24475          fi
24476        fi
24477        rm -f conftest.s conftest.o conftest
24478 fi
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24480 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24481     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24482
24483 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24484
24485     fi
24486     ;;
24487 esac
24488
24489 # Mips and HP-UX need the GNU assembler.
24490 # Linux on IA64 might be able to use the Intel assembler.
24491
24492 case "$target" in
24493   mips*-*-* | *-*-hpux* )
24494     if test x$gas_flag = xyes \
24495        || test x"$host" != x"$build" \
24496        || test ! -x "$gcc_cv_as" \
24497        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24498       :
24499     else
24500       echo "*** This configuration requires the GNU assembler" >&2
24501       exit 1
24502     fi
24503     ;;
24504 esac
24505
24506 # ??? Not all targets support dwarf2 debug_line, even within a version
24507 # of gas.  Moreover, we need to emit a valid instruction to trigger any
24508 # info to the output file.  So, as supported targets are added to gas 2.11,
24509 # add some instruction here to (also) show we expect this might work.
24510 # ??? Once 2.11 is released, probably need to add first known working
24511 # version to the per-target configury.
24512 case "$target" in
24513   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24514   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24515   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24516   | spu-*-* | fido*-*-* | m32c-*-*)
24517     insn="nop"
24518     ;;
24519   ia64*-*-* | s390*-*-*)
24520     insn="nop 0"
24521     ;;
24522   mmix-*-*)
24523     insn="swym 0"
24524     ;;
24525 esac
24526 if test x"$insn" != x; then
24527  conftest_s="\
24528         .file 1 \"conftest.s\"
24529         .loc 1 3 0
24530         $insn"
24531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24532 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24533 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24534   $as_echo_n "(cached) " >&6
24535 else
24536   gcc_cv_as_dwarf2_debug_line=no
24537     if test $in_tree_gas = yes; then
24538     if test $in_tree_gas_is_elf = yes \
24539   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24540   then gcc_cv_as_dwarf2_debug_line=yes
24541 fi
24542   elif test x$gcc_cv_as != x; then
24543     echo "$conftest_s" > conftest.s
24544     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24545   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24546   (eval $ac_try) 2>&5
24547   ac_status=$?
24548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24549   test $ac_status = 0; }; }
24550     then
24551         if test x$gcc_cv_objdump != x \
24552    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24553       | grep debug_line > /dev/null 2>&1; then
24554      gcc_cv_as_dwarf2_debug_line=yes
24555    fi
24556     else
24557       echo "configure: failed program was" >&5
24558       cat conftest.s >&5
24559     fi
24560     rm -f conftest.o conftest.s
24561   fi
24562 fi
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24564 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24565
24566
24567 # The .debug_line file table must be in the exact order that
24568 # we specified the files, since these indices are also used
24569 # by DW_AT_decl_file.  Approximate this test by testing if
24570 # the assembler bitches if the same index is assigned twice.
24571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24572 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24573 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24574   $as_echo_n "(cached) " >&6
24575 else
24576   gcc_cv_as_dwarf2_file_buggy=no
24577   if test x$gcc_cv_as != x; then
24578     echo '      .file 1 "foo.s"
24579         .file 1 "bar.s"' > conftest.s
24580     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24581   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582   (eval $ac_try) 2>&5
24583   ac_status=$?
24584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585   test $ac_status = 0; }; }
24586     then
24587         gcc_cv_as_dwarf2_file_buggy=yes
24588     else
24589       echo "configure: failed program was" >&5
24590       cat conftest.s >&5
24591     fi
24592     rm -f conftest.o conftest.s
24593   fi
24594 fi
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24596 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24597
24598
24599  if test $gcc_cv_as_dwarf2_debug_line = yes \
24600  && test $gcc_cv_as_dwarf2_file_buggy = no; then
24601
24602 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24603
24604  fi
24605
24606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24607 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24608 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24609   $as_echo_n "(cached) " >&6
24610 else
24611   gcc_cv_as_gdwarf2_flag=no
24612     if test $in_tree_gas = yes; then
24613     if test $in_tree_gas_is_elf = yes \
24614   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24615   then gcc_cv_as_gdwarf2_flag=yes
24616 fi
24617   elif test x$gcc_cv_as != x; then
24618     echo "$insn" > conftest.s
24619     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24620   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24621   (eval $ac_try) 2>&5
24622   ac_status=$?
24623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24624   test $ac_status = 0; }; }
24625     then
24626         gcc_cv_as_gdwarf2_flag=yes
24627     else
24628       echo "configure: failed program was" >&5
24629       cat conftest.s >&5
24630     fi
24631     rm -f conftest.o conftest.s
24632   fi
24633 fi
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24635 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24636 if test $gcc_cv_as_gdwarf2_flag = yes; then
24637
24638 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24639
24640 fi
24641
24642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24643 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24644 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24645   $as_echo_n "(cached) " >&6
24646 else
24647   gcc_cv_as_gstabs_flag=no
24648     if test $in_tree_gas = yes; then
24649     if test $in_tree_gas_is_elf = yes \
24650   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24651   then gcc_cv_as_gstabs_flag=yes
24652 fi
24653   elif test x$gcc_cv_as != x; then
24654     echo "$insn" > conftest.s
24655     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24656   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24657   (eval $ac_try) 2>&5
24658   ac_status=$?
24659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24660   test $ac_status = 0; }; }
24661     then
24662         # The native Solaris 9/Intel assembler doesn't understand --gstabs
24663    # and warns about it, but still exits successfully.  So check for
24664    # this.
24665    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24666   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24667   (eval $ac_try) 2>&5
24668   ac_status=$?
24669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24670   test $ac_status = 0; }; }
24671    then :
24672    else gcc_cv_as_gstabs_flag=yes
24673    fi
24674     else
24675       echo "configure: failed program was" >&5
24676       cat conftest.s >&5
24677     fi
24678     rm -f conftest.o conftest.s
24679   fi
24680 fi
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24682 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24683 if test $gcc_cv_as_gstabs_flag = yes; then
24684
24685 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24686
24687 fi
24688
24689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24690 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24691 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24692   $as_echo_n "(cached) " >&6
24693 else
24694   gcc_cv_as_debug_prefix_map_flag=no
24695     if test $in_tree_gas = yes; then
24696     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24697   then gcc_cv_as_debug_prefix_map_flag=yes
24698 fi
24699   elif test x$gcc_cv_as != x; then
24700     echo "$insn" > conftest.s
24701     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24702   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24703   (eval $ac_try) 2>&5
24704   ac_status=$?
24705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24706   test $ac_status = 0; }; }
24707     then
24708         gcc_cv_as_debug_prefix_map_flag=yes
24709     else
24710       echo "configure: failed program was" >&5
24711       cat conftest.s >&5
24712     fi
24713     rm -f conftest.o conftest.s
24714   fi
24715 fi
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24717 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24718 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24719
24720 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24721
24722 fi
24723 fi
24724
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24726 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24727 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24728   $as_echo_n "(cached) " >&6
24729 else
24730   gcc_cv_as_lcomm_with_alignment=no
24731   if test x$gcc_cv_as != x; then
24732     echo '.lcomm bar,4,16' > conftest.s
24733     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24734   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24735   (eval $ac_try) 2>&5
24736   ac_status=$?
24737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24738   test $ac_status = 0; }; }
24739     then
24740         gcc_cv_as_lcomm_with_alignment=yes
24741     else
24742       echo "configure: failed program was" >&5
24743       cat conftest.s >&5
24744     fi
24745     rm -f conftest.o conftest.s
24746   fi
24747 fi
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24749 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24750 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24751
24752 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24753
24754 fi
24755
24756 # Check whether --enable-gnu-unique-object was given.
24757 if test "${enable_gnu_unique_object+set}" = set; then :
24758   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24759     yes | no) ;;
24760     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24761 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24762   esac
24763 else
24764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24765 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24766 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24767   $as_echo_n "(cached) " >&6
24768 else
24769   gcc_cv_as_gnu_unique_object=no
24770     if test $in_tree_gas = yes; then
24771     if test $in_tree_gas_is_elf = yes \
24772   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24773   then gcc_cv_as_gnu_unique_object=yes
24774 fi
24775   elif test x$gcc_cv_as != x; then
24776     echo '.type foo, @gnu_unique_object' > conftest.s
24777     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24778   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24779   (eval $ac_try) 2>&5
24780   ac_status=$?
24781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24782   test $ac_status = 0; }; }
24783     then
24784         gcc_cv_as_gnu_unique_object=yes
24785     else
24786       echo "configure: failed program was" >&5
24787       cat conftest.s >&5
24788     fi
24789     rm -f conftest.o conftest.s
24790   fi
24791 fi
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24793 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24794 if test $gcc_cv_as_gnu_unique_object = yes; then
24795   # Also check for ld.so support, i.e. glibc 2.11 or higher.
24796    if test x$host = x$build -a x$host = x$target &&
24797        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24798       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24799       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24800       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24801       if test "$glibcnum" -ge 2011 ; then
24802         enable_gnu_unique_object=yes
24803       fi
24804     fi
24805 fi
24806 fi
24807
24808 if test x$enable_gnu_unique_object = xyes; then
24809
24810 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24811
24812 fi
24813
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24815 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24816 if test "${gcc_cv_as_line_zero+set}" = set; then :
24817   $as_echo_n "(cached) " >&6
24818 else
24819   gcc_cv_as_line_zero=no
24820   if test $in_tree_gas = yes; then
24821     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24822   then gcc_cv_as_line_zero=yes
24823 fi
24824   elif test "x$gcc_cv_as" != x; then
24825     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24826     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24827   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24828   (eval $ac_try) 2>&5
24829   ac_status=$?
24830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24831   test $ac_status = 0; }; } &&
24832        test "x`cat conftest.out`" = x
24833     then
24834       gcc_cv_as_line_zero=yes
24835     else
24836       echo "configure: failed program was" >&5
24837       cat conftest.s >&5
24838       echo "configure: error output was" >&5
24839       cat conftest.out >&5
24840     fi
24841     rm -f conftest.o conftest.s conftest.out
24842   fi
24843 fi
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24845 $as_echo "$gcc_cv_as_line_zero" >&6; }
24846 if test "x$gcc_cv_as_line_zero" = xyes; then
24847
24848 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24849
24850 fi
24851
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24853 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24854 gcc_cv_ld_eh_frame_hdr=no
24855 if test $in_tree_ld = yes ; then
24856   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 \
24857      && test $in_tree_ld_is_elf = yes; then
24858     gcc_cv_ld_eh_frame_hdr=yes
24859   fi
24860 elif test x$gcc_cv_ld != x; then
24861         # Check if linker supports --eh-frame-hdr option
24862         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24863                 gcc_cv_ld_eh_frame_hdr=yes
24864         fi
24865 fi
24866
24867 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24868
24869 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24870
24871 fi
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24873 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24874
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24876 $as_echo_n "checking linker position independent executable support... " >&6; }
24877 gcc_cv_ld_pie=no
24878 if test $in_tree_ld = yes ; then
24879   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 \
24880      && test $in_tree_ld_is_elf = yes; then
24881     gcc_cv_ld_pie=yes
24882   fi
24883 elif test x$gcc_cv_ld != x; then
24884         # Check if linker supports -pie option
24885         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24886                 gcc_cv_ld_pie=yes
24887         fi
24888 fi
24889 if test x"$gcc_cv_ld_pie" = xyes; then
24890
24891 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24892
24893 fi
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24895 $as_echo "$gcc_cv_ld_pie" >&6; }
24896
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24898 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24899 gcc_cv_ld_eh_gc_sections=no
24900 if test $in_tree_ld = yes ; then
24901   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 \
24902      && test $in_tree_ld_is_elf = yes; then
24903     gcc_cv_ld_eh_gc_sections=yes
24904   fi
24905 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24906   cat > conftest.s <<EOF
24907         .section        .text
24908 .globl _start
24909         .type _start, @function
24910 _start:
24911         .long foo
24912         .size _start, .-_start
24913         .section        .text.foo,"ax",@progbits
24914         .type foo, @function
24915 foo:
24916         .long 0
24917         .size foo, .-foo
24918         .section        .gcc_except_table.foo,"a",@progbits
24919 .L0:
24920         .long 0
24921         .section        .eh_frame,"a",@progbits
24922         .long .L0
24923 EOF
24924   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24925     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24926          | grep "gc-sections option ignored" > /dev/null; then
24927       gcc_cv_ld_eh_gc_sections=no
24928     elif $gcc_cv_objdump -h conftest 2> /dev/null \
24929          | grep gcc_except_table > /dev/null; then
24930       gcc_cv_ld_eh_gc_sections=yes
24931       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24932       if test x$gcc_cv_as_comdat_group != xyes; then
24933         gcc_cv_ld_eh_gc_sections=no
24934         cat > conftest.s <<EOF
24935         .section        .text
24936 .globl _start
24937         .type _start, @function
24938 _start:
24939         .long foo
24940         .size _start, .-_start
24941         .section        .gnu.linkonce.t.foo,"ax",@progbits
24942         .type foo, @function
24943 foo:
24944         .long 0
24945         .size foo, .-foo
24946         .section        .gcc_except_table.foo,"a",@progbits
24947 .L0:
24948         .long 0
24949         .section        .eh_frame,"a",@progbits
24950         .long .L0
24951 EOF
24952         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24953           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24954                | grep "gc-sections option ignored" > /dev/null; then
24955             gcc_cv_ld_eh_gc_sections=no
24956           elif $gcc_cv_objdump -h conftest 2> /dev/null \
24957                | grep gcc_except_table > /dev/null; then
24958             gcc_cv_ld_eh_gc_sections=yes
24959           fi
24960         fi
24961       fi
24962     fi
24963   fi
24964   rm -f conftest.s conftest.o conftest
24965 fi
24966 case "$target" in
24967   hppa*-*-linux*)
24968     # ??? This apparently exposes a binutils bug with PC-relative relocations.
24969     gcc_cv_ld_eh_gc_sections=no
24970     ;;
24971 esac
24972 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24973
24974 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24975
24976 fi
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24978 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24979
24980 # --------
24981 # UNSORTED
24982 # --------
24983
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24985 $as_echo_n "checking linker --as-needed support... " >&6; }
24986 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24987   $as_echo_n "(cached) " >&6
24988 else
24989   gcc_cv_ld_as_needed=no
24990 if test $in_tree_ld = yes ; then
24991   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 \
24992      && test $in_tree_ld_is_elf = yes; then
24993     gcc_cv_ld_as_needed=yes
24994   fi
24995 elif test x$gcc_cv_ld != x; then
24996         # Check if linker supports --as-needed and --no-as-needed options
24997         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24998                 gcc_cv_ld_as_needed=yes
24999         fi
25000 fi
25001
25002 fi
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25004 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25005 if test x"$gcc_cv_ld_as_needed" = xyes; then
25006
25007 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25008
25009 fi
25010
25011 case "$target:$tm_file" in
25012   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25014 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25015 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25016   $as_echo_n "(cached) " >&6
25017 else
25018   gcc_cv_ld_no_dot_syms=no
25019     if test $in_tree_ld = yes ; then
25020       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
25021         gcc_cv_ld_no_dot_syms=yes
25022       fi
25023     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25024       cat > conftest1.s <<EOF
25025         .text
25026         bl .foo
25027 EOF
25028       cat > conftest2.s <<EOF
25029         .section ".opd","aw"
25030         .align 3
25031         .globl foo
25032         .type foo,@function
25033 foo:
25034         .quad .LEfoo,.TOC.@tocbase,0
25035         .text
25036 .LEfoo:
25037         blr
25038         .size foo,.-.LEfoo
25039 EOF
25040       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25041          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25042          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25043         gcc_cv_ld_no_dot_syms=yes
25044       fi
25045       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25046     fi
25047
25048 fi
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25050 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25051     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25052
25053 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25054
25055     fi
25056
25057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25058 $as_echo_n "checking linker large toc support... " >&6; }
25059 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25060   $as_echo_n "(cached) " >&6
25061 else
25062   gcc_cv_ld_large_toc=no
25063     if test $in_tree_ld = yes ; then
25064       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
25065         gcc_cv_ld_large_toc=yes
25066       fi
25067     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25068       cat > conftest.s <<EOF
25069         .section ".tbss","awT",@nobits
25070         .align 3
25071 ie0:    .space 8
25072         .global _start
25073         .text
25074 _start:
25075         addis 9,13,ie0@got@tprel@ha
25076         ld 9,ie0@got@tprel@l(9)
25077 EOF
25078       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25079          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25080         gcc_cv_ld_large_toc=yes
25081       fi
25082       rm -f conftest conftest.o conftest.s
25083     fi
25084
25085 fi
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25087 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25088     if test x"$gcc_cv_ld_large_toc" = xyes; then
25089
25090 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25091
25092     fi
25093     ;;
25094 esac
25095
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25097 $as_echo_n "checking linker --build-id support... " >&6; }
25098 if test "${gcc_cv_ld_buildid+set}" = set; then :
25099   $as_echo_n "(cached) " >&6
25100 else
25101   gcc_cv_ld_buildid=no
25102   if test $in_tree_ld = yes ; then
25103     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25104        "$gcc_cv_gld_minor_version" -ge 18 -o \
25105        "$gcc_cv_gld_major_version" -gt 2 \
25106        && test $in_tree_ld_is_elf = yes; then
25107       gcc_cv_ld_buildid=yes
25108     fi
25109   elif test x$gcc_cv_ld != x; then
25110     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25111       gcc_cv_ld_buildid=yes
25112     fi
25113   fi
25114 fi
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25116 $as_echo "$gcc_cv_ld_buildid" >&6; }
25117 if test x"$gcc_cv_ld_buildid" = xyes; then
25118
25119 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25120
25121 fi
25122
25123 # Check whether --enable-linker-build-id was given.
25124 if test "${enable_linker_build_id+set}" = set; then :
25125   enableval=$enable_linker_build_id;
25126 else
25127   enable_linker_build_id=no
25128 fi
25129
25130
25131 if test x"$enable_linker_build_id" = xyes; then
25132   if test x"$gcc_cv_ld_buildid" = xyes; then
25133
25134 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25135
25136   else
25137     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25138 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25139   fi
25140 fi
25141
25142 # In binutils 2.21, GNU ld gained support for new emulations fully
25143 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25145 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25146 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25147   $as_echo_n "(cached) " >&6
25148 else
25149   gcc_cv_ld_sol2_emulation=no
25150   if test $in_tree_ld = yes ; then
25151     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25152        "$gcc_cv_gld_minor_version" -ge 21 -o \
25153        "$gcc_cv_gld_major_version" -gt 2 \
25154        && test $in_tree_ld_is_elf = yes; then
25155       gcc_cv_ld_sol2_emulation=yes
25156     fi
25157   elif test x$gcc_cv_ld != x; then
25158     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25159        grep _sol2 > /dev/null; then
25160       gcc_cv_ld_sol2_emulation=yes
25161     fi
25162   fi
25163 fi
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25165 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25166 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25167
25168 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25169
25170 fi
25171
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25173 $as_echo_n "checking linker --sysroot support... " >&6; }
25174 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25175   $as_echo_n "(cached) " >&6
25176 else
25177   gcc_cv_ld_sysroot=no
25178   if test $in_tree_ld = yes ; then
25179       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
25180         gcc_cv_ld_sysroot=yes
25181       fi
25182   elif test x$gcc_cv_ld != x; then
25183     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25184       gcc_cv_ld_sysroot=yes
25185     fi
25186   fi
25187 fi
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25189 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25190 if test x"$gcc_cv_ld_sysroot" = xyes; then
25191
25192 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25193
25194 fi
25195
25196 if test x$with_sysroot = x && test x$host = x$target \
25197    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25198    && test "$prefix" != "NONE"; then
25199
25200 cat >>confdefs.h <<_ACEOF
25201 #define PREFIX_INCLUDE_DIR "$prefix/include"
25202 _ACEOF
25203
25204 fi
25205
25206 # Test for stack protector support in target C library.
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25208 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25209 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25210   $as_echo_n "(cached) " >&6
25211 else
25212   gcc_cv_libc_provides_ssp=no
25213     case "$target" in
25214        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25215       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25216         if test "x$with_headers" != x; then
25217           glibc_header_dir=$with_headers
25218         elif test "x$with_sysroot" = x; then
25219           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25220         elif test "x$with_build_sysroot" != "x"; then
25221           glibc_header_dir="${with_build_sysroot}/usr/include"
25222         elif test "x$with_sysroot" = xyes; then
25223           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25224         else
25225           glibc_header_dir="${with_sysroot}/usr/include"
25226         fi
25227       else
25228         glibc_header_dir=/usr/include
25229       fi
25230       # glibc 2.4 and later provides __stack_chk_fail and
25231       # either __stack_chk_guard, or TLS access to stack guard canary.
25232       if test -f $glibc_header_dir/features.h \
25233          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
25234             $glibc_header_dir/features.h > /dev/null; then
25235         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
25236            $glibc_header_dir/features.h > /dev/null; then
25237           gcc_cv_libc_provides_ssp=yes
25238         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
25239              $glibc_header_dir/features.h > /dev/null \
25240              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
25241              $glibc_header_dir/features.h > /dev/null; then
25242           gcc_cv_libc_provides_ssp=yes
25243         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
25244              $glibc_header_dir/features.h > /dev/null && \
25245              test -f $glibc_header_dir/bits/uClibc_config.h && \
25246              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
25247              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25248           gcc_cv_libc_provides_ssp=yes
25249         fi
25250       fi
25251         ;;
25252        *-*-gnu*)
25253          # Avoid complicated tests (see
25254          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25255          # simply assert that glibc does provide this, which is true for all
25256          # realistically usable GNU/Hurd configurations.
25257          gcc_cv_libc_provides_ssp=yes;;
25258        *-*-darwin* | *-*-freebsd*)
25259          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25260 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25261   gcc_cv_libc_provides_ssp=yes
25262 else
25263   echo "no __stack_chk_fail on this target"
25264 fi
25265
25266         ;;
25267   *) gcc_cv_libc_provides_ssp=no ;;
25268     esac
25269 fi
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25271 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25272
25273 if test x$gcc_cv_libc_provides_ssp = xyes; then
25274
25275 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25276
25277 fi
25278
25279 # Check if TFmode long double should be used by default or not.
25280 # Some glibc targets used DFmode long double, but with glibc 2.4
25281 # and later they can use TFmode.
25282 case "$target" in
25283   powerpc*-*-linux* | \
25284   powerpc*-*-gnu* | \
25285   sparc*-*-linux* | \
25286   s390*-*-linux* | \
25287   alpha*-*-linux*)
25288
25289 # Check whether --with-long-double-128 was given.
25290 if test "${with_long_double_128+set}" = set; then :
25291   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25292 else
25293   gcc_cv_target_ldbl128=no
25294       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25295         if test "x$with_sysroot" = x; then
25296           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25297         elif test "x$with_build_sysroot" != "x"; then
25298           glibc_header_dir="${with_build_sysroot}/usr/include"
25299         elif test "x$with_sysroot" = xyes; then
25300           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25301         else
25302           glibc_header_dir="${with_sysroot}/usr/include"
25303         fi
25304       else
25305         glibc_header_dir=/usr/include
25306       fi
25307       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25308         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25309       && gcc_cv_target_ldbl128=yes
25310
25311 fi
25312
25313     ;;
25314 esac
25315 if test x$gcc_cv_target_ldbl128 = xyes; then
25316
25317 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25318
25319 fi
25320
25321 # Find out what GC implementation we want, or may, use.
25322
25323 # Check whether --with-gc was given.
25324 if test "${with_gc+set}" = set; then :
25325   withval=$with_gc; case "$withval" in
25326   page)
25327     GGC=ggc-$withval
25328     ;;
25329   zone)
25330     GGC=ggc-$withval
25331
25332 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25333
25334     ;;
25335   *)
25336     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25337     ;;
25338 esac
25339 else
25340   GGC=ggc-page
25341 fi
25342
25343
25344 echo "Using $GGC for garbage collection."
25345
25346 # Libraries to use on the host.  This will normally be set by the top
25347 # level Makefile.  Here we simply capture the value for our Makefile.
25348 if test -z "${HOST_LIBS+set}"; then
25349   HOST_LIBS=
25350 fi
25351
25352
25353 # Use the system's zlib library.
25354 zlibdir=-L../zlib
25355 zlibinc="-I\$(srcdir)/../zlib"
25356
25357 # Check whether --with-system-zlib was given.
25358 if test "${with_system_zlib+set}" = set; then :
25359   withval=$with_system_zlib; zlibdir=
25360 zlibinc=
25361
25362 fi
25363
25364
25365
25366
25367
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25369 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25370     # Check whether --enable-maintainer-mode was given.
25371 if test "${enable_maintainer_mode+set}" = set; then :
25372   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25373 else
25374   maintainer_mode=no
25375 fi
25376
25377
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25379 $as_echo "$maintainer_mode" >&6; }
25380
25381 if test "$maintainer_mode" = "yes"; then
25382   MAINT=''
25383 else
25384   MAINT='#'
25385 fi
25386
25387 # --------------
25388 # Language hooks
25389 # --------------
25390
25391 # Make empty files to contain the specs and options for each language.
25392 # Then add #include lines to for a compiler that has specs and/or options.
25393
25394 subdirs=
25395 lang_opt_files=
25396 lang_specs_files=
25397 lang_tree_files=
25398 # These (without "all_") are set in each config-lang.in.
25399 # `language' must be a single word so is spelled singularly.
25400 all_languages=
25401 all_compilers=
25402 all_outputs='Makefile gccbug'
25403 # List of language makefile fragments.
25404 all_lang_makefrags=
25405 # Additional files for gengtype
25406 all_gtfiles="$target_gtfiles"
25407
25408 # These are the languages that are set in --enable-languages,
25409 # and are available in the GCC tree.
25410 all_selected_languages=
25411
25412 # Add the language fragments.
25413 # Languages are added via two mechanisms.  Some information must be
25414 # recorded in makefile variables, these are defined in config-lang.in.
25415 # We accumulate them and plug them into the main Makefile.
25416 # The other mechanism is a set of hooks for each of the main targets
25417 # like `clean', `install', etc.
25418
25419 language_hooks="Make-hooks"
25420
25421 for lang in ${srcdir}/*/config-lang.in
25422 do
25423         test "$lang" = "${srcdir}/*/config-lang.in" && continue
25424
25425         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
25426         if test "x$lang_alias" = x
25427         then
25428               echo "$lang doesn't set \$language." 1>&2
25429               exit 1
25430         fi
25431         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25432         subdirs="$subdirs $subdir"
25433
25434         # $gcc_subdir is where the gcc integration files are to be found
25435         # for a language, both for internal compiler purposes (compiler
25436         # sources implementing front-end to GCC tree converters), and for
25437         # build infrastructure purposes (Make-lang.in, etc.)
25438         #
25439         # This will be <subdir> (relative to $srcdir) if a line like
25440         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25441         # is found in <langdir>/config-lang.in, and will remain <langdir>
25442         # otherwise.
25443         #
25444         # Except for the language alias (fetched above), the regular
25445         # "config-lang.in" contents are always retrieved from $gcc_subdir,
25446         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25447         # only this and the language alias.
25448
25449         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
25450         if [ "$gcc_subdir" = "" ]; then
25451            gcc_subdir="$subdir"
25452         fi
25453
25454         case ",$enable_languages," in
25455         *,$lang_alias,*)
25456             all_selected_languages="$all_selected_languages $lang_alias"
25457             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25458                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25459             fi
25460             ;;
25461         esac
25462
25463         language=
25464         boot_language=
25465         compilers=
25466         outputs=
25467         gtfiles=
25468         subdir_requires=
25469         . ${srcdir}/$gcc_subdir/config-lang.in
25470         if test "x$language" = x
25471         then
25472                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25473                 exit 1
25474         fi
25475
25476         ok=:
25477         case ",$enable_languages," in
25478                 *,$lang_alias,*) ;;
25479                 *)
25480                         for i in $subdir_requires; do
25481                                 test -f "${srcdir}/$i/config-lang.in" && continue
25482                                 ok=false
25483                                 break
25484                         done
25485                 ;;
25486         esac
25487         $ok || continue
25488
25489         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25490         if test -f $srcdir/$gcc_subdir/lang.opt; then
25491             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25492         fi
25493         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25494             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25495         fi
25496         all_languages="$all_languages $language"
25497         all_compilers="$all_compilers $compilers"
25498         all_outputs="$all_outputs $outputs"
25499         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25500         case ",$enable_languages," in
25501                 *,lto,*)
25502
25503 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25504
25505                     enable_lto=yes
25506
25507                     # LTO needs to speak the platform's object file format, and has a
25508                     # number of implementations of the required binary file access APIs.
25509                     # ELF is the most common, and default.  We only link libelf if ELF
25510                     # is indeed the selected format.
25511                     LTO_BINARY_READER=${lto_binary_reader}
25512                     LTO_USE_LIBELF=-lelf
25513                     if test "x$lto_binary_reader" != "xlto-elf" ; then
25514                       LTO_USE_LIBELF=
25515                     fi
25516
25517
25518                     ;;
25519                 *) ;;
25520         esac
25521 done
25522
25523 # Pick up gtfiles for c
25524 gtfiles=
25525 . ${srcdir}/c-config-lang.in
25526 all_gtfiles="$all_gtfiles [c] $gtfiles"
25527
25528 check_languages=
25529 for language in $all_selected_languages
25530 do
25531         check_languages="$check_languages check-$language"
25532 done
25533
25534 # We link each language in with a set of hooks, reached indirectly via
25535 # lang.${target}.  Only do so for selected languages.
25536
25537 rm -f Make-hooks
25538 touch Make-hooks
25539 target_list="all.cross start.encap rest.encap tags \
25540         install-common install-man install-info install-pdf install-html dvi \
25541         pdf html uninstall info man srcextra srcman srcinfo \
25542         mostlyclean clean distclean maintainer-clean install-plugin"
25543
25544 for t in $target_list
25545 do
25546         x=
25547         for lang in $all_selected_languages
25548         do
25549                 x="$x $lang.$t"
25550         done
25551         echo "lang.$t: $x" >> Make-hooks
25552 done
25553
25554 # --------
25555 # UNSORTED
25556 # --------
25557
25558 # Create .gdbinit.
25559
25560 echo "dir ." > .gdbinit
25561 echo "dir ${srcdir}" >> .gdbinit
25562 if test x$gdb_needs_out_file_path = xyes
25563 then
25564         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25565 fi
25566 if test "x$subdirs" != x; then
25567         for s in $subdirs
25568         do
25569                 echo "dir ${srcdir}/$s" >> .gdbinit
25570         done
25571 fi
25572 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25573
25574 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25575
25576
25577
25578 # Find a directory in which to install a shared libgcc.
25579
25580 # Check whether --enable-version-specific-runtime-libs was given.
25581 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25582   enableval=$enable_version_specific_runtime_libs;
25583 fi
25584
25585
25586
25587 # Check whether --with-slibdir was given.
25588 if test "${with_slibdir+set}" = set; then :
25589   withval=$with_slibdir; slibdir="$with_slibdir"
25590 else
25591   if test "${enable_version_specific_runtime_libs+set}" = set; then
25592   slibdir='$(libsubdir)'
25593 elif test "$host" != "$target"; then
25594   slibdir='$(build_tooldir)/lib'
25595 else
25596   slibdir='$(libdir)'
25597 fi
25598 fi
25599
25600
25601
25602 # Substitute configuration variables
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665 # Echo link setup.
25666 if test x${build} = x${host} ; then
25667   if test x${host} = x${target} ; then
25668     echo "Links are now set up to build a native compiler for ${target}." 1>&2
25669   else
25670     echo "Links are now set up to build a cross-compiler" 1>&2
25671     echo " from ${host} to ${target}." 1>&2
25672   fi
25673 else
25674   if test x${host} = x${target} ; then
25675     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25676     echo " for ${target}." 1>&2
25677   else
25678     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25679     echo " from ${host} to ${target}." 1>&2
25680   fi
25681 fi
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691 if test "x${CLOOGLIBS}" != "x" ; then
25692
25693 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25694
25695 fi
25696
25697
25698
25699 if test "x${LIBELFLIBS}" != "x" ; then
25700
25701 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25702
25703 fi
25704
25705 # Check for plugin support
25706 # Check whether --enable-plugin was given.
25707 if test "${enable_plugin+set}" = set; then :
25708   enableval=$enable_plugin; enable_plugin=$enableval
25709 else
25710   enable_plugin=yes; default_plugin=yes
25711 fi
25712
25713
25714 pluginlibs=
25715 if test x"$enable_plugin" = x"yes"; then
25716
25717   case "${host}" in
25718     *-*-darwin*)
25719       export_sym_check="$gcc_cv_nm -g"
25720     ;;
25721     *)
25722       export_sym_check="$gcc_cv_objdump -T"
25723     ;;
25724   esac
25725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25726 $as_echo_n "checking for exported symbols... " >&6; }
25727   echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25728   ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25729   if $export_sym_check conftest | grep foobar > /dev/null; then
25730     : # No need to use a flag
25731   else
25732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25733 $as_echo_n "checking for -rdynamic... " >&6; }
25734     ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25735     if $export_sym_check conftest | grep foobar > /dev/null; then
25736       plugin_rdynamic=yes
25737       pluginlibs="-rdynamic"
25738     else
25739       plugin_rdynamic=no
25740       enable_plugin=no
25741     fi
25742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25743 $as_echo "$plugin_rdynamic" >&6; }
25744   fi
25745
25746   # Check -ldl
25747   saved_LIBS="$LIBS"
25748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25749 $as_echo_n "checking for library containing dlopen... " >&6; }
25750 if test "${ac_cv_search_dlopen+set}" = set; then :
25751   $as_echo_n "(cached) " >&6
25752 else
25753   ac_func_search_save_LIBS=$LIBS
25754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h.  */
25756
25757 /* Override any GCC internal prototype to avoid an error.
25758    Use char because int might match the return type of a GCC
25759    builtin and then its argument prototype would still apply.  */
25760 #ifdef __cplusplus
25761 extern "C"
25762 #endif
25763 char dlopen ();
25764 int
25765 main ()
25766 {
25767 return dlopen ();
25768   ;
25769   return 0;
25770 }
25771 _ACEOF
25772 for ac_lib in '' dl; do
25773   if test -z "$ac_lib"; then
25774     ac_res="none required"
25775   else
25776     ac_res=-l$ac_lib
25777     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25778   fi
25779   if ac_fn_c_try_link "$LINENO"; then :
25780   ac_cv_search_dlopen=$ac_res
25781 fi
25782 rm -f core conftest.err conftest.$ac_objext \
25783     conftest$ac_exeext
25784   if test "${ac_cv_search_dlopen+set}" = set; then :
25785   break
25786 fi
25787 done
25788 if test "${ac_cv_search_dlopen+set}" = set; then :
25789
25790 else
25791   ac_cv_search_dlopen=no
25792 fi
25793 rm conftest.$ac_ext
25794 LIBS=$ac_func_search_save_LIBS
25795 fi
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25797 $as_echo "$ac_cv_search_dlopen" >&6; }
25798 ac_res=$ac_cv_search_dlopen
25799 if test "$ac_res" != no; then :
25800   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25801
25802 fi
25803
25804   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25805     pluginlibs="$pluginlibs -ldl"
25806   fi
25807   LIBS="$saved_LIBS"
25808
25809   # Check that we can build shared objects with -fPIC -shared
25810   saved_LDFLAGS="$LDFLAGS"
25811   case "${host}" in
25812     *-*-darwin*)
25813       LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25814     ;;
25815     *)
25816       LDFLAGS="$LDFLAGS -fPIC -shared"
25817     ;;
25818   esac
25819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25820 $as_echo_n "checking for -fPIC -shared... " >&6; }
25821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25822 /* end confdefs.h.  */
25823 extern int X;
25824 int
25825 main ()
25826 {
25827 return X == 0;
25828   ;
25829   return 0;
25830 }
25831 _ACEOF
25832 if ac_fn_c_try_link "$LINENO"; then :
25833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25834 $as_echo "yes" >&6; }; have_pic_shared=yes
25835 else
25836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25837 $as_echo "no" >&6; }; have_pic_shared=no
25838 fi
25839 rm -f core conftest.err conftest.$ac_objext \
25840     conftest$ac_exeext conftest.$ac_ext
25841   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25842     pluginlibs=
25843     enable_plugin=no
25844   fi
25845   LDFLAGS="$saved_LDFLAGS"
25846
25847   # If plugin support had been requested but not available, fail.
25848   if test x"$enable_plugin" = x"no" ; then
25849     if test x"$default_plugin" != x"yes"; then
25850       as_fn_error "
25851 Building GCC with plugin support requires a host that supports
25852 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25853     fi
25854   fi
25855 fi
25856
25857
25858
25859 if test x"$enable_plugin" = x"yes"; then
25860
25861 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25862
25863 fi
25864
25865 # Configure the subdirectories
25866 # AC_CONFIG_SUBDIRS($subdirs)
25867
25868 # Create the Makefile
25869 # and configure language subdirectories
25870 ac_config_files="$ac_config_files $all_outputs"
25871
25872
25873 ac_config_commands="$ac_config_commands default"
25874
25875 cat >confcache <<\_ACEOF
25876 # This file is a shell script that caches the results of configure
25877 # tests run on this system so they can be shared between configure
25878 # scripts and configure runs, see configure's option --config-cache.
25879 # It is not useful on other systems.  If it contains results you don't
25880 # want to keep, you may remove or edit it.
25881 #
25882 # config.status only pays attention to the cache file if you give it
25883 # the --recheck option to rerun configure.
25884 #
25885 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25886 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25887 # following values.
25888
25889 _ACEOF
25890
25891 # The following way of writing the cache mishandles newlines in values,
25892 # but we know of no workaround that is simple, portable, and efficient.
25893 # So, we kill variables containing newlines.
25894 # Ultrix sh set writes to stderr and can't be redirected directly,
25895 # and sets the high bit in the cache file unless we assign to the vars.
25896 (
25897   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25898     eval ac_val=\$$ac_var
25899     case $ac_val in #(
25900     *${as_nl}*)
25901       case $ac_var in #(
25902       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25903 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25904       esac
25905       case $ac_var in #(
25906       _ | IFS | as_nl) ;; #(
25907       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25908       *) { eval $ac_var=; unset $ac_var;} ;;
25909       esac ;;
25910     esac
25911   done
25912
25913   (set) 2>&1 |
25914     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25915     *${as_nl}ac_space=\ *)
25916       # `set' does not quote correctly, so add quotes: double-quote
25917       # substitution turns \\\\ into \\, and sed turns \\ into \.
25918       sed -n \
25919         "s/'/'\\\\''/g;
25920           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25921       ;; #(
25922     *)
25923       # `set' quotes correctly as required by POSIX, so do not add quotes.
25924       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25925       ;;
25926     esac |
25927     sort
25928 ) |
25929   sed '
25930      /^ac_cv_env_/b end
25931      t clear
25932      :clear
25933      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25934      t end
25935      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25936      :end' >>confcache
25937 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25938   if test -w "$cache_file"; then
25939     test "x$cache_file" != "x/dev/null" &&
25940       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25941 $as_echo "$as_me: updating cache $cache_file" >&6;}
25942     cat confcache >$cache_file
25943   else
25944     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25945 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25946   fi
25947 fi
25948 rm -f confcache
25949
25950 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25951 # Let make expand exec_prefix.
25952 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25953
25954 DEFS=-DHAVE_CONFIG_H
25955
25956 ac_libobjs=
25957 ac_ltlibobjs=
25958 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25959   # 1. Remove the extension, and $U if already installed.
25960   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25961   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25962   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25963   #    will be set to the directory where LIBOBJS objects are built.
25964   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25965   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25966 done
25967 LIBOBJS=$ac_libobjs
25968
25969 LTLIBOBJS=$ac_ltlibobjs
25970
25971
25972
25973
25974 : ${CONFIG_STATUS=./config.status}
25975 ac_write_fail=0
25976 ac_clean_files_save=$ac_clean_files
25977 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25979 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25980 as_write_fail=0
25981 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25982 #! $SHELL
25983 # Generated by $as_me.
25984 # Run this file to recreate the current configuration.
25985 # Compiler output produced by configure, useful for debugging
25986 # configure, is in config.log if it exists.
25987
25988 debug=false
25989 ac_cs_recheck=false
25990 ac_cs_silent=false
25991
25992 SHELL=\${CONFIG_SHELL-$SHELL}
25993 export SHELL
25994 _ASEOF
25995 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25996 ## -------------------- ##
25997 ## M4sh Initialization. ##
25998 ## -------------------- ##
25999
26000 # Be more Bourne compatible
26001 DUALCASE=1; export DUALCASE # for MKS sh
26002 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26003   emulate sh
26004   NULLCMD=:
26005   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26006   # is contrary to our usage.  Disable this feature.
26007   alias -g '${1+"$@"}'='"$@"'
26008   setopt NO_GLOB_SUBST
26009 else
26010   case `(set -o) 2>/dev/null` in #(
26011   *posix*) :
26012     set -o posix ;; #(
26013   *) :
26014      ;;
26015 esac
26016 fi
26017
26018
26019 as_nl='
26020 '
26021 export as_nl
26022 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26023 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26024 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26025 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26026 # Prefer a ksh shell builtin over an external printf program on Solaris,
26027 # but without wasting forks for bash or zsh.
26028 if test -z "$BASH_VERSION$ZSH_VERSION" \
26029     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26030   as_echo='print -r --'
26031   as_echo_n='print -rn --'
26032 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26033   as_echo='printf %s\n'
26034   as_echo_n='printf %s'
26035 else
26036   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26037     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26038     as_echo_n='/usr/ucb/echo -n'
26039   else
26040     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26041     as_echo_n_body='eval
26042       arg=$1;
26043       case $arg in #(
26044       *"$as_nl"*)
26045         expr "X$arg" : "X\\(.*\\)$as_nl";
26046         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26047       esac;
26048       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26049     '
26050     export as_echo_n_body
26051     as_echo_n='sh -c $as_echo_n_body as_echo'
26052   fi
26053   export as_echo_body
26054   as_echo='sh -c $as_echo_body as_echo'
26055 fi
26056
26057 # The user is always right.
26058 if test "${PATH_SEPARATOR+set}" != set; then
26059   PATH_SEPARATOR=:
26060   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26061     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26062       PATH_SEPARATOR=';'
26063   }
26064 fi
26065
26066
26067 # IFS
26068 # We need space, tab and new line, in precisely that order.  Quoting is
26069 # there to prevent editors from complaining about space-tab.
26070 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26071 # splitting by setting IFS to empty value.)
26072 IFS=" ""        $as_nl"
26073
26074 # Find who we are.  Look in the path if we contain no directory separator.
26075 case $0 in #((
26076   *[\\/]* ) as_myself=$0 ;;
26077   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26078 for as_dir in $PATH
26079 do
26080   IFS=$as_save_IFS
26081   test -z "$as_dir" && as_dir=.
26082     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26083   done
26084 IFS=$as_save_IFS
26085
26086      ;;
26087 esac
26088 # We did not find ourselves, most probably we were run as `sh COMMAND'
26089 # in which case we are not to be found in the path.
26090 if test "x$as_myself" = x; then
26091   as_myself=$0
26092 fi
26093 if test ! -f "$as_myself"; then
26094   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26095   exit 1
26096 fi
26097
26098 # Unset variables that we do not need and which cause bugs (e.g. in
26099 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26100 # suppresses any "Segmentation fault" message there.  '((' could
26101 # trigger a bug in pdksh 5.2.14.
26102 for as_var in BASH_ENV ENV MAIL MAILPATH
26103 do eval test x\${$as_var+set} = xset \
26104   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26105 done
26106 PS1='$ '
26107 PS2='> '
26108 PS4='+ '
26109
26110 # NLS nuisances.
26111 LC_ALL=C
26112 export LC_ALL
26113 LANGUAGE=C
26114 export LANGUAGE
26115
26116 # CDPATH.
26117 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26118
26119
26120 # as_fn_error ERROR [LINENO LOG_FD]
26121 # ---------------------------------
26122 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26123 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26124 # script with status $?, using 1 if that was 0.
26125 as_fn_error ()
26126 {
26127   as_status=$?; test $as_status -eq 0 && as_status=1
26128   if test "$3"; then
26129     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26130     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26131   fi
26132   $as_echo "$as_me: error: $1" >&2
26133   as_fn_exit $as_status
26134 } # as_fn_error
26135
26136
26137 # as_fn_set_status STATUS
26138 # -----------------------
26139 # Set $? to STATUS, without forking.
26140 as_fn_set_status ()
26141 {
26142   return $1
26143 } # as_fn_set_status
26144
26145 # as_fn_exit STATUS
26146 # -----------------
26147 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26148 as_fn_exit ()
26149 {
26150   set +e
26151   as_fn_set_status $1
26152   exit $1
26153 } # as_fn_exit
26154
26155 # as_fn_unset VAR
26156 # ---------------
26157 # Portably unset VAR.
26158 as_fn_unset ()
26159 {
26160   { eval $1=; unset $1;}
26161 }
26162 as_unset=as_fn_unset
26163 # as_fn_append VAR VALUE
26164 # ----------------------
26165 # Append the text in VALUE to the end of the definition contained in VAR. Take
26166 # advantage of any shell optimizations that allow amortized linear growth over
26167 # repeated appends, instead of the typical quadratic growth present in naive
26168 # implementations.
26169 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26170   eval 'as_fn_append ()
26171   {
26172     eval $1+=\$2
26173   }'
26174 else
26175   as_fn_append ()
26176   {
26177     eval $1=\$$1\$2
26178   }
26179 fi # as_fn_append
26180
26181 # as_fn_arith ARG...
26182 # ------------------
26183 # Perform arithmetic evaluation on the ARGs, and store the result in the
26184 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26185 # must be portable across $(()) and expr.
26186 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26187   eval 'as_fn_arith ()
26188   {
26189     as_val=$(( $* ))
26190   }'
26191 else
26192   as_fn_arith ()
26193   {
26194     as_val=`expr "$@" || test $? -eq 1`
26195   }
26196 fi # as_fn_arith
26197
26198
26199 if expr a : '\(a\)' >/dev/null 2>&1 &&
26200    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26201   as_expr=expr
26202 else
26203   as_expr=false
26204 fi
26205
26206 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26207   as_basename=basename
26208 else
26209   as_basename=false
26210 fi
26211
26212 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26213   as_dirname=dirname
26214 else
26215   as_dirname=false
26216 fi
26217
26218 as_me=`$as_basename -- "$0" ||
26219 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26220          X"$0" : 'X\(//\)$' \| \
26221          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26222 $as_echo X/"$0" |
26223     sed '/^.*\/\([^/][^/]*\)\/*$/{
26224             s//\1/
26225             q
26226           }
26227           /^X\/\(\/\/\)$/{
26228             s//\1/
26229             q
26230           }
26231           /^X\/\(\/\).*/{
26232             s//\1/
26233             q
26234           }
26235           s/.*/./; q'`
26236
26237 # Avoid depending upon Character Ranges.
26238 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26239 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26240 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26241 as_cr_digits='0123456789'
26242 as_cr_alnum=$as_cr_Letters$as_cr_digits
26243
26244 ECHO_C= ECHO_N= ECHO_T=
26245 case `echo -n x` in #(((((
26246 -n*)
26247   case `echo 'xy\c'` in
26248   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26249   xy)  ECHO_C='\c';;
26250   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26251        ECHO_T=' ';;
26252   esac;;
26253 *)
26254   ECHO_N='-n';;
26255 esac
26256
26257 rm -f conf$$ conf$$.exe conf$$.file
26258 if test -d conf$$.dir; then
26259   rm -f conf$$.dir/conf$$.file
26260 else
26261   rm -f conf$$.dir
26262   mkdir conf$$.dir 2>/dev/null
26263 fi
26264 if (echo >conf$$.file) 2>/dev/null; then
26265   if ln -s conf$$.file conf$$ 2>/dev/null; then
26266     as_ln_s='ln -s'
26267     # ... but there are two gotchas:
26268     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26269     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26270     # In both cases, we have to default to `cp -p'.
26271     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26272       as_ln_s='cp -p'
26273   elif ln conf$$.file conf$$ 2>/dev/null; then
26274     as_ln_s=ln
26275   else
26276     as_ln_s='cp -p'
26277   fi
26278 else
26279   as_ln_s='cp -p'
26280 fi
26281 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26282 rmdir conf$$.dir 2>/dev/null
26283
26284
26285 # as_fn_mkdir_p
26286 # -------------
26287 # Create "$as_dir" as a directory, including parents if necessary.
26288 as_fn_mkdir_p ()
26289 {
26290
26291   case $as_dir in #(
26292   -*) as_dir=./$as_dir;;
26293   esac
26294   test -d "$as_dir" || eval $as_mkdir_p || {
26295     as_dirs=
26296     while :; do
26297       case $as_dir in #(
26298       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26299       *) as_qdir=$as_dir;;
26300       esac
26301       as_dirs="'$as_qdir' $as_dirs"
26302       as_dir=`$as_dirname -- "$as_dir" ||
26303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26304          X"$as_dir" : 'X\(//\)[^/]' \| \
26305          X"$as_dir" : 'X\(//\)$' \| \
26306          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26307 $as_echo X"$as_dir" |
26308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26309             s//\1/
26310             q
26311           }
26312           /^X\(\/\/\)[^/].*/{
26313             s//\1/
26314             q
26315           }
26316           /^X\(\/\/\)$/{
26317             s//\1/
26318             q
26319           }
26320           /^X\(\/\).*/{
26321             s//\1/
26322             q
26323           }
26324           s/.*/./; q'`
26325       test -d "$as_dir" && break
26326     done
26327     test -z "$as_dirs" || eval "mkdir $as_dirs"
26328   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26329
26330
26331 } # as_fn_mkdir_p
26332 if mkdir -p . 2>/dev/null; then
26333   as_mkdir_p='mkdir -p "$as_dir"'
26334 else
26335   test -d ./-p && rmdir ./-p
26336   as_mkdir_p=false
26337 fi
26338
26339 if test -x / >/dev/null 2>&1; then
26340   as_test_x='test -x'
26341 else
26342   if ls -dL / >/dev/null 2>&1; then
26343     as_ls_L_option=L
26344   else
26345     as_ls_L_option=
26346   fi
26347   as_test_x='
26348     eval sh -c '\''
26349       if test -d "$1"; then
26350         test -d "$1/.";
26351       else
26352         case $1 in #(
26353         -*)set "./$1";;
26354         esac;
26355         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26356         ???[sx]*):;;*)false;;esac;fi
26357     '\'' sh
26358   '
26359 fi
26360 as_executable_p=$as_test_x
26361
26362 # Sed expression to map a string onto a valid CPP name.
26363 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26364
26365 # Sed expression to map a string onto a valid variable name.
26366 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26367
26368
26369 exec 6>&1
26370 ## ----------------------------------- ##
26371 ## Main body of $CONFIG_STATUS script. ##
26372 ## ----------------------------------- ##
26373 _ASEOF
26374 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26375
26376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26377 # Save the log message, to keep $0 and so on meaningful, and to
26378 # report actual input values of CONFIG_FILES etc. instead of their
26379 # values after options handling.
26380 ac_log="
26381 This file was extended by $as_me, which was
26382 generated by GNU Autoconf 2.64.  Invocation command line was
26383
26384   CONFIG_FILES    = $CONFIG_FILES
26385   CONFIG_HEADERS  = $CONFIG_HEADERS
26386   CONFIG_LINKS    = $CONFIG_LINKS
26387   CONFIG_COMMANDS = $CONFIG_COMMANDS
26388   $ $0 $@
26389
26390 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26391 "
26392
26393 _ACEOF
26394
26395 case $ac_config_files in *"
26396 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26397 esac
26398
26399 case $ac_config_headers in *"
26400 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26401 esac
26402
26403
26404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26405 # Files that config.status was made for.
26406 config_files="$ac_config_files"
26407 config_headers="$ac_config_headers"
26408 config_commands="$ac_config_commands"
26409
26410 _ACEOF
26411
26412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26413 ac_cs_usage="\
26414 \`$as_me' instantiates files and other configuration actions
26415 from templates according to the current configuration.  Unless the files
26416 and actions are specified as TAGs, all are instantiated by default.
26417
26418 Usage: $0 [OPTION]... [TAG]...
26419
26420   -h, --help       print this help, then exit
26421   -V, --version    print version number and configuration settings, then exit
26422   -q, --quiet, --silent
26423                    do not print progress messages
26424   -d, --debug      don't remove temporary files
26425       --recheck    update $as_me by reconfiguring in the same conditions
26426       --file=FILE[:TEMPLATE]
26427                    instantiate the configuration file FILE
26428       --header=FILE[:TEMPLATE]
26429                    instantiate the configuration header FILE
26430
26431 Configuration files:
26432 $config_files
26433
26434 Configuration headers:
26435 $config_headers
26436
26437 Configuration commands:
26438 $config_commands
26439
26440 Report bugs to the package provider."
26441
26442 _ACEOF
26443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26444 ac_cs_version="\\
26445 config.status
26446 configured by $0, generated by GNU Autoconf 2.64,
26447   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26448
26449 Copyright (C) 2009 Free Software Foundation, Inc.
26450 This config.status script is free software; the Free Software Foundation
26451 gives unlimited permission to copy, distribute and modify it."
26452
26453 ac_pwd='$ac_pwd'
26454 srcdir='$srcdir'
26455 AWK='$AWK'
26456 test -n "\$AWK" || AWK=awk
26457 _ACEOF
26458
26459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26460 # The default lists apply if the user does not specify any file.
26461 ac_need_defaults=:
26462 while test $# != 0
26463 do
26464   case $1 in
26465   --*=*)
26466     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26467     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26468     ac_shift=:
26469     ;;
26470   *)
26471     ac_option=$1
26472     ac_optarg=$2
26473     ac_shift=shift
26474     ;;
26475   esac
26476
26477   case $ac_option in
26478   # Handling of the options.
26479   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26480     ac_cs_recheck=: ;;
26481   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26482     $as_echo "$ac_cs_version"; exit ;;
26483   --debug | --debu | --deb | --de | --d | -d )
26484     debug=: ;;
26485   --file | --fil | --fi | --f )
26486     $ac_shift
26487     case $ac_optarg in
26488     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26489     esac
26490     as_fn_append CONFIG_FILES " '$ac_optarg'"
26491     ac_need_defaults=false;;
26492   --header | --heade | --head | --hea )
26493     $ac_shift
26494     case $ac_optarg in
26495     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26496     esac
26497     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26498     ac_need_defaults=false;;
26499   --he | --h)
26500     # Conflict between --help and --header
26501     as_fn_error "ambiguous option: \`$1'
26502 Try \`$0 --help' for more information.";;
26503   --help | --hel | -h )
26504     $as_echo "$ac_cs_usage"; exit ;;
26505   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26506   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26507     ac_cs_silent=: ;;
26508
26509   # This is an error.
26510   -*) as_fn_error "unrecognized option: \`$1'
26511 Try \`$0 --help' for more information." ;;
26512
26513   *) as_fn_append ac_config_targets " $1"
26514      ac_need_defaults=false ;;
26515
26516   esac
26517   shift
26518 done
26519
26520 ac_configure_extra_args=
26521
26522 if $ac_cs_silent; then
26523   exec 6>/dev/null
26524   ac_configure_extra_args="$ac_configure_extra_args --silent"
26525 fi
26526
26527 _ACEOF
26528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26529 if \$ac_cs_recheck; then
26530   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26531   shift
26532   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26533   CONFIG_SHELL='$SHELL'
26534   export CONFIG_SHELL
26535   exec "\$@"
26536 fi
26537
26538 _ACEOF
26539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26540 exec 5>>config.log
26541 {
26542   echo
26543   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26544 ## Running $as_me. ##
26545 _ASBOX
26546   $as_echo "$ac_log"
26547 } >&5
26548
26549 _ACEOF
26550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26551 #
26552 # INIT-COMMANDS
26553 #
26554 subdirs='$subdirs'
26555
26556 _ACEOF
26557
26558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26559
26560 # Handling of arguments.
26561 for ac_config_target in $ac_config_targets
26562 do
26563   case $ac_config_target in
26564     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26565     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26566     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26567     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26568     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26569     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26570
26571   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26572   esac
26573 done
26574
26575
26576 # If the user did not use the arguments to specify the items to instantiate,
26577 # then the envvar interface is used.  Set only those that are not.
26578 # We use the long form for the default assignment because of an extremely
26579 # bizarre bug on SunOS 4.1.3.
26580 if $ac_need_defaults; then
26581   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26582   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26583   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26584 fi
26585
26586 # Have a temporary directory for convenience.  Make it in the build tree
26587 # simply because there is no reason against having it here, and in addition,
26588 # creating and moving files from /tmp can sometimes cause problems.
26589 # Hook for its removal unless debugging.
26590 # Note that there is a small window in which the directory will not be cleaned:
26591 # after its creation but before its name has been assigned to `$tmp'.
26592 $debug ||
26593 {
26594   tmp=
26595   trap 'exit_status=$?
26596   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26597 ' 0
26598   trap 'as_fn_exit 1' 1 2 13 15
26599 }
26600 # Create a (secure) tmp directory for tmp files.
26601
26602 {
26603   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26604   test -n "$tmp" && test -d "$tmp"
26605 }  ||
26606 {
26607   tmp=./conf$$-$RANDOM
26608   (umask 077 && mkdir "$tmp")
26609 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26610
26611 # Set up the scripts for CONFIG_FILES section.
26612 # No need to generate them if there are no CONFIG_FILES.
26613 # This happens for instance with `./config.status config.h'.
26614 if test -n "$CONFIG_FILES"; then
26615
26616 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26617   ac_cs_awk_getline=:
26618   ac_cs_awk_pipe_init=
26619   ac_cs_awk_read_file='
26620       while ((getline aline < (F[key])) > 0)
26621         print(aline)
26622       close(F[key])'
26623   ac_cs_awk_pipe_fini=
26624 else
26625   ac_cs_awk_getline=false
26626   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26627   ac_cs_awk_read_file='
26628       print "|#_!!_#|"
26629       print "cat " F[key] " &&"
26630       '$ac_cs_awk_pipe_init
26631   # The final `:' finishes the AND list.
26632   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26633 fi
26634 ac_cr=`echo X | tr X '\015'`
26635 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26636 # But we know of no other shell where ac_cr would be empty at this
26637 # point, so we can use a bashism as a fallback.
26638 if test "x$ac_cr" = x; then
26639   eval ac_cr=\$\'\\r\'
26640 fi
26641 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26642 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26643   ac_cs_awk_cr='\r'
26644 else
26645   ac_cs_awk_cr=$ac_cr
26646 fi
26647
26648 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26649 _ACEOF
26650
26651 # Create commands to substitute file output variables.
26652 {
26653   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26654   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26655   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26656   echo "_ACAWK" &&
26657   echo "_ACEOF"
26658 } >conf$$files.sh &&
26659 . ./conf$$files.sh ||
26660   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26661 rm -f conf$$files.sh
26662
26663 {
26664   echo "cat >conf$$subs.awk <<_ACEOF" &&
26665   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26666   echo "_ACEOF"
26667 } >conf$$subs.sh ||
26668   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26669 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26670 ac_delim='%!_!# '
26671 for ac_last_try in false false false false false :; do
26672   . ./conf$$subs.sh ||
26673     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26674
26675   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26676   if test $ac_delim_n = $ac_delim_num; then
26677     break
26678   elif $ac_last_try; then
26679     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26680   else
26681     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26682   fi
26683 done
26684 rm -f conf$$subs.sh
26685
26686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26687 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26688 _ACEOF
26689 sed -n '
26690 h
26691 s/^/S["/; s/!.*/"]=/
26692 p
26693 g
26694 s/^[^!]*!//
26695 :repl
26696 t repl
26697 s/'"$ac_delim"'$//
26698 t delim
26699 :nl
26700 h
26701 s/\(.\{148\}\).*/\1/
26702 t more1
26703 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26704 p
26705 n
26706 b repl
26707 :more1
26708 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26709 p
26710 g
26711 s/.\{148\}//
26712 t nl
26713 :delim
26714 h
26715 s/\(.\{148\}\).*/\1/
26716 t more2
26717 s/["\\]/\\&/g; s/^/"/; s/$/"/
26718 p
26719 b
26720 :more2
26721 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26722 p
26723 g
26724 s/.\{148\}//
26725 t delim
26726 ' <conf$$subs.awk | sed '
26727 /^[^""]/{
26728   N
26729   s/\n//
26730 }
26731 ' >>$CONFIG_STATUS || ac_write_fail=1
26732 rm -f conf$$subs.awk
26733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26734 _ACAWK
26735 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26736   for (key in S) S_is_set[key] = 1
26737   FS = "\a"
26738   \$ac_cs_awk_pipe_init
26739 }
26740 {
26741   line = $ 0
26742   nfields = split(line, field, "@")
26743   substed = 0
26744   len = length(field[1])
26745   for (i = 2; i < nfields; i++) {
26746     key = field[i]
26747     keylen = length(key)
26748     if (S_is_set[key]) {
26749       value = S[key]
26750       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26751       len += length(value) + length(field[++i])
26752       substed = 1
26753     } else
26754       len += 1 + keylen
26755   }
26756   if (nfields == 3 && !substed) {
26757     key = field[2]
26758     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
26759       \$ac_cs_awk_read_file
26760       next
26761     }
26762   }
26763   print line
26764 }
26765 \$ac_cs_awk_pipe_fini
26766 _ACAWK
26767 _ACEOF
26768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26769 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26770   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26771 else
26772   cat
26773 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26774   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26775 _ACEOF
26776
26777 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26778 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26779 # trailing colons and then remove the whole line if VPATH becomes empty
26780 # (actually we leave an empty line to preserve line numbers).
26781 if test "x$srcdir" = x.; then
26782   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26783 s/:*\$(srcdir):*/:/
26784 s/:*\${srcdir}:*/:/
26785 s/:*@srcdir@:*/:/
26786 s/^\([^=]*=[     ]*\):*/\1/
26787 s/:*$//
26788 s/^[^=]*=[       ]*$//
26789 }'
26790 fi
26791
26792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26793 fi # test -n "$CONFIG_FILES"
26794
26795 # Set up the scripts for CONFIG_HEADERS section.
26796 # No need to generate them if there are no CONFIG_HEADERS.
26797 # This happens for instance with `./config.status Makefile'.
26798 if test -n "$CONFIG_HEADERS"; then
26799 cat >"$tmp/defines.awk" <<\_ACAWK ||
26800 BEGIN {
26801 _ACEOF
26802
26803 # Transform confdefs.h into an awk script `defines.awk', embedded as
26804 # here-document in config.status, that substitutes the proper values into
26805 # config.h.in to produce config.h.
26806
26807 # Create a delimiter string that does not exist in confdefs.h, to ease
26808 # handling of long lines.
26809 ac_delim='%!_!# '
26810 for ac_last_try in false false :; do
26811   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26812   if test -z "$ac_t"; then
26813     break
26814   elif $ac_last_try; then
26815     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26816   else
26817     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26818   fi
26819 done
26820
26821 # For the awk script, D is an array of macro values keyed by name,
26822 # likewise P contains macro parameters if any.  Preserve backslash
26823 # newline sequences.
26824
26825 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26826 sed -n '
26827 s/.\{148\}/&'"$ac_delim"'/g
26828 t rset
26829 :rset
26830 s/^[     ]*#[    ]*define[       ][      ]*/ /
26831 t def
26832 d
26833 :def
26834 s/\\$//
26835 t bsnl
26836 s/["\\]/\\&/g
26837 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26838 D["\1"]=" \3"/p
26839 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26840 d
26841 :bsnl
26842 s/["\\]/\\&/g
26843 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26844 D["\1"]=" \3\\\\\\n"\\/p
26845 t cont
26846 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26847 t cont
26848 d
26849 :cont
26850 n
26851 s/.\{148\}/&'"$ac_delim"'/g
26852 t clear
26853 :clear
26854 s/\\$//
26855 t bsnlc
26856 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26857 d
26858 :bsnlc
26859 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26860 b cont
26861 ' <confdefs.h | sed '
26862 s/'"$ac_delim"'/"\\\
26863 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26864
26865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26866   for (key in D) D_is_set[key] = 1
26867   FS = "\a"
26868 }
26869 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26870   line = \$ 0
26871   split(line, arg, " ")
26872   if (arg[1] == "#") {
26873     defundef = arg[2]
26874     mac1 = arg[3]
26875   } else {
26876     defundef = substr(arg[1], 2)
26877     mac1 = arg[2]
26878   }
26879   split(mac1, mac2, "(") #)
26880   macro = mac2[1]
26881   prefix = substr(line, 1, index(line, defundef) - 1)
26882   if (D_is_set[macro]) {
26883     # Preserve the white space surrounding the "#".
26884     print prefix "define", macro P[macro] D[macro]
26885     next
26886   } else {
26887     # Replace #undef with comments.  This is necessary, for example,
26888     # in the case of _POSIX_SOURCE, which is predefined and required
26889     # on some systems where configure will not decide to define it.
26890     if (defundef == "undef") {
26891       print "/*", prefix defundef, macro, "*/"
26892       next
26893     }
26894   }
26895 }
26896 { print }
26897 _ACAWK
26898 _ACEOF
26899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26900   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26901 fi # test -n "$CONFIG_HEADERS"
26902
26903
26904 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26905 shift
26906 for ac_tag
26907 do
26908   case $ac_tag in
26909   :[FHLC]) ac_mode=$ac_tag; continue;;
26910   esac
26911   case $ac_mode$ac_tag in
26912   :[FHL]*:*);;
26913   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26914   :[FH]-) ac_tag=-:-;;
26915   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26916   esac
26917   ac_save_IFS=$IFS
26918   IFS=:
26919   set x $ac_tag
26920   IFS=$ac_save_IFS
26921   shift
26922   ac_file=$1
26923   shift
26924
26925   case $ac_mode in
26926   :L) ac_source=$1;;
26927   :[FH])
26928     ac_file_inputs=
26929     for ac_f
26930     do
26931       case $ac_f in
26932       -) ac_f="$tmp/stdin";;
26933       *) # Look for the file first in the build tree, then in the source tree
26934          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26935          # because $ac_f cannot contain `:'.
26936          test -f "$ac_f" ||
26937            case $ac_f in
26938            [\\/$]*) false;;
26939            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26940            esac ||
26941            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26942       esac
26943       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26944       as_fn_append ac_file_inputs " '$ac_f'"
26945     done
26946
26947     # Let's still pretend it is `configure' which instantiates (i.e., don't
26948     # use $as_me), people would be surprised to read:
26949     #    /* config.h.  Generated by config.status.  */
26950     configure_input='Generated from '`
26951           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26952         `' by configure.'
26953     if test x"$ac_file" != x-; then
26954       configure_input="$ac_file.  $configure_input"
26955       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26956 $as_echo "$as_me: creating $ac_file" >&6;}
26957     fi
26958     # Neutralize special characters interpreted by sed in replacement strings.
26959     case $configure_input in #(
26960     *\&* | *\|* | *\\* )
26961        ac_sed_conf_input=`$as_echo "$configure_input" |
26962        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26963     *) ac_sed_conf_input=$configure_input;;
26964     esac
26965
26966     case $ac_tag in
26967     *:-:* | *:-) cat >"$tmp/stdin" \
26968       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26969     esac
26970     ;;
26971   esac
26972
26973   ac_dir=`$as_dirname -- "$ac_file" ||
26974 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26975          X"$ac_file" : 'X\(//\)[^/]' \| \
26976          X"$ac_file" : 'X\(//\)$' \| \
26977          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26978 $as_echo X"$ac_file" |
26979     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26980             s//\1/
26981             q
26982           }
26983           /^X\(\/\/\)[^/].*/{
26984             s//\1/
26985             q
26986           }
26987           /^X\(\/\/\)$/{
26988             s//\1/
26989             q
26990           }
26991           /^X\(\/\).*/{
26992             s//\1/
26993             q
26994           }
26995           s/.*/./; q'`
26996   as_dir="$ac_dir"; as_fn_mkdir_p
26997   ac_builddir=.
26998
26999 case "$ac_dir" in
27000 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27001 *)
27002   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27003   # A ".." for each directory in $ac_dir_suffix.
27004   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27005   case $ac_top_builddir_sub in
27006   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27007   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27008   esac ;;
27009 esac
27010 ac_abs_top_builddir=$ac_pwd
27011 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27012 # for backward compatibility:
27013 ac_top_builddir=$ac_top_build_prefix
27014
27015 case $srcdir in
27016   .)  # We are building in place.
27017     ac_srcdir=.
27018     ac_top_srcdir=$ac_top_builddir_sub
27019     ac_abs_top_srcdir=$ac_pwd ;;
27020   [\\/]* | ?:[\\/]* )  # Absolute name.
27021     ac_srcdir=$srcdir$ac_dir_suffix;
27022     ac_top_srcdir=$srcdir
27023     ac_abs_top_srcdir=$srcdir ;;
27024   *) # Relative name.
27025     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27026     ac_top_srcdir=$ac_top_build_prefix$srcdir
27027     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27028 esac
27029 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27030
27031
27032   case $ac_mode in
27033   :F)
27034   #
27035   # CONFIG_FILE
27036   #
27037
27038 _ACEOF
27039
27040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27041 # If the template does not know about datarootdir, expand it.
27042 # FIXME: This hack should be removed a few years after 2.60.
27043 ac_datarootdir_hack=; ac_datarootdir_seen=
27044 ac_sed_dataroot='
27045 /datarootdir/ {
27046   p
27047   q
27048 }
27049 /@datadir@/p
27050 /@docdir@/p
27051 /@infodir@/p
27052 /@localedir@/p
27053 /@mandir@/p'
27054 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27055 *datarootdir*) ac_datarootdir_seen=yes;;
27056 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27057   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27058 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27059 _ACEOF
27060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27061   ac_datarootdir_hack='
27062   s&@datadir@&$datadir&g
27063   s&@docdir@&$docdir&g
27064   s&@infodir@&$infodir&g
27065   s&@localedir@&$localedir&g
27066   s&@mandir@&$mandir&g
27067   s&\\\${datarootdir}&$datarootdir&g' ;;
27068 esac
27069 _ACEOF
27070
27071 # Neutralize VPATH when `$srcdir' = `.'.
27072 # Shell code in configure.ac might set extrasub.
27073 # FIXME: do we really want to maintain this feature?
27074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27075 ac_sed_extra="$ac_vpsub
27076 $extrasub
27077 _ACEOF
27078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27079 :t
27080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27081 s|@configure_input@|$ac_sed_conf_input|;t t
27082 s&@top_builddir@&$ac_top_builddir_sub&;t t
27083 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27084 s&@srcdir@&$ac_srcdir&;t t
27085 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27086 s&@top_srcdir@&$ac_top_srcdir&;t t
27087 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27088 s&@builddir@&$ac_builddir&;t t
27089 s&@abs_builddir@&$ac_abs_builddir&;t t
27090 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27091 $ac_datarootdir_hack
27092 "
27093 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27094 if $ac_cs_awk_getline; then
27095   $AWK -f "$tmp/subs.awk"
27096 else
27097   $AWK -f "$tmp/subs.awk" | $SHELL
27098 fi >$tmp/out \
27099   || as_fn_error "could not create $ac_file" "$LINENO" 5
27100
27101 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27102   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27103   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27104   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27105 which seems to be undefined.  Please make sure it is defined." >&5
27106 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27107 which seems to be undefined.  Please make sure it is defined." >&2;}
27108
27109   rm -f "$tmp/stdin"
27110   case $ac_file in
27111   -) cat "$tmp/out" && rm -f "$tmp/out";;
27112   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27113   esac \
27114   || as_fn_error "could not create $ac_file" "$LINENO" 5
27115  ;;
27116   :H)
27117   #
27118   # CONFIG_HEADER
27119   #
27120   if test x"$ac_file" != x-; then
27121     {
27122       $as_echo "/* $configure_input  */" \
27123       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27124     } >"$tmp/config.h" \
27125       || as_fn_error "could not create $ac_file" "$LINENO" 5
27126     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27127       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27128 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27129     else
27130       rm -f "$ac_file"
27131       mv "$tmp/config.h" "$ac_file" \
27132         || as_fn_error "could not create $ac_file" "$LINENO" 5
27133     fi
27134   else
27135     $as_echo "/* $configure_input  */" \
27136       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27137       || as_fn_error "could not create -" "$LINENO" 5
27138   fi
27139  ;;
27140
27141   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27142 $as_echo "$as_me: executing $ac_file commands" >&6;}
27143  ;;
27144   esac
27145
27146
27147   case $ac_file$ac_mode in
27148     "as":F) chmod +x as ;;
27149     "collect-ld":F) chmod +x collect-ld ;;
27150     "nm":F) chmod +x nm ;;
27151     "default":C)
27152 case ${CONFIG_HEADERS} in
27153   *auto-host.h:config.in*)
27154   echo > cstamp-h ;;
27155 esac
27156 # Make sure all the subdirs exist.
27157 for d in $subdirs doc build c-family
27158 do
27159     test -d $d || mkdir $d
27160 done
27161  ;;
27162
27163   esac
27164 done # for ac_tag
27165
27166
27167 as_fn_exit 0
27168 _ACEOF
27169 ac_clean_files=$ac_clean_files_save
27170
27171 test $ac_write_fail = 0 ||
27172   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27173
27174
27175 # configure is writing to config.log, and then calls config.status.
27176 # config.status does its own redirection, appending to config.log.
27177 # Unfortunately, on DOS this fails, as config.log is still kept open
27178 # by configure, so config.status won't be able to write to it; its
27179 # output is simply discarded.  So we exec the FD to /dev/null,
27180 # effectively closing config.log, so it can be properly (re)opened and
27181 # appended to by config.status.  When coming back to configure, we
27182 # need to make the FD available again.
27183 if test "$no_create" != yes; then
27184   ac_cs_success=:
27185   ac_config_status_args=
27186   test "$silent" = yes &&
27187     ac_config_status_args="$ac_config_status_args --quiet"
27188   exec 5>/dev/null
27189   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27190   exec 5>>config.log
27191   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27192   # would make configure fail if this is the last instruction.
27193   $ac_cs_success || as_fn_exit $?
27194 fi
27195 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27196   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27197 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27198 fi
27199