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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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  }
79fi
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.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
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
99IFS=$as_save_IFS
100
101     ;;
102esac
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.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
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.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if 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
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test 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
172test \$(( 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
183else
184  as_have_required=no
185fi
186  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
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
206fi
207fi
208	   done;;
209       esac
210  as_found=false
211done
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
215fi; }
216IFS=$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+"$@"}
228fi
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
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260  { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_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.
275as_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.
285as_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.
335if (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  }'
340else
341  as_fn_append ()
342  {
343    eval $1=\$$1\$2
344  }
345fi # 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.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353  eval 'as_fn_arith ()
354  {
355    as_val=$(( $* ))
356  }'
357else
358  as_fn_arith ()
359  {
360    as_val=`expr "$@" || test $? -eq 1`
361  }
362fi # 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.
370as_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
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383  as_expr=expr
384else
385  as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389  as_basename=basename
390else
391  as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395  as_dirname=dirname
396else
397  as_dirname=false
398fi
399
400as_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.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_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
458ECHO_C= ECHO_N= ECHO_T=
459case `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';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473  rm -f conf$$.dir/conf$$.file
474else
475  rm -f conf$$.dir
476  mkdir conf$$.dir 2>/dev/null
477fi
478if (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
492else
493  as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499  as_mkdir_p='mkdir -p "$as_dir"'
500else
501  test -d ./-p && rmdir ./-p
502  as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506  as_test_x='test -x'
507else
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  '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_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.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 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.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
562PACKAGE_URL=
563
564ac_unique_file="tree.c"
565# Factoring default headers for most tests.
566ac_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
601ac_subst_vars='LTLIBOBJS
602LIBOBJS
603NO_PIE_FLAG
604NO_PIE_CFLAGS
605enable_default_pie
606PICFLAG
607enable_host_shared
608enable_plugin
609pluginlibs
610ISLINC
611ISLLIBS
612GMPINC
613GMPLIBS
614target_cpu_default
615fortran_target_objs
616cxx_target_objs
617c_target_objs
618use_gcc_stdint
619xm_defines
620xm_include_list
621xm_file_list
622tm_p_include_list
623tm_p_file_list
624tm_defines
625tm_include_list
626tm_file_list
627common_out_object_file
628common_out_file
629out_object_file
630out_file
631objc_boehm_gc
632md_file
633local_prefix
634lang_tree_files
635lang_specs_files
636lang_opt_files
637install
638out_host_hook_obj
639host_xm_defines
640host_xm_include_list
641host_xm_file_list
642host_exeext
643gcc_gxx_include_dir_add_sysroot
644gcc_gxx_include_dir
645gcc_config_arguments
646float_h_file
647extra_programs
648extra_objs
649extra_headers_list
650user_headers_inc_next_post
651user_headers_inc_next_pre
652extra_gcc_objs
653TM_MULTILIB_EXCEPTIONS_CONFIG
654TM_MULTILIB_CONFIG
655TM_ENDIAN_CONFIG
656tmake_file
657xmake_file
658cpp_install_dir
659check_languages
660build_file_translate
661build_xm_defines
662build_xm_include_list
663build_xm_file_list
664build_install_headers_dir
665build_exeext
666all_selected_languages
667all_languages
668all_lang_makefrags
669all_lang_configurefrags
670all_gtfiles
671all_compilers
672srcdir
673subdirs
674dollar
675gcc_tooldir
676enable_lto
677DO_LINK_MUTEX
678MAINT
679zlibinc
680zlibdir
681HOST_LIBS
682enable_default_ssp
683thin_archive_support
684ld_soname_option
685ld_version_script_option
686libgcc_visibility
687gcc_cv_readelf
688gcc_cv_objdump
689ORIGINAL_NM_FOR_TARGET
690gcc_cv_nm
691ORIGINAL_LD_GOLD_FOR_TARGET
692ORIGINAL_LD_BFD_FOR_TARGET
693ORIGINAL_LD_FOR_TARGET
694ORIGINAL_PLUGIN_LD_FOR_TARGET
695gcc_cv_ld
696ORIGINAL_AS_FOR_TARGET
697gcc_cv_as
698enable_fast_install
699objdir
700OTOOL64
701OTOOL
702LIPO
703NMEDIT
704DSYMUTIL
705STRIP
706OBJDUMP
707ac_ct_DUMPBIN
708DUMPBIN
709LD
710FGREP
711SED
712LIBTOOL
713collect2
714NO_PIE_FLAG_FOR_BUILD
715NO_PIE_CFLAGS_FOR_BUILD
716BUILD_NO_PIE_FLAG
717BUILD_NO_PIE_CFLAGS
718STMP_FIXINC
719BUILD_LDFLAGS
720BUILD_CXXFLAGS
721BUILD_CFLAGS
722CXX_FOR_BUILD
723CC_FOR_BUILD
724inhibit_libc
725BUILD_SYSTEM_HEADER_DIR
726SYSTEM_HEADER_DIR
727ALL
728CROSS
729CATOBJEXT
730GENCAT
731INSTOBJEXT
732DATADIRNAME
733CATALOGS
734POSUB
735GMSGFMT
736XGETTEXT
737INCINTL
738LIBINTL_DEP
739LIBINTL
740USE_NLS
741get_gcc_base_ver
742extra_opt_files
743extra_modes_file
744NATIVE_SYSTEM_HEADER_DIR
745objext
746manext
747LIBICONV_DEP
748LTLIBICONV
749LIBICONV
750LDEXP_LIB
751EXTRA_GCC_LIBS
752GNAT_LIBEXC
753COLLECT2_LIBS
754CXXDEPMODE
755DEPDIR
756am__leading_dot
757doc_build_sys
758AR
759NM
760BISON
761FLEX
762GENERATED_MANPAGES
763BUILD_INFO
764MAKEINFO
765have_mktemp_command
766make_compare_target
767INSTALL_DATA
768INSTALL_PROGRAM
769INSTALL
770ranlib_flags
771RANLIB
772LN
773LN_S
774AWK
775SET_MAKE
776accel_dir_suffix
777real_target_noncanonical
778enable_as_accelerator
779REPORT_BUGS_TEXI
780REPORT_BUGS_TO
781PKGVERSION
782CONFIGURE_SPECS
783enable_shared
784enable_fixed_point
785enable_decimal_float
786with_float
787with_cpu
788enable_multiarch
789enable_multilib
790coverage_flags
791valgrind_command
792valgrind_path_defines
793valgrind_path
794TREECHECKING
795nocommon_flag
796noexception_flags
797warn_cxxflags
798warn_cflags
799c_strict_warn
800strict_warn
801c_loose_warn
802loose_warn
803aliasing_flags
804CPP
805EGREP
806GREP
807CXXCPP
808PICFLAG_FOR_TARGET
809GNATMAKE
810GNATBIND
811ac_ct_CXX
812CXXFLAGS
813CXX
814OBJEXT
815EXEEXT
816ac_ct_CC
817CPPFLAGS
818LDFLAGS
819CFLAGS
820CC
821GENINSRC
822CROSS_SYSTEM_HEADER_DIR
823TARGET_SYSTEM_ROOT_DEFINE
824TARGET_SYSTEM_ROOT
825SYSROOT_CFLAGS_FOR_TARGET
826target_subdir
827host_subdir
828build_subdir
829build_libsubdir
830target_noncanonical
831host_noncanonical
832target_os
833target_vendor
834target_cpu
835target
836host_os
837host_vendor
838host_cpu
839host
840build_os
841build_vendor
842build_cpu
843build
844target_alias
845host_alias
846build_alias
847LIBS
848ECHO_T
849ECHO_N
850ECHO_C
851DEFS
852mandir
853localedir
854libdir
855psdir
856pdfdir
857dvidir
858htmldir
859infodir
860docdir
861oldincludedir
862includedir
863localstatedir
864sharedstatedir
865sysconfdir
866datadir
867datarootdir
868libexecdir
869sbindir
870bindir
871program_transform_name
872prefix
873exec_prefix
874PACKAGE_URL
875PACKAGE_BUGREPORT
876PACKAGE_STRING
877PACKAGE_VERSION
878PACKAGE_TARNAME
879PACKAGE_NAME
880PATH_SEPARATOR
881SHELL'
882ac_subst_files='option_includes
883language_hooks'
884ac_user_opts='
885enable_option_checking
886with_build_libsubdir
887with_local_prefix
888with_native_system_header_dir
889with_build_sysroot
890with_sysroot
891with_gxx_include_dir
892with_cpp_install_dir
893enable_generated_files_in_srcdir
894with_gnu_ld
895with_ld
896with_demangler_in_ld
897with_gnu_as
898with_as
899enable_largefile
900enable_build_format_warnings
901enable_werror_always
902enable_checking
903enable_coverage
904enable_gather_detailed_mem_stats
905enable_valgrind_annotations
906with_stabs
907enable_multilib
908enable_multiarch
909enable___cxa_atexit
910enable_decimal_float
911enable_fixed_point
912enable_threads
913enable_tls
914enable_vtable_verify
915enable_objc_gc
916with_dwarf2
917enable_shared
918with_specs
919with_pkgversion
920with_bugurl
921enable_languages
922with_multilib_list
923enable_rpath
924with_libiconv_prefix
925enable_sjlj_exceptions
926with_gcc_major_version_only
927enable_secureplt
928enable_mingw_wildcard
929enable_leading_mingw64_underscores
930enable_cld
931enable_frame_pointer
932enable_win32_registry
933enable_static
934with_pic
935enable_fast_install
936enable_libtool_lock
937enable_ld
938enable_gold
939with_plugin_ld
940enable_gnu_indirect_function
941enable_initfini_array
942enable_comdat
943enable_fix_cortex_a53_835769
944enable_fix_cortex_a53_843419
945with_glibc_version
946enable_gnu_unique_object
947enable_linker_build_id
948enable_libssp
949enable_default_ssp
950with_long_double_128
951with_long_double_format
952with_gc
953with_system_zlib
954enable_maintainer_mode
955enable_link_mutex
956enable_version_specific_runtime_libs
957enable_plugin
958enable_host_shared
959enable_libquadmath_support
960with_linker_hash_style
961with_diagnostics_color
962enable_default_pie
963'
964      ac_precious_vars='build_alias
965host_alias
966target_alias
967CC
968CFLAGS
969LDFLAGS
970LIBS
971CPPFLAGS
972CXX
973CXXFLAGS
974CCC
975CXXCPP
976CPP
977GMPLIBS
978GMPINC
979ISLLIBS
980ISLINC'
981
982
983# Initialize some variables set by options.
984ac_init_help=
985ac_init_version=false
986ac_unrecognized_opts=
987ac_unrecognized_sep=
988# The variables have the same names as the options, with
989# dashes changed to underlines.
990cache_file=/dev/null
991exec_prefix=NONE
992no_create=
993no_recursion=
994prefix=NONE
995program_prefix=NONE
996program_suffix=NONE
997program_transform_name=s,x,x,
998silent=
999site=
1000srcdir=
1001verbose=
1002x_includes=NONE
1003x_libraries=NONE
1004
1005# Installation directory options.
1006# These are left unexpanded so users can "make install exec_prefix=/foo"
1007# and all the variables that are supposed to be based on exec_prefix
1008# by default will actually change.
1009# Use braces instead of parens because sh, perl, etc. also accept them.
1010# (The list follows the same order as the GNU Coding Standards.)
1011bindir='${exec_prefix}/bin'
1012sbindir='${exec_prefix}/sbin'
1013libexecdir='${exec_prefix}/libexec'
1014datarootdir='${prefix}/share'
1015datadir='${datarootdir}'
1016sysconfdir='${prefix}/etc'
1017sharedstatedir='${prefix}/com'
1018localstatedir='${prefix}/var'
1019includedir='${prefix}/include'
1020oldincludedir='/usr/include'
1021docdir='${datarootdir}/doc/${PACKAGE}'
1022infodir='${datarootdir}/info'
1023htmldir='${docdir}'
1024dvidir='${docdir}'
1025pdfdir='${docdir}'
1026psdir='${docdir}'
1027libdir='${exec_prefix}/lib'
1028localedir='${datarootdir}/locale'
1029mandir='${datarootdir}/man'
1030
1031ac_prev=
1032ac_dashdash=
1033for ac_option
1034do
1035  # If the previous option needs an argument, assign it.
1036  if test -n "$ac_prev"; then
1037    eval $ac_prev=\$ac_option
1038    ac_prev=
1039    continue
1040  fi
1041
1042  case $ac_option in
1043  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1044  *)	ac_optarg=yes ;;
1045  esac
1046
1047  # Accept the important Cygnus configure options, so we can diagnose typos.
1048
1049  case $ac_dashdash$ac_option in
1050  --)
1051    ac_dashdash=yes ;;
1052
1053  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1054    ac_prev=bindir ;;
1055  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1056    bindir=$ac_optarg ;;
1057
1058  -build | --build | --buil | --bui | --bu)
1059    ac_prev=build_alias ;;
1060  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1061    build_alias=$ac_optarg ;;
1062
1063  -cache-file | --cache-file | --cache-fil | --cache-fi \
1064  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1065    ac_prev=cache_file ;;
1066  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1067  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1068    cache_file=$ac_optarg ;;
1069
1070  --config-cache | -C)
1071    cache_file=config.cache ;;
1072
1073  -datadir | --datadir | --datadi | --datad)
1074    ac_prev=datadir ;;
1075  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1076    datadir=$ac_optarg ;;
1077
1078  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1079  | --dataroo | --dataro | --datar)
1080    ac_prev=datarootdir ;;
1081  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1082  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1083    datarootdir=$ac_optarg ;;
1084
1085  -disable-* | --disable-*)
1086    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1087    # Reject names that are not valid shell variable names.
1088    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089      as_fn_error "invalid feature name: $ac_useropt"
1090    ac_useropt_orig=$ac_useropt
1091    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092    case $ac_user_opts in
1093      *"
1094"enable_$ac_useropt"
1095"*) ;;
1096      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1097	 ac_unrecognized_sep=', ';;
1098    esac
1099    eval enable_$ac_useropt=no ;;
1100
1101  -docdir | --docdir | --docdi | --doc | --do)
1102    ac_prev=docdir ;;
1103  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1104    docdir=$ac_optarg ;;
1105
1106  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1107    ac_prev=dvidir ;;
1108  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1109    dvidir=$ac_optarg ;;
1110
1111  -enable-* | --enable-*)
1112    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1113    # Reject names that are not valid shell variable names.
1114    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115      as_fn_error "invalid feature name: $ac_useropt"
1116    ac_useropt_orig=$ac_useropt
1117    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118    case $ac_user_opts in
1119      *"
1120"enable_$ac_useropt"
1121"*) ;;
1122      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1123	 ac_unrecognized_sep=', ';;
1124    esac
1125    eval enable_$ac_useropt=\$ac_optarg ;;
1126
1127  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1128  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1129  | --exec | --exe | --ex)
1130    ac_prev=exec_prefix ;;
1131  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1132  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1133  | --exec=* | --exe=* | --ex=*)
1134    exec_prefix=$ac_optarg ;;
1135
1136  -gas | --gas | --ga | --g)
1137    # Obsolete; use --with-gas.
1138    with_gas=yes ;;
1139
1140  -help | --help | --hel | --he | -h)
1141    ac_init_help=long ;;
1142  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1143    ac_init_help=recursive ;;
1144  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1145    ac_init_help=short ;;
1146
1147  -host | --host | --hos | --ho)
1148    ac_prev=host_alias ;;
1149  -host=* | --host=* | --hos=* | --ho=*)
1150    host_alias=$ac_optarg ;;
1151
1152  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1153    ac_prev=htmldir ;;
1154  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1155  | --ht=*)
1156    htmldir=$ac_optarg ;;
1157
1158  -includedir | --includedir | --includedi | --included | --include \
1159  | --includ | --inclu | --incl | --inc)
1160    ac_prev=includedir ;;
1161  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1162  | --includ=* | --inclu=* | --incl=* | --inc=*)
1163    includedir=$ac_optarg ;;
1164
1165  -infodir | --infodir | --infodi | --infod | --info | --inf)
1166    ac_prev=infodir ;;
1167  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1168    infodir=$ac_optarg ;;
1169
1170  -libdir | --libdir | --libdi | --libd)
1171    ac_prev=libdir ;;
1172  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1173    libdir=$ac_optarg ;;
1174
1175  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1176  | --libexe | --libex | --libe)
1177    ac_prev=libexecdir ;;
1178  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1179  | --libexe=* | --libex=* | --libe=*)
1180    libexecdir=$ac_optarg ;;
1181
1182  -localedir | --localedir | --localedi | --localed | --locale)
1183    ac_prev=localedir ;;
1184  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1185    localedir=$ac_optarg ;;
1186
1187  -localstatedir | --localstatedir | --localstatedi | --localstated \
1188  | --localstate | --localstat | --localsta | --localst | --locals)
1189    ac_prev=localstatedir ;;
1190  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1191  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1192    localstatedir=$ac_optarg ;;
1193
1194  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1195    ac_prev=mandir ;;
1196  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1197    mandir=$ac_optarg ;;
1198
1199  -nfp | --nfp | --nf)
1200    # Obsolete; use --without-fp.
1201    with_fp=no ;;
1202
1203  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1204  | --no-cr | --no-c | -n)
1205    no_create=yes ;;
1206
1207  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1208  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1209    no_recursion=yes ;;
1210
1211  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1212  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1213  | --oldin | --oldi | --old | --ol | --o)
1214    ac_prev=oldincludedir ;;
1215  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1216  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1217  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1218    oldincludedir=$ac_optarg ;;
1219
1220  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1221    ac_prev=prefix ;;
1222  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1223    prefix=$ac_optarg ;;
1224
1225  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1226  | --program-pre | --program-pr | --program-p)
1227    ac_prev=program_prefix ;;
1228  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1229  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1230    program_prefix=$ac_optarg ;;
1231
1232  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1233  | --program-suf | --program-su | --program-s)
1234    ac_prev=program_suffix ;;
1235  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1236  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1237    program_suffix=$ac_optarg ;;
1238
1239  -program-transform-name | --program-transform-name \
1240  | --program-transform-nam | --program-transform-na \
1241  | --program-transform-n | --program-transform- \
1242  | --program-transform | --program-transfor \
1243  | --program-transfo | --program-transf \
1244  | --program-trans | --program-tran \
1245  | --progr-tra | --program-tr | --program-t)
1246    ac_prev=program_transform_name ;;
1247  -program-transform-name=* | --program-transform-name=* \
1248  | --program-transform-nam=* | --program-transform-na=* \
1249  | --program-transform-n=* | --program-transform-=* \
1250  | --program-transform=* | --program-transfor=* \
1251  | --program-transfo=* | --program-transf=* \
1252  | --program-trans=* | --program-tran=* \
1253  | --progr-tra=* | --program-tr=* | --program-t=*)
1254    program_transform_name=$ac_optarg ;;
1255
1256  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1257    ac_prev=pdfdir ;;
1258  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1259    pdfdir=$ac_optarg ;;
1260
1261  -psdir | --psdir | --psdi | --psd | --ps)
1262    ac_prev=psdir ;;
1263  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1264    psdir=$ac_optarg ;;
1265
1266  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267  | -silent | --silent | --silen | --sile | --sil)
1268    silent=yes ;;
1269
1270  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1271    ac_prev=sbindir ;;
1272  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1273  | --sbi=* | --sb=*)
1274    sbindir=$ac_optarg ;;
1275
1276  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1277  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1278  | --sharedst | --shareds | --shared | --share | --shar \
1279  | --sha | --sh)
1280    ac_prev=sharedstatedir ;;
1281  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1282  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1283  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1284  | --sha=* | --sh=*)
1285    sharedstatedir=$ac_optarg ;;
1286
1287  -site | --site | --sit)
1288    ac_prev=site ;;
1289  -site=* | --site=* | --sit=*)
1290    site=$ac_optarg ;;
1291
1292  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1293    ac_prev=srcdir ;;
1294  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1295    srcdir=$ac_optarg ;;
1296
1297  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1298  | --syscon | --sysco | --sysc | --sys | --sy)
1299    ac_prev=sysconfdir ;;
1300  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1301  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1302    sysconfdir=$ac_optarg ;;
1303
1304  -target | --target | --targe | --targ | --tar | --ta | --t)
1305    ac_prev=target_alias ;;
1306  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1307    target_alias=$ac_optarg ;;
1308
1309  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1310    verbose=yes ;;
1311
1312  -version | --version | --versio | --versi | --vers | -V)
1313    ac_init_version=: ;;
1314
1315  -with-* | --with-*)
1316    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1317    # Reject names that are not valid shell variable names.
1318    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319      as_fn_error "invalid package name: $ac_useropt"
1320    ac_useropt_orig=$ac_useropt
1321    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322    case $ac_user_opts in
1323      *"
1324"with_$ac_useropt"
1325"*) ;;
1326      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1327	 ac_unrecognized_sep=', ';;
1328    esac
1329    eval with_$ac_useropt=\$ac_optarg ;;
1330
1331  -without-* | --without-*)
1332    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1333    # Reject names that are not valid shell variable names.
1334    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1335      as_fn_error "invalid package name: $ac_useropt"
1336    ac_useropt_orig=$ac_useropt
1337    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338    case $ac_user_opts in
1339      *"
1340"with_$ac_useropt"
1341"*) ;;
1342      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1343	 ac_unrecognized_sep=', ';;
1344    esac
1345    eval with_$ac_useropt=no ;;
1346
1347  --x)
1348    # Obsolete; use --with-x.
1349    with_x=yes ;;
1350
1351  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1352  | --x-incl | --x-inc | --x-in | --x-i)
1353    ac_prev=x_includes ;;
1354  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1355  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1356    x_includes=$ac_optarg ;;
1357
1358  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1359  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1360    ac_prev=x_libraries ;;
1361  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1362  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1363    x_libraries=$ac_optarg ;;
1364
1365  -*) as_fn_error "unrecognized option: \`$ac_option'
1366Try \`$0 --help' for more information."
1367    ;;
1368
1369  *=*)
1370    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1371    # Reject names that are not valid shell variable names.
1372    case $ac_envvar in #(
1373      '' | [0-9]* | *[!_$as_cr_alnum]* )
1374      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1375    esac
1376    eval $ac_envvar=\$ac_optarg
1377    export $ac_envvar ;;
1378
1379  *)
1380    # FIXME: should be removed in autoconf 3.0.
1381    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1382    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1383      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1384    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1385    ;;
1386
1387  esac
1388done
1389
1390if test -n "$ac_prev"; then
1391  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1392  as_fn_error "missing argument to $ac_option"
1393fi
1394
1395if test -n "$ac_unrecognized_opts"; then
1396  case $enable_option_checking in
1397    no) ;;
1398    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1399    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1400  esac
1401fi
1402
1403# Check all directory arguments for consistency.
1404for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1405		datadir sysconfdir sharedstatedir localstatedir includedir \
1406		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1407		libdir localedir mandir
1408do
1409  eval ac_val=\$$ac_var
1410  # Remove trailing slashes.
1411  case $ac_val in
1412    */ )
1413      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1414      eval $ac_var=\$ac_val;;
1415  esac
1416  # Be sure to have absolute directory names.
1417  case $ac_val in
1418    [\\/$]* | ?:[\\/]* )  continue;;
1419    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1420  esac
1421  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1422done
1423
1424# There might be people who depend on the old broken behavior: `$host'
1425# used to hold the argument of --host etc.
1426# FIXME: To remove some day.
1427build=$build_alias
1428host=$host_alias
1429target=$target_alias
1430
1431# FIXME: To remove some day.
1432if test "x$host_alias" != x; then
1433  if test "x$build_alias" = x; then
1434    cross_compiling=maybe
1435    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1436    If a cross compiler is detected then cross compile mode will be used." >&2
1437  elif test "x$build_alias" != "x$host_alias"; then
1438    cross_compiling=yes
1439  fi
1440fi
1441
1442ac_tool_prefix=
1443test -n "$host_alias" && ac_tool_prefix=$host_alias-
1444
1445test "$silent" = yes && exec 6>/dev/null
1446
1447
1448ac_pwd=`pwd` && test -n "$ac_pwd" &&
1449ac_ls_di=`ls -di .` &&
1450ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1451  as_fn_error "working directory cannot be determined"
1452test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1453  as_fn_error "pwd does not report name of working directory"
1454
1455
1456# Find the source files, if location was not specified.
1457if test -z "$srcdir"; then
1458  ac_srcdir_defaulted=yes
1459  # Try the directory containing this script, then the parent directory.
1460  ac_confdir=`$as_dirname -- "$as_myself" ||
1461$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1462	 X"$as_myself" : 'X\(//\)[^/]' \| \
1463	 X"$as_myself" : 'X\(//\)$' \| \
1464	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1465$as_echo X"$as_myself" |
1466    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1467	    s//\1/
1468	    q
1469	  }
1470	  /^X\(\/\/\)[^/].*/{
1471	    s//\1/
1472	    q
1473	  }
1474	  /^X\(\/\/\)$/{
1475	    s//\1/
1476	    q
1477	  }
1478	  /^X\(\/\).*/{
1479	    s//\1/
1480	    q
1481	  }
1482	  s/.*/./; q'`
1483  srcdir=$ac_confdir
1484  if test ! -r "$srcdir/$ac_unique_file"; then
1485    srcdir=..
1486  fi
1487else
1488  ac_srcdir_defaulted=no
1489fi
1490if test ! -r "$srcdir/$ac_unique_file"; then
1491  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1492  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1493fi
1494ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1495ac_abs_confdir=`(
1496	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1497	pwd)`
1498# When building in place, set srcdir=.
1499if test "$ac_abs_confdir" = "$ac_pwd"; then
1500  srcdir=.
1501fi
1502# Remove unnecessary trailing slashes from srcdir.
1503# Double slashes in file names in object file debugging info
1504# mess up M-x gdb in Emacs.
1505case $srcdir in
1506*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1507esac
1508for ac_var in $ac_precious_vars; do
1509  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1510  eval ac_env_${ac_var}_value=\$${ac_var}
1511  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1512  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1513done
1514
1515#
1516# Report the --help message.
1517#
1518if test "$ac_init_help" = "long"; then
1519  # Omit some internal or obsolete options to make the list less imposing.
1520  # This message is too long to be a string in the A/UX 3.1 sh.
1521  cat <<_ACEOF
1522\`configure' configures this package to adapt to many kinds of systems.
1523
1524Usage: $0 [OPTION]... [VAR=VALUE]...
1525
1526To assign environment variables (e.g., CC, CFLAGS...), specify them as
1527VAR=VALUE.  See below for descriptions of some of the useful variables.
1528
1529Defaults for the options are specified in brackets.
1530
1531Configuration:
1532  -h, --help              display this help and exit
1533      --help=short        display options specific to this package
1534      --help=recursive    display the short help of all the included packages
1535  -V, --version           display version information and exit
1536  -q, --quiet, --silent   do not print \`checking...' messages
1537      --cache-file=FILE   cache test results in FILE [disabled]
1538  -C, --config-cache      alias for \`--cache-file=config.cache'
1539  -n, --no-create         do not create output files
1540      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1541
1542Installation directories:
1543  --prefix=PREFIX         install architecture-independent files in PREFIX
1544                          [$ac_default_prefix]
1545  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1546                          [PREFIX]
1547
1548By default, \`make install' will install all the files in
1549\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1550an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1551for instance \`--prefix=\$HOME'.
1552
1553For better control, use the options below.
1554
1555Fine tuning of the installation directories:
1556  --bindir=DIR            user executables [EPREFIX/bin]
1557  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1558  --libexecdir=DIR        program executables [EPREFIX/libexec]
1559  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1560  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1561  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1562  --libdir=DIR            object code libraries [EPREFIX/lib]
1563  --includedir=DIR        C header files [PREFIX/include]
1564  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1565  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1566  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1567  --infodir=DIR           info documentation [DATAROOTDIR/info]
1568  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1569  --mandir=DIR            man documentation [DATAROOTDIR/man]
1570  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1571  --htmldir=DIR           html documentation [DOCDIR]
1572  --dvidir=DIR            dvi documentation [DOCDIR]
1573  --pdfdir=DIR            pdf documentation [DOCDIR]
1574  --psdir=DIR             ps documentation [DOCDIR]
1575_ACEOF
1576
1577  cat <<\_ACEOF
1578
1579Program names:
1580  --program-prefix=PREFIX            prepend PREFIX to installed program names
1581  --program-suffix=SUFFIX            append SUFFIX to installed program names
1582  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1583
1584System types:
1585  --build=BUILD     configure for building on BUILD [guessed]
1586  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1587  --target=TARGET   configure for building compilers for TARGET [HOST]
1588_ACEOF
1589fi
1590
1591if test -n "$ac_init_help"; then
1592
1593  cat <<\_ACEOF
1594
1595Optional Features:
1596  --disable-option-checking  ignore unrecognized --enable/--with options
1597  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1598  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1599  --enable-generated-files-in-srcdir
1600                          put copies of generated files in source dir intended
1601                          for creating source tarballs for users without
1602                          texinfo bison or flex
1603  --disable-largefile     omit support for large files
1604  --disable-build-format-warnings
1605                          don't use -Wformat while building GCC
1606  --enable-werror-always  enable -Werror despite compiler version
1607  --enable-checking[=LIST]
1608                          enable expensive run-time checks. With LIST, enable
1609                          only specific categories of checks. Categories are:
1610                          yes,no,all,none,release. Flags are:
1611                          assert,df,extra,fold,gc,gcac,gimple,misc,
1612                          rtlflag,rtl,runtime,tree,valgrind,types
1613  --enable-coverage[=LEVEL]
1614                          enable compiler's code coverage collection. Use to
1615                          measure compiler performance and locate unused parts
1616                          of the compiler. With LEVEL, specify optimization.
1617                          Values are opt, noopt, default is noopt
1618  --enable-gather-detailed-mem-stats
1619                          enable detailed memory allocation stats gathering
1620  --enable-valgrind-annotations
1621                          enable valgrind runtime interaction
1622  --enable-multilib       enable library support for multiple ABIs
1623  --enable-multiarch      enable support for multiarch paths
1624  --enable-__cxa_atexit   enable __cxa_atexit for C++
1625  --enable-decimal-float={no,yes,bid,dpd}
1626			enable decimal float extension to C.  Selecting 'bid'
1627			or 'dpd' choses which decimal floating point format
1628			to use
1629  --enable-fixed-point    enable fixed-point arithmetic extension to C
1630  --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1631                          package
1632  --enable-tls            enable or disable generation of tls code overriding
1633                          the assembler check for tls support
1634  --enable-vtable-verify  enable vtable verification feature
1635  --enable-objc-gc        enable the use of Boehm's garbage collector with the
1636                          GNU Objective-C runtime
1637  --disable-shared        don't provide a shared libgcc
1638  --enable-languages=LIST specify which front-ends to build
1639  --disable-rpath         do not hardcode runtime library paths
1640  --enable-sjlj-exceptions
1641                          arrange to use setjmp/longjmp exception handling
1642  --enable-secureplt      enable -msecure-plt by default for PowerPC
1643  --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1644                          Default to platform configuration
1645  --enable-leading-mingw64-underscores
1646                          enable leading underscores on 64 bit mingw targets
1647  --enable-cld            enable -mcld by default for 32bit x86
1648  --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1649                          x86
1650  --disable-win32-registry
1651                          disable lookup of installation paths in the Registry
1652                          on Windows hosts
1653  --enable-win32-registry enable registry lookup (default)
1654  --enable-win32-registry=KEY
1655                          use KEY instead of GCC version as the last portion
1656                          of the registry key
1657  --enable-shared[=PKGS]  build shared libraries [default=yes]
1658  --enable-static[=PKGS]  build static libraries [default=yes]
1659  --enable-fast-install[=PKGS]
1660                          optimize for fast installation [default=yes]
1661  --disable-libtool-lock  avoid locking (might break parallel builds)
1662  --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1663  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1664  --enable-gnu-indirect-function
1665                          enable the use of the @gnu_indirect_function to
1666                          glibc systems
1667  --enable-initfini-array	use .init_array/.fini_array sections
1668  --enable-comdat         enable COMDAT group support
1669
1670  --enable-fix-cortex-a53-835769
1671                          enable workaround for AArch64 Cortex-A53 erratum
1672                          835769 by default
1673  --disable-fix-cortex-a53-835769
1674                          disable workaround for AArch64 Cortex-A53 erratum
1675                          835769 by default
1676
1677
1678  --enable-fix-cortex-a53-843419
1679                          enable workaround for AArch64 Cortex-A53 erratum
1680                          843419 by default
1681  --disable-fix-cortex-a53-843419
1682                          disable workaround for AArch64 Cortex-A53 erratum
1683                          843419 by default
1684
1685  --enable-gnu-unique-object
1686                          enable the use of the @gnu_unique_object ELF
1687                          extension on glibc systems
1688  --enable-linker-build-id
1689                          compiler will always pass --build-id to linker
1690  --enable-libssp         enable linking against libssp
1691  --enable-default-ssp    enable Stack Smashing Protection as default
1692  --enable-maintainer-mode
1693                          enable make rules and dependencies not useful (and
1694                          sometimes confusing) to the casual installer
1695  --enable-link-mutex     avoid linking multiple front-ends at once to avoid
1696                          thrashing on the build machine
1697  --enable-version-specific-runtime-libs
1698                          specify that runtime libraries should be installed
1699                          in a compiler-specific directory
1700  --enable-plugin         enable plugin support
1701  --enable-host-shared    build host code as shared libraries
1702  --disable-libquadmath-support
1703                          disable libquadmath support for Fortran
1704  --enable-default-pie    enable Position Independent Executable as default
1705
1706Optional Packages:
1707  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1708  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1709  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1710  --with-local-prefix=DIR specifies directory to put local include
1711  --with-native-system-header-dir=dir
1712                          use dir as the directory to look for standard
1713                          system header files in.  Defaults to /usr/include.
1714  --with-build-sysroot=sysroot
1715                          use sysroot as the system root during the build
1716  --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1717  --with-gxx-include-dir=DIR
1718                          specifies directory to put g++ header files
1719  --with-cpp-install-dir=DIR
1720                          install the user visible C preprocessor in DIR
1721                          (relative to PREFIX) as well as PREFIX/bin
1722  --with-gnu-ld           arrange to work with GNU ld
1723  --with-ld               arrange to use the specified ld (full pathname)
1724  --with-demangler-in-ld  try to use demangler in GNU ld
1725  --with-gnu-as           arrange to work with GNU as
1726  --with-as               arrange to use the specified as (full pathname)
1727  --with-stabs            arrange to use stabs instead of host debug format
1728  --with-dwarf2           force the default debug format to be DWARF 2
1729  --with-specs=SPECS      add SPECS to driver command-line processing
1730  --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1731  --with-bugurl=URL       Direct users to URL to report a bug
1732  --with-multilib-list    select multilibs (AArch64, SH and x86-64 only)
1733  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1734  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1735  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1736  --with-gcc-major-version-only
1737                          use only GCC major number in filesystem paths
1738  --with-pic              try to use only PIC/non-PIC objects [default=use
1739                          both]
1740  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1741  --with-plugin-ld=[ARG]  specify the plugin linker
1742  --with-glibc-version=M.N
1743                          assume GCC used with glibc version M.N or later
1744  --with-long-double-128  use 128-bit long double by default
1745  --with-long-double-format={ieee,ibm}
1746		  Specify whether PowerPC long double uses IEEE or IBM format
1747
1748  --with-gc={page,zone}   this option is not supported anymore. It used to
1749                          choose the garbage collection mechanism to use with
1750                          the compiler
1751  --with-system-zlib      use installed libz
1752  --with-linker-hash-style={sysv,gnu,both}
1753                          specify the linker hash style
1754  --with-diagnostics-color={never,auto,auto-if-env,always}
1755                          specify the default of -fdiagnostics-color option
1756                          auto-if-env stands for -fdiagnostics-color=auto if
1757                          GCC_COLOR environment variable is present and
1758                          -fdiagnostics-color=never otherwise
1759
1760Some influential environment variables:
1761  CC          C compiler command
1762  CFLAGS      C compiler flags
1763  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1764              nonstandard directory <lib dir>
1765  LIBS        libraries to pass to the linker, e.g. -l<library>
1766  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1767              you have headers in a nonstandard directory <include dir>
1768  CXX         C++ compiler command
1769  CXXFLAGS    C++ compiler flags
1770  CXXCPP      C++ preprocessor
1771  CPP         C preprocessor
1772  GMPLIBS     How to link GMP
1773  GMPINC      How to find GMP include files
1774  ISLLIBS     How to link isl
1775  ISLINC      How to find isl include files
1776
1777Use these variables to override the choices made by `configure' or to help
1778it to find libraries and programs with nonstandard names/locations.
1779
1780Report bugs to the package provider.
1781_ACEOF
1782ac_status=$?
1783fi
1784
1785if test "$ac_init_help" = "recursive"; then
1786  # If there are subdirs, report their specific --help.
1787  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1788    test -d "$ac_dir" ||
1789      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1790      continue
1791    ac_builddir=.
1792
1793case "$ac_dir" in
1794.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1795*)
1796  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1797  # A ".." for each directory in $ac_dir_suffix.
1798  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1799  case $ac_top_builddir_sub in
1800  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1801  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1802  esac ;;
1803esac
1804ac_abs_top_builddir=$ac_pwd
1805ac_abs_builddir=$ac_pwd$ac_dir_suffix
1806# for backward compatibility:
1807ac_top_builddir=$ac_top_build_prefix
1808
1809case $srcdir in
1810  .)  # We are building in place.
1811    ac_srcdir=.
1812    ac_top_srcdir=$ac_top_builddir_sub
1813    ac_abs_top_srcdir=$ac_pwd ;;
1814  [\\/]* | ?:[\\/]* )  # Absolute name.
1815    ac_srcdir=$srcdir$ac_dir_suffix;
1816    ac_top_srcdir=$srcdir
1817    ac_abs_top_srcdir=$srcdir ;;
1818  *) # Relative name.
1819    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1820    ac_top_srcdir=$ac_top_build_prefix$srcdir
1821    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1822esac
1823ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1824
1825    cd "$ac_dir" || { ac_status=$?; continue; }
1826    # Check for guested configure.
1827    if test -f "$ac_srcdir/configure.gnu"; then
1828      echo &&
1829      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1830    elif test -f "$ac_srcdir/configure"; then
1831      echo &&
1832      $SHELL "$ac_srcdir/configure" --help=recursive
1833    else
1834      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1835    fi || ac_status=$?
1836    cd "$ac_pwd" || { ac_status=$?; break; }
1837  done
1838fi
1839
1840test -n "$ac_init_help" && exit $ac_status
1841if $ac_init_version; then
1842  cat <<\_ACEOF
1843configure
1844generated by GNU Autoconf 2.64
1845
1846Copyright (C) 2009 Free Software Foundation, Inc.
1847This configure script is free software; the Free Software Foundation
1848gives unlimited permission to copy, distribute and modify it.
1849_ACEOF
1850  exit
1851fi
1852
1853## ------------------------ ##
1854## Autoconf initialization. ##
1855## ------------------------ ##
1856
1857# ac_fn_c_try_compile LINENO
1858# --------------------------
1859# Try to compile conftest.$ac_ext, and return whether this succeeded.
1860ac_fn_c_try_compile ()
1861{
1862  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863  rm -f conftest.$ac_objext
1864  if { { ac_try="$ac_compile"
1865case "(($ac_try" in
1866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867  *) ac_try_echo=$ac_try;;
1868esac
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871  (eval "$ac_compile") 2>conftest.err
1872  ac_status=$?
1873  if test -s conftest.err; then
1874    grep -v '^ *+' conftest.err >conftest.er1
1875    cat conftest.er1 >&5
1876    mv -f conftest.er1 conftest.err
1877  fi
1878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879  test $ac_status = 0; } && {
1880	 test -z "$ac_c_werror_flag" ||
1881	 test ! -s conftest.err
1882       } && test -s conftest.$ac_objext; then :
1883  ac_retval=0
1884else
1885  $as_echo "$as_me: failed program was:" >&5
1886sed 's/^/| /' conftest.$ac_ext >&5
1887
1888	ac_retval=1
1889fi
1890  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891  return $ac_retval
1892
1893} # ac_fn_c_try_compile
1894
1895# ac_fn_cxx_try_compile LINENO
1896# ----------------------------
1897# Try to compile conftest.$ac_ext, and return whether this succeeded.
1898ac_fn_cxx_try_compile ()
1899{
1900  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901  rm -f conftest.$ac_objext
1902  if { { ac_try="$ac_compile"
1903case "(($ac_try" in
1904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905  *) ac_try_echo=$ac_try;;
1906esac
1907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908$as_echo "$ac_try_echo"; } >&5
1909  (eval "$ac_compile") 2>conftest.err
1910  ac_status=$?
1911  if test -s conftest.err; then
1912    grep -v '^ *+' conftest.err >conftest.er1
1913    cat conftest.er1 >&5
1914    mv -f conftest.er1 conftest.err
1915  fi
1916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917  test $ac_status = 0; } && {
1918	 test -z "$ac_cxx_werror_flag" ||
1919	 test ! -s conftest.err
1920       } && test -s conftest.$ac_objext; then :
1921  ac_retval=0
1922else
1923  $as_echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926	ac_retval=1
1927fi
1928  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929  return $ac_retval
1930
1931} # ac_fn_cxx_try_compile
1932
1933# ac_fn_cxx_try_cpp LINENO
1934# ------------------------
1935# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1936ac_fn_cxx_try_cpp ()
1937{
1938  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939  if { { ac_try="$ac_cpp conftest.$ac_ext"
1940case "(($ac_try" in
1941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942  *) ac_try_echo=$ac_try;;
1943esac
1944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945$as_echo "$ac_try_echo"; } >&5
1946  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1947  ac_status=$?
1948  if test -s conftest.err; then
1949    grep -v '^ *+' conftest.err >conftest.er1
1950    cat conftest.er1 >&5
1951    mv -f conftest.er1 conftest.err
1952  fi
1953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954  test $ac_status = 0; } >/dev/null && {
1955	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1956	 test ! -s conftest.err
1957       }; then :
1958  ac_retval=0
1959else
1960  $as_echo "$as_me: failed program was:" >&5
1961sed 's/^/| /' conftest.$ac_ext >&5
1962
1963    ac_retval=1
1964fi
1965  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966  return $ac_retval
1967
1968} # ac_fn_cxx_try_cpp
1969
1970# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1971# ---------------------------------------------------------
1972# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1973# the include files in INCLUDES and setting the cache variable VAR
1974# accordingly.
1975ac_fn_cxx_check_header_mongrel ()
1976{
1977  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980$as_echo_n "checking for $2... " >&6; }
1981if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982  $as_echo_n "(cached) " >&6
1983fi
1984eval ac_res=\$$3
1985	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986$as_echo "$ac_res" >&6; }
1987else
1988  # Is the header compilable?
1989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1990$as_echo_n "checking $2 usability... " >&6; }
1991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h.  */
1993$4
1994#include <$2>
1995_ACEOF
1996if ac_fn_cxx_try_compile "$LINENO"; then :
1997  ac_header_compiler=yes
1998else
1999  ac_header_compiler=no
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2003$as_echo "$ac_header_compiler" >&6; }
2004
2005# Is the header present?
2006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2007$as_echo_n "checking $2 presence... " >&6; }
2008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h.  */
2010#include <$2>
2011_ACEOF
2012if ac_fn_cxx_try_cpp "$LINENO"; then :
2013  ac_header_preproc=yes
2014else
2015  ac_header_preproc=no
2016fi
2017rm -f conftest.err conftest.$ac_ext
2018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2019$as_echo "$ac_header_preproc" >&6; }
2020
2021# So?  What about this header?
2022case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2023  yes:no: )
2024    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2025$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2026    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2027$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2028    ;;
2029  no:yes:* )
2030    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2031$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2032    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2033$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2034    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2035$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2036    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2037$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2038    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040    ;;
2041esac
2042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043$as_echo_n "checking for $2... " >&6; }
2044if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2045  $as_echo_n "(cached) " >&6
2046else
2047  eval "$3=\$ac_header_compiler"
2048fi
2049eval ac_res=\$$3
2050	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052fi
2053  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054
2055} # ac_fn_cxx_check_header_mongrel
2056
2057# ac_fn_cxx_try_run LINENO
2058# ------------------------
2059# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2060# that executables *can* be run.
2061ac_fn_cxx_try_run ()
2062{
2063  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064  if { { ac_try="$ac_link"
2065case "(($ac_try" in
2066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067  *) ac_try_echo=$ac_try;;
2068esac
2069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070$as_echo "$ac_try_echo"; } >&5
2071  (eval "$ac_link") 2>&5
2072  ac_status=$?
2073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2075  { { case "(($ac_try" in
2076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2077  *) ac_try_echo=$ac_try;;
2078esac
2079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2080$as_echo "$ac_try_echo"; } >&5
2081  (eval "$ac_try") 2>&5
2082  ac_status=$?
2083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084  test $ac_status = 0; }; }; then :
2085  ac_retval=0
2086else
2087  $as_echo "$as_me: program exited with status $ac_status" >&5
2088       $as_echo "$as_me: failed program was:" >&5
2089sed 's/^/| /' conftest.$ac_ext >&5
2090
2091       ac_retval=$ac_status
2092fi
2093  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2094  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095  return $ac_retval
2096
2097} # ac_fn_cxx_try_run
2098
2099# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2100# ---------------------------------------------------------
2101# Tests whether HEADER exists and can be compiled using the include files in
2102# INCLUDES, setting the cache variable VAR accordingly.
2103ac_fn_cxx_check_header_compile ()
2104{
2105  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107$as_echo_n "checking for $2... " >&6; }
2108if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2109  $as_echo_n "(cached) " >&6
2110else
2111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112/* end confdefs.h.  */
2113$4
2114#include <$2>
2115_ACEOF
2116if ac_fn_cxx_try_compile "$LINENO"; then :
2117  eval "$3=yes"
2118else
2119  eval "$3=no"
2120fi
2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122fi
2123eval ac_res=\$$3
2124	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125$as_echo "$ac_res" >&6; }
2126  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2127
2128} # ac_fn_cxx_check_header_compile
2129
2130# ac_fn_c_try_cpp LINENO
2131# ----------------------
2132# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2133ac_fn_c_try_cpp ()
2134{
2135  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136  if { { ac_try="$ac_cpp conftest.$ac_ext"
2137case "(($ac_try" in
2138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139  *) ac_try_echo=$ac_try;;
2140esac
2141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2142$as_echo "$ac_try_echo"; } >&5
2143  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2144  ac_status=$?
2145  if test -s conftest.err; then
2146    grep -v '^ *+' conftest.err >conftest.er1
2147    cat conftest.er1 >&5
2148    mv -f conftest.er1 conftest.err
2149  fi
2150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2151  test $ac_status = 0; } >/dev/null && {
2152	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2153	 test ! -s conftest.err
2154       }; then :
2155  ac_retval=0
2156else
2157  $as_echo "$as_me: failed program was:" >&5
2158sed 's/^/| /' conftest.$ac_ext >&5
2159
2160    ac_retval=1
2161fi
2162  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2163  return $ac_retval
2164
2165} # ac_fn_c_try_cpp
2166
2167# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2168# ----------------------------------------------
2169# Tries to find the compile-time value of EXPR in a program that includes
2170# INCLUDES, setting VAR accordingly. Returns whether the value could be
2171# computed
2172ac_fn_cxx_compute_int ()
2173{
2174  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175  if test "$cross_compiling" = yes; then
2176    # Depending upon the size, compute the lo and hi bounds.
2177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h.  */
2179$4
2180int
2181main ()
2182{
2183static int test_array [1 - 2 * !(($2) >= 0)];
2184test_array [0] = 0
2185
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190if ac_fn_cxx_try_compile "$LINENO"; then :
2191  ac_lo=0 ac_mid=0
2192  while :; do
2193    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h.  */
2195$4
2196int
2197main ()
2198{
2199static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2200test_array [0] = 0
2201
2202  ;
2203  return 0;
2204}
2205_ACEOF
2206if ac_fn_cxx_try_compile "$LINENO"; then :
2207  ac_hi=$ac_mid; break
2208else
2209  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2210			if test $ac_lo -le $ac_mid; then
2211			  ac_lo= ac_hi=
2212			  break
2213			fi
2214			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2215fi
2216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217  done
2218else
2219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h.  */
2221$4
2222int
2223main ()
2224{
2225static int test_array [1 - 2 * !(($2) < 0)];
2226test_array [0] = 0
2227
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232if ac_fn_cxx_try_compile "$LINENO"; then :
2233  ac_hi=-1 ac_mid=-1
2234  while :; do
2235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$4
2238int
2239main ()
2240{
2241static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2242test_array [0] = 0
2243
2244  ;
2245  return 0;
2246}
2247_ACEOF
2248if ac_fn_cxx_try_compile "$LINENO"; then :
2249  ac_lo=$ac_mid; break
2250else
2251  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2252			if test $ac_mid -le $ac_hi; then
2253			  ac_lo= ac_hi=
2254			  break
2255			fi
2256			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2257fi
2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259  done
2260else
2261  ac_lo= ac_hi=
2262fi
2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264fi
2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266# Binary search between lo and hi bounds.
2267while test "x$ac_lo" != "x$ac_hi"; do
2268  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270/* end confdefs.h.  */
2271$4
2272int
2273main ()
2274{
2275static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2276test_array [0] = 0
2277
2278  ;
2279  return 0;
2280}
2281_ACEOF
2282if ac_fn_cxx_try_compile "$LINENO"; then :
2283  ac_hi=$ac_mid
2284else
2285  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2286fi
2287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288done
2289case $ac_lo in #((
2290?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2291'') ac_retval=1 ;;
2292esac
2293  else
2294    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295/* end confdefs.h.  */
2296$4
2297static long int longval () { return $2; }
2298static unsigned long int ulongval () { return $2; }
2299#include <stdio.h>
2300#include <stdlib.h>
2301int
2302main ()
2303{
2304
2305  FILE *f = fopen ("conftest.val", "w");
2306  if (! f)
2307    return 1;
2308  if (($2) < 0)
2309    {
2310      long int i = longval ();
2311      if (i != ($2))
2312	return 1;
2313      fprintf (f, "%ld", i);
2314    }
2315  else
2316    {
2317      unsigned long int i = ulongval ();
2318      if (i != ($2))
2319	return 1;
2320      fprintf (f, "%lu", i);
2321    }
2322  /* Do not output a trailing newline, as this causes \r\n confusion
2323     on some platforms.  */
2324  return ferror (f) || fclose (f) != 0;
2325
2326  ;
2327  return 0;
2328}
2329_ACEOF
2330if ac_fn_cxx_try_run "$LINENO"; then :
2331  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2332else
2333  ac_retval=1
2334fi
2335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2336  conftest.$ac_objext conftest.beam conftest.$ac_ext
2337rm -f conftest.val
2338
2339  fi
2340  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2341  return $ac_retval
2342
2343} # ac_fn_cxx_compute_int
2344
2345# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2346# ---------------------------------------------
2347# Tests whether TYPE exists after having included INCLUDES, setting cache
2348# variable VAR accordingly.
2349ac_fn_cxx_check_type ()
2350{
2351  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2353$as_echo_n "checking for $2... " >&6; }
2354if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2355  $as_echo_n "(cached) " >&6
2356else
2357  eval "$3=no"
2358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359/* end confdefs.h.  */
2360$4
2361int
2362main ()
2363{
2364if (sizeof ($2))
2365	 return 0;
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370if ac_fn_cxx_try_compile "$LINENO"; then :
2371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372/* end confdefs.h.  */
2373$4
2374int
2375main ()
2376{
2377if (sizeof (($2)))
2378	    return 0;
2379  ;
2380  return 0;
2381}
2382_ACEOF
2383if ac_fn_cxx_try_compile "$LINENO"; then :
2384
2385else
2386  eval "$3=yes"
2387fi
2388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389fi
2390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391fi
2392eval ac_res=\$$3
2393	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394$as_echo "$ac_res" >&6; }
2395  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2396
2397} # ac_fn_cxx_check_type
2398
2399# ac_fn_c_find_intX_t LINENO BITS VAR
2400# -----------------------------------
2401# Finds a signed integer type with width BITS, setting cache variable VAR
2402# accordingly.
2403ac_fn_c_find_intX_t ()
2404{
2405  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2407$as_echo_n "checking for int$2_t... " >&6; }
2408if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2409  $as_echo_n "(cached) " >&6
2410else
2411  eval "$3=no"
2412     for ac_type in int$2_t 'int' 'long int' \
2413	 'long long int' 'short int' 'signed char'; do
2414       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415/* end confdefs.h.  */
2416$ac_includes_default
2417int
2418main ()
2419{
2420static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2421test_array [0] = 0
2422
2423  ;
2424  return 0;
2425}
2426_ACEOF
2427if ac_fn_cxx_try_compile "$LINENO"; then :
2428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429/* end confdefs.h.  */
2430$ac_includes_default
2431int
2432main ()
2433{
2434static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2435		 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2436test_array [0] = 0
2437
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442if ac_fn_cxx_try_compile "$LINENO"; then :
2443
2444else
2445  case $ac_type in #(
2446  int$2_t) :
2447    eval "$3=yes" ;; #(
2448  *) :
2449    eval "$3=\$ac_type" ;;
2450esac
2451fi
2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453fi
2454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455       eval as_val=\$$3
2456   if test "x$as_val" = x""no; then :
2457
2458else
2459  break
2460fi
2461     done
2462fi
2463eval ac_res=\$$3
2464	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465$as_echo "$ac_res" >&6; }
2466  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467
2468} # ac_fn_c_find_intX_t
2469
2470# ac_fn_cxx_try_link LINENO
2471# -------------------------
2472# Try to link conftest.$ac_ext, and return whether this succeeded.
2473ac_fn_cxx_try_link ()
2474{
2475  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476  rm -f conftest.$ac_objext conftest$ac_exeext
2477  if { { ac_try="$ac_link"
2478case "(($ac_try" in
2479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480  *) ac_try_echo=$ac_try;;
2481esac
2482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483$as_echo "$ac_try_echo"; } >&5
2484  (eval "$ac_link") 2>conftest.err
2485  ac_status=$?
2486  if test -s conftest.err; then
2487    grep -v '^ *+' conftest.err >conftest.er1
2488    cat conftest.er1 >&5
2489    mv -f conftest.er1 conftest.err
2490  fi
2491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2492  test $ac_status = 0; } && {
2493	 test -z "$ac_cxx_werror_flag" ||
2494	 test ! -s conftest.err
2495       } && test -s conftest$ac_exeext && {
2496	 test "$cross_compiling" = yes ||
2497	 $as_test_x conftest$ac_exeext
2498       }; then :
2499  ac_retval=0
2500else
2501  $as_echo "$as_me: failed program was:" >&5
2502sed 's/^/| /' conftest.$ac_ext >&5
2503
2504	ac_retval=1
2505fi
2506  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2507  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2508  # interfere with the next link command; also delete a directory that is
2509  # left behind by Apple's compiler.  We do this before executing the actions.
2510  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2511  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512  return $ac_retval
2513
2514} # ac_fn_cxx_try_link
2515
2516# ac_fn_c_find_uintX_t LINENO BITS VAR
2517# ------------------------------------
2518# Finds an unsigned integer type with width BITS, setting cache variable VAR
2519# accordingly.
2520ac_fn_c_find_uintX_t ()
2521{
2522  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2524$as_echo_n "checking for uint$2_t... " >&6; }
2525if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2526  $as_echo_n "(cached) " >&6
2527else
2528  eval "$3=no"
2529     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2530	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2531       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532/* end confdefs.h.  */
2533$ac_includes_default
2534int
2535main ()
2536{
2537static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2538test_array [0] = 0
2539
2540  ;
2541  return 0;
2542}
2543_ACEOF
2544if ac_fn_cxx_try_compile "$LINENO"; then :
2545  case $ac_type in #(
2546  uint$2_t) :
2547    eval "$3=yes" ;; #(
2548  *) :
2549    eval "$3=\$ac_type" ;;
2550esac
2551fi
2552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553       eval as_val=\$$3
2554   if test "x$as_val" = x""no; then :
2555
2556else
2557  break
2558fi
2559     done
2560fi
2561eval ac_res=\$$3
2562	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563$as_echo "$ac_res" >&6; }
2564  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565
2566} # ac_fn_c_find_uintX_t
2567
2568# ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2569# ------------------------------------------------
2570# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2571ac_fn_cxx_check_header_preproc ()
2572{
2573  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2575$as_echo_n "checking for $2... " >&6; }
2576if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2577  $as_echo_n "(cached) " >&6
2578else
2579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580/* end confdefs.h.  */
2581#include <$2>
2582_ACEOF
2583if ac_fn_cxx_try_cpp "$LINENO"; then :
2584  eval "$3=yes"
2585else
2586  eval "$3=no"
2587fi
2588rm -f conftest.err conftest.$ac_ext
2589fi
2590eval ac_res=\$$3
2591	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592$as_echo "$ac_res" >&6; }
2593  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2594
2595} # ac_fn_cxx_check_header_preproc
2596
2597# ac_fn_cxx_check_func LINENO FUNC VAR
2598# ------------------------------------
2599# Tests whether FUNC exists, setting the cache variable VAR accordingly
2600ac_fn_cxx_check_func ()
2601{
2602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2604$as_echo_n "checking for $2... " >&6; }
2605if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2606  $as_echo_n "(cached) " >&6
2607else
2608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609/* end confdefs.h.  */
2610/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2611   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2612#define $2 innocuous_$2
2613
2614/* System header to define __stub macros and hopefully few prototypes,
2615    which can conflict with char $2 (); below.
2616    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2617    <limits.h> exists even on freestanding compilers.  */
2618
2619#ifdef __STDC__
2620# include <limits.h>
2621#else
2622# include <assert.h>
2623#endif
2624
2625#undef $2
2626
2627/* Override any GCC internal prototype to avoid an error.
2628   Use char because int might match the return type of a GCC
2629   builtin and then its argument prototype would still apply.  */
2630#ifdef __cplusplus
2631extern "C"
2632#endif
2633char $2 ();
2634/* The GNU C library defines this for functions which it implements
2635    to always fail with ENOSYS.  Some functions are actually named
2636    something starting with __ and the normal name is an alias.  */
2637#if defined __stub_$2 || defined __stub___$2
2638choke me
2639#endif
2640
2641int
2642main ()
2643{
2644return $2 ();
2645  ;
2646  return 0;
2647}
2648_ACEOF
2649if ac_fn_cxx_try_link "$LINENO"; then :
2650  eval "$3=yes"
2651else
2652  eval "$3=no"
2653fi
2654rm -f core conftest.err conftest.$ac_objext \
2655    conftest$ac_exeext conftest.$ac_ext
2656fi
2657eval ac_res=\$$3
2658	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2659$as_echo "$ac_res" >&6; }
2660  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2661
2662} # ac_fn_cxx_check_func
2663
2664# ac_fn_cxx_check_decl LINENO SYMBOL VAR
2665# --------------------------------------
2666# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2667ac_fn_cxx_check_decl ()
2668{
2669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670  as_decl_name=`echo $2|sed 's/ *(.*//'`
2671  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2673$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2674if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2675  $as_echo_n "(cached) " >&6
2676else
2677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678/* end confdefs.h.  */
2679$4
2680int
2681main ()
2682{
2683#ifndef $as_decl_name
2684#ifdef __cplusplus
2685  (void) $as_decl_use;
2686#else
2687  (void) $as_decl_name;
2688#endif
2689#endif
2690
2691  ;
2692  return 0;
2693}
2694_ACEOF
2695if ac_fn_cxx_try_compile "$LINENO"; then :
2696  eval "$3=yes"
2697else
2698  eval "$3=no"
2699fi
2700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701fi
2702eval ac_res=\$$3
2703	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2704$as_echo "$ac_res" >&6; }
2705  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2706
2707} # ac_fn_cxx_check_decl
2708
2709# ac_fn_c_try_link LINENO
2710# -----------------------
2711# Try to link conftest.$ac_ext, and return whether this succeeded.
2712ac_fn_c_try_link ()
2713{
2714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2715  rm -f conftest.$ac_objext conftest$ac_exeext
2716  if { { ac_try="$ac_link"
2717case "(($ac_try" in
2718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719  *) ac_try_echo=$ac_try;;
2720esac
2721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2722$as_echo "$ac_try_echo"; } >&5
2723  (eval "$ac_link") 2>conftest.err
2724  ac_status=$?
2725  if test -s conftest.err; then
2726    grep -v '^ *+' conftest.err >conftest.er1
2727    cat conftest.er1 >&5
2728    mv -f conftest.er1 conftest.err
2729  fi
2730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731  test $ac_status = 0; } && {
2732	 test -z "$ac_c_werror_flag" ||
2733	 test ! -s conftest.err
2734       } && test -s conftest$ac_exeext && {
2735	 test "$cross_compiling" = yes ||
2736	 $as_test_x conftest$ac_exeext
2737       }; then :
2738  ac_retval=0
2739else
2740  $as_echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743	ac_retval=1
2744fi
2745  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2746  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2747  # interfere with the next link command; also delete a directory that is
2748  # left behind by Apple's compiler.  We do this before executing the actions.
2749  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2750  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2751  return $ac_retval
2752
2753} # ac_fn_c_try_link
2754
2755# ac_fn_c_check_header_preproc LINENO HEADER VAR
2756# ----------------------------------------------
2757# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2758ac_fn_c_check_header_preproc ()
2759{
2760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2762$as_echo_n "checking for $2... " >&6; }
2763if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2764  $as_echo_n "(cached) " >&6
2765else
2766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767/* end confdefs.h.  */
2768#include <$2>
2769_ACEOF
2770if ac_fn_c_try_cpp "$LINENO"; then :
2771  eval "$3=yes"
2772else
2773  eval "$3=no"
2774fi
2775rm -f conftest.err conftest.$ac_ext
2776fi
2777eval ac_res=\$$3
2778	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2779$as_echo "$ac_res" >&6; }
2780  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2781
2782} # ac_fn_c_check_header_preproc
2783
2784# ac_fn_c_check_func LINENO FUNC VAR
2785# ----------------------------------
2786# Tests whether FUNC exists, setting the cache variable VAR accordingly
2787ac_fn_c_check_func ()
2788{
2789  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2791$as_echo_n "checking for $2... " >&6; }
2792if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2793  $as_echo_n "(cached) " >&6
2794else
2795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796/* end confdefs.h.  */
2797/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2798   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2799#define $2 innocuous_$2
2800
2801/* System header to define __stub macros and hopefully few prototypes,
2802    which can conflict with char $2 (); below.
2803    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2804    <limits.h> exists even on freestanding compilers.  */
2805
2806#ifdef __STDC__
2807# include <limits.h>
2808#else
2809# include <assert.h>
2810#endif
2811
2812#undef $2
2813
2814/* Override any GCC internal prototype to avoid an error.
2815   Use char because int might match the return type of a GCC
2816   builtin and then its argument prototype would still apply.  */
2817#ifdef __cplusplus
2818extern "C"
2819#endif
2820char $2 ();
2821/* The GNU C library defines this for functions which it implements
2822    to always fail with ENOSYS.  Some functions are actually named
2823    something starting with __ and the normal name is an alias.  */
2824#if defined __stub_$2 || defined __stub___$2
2825choke me
2826#endif
2827
2828int
2829main ()
2830{
2831return $2 ();
2832  ;
2833  return 0;
2834}
2835_ACEOF
2836if ac_fn_c_try_link "$LINENO"; then :
2837  eval "$3=yes"
2838else
2839  eval "$3=no"
2840fi
2841rm -f core conftest.err conftest.$ac_objext \
2842    conftest$ac_exeext conftest.$ac_ext
2843fi
2844eval ac_res=\$$3
2845	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2846$as_echo "$ac_res" >&6; }
2847  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2848
2849} # ac_fn_c_check_func
2850cat >config.log <<_ACEOF
2851This file contains any messages produced by compilers while
2852running configure, to aid debugging if configure makes a mistake.
2853
2854It was created by $as_me, which was
2855generated by GNU Autoconf 2.64.  Invocation command line was
2856
2857  $ $0 $@
2858
2859_ACEOF
2860exec 5>>config.log
2861{
2862cat <<_ASUNAME
2863## --------- ##
2864## Platform. ##
2865## --------- ##
2866
2867hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2868uname -m = `(uname -m) 2>/dev/null || echo unknown`
2869uname -r = `(uname -r) 2>/dev/null || echo unknown`
2870uname -s = `(uname -s) 2>/dev/null || echo unknown`
2871uname -v = `(uname -v) 2>/dev/null || echo unknown`
2872
2873/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2874/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2875
2876/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2877/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2878/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2879/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2880/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2881/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2882/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2883
2884_ASUNAME
2885
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889  IFS=$as_save_IFS
2890  test -z "$as_dir" && as_dir=.
2891    $as_echo "PATH: $as_dir"
2892  done
2893IFS=$as_save_IFS
2894
2895} >&5
2896
2897cat >&5 <<_ACEOF
2898
2899
2900## ----------- ##
2901## Core tests. ##
2902## ----------- ##
2903
2904_ACEOF
2905
2906
2907# Keep a trace of the command line.
2908# Strip out --no-create and --no-recursion so they do not pile up.
2909# Strip out --silent because we don't want to record it for future runs.
2910# Also quote any args containing shell meta-characters.
2911# Make two passes to allow for proper duplicate-argument suppression.
2912ac_configure_args=
2913ac_configure_args0=
2914ac_configure_args1=
2915ac_must_keep_next=false
2916for ac_pass in 1 2
2917do
2918  for ac_arg
2919  do
2920    case $ac_arg in
2921    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2922    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2923    | -silent | --silent | --silen | --sile | --sil)
2924      continue ;;
2925    *\'*)
2926      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2927    esac
2928    case $ac_pass in
2929    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2930    2)
2931      as_fn_append ac_configure_args1 " '$ac_arg'"
2932      if test $ac_must_keep_next = true; then
2933	ac_must_keep_next=false # Got value, back to normal.
2934      else
2935	case $ac_arg in
2936	  *=* | --config-cache | -C | -disable-* | --disable-* \
2937	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2938	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2939	  | -with-* | --with-* | -without-* | --without-* | --x)
2940	    case "$ac_configure_args0 " in
2941	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2942	    esac
2943	    ;;
2944	  -* ) ac_must_keep_next=true ;;
2945	esac
2946      fi
2947      as_fn_append ac_configure_args " '$ac_arg'"
2948      ;;
2949    esac
2950  done
2951done
2952{ ac_configure_args0=; unset ac_configure_args0;}
2953{ ac_configure_args1=; unset ac_configure_args1;}
2954
2955# When interrupted or exit'd, cleanup temporary files, and complete
2956# config.log.  We remove comments because anyway the quotes in there
2957# would cause problems or look ugly.
2958# WARNING: Use '\'' to represent an apostrophe within the trap.
2959# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2960trap 'exit_status=$?
2961  # Save into config.log some information that might help in debugging.
2962  {
2963    echo
2964
2965    cat <<\_ASBOX
2966## ---------------- ##
2967## Cache variables. ##
2968## ---------------- ##
2969_ASBOX
2970    echo
2971    # The following way of writing the cache mishandles newlines in values,
2972(
2973  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2974    eval ac_val=\$$ac_var
2975    case $ac_val in #(
2976    *${as_nl}*)
2977      case $ac_var in #(
2978      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2979$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2980      esac
2981      case $ac_var in #(
2982      _ | IFS | as_nl) ;; #(
2983      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2984      *) { eval $ac_var=; unset $ac_var;} ;;
2985      esac ;;
2986    esac
2987  done
2988  (set) 2>&1 |
2989    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2990    *${as_nl}ac_space=\ *)
2991      sed -n \
2992	"s/'\''/'\''\\\\'\'''\''/g;
2993	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2994      ;; #(
2995    *)
2996      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2997      ;;
2998    esac |
2999    sort
3000)
3001    echo
3002
3003    cat <<\_ASBOX
3004## ----------------- ##
3005## Output variables. ##
3006## ----------------- ##
3007_ASBOX
3008    echo
3009    for ac_var in $ac_subst_vars
3010    do
3011      eval ac_val=\$$ac_var
3012      case $ac_val in
3013      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3014      esac
3015      $as_echo "$ac_var='\''$ac_val'\''"
3016    done | sort
3017    echo
3018
3019    if test -n "$ac_subst_files"; then
3020      cat <<\_ASBOX
3021## ------------------- ##
3022## File substitutions. ##
3023## ------------------- ##
3024_ASBOX
3025      echo
3026      for ac_var in $ac_subst_files
3027      do
3028	eval ac_val=\$$ac_var
3029	case $ac_val in
3030	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3031	esac
3032	$as_echo "$ac_var='\''$ac_val'\''"
3033      done | sort
3034      echo
3035    fi
3036
3037    if test -s confdefs.h; then
3038      cat <<\_ASBOX
3039## ----------- ##
3040## confdefs.h. ##
3041## ----------- ##
3042_ASBOX
3043      echo
3044      cat confdefs.h
3045      echo
3046    fi
3047    test "$ac_signal" != 0 &&
3048      $as_echo "$as_me: caught signal $ac_signal"
3049    $as_echo "$as_me: exit $exit_status"
3050  } >&5
3051  rm -f core *.core core.conftest.* &&
3052    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3053    exit $exit_status
3054' 0
3055for ac_signal in 1 2 13 15; do
3056  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3057done
3058ac_signal=0
3059
3060# confdefs.h avoids OS command line length limits that DEFS can exceed.
3061rm -f -r conftest* confdefs.h
3062
3063$as_echo "/* confdefs.h */" > confdefs.h
3064
3065# Predefined preprocessor variables.
3066
3067cat >>confdefs.h <<_ACEOF
3068#define PACKAGE_NAME "$PACKAGE_NAME"
3069_ACEOF
3070
3071cat >>confdefs.h <<_ACEOF
3072#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3073_ACEOF
3074
3075cat >>confdefs.h <<_ACEOF
3076#define PACKAGE_VERSION "$PACKAGE_VERSION"
3077_ACEOF
3078
3079cat >>confdefs.h <<_ACEOF
3080#define PACKAGE_STRING "$PACKAGE_STRING"
3081_ACEOF
3082
3083cat >>confdefs.h <<_ACEOF
3084#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3085_ACEOF
3086
3087cat >>confdefs.h <<_ACEOF
3088#define PACKAGE_URL "$PACKAGE_URL"
3089_ACEOF
3090
3091
3092# Let the site file select an alternate cache file if it wants to.
3093# Prefer an explicitly selected file to automatically selected ones.
3094ac_site_file1=NONE
3095ac_site_file2=NONE
3096if test -n "$CONFIG_SITE"; then
3097  ac_site_file1=$CONFIG_SITE
3098elif test "x$prefix" != xNONE; then
3099  ac_site_file1=$prefix/share/config.site
3100  ac_site_file2=$prefix/etc/config.site
3101else
3102  ac_site_file1=$ac_default_prefix/share/config.site
3103  ac_site_file2=$ac_default_prefix/etc/config.site
3104fi
3105for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3106do
3107  test "x$ac_site_file" = xNONE && continue
3108  if test -r "$ac_site_file"; then
3109    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3110$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3111    sed 's/^/| /' "$ac_site_file" >&5
3112    . "$ac_site_file"
3113  fi
3114done
3115
3116if test -r "$cache_file"; then
3117  # Some versions of bash will fail to source /dev/null (special
3118  # files actually), so we avoid doing that.
3119  if test -f "$cache_file"; then
3120    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3121$as_echo "$as_me: loading cache $cache_file" >&6;}
3122    case $cache_file in
3123      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3124      *)                      . "./$cache_file";;
3125    esac
3126  fi
3127else
3128  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3129$as_echo "$as_me: creating cache $cache_file" >&6;}
3130  >$cache_file
3131fi
3132
3133# Check that the precious variables saved in the cache have kept the same
3134# value.
3135ac_cache_corrupted=false
3136for ac_var in $ac_precious_vars; do
3137  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3138  eval ac_new_set=\$ac_env_${ac_var}_set
3139  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3140  eval ac_new_val=\$ac_env_${ac_var}_value
3141  case $ac_old_set,$ac_new_set in
3142    set,)
3143      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3144$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3145      ac_cache_corrupted=: ;;
3146    ,set)
3147      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3148$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3149      ac_cache_corrupted=: ;;
3150    ,);;
3151    *)
3152      if test "x$ac_old_val" != "x$ac_new_val"; then
3153	# differences in whitespace do not lead to failure.
3154	ac_old_val_w=`echo x $ac_old_val`
3155	ac_new_val_w=`echo x $ac_new_val`
3156	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3157	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3158$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3159	  ac_cache_corrupted=:
3160	else
3161	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3162$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3163	  eval $ac_var=\$ac_old_val
3164	fi
3165	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3166$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3167	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3168$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3169      fi;;
3170  esac
3171  # Pass precious variables to config.status.
3172  if test "$ac_new_set" = set; then
3173    case $ac_new_val in
3174    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3175    *) ac_arg=$ac_var=$ac_new_val ;;
3176    esac
3177    case " $ac_configure_args " in
3178      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3179      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3180    esac
3181  fi
3182done
3183if $ac_cache_corrupted; then
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3187$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3188  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3189fi
3190## -------------------- ##
3191## Main body of script. ##
3192## -------------------- ##
3193
3194ac_ext=c
3195ac_cpp='$CPP $CPPFLAGS'
3196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199
3200
3201
3202
3203
3204
3205ac_config_headers="$ac_config_headers auto-host.h:config.in"
3206
3207
3208gcc_version=`cat $srcdir/BASE-VER`
3209
3210# Determine the host, build, and target systems
3211ac_aux_dir=
3212for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3213  for ac_t in install-sh install.sh shtool; do
3214    if test -f "$ac_dir/$ac_t"; then
3215      ac_aux_dir=$ac_dir
3216      ac_install_sh="$ac_aux_dir/$ac_t -c"
3217      break 2
3218    fi
3219  done
3220done
3221if test -z "$ac_aux_dir"; then
3222  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3223fi
3224
3225# These three variables are undocumented and unsupported,
3226# and are intended to be withdrawn in a future Autoconf release.
3227# They can cause serious problems if a builder's source tree is in a directory
3228# whose full name contains unusual characters.
3229ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3230ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3231ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3232
3233
3234# Make sure we can run config.sub.
3235$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3236  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3237
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3239$as_echo_n "checking build system type... " >&6; }
3240if test "${ac_cv_build+set}" = set; then :
3241  $as_echo_n "(cached) " >&6
3242else
3243  ac_build_alias=$build_alias
3244test "x$ac_build_alias" = x &&
3245  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3246test "x$ac_build_alias" = x &&
3247  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3248ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3249  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3250
3251fi
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3253$as_echo "$ac_cv_build" >&6; }
3254case $ac_cv_build in
3255*-*-*) ;;
3256*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3257esac
3258build=$ac_cv_build
3259ac_save_IFS=$IFS; IFS='-'
3260set x $ac_cv_build
3261shift
3262build_cpu=$1
3263build_vendor=$2
3264shift; shift
3265# Remember, the first character of IFS is used to create $*,
3266# except with old shells:
3267build_os=$*
3268IFS=$ac_save_IFS
3269case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3270
3271
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3273$as_echo_n "checking host system type... " >&6; }
3274if test "${ac_cv_host+set}" = set; then :
3275  $as_echo_n "(cached) " >&6
3276else
3277  if test "x$host_alias" = x; then
3278  ac_cv_host=$ac_cv_build
3279else
3280  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3281    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3282fi
3283
3284fi
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3286$as_echo "$ac_cv_host" >&6; }
3287case $ac_cv_host in
3288*-*-*) ;;
3289*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3290esac
3291host=$ac_cv_host
3292ac_save_IFS=$IFS; IFS='-'
3293set x $ac_cv_host
3294shift
3295host_cpu=$1
3296host_vendor=$2
3297shift; shift
3298# Remember, the first character of IFS is used to create $*,
3299# except with old shells:
3300host_os=$*
3301IFS=$ac_save_IFS
3302case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3303
3304
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3306$as_echo_n "checking target system type... " >&6; }
3307if test "${ac_cv_target+set}" = set; then :
3308  $as_echo_n "(cached) " >&6
3309else
3310  if test "x$target_alias" = x; then
3311  ac_cv_target=$ac_cv_host
3312else
3313  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3314    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3315fi
3316
3317fi
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3319$as_echo "$ac_cv_target" >&6; }
3320case $ac_cv_target in
3321*-*-*) ;;
3322*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3323esac
3324target=$ac_cv_target
3325ac_save_IFS=$IFS; IFS='-'
3326set x $ac_cv_target
3327shift
3328target_cpu=$1
3329target_vendor=$2
3330shift; shift
3331# Remember, the first character of IFS is used to create $*,
3332# except with old shells:
3333target_os=$*
3334IFS=$ac_save_IFS
3335case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3336
3337
3338# The aliases save the names the user supplied, while $host etc.
3339# will get canonicalized.
3340test -n "$target_alias" &&
3341  test "$program_prefix$program_suffix$program_transform_name" = \
3342    NONENONEs,x,x, &&
3343  program_prefix=${target_alias}-
3344
3345# Determine the noncanonical host name, for Ada.
3346 case ${build_alias} in
3347  "") build_noncanonical=${build} ;;
3348  *) build_noncanonical=${build_alias} ;;
3349esac
3350
3351 case ${host_alias} in
3352  "") host_noncanonical=${build_noncanonical} ;;
3353  *) host_noncanonical=${host_alias} ;;
3354esac
3355
3356
3357
3358
3359# Determine the noncanonical target name, for directory use.
3360 case ${target_alias} in
3361  "") target_noncanonical=${host_noncanonical} ;;
3362  *) target_noncanonical=${target_alias} ;;
3363esac
3364
3365
3366
3367
3368# Used for constructing correct paths for offload compilers.
3369real_target_noncanonical=${target_noncanonical}
3370accel_dir_suffix=
3371
3372# Determine the target- and build-specific subdirectories
3373
3374# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3375# have matching libraries, they should use host libraries: Makefile.tpl
3376# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3377# However, they still use the build modules, because the corresponding
3378# host modules (e.g. bison) are only built for the host when bootstrap
3379# finishes. So:
3380# - build_subdir is where we find build modules, and never changes.
3381# - build_libsubdir is where we find build libraries, and can be overridden.
3382
3383# Prefix 'build-' so this never conflicts with target_subdir.
3384build_subdir="build-${build_noncanonical}"
3385
3386# Check whether --with-build-libsubdir was given.
3387if test "${with_build_libsubdir+set}" = set; then :
3388  withval=$with_build_libsubdir; build_libsubdir="$withval"
3389else
3390  build_libsubdir="$build_subdir"
3391fi
3392
3393# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3394if ( test $srcdir = . && test -d gcc ) \
3395   || test -d $srcdir/../host-${host_noncanonical}; then
3396  host_subdir="host-${host_noncanonical}"
3397else
3398  host_subdir=.
3399fi
3400# No prefix.
3401target_subdir=${target_noncanonical}
3402
3403
3404# Set program_transform_name
3405test "$program_prefix" != NONE &&
3406  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3407# Use a double $ so make ignores it.
3408test "$program_suffix" != NONE &&
3409  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3410# Double any \ or $.
3411# By default was `s,x,x', remove it if useless.
3412ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3413program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3414
3415
3416# Check for bogus environment variables.
3417# Test if LIBRARY_PATH contains the notation for the current directory
3418# since this would lead to problems installing/building glibc.
3419# LIBRARY_PATH contains the current directory if one of the following
3420# is true:
3421# - one of the terminals (":" and ";") is the first or last sign
3422# - two terminals occur directly after each other
3423# - the path contains an element with a dot in it
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3425$as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3426case ${LIBRARY_PATH} in
3427  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3428    library_path_setting="contains current directory"
3429    ;;
3430  *)
3431    library_path_setting="ok"
3432    ;;
3433esac
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3435$as_echo "$library_path_setting" >&6; }
3436if test "$library_path_setting" != "ok"; then
3437as_fn_error "
3438*** LIBRARY_PATH shouldn't contain the current directory when
3439*** building gcc. Please change the environment variable
3440*** and run configure again." "$LINENO" 5
3441fi
3442
3443# Test if GCC_EXEC_PREFIX contains the notation for the current directory
3444# since this would lead to problems installing/building glibc.
3445# GCC_EXEC_PREFIX contains the current directory if one of the following
3446# is true:
3447# - one of the terminals (":" and ";") is the first or last sign
3448# - two terminals occur directly after each other
3449# - the path contains an element with a dot in it
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3451$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3452case ${GCC_EXEC_PREFIX} in
3453  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3454    gcc_exec_prefix_setting="contains current directory"
3455    ;;
3456  *)
3457    gcc_exec_prefix_setting="ok"
3458    ;;
3459esac
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3461$as_echo "$gcc_exec_prefix_setting" >&6; }
3462if test "$gcc_exec_prefix_setting" != "ok"; then
3463as_fn_error "
3464*** GCC_EXEC_PREFIX shouldn't contain the current directory when
3465*** building gcc. Please change the environment variable
3466*** and run configure again." "$LINENO" 5
3467fi
3468
3469# -----------
3470# Directories
3471# -----------
3472
3473# Specify the local prefix
3474local_prefix=
3475
3476# Check whether --with-local-prefix was given.
3477if test "${with_local_prefix+set}" = set; then :
3478  withval=$with_local_prefix; case "${withval}" in
3479yes)	as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3480no)	;;
3481*)	local_prefix=$with_local_prefix ;;
3482esac
3483fi
3484
3485
3486# Default local prefix if it is empty
3487if test x$local_prefix = x; then
3488	local_prefix=/usr/local
3489fi
3490
3491
3492# Check whether --with-native-system-header-dir was given.
3493if test "${with_native_system_header_dir+set}" = set; then :
3494  withval=$with_native_system_header_dir;
3495 case ${with_native_system_header_dir} in
3496 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3497 /* | [A-Za-z]:[\\/]*) ;;
3498 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3499 esac
3500 configured_native_system_header_dir="${withval}"
3501
3502else
3503  configured_native_system_header_dir=
3504fi
3505
3506
3507
3508# Check whether --with-build-sysroot was given.
3509if test "${with_build_sysroot+set}" = set; then :
3510  withval=$with_build_sysroot; if test x"$withval" != x ; then
3511     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3512   fi
3513else
3514  SYSROOT_CFLAGS_FOR_TARGET=
3515fi
3516
3517
3518
3519if test "x$prefix" = xNONE; then
3520 test_prefix=/usr/local
3521else
3522 test_prefix=$prefix
3523fi
3524if test "x$exec_prefix" = xNONE; then
3525 test_exec_prefix=$test_prefix
3526else
3527 test_exec_prefix=$exec_prefix
3528fi
3529
3530
3531# Check whether --with-sysroot was given.
3532if test "${with_sysroot+set}" = set; then :
3533  withval=$with_sysroot;
3534 case ${with_sysroot} in
3535 /) ;;
3536 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3537 esac
3538 case ${with_sysroot} in
3539 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3540 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3541 esac
3542
3543 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3544 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3545
3546 case ${TARGET_SYSTEM_ROOT} in
3547 "${test_prefix}"|"${test_prefix}/"*|\
3548 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3549 '${prefix}'|'${prefix}/'*|\
3550 '${exec_prefix}'|'${exec_prefix}/'*)
3551   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3552   TARGET_SYSTEM_ROOT_DEFINE="$t"
3553   ;;
3554 esac
3555
3556else
3557
3558 TARGET_SYSTEM_ROOT=
3559 TARGET_SYSTEM_ROOT_DEFINE=
3560 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3561
3562fi
3563
3564
3565
3566
3567
3568# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3569# passed in by the toplevel make and thus we'd get different behavior
3570# depending on where we built the sources.
3571gcc_gxx_include_dir=
3572# Specify the g++ header file directory
3573
3574# Check whether --with-gxx-include-dir was given.
3575if test "${with_gxx_include_dir+set}" = set; then :
3576  withval=$with_gxx_include_dir; case "${withval}" in
3577yes)	as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3578no)	;;
3579*)	gcc_gxx_include_dir=$with_gxx_include_dir ;;
3580esac
3581fi
3582
3583
3584# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3585if test x${gcc_gxx_include_dir} = x; then
3586  if test x${enable_version_specific_runtime_libs} = xyes; then
3587    gcc_gxx_include_dir='${libsubdir}/include/c++'
3588  else
3589    libstdcxx_incdir='include/c++/$(version)'
3590    if test x$host != x$target; then
3591       libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3592    fi
3593    gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3594  fi
3595fi
3596
3597gcc_gxx_include_dir_add_sysroot=0
3598if test "${with_sysroot+set}" = set; then
3599  gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3600  if test "${gcc_gxx_without_sysroot}"; then
3601    if test x${with_sysroot} != x/; then
3602      gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3603    fi
3604    gcc_gxx_include_dir_add_sysroot=1
3605  fi
3606fi
3607
3608
3609# Check whether --with-cpp_install_dir was given.
3610if test "${with_cpp_install_dir+set}" = set; then :
3611  withval=$with_cpp_install_dir; if test x$withval = xyes; then
3612  as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3613elif test x$withval != xno; then
3614  cpp_install_dir=$withval
3615fi
3616fi
3617
3618
3619# We would like to our source tree to be readonly.  However when releases or
3620# pre-releases are generated, the flex/bison generated files as well as the
3621# various formats of manuals need to be included along with the rest of the
3622# sources.  Therefore we have --enable-generated-files-in-srcdir to do
3623# just that.
3624
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3626$as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3627    # Check whether --enable-generated-files-in-srcdir was given.
3628if test "${enable_generated_files_in_srcdir+set}" = set; then :
3629  enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3630else
3631  generated_files_in_srcdir=no
3632fi
3633
3634
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3636$as_echo "$generated_files_in_srcdir" >&6; }
3637
3638if test "$generated_files_in_srcdir" = "yes"; then
3639  GENINSRC=''
3640else
3641  GENINSRC='#'
3642fi
3643
3644
3645# -------------------
3646# Find default linker
3647# -------------------
3648
3649# With GNU ld
3650
3651# Check whether --with-gnu-ld was given.
3652if test "${with_gnu_ld+set}" = set; then :
3653  withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3654else
3655  gnu_ld_flag=no
3656fi
3657
3658
3659case $target in
3660    *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3661    *) ld64_flag=no;;
3662esac
3663
3664# With pre-defined ld
3665
3666# Check whether --with-ld was given.
3667if test "${with_ld+set}" = set; then :
3668  withval=$with_ld; DEFAULT_LINKER="$with_ld"
3669fi
3670
3671if test x"${DEFAULT_LINKER+set}" = x"set"; then
3672  if test ! -x "$DEFAULT_LINKER"; then
3673    as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3674  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3675    gnu_ld_flag=yes
3676  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3677    ld64_flag=yes
3678  fi
3679
3680cat >>confdefs.h <<_ACEOF
3681#define DEFAULT_LINKER "$DEFAULT_LINKER"
3682_ACEOF
3683
3684fi
3685
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3687$as_echo_n "checking whether a default linker was specified... " >&6; }
3688if test x"${DEFAULT_LINKER+set}" = x"set"; then
3689  if test x"$gnu_ld_flag" = x"no"; then
3690    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3691$as_echo "yes ($DEFAULT_LINKER)" >&6; }
3692  else
3693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3694$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3695  fi
3696else
3697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698$as_echo "no" >&6; }
3699fi
3700
3701# With demangler in GNU ld
3702
3703# Check whether --with-demangler-in-ld was given.
3704if test "${with_demangler_in_ld+set}" = set; then :
3705  withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3706else
3707  demangler_in_ld=yes
3708fi
3709
3710
3711# ----------------------
3712# Find default assembler
3713# ----------------------
3714
3715# With GNU as
3716
3717# Check whether --with-gnu-as was given.
3718if test "${with_gnu_as+set}" = set; then :
3719  withval=$with_gnu_as; gas_flag="$with_gnu_as"
3720else
3721  gas_flag=no
3722fi
3723
3724
3725
3726# Check whether --with-as was given.
3727if test "${with_as+set}" = set; then :
3728  withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3729fi
3730
3731if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3732  if test ! -x "$DEFAULT_ASSEMBLER"; then
3733    as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3734  elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3735    gas_flag=yes
3736  fi
3737
3738cat >>confdefs.h <<_ACEOF
3739#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3740_ACEOF
3741
3742fi
3743
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3745$as_echo_n "checking whether a default assembler was specified... " >&6; }
3746if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3747  if test x"$gas_flag" = x"no"; then
3748    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3749$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3750  else
3751    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3752$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3753  fi
3754else
3755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756$as_echo "no" >&6; }
3757fi
3758
3759# ---------------
3760# Find C compiler
3761# ---------------
3762
3763# If a non-executable a.out is present (e.g. created by GNU as above even if
3764# invoked with -v only), the IRIX 6 native ld just overwrites the existing
3765# file, even when creating an executable, so an execution test fails.
3766# Remove possible default executable files to avoid this.
3767#
3768# FIXME: This really belongs into AC_PROG_CC and can be removed once
3769# Autoconf includes it.
3770rm -f a.out a.exe b.out
3771
3772# Find the native compiler
3773ac_ext=c
3774ac_cpp='$CPP $CPPFLAGS'
3775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778if test -n "$ac_tool_prefix"; then
3779  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3780set dummy ${ac_tool_prefix}gcc; ac_word=$2
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782$as_echo_n "checking for $ac_word... " >&6; }
3783if test "${ac_cv_prog_CC+set}" = set; then :
3784  $as_echo_n "(cached) " >&6
3785else
3786  if test -n "$CC"; then
3787  ac_cv_prog_CC="$CC" # Let the user override the test.
3788else
3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790for as_dir in $PATH
3791do
3792  IFS=$as_save_IFS
3793  test -z "$as_dir" && as_dir=.
3794    for ac_exec_ext in '' $ac_executable_extensions; do
3795  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798    break 2
3799  fi
3800done
3801  done
3802IFS=$as_save_IFS
3803
3804fi
3805fi
3806CC=$ac_cv_prog_CC
3807if test -n "$CC"; then
3808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3809$as_echo "$CC" >&6; }
3810else
3811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812$as_echo "no" >&6; }
3813fi
3814
3815
3816fi
3817if test -z "$ac_cv_prog_CC"; then
3818  ac_ct_CC=$CC
3819  # Extract the first word of "gcc", so it can be a program name with args.
3820set dummy gcc; ac_word=$2
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822$as_echo_n "checking for $ac_word... " >&6; }
3823if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3824  $as_echo_n "(cached) " >&6
3825else
3826  if test -n "$ac_ct_CC"; then
3827  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3828else
3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832  IFS=$as_save_IFS
3833  test -z "$as_dir" && as_dir=.
3834    for ac_exec_ext in '' $ac_executable_extensions; do
3835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3836    ac_cv_prog_ac_ct_CC="gcc"
3837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838    break 2
3839  fi
3840done
3841  done
3842IFS=$as_save_IFS
3843
3844fi
3845fi
3846ac_ct_CC=$ac_cv_prog_ac_ct_CC
3847if test -n "$ac_ct_CC"; then
3848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3849$as_echo "$ac_ct_CC" >&6; }
3850else
3851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852$as_echo "no" >&6; }
3853fi
3854
3855  if test "x$ac_ct_CC" = x; then
3856    CC=""
3857  else
3858    case $cross_compiling:$ac_tool_warned in
3859yes:)
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3862ac_tool_warned=yes ;;
3863esac
3864    CC=$ac_ct_CC
3865  fi
3866else
3867  CC="$ac_cv_prog_CC"
3868fi
3869
3870if test -z "$CC"; then
3871          if test -n "$ac_tool_prefix"; then
3872    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3873set dummy ${ac_tool_prefix}cc; ac_word=$2
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875$as_echo_n "checking for $ac_word... " >&6; }
3876if test "${ac_cv_prog_CC+set}" = set; then :
3877  $as_echo_n "(cached) " >&6
3878else
3879  if test -n "$CC"; then
3880  ac_cv_prog_CC="$CC" # Let the user override the test.
3881else
3882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH
3884do
3885  IFS=$as_save_IFS
3886  test -z "$as_dir" && as_dir=.
3887    for ac_exec_ext in '' $ac_executable_extensions; do
3888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889    ac_cv_prog_CC="${ac_tool_prefix}cc"
3890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891    break 2
3892  fi
3893done
3894  done
3895IFS=$as_save_IFS
3896
3897fi
3898fi
3899CC=$ac_cv_prog_CC
3900if test -n "$CC"; then
3901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3902$as_echo "$CC" >&6; }
3903else
3904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905$as_echo "no" >&6; }
3906fi
3907
3908
3909  fi
3910fi
3911if test -z "$CC"; then
3912  # Extract the first word of "cc", so it can be a program name with args.
3913set dummy cc; ac_word=$2
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915$as_echo_n "checking for $ac_word... " >&6; }
3916if test "${ac_cv_prog_CC+set}" = set; then :
3917  $as_echo_n "(cached) " >&6
3918else
3919  if test -n "$CC"; then
3920  ac_cv_prog_CC="$CC" # Let the user override the test.
3921else
3922  ac_prog_rejected=no
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926  IFS=$as_save_IFS
3927  test -z "$as_dir" && as_dir=.
3928    for ac_exec_ext in '' $ac_executable_extensions; do
3929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3931       ac_prog_rejected=yes
3932       continue
3933     fi
3934    ac_cv_prog_CC="cc"
3935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936    break 2
3937  fi
3938done
3939  done
3940IFS=$as_save_IFS
3941
3942if test $ac_prog_rejected = yes; then
3943  # We found a bogon in the path, so make sure we never use it.
3944  set dummy $ac_cv_prog_CC
3945  shift
3946  if test $# != 0; then
3947    # We chose a different compiler from the bogus one.
3948    # However, it has the same basename, so the bogon will be chosen
3949    # first if we set CC to just the basename; use the full file name.
3950    shift
3951    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3952  fi
3953fi
3954fi
3955fi
3956CC=$ac_cv_prog_CC
3957if test -n "$CC"; then
3958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3959$as_echo "$CC" >&6; }
3960else
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966fi
3967if test -z "$CC"; then
3968  if test -n "$ac_tool_prefix"; then
3969  for ac_prog in cl.exe
3970  do
3971    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3972set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974$as_echo_n "checking for $ac_word... " >&6; }
3975if test "${ac_cv_prog_CC+set}" = set; then :
3976  $as_echo_n "(cached) " >&6
3977else
3978  if test -n "$CC"; then
3979  ac_cv_prog_CC="$CC" # Let the user override the test.
3980else
3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $PATH
3983do
3984  IFS=$as_save_IFS
3985  test -z "$as_dir" && as_dir=.
3986    for ac_exec_ext in '' $ac_executable_extensions; do
3987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3988    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990    break 2
3991  fi
3992done
3993  done
3994IFS=$as_save_IFS
3995
3996fi
3997fi
3998CC=$ac_cv_prog_CC
3999if test -n "$CC"; then
4000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4001$as_echo "$CC" >&6; }
4002else
4003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004$as_echo "no" >&6; }
4005fi
4006
4007
4008    test -n "$CC" && break
4009  done
4010fi
4011if test -z "$CC"; then
4012  ac_ct_CC=$CC
4013  for ac_prog in cl.exe
4014do
4015  # Extract the first word of "$ac_prog", so it can be a program name with args.
4016set dummy $ac_prog; ac_word=$2
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018$as_echo_n "checking for $ac_word... " >&6; }
4019if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022  if test -n "$ac_ct_CC"; then
4023  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4024else
4025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028  IFS=$as_save_IFS
4029  test -z "$as_dir" && as_dir=.
4030    for ac_exec_ext in '' $ac_executable_extensions; do
4031  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032    ac_cv_prog_ac_ct_CC="$ac_prog"
4033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034    break 2
4035  fi
4036done
4037  done
4038IFS=$as_save_IFS
4039
4040fi
4041fi
4042ac_ct_CC=$ac_cv_prog_ac_ct_CC
4043if test -n "$ac_ct_CC"; then
4044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4045$as_echo "$ac_ct_CC" >&6; }
4046else
4047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048$as_echo "no" >&6; }
4049fi
4050
4051
4052  test -n "$ac_ct_CC" && break
4053done
4054
4055  if test "x$ac_ct_CC" = x; then
4056    CC=""
4057  else
4058    case $cross_compiling:$ac_tool_warned in
4059yes:)
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4062ac_tool_warned=yes ;;
4063esac
4064    CC=$ac_ct_CC
4065  fi
4066fi
4067
4068fi
4069
4070
4071test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073as_fn_error "no acceptable C compiler found in \$PATH
4074See \`config.log' for more details." "$LINENO" 5; }
4075
4076# Provide some information about the compiler.
4077$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4078set X $ac_compile
4079ac_compiler=$2
4080for ac_option in --version -v -V -qversion; do
4081  { { ac_try="$ac_compiler $ac_option >&5"
4082case "(($ac_try" in
4083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084  *) ac_try_echo=$ac_try;;
4085esac
4086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087$as_echo "$ac_try_echo"; } >&5
4088  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4089  ac_status=$?
4090  if test -s conftest.err; then
4091    sed '10a\
4092... rest of stderr output deleted ...
4093         10q' conftest.err >conftest.er1
4094    cat conftest.er1 >&5
4095    rm -f conftest.er1 conftest.err
4096  fi
4097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098  test $ac_status = 0; }
4099done
4100
4101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h.  */
4103
4104int
4105main ()
4106{
4107
4108  ;
4109  return 0;
4110}
4111_ACEOF
4112ac_clean_files_save=$ac_clean_files
4113ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4114# Try to create an executable without -o first, disregard a.out.
4115# It will help us diagnose broken compilers, and finding out an intuition
4116# of exeext.
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4118$as_echo_n "checking for C compiler default output file name... " >&6; }
4119ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4120
4121# The possible output files:
4122ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4123
4124ac_rmfiles=
4125for ac_file in $ac_files
4126do
4127  case $ac_file in
4128    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4129    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4130  esac
4131done
4132rm -f $ac_rmfiles
4133
4134if { { ac_try="$ac_link_default"
4135case "(($ac_try" in
4136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137  *) ac_try_echo=$ac_try;;
4138esac
4139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140$as_echo "$ac_try_echo"; } >&5
4141  (eval "$ac_link_default") 2>&5
4142  ac_status=$?
4143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144  test $ac_status = 0; }; then :
4145  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4146# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4147# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4148# so that the user can short-circuit this test for compilers unknown to
4149# Autoconf.
4150for ac_file in $ac_files ''
4151do
4152  test -f "$ac_file" || continue
4153  case $ac_file in
4154    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4155	;;
4156    [ab].out )
4157	# We found the default executable, but exeext='' is most
4158	# certainly right.
4159	break;;
4160    *.* )
4161	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4162	then :; else
4163	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4164	fi
4165	# We set ac_cv_exeext here because the later test for it is not
4166	# safe: cross compilers may not add the suffix if given an `-o'
4167	# argument, so we may need to know it at that point already.
4168	# Even if this section looks crufty: it has the advantage of
4169	# actually working.
4170	break;;
4171    * )
4172	break;;
4173  esac
4174done
4175test "$ac_cv_exeext" = no && ac_cv_exeext=
4176
4177else
4178  ac_file=''
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4181$as_echo "$ac_file" >&6; }
4182if test -z "$ac_file"; then :
4183  $as_echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5
4185
4186{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4188{ as_fn_set_status 77
4189as_fn_error "C compiler cannot create executables
4190See \`config.log' for more details." "$LINENO" 5; }; }
4191fi
4192ac_exeext=$ac_cv_exeext
4193
4194# Check that the compiler produces executables we can run.  If not, either
4195# the compiler is broken, or we cross compile.
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4197$as_echo_n "checking whether the C compiler works... " >&6; }
4198# If not cross compiling, check that we can run a simple program.
4199if test "$cross_compiling" != yes; then
4200  if { ac_try='./$ac_file'
4201  { { case "(($ac_try" in
4202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203  *) ac_try_echo=$ac_try;;
4204esac
4205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4206$as_echo "$ac_try_echo"; } >&5
4207  (eval "$ac_try") 2>&5
4208  ac_status=$?
4209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210  test $ac_status = 0; }; }; then
4211    cross_compiling=no
4212  else
4213    if test "$cross_compiling" = maybe; then
4214	cross_compiling=yes
4215    else
4216	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4218as_fn_error "cannot run C compiled programs.
4219If you meant to cross compile, use \`--host'.
4220See \`config.log' for more details." "$LINENO" 5; }
4221    fi
4222  fi
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4225$as_echo "yes" >&6; }
4226
4227rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4228ac_clean_files=$ac_clean_files_save
4229# Check that the compiler produces executables we can run.  If not, either
4230# the compiler is broken, or we cross compile.
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4232$as_echo_n "checking whether we are cross compiling... " >&6; }
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4234$as_echo "$cross_compiling" >&6; }
4235
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4237$as_echo_n "checking for suffix of executables... " >&6; }
4238if { { ac_try="$ac_link"
4239case "(($ac_try" in
4240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241  *) ac_try_echo=$ac_try;;
4242esac
4243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4244$as_echo "$ac_try_echo"; } >&5
4245  (eval "$ac_link") 2>&5
4246  ac_status=$?
4247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4248  test $ac_status = 0; }; then :
4249  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4250# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4251# work properly (i.e., refer to `conftest.exe'), while it won't with
4252# `rm'.
4253for ac_file in conftest.exe conftest conftest.*; do
4254  test -f "$ac_file" || continue
4255  case $ac_file in
4256    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4257    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4258	  break;;
4259    * ) break;;
4260  esac
4261done
4262else
4263  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4265as_fn_error "cannot compute suffix of executables: cannot compile and link
4266See \`config.log' for more details." "$LINENO" 5; }
4267fi
4268rm -f conftest$ac_cv_exeext
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4270$as_echo "$ac_cv_exeext" >&6; }
4271
4272rm -f conftest.$ac_ext
4273EXEEXT=$ac_cv_exeext
4274ac_exeext=$EXEEXT
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4276$as_echo_n "checking for suffix of object files... " >&6; }
4277if test "${ac_cv_objext+set}" = set; then :
4278  $as_echo_n "(cached) " >&6
4279else
4280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h.  */
4282
4283int
4284main ()
4285{
4286
4287  ;
4288  return 0;
4289}
4290_ACEOF
4291rm -f conftest.o conftest.obj
4292if { { ac_try="$ac_compile"
4293case "(($ac_try" in
4294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295  *) ac_try_echo=$ac_try;;
4296esac
4297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298$as_echo "$ac_try_echo"; } >&5
4299  (eval "$ac_compile") 2>&5
4300  ac_status=$?
4301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302  test $ac_status = 0; }; then :
4303  for ac_file in conftest.o conftest.obj conftest.*; do
4304  test -f "$ac_file" || continue;
4305  case $ac_file in
4306    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4307    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4308       break;;
4309  esac
4310done
4311else
4312  $as_echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317as_fn_error "cannot compute suffix of object files: cannot compile
4318See \`config.log' for more details." "$LINENO" 5; }
4319fi
4320rm -f conftest.$ac_cv_objext conftest.$ac_ext
4321fi
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4323$as_echo "$ac_cv_objext" >&6; }
4324OBJEXT=$ac_cv_objext
4325ac_objext=$OBJEXT
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4327$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4328if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h.  */
4333
4334int
4335main ()
4336{
4337#ifndef __GNUC__
4338       choke me
4339#endif
4340
4341  ;
4342  return 0;
4343}
4344_ACEOF
4345if ac_fn_c_try_compile "$LINENO"; then :
4346  ac_compiler_gnu=yes
4347else
4348  ac_compiler_gnu=no
4349fi
4350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351ac_cv_c_compiler_gnu=$ac_compiler_gnu
4352
4353fi
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4355$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4356if test $ac_compiler_gnu = yes; then
4357  GCC=yes
4358else
4359  GCC=
4360fi
4361ac_test_CFLAGS=${CFLAGS+set}
4362ac_save_CFLAGS=$CFLAGS
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4364$as_echo_n "checking whether $CC accepts -g... " >&6; }
4365if test "${ac_cv_prog_cc_g+set}" = set; then :
4366  $as_echo_n "(cached) " >&6
4367else
4368  ac_save_c_werror_flag=$ac_c_werror_flag
4369   ac_c_werror_flag=yes
4370   ac_cv_prog_cc_g=no
4371   CFLAGS="-g"
4372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373/* end confdefs.h.  */
4374
4375int
4376main ()
4377{
4378
4379  ;
4380  return 0;
4381}
4382_ACEOF
4383if ac_fn_c_try_compile "$LINENO"; then :
4384  ac_cv_prog_cc_g=yes
4385else
4386  CFLAGS=""
4387      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388/* end confdefs.h.  */
4389
4390int
4391main ()
4392{
4393
4394  ;
4395  return 0;
4396}
4397_ACEOF
4398if ac_fn_c_try_compile "$LINENO"; then :
4399
4400else
4401  ac_c_werror_flag=$ac_save_c_werror_flag
4402	 CFLAGS="-g"
4403	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h.  */
4405
4406int
4407main ()
4408{
4409
4410  ;
4411  return 0;
4412}
4413_ACEOF
4414if ac_fn_c_try_compile "$LINENO"; then :
4415  ac_cv_prog_cc_g=yes
4416fi
4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418fi
4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420fi
4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422   ac_c_werror_flag=$ac_save_c_werror_flag
4423fi
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4425$as_echo "$ac_cv_prog_cc_g" >&6; }
4426if test "$ac_test_CFLAGS" = set; then
4427  CFLAGS=$ac_save_CFLAGS
4428elif test $ac_cv_prog_cc_g = yes; then
4429  if test "$GCC" = yes; then
4430    CFLAGS="-g -O2"
4431  else
4432    CFLAGS="-g"
4433  fi
4434else
4435  if test "$GCC" = yes; then
4436    CFLAGS="-O2"
4437  else
4438    CFLAGS=
4439  fi
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4442$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4443if test "${ac_cv_prog_cc_c89+set}" = set; then :
4444  $as_echo_n "(cached) " >&6
4445else
4446  ac_cv_prog_cc_c89=no
4447ac_save_CC=$CC
4448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449/* end confdefs.h.  */
4450#include <stdarg.h>
4451#include <stdio.h>
4452#include <sys/types.h>
4453#include <sys/stat.h>
4454/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4455struct buf { int x; };
4456FILE * (*rcsopen) (struct buf *, struct stat *, int);
4457static char *e (p, i)
4458     char **p;
4459     int i;
4460{
4461  return p[i];
4462}
4463static char *f (char * (*g) (char **, int), char **p, ...)
4464{
4465  char *s;
4466  va_list v;
4467  va_start (v,p);
4468  s = g (p, va_arg (v,int));
4469  va_end (v);
4470  return s;
4471}
4472
4473/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4474   function prototypes and stuff, but not '\xHH' hex character constants.
4475   These don't provoke an error unfortunately, instead are silently treated
4476   as 'x'.  The following induces an error, until -std is added to get
4477   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4478   array size at least.  It's necessary to write '\x00'==0 to get something
4479   that's true only with -std.  */
4480int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4481
4482/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4483   inside strings and character constants.  */
4484#define FOO(x) 'x'
4485int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4486
4487int test (int i, double x);
4488struct s1 {int (*f) (int a);};
4489struct s2 {int (*f) (double a);};
4490int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4491int argc;
4492char **argv;
4493int
4494main ()
4495{
4496return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4497  ;
4498  return 0;
4499}
4500_ACEOF
4501for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4502	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4503do
4504  CC="$ac_save_CC $ac_arg"
4505  if ac_fn_c_try_compile "$LINENO"; then :
4506  ac_cv_prog_cc_c89=$ac_arg
4507fi
4508rm -f core conftest.err conftest.$ac_objext
4509  test "x$ac_cv_prog_cc_c89" != "xno" && break
4510done
4511rm -f conftest.$ac_ext
4512CC=$ac_save_CC
4513
4514fi
4515# AC_CACHE_VAL
4516case "x$ac_cv_prog_cc_c89" in
4517  x)
4518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4519$as_echo "none needed" >&6; } ;;
4520  xno)
4521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4522$as_echo "unsupported" >&6; } ;;
4523  *)
4524    CC="$CC $ac_cv_prog_cc_c89"
4525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4526$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4527esac
4528if test "x$ac_cv_prog_cc_c89" != xno; then :
4529
4530fi
4531
4532ac_ext=c
4533ac_cpp='$CPP $CPPFLAGS'
4534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537
4538ac_ext=cpp
4539ac_cpp='$CXXCPP $CPPFLAGS'
4540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4543if test -z "$CXX"; then
4544  if test -n "$CCC"; then
4545    CXX=$CCC
4546  else
4547    if test -n "$ac_tool_prefix"; then
4548  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4549  do
4550    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4551set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553$as_echo_n "checking for $ac_word... " >&6; }
4554if test "${ac_cv_prog_CXX+set}" = set; then :
4555  $as_echo_n "(cached) " >&6
4556else
4557  if test -n "$CXX"; then
4558  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563  IFS=$as_save_IFS
4564  test -z "$as_dir" && as_dir=.
4565    for ac_exec_ext in '' $ac_executable_extensions; do
4566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569    break 2
4570  fi
4571done
4572  done
4573IFS=$as_save_IFS
4574
4575fi
4576fi
4577CXX=$ac_cv_prog_CXX
4578if test -n "$CXX"; then
4579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4580$as_echo "$CXX" >&6; }
4581else
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
4584fi
4585
4586
4587    test -n "$CXX" && break
4588  done
4589fi
4590if test -z "$CXX"; then
4591  ac_ct_CXX=$CXX
4592  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4593do
4594  # Extract the first word of "$ac_prog", so it can be a program name with args.
4595set dummy $ac_prog; ac_word=$2
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597$as_echo_n "checking for $ac_word... " >&6; }
4598if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4599  $as_echo_n "(cached) " >&6
4600else
4601  if test -n "$ac_ct_CXX"; then
4602  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4603else
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607  IFS=$as_save_IFS
4608  test -z "$as_dir" && as_dir=.
4609    for ac_exec_ext in '' $ac_executable_extensions; do
4610  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611    ac_cv_prog_ac_ct_CXX="$ac_prog"
4612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613    break 2
4614  fi
4615done
4616  done
4617IFS=$as_save_IFS
4618
4619fi
4620fi
4621ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4622if test -n "$ac_ct_CXX"; then
4623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4624$as_echo "$ac_ct_CXX" >&6; }
4625else
4626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627$as_echo "no" >&6; }
4628fi
4629
4630
4631  test -n "$ac_ct_CXX" && break
4632done
4633
4634  if test "x$ac_ct_CXX" = x; then
4635    CXX="g++"
4636  else
4637    case $cross_compiling:$ac_tool_warned in
4638yes:)
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4641ac_tool_warned=yes ;;
4642esac
4643    CXX=$ac_ct_CXX
4644  fi
4645fi
4646
4647  fi
4648fi
4649# Provide some information about the compiler.
4650$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4651set X $ac_compile
4652ac_compiler=$2
4653for ac_option in --version -v -V -qversion; do
4654  { { ac_try="$ac_compiler $ac_option >&5"
4655case "(($ac_try" in
4656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657  *) ac_try_echo=$ac_try;;
4658esac
4659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4660$as_echo "$ac_try_echo"; } >&5
4661  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4662  ac_status=$?
4663  if test -s conftest.err; then
4664    sed '10a\
4665... rest of stderr output deleted ...
4666         10q' conftest.err >conftest.er1
4667    cat conftest.er1 >&5
4668    rm -f conftest.er1 conftest.err
4669  fi
4670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671  test $ac_status = 0; }
4672done
4673
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4675$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4676if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4677  $as_echo_n "(cached) " >&6
4678else
4679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680/* end confdefs.h.  */
4681
4682int
4683main ()
4684{
4685#ifndef __GNUC__
4686       choke me
4687#endif
4688
4689  ;
4690  return 0;
4691}
4692_ACEOF
4693if ac_fn_cxx_try_compile "$LINENO"; then :
4694  ac_compiler_gnu=yes
4695else
4696  ac_compiler_gnu=no
4697fi
4698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4700
4701fi
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4703$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4704if test $ac_compiler_gnu = yes; then
4705  GXX=yes
4706else
4707  GXX=
4708fi
4709ac_test_CXXFLAGS=${CXXFLAGS+set}
4710ac_save_CXXFLAGS=$CXXFLAGS
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4712$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4713if test "${ac_cv_prog_cxx_g+set}" = set; then :
4714  $as_echo_n "(cached) " >&6
4715else
4716  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4717   ac_cxx_werror_flag=yes
4718   ac_cv_prog_cxx_g=no
4719   CXXFLAGS="-g"
4720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721/* end confdefs.h.  */
4722
4723int
4724main ()
4725{
4726
4727  ;
4728  return 0;
4729}
4730_ACEOF
4731if ac_fn_cxx_try_compile "$LINENO"; then :
4732  ac_cv_prog_cxx_g=yes
4733else
4734  CXXFLAGS=""
4735      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h.  */
4737
4738int
4739main ()
4740{
4741
4742  ;
4743  return 0;
4744}
4745_ACEOF
4746if ac_fn_cxx_try_compile "$LINENO"; then :
4747
4748else
4749  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4750	 CXXFLAGS="-g"
4751	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752/* end confdefs.h.  */
4753
4754int
4755main ()
4756{
4757
4758  ;
4759  return 0;
4760}
4761_ACEOF
4762if ac_fn_cxx_try_compile "$LINENO"; then :
4763  ac_cv_prog_cxx_g=yes
4764fi
4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766fi
4767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768fi
4769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4771fi
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4773$as_echo "$ac_cv_prog_cxx_g" >&6; }
4774if test "$ac_test_CXXFLAGS" = set; then
4775  CXXFLAGS=$ac_save_CXXFLAGS
4776elif test $ac_cv_prog_cxx_g = yes; then
4777  if test "$GXX" = yes; then
4778    CXXFLAGS="-g -O2"
4779  else
4780    CXXFLAGS="-g"
4781  fi
4782else
4783  if test "$GXX" = yes; then
4784    CXXFLAGS="-O2"
4785  else
4786    CXXFLAGS=
4787  fi
4788fi
4789ac_ext=c
4790ac_cpp='$CPP $CPPFLAGS'
4791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794
4795
4796
4797
4798if test -n "$ac_tool_prefix"; then
4799  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4800set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802$as_echo_n "checking for $ac_word... " >&6; }
4803if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4804  $as_echo_n "(cached) " >&6
4805else
4806  if test -n "$GNATBIND"; then
4807  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4808else
4809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812  IFS=$as_save_IFS
4813  test -z "$as_dir" && as_dir=.
4814    for ac_exec_ext in '' $ac_executable_extensions; do
4815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818    break 2
4819  fi
4820done
4821  done
4822IFS=$as_save_IFS
4823
4824fi
4825fi
4826GNATBIND=$ac_cv_prog_GNATBIND
4827if test -n "$GNATBIND"; then
4828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4829$as_echo "$GNATBIND" >&6; }
4830else
4831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832$as_echo "no" >&6; }
4833fi
4834
4835
4836fi
4837if test -z "$ac_cv_prog_GNATBIND"; then
4838  ac_ct_GNATBIND=$GNATBIND
4839  # Extract the first word of "gnatbind", so it can be a program name with args.
4840set dummy gnatbind; ac_word=$2
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842$as_echo_n "checking for $ac_word... " >&6; }
4843if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4844  $as_echo_n "(cached) " >&6
4845else
4846  if test -n "$ac_ct_GNATBIND"; then
4847  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4848else
4849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850for as_dir in $PATH
4851do
4852  IFS=$as_save_IFS
4853  test -z "$as_dir" && as_dir=.
4854    for ac_exec_ext in '' $ac_executable_extensions; do
4855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858    break 2
4859  fi
4860done
4861  done
4862IFS=$as_save_IFS
4863
4864fi
4865fi
4866ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4867if test -n "$ac_ct_GNATBIND"; then
4868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4869$as_echo "$ac_ct_GNATBIND" >&6; }
4870else
4871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872$as_echo "no" >&6; }
4873fi
4874
4875  if test "x$ac_ct_GNATBIND" = x; then
4876    GNATBIND="no"
4877  else
4878    case $cross_compiling:$ac_tool_warned in
4879yes:)
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4882ac_tool_warned=yes ;;
4883esac
4884    GNATBIND=$ac_ct_GNATBIND
4885  fi
4886else
4887  GNATBIND="$ac_cv_prog_GNATBIND"
4888fi
4889
4890if test -n "$ac_tool_prefix"; then
4891  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4892set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894$as_echo_n "checking for $ac_word... " >&6; }
4895if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  if test -n "$GNATMAKE"; then
4899  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4900else
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904  IFS=$as_save_IFS
4905  test -z "$as_dir" && as_dir=.
4906    for ac_exec_ext in '' $ac_executable_extensions; do
4907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910    break 2
4911  fi
4912done
4913  done
4914IFS=$as_save_IFS
4915
4916fi
4917fi
4918GNATMAKE=$ac_cv_prog_GNATMAKE
4919if test -n "$GNATMAKE"; then
4920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4921$as_echo "$GNATMAKE" >&6; }
4922else
4923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924$as_echo "no" >&6; }
4925fi
4926
4927
4928fi
4929if test -z "$ac_cv_prog_GNATMAKE"; then
4930  ac_ct_GNATMAKE=$GNATMAKE
4931  # Extract the first word of "gnatmake", so it can be a program name with args.
4932set dummy gnatmake; ac_word=$2
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934$as_echo_n "checking for $ac_word... " >&6; }
4935if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  if test -n "$ac_ct_GNATMAKE"; then
4939  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4940else
4941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH
4943do
4944  IFS=$as_save_IFS
4945  test -z "$as_dir" && as_dir=.
4946    for ac_exec_ext in '' $ac_executable_extensions; do
4947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950    break 2
4951  fi
4952done
4953  done
4954IFS=$as_save_IFS
4955
4956fi
4957fi
4958ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4959if test -n "$ac_ct_GNATMAKE"; then
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4961$as_echo "$ac_ct_GNATMAKE" >&6; }
4962else
4963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964$as_echo "no" >&6; }
4965fi
4966
4967  if test "x$ac_ct_GNATMAKE" = x; then
4968    GNATMAKE="no"
4969  else
4970    case $cross_compiling:$ac_tool_warned in
4971yes:)
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4974ac_tool_warned=yes ;;
4975esac
4976    GNATMAKE=$ac_ct_GNATMAKE
4977  fi
4978else
4979  GNATMAKE="$ac_cv_prog_GNATMAKE"
4980fi
4981
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4983$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4984if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4985  $as_echo_n "(cached) " >&6
4986else
4987  cat >conftest.adb <<EOF
4988procedure conftest is begin null; end conftest;
4989EOF
4990acx_cv_cc_gcc_supports_ada=no
4991# There is a bug in old released versions of GCC which causes the
4992# driver to exit successfully when the appropriate language module
4993# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4994# Therefore we must check for the error message as well as an
4995# unsuccessful exit.
4996# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4997# given a .adb file, but produce no object file.  So we must check
4998# if an object file was really produced to guard against this.
4999errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5000if test x"$errors" = x && test -f conftest.$ac_objext; then
5001  acx_cv_cc_gcc_supports_ada=yes
5002fi
5003rm -f conftest.*
5004fi
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5006$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5007
5008if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5009  have_gnat=yes
5010else
5011  have_gnat=no
5012fi
5013
5014
5015# Do configure tests with the C++ compiler, since that's what we build with.
5016ac_ext=cpp
5017ac_cpp='$CXXCPP $CPPFLAGS'
5018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5021
5022
5023# Remove the -O2: for historical reasons, unless bootstrapping we prefer
5024# optimizations to be activated explicitly by the toplevel.
5025case "$CC" in
5026  */prev-gcc/xgcc*) ;;
5027  *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" `
5028     CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" ` ;;
5029esac
5030
5031
5032
5033# Determine PICFLAG for target gnatlib.
5034
5035
5036
5037
5038case "${target}" in
5039    # PIC is the default on some targets or must not be used.
5040    *-*-darwin*)
5041	# For darwin, common symbols are not allowed in MH_DYLIB files
5042	case "${CFLAGS}" in
5043	  # If we are using a compiler supporting mdynamic-no-pic
5044	  # and the option has been tested as safe to add, then cancel
5045	  # it here, since the code generated is incompatible with shared
5046	  # libs.
5047	  *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5048	  *) PICFLAG_FOR_TARGET=-fno-common ;;
5049	esac
5050	;;
5051    alpha*-dec-osf5*)
5052	# PIC is the default.
5053	;;
5054    hppa*64*-*-hpux*)
5055	# PIC is the default for 64-bit PA HP-UX.
5056	;;
5057    i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5058	;;
5059    i[34567]86-*-mingw* | x86_64-*-mingw*)
5060	;;
5061    i[34567]86-*-interix[3-9]*)
5062	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5063	# Instead, we relocate shared libraries at runtime.
5064	;;
5065    i[34567]86-*-nto-qnx*)
5066	# QNX uses GNU C++, but need to define -shared option too, otherwise
5067	# it will coredump.
5068	PICFLAG_FOR_TARGET='-fPIC -shared'
5069	;;
5070    i[34567]86-pc-msdosdjgpp*)
5071	# DJGPP does not support shared libraries at all.
5072	;;
5073    ia64*-*-hpux*)
5074	# On IA64 HP-UX, PIC is the default but the pic flag
5075	# sets the default TLS model and affects inlining.
5076	PICFLAG_FOR_TARGET=-fPIC
5077	;;
5078    mips-sgi-irix6*)
5079	# PIC is the default.
5080	;;
5081    rs6000-ibm-aix* | powerpc-ibm-aix*)
5082	# All AIX code is PIC.
5083	;;
5084
5085    # Some targets support both -fPIC and -fpic, but prefer the latter.
5086    # FIXME: Why?
5087    i[34567]86-*-* | x86_64-*-*)
5088	PICFLAG_FOR_TARGET=-fpic
5089	;;
5090    # FIXME: Override -fPIC default in libgcc only?
5091    sh-*-linux* | sh[2346lbe]*-*-linux*)
5092	PICFLAG_FOR_TARGET=-fpic
5093	;;
5094    # FIXME: Simplify to sh*-*-netbsd*?
5095    sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5096      sh64-*-netbsd* | sh64l*-*-netbsd*)
5097	PICFLAG_FOR_TARGET=-fpic
5098	;;
5099    # Default to -fPIC unless specified otherwise.
5100    *)
5101	PICFLAG_FOR_TARGET=-fPIC
5102	;;
5103esac
5104
5105# If the user explicitly uses -fpic/-fPIC, keep that.
5106case "${CFLAGS_FOR_TARGET}" in
5107    *-fpic*)
5108	PICFLAG_FOR_TARGET=-fpic
5109	;;
5110    *-fPIC*)
5111	PICFLAG_FOR_TARGET=-fPIC
5112	;;
5113esac
5114
5115
5116
5117# -------------------------
5118# Check C compiler features
5119# -------------------------
5120
5121
5122ac_ext=cpp
5123ac_cpp='$CXXCPP $CPPFLAGS'
5124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5128$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5129if test -z "$CXXCPP"; then
5130  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5131  $as_echo_n "(cached) " >&6
5132else
5133      # Double quotes because CXXCPP needs to be expanded
5134    for CXXCPP in "$CXX -E" "/lib/cpp"
5135    do
5136      ac_preproc_ok=false
5137for ac_cxx_preproc_warn_flag in '' yes
5138do
5139  # Use a header file that comes with gcc, so configuring glibc
5140  # with a fresh cross-compiler works.
5141  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5142  # <limits.h> exists even on freestanding compilers.
5143  # On the NeXT, cc -E runs the code through the compiler's parser,
5144  # not just through cpp. "Syntax error" is here to catch this case.
5145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h.  */
5147#ifdef __STDC__
5148# include <limits.h>
5149#else
5150# include <assert.h>
5151#endif
5152		     Syntax error
5153_ACEOF
5154if ac_fn_cxx_try_cpp "$LINENO"; then :
5155
5156else
5157  # Broken: fails on valid input.
5158continue
5159fi
5160rm -f conftest.err conftest.$ac_ext
5161
5162  # OK, works on sane cases.  Now check whether nonexistent headers
5163  # can be detected and how.
5164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165/* end confdefs.h.  */
5166#include <ac_nonexistent.h>
5167_ACEOF
5168if ac_fn_cxx_try_cpp "$LINENO"; then :
5169  # Broken: success on invalid input.
5170continue
5171else
5172  # Passes both tests.
5173ac_preproc_ok=:
5174break
5175fi
5176rm -f conftest.err conftest.$ac_ext
5177
5178done
5179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180rm -f conftest.err conftest.$ac_ext
5181if $ac_preproc_ok; then :
5182  break
5183fi
5184
5185    done
5186    ac_cv_prog_CXXCPP=$CXXCPP
5187
5188fi
5189  CXXCPP=$ac_cv_prog_CXXCPP
5190else
5191  ac_cv_prog_CXXCPP=$CXXCPP
5192fi
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5194$as_echo "$CXXCPP" >&6; }
5195ac_preproc_ok=false
5196for ac_cxx_preproc_warn_flag in '' yes
5197do
5198  # Use a header file that comes with gcc, so configuring glibc
5199  # with a fresh cross-compiler works.
5200  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5201  # <limits.h> exists even on freestanding compilers.
5202  # On the NeXT, cc -E runs the code through the compiler's parser,
5203  # not just through cpp. "Syntax error" is here to catch this case.
5204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205/* end confdefs.h.  */
5206#ifdef __STDC__
5207# include <limits.h>
5208#else
5209# include <assert.h>
5210#endif
5211		     Syntax error
5212_ACEOF
5213if ac_fn_cxx_try_cpp "$LINENO"; then :
5214
5215else
5216  # Broken: fails on valid input.
5217continue
5218fi
5219rm -f conftest.err conftest.$ac_ext
5220
5221  # OK, works on sane cases.  Now check whether nonexistent headers
5222  # can be detected and how.
5223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225#include <ac_nonexistent.h>
5226_ACEOF
5227if ac_fn_cxx_try_cpp "$LINENO"; then :
5228  # Broken: success on invalid input.
5229continue
5230else
5231  # Passes both tests.
5232ac_preproc_ok=:
5233break
5234fi
5235rm -f conftest.err conftest.$ac_ext
5236
5237done
5238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5239rm -f conftest.err conftest.$ac_ext
5240if $ac_preproc_ok; then :
5241
5242else
5243  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5245as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5246See \`config.log' for more details." "$LINENO" 5; }
5247fi
5248
5249ac_ext=cpp
5250ac_cpp='$CXXCPP $CPPFLAGS'
5251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5254
5255
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5257$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5258if test "${ac_cv_path_GREP+set}" = set; then :
5259  $as_echo_n "(cached) " >&6
5260else
5261  if test -z "$GREP"; then
5262  ac_path_GREP_found=false
5263  # Loop through the user's path and test for each of PROGNAME-LIST
5264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5266do
5267  IFS=$as_save_IFS
5268  test -z "$as_dir" && as_dir=.
5269    for ac_prog in grep ggrep; do
5270    for ac_exec_ext in '' $ac_executable_extensions; do
5271      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5272      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5273# Check for GNU ac_path_GREP and select it if it is found.
5274  # Check for GNU $ac_path_GREP
5275case `"$ac_path_GREP" --version 2>&1` in
5276*GNU*)
5277  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5278*)
5279  ac_count=0
5280  $as_echo_n 0123456789 >"conftest.in"
5281  while :
5282  do
5283    cat "conftest.in" "conftest.in" >"conftest.tmp"
5284    mv "conftest.tmp" "conftest.in"
5285    cp "conftest.in" "conftest.nl"
5286    $as_echo 'GREP' >> "conftest.nl"
5287    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5288    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5289    as_fn_arith $ac_count + 1 && ac_count=$as_val
5290    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5291      # Best one so far, save it but keep looking for a better one
5292      ac_cv_path_GREP="$ac_path_GREP"
5293      ac_path_GREP_max=$ac_count
5294    fi
5295    # 10*(2^10) chars as input seems more than enough
5296    test $ac_count -gt 10 && break
5297  done
5298  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5299esac
5300
5301      $ac_path_GREP_found && break 3
5302    done
5303  done
5304  done
5305IFS=$as_save_IFS
5306  if test -z "$ac_cv_path_GREP"; then
5307    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5308  fi
5309else
5310  ac_cv_path_GREP=$GREP
5311fi
5312
5313fi
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5315$as_echo "$ac_cv_path_GREP" >&6; }
5316 GREP="$ac_cv_path_GREP"
5317
5318
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5320$as_echo_n "checking for egrep... " >&6; }
5321if test "${ac_cv_path_EGREP+set}" = set; then :
5322  $as_echo_n "(cached) " >&6
5323else
5324  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5325   then ac_cv_path_EGREP="$GREP -E"
5326   else
5327     if test -z "$EGREP"; then
5328  ac_path_EGREP_found=false
5329  # Loop through the user's path and test for each of PROGNAME-LIST
5330  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5332do
5333  IFS=$as_save_IFS
5334  test -z "$as_dir" && as_dir=.
5335    for ac_prog in egrep; do
5336    for ac_exec_ext in '' $ac_executable_extensions; do
5337      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5338      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5339# Check for GNU ac_path_EGREP and select it if it is found.
5340  # Check for GNU $ac_path_EGREP
5341case `"$ac_path_EGREP" --version 2>&1` in
5342*GNU*)
5343  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5344*)
5345  ac_count=0
5346  $as_echo_n 0123456789 >"conftest.in"
5347  while :
5348  do
5349    cat "conftest.in" "conftest.in" >"conftest.tmp"
5350    mv "conftest.tmp" "conftest.in"
5351    cp "conftest.in" "conftest.nl"
5352    $as_echo 'EGREP' >> "conftest.nl"
5353    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5354    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5355    as_fn_arith $ac_count + 1 && ac_count=$as_val
5356    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5357      # Best one so far, save it but keep looking for a better one
5358      ac_cv_path_EGREP="$ac_path_EGREP"
5359      ac_path_EGREP_max=$ac_count
5360    fi
5361    # 10*(2^10) chars as input seems more than enough
5362    test $ac_count -gt 10 && break
5363  done
5364  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5365esac
5366
5367      $ac_path_EGREP_found && break 3
5368    done
5369  done
5370  done
5371IFS=$as_save_IFS
5372  if test -z "$ac_cv_path_EGREP"; then
5373    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5374  fi
5375else
5376  ac_cv_path_EGREP=$EGREP
5377fi
5378
5379   fi
5380fi
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5382$as_echo "$ac_cv_path_EGREP" >&6; }
5383 EGREP="$ac_cv_path_EGREP"
5384
5385
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5387$as_echo_n "checking for ANSI C header files... " >&6; }
5388if test "${ac_cv_header_stdc+set}" = set; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h.  */
5393#include <stdlib.h>
5394#include <stdarg.h>
5395#include <string.h>
5396#include <float.h>
5397
5398int
5399main ()
5400{
5401
5402  ;
5403  return 0;
5404}
5405_ACEOF
5406if ac_fn_cxx_try_compile "$LINENO"; then :
5407  ac_cv_header_stdc=yes
5408else
5409  ac_cv_header_stdc=no
5410fi
5411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412
5413if test $ac_cv_header_stdc = yes; then
5414  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416/* end confdefs.h.  */
5417#include <string.h>
5418
5419_ACEOF
5420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5421  $EGREP "memchr" >/dev/null 2>&1; then :
5422
5423else
5424  ac_cv_header_stdc=no
5425fi
5426rm -f conftest*
5427
5428fi
5429
5430if test $ac_cv_header_stdc = yes; then
5431  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h.  */
5434#include <stdlib.h>
5435
5436_ACEOF
5437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5438  $EGREP "free" >/dev/null 2>&1; then :
5439
5440else
5441  ac_cv_header_stdc=no
5442fi
5443rm -f conftest*
5444
5445fi
5446
5447if test $ac_cv_header_stdc = yes; then
5448  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5449  if test "$cross_compiling" = yes; then :
5450  :
5451else
5452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h.  */
5454#include <ctype.h>
5455#include <stdlib.h>
5456#if ((' ' & 0x0FF) == 0x020)
5457# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5458# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5459#else
5460# define ISLOWER(c) \
5461		   (('a' <= (c) && (c) <= 'i') \
5462		     || ('j' <= (c) && (c) <= 'r') \
5463		     || ('s' <= (c) && (c) <= 'z'))
5464# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5465#endif
5466
5467#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5468int
5469main ()
5470{
5471  int i;
5472  for (i = 0; i < 256; i++)
5473    if (XOR (islower (i), ISLOWER (i))
5474	|| toupper (i) != TOUPPER (i))
5475      return 2;
5476  return 0;
5477}
5478_ACEOF
5479if ac_fn_cxx_try_run "$LINENO"; then :
5480
5481else
5482  ac_cv_header_stdc=no
5483fi
5484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5485  conftest.$ac_objext conftest.beam conftest.$ac_ext
5486fi
5487
5488fi
5489fi
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5491$as_echo "$ac_cv_header_stdc" >&6; }
5492if test $ac_cv_header_stdc = yes; then
5493
5494$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5495
5496fi
5497
5498# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5499for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5500		  inttypes.h stdint.h unistd.h
5501do :
5502  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5503ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5504"
5505eval as_val=\$$as_ac_Header
5506   if test "x$as_val" = x""yes; then :
5507  cat >>confdefs.h <<_ACEOF
5508#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5509_ACEOF
5510
5511fi
5512
5513done
5514
5515
5516
5517  ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5518if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5519  MINIX=yes
5520else
5521  MINIX=
5522fi
5523
5524
5525  if test "$MINIX" = yes; then
5526
5527$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5528
5529
5530$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5531
5532
5533$as_echo "#define _MINIX 1" >>confdefs.h
5534
5535  fi
5536
5537
5538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5539$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5540if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5541  $as_echo_n "(cached) " >&6
5542else
5543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544/* end confdefs.h.  */
5545
5546#	  define __EXTENSIONS__ 1
5547	  $ac_includes_default
5548int
5549main ()
5550{
5551
5552  ;
5553  return 0;
5554}
5555_ACEOF
5556if ac_fn_cxx_try_compile "$LINENO"; then :
5557  ac_cv_safe_to_define___extensions__=yes
5558else
5559  ac_cv_safe_to_define___extensions__=no
5560fi
5561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562fi
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5564$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5565  test $ac_cv_safe_to_define___extensions__ = yes &&
5566    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5567
5568  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5569
5570  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5571
5572  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5573
5574  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5575
5576
5577ac_ext=c
5578ac_cpp='$CPP $CPPFLAGS'
5579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581ac_compiler_gnu=$ac_cv_c_compiler_gnu
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5583$as_echo_n "checking how to run the C preprocessor... " >&6; }
5584# On Suns, sometimes $CPP names a directory.
5585if test -n "$CPP" && test -d "$CPP"; then
5586  CPP=
5587fi
5588if test -z "$CPP"; then
5589  if test "${ac_cv_prog_CPP+set}" = set; then :
5590  $as_echo_n "(cached) " >&6
5591else
5592      # Double quotes because CPP needs to be expanded
5593    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5594    do
5595      ac_preproc_ok=false
5596for ac_c_preproc_warn_flag in '' yes
5597do
5598  # Use a header file that comes with gcc, so configuring glibc
5599  # with a fresh cross-compiler works.
5600  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5601  # <limits.h> exists even on freestanding compilers.
5602  # On the NeXT, cc -E runs the code through the compiler's parser,
5603  # not just through cpp. "Syntax error" is here to catch this case.
5604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605/* end confdefs.h.  */
5606#ifdef __STDC__
5607# include <limits.h>
5608#else
5609# include <assert.h>
5610#endif
5611		     Syntax error
5612_ACEOF
5613if ac_fn_c_try_cpp "$LINENO"; then :
5614
5615else
5616  # Broken: fails on valid input.
5617continue
5618fi
5619rm -f conftest.err conftest.$ac_ext
5620
5621  # OK, works on sane cases.  Now check whether nonexistent headers
5622  # can be detected and how.
5623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624/* end confdefs.h.  */
5625#include <ac_nonexistent.h>
5626_ACEOF
5627if ac_fn_c_try_cpp "$LINENO"; then :
5628  # Broken: success on invalid input.
5629continue
5630else
5631  # Passes both tests.
5632ac_preproc_ok=:
5633break
5634fi
5635rm -f conftest.err conftest.$ac_ext
5636
5637done
5638# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5639rm -f conftest.err conftest.$ac_ext
5640if $ac_preproc_ok; then :
5641  break
5642fi
5643
5644    done
5645    ac_cv_prog_CPP=$CPP
5646
5647fi
5648  CPP=$ac_cv_prog_CPP
5649else
5650  ac_cv_prog_CPP=$CPP
5651fi
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5653$as_echo "$CPP" >&6; }
5654ac_preproc_ok=false
5655for ac_c_preproc_warn_flag in '' yes
5656do
5657  # Use a header file that comes with gcc, so configuring glibc
5658  # with a fresh cross-compiler works.
5659  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5660  # <limits.h> exists even on freestanding compilers.
5661  # On the NeXT, cc -E runs the code through the compiler's parser,
5662  # not just through cpp. "Syntax error" is here to catch this case.
5663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664/* end confdefs.h.  */
5665#ifdef __STDC__
5666# include <limits.h>
5667#else
5668# include <assert.h>
5669#endif
5670		     Syntax error
5671_ACEOF
5672if ac_fn_c_try_cpp "$LINENO"; then :
5673
5674else
5675  # Broken: fails on valid input.
5676continue
5677fi
5678rm -f conftest.err conftest.$ac_ext
5679
5680  # OK, works on sane cases.  Now check whether nonexistent headers
5681  # can be detected and how.
5682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h.  */
5684#include <ac_nonexistent.h>
5685_ACEOF
5686if ac_fn_c_try_cpp "$LINENO"; then :
5687  # Broken: success on invalid input.
5688continue
5689else
5690  # Passes both tests.
5691ac_preproc_ok=:
5692break
5693fi
5694rm -f conftest.err conftest.$ac_ext
5695
5696done
5697# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5698rm -f conftest.err conftest.$ac_ext
5699if $ac_preproc_ok; then :
5700
5701else
5702  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5704as_fn_error "C preprocessor \"$CPP\" fails sanity check
5705See \`config.log' for more details." "$LINENO" 5; }
5706fi
5707
5708ac_ext=cpp
5709ac_cpp='$CXXCPP $CPPFLAGS'
5710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5713
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5715$as_echo_n "checking for inline... " >&6; }
5716if test "${ac_cv_c_inline+set}" = set; then :
5717  $as_echo_n "(cached) " >&6
5718else
5719  ac_cv_c_inline=no
5720for ac_kw in inline __inline__ __inline; do
5721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h.  */
5723#ifndef __cplusplus
5724typedef int foo_t;
5725static $ac_kw foo_t static_foo () {return 0; }
5726$ac_kw foo_t foo () {return 0; }
5727#endif
5728
5729_ACEOF
5730if ac_fn_cxx_try_compile "$LINENO"; then :
5731  ac_cv_c_inline=$ac_kw
5732fi
5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734  test "$ac_cv_c_inline" != no && break
5735done
5736
5737fi
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5739$as_echo "$ac_cv_c_inline" >&6; }
5740
5741case $ac_cv_c_inline in
5742  inline | yes) ;;
5743  *)
5744    case $ac_cv_c_inline in
5745      no) ac_val=;;
5746      *) ac_val=$ac_cv_c_inline;;
5747    esac
5748    cat >>confdefs.h <<_ACEOF
5749#ifndef __cplusplus
5750#define inline $ac_val
5751#endif
5752_ACEOF
5753    ;;
5754esac
5755
5756
5757# Check whether --enable-largefile was given.
5758if test "${enable_largefile+set}" = set; then :
5759  enableval=$enable_largefile;
5760fi
5761
5762if test "$enable_largefile" != no; then
5763
5764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5765$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5766if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5767  $as_echo_n "(cached) " >&6
5768else
5769  ac_cv_sys_largefile_CC=no
5770     if test "$GCC" != yes; then
5771       ac_save_CC=$CC
5772       while :; do
5773	 # IRIX 6.2 and later do not support large files by default,
5774	 # so use the C compiler's -n32 option if that helps.
5775	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h.  */
5777#include <sys/types.h>
5778 /* Check that off_t can represent 2**63 - 1 correctly.
5779    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5780    since some C++ compilers masquerading as C compilers
5781    incorrectly reject 9223372036854775807.  */
5782#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5783  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5784		       && LARGE_OFF_T % 2147483647 == 1)
5785		      ? 1 : -1];
5786int
5787main ()
5788{
5789
5790  ;
5791  return 0;
5792}
5793_ACEOF
5794	 if ac_fn_cxx_try_compile "$LINENO"; then :
5795  break
5796fi
5797rm -f core conftest.err conftest.$ac_objext
5798	 CC="$CC -n32"
5799	 if ac_fn_cxx_try_compile "$LINENO"; then :
5800  ac_cv_sys_largefile_CC=' -n32'; break
5801fi
5802rm -f core conftest.err conftest.$ac_objext
5803	 break
5804       done
5805       CC=$ac_save_CC
5806       rm -f conftest.$ac_ext
5807    fi
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5810$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5811  if test "$ac_cv_sys_largefile_CC" != no; then
5812    CC=$CC$ac_cv_sys_largefile_CC
5813  fi
5814
5815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5816$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5817if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5818  $as_echo_n "(cached) " >&6
5819else
5820  while :; do
5821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822/* end confdefs.h.  */
5823#include <sys/types.h>
5824 /* Check that off_t can represent 2**63 - 1 correctly.
5825    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5826    since some C++ compilers masquerading as C compilers
5827    incorrectly reject 9223372036854775807.  */
5828#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5829  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5830		       && LARGE_OFF_T % 2147483647 == 1)
5831		      ? 1 : -1];
5832int
5833main ()
5834{
5835
5836  ;
5837  return 0;
5838}
5839_ACEOF
5840if ac_fn_cxx_try_compile "$LINENO"; then :
5841  ac_cv_sys_file_offset_bits=no; break
5842fi
5843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845/* end confdefs.h.  */
5846#define _FILE_OFFSET_BITS 64
5847#include <sys/types.h>
5848 /* Check that off_t can represent 2**63 - 1 correctly.
5849    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5850    since some C++ compilers masquerading as C compilers
5851    incorrectly reject 9223372036854775807.  */
5852#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5853  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5854		       && LARGE_OFF_T % 2147483647 == 1)
5855		      ? 1 : -1];
5856int
5857main ()
5858{
5859
5860  ;
5861  return 0;
5862}
5863_ACEOF
5864if ac_fn_cxx_try_compile "$LINENO"; then :
5865  ac_cv_sys_file_offset_bits=64; break
5866fi
5867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868  ac_cv_sys_file_offset_bits=unknown
5869  break
5870done
5871fi
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5873$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5874case $ac_cv_sys_file_offset_bits in #(
5875  no | unknown) ;;
5876  *)
5877cat >>confdefs.h <<_ACEOF
5878#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5879_ACEOF
5880;;
5881esac
5882rm -rf conftest*
5883  if test $ac_cv_sys_file_offset_bits = unknown; then
5884    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5885$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5886if test "${ac_cv_sys_large_files+set}" = set; then :
5887  $as_echo_n "(cached) " >&6
5888else
5889  while :; do
5890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891/* end confdefs.h.  */
5892#include <sys/types.h>
5893 /* Check that off_t can represent 2**63 - 1 correctly.
5894    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5895    since some C++ compilers masquerading as C compilers
5896    incorrectly reject 9223372036854775807.  */
5897#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5898  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5899		       && LARGE_OFF_T % 2147483647 == 1)
5900		      ? 1 : -1];
5901int
5902main ()
5903{
5904
5905  ;
5906  return 0;
5907}
5908_ACEOF
5909if ac_fn_cxx_try_compile "$LINENO"; then :
5910  ac_cv_sys_large_files=no; break
5911fi
5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914/* end confdefs.h.  */
5915#define _LARGE_FILES 1
5916#include <sys/types.h>
5917 /* Check that off_t can represent 2**63 - 1 correctly.
5918    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5919    since some C++ compilers masquerading as C compilers
5920    incorrectly reject 9223372036854775807.  */
5921#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5922  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5923		       && LARGE_OFF_T % 2147483647 == 1)
5924		      ? 1 : -1];
5925int
5926main ()
5927{
5928
5929  ;
5930  return 0;
5931}
5932_ACEOF
5933if ac_fn_cxx_try_compile "$LINENO"; then :
5934  ac_cv_sys_large_files=1; break
5935fi
5936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937  ac_cv_sys_large_files=unknown
5938  break
5939done
5940fi
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5942$as_echo "$ac_cv_sys_large_files" >&6; }
5943case $ac_cv_sys_large_files in #(
5944  no | unknown) ;;
5945  *)
5946cat >>confdefs.h <<_ACEOF
5947#define _LARGE_FILES $ac_cv_sys_large_files
5948_ACEOF
5949;;
5950esac
5951rm -rf conftest*
5952  fi
5953fi
5954
5955
5956# sizeof(char) is 1 by definition.
5957# The cast to long int works around a bug in the HP C Compiler
5958# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5959# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5960# This bug is HP SR number 8606223364.
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5962$as_echo_n "checking size of void *... " >&6; }
5963if test "${ac_cv_sizeof_void_p+set}" = set; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5967
5968else
5969  if test "$ac_cv_type_void_p" = yes; then
5970     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5972{ as_fn_set_status 77
5973as_fn_error "cannot compute sizeof (void *)
5974See \`config.log' for more details." "$LINENO" 5; }; }
5975   else
5976     ac_cv_sizeof_void_p=0
5977   fi
5978fi
5979
5980fi
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5982$as_echo "$ac_cv_sizeof_void_p" >&6; }
5983
5984
5985
5986cat >>confdefs.h <<_ACEOF
5987#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5988_ACEOF
5989
5990
5991# The cast to long int works around a bug in the HP C Compiler
5992# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5993# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5994# This bug is HP SR number 8606223364.
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5996$as_echo_n "checking size of short... " >&6; }
5997if test "${ac_cv_sizeof_short+set}" = set; then :
5998  $as_echo_n "(cached) " >&6
5999else
6000  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
6001
6002else
6003  if test "$ac_cv_type_short" = yes; then
6004     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6006{ as_fn_set_status 77
6007as_fn_error "cannot compute sizeof (short)
6008See \`config.log' for more details." "$LINENO" 5; }; }
6009   else
6010     ac_cv_sizeof_short=0
6011   fi
6012fi
6013
6014fi
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6016$as_echo "$ac_cv_sizeof_short" >&6; }
6017
6018
6019
6020cat >>confdefs.h <<_ACEOF
6021#define SIZEOF_SHORT $ac_cv_sizeof_short
6022_ACEOF
6023
6024
6025# The cast to long int works around a bug in the HP C Compiler
6026# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6027# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6028# This bug is HP SR number 8606223364.
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6030$as_echo_n "checking size of int... " >&6; }
6031if test "${ac_cv_sizeof_int+set}" = set; then :
6032  $as_echo_n "(cached) " >&6
6033else
6034  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6035
6036else
6037  if test "$ac_cv_type_int" = yes; then
6038     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6040{ as_fn_set_status 77
6041as_fn_error "cannot compute sizeof (int)
6042See \`config.log' for more details." "$LINENO" 5; }; }
6043   else
6044     ac_cv_sizeof_int=0
6045   fi
6046fi
6047
6048fi
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6050$as_echo "$ac_cv_sizeof_int" >&6; }
6051
6052
6053
6054cat >>confdefs.h <<_ACEOF
6055#define SIZEOF_INT $ac_cv_sizeof_int
6056_ACEOF
6057
6058
6059# The cast to long int works around a bug in the HP C Compiler
6060# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6061# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6062# This bug is HP SR number 8606223364.
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6064$as_echo_n "checking size of long... " >&6; }
6065if test "${ac_cv_sizeof_long+set}" = set; then :
6066  $as_echo_n "(cached) " >&6
6067else
6068  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6069
6070else
6071  if test "$ac_cv_type_long" = yes; then
6072     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6074{ as_fn_set_status 77
6075as_fn_error "cannot compute sizeof (long)
6076See \`config.log' for more details." "$LINENO" 5; }; }
6077   else
6078     ac_cv_sizeof_long=0
6079   fi
6080fi
6081
6082fi
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6084$as_echo "$ac_cv_sizeof_long" >&6; }
6085
6086
6087
6088cat >>confdefs.h <<_ACEOF
6089#define SIZEOF_LONG $ac_cv_sizeof_long
6090_ACEOF
6091
6092
6093ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6094if test "x$ac_cv_type_long_long" = x""yes; then :
6095
6096cat >>confdefs.h <<_ACEOF
6097#define HAVE_LONG_LONG 1
6098_ACEOF
6099
6100# The cast to long int works around a bug in the HP C Compiler
6101# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6102# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6103# This bug is HP SR number 8606223364.
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6105$as_echo_n "checking size of long long... " >&6; }
6106if test "${ac_cv_sizeof_long_long+set}" = set; then :
6107  $as_echo_n "(cached) " >&6
6108else
6109  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6110
6111else
6112  if test "$ac_cv_type_long_long" = yes; then
6113     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6115{ as_fn_set_status 77
6116as_fn_error "cannot compute sizeof (long long)
6117See \`config.log' for more details." "$LINENO" 5; }; }
6118   else
6119     ac_cv_sizeof_long_long=0
6120   fi
6121fi
6122
6123fi
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6125$as_echo "$ac_cv_sizeof_long_long" >&6; }
6126
6127
6128
6129cat >>confdefs.h <<_ACEOF
6130#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6131_ACEOF
6132
6133
6134fi
6135
6136ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6137case $ac_cv_c_int8_t in #(
6138  no|yes) ;; #(
6139  *)
6140
6141cat >>confdefs.h <<_ACEOF
6142#define int8_t $ac_cv_c_int8_t
6143_ACEOF
6144;;
6145esac
6146
6147ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6148case $ac_cv_c_int16_t in #(
6149  no|yes) ;; #(
6150  *)
6151
6152cat >>confdefs.h <<_ACEOF
6153#define int16_t $ac_cv_c_int16_t
6154_ACEOF
6155;;
6156esac
6157
6158ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6159case $ac_cv_c_int32_t in #(
6160  no|yes) ;; #(
6161  *)
6162
6163cat >>confdefs.h <<_ACEOF
6164#define int32_t $ac_cv_c_int32_t
6165_ACEOF
6166;;
6167esac
6168
6169ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6170case $ac_cv_c_int64_t in #(
6171  no|yes) ;; #(
6172  *)
6173
6174cat >>confdefs.h <<_ACEOF
6175#define int64_t $ac_cv_c_int64_t
6176_ACEOF
6177;;
6178esac
6179
6180
6181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6182$as_echo_n "checking for long long int... " >&6; }
6183if test "${ac_cv_type_long_long_int+set}" = set; then :
6184  $as_echo_n "(cached) " >&6
6185else
6186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187/* end confdefs.h.  */
6188
6189  /* For now, do not test the preprocessor; as of 2007 there are too many
6190	 implementations with broken preprocessors.  Perhaps this can
6191	 be revisited in 2012.  In the meantime, code should not expect
6192	 #if to work with literals wider than 32 bits.  */
6193      /* Test literals.  */
6194      long long int ll = 9223372036854775807ll;
6195      long long int nll = -9223372036854775807LL;
6196      unsigned long long int ull = 18446744073709551615ULL;
6197      /* Test constant expressions.   */
6198      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6199		     ? 1 : -1)];
6200      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6201		     ? 1 : -1)];
6202      int i = 63;
6203int
6204main ()
6205{
6206/* Test availability of runtime routines for shift and division.  */
6207      long long int llmax = 9223372036854775807ll;
6208      unsigned long long int ullmax = 18446744073709551615ull;
6209      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6210	      | (llmax / ll) | (llmax % ll)
6211	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6212	      | (ullmax / ull) | (ullmax % ull));
6213  ;
6214  return 0;
6215}
6216
6217_ACEOF
6218if ac_fn_cxx_try_link "$LINENO"; then :
6219  			if test "$cross_compiling" = yes; then :
6220  ac_cv_type_long_long_int=yes
6221else
6222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223/* end confdefs.h.  */
6224#include <limits.h>
6225	       #ifndef LLONG_MAX
6226	       # define HALF \
6227			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
6228	       # define LLONG_MAX (HALF - 1 + HALF)
6229	       #endif
6230int
6231main ()
6232{
6233long long int n = 1;
6234	       int i;
6235	       for (i = 0; ; i++)
6236		 {
6237		   long long int m = n << i;
6238		   if (m >> i != n)
6239		     return 1;
6240		   if (LLONG_MAX / 2 < m)
6241		     break;
6242		 }
6243	       return 0;
6244  ;
6245  return 0;
6246}
6247_ACEOF
6248if ac_fn_cxx_try_run "$LINENO"; then :
6249  ac_cv_type_long_long_int=yes
6250else
6251  ac_cv_type_long_long_int=no
6252fi
6253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6254  conftest.$ac_objext conftest.beam conftest.$ac_ext
6255fi
6256
6257else
6258  ac_cv_type_long_long_int=no
6259fi
6260rm -f core conftest.err conftest.$ac_objext \
6261    conftest$ac_exeext conftest.$ac_ext
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6264$as_echo "$ac_cv_type_long_long_int" >&6; }
6265  if test $ac_cv_type_long_long_int = yes; then
6266
6267$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6268
6269  fi
6270
6271
6272
6273  ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6274if test "x$ac_cv_type_intmax_t" = x""yes; then :
6275
6276$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6277
6278else
6279  test $ac_cv_type_long_long_int = yes \
6280       && ac_type='long long int' \
6281       || ac_type='long int'
6282
6283cat >>confdefs.h <<_ACEOF
6284#define intmax_t $ac_type
6285_ACEOF
6286
6287fi
6288
6289
6290
6291  ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6292if test "x$ac_cv_type_intptr_t" = x""yes; then :
6293
6294$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6295
6296else
6297  for ac_type in 'int' 'long int' 'long long int'; do
6298       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299/* end confdefs.h.  */
6300$ac_includes_default
6301int
6302main ()
6303{
6304static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6305test_array [0] = 0
6306
6307  ;
6308  return 0;
6309}
6310_ACEOF
6311if ac_fn_cxx_try_compile "$LINENO"; then :
6312
6313cat >>confdefs.h <<_ACEOF
6314#define intptr_t $ac_type
6315_ACEOF
6316
6317	  ac_type=
6318fi
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320       test -z "$ac_type" && break
6321     done
6322fi
6323
6324
6325ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6326case $ac_cv_c_uint8_t in #(
6327  no|yes) ;; #(
6328  *)
6329
6330$as_echo "#define _UINT8_T 1" >>confdefs.h
6331
6332
6333cat >>confdefs.h <<_ACEOF
6334#define uint8_t $ac_cv_c_uint8_t
6335_ACEOF
6336;;
6337  esac
6338
6339ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6340case $ac_cv_c_uint16_t in #(
6341  no|yes) ;; #(
6342  *)
6343
6344
6345cat >>confdefs.h <<_ACEOF
6346#define uint16_t $ac_cv_c_uint16_t
6347_ACEOF
6348;;
6349  esac
6350
6351ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6352case $ac_cv_c_uint32_t in #(
6353  no|yes) ;; #(
6354  *)
6355
6356$as_echo "#define _UINT32_T 1" >>confdefs.h
6357
6358
6359cat >>confdefs.h <<_ACEOF
6360#define uint32_t $ac_cv_c_uint32_t
6361_ACEOF
6362;;
6363  esac
6364
6365ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6366case $ac_cv_c_uint64_t in #(
6367  no|yes) ;; #(
6368  *)
6369
6370$as_echo "#define _UINT64_T 1" >>confdefs.h
6371
6372
6373cat >>confdefs.h <<_ACEOF
6374#define uint64_t $ac_cv_c_uint64_t
6375_ACEOF
6376;;
6377  esac
6378
6379
6380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6381$as_echo_n "checking for unsigned long long int... " >&6; }
6382if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h.  */
6387
6388  /* For now, do not test the preprocessor; as of 2007 there are too many
6389	 implementations with broken preprocessors.  Perhaps this can
6390	 be revisited in 2012.  In the meantime, code should not expect
6391	 #if to work with literals wider than 32 bits.  */
6392      /* Test literals.  */
6393      long long int ll = 9223372036854775807ll;
6394      long long int nll = -9223372036854775807LL;
6395      unsigned long long int ull = 18446744073709551615ULL;
6396      /* Test constant expressions.   */
6397      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6398		     ? 1 : -1)];
6399      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6400		     ? 1 : -1)];
6401      int i = 63;
6402int
6403main ()
6404{
6405/* Test availability of runtime routines for shift and division.  */
6406      long long int llmax = 9223372036854775807ll;
6407      unsigned long long int ullmax = 18446744073709551615ull;
6408      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6409	      | (llmax / ll) | (llmax % ll)
6410	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6411	      | (ullmax / ull) | (ullmax % ull));
6412  ;
6413  return 0;
6414}
6415
6416_ACEOF
6417if ac_fn_cxx_try_link "$LINENO"; then :
6418  ac_cv_type_unsigned_long_long_int=yes
6419else
6420  ac_cv_type_unsigned_long_long_int=no
6421fi
6422rm -f core conftest.err conftest.$ac_objext \
6423    conftest$ac_exeext conftest.$ac_ext
6424fi
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6426$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6427  if test $ac_cv_type_unsigned_long_long_int = yes; then
6428
6429$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6430
6431  fi
6432
6433
6434
6435  ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6436if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6437
6438$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6439
6440else
6441  test $ac_cv_type_unsigned_long_long_int = yes \
6442       && ac_type='unsigned long long int' \
6443       || ac_type='unsigned long int'
6444
6445cat >>confdefs.h <<_ACEOF
6446#define uintmax_t $ac_type
6447_ACEOF
6448
6449fi
6450
6451
6452
6453  ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6454if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6455
6456$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6457
6458else
6459  for ac_type in 'unsigned int' 'unsigned long int' \
6460	'unsigned long long int'; do
6461       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h.  */
6463$ac_includes_default
6464int
6465main ()
6466{
6467static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6468test_array [0] = 0
6469
6470  ;
6471  return 0;
6472}
6473_ACEOF
6474if ac_fn_cxx_try_compile "$LINENO"; then :
6475
6476cat >>confdefs.h <<_ACEOF
6477#define uintptr_t $ac_type
6478_ACEOF
6479
6480	  ac_type=
6481fi
6482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483       test -z "$ac_type" && break
6484     done
6485fi
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6501  as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6502fi
6503
6504# check what underlying integer type int64_t uses
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6506$as_echo_n "checking for int64_t underlying type... " >&6; }
6507if test "${ac_cv_int64_t_type+set}" = set; then :
6508  $as_echo_n "(cached) " >&6
6509else
6510
6511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513
6514#ifdef HAVE_STDINT_H
6515#include <stdint.h>
6516#endif
6517template <typename T> struct X { };
6518template <>
6519struct X<long> { typedef long t; };
6520
6521int
6522main ()
6523{
6524X<int64_t>::t x;
6525  ;
6526  return 0;
6527}
6528_ACEOF
6529if ac_fn_cxx_try_compile "$LINENO"; then :
6530  ac_cv_int64_t_type=long
6531else
6532  ac_cv_int64_t_type="long long"
6533fi
6534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535fi
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6537$as_echo "$ac_cv_int64_t_type" >&6; }
6538if test "$ac_cv_int64_t_type" = "long"; then
6539
6540$as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6541
6542else
6543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h.  */
6545
6546#ifdef HAVE_STDINT_H
6547#include <stdint.h>
6548#endif
6549template <typename T> struct X { };
6550template <>
6551struct X<long long> { typedef long long t; };
6552
6553int
6554main ()
6555{
6556X<int64_t>::t x;
6557  ;
6558  return 0;
6559}
6560_ACEOF
6561if ac_fn_cxx_try_compile "$LINENO"; then :
6562
6563else
6564  as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6565fi
6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567fi
6568
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6570$as_echo_n "checking for std::swap in <utility>... " >&6; }
6571if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6572  $as_echo_n "(cached) " >&6
6573else
6574
6575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576/* end confdefs.h.  */
6577
6578#include <utility>
6579
6580int
6581main ()
6582{
6583int a, b; std::swap(a,b);
6584  ;
6585  return 0;
6586}
6587_ACEOF
6588if ac_fn_cxx_try_compile "$LINENO"; then :
6589  ac_cv_std_swap_in_utility=yes
6590else
6591  ac_cv_std_swap_in_utility=no
6592fi
6593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594fi
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6596$as_echo "$ac_cv_std_swap_in_utility" >&6; }
6597if test $ac_cv_std_swap_in_utility = yes; then
6598
6599$as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6600
6601fi
6602
6603# Check whether compiler is affected by placement new aliasing bug (PR 29286).
6604# If the host compiler is affected by the bug, and we build with optimization
6605# enabled (which happens e.g. when cross-compiling), the pool allocator may
6606# get miscompiled.  Use -fno-strict-aliasing to work around this problem.
6607# Since there is no reliable feature check for the presence of this bug,
6608# we simply use a GCC version number check.  (This should never trigger for
6609# stages 2 or 3 of a native bootstrap.)
6610aliasing_flags=
6611if test "$GCC" = yes; then
6612  saved_CXXFLAGS="$CXXFLAGS"
6613
6614  # The following test compilation will succeed if and only if $CXX accepts
6615  # -fno-strict-aliasing *and* is older than GCC 4.3.
6616  CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6618$as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h.  */
6621
6622#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6623#error compiler not affected by placement new aliasing bug
6624#endif
6625
6626_ACEOF
6627if ac_fn_cxx_try_compile "$LINENO"; then :
6628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6629$as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6630else
6631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632$as_echo "no" >&6; }
6633fi
6634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635
6636  CXXFLAGS="$saved_CXXFLAGS"
6637fi
6638
6639
6640
6641
6642# ---------------------
6643# Warnings and checking
6644# ---------------------
6645
6646# Check $CC warning features (if it's GCC).
6647# We want to use -pedantic, but we don't want warnings about
6648# * 'long long'
6649# * variadic macros
6650# * overlong strings
6651# * C++11 narrowing conversions in { }
6652# So, we only use -pedantic if we can disable those warnings.
6653
6654# In stage 1, disable -Wformat warnings from old GCCs about new % codes
6655# Check whether --enable-build-format-warnings was given.
6656if test "${enable_build_format_warnings+set}" = set; then :
6657  enableval=$enable_build_format_warnings;
6658else
6659  enable_build_format_warnings=yes
6660fi
6661
6662if test $enable_build_format_warnings = no; then :
6663  wf_opt=-Wno-format
6664else
6665  wf_opt=
6666fi
6667ac_ext=cpp
6668ac_cpp='$CXXCPP $CPPFLAGS'
6669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6672
6673loose_warn=
6674save_CXXFLAGS="$CXXFLAGS"
6675for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6676  # Do the check with the no- prefix removed since gcc silently
6677  # accepts any -Wno-* option on purpose
6678  case $real_option in
6679    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6680    *) option=$real_option ;;
6681  esac
6682  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6683
6684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6685$as_echo_n "checking whether $CXX supports $option... " >&6; }
6686if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6687  $as_echo_n "(cached) " >&6
6688else
6689  CXXFLAGS="$option"
6690    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692
6693int
6694main ()
6695{
6696
6697  ;
6698  return 0;
6699}
6700_ACEOF
6701if ac_fn_cxx_try_compile "$LINENO"; then :
6702  eval "$as_acx_Woption=yes"
6703else
6704  eval "$as_acx_Woption=no"
6705fi
6706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707
6708fi
6709eval ac_res=\$$as_acx_Woption
6710	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6711$as_echo "$ac_res" >&6; }
6712  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6713  loose_warn="$loose_warn${loose_warn:+ }$real_option"
6714fi
6715  done
6716CXXFLAGS="$save_CXXFLAGS"
6717ac_ext=cpp
6718ac_cpp='$CXXCPP $CPPFLAGS'
6719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6722
6723
6724
6725ac_ext=c
6726ac_cpp='$CPP $CPPFLAGS'
6727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6729ac_compiler_gnu=$ac_cv_c_compiler_gnu
6730
6731c_loose_warn=
6732save_CFLAGS="$CFLAGS"
6733for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6734  # Do the check with the no- prefix removed since gcc silently
6735  # accepts any -Wno-* option on purpose
6736  case $real_option in
6737    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6738    *) option=$real_option ;;
6739  esac
6740  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6741
6742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6743$as_echo_n "checking whether $CC supports $option... " >&6; }
6744if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747  CFLAGS="$option"
6748    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750
6751int
6752main ()
6753{
6754
6755  ;
6756  return 0;
6757}
6758_ACEOF
6759if ac_fn_c_try_compile "$LINENO"; then :
6760  eval "$as_acx_Woption=yes"
6761else
6762  eval "$as_acx_Woption=no"
6763fi
6764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765
6766fi
6767eval ac_res=\$$as_acx_Woption
6768	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6769$as_echo "$ac_res" >&6; }
6770  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6771  c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6772fi
6773  done
6774CFLAGS="$save_CFLAGS"
6775ac_ext=cpp
6776ac_cpp='$CXXCPP $CPPFLAGS'
6777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6780
6781
6782ac_ext=cpp
6783ac_cpp='$CXXCPP $CPPFLAGS'
6784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6787
6788strict_warn=
6789save_CXXFLAGS="$CXXFLAGS"
6790for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6791  # Do the check with the no- prefix removed since gcc silently
6792  # accepts any -Wno-* option on purpose
6793  case $real_option in
6794    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6795    *) option=$real_option ;;
6796  esac
6797  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6798
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6800$as_echo_n "checking whether $CXX supports $option... " >&6; }
6801if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6802  $as_echo_n "(cached) " >&6
6803else
6804  CXXFLAGS="$option"
6805    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806/* end confdefs.h.  */
6807
6808int
6809main ()
6810{
6811
6812  ;
6813  return 0;
6814}
6815_ACEOF
6816if ac_fn_cxx_try_compile "$LINENO"; then :
6817  eval "$as_acx_Woption=yes"
6818else
6819  eval "$as_acx_Woption=no"
6820fi
6821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822
6823fi
6824eval ac_res=\$$as_acx_Woption
6825	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6826$as_echo "$ac_res" >&6; }
6827  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6828  strict_warn="$strict_warn${strict_warn:+ }$real_option"
6829fi
6830  done
6831CXXFLAGS="$save_CXXFLAGS"
6832ac_ext=cpp
6833ac_cpp='$CXXCPP $CPPFLAGS'
6834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6837
6838
6839ac_ext=c
6840ac_cpp='$CPP $CPPFLAGS'
6841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843ac_compiler_gnu=$ac_cv_c_compiler_gnu
6844
6845c_strict_warn=
6846save_CFLAGS="$CFLAGS"
6847for real_option in -Wold-style-definition -Wc++-compat; do
6848  # Do the check with the no- prefix removed since gcc silently
6849  # accepts any -Wno-* option on purpose
6850  case $real_option in
6851    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6852    *) option=$real_option ;;
6853  esac
6854  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6855
6856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6857$as_echo_n "checking whether $CC supports $option... " >&6; }
6858if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6859  $as_echo_n "(cached) " >&6
6860else
6861  CFLAGS="$option"
6862    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863/* end confdefs.h.  */
6864
6865int
6866main ()
6867{
6868
6869  ;
6870  return 0;
6871}
6872_ACEOF
6873if ac_fn_c_try_compile "$LINENO"; then :
6874  eval "$as_acx_Woption=yes"
6875else
6876  eval "$as_acx_Woption=no"
6877fi
6878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879
6880fi
6881eval ac_res=\$$as_acx_Woption
6882	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6883$as_echo "$ac_res" >&6; }
6884  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6885  c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6886fi
6887  done
6888CFLAGS="$save_CFLAGS"
6889ac_ext=cpp
6890ac_cpp='$CXXCPP $CPPFLAGS'
6891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6894
6895
6896ac_ext=cpp
6897ac_cpp='$CXXCPP $CPPFLAGS'
6898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6901
6902# Do the check with the no- prefix removed from the warning options
6903# since gcc silently accepts any -Wno-* option on purpose
6904if test "$GXX" = yes; then :
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6906$as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6907if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6908  $as_echo_n "(cached) " >&6
6909else
6910  save_CXXFLAGS="$CXXFLAGS"
6911CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913/* end confdefs.h.  */
6914
6915int
6916main ()
6917{
6918
6919  ;
6920  return 0;
6921}
6922_ACEOF
6923if ac_fn_cxx_try_compile "$LINENO"; then :
6924  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6925else
6926  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6927fi
6928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929CXXFLAGS="$save_CXXFLAGS"
6930fi
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6932$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6933if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6934  strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6935fi
6936
6937fi
6938ac_ext=cpp
6939ac_cpp='$CXXCPP $CPPFLAGS'
6940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6943
6944
6945ac_ext=cpp
6946ac_cpp='$CXXCPP $CPPFLAGS'
6947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6950
6951# Check whether --enable-werror-always was given.
6952if test "${enable_werror_always+set}" = set; then :
6953  enableval=$enable_werror_always;
6954else
6955  enable_werror_always=no
6956fi
6957
6958if test $enable_werror_always = yes; then :
6959  strict_warn="$strict_warn${strict_warn:+ }-Werror"
6960fi
6961
6962ac_ext=cpp
6963ac_cpp='$CXXCPP $CPPFLAGS'
6964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6967
6968
6969
6970# The above macros do nothing if the compiler is not GCC.  However, the
6971# Makefile has more goo to add other flags, so these variables are used
6972# to enable warnings only for GCC.
6973warn_cflags=
6974warn_cxxflags=
6975if test "x$GCC" = "xyes"; then
6976  warn_cflags='$(GCC_WARN_CFLAGS)'
6977  warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6978fi
6979
6980
6981
6982# Disable exceptions and RTTI if building with g++
6983ac_ext=c
6984ac_cpp='$CPP $CPPFLAGS'
6985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988
6989noexception_flags=
6990save_CFLAGS="$CFLAGS"
6991for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6992  # Do the check with the no- prefix removed since gcc silently
6993  # accepts any -Wno-* option on purpose
6994  case $real_option in
6995    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6996    *) option=$real_option ;;
6997  esac
6998  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6999
7000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7001$as_echo_n "checking whether $CC supports $option... " >&6; }
7002if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  CFLAGS="$option"
7006    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h.  */
7008
7009int
7010main ()
7011{
7012
7013  ;
7014  return 0;
7015}
7016_ACEOF
7017if ac_fn_c_try_compile "$LINENO"; then :
7018  eval "$as_acx_Woption=yes"
7019else
7020  eval "$as_acx_Woption=no"
7021fi
7022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023
7024fi
7025eval ac_res=\$$as_acx_Woption
7026	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7027$as_echo "$ac_res" >&6; }
7028  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7029  noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7030fi
7031  done
7032CFLAGS="$save_CFLAGS"
7033ac_ext=cpp
7034ac_cpp='$CXXCPP $CPPFLAGS'
7035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7038
7039
7040
7041# Enable expensive internal checks
7042is_release=
7043if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7044  is_release=yes
7045fi
7046
7047# Check whether --enable-checking was given.
7048if test "${enable_checking+set}" = set; then :
7049  enableval=$enable_checking; ac_checking_flags="${enableval}"
7050else
7051
7052# Determine the default checks.
7053if test x$is_release = x ; then
7054  ac_checking_flags=yes,extra
7055else
7056  ac_checking_flags=release
7057fi
7058fi
7059
7060IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
7061for check in release $ac_checking_flags
7062do
7063	case $check in
7064	# these set all the flags to specific states
7065	yes)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7066			ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7067			ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7068			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7069			ac_tree_checking=1 ; ac_valgrind_checking= ;
7070			ac_types_checking=1 ;;
7071	no|none)	ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7072			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7073			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7074			ac_rtlflag_checking= ; ac_runtime_checking= ;
7075			ac_tree_checking= ; ac_valgrind_checking= ;
7076			ac_types_checking= ;;
7077	all)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7078			ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7079			ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7080			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7081			ac_tree_checking=1 ; ac_valgrind_checking= ;
7082			ac_types_checking=1 ;;
7083	release)	ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7084			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7085			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7086			ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7087			ac_tree_checking= ; ac_valgrind_checking= ;
7088			ac_types_checking= ;;
7089	# these enable particular checks
7090	assert) 	ac_assert_checking=1 ;;
7091	df)		ac_df_checking=1 ;;
7092	extra)		ac_extra_checking=1 ;;
7093	fold)		ac_fold_checking=1 ;;
7094	gc)		ac_gc_checking=1 ;;
7095	gcac)		ac_gc_always_collect=1 ;;
7096	gimple)		ac_gimple_checking=1 ;;
7097	misc)		ac_checking=1 ;;
7098	rtl)		ac_rtl_checking=1 ;;
7099	rtlflag)	ac_rtlflag_checking=1 ;;
7100	runtime)	ac_runtime_checking=1 ;;
7101	tree)		ac_tree_checking=1 ;;
7102	types)		ac_types_checking=1 ;;
7103	valgrind)	ac_valgrind_checking=1 ;;
7104	*)	as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7105	esac
7106done
7107IFS="$ac_save_IFS"
7108
7109nocommon_flag=""
7110if test x$ac_checking != x ; then
7111
7112$as_echo "#define CHECKING_P 1" >>confdefs.h
7113
7114  nocommon_flag=-fno-common
7115else
7116  $as_echo "#define CHECKING_P 0" >>confdefs.h
7117
7118fi
7119
7120if test x$ac_extra_checking != x ; then
7121
7122$as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7123
7124else
7125  $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7126
7127fi
7128if test x$ac_df_checking != x ; then
7129
7130$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7131
7132fi
7133if test x$ac_assert_checking != x ; then
7134
7135$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7136
7137fi
7138if test x$ac_gimple_checking != x ; then
7139
7140$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7141
7142fi
7143
7144if test x$ac_runtime_checking != x ; then
7145
7146$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7147
7148fi
7149if test x$ac_tree_checking != x ; then
7150
7151$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7152
7153  TREECHECKING=yes
7154fi
7155if test x$ac_types_checking != x ; then
7156
7157$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7158
7159fi
7160
7161if test x$ac_rtl_checking != x ; then
7162
7163$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7164
7165fi
7166if test x$ac_rtlflag_checking != x ; then
7167
7168$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7169
7170fi
7171if test x$ac_gc_checking != x ; then
7172
7173$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7174
7175fi
7176if test x$ac_gc_always_collect != x ; then
7177
7178$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7179
7180fi
7181if test x$ac_fold_checking != x ; then
7182
7183$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7184
7185fi
7186valgrind_path_defines=
7187valgrind_command=
7188
7189ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7190if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7191  have_valgrind_h=yes
7192else
7193  have_valgrind_h=no
7194fi
7195
7196
7197
7198# It is certainly possible that there's valgrind but no valgrind.h.
7199# GCC relies on making annotations so we must have both.
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7201$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204#include <valgrind/memcheck.h>
7205#ifndef VALGRIND_DISCARD
7206#error VALGRIND_DISCARD not defined
7207#endif
7208_ACEOF
7209if ac_fn_cxx_try_cpp "$LINENO"; then :
7210  gcc_cv_header_valgrind_memcheck_h=yes
7211else
7212  gcc_cv_header_valgrind_memcheck_h=no
7213fi
7214rm -f conftest.err conftest.$ac_ext
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7216$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7218$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h.  */
7221#include <memcheck.h>
7222#ifndef VALGRIND_DISCARD
7223#error VALGRIND_DISCARD not defined
7224#endif
7225_ACEOF
7226if ac_fn_cxx_try_cpp "$LINENO"; then :
7227  gcc_cv_header_memcheck_h=yes
7228else
7229  gcc_cv_header_memcheck_h=no
7230fi
7231rm -f conftest.err conftest.$ac_ext
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7233$as_echo "$gcc_cv_header_memcheck_h" >&6; }
7234if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7235
7236$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7237
7238fi
7239if test $gcc_cv_header_memcheck_h = yes; then
7240
7241$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7242
7243fi
7244
7245if test x$ac_valgrind_checking != x ; then
7246
7247# Prepare PATH_SEPARATOR.
7248# The user is always right.
7249if test "${PATH_SEPARATOR+set}" != set; then
7250  echo "#! /bin/sh" >conf$$.sh
7251  echo  "exit 0"   >>conf$$.sh
7252  chmod +x conf$$.sh
7253  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7254    PATH_SEPARATOR=';'
7255  else
7256    PATH_SEPARATOR=:
7257  fi
7258  rm -f conf$$.sh
7259fi
7260
7261# Find out how to test for executable files. Don't use a zero-byte file,
7262# as systems may use methods other than mode bits to determine executability.
7263cat >conf$$.file <<_ASEOF
7264#! /bin/sh
7265exit 0
7266_ASEOF
7267chmod +x conf$$.file
7268if test -x conf$$.file >/dev/null 2>&1; then
7269  ac_executable_p="test -x"
7270else
7271  ac_executable_p="test -f"
7272fi
7273rm -f conf$$.file
7274
7275# Extract the first word of "valgrind", so it can be a program name with args.
7276set dummy valgrind; ac_word=$2
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278$as_echo_n "checking for $ac_word... " >&6; }
7279if test "${ac_cv_path_valgrind_path+set}" = set; then :
7280  $as_echo_n "(cached) " >&6
7281else
7282  case "$valgrind_path" in
7283  [\\/]* | ?:[\\/]*)
7284    ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7285    ;;
7286  *)
7287    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7288    for ac_dir in $PATH; do
7289      IFS="$ac_save_IFS"
7290      test -z "$ac_dir" && ac_dir=.
7291      for ac_exec_ext in '' $ac_executable_extensions; do
7292        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7293          if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7294            ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7295            break 2
7296          fi
7297        fi
7298      done
7299    done
7300    IFS="$ac_save_IFS"
7301    ;;
7302esac
7303fi
7304valgrind_path="$ac_cv_path_valgrind_path"
7305if test -n "$valgrind_path"; then
7306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7307$as_echo "$valgrind_path" >&6; }
7308else
7309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310$as_echo "no" >&6; }
7311fi
7312
7313  if test "x$valgrind_path" = "x" \
7314    || (test $have_valgrind_h = no \
7315	&& test $gcc_cv_header_memcheck_h = no \
7316	&& test $gcc_cv_header_valgrind_memcheck_h = no); then
7317	as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7318  fi
7319  valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7320  valgrind_command="$valgrind_path -q"
7321
7322$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7323
7324fi
7325
7326
7327
7328# Enable code coverage collection
7329# Check whether --enable-coverage was given.
7330if test "${enable_coverage+set}" = set; then :
7331  enableval=$enable_coverage; case "${enableval}" in
7332  yes|noopt)
7333    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7334    ;;
7335  opt)
7336    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7337    ;;
7338  no)
7339    # a.k.a. --disable-coverage
7340    coverage_flags=""
7341    ;;
7342  *)
7343    as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7344    ;;
7345esac
7346else
7347  coverage_flags=""
7348fi
7349
7350
7351
7352# Check whether --enable-gather-detailed-mem-stats was given.
7353if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7354  enableval=$enable_gather_detailed_mem_stats;
7355else
7356  enable_gather_detailed_mem_stats=no
7357fi
7358
7359gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7360
7361cat >>confdefs.h <<_ACEOF
7362#define GATHER_STATISTICS $gather_stats
7363_ACEOF
7364
7365
7366# Check whether --enable-valgrind-annotations was given.
7367if test "${enable_valgrind_annotations+set}" = set; then :
7368  enableval=$enable_valgrind_annotations;
7369else
7370  enable_valgrind_annotations=no
7371fi
7372
7373if test x$enable_valgrind_annotations != xno \
7374    || test x$ac_valgrind_checking != x; then
7375  if (test $have_valgrind_h = no \
7376      && test $gcc_cv_header_memcheck_h = no \
7377      && test $gcc_cv_header_valgrind_memcheck_h = no); then
7378    as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7379  fi
7380
7381$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7382
7383fi
7384
7385# -------------------------------
7386# Miscenalleous configure options
7387# -------------------------------
7388
7389# With stabs
7390
7391# Check whether --with-stabs was given.
7392if test "${with_stabs+set}" = set; then :
7393  withval=$with_stabs; stabs="$with_stabs"
7394else
7395  stabs=no
7396fi
7397
7398
7399# Determine whether or not multilibs are enabled.
7400# Check whether --enable-multilib was given.
7401if test "${enable_multilib+set}" = set; then :
7402  enableval=$enable_multilib;
7403else
7404  enable_multilib=yes
7405fi
7406
7407
7408
7409# Determine whether or not multiarch is enabled.
7410# Check whether --enable-multiarch was given.
7411if test "${enable_multiarch+set}" = set; then :
7412  enableval=$enable_multiarch; case "${enableval}" in
7413yes|no|auto) enable_multiarch=$enableval;;
7414*) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7415esac
7416else
7417  enable_multiarch=auto
7418fi
7419
7420if test x${enable_multiarch} = xauto; then
7421  if test x${with_native_system_header_dir} != x; then
7422    ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7423    enable_multiarch=no
7424  fi
7425  if test x$host != x$target && test "x$with_sysroot" = x; then
7426    ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7427    enable_multiarch=no
7428  fi
7429fi
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7431$as_echo_n "checking for multiarch configuration... " >&6; }
7432
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7434$as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7435
7436# needed for setting the multiarch name for soft-float/hard-float ABIs
7437
7438
7439
7440# Enable __cxa_atexit for C++.
7441# Check whether --enable-__cxa_atexit was given.
7442if test "${enable___cxa_atexit+set}" = set; then :
7443  enableval=$enable___cxa_atexit;
7444fi
7445
7446
7447# Enable C extension for decimal float if target supports it.
7448
7449# Check whether --enable-decimal-float was given.
7450if test "${enable_decimal_float+set}" = set; then :
7451  enableval=$enable_decimal_float;
7452  case $enable_decimal_float in
7453    yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7454    *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7455Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7456  esac
7457
7458else
7459
7460  case $target in
7461    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7462    i?86*-*-elfiamcu | i?86*-*-gnu* | \
7463    i?86*-*-mingw* | x86_64*-*-mingw* | \
7464    i?86*-*-cygwin* | x86_64*-*-cygwin*)
7465      enable_decimal_float=yes
7466      ;;
7467    *)
7468      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7469$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7470      enable_decimal_float=no
7471      ;;
7472  esac
7473
7474fi
7475
7476
7477# x86's use BID format instead of DPD
7478case x$enable_decimal_float in
7479  xyes)
7480    case $target in
7481      i?86*-*-* | x86_64*-*-*)
7482	enable_decimal_float=bid
7483	;;
7484      *)
7485	enable_decimal_float=dpd
7486	;;
7487    esac
7488    default_decimal_float=$enable_decimal_float
7489    ;;
7490  xno)
7491    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7492    # dependency on libdecnumber.
7493    default_decimal_float=dpd
7494    ;;
7495esac
7496
7497
7498
7499
7500dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7501
7502cat >>confdefs.h <<_ACEOF
7503#define ENABLE_DECIMAL_FLOAT $dfp
7504_ACEOF
7505
7506
7507# Use default_decimal_float for dependency.
7508enable_decimal_float=$default_decimal_float
7509
7510bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7511
7512cat >>confdefs.h <<_ACEOF
7513#define ENABLE_DECIMAL_BID_FORMAT $bid
7514_ACEOF
7515
7516
7517# Enable C extension for fixed-point arithmetic.
7518# Check whether --enable-fixed-point was given.
7519if test "${enable_fixed_point+set}" = set; then :
7520  enableval=$enable_fixed_point;
7521else
7522
7523  case $target in
7524    arm*)
7525      enable_fixed_point=yes
7526      ;;
7527
7528    mips*-*-*)
7529      enable_fixed_point=yes
7530      ;;
7531    *)
7532      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7533$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7534      enable_fixed_point=no
7535      ;;
7536  esac
7537
7538fi
7539
7540
7541
7542fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7543
7544cat >>confdefs.h <<_ACEOF
7545#define ENABLE_FIXED_POINT $fixedpoint
7546_ACEOF
7547
7548
7549# Enable threads
7550# Pass with no value to take the default
7551# Pass with a value to specify a thread package
7552# Check whether --enable-threads was given.
7553if test "${enable_threads+set}" = set; then :
7554  enableval=$enable_threads;
7555else
7556  enable_threads=''
7557fi
7558
7559
7560# Check whether --enable-tls was given.
7561if test "${enable_tls+set}" = set; then :
7562  enableval=$enable_tls;
7563  case $enable_tls in
7564    yes | no) ;;
7565    *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7566Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7567  esac
7568
7569else
7570  enable_tls=''
7571fi
7572
7573
7574# Check whether --enable-vtable-verify was given.
7575if test "${enable_vtable_verify+set}" = set; then :
7576  enableval=$enable_vtable_verify;
7577else
7578  enable_vtable_verify=no
7579fi
7580
7581vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7582
7583cat >>confdefs.h <<_ACEOF
7584#define ENABLE_VTABLE_VERIFY $vtable_verify
7585_ACEOF
7586
7587
7588# Check whether --enable-objc-gc was given.
7589if test "${enable_objc_gc+set}" = set; then :
7590  enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7591	objc_boehm_gc=''
7592else
7593	objc_boehm_gc=1
7594fi
7595else
7596  objc_boehm_gc=''
7597fi
7598
7599
7600
7601# Check whether --with-dwarf2 was given.
7602if test "${with_dwarf2+set}" = set; then :
7603  withval=$with_dwarf2; dwarf2="$with_dwarf2"
7604else
7605  dwarf2=no
7606fi
7607
7608
7609# Check whether --enable-shared was given.
7610if test "${enable_shared+set}" = set; then :
7611  enableval=$enable_shared;
7612  case $enable_shared in
7613  yes | no) ;;
7614  *)
7615    enable_shared=no
7616    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7617    for pkg in $enableval; do
7618      if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7619        enable_shared=yes
7620      fi
7621    done
7622    IFS="$ac_save_ifs"
7623    ;;
7624  esac
7625
7626else
7627  enable_shared=yes
7628fi
7629
7630
7631
7632
7633# Check whether --with-specs was given.
7634if test "${with_specs+set}" = set; then :
7635  withval=$with_specs; CONFIGURE_SPECS=$withval
7636else
7637  CONFIGURE_SPECS=
7638
7639fi
7640
7641
7642
7643
7644
7645# Check whether --with-pkgversion was given.
7646if test "${with_pkgversion+set}" = set; then :
7647  withval=$with_pkgversion; case "$withval" in
7648      yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7649      no)  PKGVERSION= ;;
7650      *)   PKGVERSION="($withval) " ;;
7651     esac
7652else
7653  PKGVERSION="(GCC) "
7654
7655fi
7656
7657
7658
7659
7660
7661# Check whether --with-bugurl was given.
7662if test "${with_bugurl+set}" = set; then :
7663  withval=$with_bugurl; case "$withval" in
7664      yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7665      no)  BUGURL=
7666	   ;;
7667      *)   BUGURL="$withval"
7668	   ;;
7669     esac
7670else
7671  BUGURL="https://gcc.gnu.org/bugs/"
7672
7673fi
7674
7675  case ${BUGURL} in
7676  "")
7677    REPORT_BUGS_TO=
7678    REPORT_BUGS_TEXI=
7679    ;;
7680  *)
7681    REPORT_BUGS_TO="<$BUGURL>"
7682    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7683    ;;
7684  esac;
7685
7686
7687
7688
7689# Sanity check enable_languages in case someone does not run the toplevel
7690# configure # script.
7691# Check whether --enable-languages was given.
7692if test "${enable_languages+set}" = set; then :
7693  enableval=$enable_languages; case ,${enable_languages}, in
7694       ,,|,yes,)
7695		# go safe -- we cannot be much sure without the toplevel
7696		# configure's
7697		# analysis of which target libs are present and usable
7698		enable_languages=c
7699		;;
7700	 *,all,*)
7701		as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7702		;;
7703	*,c,*)
7704		;;
7705        *)
7706		enable_languages=c,${enable_languages}
7707		;;
7708esac
7709else
7710  enable_languages=c
7711fi
7712
7713
7714if test x"$enable_as_accelerator_for" != x; then
7715
7716$as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7717
7718  enable_as_accelerator=yes
7719  case "${target}" in
7720    *-intelmicemul-*)
7721      # In this case we expect offload compiler to be built as native, so we
7722      # need to rename the driver to avoid clashes with host's drivers.
7723      program_transform_name="s&^&${target}-&" ;;
7724  esac
7725  sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7726  program_transform_name=`echo $program_transform_name | sed $sedscript`
7727  accel_dir_suffix=/accel/${target_noncanonical}
7728  real_target_noncanonical=${enable_as_accelerator_for}
7729fi
7730
7731
7732
7733
7734for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7735  tgt=`echo $tgt | sed 's/=.*//'`
7736
7737  if echo "$tgt" | grep "^hsa" > /dev/null ; then
7738    enable_hsa=1
7739  else
7740    enable_offloading=1
7741  fi
7742
7743  if test x"$offload_targets" = x; then
7744    offload_targets=$tgt
7745  else
7746    offload_targets="$offload_targets,$tgt"
7747  fi
7748done
7749
7750cat >>confdefs.h <<_ACEOF
7751#define OFFLOAD_TARGETS "$offload_targets"
7752_ACEOF
7753
7754if test x"$enable_offloading" != x; then
7755
7756$as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7757
7758else
7759
7760$as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7761
7762fi
7763
7764if test x"$enable_hsa" = x1 ; then
7765
7766$as_echo "#define ENABLE_HSA 1" >>confdefs.h
7767
7768fi
7769
7770
7771# Check whether --with-multilib-list was given.
7772if test "${with_multilib_list+set}" = set; then :
7773  withval=$with_multilib_list; :
7774else
7775  with_multilib_list=default
7776fi
7777
7778
7779# -------------------------
7780# Checks for other programs
7781# -------------------------
7782
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7784$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7785set x ${MAKE-make}
7786ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7787if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  cat >conftest.make <<\_ACEOF
7791SHELL = /bin/sh
7792all:
7793	@echo '@@@%%%=$(MAKE)=@@@%%%'
7794_ACEOF
7795# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7796case `${MAKE-make} -f conftest.make 2>/dev/null` in
7797  *@@@%%%=?*=@@@%%%*)
7798    eval ac_cv_prog_make_${ac_make}_set=yes;;
7799  *)
7800    eval ac_cv_prog_make_${ac_make}_set=no;;
7801esac
7802rm -f conftest.make
7803fi
7804if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7806$as_echo "yes" >&6; }
7807  SET_MAKE=
7808else
7809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810$as_echo "no" >&6; }
7811  SET_MAKE="MAKE=${MAKE-make}"
7812fi
7813
7814
7815# Find some useful tools
7816for ac_prog in gawk mawk nawk awk
7817do
7818  # Extract the first word of "$ac_prog", so it can be a program name with args.
7819set dummy $ac_prog; ac_word=$2
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821$as_echo_n "checking for $ac_word... " >&6; }
7822if test "${ac_cv_prog_AWK+set}" = set; then :
7823  $as_echo_n "(cached) " >&6
7824else
7825  if test -n "$AWK"; then
7826  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7827else
7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in $PATH
7830do
7831  IFS=$as_save_IFS
7832  test -z "$as_dir" && as_dir=.
7833    for ac_exec_ext in '' $ac_executable_extensions; do
7834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7835    ac_cv_prog_AWK="$ac_prog"
7836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837    break 2
7838  fi
7839done
7840  done
7841IFS=$as_save_IFS
7842
7843fi
7844fi
7845AWK=$ac_cv_prog_AWK
7846if test -n "$AWK"; then
7847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7848$as_echo "$AWK" >&6; }
7849else
7850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851$as_echo "no" >&6; }
7852fi
7853
7854
7855  test -n "$AWK" && break
7856done
7857
7858# We need awk to create options.c and options.h.
7859# Bail out if it's missing.
7860case ${AWK} in
7861  "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7862esac
7863
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7865$as_echo_n "checking whether ln -s works... " >&6; }
7866if test "${gcc_cv_prog_LN_S+set}" = set; then :
7867  $as_echo_n "(cached) " >&6
7868else
7869  rm -f conftestdata_t
7870echo >conftestdata_f
7871if ln -s conftestdata_f conftestdata_t 2>/dev/null
7872then
7873  gcc_cv_prog_LN_S="ln -s"
7874else
7875  if ln conftestdata_f conftestdata_t 2>/dev/null
7876  then
7877    gcc_cv_prog_LN_S=ln
7878  else
7879    if cp -p conftestdata_f conftestdata_t 2>/dev/null
7880    then
7881      gcc_cv_prog_LN_S="cp -p"
7882    else
7883      gcc_cv_prog_LN_S=cp
7884    fi
7885  fi
7886fi
7887rm -f conftestdata_f conftestdata_t
7888
7889fi
7890LN_S="$gcc_cv_prog_LN_S"
7891if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7893$as_echo "yes" >&6; }
7894else
7895  if test "$gcc_cv_prog_LN_S" = "ln"; then
7896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7897$as_echo "no, using ln" >&6; }
7898  else
7899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7900$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7901  fi
7902fi
7903
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7905$as_echo_n "checking whether ln works... " >&6; }
7906if test "${acx_cv_prog_LN+set}" = set; then :
7907  $as_echo_n "(cached) " >&6
7908else
7909  rm -f conftestdata_t
7910echo >conftestdata_f
7911if ln conftestdata_f conftestdata_t 2>/dev/null
7912then
7913  acx_cv_prog_LN=ln
7914else
7915  acx_cv_prog_LN=no
7916fi
7917rm -f conftestdata_f conftestdata_t
7918
7919fi
7920if test $acx_cv_prog_LN = no; then
7921  LN="$LN_S"
7922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7923$as_echo "no, using $LN" >&6; }
7924else
7925  LN="$acx_cv_prog_LN"
7926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7927$as_echo "yes" >&6; }
7928fi
7929
7930if test -n "$ac_tool_prefix"; then
7931  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7932set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934$as_echo_n "checking for $ac_word... " >&6; }
7935if test "${ac_cv_prog_RANLIB+set}" = set; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938  if test -n "$RANLIB"; then
7939  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7940else
7941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942for as_dir in $PATH
7943do
7944  IFS=$as_save_IFS
7945  test -z "$as_dir" && as_dir=.
7946    for ac_exec_ext in '' $ac_executable_extensions; do
7947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950    break 2
7951  fi
7952done
7953  done
7954IFS=$as_save_IFS
7955
7956fi
7957fi
7958RANLIB=$ac_cv_prog_RANLIB
7959if test -n "$RANLIB"; then
7960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7961$as_echo "$RANLIB" >&6; }
7962else
7963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964$as_echo "no" >&6; }
7965fi
7966
7967
7968fi
7969if test -z "$ac_cv_prog_RANLIB"; then
7970  ac_ct_RANLIB=$RANLIB
7971  # Extract the first word of "ranlib", so it can be a program name with args.
7972set dummy ranlib; ac_word=$2
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974$as_echo_n "checking for $ac_word... " >&6; }
7975if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7976  $as_echo_n "(cached) " >&6
7977else
7978  if test -n "$ac_ct_RANLIB"; then
7979  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7980else
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984  IFS=$as_save_IFS
7985  test -z "$as_dir" && as_dir=.
7986    for ac_exec_ext in '' $ac_executable_extensions; do
7987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7988    ac_cv_prog_ac_ct_RANLIB="ranlib"
7989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990    break 2
7991  fi
7992done
7993  done
7994IFS=$as_save_IFS
7995
7996fi
7997fi
7998ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7999if test -n "$ac_ct_RANLIB"; then
8000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8001$as_echo "$ac_ct_RANLIB" >&6; }
8002else
8003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004$as_echo "no" >&6; }
8005fi
8006
8007  if test "x$ac_ct_RANLIB" = x; then
8008    RANLIB=":"
8009  else
8010    case $cross_compiling:$ac_tool_warned in
8011yes:)
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8014ac_tool_warned=yes ;;
8015esac
8016    RANLIB=$ac_ct_RANLIB
8017  fi
8018else
8019  RANLIB="$ac_cv_prog_RANLIB"
8020fi
8021
8022ranlib_flags=""
8023
8024
8025# Find a good install program.  We prefer a C program (faster),
8026# so one script is as good as another.  But avoid the broken or
8027# incompatible versions:
8028# SysV /etc/install, /usr/sbin/install
8029# SunOS /usr/etc/install
8030# IRIX /sbin/install
8031# AIX /bin/install
8032# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8033# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8034# ./install, which can be erroneously created by make from ./install.sh.
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8036$as_echo_n "checking for a BSD compatible install... " >&6; }
8037if test -z "$INSTALL"; then
8038if test "${ac_cv_path_install+set}" = set; then :
8039  $as_echo_n "(cached) " >&6
8040else
8041    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8042  for ac_dir in $PATH; do
8043    # Account for people who put trailing slashes in PATH elements.
8044    case "$ac_dir/" in
8045    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8046    *)
8047      # OSF1 and SCO ODT 3.0 have their own names for install.
8048      for ac_prog in ginstall scoinst install; do
8049        if test -f $ac_dir/$ac_prog; then
8050	  if test $ac_prog = install &&
8051            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8052	    # AIX install.  It has an incompatible calling convention.
8053	    # OSF/1 installbsd also uses dspmsg, but is usable.
8054	    :
8055	  else
8056	    ac_cv_path_install="$ac_dir/$ac_prog -c"
8057	    break 2
8058	  fi
8059	fi
8060      done
8061      ;;
8062    esac
8063  done
8064  IFS="$ac_save_IFS"
8065
8066fi
8067  if test "${ac_cv_path_install+set}" = set; then
8068    INSTALL="$ac_cv_path_install"
8069  else
8070    # As a last resort, use the slow shell script.  We don't cache a
8071    # path for INSTALL within a source directory, because that will
8072    # break other packages using the cache if that directory is
8073    # removed, or if the path is relative.
8074    INSTALL="$ac_install_sh"
8075  fi
8076fi
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8078$as_echo "$INSTALL" >&6; }
8079
8080# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8081# It thinks the first close brace ends the variable substitution.
8082test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8083
8084test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8085
8086
8087# See if cmp has --ignore-initial.
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8089$as_echo_n "checking for cmp's capabilities... " >&6; }
8090if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8091  $as_echo_n "(cached) " >&6
8092else
8093   echo abfoo >t1
8094  echo cdfoo >t2
8095  gcc_cv_prog_cmp_skip=slowcompare
8096  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8097    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8098      :
8099    else
8100      gcc_cv_prog_cmp_skip=gnucompare
8101    fi
8102  fi
8103  if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8104    if cmp t1 t2 2 2 > /dev/null 2>&1; then
8105      if cmp t1 t2 1 1 > /dev/null 2>&1; then
8106        :
8107      else
8108        gcc_cv_prog_cmp_skip=fastcompare
8109      fi
8110    fi
8111  fi
8112  rm t1 t2
8113
8114fi
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8116$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8117make_compare_target=$gcc_cv_prog_cmp_skip
8118
8119
8120
8121# See if we have the mktemp command.
8122# Extract the first word of "mktemp", so it can be a program name with args.
8123set dummy mktemp; ac_word=$2
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125$as_echo_n "checking for $ac_word... " >&6; }
8126if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8127  $as_echo_n "(cached) " >&6
8128else
8129  if test -n "$have_mktemp_command"; then
8130  ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8131else
8132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133for as_dir in $PATH
8134do
8135  IFS=$as_save_IFS
8136  test -z "$as_dir" && as_dir=.
8137    for ac_exec_ext in '' $ac_executable_extensions; do
8138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139    ac_cv_prog_have_mktemp_command="yes"
8140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141    break 2
8142  fi
8143done
8144  done
8145IFS=$as_save_IFS
8146
8147  test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8148fi
8149fi
8150have_mktemp_command=$ac_cv_prog_have_mktemp_command
8151if test -n "$have_mktemp_command"; then
8152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8153$as_echo "$have_mktemp_command" >&6; }
8154else
8155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156$as_echo "no" >&6; }
8157fi
8158
8159
8160
8161# See if makeinfo has been installed and is modern enough
8162# that we can use it.
8163
8164  # Extract the first word of "makeinfo", so it can be a program name with args.
8165set dummy makeinfo; ac_word=$2
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167$as_echo_n "checking for $ac_word... " >&6; }
8168if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  if test -n "$MAKEINFO"; then
8172  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8173else
8174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175for as_dir in $PATH
8176do
8177  IFS=$as_save_IFS
8178  test -z "$as_dir" && as_dir=.
8179    for ac_exec_ext in '' $ac_executable_extensions; do
8180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181    ac_cv_prog_MAKEINFO="makeinfo"
8182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183    break 2
8184  fi
8185done
8186  done
8187IFS=$as_save_IFS
8188
8189fi
8190fi
8191MAKEINFO=$ac_cv_prog_MAKEINFO
8192if test -n "$MAKEINFO"; then
8193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8194$as_echo "$MAKEINFO" >&6; }
8195else
8196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197$as_echo "no" >&6; }
8198fi
8199
8200
8201  if test -n "$MAKEINFO"; then
8202    # Found it, now check the version.
8203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8204$as_echo_n "checking for modern makeinfo... " >&6; }
8205if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8206  $as_echo_n "(cached) " >&6
8207else
8208  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8209                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8210
8211                    case $ac_prog_version in
8212                      '')  gcc_cv_prog_makeinfo_modern=no;;
8213                      4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8214                      *)   gcc_cv_prog_makeinfo_modern=no;;
8215                    esac
8216
8217fi
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8219$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8220  else
8221    gcc_cv_prog_makeinfo_modern=no
8222  fi
8223  if test $gcc_cv_prog_makeinfo_modern = no; then
8224    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8225  fi
8226
8227if test $gcc_cv_prog_makeinfo_modern = no; then
8228  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8229*** Makeinfo is missing or too old.
8230*** Info documentation will not be built." >&5
8231$as_echo "$as_me: WARNING:
8232*** Makeinfo is missing or too old.
8233*** Info documentation will not be built." >&2;}
8234  BUILD_INFO=
8235else
8236  BUILD_INFO=info
8237fi
8238
8239
8240# Is pod2man recent enough to regenerate manpages?
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8242$as_echo_n "checking for recent Pod::Man... " >&6; }
8243if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8245$as_echo "yes" >&6; }
8246  GENERATED_MANPAGES=generated-manpages
8247else
8248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249$as_echo "no" >&6; }
8250  GENERATED_MANPAGES=
8251fi
8252
8253
8254MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8255
8256# How about lex?
8257for ac_prog in flex
8258do
8259  # Extract the first word of "$ac_prog", so it can be a program name with args.
8260set dummy $ac_prog; ac_word=$2
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262$as_echo_n "checking for $ac_word... " >&6; }
8263if test "${ac_cv_prog_FLEX+set}" = set; then :
8264  $as_echo_n "(cached) " >&6
8265else
8266  if test -n "$FLEX"; then
8267  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8268else
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272  IFS=$as_save_IFS
8273  test -z "$as_dir" && as_dir=.
8274    for ac_exec_ext in '' $ac_executable_extensions; do
8275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8276    ac_cv_prog_FLEX="$ac_prog"
8277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278    break 2
8279  fi
8280done
8281  done
8282IFS=$as_save_IFS
8283
8284fi
8285fi
8286FLEX=$ac_cv_prog_FLEX
8287if test -n "$FLEX"; then
8288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8289$as_echo "$FLEX" >&6; }
8290else
8291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292$as_echo "no" >&6; }
8293fi
8294
8295
8296  test -n "$FLEX" && break
8297done
8298test -n "$FLEX" || FLEX="$MISSING flex"
8299
8300
8301# Bison?
8302for ac_prog in bison
8303do
8304  # Extract the first word of "$ac_prog", so it can be a program name with args.
8305set dummy $ac_prog; ac_word=$2
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307$as_echo_n "checking for $ac_word... " >&6; }
8308if test "${ac_cv_prog_BISON+set}" = set; then :
8309  $as_echo_n "(cached) " >&6
8310else
8311  if test -n "$BISON"; then
8312  ac_cv_prog_BISON="$BISON" # Let the user override the test.
8313else
8314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315for as_dir in $PATH
8316do
8317  IFS=$as_save_IFS
8318  test -z "$as_dir" && as_dir=.
8319    for ac_exec_ext in '' $ac_executable_extensions; do
8320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8321    ac_cv_prog_BISON="$ac_prog"
8322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323    break 2
8324  fi
8325done
8326  done
8327IFS=$as_save_IFS
8328
8329fi
8330fi
8331BISON=$ac_cv_prog_BISON
8332if test -n "$BISON"; then
8333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8334$as_echo "$BISON" >&6; }
8335else
8336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337$as_echo "no" >&6; }
8338fi
8339
8340
8341  test -n "$BISON" && break
8342done
8343test -n "$BISON" || BISON="$MISSING bison"
8344
8345
8346# Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8347# check for build == host before using them.
8348
8349# NM
8350if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8351  && test -d ../binutils ; then
8352  NM='${objdir}/../binutils/nm-new'
8353else
8354  # Extract the first word of "nm", so it can be a program name with args.
8355set dummy nm; ac_word=$2
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357$as_echo_n "checking for $ac_word... " >&6; }
8358if test "${ac_cv_prog_NM+set}" = set; then :
8359  $as_echo_n "(cached) " >&6
8360else
8361  if test -n "$NM"; then
8362  ac_cv_prog_NM="$NM" # Let the user override the test.
8363else
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367  IFS=$as_save_IFS
8368  test -z "$as_dir" && as_dir=.
8369    for ac_exec_ext in '' $ac_executable_extensions; do
8370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371    ac_cv_prog_NM="nm"
8372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373    break 2
8374  fi
8375done
8376  done
8377IFS=$as_save_IFS
8378
8379  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8380fi
8381fi
8382NM=$ac_cv_prog_NM
8383if test -n "$NM"; then
8384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8385$as_echo "$NM" >&6; }
8386else
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
8389fi
8390
8391
8392fi
8393
8394# AR
8395if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8396  && test -d ../binutils ; then
8397  AR='${objdir}/../binutils/ar'
8398else
8399  # Extract the first word of "ar", so it can be a program name with args.
8400set dummy ar; ac_word=$2
8401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402$as_echo_n "checking for $ac_word... " >&6; }
8403if test "${ac_cv_prog_AR+set}" = set; then :
8404  $as_echo_n "(cached) " >&6
8405else
8406  if test -n "$AR"; then
8407  ac_cv_prog_AR="$AR" # Let the user override the test.
8408else
8409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410for as_dir in $PATH
8411do
8412  IFS=$as_save_IFS
8413  test -z "$as_dir" && as_dir=.
8414    for ac_exec_ext in '' $ac_executable_extensions; do
8415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8416    ac_cv_prog_AR="ar"
8417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418    break 2
8419  fi
8420done
8421  done
8422IFS=$as_save_IFS
8423
8424  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8425fi
8426fi
8427AR=$ac_cv_prog_AR
8428if test -n "$AR"; then
8429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8430$as_echo "$AR" >&6; }
8431else
8432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433$as_echo "no" >&6; }
8434fi
8435
8436
8437fi
8438
8439# The jit documentation looks better if built with sphinx, but can be
8440# built with texinfo if sphinx is not available.
8441# Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8442# Extract the first word of "sphinx-build", so it can be a program name with args.
8443set dummy sphinx-build; ac_word=$2
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445$as_echo_n "checking for $ac_word... " >&6; }
8446if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8447  $as_echo_n "(cached) " >&6
8448else
8449  if test -n "$doc_build_sys"; then
8450  ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8451else
8452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453for as_dir in $PATH
8454do
8455  IFS=$as_save_IFS
8456  test -z "$as_dir" && as_dir=.
8457    for ac_exec_ext in '' $ac_executable_extensions; do
8458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8459    ac_cv_prog_doc_build_sys="sphinx"
8460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8461    break 2
8462  fi
8463done
8464  done
8465IFS=$as_save_IFS
8466
8467  test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8468fi
8469fi
8470doc_build_sys=$ac_cv_prog_doc_build_sys
8471if test -n "$doc_build_sys"; then
8472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8473$as_echo "$doc_build_sys" >&6; }
8474else
8475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476$as_echo "no" >&6; }
8477fi
8478
8479
8480
8481# --------------------
8482# Checks for C headers
8483# --------------------
8484
8485# Need to reject headers which give warnings, so that the -Werror bootstrap
8486# works later. *sigh*  This needs to come before all header checks.
8487
8488ac_c_preproc_warn_flag=yes
8489
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8491$as_echo_n "checking for ANSI C header files... " >&6; }
8492if test "${ac_cv_header_stdc+set}" = set; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496/* end confdefs.h.  */
8497#include <stdlib.h>
8498#include <stdarg.h>
8499#include <string.h>
8500#include <float.h>
8501
8502int
8503main ()
8504{
8505
8506  ;
8507  return 0;
8508}
8509_ACEOF
8510if ac_fn_cxx_try_compile "$LINENO"; then :
8511  ac_cv_header_stdc=yes
8512else
8513  ac_cv_header_stdc=no
8514fi
8515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516
8517if test $ac_cv_header_stdc = yes; then
8518  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520/* end confdefs.h.  */
8521#include <string.h>
8522
8523_ACEOF
8524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8525  $EGREP "memchr" >/dev/null 2>&1; then :
8526
8527else
8528  ac_cv_header_stdc=no
8529fi
8530rm -f conftest*
8531
8532fi
8533
8534if test $ac_cv_header_stdc = yes; then
8535  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537/* end confdefs.h.  */
8538#include <stdlib.h>
8539
8540_ACEOF
8541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8542  $EGREP "free" >/dev/null 2>&1; then :
8543
8544else
8545  ac_cv_header_stdc=no
8546fi
8547rm -f conftest*
8548
8549fi
8550
8551if test $ac_cv_header_stdc = yes; then
8552  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8553  if test "$cross_compiling" = yes; then :
8554  :
8555else
8556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557/* end confdefs.h.  */
8558#include <ctype.h>
8559#include <stdlib.h>
8560#if ((' ' & 0x0FF) == 0x020)
8561# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8562# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8563#else
8564# define ISLOWER(c) \
8565		   (('a' <= (c) && (c) <= 'i') \
8566		     || ('j' <= (c) && (c) <= 'r') \
8567		     || ('s' <= (c) && (c) <= 'z'))
8568# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8569#endif
8570
8571#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8572int
8573main ()
8574{
8575  int i;
8576  for (i = 0; i < 256; i++)
8577    if (XOR (islower (i), ISLOWER (i))
8578	|| toupper (i) != TOUPPER (i))
8579      return 2;
8580  return 0;
8581}
8582_ACEOF
8583if ac_fn_cxx_try_run "$LINENO"; then :
8584
8585else
8586  ac_cv_header_stdc=no
8587fi
8588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8589  conftest.$ac_objext conftest.beam conftest.$ac_ext
8590fi
8591
8592fi
8593fi
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8595$as_echo "$ac_cv_header_stdc" >&6; }
8596if test $ac_cv_header_stdc = yes; then
8597
8598$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8599
8600fi
8601
8602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8603$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8604if test "${ac_cv_header_time+set}" = set; then :
8605  $as_echo_n "(cached) " >&6
8606else
8607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608/* end confdefs.h.  */
8609#include <sys/types.h>
8610#include <sys/time.h>
8611#include <time.h>
8612
8613int
8614main ()
8615{
8616if ((struct tm *) 0)
8617return 0;
8618  ;
8619  return 0;
8620}
8621_ACEOF
8622if ac_fn_cxx_try_compile "$LINENO"; then :
8623  ac_cv_header_time=yes
8624else
8625  ac_cv_header_time=no
8626fi
8627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628fi
8629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8630$as_echo "$ac_cv_header_time" >&6; }
8631if test $ac_cv_header_time = yes; then
8632
8633$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8634
8635fi
8636
8637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8638$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8639if test "${gcc_cv_header_string+set}" = set; then :
8640  $as_echo_n "(cached) " >&6
8641else
8642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643/* end confdefs.h.  */
8644#include <string.h>
8645#include <strings.h>
8646int
8647main ()
8648{
8649
8650  ;
8651  return 0;
8652}
8653_ACEOF
8654if ac_fn_cxx_try_compile "$LINENO"; then :
8655  gcc_cv_header_string=yes
8656else
8657  gcc_cv_header_string=no
8658fi
8659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660fi
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8662$as_echo "$gcc_cv_header_string" >&6; }
8663if test $gcc_cv_header_string = yes; then
8664
8665$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8666
8667fi
8668
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8670$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8671if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8672  $as_echo_n "(cached) " >&6
8673else
8674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675/* end confdefs.h.  */
8676#include <sys/types.h>
8677#include <sys/wait.h>
8678#ifndef WEXITSTATUS
8679# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8680#endif
8681#ifndef WIFEXITED
8682# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8683#endif
8684
8685int
8686main ()
8687{
8688  int s;
8689  wait (&s);
8690  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8691  ;
8692  return 0;
8693}
8694_ACEOF
8695if ac_fn_cxx_try_compile "$LINENO"; then :
8696  ac_cv_header_sys_wait_h=yes
8697else
8698  ac_cv_header_sys_wait_h=no
8699fi
8700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8701fi
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8703$as_echo "$ac_cv_header_sys_wait_h" >&6; }
8704if test $ac_cv_header_sys_wait_h = yes; then
8705
8706$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8707
8708fi
8709
8710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8711$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8712if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8713  $as_echo_n "(cached) " >&6
8714else
8715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716/* end confdefs.h.  */
8717#include <sys/types.h>
8718#include <termios.h>
8719#ifdef TIOCGWINSZ
8720  yes
8721#endif
8722
8723_ACEOF
8724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8725  $EGREP "yes" >/dev/null 2>&1; then :
8726  ac_cv_sys_tiocgwinsz_in_termios_h=yes
8727else
8728  ac_cv_sys_tiocgwinsz_in_termios_h=no
8729fi
8730rm -f conftest*
8731
8732fi
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8734$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8735
8736if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8738$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8739if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8740  $as_echo_n "(cached) " >&6
8741else
8742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743/* end confdefs.h.  */
8744#include <sys/types.h>
8745#include <sys/ioctl.h>
8746#ifdef TIOCGWINSZ
8747  yes
8748#endif
8749
8750_ACEOF
8751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8752  $EGREP "yes" >/dev/null 2>&1; then :
8753  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8754else
8755  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8756fi
8757rm -f conftest*
8758
8759fi
8760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8761$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8762
8763  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8764
8765$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8766
8767  fi
8768fi
8769
8770for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8771		 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8772		 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8773		 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8774do :
8775  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8776ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8777eval as_val=\$$as_ac_Header
8778   if test "x$as_val" = x""yes; then :
8779  cat >>confdefs.h <<_ACEOF
8780#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8781_ACEOF
8782
8783fi
8784done
8785
8786
8787# Check for thread headers.
8788ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8789if test "x$ac_cv_header_thread_h" = x""yes; then :
8790  have_thread_h=yes
8791else
8792  have_thread_h=
8793fi
8794
8795ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8796if test "x$ac_cv_header_pthread_h" = x""yes; then :
8797  have_pthread_h=yes
8798else
8799  have_pthread_h=
8800fi
8801
8802
8803# These tests can't be done till we know if we have limits.h.
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8805$as_echo_n "checking for CHAR_BIT... " >&6; }
8806if test "${gcc_cv_decl_char_bit+set}" = set; then :
8807  $as_echo_n "(cached) " >&6
8808else
8809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810/* end confdefs.h.  */
8811#ifdef HAVE_LIMITS_H
8812#include <limits.h>
8813#endif
8814#ifdef CHAR_BIT
8815found
8816#endif
8817_ACEOF
8818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8819  $EGREP "found" >/dev/null 2>&1; then :
8820  gcc_cv_decl_char_bit=yes
8821else
8822  gcc_cv_decl_char_bit=no
8823fi
8824rm -f conftest*
8825
8826
8827fi
8828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8829$as_echo "$gcc_cv_decl_char_bit" >&6; }
8830if test $gcc_cv_decl_char_bit = no; then
8831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8832$as_echo_n "checking number of bits in a byte... " >&6; }
8833if test "${gcc_cv_c_nbby+set}" = set; then :
8834  $as_echo_n "(cached) " >&6
8835else
8836  i=8
8837 gcc_cv_c_nbby=
8838 while test $i -lt 65; do
8839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840/* end confdefs.h.  */
8841
8842int
8843main ()
8844{
8845switch(0) {
8846  case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8847  case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8848  ; }
8849  ;
8850  return 0;
8851}
8852_ACEOF
8853if ac_fn_cxx_try_compile "$LINENO"; then :
8854  gcc_cv_c_nbby=$i; break
8855fi
8856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857   i=`expr $i + 1`
8858 done
8859 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8860
8861fi
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8863$as_echo "$gcc_cv_c_nbby" >&6; }
8864if test $gcc_cv_c_nbby = failed; then
8865  as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8866else
8867
8868cat >>confdefs.h <<_ACEOF
8869#define CHAR_BIT $gcc_cv_c_nbby
8870_ACEOF
8871
8872fi
8873fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8875$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8876if test "${ac_cv_c_bigendian+set}" = set; then :
8877  $as_echo_n "(cached) " >&6
8878else
8879  ac_cv_c_bigendian=unknown
8880    # See if we're dealing with a universal compiler.
8881    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882/* end confdefs.h.  */
8883#ifndef __APPLE_CC__
8884	       not a universal capable compiler
8885	     #endif
8886	     typedef int dummy;
8887
8888_ACEOF
8889if ac_fn_cxx_try_compile "$LINENO"; then :
8890
8891	# Check for potential -arch flags.  It is not universal unless
8892	# there are at least two -arch flags with different values.
8893	ac_arch=
8894	ac_prev=
8895	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8896	 if test -n "$ac_prev"; then
8897	   case $ac_word in
8898	     i?86 | x86_64 | ppc | ppc64)
8899	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8900		 ac_arch=$ac_word
8901	       else
8902		 ac_cv_c_bigendian=universal
8903		 break
8904	       fi
8905	       ;;
8906	   esac
8907	   ac_prev=
8908	 elif test "x$ac_word" = "x-arch"; then
8909	   ac_prev=arch
8910	 fi
8911       done
8912fi
8913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914    if test $ac_cv_c_bigendian = unknown; then
8915      # See if sys/param.h defines the BYTE_ORDER macro.
8916      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917/* end confdefs.h.  */
8918#include <sys/types.h>
8919	     #include <sys/param.h>
8920
8921int
8922main ()
8923{
8924#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8925		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8926		     && LITTLE_ENDIAN)
8927	      bogus endian macros
8928	     #endif
8929
8930  ;
8931  return 0;
8932}
8933_ACEOF
8934if ac_fn_cxx_try_compile "$LINENO"; then :
8935  # It does; now see whether it defined to BIG_ENDIAN or not.
8936	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937/* end confdefs.h.  */
8938#include <sys/types.h>
8939		#include <sys/param.h>
8940
8941int
8942main ()
8943{
8944#if BYTE_ORDER != BIG_ENDIAN
8945		 not big endian
8946		#endif
8947
8948  ;
8949  return 0;
8950}
8951_ACEOF
8952if ac_fn_cxx_try_compile "$LINENO"; then :
8953  ac_cv_c_bigendian=yes
8954else
8955  ac_cv_c_bigendian=no
8956fi
8957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958fi
8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960    fi
8961    if test $ac_cv_c_bigendian = unknown; then
8962      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8963      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964/* end confdefs.h.  */
8965#include <limits.h>
8966
8967int
8968main ()
8969{
8970#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8971	      bogus endian macros
8972	     #endif
8973
8974  ;
8975  return 0;
8976}
8977_ACEOF
8978if ac_fn_cxx_try_compile "$LINENO"; then :
8979  # It does; now see whether it defined to _BIG_ENDIAN or not.
8980	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981/* end confdefs.h.  */
8982#include <limits.h>
8983
8984int
8985main ()
8986{
8987#ifndef _BIG_ENDIAN
8988		 not big endian
8989		#endif
8990
8991  ;
8992  return 0;
8993}
8994_ACEOF
8995if ac_fn_cxx_try_compile "$LINENO"; then :
8996  ac_cv_c_bigendian=yes
8997else
8998  ac_cv_c_bigendian=no
8999fi
9000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001fi
9002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003    fi
9004    if test $ac_cv_c_bigendian = unknown; then
9005      # Compile a test program.
9006      if test "$cross_compiling" = yes; then :
9007  # Try to guess by grepping values from an object file.
9008	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009/* end confdefs.h.  */
9010short int ascii_mm[] =
9011		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9012		short int ascii_ii[] =
9013		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9014		int use_ascii (int i) {
9015		  return ascii_mm[i] + ascii_ii[i];
9016		}
9017		short int ebcdic_ii[] =
9018		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9019		short int ebcdic_mm[] =
9020		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9021		int use_ebcdic (int i) {
9022		  return ebcdic_mm[i] + ebcdic_ii[i];
9023		}
9024		extern int foo;
9025
9026int
9027main ()
9028{
9029return use_ascii (foo) == use_ebcdic (foo);
9030  ;
9031  return 0;
9032}
9033_ACEOF
9034if ac_fn_cxx_try_compile "$LINENO"; then :
9035  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9036	      ac_cv_c_bigendian=yes
9037	    fi
9038	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9039	      if test "$ac_cv_c_bigendian" = unknown; then
9040		ac_cv_c_bigendian=no
9041	      else
9042		# finding both strings is unlikely to happen, but who knows?
9043		ac_cv_c_bigendian=unknown
9044	      fi
9045	    fi
9046fi
9047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048else
9049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050/* end confdefs.h.  */
9051$ac_includes_default
9052int
9053main ()
9054{
9055
9056	     /* Are we little or big endian?  From Harbison&Steele.  */
9057	     union
9058	     {
9059	       long int l;
9060	       char c[sizeof (long int)];
9061	     } u;
9062	     u.l = 1;
9063	     return u.c[sizeof (long int) - 1] == 1;
9064
9065  ;
9066  return 0;
9067}
9068_ACEOF
9069if ac_fn_cxx_try_run "$LINENO"; then :
9070  ac_cv_c_bigendian=no
9071else
9072  ac_cv_c_bigendian=yes
9073fi
9074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9075  conftest.$ac_objext conftest.beam conftest.$ac_ext
9076fi
9077
9078    fi
9079fi
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9081$as_echo "$ac_cv_c_bigendian" >&6; }
9082 case $ac_cv_c_bigendian in #(
9083   yes)
9084     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9085;; #(
9086   no)
9087      ;; #(
9088   universal)
9089
9090$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9091
9092     ;; #(
9093   *)
9094     as_fn_error "unknown endianness
9095 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9096 esac
9097
9098
9099# ----------------------
9100# Checks for C++ headers
9101# ----------------------
9102
9103ac_ext=cpp
9104ac_cpp='$CXXCPP $CPPFLAGS'
9105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9109$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9110if test -z "$CXXCPP"; then
9111  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9112  $as_echo_n "(cached) " >&6
9113else
9114      # Double quotes because CXXCPP needs to be expanded
9115    for CXXCPP in "$CXX -E" "/lib/cpp"
9116    do
9117      ac_preproc_ok=false
9118for ac_cxx_preproc_warn_flag in '' yes
9119do
9120  # Use a header file that comes with gcc, so configuring glibc
9121  # with a fresh cross-compiler works.
9122  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9123  # <limits.h> exists even on freestanding compilers.
9124  # On the NeXT, cc -E runs the code through the compiler's parser,
9125  # not just through cpp. "Syntax error" is here to catch this case.
9126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127/* end confdefs.h.  */
9128#ifdef __STDC__
9129# include <limits.h>
9130#else
9131# include <assert.h>
9132#endif
9133		     Syntax error
9134_ACEOF
9135if ac_fn_cxx_try_cpp "$LINENO"; then :
9136
9137else
9138  # Broken: fails on valid input.
9139continue
9140fi
9141rm -f conftest.err conftest.$ac_ext
9142
9143  # OK, works on sane cases.  Now check whether nonexistent headers
9144  # can be detected and how.
9145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146/* end confdefs.h.  */
9147#include <ac_nonexistent.h>
9148_ACEOF
9149if ac_fn_cxx_try_cpp "$LINENO"; then :
9150  # Broken: success on invalid input.
9151continue
9152else
9153  # Passes both tests.
9154ac_preproc_ok=:
9155break
9156fi
9157rm -f conftest.err conftest.$ac_ext
9158
9159done
9160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9161rm -f conftest.err conftest.$ac_ext
9162if $ac_preproc_ok; then :
9163  break
9164fi
9165
9166    done
9167    ac_cv_prog_CXXCPP=$CXXCPP
9168
9169fi
9170  CXXCPP=$ac_cv_prog_CXXCPP
9171else
9172  ac_cv_prog_CXXCPP=$CXXCPP
9173fi
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9175$as_echo "$CXXCPP" >&6; }
9176ac_preproc_ok=false
9177for ac_cxx_preproc_warn_flag in '' yes
9178do
9179  # Use a header file that comes with gcc, so configuring glibc
9180  # with a fresh cross-compiler works.
9181  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9182  # <limits.h> exists even on freestanding compilers.
9183  # On the NeXT, cc -E runs the code through the compiler's parser,
9184  # not just through cpp. "Syntax error" is here to catch this case.
9185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186/* end confdefs.h.  */
9187#ifdef __STDC__
9188# include <limits.h>
9189#else
9190# include <assert.h>
9191#endif
9192		     Syntax error
9193_ACEOF
9194if ac_fn_cxx_try_cpp "$LINENO"; then :
9195
9196else
9197  # Broken: fails on valid input.
9198continue
9199fi
9200rm -f conftest.err conftest.$ac_ext
9201
9202  # OK, works on sane cases.  Now check whether nonexistent headers
9203  # can be detected and how.
9204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h.  */
9206#include <ac_nonexistent.h>
9207_ACEOF
9208if ac_fn_cxx_try_cpp "$LINENO"; then :
9209  # Broken: success on invalid input.
9210continue
9211else
9212  # Passes both tests.
9213ac_preproc_ok=:
9214break
9215fi
9216rm -f conftest.err conftest.$ac_ext
9217
9218done
9219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9220rm -f conftest.err conftest.$ac_ext
9221if $ac_preproc_ok; then :
9222
9223else
9224  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9227See \`config.log' for more details." >&5
9228$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9229See \`config.log' for more details." >&2;}; }
9230fi
9231
9232ac_ext=cpp
9233ac_cpp='$CXXCPP $CPPFLAGS'
9234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9237
9238
9239for ac_header in unordered_map
9240do :
9241  ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9242if test "x$ac_cv_header_unordered_map" = x""yes; then :
9243  cat >>confdefs.h <<_ACEOF
9244#define HAVE_UNORDERED_MAP 1
9245_ACEOF
9246
9247fi
9248done
9249
9250for ac_header in tr1/unordered_map
9251do :
9252  ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9253if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9254  cat >>confdefs.h <<_ACEOF
9255#define HAVE_TR1_UNORDERED_MAP 1
9256_ACEOF
9257
9258fi
9259done
9260
9261for ac_header in ext/hash_map
9262do :
9263  ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9264if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9265  cat >>confdefs.h <<_ACEOF
9266#define HAVE_EXT_HASH_MAP 1
9267_ACEOF
9268
9269fi
9270done
9271
9272
9273# --------
9274# Dependency checking.
9275# --------
9276
9277rm -rf .tst 2>/dev/null
9278mkdir .tst 2>/dev/null
9279if test -d .tst; then
9280  am__leading_dot=.
9281else
9282  am__leading_dot=_
9283fi
9284rmdir .tst 2>/dev/null
9285
9286DEPDIR="${am__leading_dot}deps"
9287
9288ac_config_commands="$ac_config_commands depdir"
9289
9290
9291ac_config_commands="$ac_config_commands gccdepdir"
9292
9293
9294depcc="$CXX"  am_compiler_list=
9295
9296am_depcomp=$ac_aux_dir/depcomp
9297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9298$as_echo_n "checking dependency style of $depcc... " >&6; }
9299if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9300  $as_echo_n "(cached) " >&6
9301else
9302  if test -f "$am_depcomp"; then
9303  # We make a subdir and do the tests there.  Otherwise we can end up
9304  # making bogus files that we don't know about and never remove.  For
9305  # instance it was reported that on HP-UX the gcc test will end up
9306  # making a dummy file named `D' -- because `-MD' means `put the output
9307  # in D'.
9308  mkdir conftest.dir
9309  # Copy depcomp to subdir because otherwise we won't find it if we're
9310  # using a relative directory.
9311  cp "$am_depcomp" conftest.dir
9312  cd conftest.dir
9313  # We will build objects and dependencies in a subdirectory because
9314  # it helps to detect inapplicable dependency modes.  For instance
9315  # both Tru64's cc and ICC support -MD to output dependencies as a
9316  # side effect of compilation, but ICC will put the dependencies in
9317  # the current directory while Tru64 will put them in the object
9318  # directory.
9319  mkdir sub
9320
9321  am_cv_CXX_dependencies_compiler_type=none
9322  if test "$am_compiler_list" = ""; then
9323     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9324  fi
9325  for depmode in $am_compiler_list; do
9326    if test $depmode = none; then break; fi
9327
9328    $as_echo "$as_me:$LINENO: trying $depmode" >&5
9329    # Setup a source with many dependencies, because some compilers
9330    # like to wrap large dependency lists on column 80 (with \), and
9331    # we should not choose a depcomp mode which is confused by this.
9332    #
9333    # We need to recreate these files for each test, as the compiler may
9334    # overwrite some of them when testing with obscure command lines.
9335    # This happens at least with the AIX C compiler.
9336    : > sub/conftest.c
9337    for i in 1 2 3 4 5 6; do
9338      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9339      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9340      # Solaris 8's {/usr,}/bin/sh.
9341      touch sub/conftst$i.h
9342    done
9343    echo "include sub/conftest.Po" > confmf
9344
9345    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9346    # mode.  It turns out that the SunPro C++ compiler does not properly
9347    # handle `-M -o', and we need to detect this.
9348    depcmd="depmode=$depmode \
9349       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9350       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9351       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9352    echo "| $depcmd" | sed -e 's/  */ /g' >&5
9353    if env $depcmd > conftest.err 2>&1 &&
9354       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9355       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9356       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9357      # icc doesn't choke on unknown options, it will just issue warnings
9358      # or remarks (even with -Werror).  So we grep stderr for any message
9359      # that says an option was ignored or not supported.
9360      # When given -MP, icc 7.0 and 7.1 complain thusly:
9361      #   icc: Command line warning: ignoring option '-M'; no argument required
9362      # The diagnosis changed in icc 8.0:
9363      #   icc: Command line remark: option '-MP' not supported
9364      if (grep 'ignoring option' conftest.err ||
9365          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9366        am_cv_CXX_dependencies_compiler_type=$depmode
9367	$as_echo "$as_me:$LINENO: success" >&5
9368        break
9369      fi
9370    fi
9371    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9372    sed -e 's/^/| /' < conftest.err >&5
9373  done
9374
9375  cd ..
9376  rm -rf conftest.dir
9377else
9378  am_cv_CXX_dependencies_compiler_type=none
9379fi
9380
9381fi
9382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9383$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9384if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9385then as_fn_error "no usable dependency style found" "$LINENO" 5
9386else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9387
9388fi
9389
9390
9391# --------
9392# UNSORTED
9393# --------
9394
9395
9396# These libraries may be used by collect2.
9397# We may need a special search path to get them linked.
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9399$as_echo_n "checking for collect2 libraries... " >&6; }
9400if test "${gcc_cv_collect2_libs+set}" = set; then :
9401  $as_echo_n "(cached) " >&6
9402else
9403  save_LIBS="$LIBS"
9404for libs in '' -lld -lmld \
9405		'-L/usr/lib/cmplrs/cc2.11 -lmld' \
9406		'-L/usr/lib/cmplrs/cc3.11 -lmld'
9407do
9408	LIBS="$libs"
9409	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410/* end confdefs.h.  */
9411
9412/* Override any GCC internal prototype to avoid an error.
9413   Use char because int might match the return type of a GCC
9414   builtin and then its argument prototype would still apply.  */
9415#ifdef __cplusplus
9416extern "C"
9417#endif
9418char ldopen ();
9419int
9420main ()
9421{
9422return ldopen ();
9423  ;
9424  return 0;
9425}
9426_ACEOF
9427if ac_fn_cxx_try_link "$LINENO"; then :
9428  gcc_cv_collect2_libs="$libs"; break
9429fi
9430rm -f core conftest.err conftest.$ac_objext \
9431    conftest$ac_exeext conftest.$ac_ext
9432done
9433LIBS="$save_LIBS"
9434test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9435fi
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9437$as_echo "$gcc_cv_collect2_libs" >&6; }
9438case $gcc_cv_collect2_libs in
9439	"none required")	;;
9440	*)	COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9441esac
9442
9443
9444# When building Ada code on Alpha, we need exc_resume which is usually in
9445# -lexc.  So test for it.
9446save_LIBS="$LIBS"
9447LIBS=
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9449$as_echo_n "checking for library containing exc_resume... " >&6; }
9450if test "${ac_cv_search_exc_resume+set}" = set; then :
9451  $as_echo_n "(cached) " >&6
9452else
9453  ac_func_search_save_LIBS=$LIBS
9454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h.  */
9456
9457/* Override any GCC internal prototype to avoid an error.
9458   Use char because int might match the return type of a GCC
9459   builtin and then its argument prototype would still apply.  */
9460#ifdef __cplusplus
9461extern "C"
9462#endif
9463char exc_resume ();
9464int
9465main ()
9466{
9467return exc_resume ();
9468  ;
9469  return 0;
9470}
9471_ACEOF
9472for ac_lib in '' exc; do
9473  if test -z "$ac_lib"; then
9474    ac_res="none required"
9475  else
9476    ac_res=-l$ac_lib
9477    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9478  fi
9479  if ac_fn_cxx_try_link "$LINENO"; then :
9480  ac_cv_search_exc_resume=$ac_res
9481fi
9482rm -f core conftest.err conftest.$ac_objext \
9483    conftest$ac_exeext
9484  if test "${ac_cv_search_exc_resume+set}" = set; then :
9485  break
9486fi
9487done
9488if test "${ac_cv_search_exc_resume+set}" = set; then :
9489
9490else
9491  ac_cv_search_exc_resume=no
9492fi
9493rm conftest.$ac_ext
9494LIBS=$ac_func_search_save_LIBS
9495fi
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9497$as_echo "$ac_cv_search_exc_resume" >&6; }
9498ac_res=$ac_cv_search_exc_resume
9499if test "$ac_res" != no; then :
9500  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9501
9502fi
9503
9504GNAT_LIBEXC="$LIBS"
9505LIBS="$save_LIBS"
9506
9507
9508# To support -mcpu=native on Solaris/SPARC, we need libkstat.
9509save_LIBS="$LIBS"
9510LIBS=
9511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9512$as_echo_n "checking for library containing kstat_open... " >&6; }
9513if test "${ac_cv_search_kstat_open+set}" = set; then :
9514  $as_echo_n "(cached) " >&6
9515else
9516  ac_func_search_save_LIBS=$LIBS
9517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518/* end confdefs.h.  */
9519
9520/* Override any GCC internal prototype to avoid an error.
9521   Use char because int might match the return type of a GCC
9522   builtin and then its argument prototype would still apply.  */
9523#ifdef __cplusplus
9524extern "C"
9525#endif
9526char kstat_open ();
9527int
9528main ()
9529{
9530return kstat_open ();
9531  ;
9532  return 0;
9533}
9534_ACEOF
9535for ac_lib in '' kstat; do
9536  if test -z "$ac_lib"; then
9537    ac_res="none required"
9538  else
9539    ac_res=-l$ac_lib
9540    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9541  fi
9542  if ac_fn_cxx_try_link "$LINENO"; then :
9543  ac_cv_search_kstat_open=$ac_res
9544fi
9545rm -f core conftest.err conftest.$ac_objext \
9546    conftest$ac_exeext
9547  if test "${ac_cv_search_kstat_open+set}" = set; then :
9548  break
9549fi
9550done
9551if test "${ac_cv_search_kstat_open+set}" = set; then :
9552
9553else
9554  ac_cv_search_kstat_open=no
9555fi
9556rm conftest.$ac_ext
9557LIBS=$ac_func_search_save_LIBS
9558fi
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9560$as_echo "$ac_cv_search_kstat_open" >&6; }
9561ac_res=$ac_cv_search_kstat_open
9562if test "$ac_res" != no; then :
9563  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9564
9565fi
9566
9567EXTRA_GCC_LIBS="$LIBS"
9568LIBS="$save_LIBS"
9569
9570
9571# Some systems put ldexp and frexp in libm instead of libc; assume
9572# they're both in the same place.  jcf-dump needs them.
9573save_LIBS="$LIBS"
9574LIBS=
9575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9576$as_echo_n "checking for library containing ldexp... " >&6; }
9577if test "${ac_cv_search_ldexp+set}" = set; then :
9578  $as_echo_n "(cached) " >&6
9579else
9580  ac_func_search_save_LIBS=$LIBS
9581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h.  */
9583
9584/* Override any GCC internal prototype to avoid an error.
9585   Use char because int might match the return type of a GCC
9586   builtin and then its argument prototype would still apply.  */
9587#ifdef __cplusplus
9588extern "C"
9589#endif
9590char ldexp ();
9591int
9592main ()
9593{
9594return ldexp ();
9595  ;
9596  return 0;
9597}
9598_ACEOF
9599for ac_lib in '' m; do
9600  if test -z "$ac_lib"; then
9601    ac_res="none required"
9602  else
9603    ac_res=-l$ac_lib
9604    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9605  fi
9606  if ac_fn_cxx_try_link "$LINENO"; then :
9607  ac_cv_search_ldexp=$ac_res
9608fi
9609rm -f core conftest.err conftest.$ac_objext \
9610    conftest$ac_exeext
9611  if test "${ac_cv_search_ldexp+set}" = set; then :
9612  break
9613fi
9614done
9615if test "${ac_cv_search_ldexp+set}" = set; then :
9616
9617else
9618  ac_cv_search_ldexp=no
9619fi
9620rm conftest.$ac_ext
9621LIBS=$ac_func_search_save_LIBS
9622fi
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9624$as_echo "$ac_cv_search_ldexp" >&6; }
9625ac_res=$ac_cv_search_ldexp
9626if test "$ac_res" != no; then :
9627  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9628
9629fi
9630
9631LDEXP_LIB="$LIBS"
9632LIBS="$save_LIBS"
9633
9634
9635# Use <inttypes.h> only if it exists,
9636# doesn't clash with <sys/types.h>, declares intmax_t and defines
9637# PRId64
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9639$as_echo_n "checking for inttypes.h... " >&6; }
9640if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9641  $as_echo_n "(cached) " >&6
9642else
9643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644/* end confdefs.h.  */
9645#define __STDC_FORMAT_MACROS
9646#include <sys/types.h>
9647#include <inttypes.h>
9648int
9649main ()
9650{
9651intmax_t i = -1;
9652#ifndef PRId64
9653choke me
9654#endif
9655  ;
9656  return 0;
9657}
9658_ACEOF
9659if ac_fn_cxx_try_compile "$LINENO"; then :
9660  gcc_cv_header_inttypes_h=yes
9661else
9662  gcc_cv_header_inttypes_h=no
9663fi
9664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9665fi
9666
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9668$as_echo "$gcc_cv_header_inttypes_h" >&6; }
9669if test $gcc_cv_header_inttypes_h = yes; then
9670
9671$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9672
9673fi
9674
9675
9676
9677for ac_func in times clock kill getrlimit setrlimit atoq \
9678	popen sysconf strsignal getrusage nl_langinfo \
9679	gettimeofday mbstowcs wcswidth mmap setlocale \
9680	clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked madvise
9681do :
9682  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9683ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9684eval as_val=\$$as_ac_var
9685   if test "x$as_val" = x""yes; then :
9686  cat >>confdefs.h <<_ACEOF
9687#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9688_ACEOF
9689
9690fi
9691done
9692
9693
9694if test x$ac_cv_func_mbstowcs = xyes; then
9695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9696$as_echo_n "checking whether mbstowcs works... " >&6; }
9697if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9698  $as_echo_n "(cached) " >&6
9699else
9700      if test "$cross_compiling" = yes; then :
9701  gcc_cv_func_mbstowcs_works=yes
9702else
9703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704/* end confdefs.h.  */
9705#include <stdlib.h>
9706int main()
9707{
9708  mbstowcs(0, "", 0);
9709  return 0;
9710}
9711_ACEOF
9712if ac_fn_cxx_try_run "$LINENO"; then :
9713  gcc_cv_func_mbstowcs_works=yes
9714else
9715  gcc_cv_func_mbstowcs_works=no
9716fi
9717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9718  conftest.$ac_objext conftest.beam conftest.$ac_ext
9719fi
9720
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9723$as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9724  if test x$gcc_cv_func_mbstowcs_works = xyes; then
9725
9726$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9727
9728  fi
9729fi
9730
9731ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9732if test "x$ac_cv_type_ssize_t" = x""yes; then :
9733
9734else
9735
9736cat >>confdefs.h <<_ACEOF
9737#define ssize_t int
9738_ACEOF
9739
9740fi
9741
9742ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9743if test "x$ac_cv_type_caddr_t" = x""yes; then :
9744
9745else
9746
9747cat >>confdefs.h <<_ACEOF
9748#define caddr_t char *
9749_ACEOF
9750
9751fi
9752
9753
9754
9755ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9756if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9757  gcc_header_sys_mman_h=yes
9758else
9759  gcc_header_sys_mman_h=no
9760fi
9761
9762ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9763if test "x$ac_cv_func_mmap" = x""yes; then :
9764  gcc_func_mmap=yes
9765else
9766  gcc_func_mmap=no
9767fi
9768
9769if test "$gcc_header_sys_mman_h" != yes \
9770 || test "$gcc_func_mmap" != yes; then
9771   gcc_cv_func_mmap_file=no
9772   gcc_cv_func_mmap_dev_zero=no
9773   gcc_cv_func_mmap_anon=no
9774else
9775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9776$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9777if test "${gcc_cv_func_mmap_file+set}" = set; then :
9778  $as_echo_n "(cached) " >&6
9779else
9780  # Add a system to this blacklist if
9781   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9782   # memory area containing the same data that you'd get if you applied
9783   # read() to the same fd.  The only system known to have a problem here
9784   # is VMS, where text files have record structure.
9785   case "$host_os" in
9786     *vms* | ultrix*)
9787        gcc_cv_func_mmap_file=no ;;
9788     *)
9789        gcc_cv_func_mmap_file=yes;;
9790   esac
9791fi
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9793$as_echo "$gcc_cv_func_mmap_file" >&6; }
9794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9795$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9796if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9797  $as_echo_n "(cached) " >&6
9798else
9799  # Add a system to this blacklist if it has mmap() but /dev/zero
9800   # does not exist, or if mmapping /dev/zero does not give anonymous
9801   # zeroed pages with both the following properties:
9802   # 1. If you map N consecutive pages in with one call, and then
9803   #    unmap any subset of those pages, the pages that were not
9804   #    explicitly unmapped remain accessible.
9805   # 2. If you map two adjacent blocks of memory and then unmap them
9806   #    both at once, they must both go away.
9807   # Systems known to be in this category are Windows (all variants),
9808   # VMS, and Darwin.
9809   case "$host_os" in
9810     *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9811        gcc_cv_func_mmap_dev_zero=no ;;
9812     *)
9813        gcc_cv_func_mmap_dev_zero=yes;;
9814   esac
9815fi
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9817$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9818
9819   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9821$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9822if test "${gcc_cv_decl_map_anon+set}" = set; then :
9823  $as_echo_n "(cached) " >&6
9824else
9825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826/* end confdefs.h.  */
9827#include <sys/types.h>
9828#include <sys/mman.h>
9829#include <unistd.h>
9830
9831#ifndef MAP_ANONYMOUS
9832#define MAP_ANONYMOUS MAP_ANON
9833#endif
9834
9835int
9836main ()
9837{
9838int n = MAP_ANONYMOUS;
9839  ;
9840  return 0;
9841}
9842_ACEOF
9843if ac_fn_cxx_try_compile "$LINENO"; then :
9844  gcc_cv_decl_map_anon=yes
9845else
9846  gcc_cv_decl_map_anon=no
9847fi
9848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849fi
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9851$as_echo "$gcc_cv_decl_map_anon" >&6; }
9852
9853   if test $gcc_cv_decl_map_anon = no; then
9854     gcc_cv_func_mmap_anon=no
9855   else
9856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9857$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9858if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9859  $as_echo_n "(cached) " >&6
9860else
9861  # Add a system to this blacklist if it has mmap() and MAP_ANON or
9862   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9863   # doesn't give anonymous zeroed pages with the same properties listed
9864   # above for use of /dev/zero.
9865   # Systems known to be in this category are Windows, VMS, and SCO Unix.
9866   case "$host_os" in
9867     *vms* | cygwin* | pe | mingw* | sco* | udk* )
9868        gcc_cv_func_mmap_anon=no ;;
9869     *)
9870        gcc_cv_func_mmap_anon=yes;;
9871   esac
9872fi
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9874$as_echo "$gcc_cv_func_mmap_anon" >&6; }
9875   fi
9876fi
9877
9878if test $gcc_cv_func_mmap_file = yes; then
9879
9880$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9881
9882fi
9883if test $gcc_cv_func_mmap_dev_zero = yes; then
9884
9885$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9886
9887fi
9888if test $gcc_cv_func_mmap_anon = yes; then
9889
9890$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9891
9892fi
9893
9894
9895case "${host}" in
9896*-*-*vms*)
9897  # Under VMS, vfork works very differently than on Unix. The standard test
9898  # won't work, and it isn't easily adaptable. It makes more sense to
9899  # just force it.
9900  ac_cv_func_vfork_works=yes
9901  ;;
9902esac
9903ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9904if test "x$ac_cv_type_pid_t" = x""yes; then :
9905
9906else
9907
9908cat >>confdefs.h <<_ACEOF
9909#define pid_t int
9910_ACEOF
9911
9912fi
9913
9914for ac_header in vfork.h
9915do :
9916  ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9917if test "x$ac_cv_header_vfork_h" = x""yes; then :
9918  cat >>confdefs.h <<_ACEOF
9919#define HAVE_VFORK_H 1
9920_ACEOF
9921
9922fi
9923done
9924
9925for ac_func in fork vfork
9926do :
9927  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9928ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9929eval as_val=\$$as_ac_var
9930   if test "x$as_val" = x""yes; then :
9931  cat >>confdefs.h <<_ACEOF
9932#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9933_ACEOF
9934
9935fi
9936done
9937
9938if test "x$ac_cv_func_fork" = xyes; then
9939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9940$as_echo_n "checking for working fork... " >&6; }
9941if test "${ac_cv_func_fork_works+set}" = set; then :
9942  $as_echo_n "(cached) " >&6
9943else
9944  if test "$cross_compiling" = yes; then :
9945  ac_cv_func_fork_works=cross
9946else
9947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h.  */
9949$ac_includes_default
9950int
9951main ()
9952{
9953
9954	  /* By Ruediger Kuhlmann. */
9955	  return fork () < 0;
9956
9957  ;
9958  return 0;
9959}
9960_ACEOF
9961if ac_fn_cxx_try_run "$LINENO"; then :
9962  ac_cv_func_fork_works=yes
9963else
9964  ac_cv_func_fork_works=no
9965fi
9966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9967  conftest.$ac_objext conftest.beam conftest.$ac_ext
9968fi
9969
9970fi
9971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9972$as_echo "$ac_cv_func_fork_works" >&6; }
9973
9974else
9975  ac_cv_func_fork_works=$ac_cv_func_fork
9976fi
9977if test "x$ac_cv_func_fork_works" = xcross; then
9978  case $host in
9979    *-*-amigaos* | *-*-msdosdjgpp*)
9980      # Override, as these systems have only a dummy fork() stub
9981      ac_cv_func_fork_works=no
9982      ;;
9983    *)
9984      ac_cv_func_fork_works=yes
9985      ;;
9986  esac
9987  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9988$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9989fi
9990ac_cv_func_vfork_works=$ac_cv_func_vfork
9991if test "x$ac_cv_func_vfork" = xyes; then
9992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9993$as_echo_n "checking for working vfork... " >&6; }
9994if test "${ac_cv_func_vfork_works+set}" = set; then :
9995  $as_echo_n "(cached) " >&6
9996else
9997  if test "$cross_compiling" = yes; then :
9998  ac_cv_func_vfork_works=cross
9999else
10000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001/* end confdefs.h.  */
10002/* Thanks to Paul Eggert for this test.  */
10003$ac_includes_default
10004#include <sys/wait.h>
10005#ifdef HAVE_VFORK_H
10006# include <vfork.h>
10007#endif
10008/* On some sparc systems, changes by the child to local and incoming
10009   argument registers are propagated back to the parent.  The compiler
10010   is told about this with #include <vfork.h>, but some compilers
10011   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10012   static variable whose address is put into a register that is
10013   clobbered by the vfork.  */
10014static void
10015#ifdef __cplusplus
10016sparc_address_test (int arg)
10017# else
10018sparc_address_test (arg) int arg;
10019#endif
10020{
10021  static pid_t child;
10022  if (!child) {
10023    child = vfork ();
10024    if (child < 0) {
10025      perror ("vfork");
10026      _exit(2);
10027    }
10028    if (!child) {
10029      arg = getpid();
10030      write(-1, "", 0);
10031      _exit (arg);
10032    }
10033  }
10034}
10035
10036int
10037main ()
10038{
10039  pid_t parent = getpid ();
10040  pid_t child;
10041
10042  sparc_address_test (0);
10043
10044  child = vfork ();
10045
10046  if (child == 0) {
10047    /* Here is another test for sparc vfork register problems.  This
10048       test uses lots of local variables, at least as many local
10049       variables as main has allocated so far including compiler
10050       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10051       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10052       reuse the register of parent for one of the local variables,
10053       since it will think that parent can't possibly be used any more
10054       in this routine.  Assigning to the local variable will thus
10055       munge parent in the parent process.  */
10056    pid_t
10057      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10058      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10059    /* Convince the compiler that p..p7 are live; otherwise, it might
10060       use the same hardware register for all 8 local variables.  */
10061    if (p != p1 || p != p2 || p != p3 || p != p4
10062	|| p != p5 || p != p6 || p != p7)
10063      _exit(1);
10064
10065    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10066       from child file descriptors.  If the child closes a descriptor
10067       before it execs or exits, this munges the parent's descriptor
10068       as well.  Test for this by closing stdout in the child.  */
10069    _exit(close(fileno(stdout)) != 0);
10070  } else {
10071    int status;
10072    struct stat st;
10073
10074    while (wait(&status) != child)
10075      ;
10076    return (
10077	 /* Was there some problem with vforking?  */
10078	 child < 0
10079
10080	 /* Did the child fail?  (This shouldn't happen.)  */
10081	 || status
10082
10083	 /* Did the vfork/compiler bug occur?  */
10084	 || parent != getpid()
10085
10086	 /* Did the file descriptor bug occur?  */
10087	 || fstat(fileno(stdout), &st) != 0
10088	 );
10089  }
10090}
10091_ACEOF
10092if ac_fn_cxx_try_run "$LINENO"; then :
10093  ac_cv_func_vfork_works=yes
10094else
10095  ac_cv_func_vfork_works=no
10096fi
10097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10098  conftest.$ac_objext conftest.beam conftest.$ac_ext
10099fi
10100
10101fi
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10103$as_echo "$ac_cv_func_vfork_works" >&6; }
10104
10105fi;
10106if test "x$ac_cv_func_fork_works" = xcross; then
10107  ac_cv_func_vfork_works=$ac_cv_func_vfork
10108  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10109$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10110fi
10111
10112if test "x$ac_cv_func_vfork_works" = xyes; then
10113
10114$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10115
10116else
10117
10118$as_echo "#define vfork fork" >>confdefs.h
10119
10120fi
10121if test "x$ac_cv_func_fork_works" = xyes; then
10122
10123$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10124
10125fi
10126
10127
10128
10129      if test "X$prefix" = "XNONE"; then
10130    acl_final_prefix="$ac_default_prefix"
10131  else
10132    acl_final_prefix="$prefix"
10133  fi
10134  if test "X$exec_prefix" = "XNONE"; then
10135    acl_final_exec_prefix='${prefix}'
10136  else
10137    acl_final_exec_prefix="$exec_prefix"
10138  fi
10139  acl_save_prefix="$prefix"
10140  prefix="$acl_final_prefix"
10141  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10142  prefix="$acl_save_prefix"
10143
10144
10145# Check whether --with-gnu-ld was given.
10146if test "${with_gnu_ld+set}" = set; then :
10147  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10148else
10149  with_gnu_ld=no
10150fi
10151
10152# Prepare PATH_SEPARATOR.
10153# The user is always right.
10154if test "${PATH_SEPARATOR+set}" != set; then
10155  echo "#! /bin/sh" >conf$$.sh
10156  echo  "exit 0"   >>conf$$.sh
10157  chmod +x conf$$.sh
10158  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10159    PATH_SEPARATOR=';'
10160  else
10161    PATH_SEPARATOR=:
10162  fi
10163  rm -f conf$$.sh
10164fi
10165ac_prog=ld
10166if test "$GCC" = yes; then
10167  # Check if gcc -print-prog-name=ld gives a path.
10168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10169$as_echo_n "checking for ld used by GCC... " >&6; }
10170  case $host in
10171  *-*-mingw*)
10172    # gcc leaves a trailing carriage return which upsets mingw
10173    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10174  *)
10175    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10176  esac
10177  case $ac_prog in
10178    # Accept absolute paths.
10179    [\\/]* | [A-Za-z]:[\\/]*)
10180      re_direlt='/[^/][^/]*/\.\./'
10181      # Canonicalize the path of ld
10182      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10183      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10184	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10185      done
10186      test -z "$LD" && LD="$ac_prog"
10187      ;;
10188  "")
10189    # If it fails, then pretend we aren't using GCC.
10190    ac_prog=ld
10191    ;;
10192  *)
10193    # If it is relative, then search for the first ld in PATH.
10194    with_gnu_ld=unknown
10195    ;;
10196  esac
10197elif test "$with_gnu_ld" = yes; then
10198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10199$as_echo_n "checking for GNU ld... " >&6; }
10200else
10201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10202$as_echo_n "checking for non-GNU ld... " >&6; }
10203fi
10204if test "${acl_cv_path_LD+set}" = set; then :
10205  $as_echo_n "(cached) " >&6
10206else
10207  if test -z "$LD"; then
10208  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10209  for ac_dir in $PATH; do
10210    test -z "$ac_dir" && ac_dir=.
10211    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10212      acl_cv_path_LD="$ac_dir/$ac_prog"
10213      # Check to see if the program is GNU ld.  I'd rather use --version,
10214      # but apparently some GNU ld's only accept -v.
10215      # Break only if it was the GNU/non-GNU ld that we prefer.
10216      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10217	test "$with_gnu_ld" != no && break
10218      else
10219	test "$with_gnu_ld" != yes && break
10220      fi
10221    fi
10222  done
10223  IFS="$ac_save_ifs"
10224else
10225  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10226fi
10227fi
10228
10229LD="$acl_cv_path_LD"
10230if test -n "$LD"; then
10231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10232$as_echo "$LD" >&6; }
10233else
10234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235$as_echo "no" >&6; }
10236fi
10237test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10239$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10240if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10241  $as_echo_n "(cached) " >&6
10242else
10243  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10244if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10245  acl_cv_prog_gnu_ld=yes
10246else
10247  acl_cv_prog_gnu_ld=no
10248fi
10249fi
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10251$as_echo "$acl_cv_prog_gnu_ld" >&6; }
10252with_gnu_ld=$acl_cv_prog_gnu_ld
10253
10254
10255
10256                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10257$as_echo_n "checking for shared library run path origin... " >&6; }
10258if test "${acl_cv_rpath+set}" = set; then :
10259  $as_echo_n "(cached) " >&6
10260else
10261
10262    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10263    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10264    . ./conftest.sh
10265    rm -f ./conftest.sh
10266    acl_cv_rpath=done
10267
10268fi
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10270$as_echo "$acl_cv_rpath" >&6; }
10271  wl="$acl_cv_wl"
10272  libext="$acl_cv_libext"
10273  shlibext="$acl_cv_shlibext"
10274  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10275  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10276  hardcode_direct="$acl_cv_hardcode_direct"
10277  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10278    # Check whether --enable-rpath was given.
10279if test "${enable_rpath+set}" = set; then :
10280  enableval=$enable_rpath; :
10281else
10282  enable_rpath=yes
10283fi
10284
10285
10286
10287
10288
10289
10290
10291
10292    use_additional=yes
10293
10294  acl_save_prefix="$prefix"
10295  prefix="$acl_final_prefix"
10296  acl_save_exec_prefix="$exec_prefix"
10297  exec_prefix="$acl_final_exec_prefix"
10298
10299    eval additional_includedir=\"$includedir\"
10300    eval additional_libdir=\"$libdir\"
10301
10302  exec_prefix="$acl_save_exec_prefix"
10303  prefix="$acl_save_prefix"
10304
10305
10306# Check whether --with-libiconv-prefix was given.
10307if test "${with_libiconv_prefix+set}" = set; then :
10308  withval=$with_libiconv_prefix;
10309    if test "X$withval" = "Xno"; then
10310      use_additional=no
10311    else
10312      if test "X$withval" = "X"; then
10313
10314  acl_save_prefix="$prefix"
10315  prefix="$acl_final_prefix"
10316  acl_save_exec_prefix="$exec_prefix"
10317  exec_prefix="$acl_final_exec_prefix"
10318
10319          eval additional_includedir=\"$includedir\"
10320          eval additional_libdir=\"$libdir\"
10321
10322  exec_prefix="$acl_save_exec_prefix"
10323  prefix="$acl_save_prefix"
10324
10325      else
10326        additional_includedir="$withval/include"
10327        additional_libdir="$withval/lib"
10328      fi
10329    fi
10330
10331fi
10332
10333      LIBICONV=
10334  LTLIBICONV=
10335  INCICONV=
10336  rpathdirs=
10337  ltrpathdirs=
10338  names_already_handled=
10339  names_next_round='iconv '
10340  while test -n "$names_next_round"; do
10341    names_this_round="$names_next_round"
10342    names_next_round=
10343    for name in $names_this_round; do
10344      already_handled=
10345      for n in $names_already_handled; do
10346        if test "$n" = "$name"; then
10347          already_handled=yes
10348          break
10349        fi
10350      done
10351      if test -z "$already_handled"; then
10352        names_already_handled="$names_already_handled $name"
10353                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10354        eval value=\"\$HAVE_LIB$uppername\"
10355        if test -n "$value"; then
10356          if test "$value" = yes; then
10357            eval value=\"\$LIB$uppername\"
10358            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10359            eval value=\"\$LTLIB$uppername\"
10360            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10361          else
10362                                    :
10363          fi
10364        else
10365                              found_dir=
10366          found_la=
10367          found_so=
10368          found_a=
10369          if test $use_additional = yes; then
10370            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10371              found_dir="$additional_libdir"
10372              found_so="$additional_libdir/lib$name.$shlibext"
10373              if test -f "$additional_libdir/lib$name.la"; then
10374                found_la="$additional_libdir/lib$name.la"
10375              fi
10376            else
10377              if test -f "$additional_libdir/lib$name.$libext"; then
10378                found_dir="$additional_libdir"
10379                found_a="$additional_libdir/lib$name.$libext"
10380                if test -f "$additional_libdir/lib$name.la"; then
10381                  found_la="$additional_libdir/lib$name.la"
10382                fi
10383              fi
10384            fi
10385          fi
10386          if test "X$found_dir" = "X"; then
10387            for x in $LDFLAGS $LTLIBICONV; do
10388
10389  acl_save_prefix="$prefix"
10390  prefix="$acl_final_prefix"
10391  acl_save_exec_prefix="$exec_prefix"
10392  exec_prefix="$acl_final_exec_prefix"
10393  eval x=\"$x\"
10394  exec_prefix="$acl_save_exec_prefix"
10395  prefix="$acl_save_prefix"
10396
10397              case "$x" in
10398                -L*)
10399                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10400                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10401                    found_dir="$dir"
10402                    found_so="$dir/lib$name.$shlibext"
10403                    if test -f "$dir/lib$name.la"; then
10404                      found_la="$dir/lib$name.la"
10405                    fi
10406                  else
10407                    if test -f "$dir/lib$name.$libext"; then
10408                      found_dir="$dir"
10409                      found_a="$dir/lib$name.$libext"
10410                      if test -f "$dir/lib$name.la"; then
10411                        found_la="$dir/lib$name.la"
10412                      fi
10413                    fi
10414                  fi
10415                  ;;
10416              esac
10417              if test "X$found_dir" != "X"; then
10418                break
10419              fi
10420            done
10421          fi
10422          if test "X$found_dir" != "X"; then
10423                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10424            if test "X$found_so" != "X"; then
10425                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10426                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10427              else
10428                                                                                haveit=
10429                for x in $ltrpathdirs; do
10430                  if test "X$x" = "X$found_dir"; then
10431                    haveit=yes
10432                    break
10433                  fi
10434                done
10435                if test -z "$haveit"; then
10436                  ltrpathdirs="$ltrpathdirs $found_dir"
10437                fi
10438                                if test "$hardcode_direct" = yes; then
10439                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10440                else
10441                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10442                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10443                                                            haveit=
10444                    for x in $rpathdirs; do
10445                      if test "X$x" = "X$found_dir"; then
10446                        haveit=yes
10447                        break
10448                      fi
10449                    done
10450                    if test -z "$haveit"; then
10451                      rpathdirs="$rpathdirs $found_dir"
10452                    fi
10453                  else
10454                                                                                haveit=
10455                    for x in $LDFLAGS $LIBICONV; do
10456
10457  acl_save_prefix="$prefix"
10458  prefix="$acl_final_prefix"
10459  acl_save_exec_prefix="$exec_prefix"
10460  exec_prefix="$acl_final_exec_prefix"
10461  eval x=\"$x\"
10462  exec_prefix="$acl_save_exec_prefix"
10463  prefix="$acl_save_prefix"
10464
10465                      if test "X$x" = "X-L$found_dir"; then
10466                        haveit=yes
10467                        break
10468                      fi
10469                    done
10470                    if test -z "$haveit"; then
10471                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10472                    fi
10473                    if test "$hardcode_minus_L" != no; then
10474                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10475                    else
10476                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10477                    fi
10478                  fi
10479                fi
10480              fi
10481            else
10482              if test "X$found_a" != "X"; then
10483                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10484              else
10485                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10486              fi
10487            fi
10488                        additional_includedir=
10489            case "$found_dir" in
10490              */lib | */lib/)
10491                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10492                additional_includedir="$basedir/include"
10493                ;;
10494            esac
10495            if test "X$additional_includedir" != "X"; then
10496                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10497                haveit=
10498                if test "X$additional_includedir" = "X/usr/local/include"; then
10499                  if test -n "$GCC"; then
10500                    case $host_os in
10501                      linux*) haveit=yes;;
10502                    esac
10503                  fi
10504                fi
10505                if test -z "$haveit"; then
10506                  for x in $CPPFLAGS $INCICONV; do
10507
10508  acl_save_prefix="$prefix"
10509  prefix="$acl_final_prefix"
10510  acl_save_exec_prefix="$exec_prefix"
10511  exec_prefix="$acl_final_exec_prefix"
10512  eval x=\"$x\"
10513  exec_prefix="$acl_save_exec_prefix"
10514  prefix="$acl_save_prefix"
10515
10516                    if test "X$x" = "X-I$additional_includedir"; then
10517                      haveit=yes
10518                      break
10519                    fi
10520                  done
10521                  if test -z "$haveit"; then
10522                    if test -d "$additional_includedir"; then
10523                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10524                    fi
10525                  fi
10526                fi
10527              fi
10528            fi
10529                        if test -n "$found_la"; then
10530                                                        save_libdir="$libdir"
10531              case "$found_la" in
10532                */* | *\\*) . "$found_la" ;;
10533                *) . "./$found_la" ;;
10534              esac
10535              libdir="$save_libdir"
10536                            for dep in $dependency_libs; do
10537                case "$dep" in
10538                  -L*)
10539                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10540                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
10541                      haveit=
10542                      if test "X$additional_libdir" = "X/usr/local/lib"; then
10543                        if test -n "$GCC"; then
10544                          case $host_os in
10545                            linux*) haveit=yes;;
10546                          esac
10547                        fi
10548                      fi
10549                      if test -z "$haveit"; then
10550                        haveit=
10551                        for x in $LDFLAGS $LIBICONV; do
10552
10553  acl_save_prefix="$prefix"
10554  prefix="$acl_final_prefix"
10555  acl_save_exec_prefix="$exec_prefix"
10556  exec_prefix="$acl_final_exec_prefix"
10557  eval x=\"$x\"
10558  exec_prefix="$acl_save_exec_prefix"
10559  prefix="$acl_save_prefix"
10560
10561                          if test "X$x" = "X-L$additional_libdir"; then
10562                            haveit=yes
10563                            break
10564                          fi
10565                        done
10566                        if test -z "$haveit"; then
10567                          if test -d "$additional_libdir"; then
10568                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10569                          fi
10570                        fi
10571                        haveit=
10572                        for x in $LDFLAGS $LTLIBICONV; do
10573
10574  acl_save_prefix="$prefix"
10575  prefix="$acl_final_prefix"
10576  acl_save_exec_prefix="$exec_prefix"
10577  exec_prefix="$acl_final_exec_prefix"
10578  eval x=\"$x\"
10579  exec_prefix="$acl_save_exec_prefix"
10580  prefix="$acl_save_prefix"
10581
10582                          if test "X$x" = "X-L$additional_libdir"; then
10583                            haveit=yes
10584                            break
10585                          fi
10586                        done
10587                        if test -z "$haveit"; then
10588                          if test -d "$additional_libdir"; then
10589                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10590                          fi
10591                        fi
10592                      fi
10593                    fi
10594                    ;;
10595                  -R*)
10596                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10597                    if test "$enable_rpath" != no; then
10598                                                                  haveit=
10599                      for x in $rpathdirs; do
10600                        if test "X$x" = "X$dir"; then
10601                          haveit=yes
10602                          break
10603                        fi
10604                      done
10605                      if test -z "$haveit"; then
10606                        rpathdirs="$rpathdirs $dir"
10607                      fi
10608                                                                  haveit=
10609                      for x in $ltrpathdirs; do
10610                        if test "X$x" = "X$dir"; then
10611                          haveit=yes
10612                          break
10613                        fi
10614                      done
10615                      if test -z "$haveit"; then
10616                        ltrpathdirs="$ltrpathdirs $dir"
10617                      fi
10618                    fi
10619                    ;;
10620                  -l*)
10621                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10622                    ;;
10623                  *.la)
10624                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10625                    ;;
10626                  *)
10627                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10628                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10629                    ;;
10630                esac
10631              done
10632            fi
10633          else
10634                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10635            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10636          fi
10637        fi
10638      fi
10639    done
10640  done
10641  if test "X$rpathdirs" != "X"; then
10642    if test -n "$hardcode_libdir_separator"; then
10643                        alldirs=
10644      for found_dir in $rpathdirs; do
10645        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10646      done
10647            acl_save_libdir="$libdir"
10648      libdir="$alldirs"
10649      eval flag=\"$hardcode_libdir_flag_spec\"
10650      libdir="$acl_save_libdir"
10651      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10652    else
10653            for found_dir in $rpathdirs; do
10654        acl_save_libdir="$libdir"
10655        libdir="$found_dir"
10656        eval flag=\"$hardcode_libdir_flag_spec\"
10657        libdir="$acl_save_libdir"
10658        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10659      done
10660    fi
10661  fi
10662  if test "X$ltrpathdirs" != "X"; then
10663            for found_dir in $ltrpathdirs; do
10664      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10665    done
10666  fi
10667
10668
10669
10670
10671
10672
10673
10674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10675$as_echo_n "checking for iconv... " >&6; }
10676if test "${am_cv_func_iconv+set}" = set; then :
10677  $as_echo_n "(cached) " >&6
10678else
10679
10680    am_cv_func_iconv="no, consider installing GNU libiconv"
10681    am_cv_lib_iconv=no
10682                    am_save_CPPFLAGS="$CPPFLAGS"
10683    CPPFLAGS="$CPPFLAGS $INCICONV"
10684    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685/* end confdefs.h.  */
10686#include <stdlib.h>
10687#include <iconv.h>
10688int
10689main ()
10690{
10691iconv_t cd = iconv_open("","");
10692       iconv(cd,NULL,NULL,NULL,NULL);
10693       iconv_close(cd);
10694  ;
10695  return 0;
10696}
10697_ACEOF
10698if ac_fn_cxx_try_link "$LINENO"; then :
10699  am_cv_func_iconv=yes
10700fi
10701rm -f core conftest.err conftest.$ac_objext \
10702    conftest$ac_exeext conftest.$ac_ext
10703    CPPFLAGS="$am_save_CPPFLAGS"
10704
10705    if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10706      for _libs in .libs _libs; do
10707        am_save_CPPFLAGS="$CPPFLAGS"
10708        am_save_LIBS="$LIBS"
10709        CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10710        LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10711        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712/* end confdefs.h.  */
10713#include <stdlib.h>
10714#include <iconv.h>
10715int
10716main ()
10717{
10718iconv_t cd = iconv_open("","");
10719           iconv(cd,NULL,NULL,NULL,NULL);
10720           iconv_close(cd);
10721  ;
10722  return 0;
10723}
10724_ACEOF
10725if ac_fn_cxx_try_link "$LINENO"; then :
10726  INCICONV="-I../libiconv/include"
10727          LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10728          LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10729          am_cv_lib_iconv=yes
10730          am_cv_func_iconv=yes
10731fi
10732rm -f core conftest.err conftest.$ac_objext \
10733    conftest$ac_exeext conftest.$ac_ext
10734        CPPFLAGS="$am_save_CPPFLAGS"
10735        LIBS="$am_save_LIBS"
10736        if test "$am_cv_func_iconv" = "yes"; then
10737          break
10738        fi
10739      done
10740    fi
10741
10742    if test "$am_cv_func_iconv" != yes; then
10743      am_save_CPPFLAGS="$CPPFLAGS"
10744      am_save_LIBS="$LIBS"
10745      CPPFLAGS="$LIBS $INCICONV"
10746      LIBS="$LIBS $LIBICONV"
10747      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748/* end confdefs.h.  */
10749#include <stdlib.h>
10750#include <iconv.h>
10751int
10752main ()
10753{
10754iconv_t cd = iconv_open("","");
10755         iconv(cd,NULL,NULL,NULL,NULL);
10756         iconv_close(cd);
10757  ;
10758  return 0;
10759}
10760_ACEOF
10761if ac_fn_cxx_try_link "$LINENO"; then :
10762  am_cv_lib_iconv=yes
10763        am_cv_func_iconv=yes
10764fi
10765rm -f core conftest.err conftest.$ac_objext \
10766    conftest$ac_exeext conftest.$ac_ext
10767      CPPFLAGS="$am_save_CPPFLAGS"
10768      LIBS="$am_save_LIBS"
10769    fi
10770
10771fi
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10773$as_echo "$am_cv_func_iconv" >&6; }
10774  if test "$am_cv_func_iconv" = yes; then
10775
10776$as_echo "#define HAVE_ICONV 1" >>confdefs.h
10777
10778  fi
10779  if test "$am_cv_lib_iconv" = yes; then
10780
10781  for element in $INCICONV; do
10782    haveit=
10783    for x in $CPPFLAGS; do
10784
10785  acl_save_prefix="$prefix"
10786  prefix="$acl_final_prefix"
10787  acl_save_exec_prefix="$exec_prefix"
10788  exec_prefix="$acl_final_exec_prefix"
10789  eval x=\"$x\"
10790  exec_prefix="$acl_save_exec_prefix"
10791  prefix="$acl_save_prefix"
10792
10793      if test "X$x" = "X$element"; then
10794        haveit=yes
10795        break
10796      fi
10797    done
10798    if test -z "$haveit"; then
10799      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10800    fi
10801  done
10802
10803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10804$as_echo_n "checking how to link with libiconv... " >&6; }
10805    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10806$as_echo "$LIBICONV" >&6; }
10807  else
10808    LIBICONV=
10809    LTLIBICONV=
10810  fi
10811
10812
10813
10814  if test "$am_cv_func_iconv" = yes; then
10815    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10816$as_echo_n "checking for iconv declaration... " >&6; }
10817    if test "${am_cv_proto_iconv+set}" = set; then :
10818  $as_echo_n "(cached) " >&6
10819else
10820
10821      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822/* end confdefs.h.  */
10823
10824#include <stdlib.h>
10825#include <iconv.h>
10826extern
10827#ifdef __cplusplus
10828"C"
10829#endif
10830#if defined(__STDC__) || defined(__cplusplus)
10831size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10832#else
10833size_t iconv();
10834#endif
10835
10836int
10837main ()
10838{
10839
10840  ;
10841  return 0;
10842}
10843_ACEOF
10844if ac_fn_cxx_try_compile "$LINENO"; then :
10845  am_cv_proto_iconv_arg1=""
10846else
10847  am_cv_proto_iconv_arg1="const"
10848fi
10849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10850      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);"
10851fi
10852
10853    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10854    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10855         }$am_cv_proto_iconv" >&5
10856$as_echo "${ac_t:-
10857         }$am_cv_proto_iconv" >&6; }
10858
10859cat >>confdefs.h <<_ACEOF
10860#define ICONV_CONST $am_cv_proto_iconv_arg1
10861_ACEOF
10862
10863  fi
10864
10865
10866# Until we have in-tree GNU iconv:
10867LIBICONV_DEP=
10868if test -f "$LTLIBICONV"; then
10869  LIBICONV_DEP=$LTLIBICONV
10870fi
10871
10872
10873
10874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10875$as_echo_n "checking for LC_MESSAGES... " >&6; }
10876if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10877  $as_echo_n "(cached) " >&6
10878else
10879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880/* end confdefs.h.  */
10881#include <locale.h>
10882int
10883main ()
10884{
10885return LC_MESSAGES
10886  ;
10887  return 0;
10888}
10889_ACEOF
10890if ac_fn_cxx_try_link "$LINENO"; then :
10891  am_cv_val_LC_MESSAGES=yes
10892else
10893  am_cv_val_LC_MESSAGES=no
10894fi
10895rm -f core conftest.err conftest.$ac_objext \
10896    conftest$ac_exeext conftest.$ac_ext
10897fi
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10899$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10900  if test $am_cv_val_LC_MESSAGES = yes; then
10901
10902$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10903
10904  fi
10905
10906
10907
10908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10909$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10910if test "${am_cv_langinfo_codeset+set}" = set; then :
10911  $as_echo_n "(cached) " >&6
10912else
10913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914/* end confdefs.h.  */
10915#include <langinfo.h>
10916int
10917main ()
10918{
10919char* cs = nl_langinfo(CODESET);
10920  ;
10921  return 0;
10922}
10923_ACEOF
10924if ac_fn_cxx_try_link "$LINENO"; then :
10925  am_cv_langinfo_codeset=yes
10926else
10927  am_cv_langinfo_codeset=no
10928fi
10929rm -f core conftest.err conftest.$ac_objext \
10930    conftest$ac_exeext conftest.$ac_ext
10931
10932fi
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10934$as_echo "$am_cv_langinfo_codeset" >&6; }
10935  if test $am_cv_langinfo_codeset = yes; then
10936
10937$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10938
10939  fi
10940
10941
10942# We will need to find libiberty.h and ansidecl.h
10943saved_CFLAGS="$CFLAGS"
10944CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10945saved_CXXFLAGS="$CXXFLAGS"
10946CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10947
10948# gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10949# normal autoconf function for these.  But force definition of
10950# HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10951# basename handling in libiberty.h.
10952ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10953#undef HAVE_DECL_BASENAME
10954#define HAVE_DECL_BASENAME 1
10955#include \"ansidecl.h\"
10956#include \"system.h\"
10957"
10958if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10959  ac_have_decl=1
10960else
10961  ac_have_decl=0
10962fi
10963
10964cat >>confdefs.h <<_ACEOF
10965#define HAVE_DECL_BASENAME $ac_have_decl
10966_ACEOF
10967ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10968#undef HAVE_DECL_BASENAME
10969#define HAVE_DECL_BASENAME 1
10970#include \"ansidecl.h\"
10971#include \"system.h\"
10972"
10973if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10974  ac_have_decl=1
10975else
10976  ac_have_decl=0
10977fi
10978
10979cat >>confdefs.h <<_ACEOF
10980#define HAVE_DECL_STRSTR $ac_have_decl
10981_ACEOF
10982
10983
10984for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10985	madvise stpcpy strnlen strsignal strverscmp \
10986	strtol strtoul strtoll strtoull setenv unsetenv \
10987	errno snprintf vsnprintf vasprintf malloc realloc calloc \
10988	free getopt clock getpagesize ffs 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
10989do
10990  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10992$as_echo_n "checking whether $ac_func is declared... " >&6; }
10993if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10994  $as_echo_n "(cached) " >&6
10995else
10996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997/* end confdefs.h.  */
10998#undef $ac_tr_decl
10999#define $ac_tr_decl 1
11000
11001#include "ansidecl.h"
11002#include "system.h"
11003
11004int
11005main ()
11006{
11007#ifndef $ac_func
11008char *(*pfn) = (char *(*)) $ac_func ;
11009#endif
11010  ;
11011  return 0;
11012}
11013_ACEOF
11014if ac_fn_cxx_try_compile "$LINENO"; then :
11015  eval "gcc_cv_have_decl_$ac_func=yes"
11016else
11017  eval "gcc_cv_have_decl_$ac_func=no"
11018fi
11019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020fi
11021
11022if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11024$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11025#define $ac_tr_decl 1
11026_ACEOF
11027
11028else
11029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11031#define $ac_tr_decl 0
11032_ACEOF
11033
11034fi
11035
11036done
11037
11038
11039for ac_func in getrlimit setrlimit getrusage
11040do
11041  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11043$as_echo_n "checking whether $ac_func is declared... " >&6; }
11044if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11045  $as_echo_n "(cached) " >&6
11046else
11047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048/* end confdefs.h.  */
11049#undef $ac_tr_decl
11050#define $ac_tr_decl 1
11051
11052#include "ansidecl.h"
11053#include "system.h"
11054#ifdef HAVE_SYS_RESOURCE_H
11055#include <sys/resource.h>
11056#endif
11057
11058
11059int
11060main ()
11061{
11062#ifndef $ac_func
11063char *(*pfn) = (char *(*)) $ac_func ;
11064#endif
11065  ;
11066  return 0;
11067}
11068_ACEOF
11069if ac_fn_cxx_try_compile "$LINENO"; then :
11070  eval "gcc_cv_have_decl_$ac_func=yes"
11071else
11072  eval "gcc_cv_have_decl_$ac_func=no"
11073fi
11074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075fi
11076
11077if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11079$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11080#define $ac_tr_decl 1
11081_ACEOF
11082
11083else
11084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11086#define $ac_tr_decl 0
11087_ACEOF
11088
11089fi
11090
11091done
11092
11093
11094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095/* end confdefs.h.  */
11096
11097#include "ansidecl.h"
11098#include "system.h"
11099#ifdef HAVE_SYS_RESOURCE_H
11100#include <sys/resource.h>
11101#endif
11102
11103int
11104main ()
11105{
11106rlim_t l = 0;
11107  ;
11108  return 0;
11109}
11110_ACEOF
11111if ac_fn_cxx_try_compile "$LINENO"; then :
11112
11113else
11114
11115$as_echo "#define rlim_t long" >>confdefs.h
11116
11117fi
11118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119
11120# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11121# FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11122# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11123# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11124for ac_func in ldgetname
11125do
11126  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11128$as_echo_n "checking whether $ac_func is declared... " >&6; }
11129if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11130  $as_echo_n "(cached) " >&6
11131else
11132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133/* end confdefs.h.  */
11134#undef $ac_tr_decl
11135#define $ac_tr_decl 1
11136
11137#include "ansidecl.h"
11138#include "system.h"
11139#ifdef HAVE_LDFCN_H
11140#undef FREAD
11141#undef FWRITE
11142#include <ldfcn.h>
11143#endif
11144
11145
11146int
11147main ()
11148{
11149#ifndef $ac_func
11150char *(*pfn) = (char *(*)) $ac_func ;
11151#endif
11152  ;
11153  return 0;
11154}
11155_ACEOF
11156if ac_fn_cxx_try_compile "$LINENO"; then :
11157  eval "gcc_cv_have_decl_$ac_func=yes"
11158else
11159  eval "gcc_cv_have_decl_$ac_func=no"
11160fi
11161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162fi
11163
11164if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11166$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11167#define $ac_tr_decl 1
11168_ACEOF
11169
11170else
11171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11173#define $ac_tr_decl 0
11174_ACEOF
11175
11176fi
11177
11178done
11179
11180
11181for ac_func in times
11182do
11183  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11185$as_echo_n "checking whether $ac_func is declared... " >&6; }
11186if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11187  $as_echo_n "(cached) " >&6
11188else
11189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190/* end confdefs.h.  */
11191#undef $ac_tr_decl
11192#define $ac_tr_decl 1
11193
11194#include "ansidecl.h"
11195#include "system.h"
11196#ifdef HAVE_SYS_TIMES_H
11197#include <sys/times.h>
11198#endif
11199
11200
11201int
11202main ()
11203{
11204#ifndef $ac_func
11205char *(*pfn) = (char *(*)) $ac_func ;
11206#endif
11207  ;
11208  return 0;
11209}
11210_ACEOF
11211if ac_fn_cxx_try_compile "$LINENO"; then :
11212  eval "gcc_cv_have_decl_$ac_func=yes"
11213else
11214  eval "gcc_cv_have_decl_$ac_func=no"
11215fi
11216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217fi
11218
11219if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11221$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11222#define $ac_tr_decl 1
11223_ACEOF
11224
11225else
11226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11228#define $ac_tr_decl 0
11229_ACEOF
11230
11231fi
11232
11233done
11234
11235
11236for ac_func in sigaltstack
11237do
11238  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11240$as_echo_n "checking whether $ac_func is declared... " >&6; }
11241if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11242  $as_echo_n "(cached) " >&6
11243else
11244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245/* end confdefs.h.  */
11246#undef $ac_tr_decl
11247#define $ac_tr_decl 1
11248
11249#include "ansidecl.h"
11250#include "system.h"
11251#include <signal.h>
11252
11253
11254int
11255main ()
11256{
11257#ifndef $ac_func
11258char *(*pfn) = (char *(*)) $ac_func ;
11259#endif
11260  ;
11261  return 0;
11262}
11263_ACEOF
11264if ac_fn_cxx_try_compile "$LINENO"; then :
11265  eval "gcc_cv_have_decl_$ac_func=yes"
11266else
11267  eval "gcc_cv_have_decl_$ac_func=no"
11268fi
11269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11270fi
11271
11272if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11274$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11275#define $ac_tr_decl 1
11276_ACEOF
11277
11278else
11279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11280$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11281#define $ac_tr_decl 0
11282_ACEOF
11283
11284fi
11285
11286done
11287
11288
11289# More time-related stuff.
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11291$as_echo_n "checking for struct tms... " >&6; }
11292if test "${ac_cv_struct_tms+set}" = set; then :
11293  $as_echo_n "(cached) " >&6
11294else
11295
11296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297/* end confdefs.h.  */
11298
11299#include "ansidecl.h"
11300#include "system.h"
11301#ifdef HAVE_SYS_TIMES_H
11302#include <sys/times.h>
11303#endif
11304
11305int
11306main ()
11307{
11308struct tms tms;
11309  ;
11310  return 0;
11311}
11312_ACEOF
11313if ac_fn_cxx_try_compile "$LINENO"; then :
11314  ac_cv_struct_tms=yes
11315else
11316  ac_cv_struct_tms=no
11317fi
11318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319fi
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11321$as_echo "$ac_cv_struct_tms" >&6; }
11322if test $ac_cv_struct_tms = yes; then
11323
11324$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11325
11326fi
11327
11328# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11329# revisit after autoconf 2.50.
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11331$as_echo_n "checking for clock_t... " >&6; }
11332if test "${gcc_cv_type_clock_t+set}" = set; then :
11333  $as_echo_n "(cached) " >&6
11334else
11335
11336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337/* end confdefs.h.  */
11338
11339#include "ansidecl.h"
11340#include "system.h"
11341
11342int
11343main ()
11344{
11345clock_t x;
11346  ;
11347  return 0;
11348}
11349_ACEOF
11350if ac_fn_cxx_try_compile "$LINENO"; then :
11351  gcc_cv_type_clock_t=yes
11352else
11353  gcc_cv_type_clock_t=no
11354fi
11355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356fi
11357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11358$as_echo "$gcc_cv_type_clock_t" >&6; }
11359if test $gcc_cv_type_clock_t = yes; then
11360
11361$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11362
11363fi
11364
11365# Check if F_SETLKW is supported by fcntl.
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11367$as_echo_n "checking for F_SETLKW... " >&6; }
11368if test "${ac_cv_f_setlkw+set}" = set; then :
11369  $as_echo_n "(cached) " >&6
11370else
11371
11372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373/* end confdefs.h.  */
11374
11375#include <fcntl.h>
11376int
11377main ()
11378{
11379
11380struct flock fl;
11381fl.l_whence = 0;
11382fl.l_start = 0;
11383fl.l_len = 0;
11384fl.l_pid = 0;
11385return fcntl (1, F_SETLKW, &fl);
11386  ;
11387  return 0;
11388}
11389_ACEOF
11390if ac_fn_cxx_try_compile "$LINENO"; then :
11391  ac_cv_f_setlkw=yes
11392else
11393  ac_cv_f_setlkw=no
11394fi
11395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396fi
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11398$as_echo "$ac_cv_f_setlkw" >&6; }
11399if test $ac_cv_f_setlkw = yes; then
11400
11401$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11402
11403fi
11404
11405# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11406CFLAGS="$saved_CFLAGS"
11407CXXFLAGS="$saved_CXXFLAGS"
11408
11409# mkdir takes a single argument on some systems.
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11411$as_echo_n "checking if mkdir takes one argument... " >&6; }
11412if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11413  $as_echo_n "(cached) " >&6
11414else
11415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416/* end confdefs.h.  */
11417
11418#include <sys/types.h>
11419#ifdef HAVE_SYS_STAT_H
11420# include <sys/stat.h>
11421#endif
11422#ifdef HAVE_UNISTD_H
11423# include <unistd.h>
11424#endif
11425#ifdef HAVE_DIRECT_H
11426# include <direct.h>
11427#endif
11428int
11429main ()
11430{
11431mkdir ("foo", 0);
11432  ;
11433  return 0;
11434}
11435_ACEOF
11436if ac_fn_cxx_try_compile "$LINENO"; then :
11437  gcc_cv_mkdir_takes_one_arg=no
11438else
11439  gcc_cv_mkdir_takes_one_arg=yes
11440fi
11441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442fi
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11444$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11445if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11446
11447$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11448
11449fi
11450
11451
11452# File extensions
11453manext='.1'
11454objext='.o'
11455
11456
11457
11458# With Setjmp/Longjmp based exception handling.
11459# Check whether --enable-sjlj-exceptions was given.
11460if test "${enable_sjlj_exceptions+set}" = set; then :
11461  enableval=$enable_sjlj_exceptions; case $target in
11462  *-*-hpux10*)
11463    if test $enableval != yes; then
11464      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11465$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11466      enableval=yes
11467    fi
11468    ;;
11469esac
11470force_sjlj_exceptions=yes
11471else
11472  case $target in
11473  *-*-hpux10*)
11474    force_sjlj_exceptions=yes
11475    enableval=yes
11476    ;;
11477  lm32*-*-*)
11478     force_sjlj_exceptions=yes
11479     enableval=yes
11480     ;;
11481  *)
11482    force_sjlj_exceptions=no
11483    ;;
11484esac
11485fi
11486
11487if test $force_sjlj_exceptions = yes; then
11488  sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11489
11490cat >>confdefs.h <<_ACEOF
11491#define CONFIG_SJLJ_EXCEPTIONS $sjlj
11492_ACEOF
11493
11494fi
11495
11496# --------------------------------------------------------
11497# Build, host, and target specific configuration fragments
11498# --------------------------------------------------------
11499
11500# Collect build-machine-specific information.
11501. ${srcdir}/config.build || exit 1
11502
11503# Collect host-machine-specific information.
11504. ${srcdir}/config.host || exit 1
11505
11506target_gtfiles=
11507
11508# Collect target-machine-specific information.
11509. ${srcdir}/config.gcc || exit 1
11510
11511extra_objs="${host_extra_objs} ${extra_objs}"
11512extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11513
11514# Default the target-machine variables that were not explicitly set.
11515if test x"$tm_file" = x
11516then tm_file=$cpu_type/$cpu_type.h; fi
11517
11518if test x"$extra_headers" = x
11519then extra_headers=; fi
11520
11521if test x$md_file = x
11522then md_file=$cpu_type/$cpu_type.md; fi
11523
11524if test x$out_file = x
11525then out_file=$cpu_type/$cpu_type.c; fi
11526
11527if test x"$tmake_file" = x
11528then tmake_file=$cpu_type/t-$cpu_type
11529fi
11530
11531# Support --enable-initfini-array.
11532if test x$enable_initfini_array != xno; then
11533  tm_file="${tm_file} initfini-array.h"
11534fi
11535
11536if test x"$dwarf2" = xyes
11537then tm_file="$tm_file tm-dwarf2.h"
11538fi
11539
11540# Say what files are being used for the output code and MD file.
11541echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11542echo "Using \`$srcdir/config/$md_file' as machine description file."
11543
11544# If any of the xm_file variables contain nonexistent files, warn
11545# about them and drop them.
11546
11547bx=
11548for x in $build_xm_file; do
11549  if    test -f $srcdir/config/$x
11550  then      bx="$bx $x"
11551  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11552$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11553  fi
11554done
11555build_xm_file="$bx"
11556
11557hx=
11558for x in $host_xm_file; do
11559  if    test -f $srcdir/config/$x
11560  then      hx="$hx $x"
11561  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11562$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11563  fi
11564done
11565host_xm_file="$hx"
11566
11567tx=
11568for x in $xm_file; do
11569  if    test -f $srcdir/config/$x
11570  then      tx="$tx $x"
11571  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11572$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11573  fi
11574done
11575xm_file="$tx"
11576
11577count=a
11578for f in $tm_file; do
11579	count=${count}x
11580done
11581if test $count = ax; then
11582	echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11583else
11584	echo "Using the following target machine macro files:"
11585	for f in $tm_file; do
11586		echo "	$srcdir/config/$f"
11587	done
11588fi
11589
11590if test x$use_long_long_for_widest_fast_int = xyes; then
11591
11592$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11593
11594fi
11595
11596gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11597
11598cat >>confdefs.h <<_ACEOF
11599#define HAVE_GNU_LD $gnu_ld_bool
11600_ACEOF
11601
11602
11603gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11604
11605cat >>confdefs.h <<_ACEOF
11606#define HAVE_GNU_AS $gnu_as_bool
11607_ACEOF
11608
11609
11610count=a
11611for f in $host_xm_file; do
11612	count=${count}x
11613done
11614if test $count = a; then
11615	:
11616elif test $count = ax; then
11617	echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11618else
11619	echo "Using the following host machine macro files:"
11620	for f in $host_xm_file; do
11621		echo "	$srcdir/config/$f"
11622	done
11623fi
11624echo "Using ${out_host_hook_obj} for host machine hooks."
11625
11626if test "$host_xm_file" != "$build_xm_file"; then
11627	count=a
11628	for f in $build_xm_file; do
11629		count=${count}x
11630	done
11631	if test $count = a; then
11632		:
11633	elif test $count = ax; then
11634		echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11635	else
11636		echo "Using the following build machine macro files:"
11637		for f in $build_xm_file; do
11638			echo "	$srcdir/config/$f"
11639		done
11640	fi
11641fi
11642
11643if test -n "$configured_native_system_header_dir"; then
11644  native_system_header_dir=$configured_native_system_header_dir
11645fi
11646NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11647
11648
11649case ${host} in
11650  powerpc*-*-darwin*)
11651    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11652$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11653if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11654  $as_echo_n "(cached) " >&6
11655else
11656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657/* end confdefs.h.  */
11658
11659#include <sys/cdefs.h>
11660#include <sys/signal.h>
11661#include <ucontext.h>
11662int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11663
11664_ACEOF
11665if ac_fn_cxx_try_compile "$LINENO"; then :
11666  gcc_cv_mcontext_underscores=no
11667else
11668  gcc_cv_mcontext_underscores=yes
11669fi
11670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11671fi
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11673$as_echo "$gcc_cv_mcontext_underscores" >&6; }
11674      if test $gcc_cv_mcontext_underscores = yes; then
11675
11676$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11677
11678      fi
11679    ;;
11680esac
11681
11682# ---------
11683# Threading
11684# ---------
11685
11686# Check if a valid thread package
11687case ${enable_threads} in
11688  "" | no)
11689    # No threads
11690    target_thread_file='single'
11691    ;;
11692  yes)
11693    # default
11694    target_thread_file='single'
11695    ;;
11696  aix | dce | lynx | mipssde | posix | rtems | \
11697  single | tpf | vxworks | win32)
11698    target_thread_file=${enable_threads}
11699    ;;
11700  *)
11701    echo "${enable_threads} is an unknown thread package" 1>&2
11702    exit 1
11703    ;;
11704esac
11705
11706if test x${thread_file} = x; then
11707  # No thread file set by target-specific clauses in config.gcc,
11708  # so use file chosen by default logic above
11709  thread_file=${target_thread_file}
11710fi
11711
11712# --------
11713# UNSORTED
11714# --------
11715
11716use_cxa_atexit=no
11717if test x$enable___cxa_atexit = xyes || \
11718   test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11719  if test x$host = x$target; then
11720    case $host in
11721      # mingw32 doesn't have __cxa_atexit but uses atexit registration
11722      # keyed to flag_use_cxa_atexit
11723      *-*-mingw32*)
11724	use_cxa_atexit=yes
11725	;;
11726      powerpc-ibm-aix*)
11727	use_cxa_atexit=yes
11728	;;
11729      *)
11730	ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11731if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11732  use_cxa_atexit=yes
11733else
11734  echo "__cxa_atexit can't be enabled on this target"
11735fi
11736
11737	;;
11738    esac
11739  else
11740    # We can't check for __cxa_atexit when building a cross, so assume
11741    # it is available
11742    use_cxa_atexit=yes
11743  fi
11744  if test x$use_cxa_atexit = xyes; then
11745
11746$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11747
11748  fi
11749fi
11750
11751# Look for a file containing extra machine modes.
11752if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11753  extra_modes_file='$(srcdir)'/config/${extra_modes}
11754
11755
11756cat >>confdefs.h <<_ACEOF
11757#define EXTRA_MODES_FILE "config/$extra_modes"
11758_ACEOF
11759
11760fi
11761
11762# Convert extra_options into a form suitable for Makefile use.
11763extra_opt_files=
11764all_opt_files=
11765for f in $extra_options; do
11766  extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11767  all_opt_files="$all_opt_files $srcdir/config/$f"
11768done
11769
11770
11771# auto-host.h is the file containing items generated by autoconf and is
11772# the first file included by config.h.
11773# If host=build, it is correct to have bconfig include auto-host.h
11774# as well.  If host!=build, we are in error and need to do more
11775# work to find out the build config parameters.
11776if test x$host = x$build
11777then
11778	build_auto=auto-host.h
11779else
11780	# We create a subdir, then run autoconf in the subdir.
11781	# To prevent recursion we set host and build for the new
11782	# invocation of configure to the build for this invocation
11783	# of configure.
11784	tempdir=build.$$
11785	rm -rf $tempdir
11786	mkdir $tempdir
11787	cd $tempdir
11788	case ${srcdir} in
11789	/* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11790	*) realsrcdir=../${srcdir};;
11791	esac
11792	# Clearing GMPINC is necessary to prevent host headers being
11793	# used by the build compiler.  Defining GENERATOR_FILE stops
11794	# system.h from including gmp.h.
11795	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11796	CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11797	LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11798	GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11799	${realsrcdir}/configure \
11800		--enable-languages=${enable_languages-all} \
11801		--target=$target_alias --host=$build_alias --build=$build_alias
11802
11803	# We just finished tests for the build machine, so rename
11804	# the file auto-build.h in the gcc directory.
11805	mv auto-host.h ../auto-build.h
11806	cd ..
11807	rm -rf $tempdir
11808	build_auto=auto-build.h
11809fi
11810
11811
11812tm_file="${tm_file} defaults.h"
11813tm_p_file="${tm_p_file} tm-preds.h"
11814host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11815build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11816# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11817# put this back in temporarily.
11818xm_file="auto-host.h ansidecl.h ${xm_file}"
11819
11820# --------
11821# UNSORTED
11822# --------
11823
11824# Compile in configure arguments.
11825if test -f configargs.h ; then
11826	# Being re-configured.
11827	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11828	gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11829else
11830	gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11831fi
11832
11833# Double all backslashes and backslash all quotes to turn
11834# gcc_config_arguments into a C string.
11835sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11836$gcc_config_arguments
11837EOF
11838gcc_config_arguments_str=`cat conftest.out`
11839rm -f conftest.out
11840
11841cat > configargs.h <<EOF
11842/* Generated automatically. */
11843static const char configuration_arguments[] = "$gcc_config_arguments_str";
11844static const char thread_model[] = "$thread_file";
11845
11846static const struct {
11847  const char *name, *value;
11848} configure_default_options[] = $configure_default_options;
11849EOF
11850
11851gcc_BASEVER=`cat $srcdir/BASE-VER`
11852gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11853gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11854if test -f $srcdir/REVISION ; then
11855	gcc_REVISION=`cat $srcdir/REVISION`
11856else
11857        gcc_REVISION=""
11858fi
11859cat > plugin-version.h <<EOF
11860#include "configargs.h"
11861
11862#define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11863#define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11864#define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11865#define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11866
11867static char basever[] = "$gcc_BASEVER";
11868static char datestamp[] = "$gcc_DATESTAMP";
11869static char devphase[] = "$gcc_DEVPHASE";
11870static char revision[] = "$gcc_REVISION";
11871
11872/* FIXME plugins: We should make the version information more precise.
11873   One way to do is to add a checksum. */
11874
11875static struct plugin_gcc_version gcc_version = {basever, datestamp,
11876						devphase, revision,
11877						configuration_arguments};
11878EOF
11879
11880# Determine what GCC version number to use in filesystem paths.
11881
11882  get_gcc_base_ver="cat"
11883
11884# Check whether --with-gcc-major-version-only was given.
11885if test "${with_gcc_major_version_only+set}" = set; then :
11886  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11887        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11888      fi
11889
11890fi
11891
11892
11893
11894
11895# Internationalization
11896# If we haven't got the data from the intl directory,
11897# assume NLS is disabled.
11898USE_NLS=no
11899LIBINTL=
11900LIBINTL_DEP=
11901INCINTL=
11902XGETTEXT=
11903GMSGFMT=
11904POSUB=
11905
11906if test -f  ../intl/config.intl; then
11907  .  ../intl/config.intl
11908fi
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11910$as_echo_n "checking whether NLS is requested... " >&6; }
11911if test x"$USE_NLS" != xyes; then
11912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913$as_echo "no" >&6; }
11914else
11915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11916$as_echo "yes" >&6; }
11917
11918$as_echo "#define ENABLE_NLS 1" >>confdefs.h
11919
11920
11921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11922$as_echo_n "checking for catalogs to be installed... " >&6; }
11923  # Look for .po and .gmo files in the source directory.
11924  CATALOGS=
11925  XLINGUAS=
11926  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11927    # If there aren't any .gmo files the shell will give us the
11928    # literal string "../path/to/srcdir/po/*.gmo" which has to be
11929    # weeded out.
11930    case "$cat" in *\**)
11931      continue;;
11932    esac
11933    # The quadruple backslash is collapsed to a double backslash
11934    # by the backticks, then collapsed again by the double quotes,
11935    # leaving us with one backslash in the sed expression (right
11936    # before the dot that mustn't act as a wildcard).
11937    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11938    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11939    # The user is allowed to set LINGUAS to a list of languages to
11940    # install catalogs for.  If it's empty that means "all of them."
11941    if test "x$LINGUAS" = x; then
11942      CATALOGS="$CATALOGS $cat"
11943      XLINGUAS="$XLINGUAS $lang"
11944    else
11945      case "$LINGUAS" in *$lang*)
11946        CATALOGS="$CATALOGS $cat"
11947        XLINGUAS="$XLINGUAS $lang"
11948        ;;
11949      esac
11950    fi
11951  done
11952  LINGUAS="$XLINGUAS"
11953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11954$as_echo "$LINGUAS" >&6; }
11955
11956
11957    DATADIRNAME=share
11958
11959  INSTOBJEXT=.mo
11960
11961  GENCAT=gencat
11962
11963  CATOBJEXT=.gmo
11964
11965fi
11966
11967# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11968# -liconv on the link line twice.
11969case "$LIBINTL" in *$LIBICONV*)
11970	LIBICONV= ;;
11971esac
11972
11973# Check whether --enable-secureplt was given.
11974if test "${enable_secureplt+set}" = set; then :
11975  enableval=$enable_secureplt;
11976fi
11977
11978
11979# Check whether --enable-mingw-wildcard was given.
11980if test "${enable_mingw_wildcard+set}" = set; then :
11981  enableval=$enable_mingw_wildcard;
11982else
11983  enable_mingw_wildcard=platform
11984fi
11985
11986if test x"$enable_mingw_wildcard" != xplatform ; then :
11987
11988cat >>confdefs.h <<_ACEOF
11989#define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
11990_ACEOF
11991
11992fi
11993
11994# Check whether --enable-leading-mingw64-underscores was given.
11995if test "${enable_leading_mingw64_underscores+set}" = set; then :
11996  enableval=$enable_leading_mingw64_underscores;
11997fi
11998
11999if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
12000
12001$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12002
12003fi
12004
12005# Check whether --enable-cld was given.
12006if test "${enable_cld+set}" = set; then :
12007  enableval=$enable_cld;
12008else
12009  enable_cld=no
12010fi
12011
12012
12013# Check whether --enable-frame-pointer was given.
12014if test "${enable_frame_pointer+set}" = set; then :
12015  enableval=$enable_frame_pointer;
12016else
12017
12018case $target_os in
12019linux* | darwin[8912]*)
12020  # Enable -fomit-frame-pointer by default for Linux and Darwin with
12021  # DWARF2.
12022  enable_frame_pointer=no
12023  ;;
12024*)
12025  enable_frame_pointer=yes
12026  ;;
12027esac
12028
12029fi
12030
12031
12032# Windows32 Registry support for specifying GCC installation paths.
12033# Check whether --enable-win32-registry was given.
12034if test "${enable_win32_registry+set}" = set; then :
12035  enableval=$enable_win32_registry;
12036fi
12037
12038
12039case $host_os in
12040  win32 | pe | cygwin* | mingw32*)
12041    if test "x$enable_win32_registry" != xno; then
12042      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12043$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12044if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12045  $as_echo_n "(cached) " >&6
12046else
12047  ac_func_search_save_LIBS=$LIBS
12048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049/* end confdefs.h.  */
12050
12051/* Override any GCC internal prototype to avoid an error.
12052   Use char because int might match the return type of a GCC
12053   builtin and then its argument prototype would still apply.  */
12054#ifdef __cplusplus
12055extern "C"
12056#endif
12057char RegOpenKeyExA ();
12058int
12059main ()
12060{
12061return RegOpenKeyExA ();
12062  ;
12063  return 0;
12064}
12065_ACEOF
12066for ac_lib in '' advapi32; do
12067  if test -z "$ac_lib"; then
12068    ac_res="none required"
12069  else
12070    ac_res=-l$ac_lib
12071    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12072  fi
12073  if ac_fn_cxx_try_link "$LINENO"; then :
12074  ac_cv_search_RegOpenKeyExA=$ac_res
12075fi
12076rm -f core conftest.err conftest.$ac_objext \
12077    conftest$ac_exeext
12078  if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12079  break
12080fi
12081done
12082if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12083
12084else
12085  ac_cv_search_RegOpenKeyExA=no
12086fi
12087rm conftest.$ac_ext
12088LIBS=$ac_func_search_save_LIBS
12089fi
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12091$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12092ac_res=$ac_cv_search_RegOpenKeyExA
12093if test "$ac_res" != no; then :
12094  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12095
12096else
12097  enable_win32_registry=no
12098fi
12099
12100    fi
12101
12102    if test "x$enable_win32_registry" != xno; then
12103
12104$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12105
12106
12107      if test "x$enable_win32_registry" != xyes \
12108         && test "x$enable_win32_registry" != x; then
12109
12110cat >>confdefs.h <<_ACEOF
12111#define WIN32_REGISTRY_KEY "$enable_win32_registry"
12112_ACEOF
12113
12114      fi
12115    fi
12116  ;;
12117esac
12118
12119# Get an absolute path to the GCC top-level source directory
12120holddir=`${PWDCMD-pwd}`
12121cd $srcdir
12122topdir=`${PWDCMD-pwd}`
12123cd $holddir
12124
12125# Conditionalize the makefile for this host machine.
12126xmake_file=
12127for f in ${host_xmake_file}
12128do
12129	if test -f ${srcdir}/config/$f
12130	then
12131		xmake_file="${xmake_file} \$(srcdir)/config/$f"
12132	fi
12133done
12134
12135# Conditionalize the makefile for this target machine.
12136tmake_file_=
12137for f in ${tmake_file}
12138do
12139	if test -f ${srcdir}/config/$f
12140	then
12141		tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12142	fi
12143done
12144tmake_file="${tmake_file_}"
12145
12146out_object_file=`basename $out_file .c`.o
12147common_out_object_file=`basename $common_out_file .c`.o
12148
12149tm_file_list="options.h"
12150tm_include_list="options.h insn-constants.h"
12151for f in $tm_file; do
12152  case $f in
12153    ./* )
12154       f=`echo $f | sed 's/^..//'`
12155       tm_file_list="${tm_file_list} $f"
12156       tm_include_list="${tm_include_list} $f"
12157       ;;
12158    defaults.h )
12159       tm_file_list="${tm_file_list} \$(srcdir)/$f"
12160       tm_include_list="${tm_include_list} $f"
12161       ;;
12162    * )
12163       tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12164       tm_include_list="${tm_include_list} config/$f"
12165       ;;
12166  esac
12167done
12168
12169tm_p_file_list=
12170tm_p_include_list=
12171for f in $tm_p_file; do
12172  case $f in
12173    tm-preds.h )
12174       tm_p_file_list="${tm_p_file_list} $f"
12175       tm_p_include_list="${tm_p_include_list} $f"
12176       ;;
12177    * )
12178       tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12179       tm_p_include_list="${tm_p_include_list} config/$f"
12180  esac
12181done
12182
12183xm_file_list=
12184xm_include_list=
12185for f in $xm_file; do
12186  case $f in
12187    ansidecl.h )
12188       xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12189       xm_include_list="${xm_include_list} $f"
12190       ;;
12191    auto-host.h )
12192       xm_file_list="${xm_file_list} $f"
12193       xm_include_list="${xm_include_list} $f"
12194       ;;
12195    * )
12196       xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12197       xm_include_list="${xm_include_list} config/$f"
12198       ;;
12199  esac
12200done
12201
12202host_xm_file_list=
12203host_xm_include_list=
12204for f in $host_xm_file; do
12205  case $f in
12206    ansidecl.h )
12207       host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12208       host_xm_include_list="${host_xm_include_list} $f"
12209       ;;
12210    auto-host.h )
12211       host_xm_file_list="${host_xm_file_list} $f"
12212       host_xm_include_list="${host_xm_include_list} $f"
12213       ;;
12214    * )
12215       host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12216       host_xm_include_list="${host_xm_include_list} config/$f"
12217       ;;
12218  esac
12219done
12220
12221build_xm_file_list=
12222for f in $build_xm_file; do
12223  case $f in
12224    ansidecl.h )
12225       build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12226       build_xm_include_list="${build_xm_include_list} $f"
12227       ;;
12228    auto-build.h | auto-host.h )
12229       build_xm_file_list="${build_xm_file_list} $f"
12230       build_xm_include_list="${build_xm_include_list} $f"
12231       ;;
12232    * )
12233       build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12234       build_xm_include_list="${build_xm_include_list} config/$f"
12235       ;;
12236  esac
12237done
12238
12239# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12240# cross-compiler which does not use the native headers and libraries.
12241# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12242CROSS=
12243ALL=all.internal
12244SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12245BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12246
12247if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12248   test x$build != x$host || test "x$with_build_sysroot" != x; then
12249  if test "x$with_build_sysroot" != x; then
12250    BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12251  else
12252    BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12253  fi
12254
12255  if test x$host != x$target
12256  then
12257    CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12258    ALL=all.cross
12259    SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12260  elif test "x$TARGET_SYSTEM_ROOT" != x; then
12261    SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12262  fi
12263
12264  if test "x$with_build_sysroot" != "x"; then
12265    target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12266  elif test "x$with_sysroot" = x; then
12267    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12268  elif test "x$with_sysroot" = xyes; then
12269    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12270  else
12271    target_header_dir="${with_sysroot}${native_system_header_dir}"
12272  fi
12273else
12274  target_header_dir=${native_system_header_dir}
12275fi
12276
12277# If this is a cross-compiler that does not
12278# have its own set of headers then define
12279# inhibit_libc
12280
12281# If this is using newlib, without having the headers available now,
12282# then define inhibit_libc in LIBGCC2_CFLAGS.
12283# This prevents libgcc2 from containing any code which requires libc
12284# support.
12285: ${inhibit_libc=false}
12286if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12287       test x$with_newlib = xyes ; } &&
12288     { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12289       inhibit_libc=true
12290fi
12291
12292
12293# When building gcc with a cross-compiler, we need to adjust things so
12294# that the generator programs are still built with the native compiler.
12295# Also, we cannot run fixincludes.
12296
12297# These are the normal (build=host) settings:
12298CC_FOR_BUILD='$(CC)'
12299CXX_FOR_BUILD='$(CXX)'
12300BUILD_CFLAGS='$(ALL_CFLAGS)'
12301BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12302BUILD_LDFLAGS='$(LDFLAGS)'
12303STMP_FIXINC=stmp-fixinc
12304
12305BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12306BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12307
12308# And these apply if build != host, or we are generating coverage data
12309if test x$build != x$host || test "x$coverage_flags" != x
12310then
12311    BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12312    BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12313    BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12314
12315    NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12316    NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12317    BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12318    BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12319fi
12320
12321
12322
12323# Expand extra_headers to include complete path.
12324# This substitutes for lots of t-* files.
12325extra_headers_list=
12326# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12327for file in ${extra_headers} ; do
12328  extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12329done
12330
12331# If use_gcc_tgmath is set, append ginclude/tgmath.h.
12332if test x"$use_gcc_tgmath" = xyes
12333then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12334fi
12335
12336# Define collect2 in Makefile.
12337case $host_can_use_collect2 in
12338  no) collect2= ;;
12339  *) collect2='collect2$(exeext)' ;;
12340esac
12341
12342
12343# Add a definition of USE_COLLECT2 if system wants one.
12344case $use_collect2 in
12345  no) use_collect2= ;;
12346  "") ;;
12347  *)
12348    host_xm_defines="${host_xm_defines} USE_COLLECT2"
12349    xm_defines="${xm_defines} USE_COLLECT2"
12350    case $host_can_use_collect2 in
12351      no)
12352        as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12353        ;;
12354    esac
12355    ;;
12356esac
12357
12358
12359cat >>confdefs.h <<_ACEOF
12360#define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12361_ACEOF
12362
12363
12364# ---------------------------
12365# Assembler & linker features
12366# ---------------------------
12367
12368# During stage 2, ld is actually gcc/collect-ld, which is a small script to
12369# discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12370# However when ld-new is first executed from the build tree, libtool will
12371# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12372# to the build tree.  While doing this we need to use the previous-stage
12373# linker, or we have an infinite loop.  The presence of a shell script as
12374# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12375# the gcc/collect-ld script.  So we need to know how libtool works, or
12376# exec-tool will fail.
12377
12378
12379case `pwd` in
12380  *\ * | *\	*)
12381    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12382$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12383esac
12384
12385
12386
12387macro_version='2.2.7a'
12388macro_revision='1.3134'
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402ltmain="$ac_aux_dir/ltmain.sh"
12403
12404# Backslashify metacharacters that are still active within
12405# double-quoted strings.
12406sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12407
12408# Same as above, but do not quote variable references.
12409double_quote_subst='s/\(["`\\]\)/\\\1/g'
12410
12411# Sed substitution to delay expansion of an escaped shell variable in a
12412# double_quote_subst'ed string.
12413delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12414
12415# Sed substitution to delay expansion of an escaped single quote.
12416delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12417
12418# Sed substitution to avoid accidental globbing in evaled expressions
12419no_glob_subst='s/\*/\\\*/g'
12420
12421ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12422ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12423ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12424
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12426$as_echo_n "checking how to print strings... " >&6; }
12427# Test print first, because it will be a builtin if present.
12428if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12429   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12430  ECHO='print -r --'
12431elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12432  ECHO='printf %s\n'
12433else
12434  # Use this function as a fallback that always works.
12435  func_fallback_echo ()
12436  {
12437    eval 'cat <<_LTECHO_EOF
12438$1
12439_LTECHO_EOF'
12440  }
12441  ECHO='func_fallback_echo'
12442fi
12443
12444# func_echo_all arg...
12445# Invoke $ECHO with all args, space-separated.
12446func_echo_all ()
12447{
12448    $ECHO ""
12449}
12450
12451case "$ECHO" in
12452  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12453$as_echo "printf" >&6; } ;;
12454  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12455$as_echo "print -r" >&6; } ;;
12456  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12457$as_echo "cat" >&6; } ;;
12458esac
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12474$as_echo_n "checking for a sed that does not truncate output... " >&6; }
12475if test "${ac_cv_path_SED+set}" = set; then :
12476  $as_echo_n "(cached) " >&6
12477else
12478            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12479     for ac_i in 1 2 3 4 5 6 7; do
12480       ac_script="$ac_script$as_nl$ac_script"
12481     done
12482     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12483     { ac_script=; unset ac_script;}
12484     if test -z "$SED"; then
12485  ac_path_SED_found=false
12486  # Loop through the user's path and test for each of PROGNAME-LIST
12487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12488for as_dir in $PATH
12489do
12490  IFS=$as_save_IFS
12491  test -z "$as_dir" && as_dir=.
12492    for ac_prog in sed gsed; do
12493    for ac_exec_ext in '' $ac_executable_extensions; do
12494      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12495      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12496# Check for GNU ac_path_SED and select it if it is found.
12497  # Check for GNU $ac_path_SED
12498case `"$ac_path_SED" --version 2>&1` in
12499*GNU*)
12500  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12501*)
12502  ac_count=0
12503  $as_echo_n 0123456789 >"conftest.in"
12504  while :
12505  do
12506    cat "conftest.in" "conftest.in" >"conftest.tmp"
12507    mv "conftest.tmp" "conftest.in"
12508    cp "conftest.in" "conftest.nl"
12509    $as_echo '' >> "conftest.nl"
12510    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12511    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12512    as_fn_arith $ac_count + 1 && ac_count=$as_val
12513    if test $ac_count -gt ${ac_path_SED_max-0}; then
12514      # Best one so far, save it but keep looking for a better one
12515      ac_cv_path_SED="$ac_path_SED"
12516      ac_path_SED_max=$ac_count
12517    fi
12518    # 10*(2^10) chars as input seems more than enough
12519    test $ac_count -gt 10 && break
12520  done
12521  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12522esac
12523
12524      $ac_path_SED_found && break 3
12525    done
12526  done
12527  done
12528IFS=$as_save_IFS
12529  if test -z "$ac_cv_path_SED"; then
12530    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12531  fi
12532else
12533  ac_cv_path_SED=$SED
12534fi
12535
12536fi
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12538$as_echo "$ac_cv_path_SED" >&6; }
12539 SED="$ac_cv_path_SED"
12540  rm -f conftest.sed
12541
12542test -z "$SED" && SED=sed
12543Xsed="$SED -e 1s/^X//"
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12556$as_echo_n "checking for fgrep... " >&6; }
12557if test "${ac_cv_path_FGREP+set}" = set; then :
12558  $as_echo_n "(cached) " >&6
12559else
12560  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12561   then ac_cv_path_FGREP="$GREP -F"
12562   else
12563     if test -z "$FGREP"; then
12564  ac_path_FGREP_found=false
12565  # Loop through the user's path and test for each of PROGNAME-LIST
12566  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12568do
12569  IFS=$as_save_IFS
12570  test -z "$as_dir" && as_dir=.
12571    for ac_prog in fgrep; do
12572    for ac_exec_ext in '' $ac_executable_extensions; do
12573      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12574      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12575# Check for GNU ac_path_FGREP and select it if it is found.
12576  # Check for GNU $ac_path_FGREP
12577case `"$ac_path_FGREP" --version 2>&1` in
12578*GNU*)
12579  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12580*)
12581  ac_count=0
12582  $as_echo_n 0123456789 >"conftest.in"
12583  while :
12584  do
12585    cat "conftest.in" "conftest.in" >"conftest.tmp"
12586    mv "conftest.tmp" "conftest.in"
12587    cp "conftest.in" "conftest.nl"
12588    $as_echo 'FGREP' >> "conftest.nl"
12589    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12590    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12591    as_fn_arith $ac_count + 1 && ac_count=$as_val
12592    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12593      # Best one so far, save it but keep looking for a better one
12594      ac_cv_path_FGREP="$ac_path_FGREP"
12595      ac_path_FGREP_max=$ac_count
12596    fi
12597    # 10*(2^10) chars as input seems more than enough
12598    test $ac_count -gt 10 && break
12599  done
12600  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12601esac
12602
12603      $ac_path_FGREP_found && break 3
12604    done
12605  done
12606  done
12607IFS=$as_save_IFS
12608  if test -z "$ac_cv_path_FGREP"; then
12609    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12610  fi
12611else
12612  ac_cv_path_FGREP=$FGREP
12613fi
12614
12615   fi
12616fi
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12618$as_echo "$ac_cv_path_FGREP" >&6; }
12619 FGREP="$ac_cv_path_FGREP"
12620
12621
12622test -z "$GREP" && GREP=grep
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642# Check whether --with-gnu-ld was given.
12643if test "${with_gnu_ld+set}" = set; then :
12644  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12645else
12646  with_gnu_ld=no
12647fi
12648
12649ac_prog=ld
12650if test "$GCC" = yes; then
12651  # Check if gcc -print-prog-name=ld gives a path.
12652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12653$as_echo_n "checking for ld used by $CC... " >&6; }
12654  case $host in
12655  *-*-mingw*)
12656    # gcc leaves a trailing carriage return which upsets mingw
12657    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12658  *)
12659    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12660  esac
12661  case $ac_prog in
12662    # Accept absolute paths.
12663    [\\/]* | ?:[\\/]*)
12664      re_direlt='/[^/][^/]*/\.\./'
12665      # Canonicalize the pathname of ld
12666      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12667      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12668	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12669      done
12670      test -z "$LD" && LD="$ac_prog"
12671      ;;
12672  "")
12673    # If it fails, then pretend we aren't using GCC.
12674    ac_prog=ld
12675    ;;
12676  *)
12677    # If it is relative, then search for the first ld in PATH.
12678    with_gnu_ld=unknown
12679    ;;
12680  esac
12681elif test "$with_gnu_ld" = yes; then
12682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12683$as_echo_n "checking for GNU ld... " >&6; }
12684else
12685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12686$as_echo_n "checking for non-GNU ld... " >&6; }
12687fi
12688if test "${lt_cv_path_LD+set}" = set; then :
12689  $as_echo_n "(cached) " >&6
12690else
12691  if test -z "$LD"; then
12692  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12693  for ac_dir in $PATH; do
12694    IFS="$lt_save_ifs"
12695    test -z "$ac_dir" && ac_dir=.
12696    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12697      lt_cv_path_LD="$ac_dir/$ac_prog"
12698      # Check to see if the program is GNU ld.  I'd rather use --version,
12699      # but apparently some variants of GNU ld only accept -v.
12700      # Break only if it was the GNU/non-GNU ld that we prefer.
12701      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12702      *GNU* | *'with BFD'*)
12703	test "$with_gnu_ld" != no && break
12704	;;
12705      *)
12706	test "$with_gnu_ld" != yes && break
12707	;;
12708      esac
12709    fi
12710  done
12711  IFS="$lt_save_ifs"
12712else
12713  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12714fi
12715fi
12716
12717LD="$lt_cv_path_LD"
12718if test -n "$LD"; then
12719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12720$as_echo "$LD" >&6; }
12721else
12722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723$as_echo "no" >&6; }
12724fi
12725test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12727$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12728if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12729  $as_echo_n "(cached) " >&6
12730else
12731  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12732case `$LD -v 2>&1 </dev/null` in
12733*GNU* | *'with BFD'*)
12734  lt_cv_prog_gnu_ld=yes
12735  ;;
12736*)
12737  lt_cv_prog_gnu_ld=no
12738  ;;
12739esac
12740fi
12741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12742$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12743with_gnu_ld=$lt_cv_prog_gnu_ld
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12754$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12755if test "${lt_cv_path_NM+set}" = set; then :
12756  $as_echo_n "(cached) " >&6
12757else
12758  if test -n "$NM"; then
12759  # Let the user override the test.
12760  lt_cv_path_NM="$NM"
12761else
12762  lt_nm_to_check="${ac_tool_prefix}nm"
12763  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12764    lt_nm_to_check="$lt_nm_to_check nm"
12765  fi
12766  for lt_tmp_nm in $lt_nm_to_check; do
12767    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12768    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12769      IFS="$lt_save_ifs"
12770      test -z "$ac_dir" && ac_dir=.
12771      tmp_nm="$ac_dir/$lt_tmp_nm"
12772      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12773	# Check to see if the nm accepts a BSD-compat flag.
12774	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
12775	#   nm: unknown option "B" ignored
12776	# Tru64's nm complains that /dev/null is an invalid object file
12777	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12778	*/dev/null* | *'Invalid file or object type'*)
12779	  lt_cv_path_NM="$tmp_nm -B"
12780	  break
12781	  ;;
12782	*)
12783	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12784	  */dev/null*)
12785	    lt_cv_path_NM="$tmp_nm -p"
12786	    break
12787	    ;;
12788	  *)
12789	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12790	    continue # so that we can try to find one that supports BSD flags
12791	    ;;
12792	  esac
12793	  ;;
12794	esac
12795      fi
12796    done
12797    IFS="$lt_save_ifs"
12798  done
12799  : ${lt_cv_path_NM=no}
12800fi
12801fi
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12803$as_echo "$lt_cv_path_NM" >&6; }
12804if test "$lt_cv_path_NM" != "no"; then
12805  NM="$lt_cv_path_NM"
12806else
12807  # Didn't find any BSD compatible name lister, look for dumpbin.
12808  if test -n "$DUMPBIN"; then :
12809    # Let the user override the test.
12810  else
12811    if test -n "$ac_tool_prefix"; then
12812  for ac_prog in dumpbin "link -dump"
12813  do
12814    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12815set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817$as_echo_n "checking for $ac_word... " >&6; }
12818if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12819  $as_echo_n "(cached) " >&6
12820else
12821  if test -n "$DUMPBIN"; then
12822  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12823else
12824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825for as_dir in $PATH
12826do
12827  IFS=$as_save_IFS
12828  test -z "$as_dir" && as_dir=.
12829    for ac_exec_ext in '' $ac_executable_extensions; do
12830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12831    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12833    break 2
12834  fi
12835done
12836  done
12837IFS=$as_save_IFS
12838
12839fi
12840fi
12841DUMPBIN=$ac_cv_prog_DUMPBIN
12842if test -n "$DUMPBIN"; then
12843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12844$as_echo "$DUMPBIN" >&6; }
12845else
12846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847$as_echo "no" >&6; }
12848fi
12849
12850
12851    test -n "$DUMPBIN" && break
12852  done
12853fi
12854if test -z "$DUMPBIN"; then
12855  ac_ct_DUMPBIN=$DUMPBIN
12856  for ac_prog in dumpbin "link -dump"
12857do
12858  # Extract the first word of "$ac_prog", so it can be a program name with args.
12859set dummy $ac_prog; ac_word=$2
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12861$as_echo_n "checking for $ac_word... " >&6; }
12862if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12863  $as_echo_n "(cached) " >&6
12864else
12865  if test -n "$ac_ct_DUMPBIN"; then
12866  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12867else
12868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12869for as_dir in $PATH
12870do
12871  IFS=$as_save_IFS
12872  test -z "$as_dir" && as_dir=.
12873    for ac_exec_ext in '' $ac_executable_extensions; do
12874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12875    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12877    break 2
12878  fi
12879done
12880  done
12881IFS=$as_save_IFS
12882
12883fi
12884fi
12885ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12886if test -n "$ac_ct_DUMPBIN"; then
12887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12888$as_echo "$ac_ct_DUMPBIN" >&6; }
12889else
12890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891$as_echo "no" >&6; }
12892fi
12893
12894
12895  test -n "$ac_ct_DUMPBIN" && break
12896done
12897
12898  if test "x$ac_ct_DUMPBIN" = x; then
12899    DUMPBIN=":"
12900  else
12901    case $cross_compiling:$ac_tool_warned in
12902yes:)
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12905ac_tool_warned=yes ;;
12906esac
12907    DUMPBIN=$ac_ct_DUMPBIN
12908  fi
12909fi
12910
12911    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12912    *COFF*)
12913      DUMPBIN="$DUMPBIN -symbols"
12914      ;;
12915    *)
12916      DUMPBIN=:
12917      ;;
12918    esac
12919  fi
12920
12921  if test "$DUMPBIN" != ":"; then
12922    NM="$DUMPBIN"
12923  fi
12924fi
12925test -z "$NM" && NM=nm
12926
12927
12928
12929
12930
12931
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12933$as_echo_n "checking the name lister ($NM) interface... " >&6; }
12934if test "${lt_cv_nm_interface+set}" = set; then :
12935  $as_echo_n "(cached) " >&6
12936else
12937  lt_cv_nm_interface="BSD nm"
12938  echo "int some_variable = 0;" > conftest.$ac_ext
12939  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12940  (eval "$ac_compile" 2>conftest.err)
12941  cat conftest.err >&5
12942  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12943  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12944  cat conftest.err >&5
12945  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12946  cat conftest.out >&5
12947  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12948    lt_cv_nm_interface="MS dumpbin"
12949  fi
12950  rm -f conftest*
12951fi
12952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12953$as_echo "$lt_cv_nm_interface" >&6; }
12954
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12956$as_echo_n "checking whether ln -s works... " >&6; }
12957LN_S=$as_ln_s
12958if test "$LN_S" = "ln -s"; then
12959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12960$as_echo "yes" >&6; }
12961else
12962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12963$as_echo "no, using $LN_S" >&6; }
12964fi
12965
12966# find the maximum length of command line arguments
12967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12968$as_echo_n "checking the maximum length of command line arguments... " >&6; }
12969if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12970  $as_echo_n "(cached) " >&6
12971else
12972    i=0
12973  teststring="ABCD"
12974
12975  case $build_os in
12976  msdosdjgpp*)
12977    # On DJGPP, this test can blow up pretty badly due to problems in libc
12978    # (any single argument exceeding 2000 bytes causes a buffer overrun
12979    # during glob expansion).  Even if it were fixed, the result of this
12980    # check would be larger than it should be.
12981    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12982    ;;
12983
12984  gnu*)
12985    # Under GNU Hurd, this test is not required because there is
12986    # no limit to the length of command line arguments.
12987    # Libtool will interpret -1 as no limit whatsoever
12988    lt_cv_sys_max_cmd_len=-1;
12989    ;;
12990
12991  cygwin* | mingw* | cegcc*)
12992    # On Win9x/ME, this test blows up -- it succeeds, but takes
12993    # about 5 minutes as the teststring grows exponentially.
12994    # Worse, since 9x/ME are not pre-emptively multitasking,
12995    # you end up with a "frozen" computer, even though with patience
12996    # the test eventually succeeds (with a max line length of 256k).
12997    # Instead, let's just punt: use the minimum linelength reported by
12998    # all of the supported platforms: 8192 (on NT/2K/XP).
12999    lt_cv_sys_max_cmd_len=8192;
13000    ;;
13001
13002  mint*)
13003    # On MiNT this can take a long time and run out of memory.
13004    lt_cv_sys_max_cmd_len=8192;
13005    ;;
13006
13007  amigaos*)
13008    # On AmigaOS with pdksh, this test takes hours, literally.
13009    # So we just punt and use a minimum line length of 8192.
13010    lt_cv_sys_max_cmd_len=8192;
13011    ;;
13012
13013  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13014    # This has been around since 386BSD, at least.  Likely further.
13015    if test -x /sbin/sysctl; then
13016      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13017    elif test -x /usr/sbin/sysctl; then
13018      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13019    else
13020      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13021    fi
13022    # And add a safety zone
13023    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13024    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13025    ;;
13026
13027  interix*)
13028    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13029    lt_cv_sys_max_cmd_len=196608
13030    ;;
13031
13032  osf*)
13033    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13034    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13035    # nice to cause kernel panics so lets avoid the loop below.
13036    # First set a reasonable default.
13037    lt_cv_sys_max_cmd_len=16384
13038    #
13039    if test -x /sbin/sysconfig; then
13040      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13041        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13042      esac
13043    fi
13044    ;;
13045  sco3.2v5*)
13046    lt_cv_sys_max_cmd_len=102400
13047    ;;
13048  sysv5* | sco5v6* | sysv4.2uw2*)
13049    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13050    if test -n "$kargmax"; then
13051      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
13052    else
13053      lt_cv_sys_max_cmd_len=32768
13054    fi
13055    ;;
13056  *)
13057    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13058    if test -n "$lt_cv_sys_max_cmd_len"; then
13059      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13060      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13061    else
13062      # Make teststring a little bigger before we do anything with it.
13063      # a 1K string should be a reasonable start.
13064      for i in 1 2 3 4 5 6 7 8 ; do
13065        teststring=$teststring$teststring
13066      done
13067      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13068      # If test is not a shell built-in, we'll probably end up computing a
13069      # maximum length that is only half of the actual maximum length, but
13070      # we can't tell.
13071      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13072	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13073	      test $i != 17 # 1/2 MB should be enough
13074      do
13075        i=`expr $i + 1`
13076        teststring=$teststring$teststring
13077      done
13078      # Only check the string length outside the loop.
13079      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13080      teststring=
13081      # Add a significant safety factor because C++ compilers can tack on
13082      # massive amounts of additional arguments before passing them to the
13083      # linker.  It appears as though 1/2 is a usable value.
13084      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13085    fi
13086    ;;
13087  esac
13088
13089fi
13090
13091if test -n $lt_cv_sys_max_cmd_len ; then
13092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13093$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13094else
13095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13096$as_echo "none" >&6; }
13097fi
13098max_cmd_len=$lt_cv_sys_max_cmd_len
13099
13100
13101
13102
13103
13104
13105: ${CP="cp -f"}
13106: ${MV="mv -f"}
13107: ${RM="rm -f"}
13108
13109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13110$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13111# Try some XSI features
13112xsi_shell=no
13113( _lt_dummy="a/b/c"
13114  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13115      = c,a/b,, \
13116    && eval 'test $(( 1 + 1 )) -eq 2 \
13117    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13118  && xsi_shell=yes
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13120$as_echo "$xsi_shell" >&6; }
13121
13122
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13124$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13125lt_shell_append=no
13126( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13127    >/dev/null 2>&1 \
13128  && lt_shell_append=yes
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13130$as_echo "$lt_shell_append" >&6; }
13131
13132
13133if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13134  lt_unset=unset
13135else
13136  lt_unset=false
13137fi
13138
13139
13140
13141
13142
13143# test EBCDIC or ASCII
13144case `echo X|tr X '\101'` in
13145 A) # ASCII based system
13146    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13147  lt_SP2NL='tr \040 \012'
13148  lt_NL2SP='tr \015\012 \040\040'
13149  ;;
13150 *) # EBCDIC based system
13151  lt_SP2NL='tr \100 \n'
13152  lt_NL2SP='tr \r\n \100\100'
13153  ;;
13154esac
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13165$as_echo_n "checking for $LD option to reload object files... " >&6; }
13166if test "${lt_cv_ld_reload_flag+set}" = set; then :
13167  $as_echo_n "(cached) " >&6
13168else
13169  lt_cv_ld_reload_flag='-r'
13170fi
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13172$as_echo "$lt_cv_ld_reload_flag" >&6; }
13173reload_flag=$lt_cv_ld_reload_flag
13174case $reload_flag in
13175"" | " "*) ;;
13176*) reload_flag=" $reload_flag" ;;
13177esac
13178reload_cmds='$LD$reload_flag -o $output$reload_objs'
13179case $host_os in
13180  darwin*)
13181    if test "$GCC" = yes; then
13182      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13183    else
13184      reload_cmds='$LD$reload_flag -o $output$reload_objs'
13185    fi
13186    ;;
13187esac
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197if test -n "$ac_tool_prefix"; then
13198  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13199set dummy ${ac_tool_prefix}objdump; ac_word=$2
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201$as_echo_n "checking for $ac_word... " >&6; }
13202if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13203  $as_echo_n "(cached) " >&6
13204else
13205  if test -n "$OBJDUMP"; then
13206  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13207else
13208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209for as_dir in $PATH
13210do
13211  IFS=$as_save_IFS
13212  test -z "$as_dir" && as_dir=.
13213    for ac_exec_ext in '' $ac_executable_extensions; do
13214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13215    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217    break 2
13218  fi
13219done
13220  done
13221IFS=$as_save_IFS
13222
13223fi
13224fi
13225OBJDUMP=$ac_cv_prog_OBJDUMP
13226if test -n "$OBJDUMP"; then
13227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13228$as_echo "$OBJDUMP" >&6; }
13229else
13230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231$as_echo "no" >&6; }
13232fi
13233
13234
13235fi
13236if test -z "$ac_cv_prog_OBJDUMP"; then
13237  ac_ct_OBJDUMP=$OBJDUMP
13238  # Extract the first word of "objdump", so it can be a program name with args.
13239set dummy objdump; ac_word=$2
13240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13241$as_echo_n "checking for $ac_word... " >&6; }
13242if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13243  $as_echo_n "(cached) " >&6
13244else
13245  if test -n "$ac_ct_OBJDUMP"; then
13246  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13247else
13248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249for as_dir in $PATH
13250do
13251  IFS=$as_save_IFS
13252  test -z "$as_dir" && as_dir=.
13253    for ac_exec_ext in '' $ac_executable_extensions; do
13254  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13255    ac_cv_prog_ac_ct_OBJDUMP="objdump"
13256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13257    break 2
13258  fi
13259done
13260  done
13261IFS=$as_save_IFS
13262
13263fi
13264fi
13265ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13266if test -n "$ac_ct_OBJDUMP"; then
13267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13268$as_echo "$ac_ct_OBJDUMP" >&6; }
13269else
13270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271$as_echo "no" >&6; }
13272fi
13273
13274  if test "x$ac_ct_OBJDUMP" = x; then
13275    OBJDUMP="false"
13276  else
13277    case $cross_compiling:$ac_tool_warned in
13278yes:)
13279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13281ac_tool_warned=yes ;;
13282esac
13283    OBJDUMP=$ac_ct_OBJDUMP
13284  fi
13285else
13286  OBJDUMP="$ac_cv_prog_OBJDUMP"
13287fi
13288
13289test -z "$OBJDUMP" && OBJDUMP=objdump
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13300$as_echo_n "checking how to recognize dependent libraries... " >&6; }
13301if test "${lt_cv_deplibs_check_method+set}" = set; then :
13302  $as_echo_n "(cached) " >&6
13303else
13304  lt_cv_file_magic_cmd='$MAGIC_CMD'
13305lt_cv_file_magic_test_file=
13306lt_cv_deplibs_check_method='unknown'
13307# Need to set the preceding variable on all platforms that support
13308# interlibrary dependencies.
13309# 'none' -- dependencies not supported.
13310# `unknown' -- same as none, but documents that we really don't know.
13311# 'pass_all' -- all dependencies passed with no checks.
13312# 'test_compile' -- check by making test program.
13313# 'file_magic [[regex]]' -- check by looking for files in library path
13314# which responds to the $file_magic_cmd with a given extended regex.
13315# If you have `file' or equivalent on your system and you're not sure
13316# whether `pass_all' will *always* work, you probably want this one.
13317
13318case $host_os in
13319aix[4-9]*)
13320  lt_cv_deplibs_check_method=pass_all
13321  ;;
13322
13323beos*)
13324  lt_cv_deplibs_check_method=pass_all
13325  ;;
13326
13327bsdi[45]*)
13328  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13329  lt_cv_file_magic_cmd='/usr/bin/file -L'
13330  lt_cv_file_magic_test_file=/shlib/libc.so
13331  ;;
13332
13333cygwin*)
13334  # func_win32_libid is a shell function defined in ltmain.sh
13335  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13336  lt_cv_file_magic_cmd='func_win32_libid'
13337  ;;
13338
13339mingw* | pw32*)
13340  # Base MSYS/MinGW do not provide the 'file' command needed by
13341  # func_win32_libid shell function, so use a weaker test based on 'objdump',
13342  # unless we find 'file', for example because we are cross-compiling.
13343  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13344  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13345    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13346    lt_cv_file_magic_cmd='func_win32_libid'
13347  else
13348    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13349    lt_cv_file_magic_cmd='$OBJDUMP -f'
13350  fi
13351  ;;
13352
13353cegcc*)
13354  # use the weaker test based on 'objdump'. See mingw*.
13355  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13356  lt_cv_file_magic_cmd='$OBJDUMP -f'
13357  ;;
13358
13359darwin* | rhapsody*)
13360  lt_cv_deplibs_check_method=pass_all
13361  ;;
13362
13363freebsd* | dragonfly*)
13364  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13365    case $host_cpu in
13366    i*86 )
13367      # Not sure whether the presence of OpenBSD here was a mistake.
13368      # Let's accept both of them until this is cleared up.
13369      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13370      lt_cv_file_magic_cmd=/usr/bin/file
13371      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13372      ;;
13373    esac
13374  else
13375    lt_cv_deplibs_check_method=pass_all
13376  fi
13377  ;;
13378
13379gnu*)
13380  lt_cv_deplibs_check_method=pass_all
13381  ;;
13382
13383haiku*)
13384  lt_cv_deplibs_check_method=pass_all
13385  ;;
13386
13387hpux10.20* | hpux11*)
13388  lt_cv_file_magic_cmd=/usr/bin/file
13389  case $host_cpu in
13390  ia64*)
13391    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13392    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13393    ;;
13394  hppa*64*)
13395    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]'
13396    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13397    ;;
13398  *)
13399    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13400    lt_cv_file_magic_test_file=/usr/lib/libc.sl
13401    ;;
13402  esac
13403  ;;
13404
13405interix[3-9]*)
13406  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13407  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13408  ;;
13409
13410irix5* | irix6* | nonstopux*)
13411  case $LD in
13412  *-32|*"-32 ") libmagic=32-bit;;
13413  *-n32|*"-n32 ") libmagic=N32;;
13414  *-64|*"-64 ") libmagic=64-bit;;
13415  *) libmagic=never-match;;
13416  esac
13417  lt_cv_deplibs_check_method=pass_all
13418  ;;
13419
13420# This must be Linux ELF.
13421linux* | k*bsd*-gnu | kopensolaris*-gnu)
13422  lt_cv_deplibs_check_method=pass_all
13423  ;;
13424
13425netbsd*)
13426  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13427    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13428  else
13429    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13430  fi
13431  ;;
13432
13433newos6*)
13434  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13435  lt_cv_file_magic_cmd=/usr/bin/file
13436  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13437  ;;
13438
13439*nto* | *qnx*)
13440  lt_cv_deplibs_check_method=pass_all
13441  ;;
13442
13443openbsd*)
13444  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13445    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13446  else
13447    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13448  fi
13449  ;;
13450
13451osf3* | osf4* | osf5*)
13452  lt_cv_deplibs_check_method=pass_all
13453  ;;
13454
13455rdos*)
13456  lt_cv_deplibs_check_method=pass_all
13457  ;;
13458
13459solaris*)
13460  lt_cv_deplibs_check_method=pass_all
13461  ;;
13462
13463sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13464  lt_cv_deplibs_check_method=pass_all
13465  ;;
13466
13467sysv4 | sysv4.3*)
13468  case $host_vendor in
13469  motorola)
13470    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]'
13471    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13472    ;;
13473  ncr)
13474    lt_cv_deplibs_check_method=pass_all
13475    ;;
13476  sequent)
13477    lt_cv_file_magic_cmd='/bin/file'
13478    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13479    ;;
13480  sni)
13481    lt_cv_file_magic_cmd='/bin/file'
13482    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13483    lt_cv_file_magic_test_file=/lib/libc.so
13484    ;;
13485  siemens)
13486    lt_cv_deplibs_check_method=pass_all
13487    ;;
13488  pc)
13489    lt_cv_deplibs_check_method=pass_all
13490    ;;
13491  esac
13492  ;;
13493
13494tpf*)
13495  lt_cv_deplibs_check_method=pass_all
13496  ;;
13497esac
13498
13499fi
13500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13501$as_echo "$lt_cv_deplibs_check_method" >&6; }
13502file_magic_cmd=$lt_cv_file_magic_cmd
13503deplibs_check_method=$lt_cv_deplibs_check_method
13504test -z "$deplibs_check_method" && deplibs_check_method=unknown
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517if test -n "$ac_tool_prefix"; then
13518  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13519set dummy ${ac_tool_prefix}ar; ac_word=$2
13520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521$as_echo_n "checking for $ac_word... " >&6; }
13522if test "${ac_cv_prog_AR+set}" = set; then :
13523  $as_echo_n "(cached) " >&6
13524else
13525  if test -n "$AR"; then
13526  ac_cv_prog_AR="$AR" # Let the user override the test.
13527else
13528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529for as_dir in $PATH
13530do
13531  IFS=$as_save_IFS
13532  test -z "$as_dir" && as_dir=.
13533    for ac_exec_ext in '' $ac_executable_extensions; do
13534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13535    ac_cv_prog_AR="${ac_tool_prefix}ar"
13536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537    break 2
13538  fi
13539done
13540  done
13541IFS=$as_save_IFS
13542
13543fi
13544fi
13545AR=$ac_cv_prog_AR
13546if test -n "$AR"; then
13547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13548$as_echo "$AR" >&6; }
13549else
13550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551$as_echo "no" >&6; }
13552fi
13553
13554
13555fi
13556if test -z "$ac_cv_prog_AR"; then
13557  ac_ct_AR=$AR
13558  # Extract the first word of "ar", so it can be a program name with args.
13559set dummy ar; ac_word=$2
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561$as_echo_n "checking for $ac_word... " >&6; }
13562if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13563  $as_echo_n "(cached) " >&6
13564else
13565  if test -n "$ac_ct_AR"; then
13566  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13567else
13568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569for as_dir in $PATH
13570do
13571  IFS=$as_save_IFS
13572  test -z "$as_dir" && as_dir=.
13573    for ac_exec_ext in '' $ac_executable_extensions; do
13574  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13575    ac_cv_prog_ac_ct_AR="ar"
13576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13577    break 2
13578  fi
13579done
13580  done
13581IFS=$as_save_IFS
13582
13583fi
13584fi
13585ac_ct_AR=$ac_cv_prog_ac_ct_AR
13586if test -n "$ac_ct_AR"; then
13587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13588$as_echo "$ac_ct_AR" >&6; }
13589else
13590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591$as_echo "no" >&6; }
13592fi
13593
13594  if test "x$ac_ct_AR" = x; then
13595    AR="false"
13596  else
13597    case $cross_compiling:$ac_tool_warned in
13598yes:)
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13601ac_tool_warned=yes ;;
13602esac
13603    AR=$ac_ct_AR
13604  fi
13605else
13606  AR="$ac_cv_prog_AR"
13607fi
13608
13609test -z "$AR" && AR=ar
13610test -z "$AR_FLAGS" && AR_FLAGS=cru
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622if test -n "$ac_tool_prefix"; then
13623  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13624set dummy ${ac_tool_prefix}strip; ac_word=$2
13625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626$as_echo_n "checking for $ac_word... " >&6; }
13627if test "${ac_cv_prog_STRIP+set}" = set; then :
13628  $as_echo_n "(cached) " >&6
13629else
13630  if test -n "$STRIP"; then
13631  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13632else
13633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634for as_dir in $PATH
13635do
13636  IFS=$as_save_IFS
13637  test -z "$as_dir" && as_dir=.
13638    for ac_exec_ext in '' $ac_executable_extensions; do
13639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13640    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13642    break 2
13643  fi
13644done
13645  done
13646IFS=$as_save_IFS
13647
13648fi
13649fi
13650STRIP=$ac_cv_prog_STRIP
13651if test -n "$STRIP"; then
13652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13653$as_echo "$STRIP" >&6; }
13654else
13655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656$as_echo "no" >&6; }
13657fi
13658
13659
13660fi
13661if test -z "$ac_cv_prog_STRIP"; then
13662  ac_ct_STRIP=$STRIP
13663  # Extract the first word of "strip", so it can be a program name with args.
13664set dummy strip; ac_word=$2
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666$as_echo_n "checking for $ac_word... " >&6; }
13667if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13668  $as_echo_n "(cached) " >&6
13669else
13670  if test -n "$ac_ct_STRIP"; then
13671  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13672else
13673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674for as_dir in $PATH
13675do
13676  IFS=$as_save_IFS
13677  test -z "$as_dir" && as_dir=.
13678    for ac_exec_ext in '' $ac_executable_extensions; do
13679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13680    ac_cv_prog_ac_ct_STRIP="strip"
13681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13682    break 2
13683  fi
13684done
13685  done
13686IFS=$as_save_IFS
13687
13688fi
13689fi
13690ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13691if test -n "$ac_ct_STRIP"; then
13692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13693$as_echo "$ac_ct_STRIP" >&6; }
13694else
13695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696$as_echo "no" >&6; }
13697fi
13698
13699  if test "x$ac_ct_STRIP" = x; then
13700    STRIP=":"
13701  else
13702    case $cross_compiling:$ac_tool_warned in
13703yes:)
13704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13706ac_tool_warned=yes ;;
13707esac
13708    STRIP=$ac_ct_STRIP
13709  fi
13710else
13711  STRIP="$ac_cv_prog_STRIP"
13712fi
13713
13714test -z "$STRIP" && STRIP=:
13715
13716
13717
13718
13719
13720
13721if test -n "$ac_tool_prefix"; then
13722  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13723set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13725$as_echo_n "checking for $ac_word... " >&6; }
13726if test "${ac_cv_prog_RANLIB+set}" = set; then :
13727  $as_echo_n "(cached) " >&6
13728else
13729  if test -n "$RANLIB"; then
13730  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13731else
13732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733for as_dir in $PATH
13734do
13735  IFS=$as_save_IFS
13736  test -z "$as_dir" && as_dir=.
13737    for ac_exec_ext in '' $ac_executable_extensions; do
13738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13739    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13741    break 2
13742  fi
13743done
13744  done
13745IFS=$as_save_IFS
13746
13747fi
13748fi
13749RANLIB=$ac_cv_prog_RANLIB
13750if test -n "$RANLIB"; then
13751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13752$as_echo "$RANLIB" >&6; }
13753else
13754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755$as_echo "no" >&6; }
13756fi
13757
13758
13759fi
13760if test -z "$ac_cv_prog_RANLIB"; then
13761  ac_ct_RANLIB=$RANLIB
13762  # Extract the first word of "ranlib", so it can be a program name with args.
13763set dummy ranlib; ac_word=$2
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13765$as_echo_n "checking for $ac_word... " >&6; }
13766if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13767  $as_echo_n "(cached) " >&6
13768else
13769  if test -n "$ac_ct_RANLIB"; then
13770  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13771else
13772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773for as_dir in $PATH
13774do
13775  IFS=$as_save_IFS
13776  test -z "$as_dir" && as_dir=.
13777    for ac_exec_ext in '' $ac_executable_extensions; do
13778  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13779    ac_cv_prog_ac_ct_RANLIB="ranlib"
13780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13781    break 2
13782  fi
13783done
13784  done
13785IFS=$as_save_IFS
13786
13787fi
13788fi
13789ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13790if test -n "$ac_ct_RANLIB"; then
13791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13792$as_echo "$ac_ct_RANLIB" >&6; }
13793else
13794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795$as_echo "no" >&6; }
13796fi
13797
13798  if test "x$ac_ct_RANLIB" = x; then
13799    RANLIB=":"
13800  else
13801    case $cross_compiling:$ac_tool_warned in
13802yes:)
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13805ac_tool_warned=yes ;;
13806esac
13807    RANLIB=$ac_ct_RANLIB
13808  fi
13809else
13810  RANLIB="$ac_cv_prog_RANLIB"
13811fi
13812
13813test -z "$RANLIB" && RANLIB=:
13814
13815
13816
13817
13818
13819
13820# Determine commands to create old-style static archives.
13821old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13822old_postinstall_cmds='chmod 644 $oldlib'
13823old_postuninstall_cmds=
13824
13825if test -n "$RANLIB"; then
13826  case $host_os in
13827  openbsd*)
13828    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13829    ;;
13830  *)
13831    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13832    ;;
13833  esac
13834  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13835fi
13836
13837case $host_os in
13838  darwin*)
13839    lock_old_archive_extraction=yes ;;
13840  *)
13841    lock_old_archive_extraction=no ;;
13842esac
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882# If no C compiler was specified, use CC.
13883LTCC=${LTCC-"$CC"}
13884
13885# If no C compiler flags were specified, use CFLAGS.
13886LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13887
13888# Allow CC to be a program name with arguments.
13889compiler=$CC
13890
13891
13892# Check for command to grab the raw symbol name followed by C symbol from nm.
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13894$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13895if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13896  $as_echo_n "(cached) " >&6
13897else
13898
13899# These are sane defaults that work on at least a few old systems.
13900# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13901
13902# Character class describing NM global symbol codes.
13903symcode='[BCDEGRST]'
13904
13905# Regexp to match symbols that can be accessed directly from C.
13906sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13907
13908# Define system-specific variables.
13909case $host_os in
13910aix*)
13911  symcode='[BCDT]'
13912  ;;
13913cygwin* | mingw* | pw32* | cegcc*)
13914  symcode='[ABCDGISTW]'
13915  ;;
13916hpux*)
13917  if test "$host_cpu" = ia64; then
13918    symcode='[ABCDEGRST]'
13919  fi
13920  ;;
13921irix* | nonstopux*)
13922  symcode='[BCDEGRST]'
13923  ;;
13924osf*)
13925  symcode='[BCDEGQRST]'
13926  ;;
13927solaris*)
13928  symcode='[BDRT]'
13929  ;;
13930sco3.2v5*)
13931  symcode='[DT]'
13932  ;;
13933sysv4.2uw2*)
13934  symcode='[DT]'
13935  ;;
13936sysv5* | sco5v6* | unixware* | OpenUNIX*)
13937  symcode='[ABDT]'
13938  ;;
13939sysv4)
13940  symcode='[DFNSTU]'
13941  ;;
13942esac
13943
13944# If we're using GNU nm, then use its standard symbol codes.
13945case `$NM -V 2>&1` in
13946*GNU* | *'with BFD'*)
13947  symcode='[ABCDGIRSTW]' ;;
13948esac
13949
13950# Transform an extracted symbol line into a proper C declaration.
13951# Some systems (esp. on ia64) link data and code symbols differently,
13952# so use this general approach.
13953lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13954
13955# Transform an extracted symbol line into symbol name and symbol address
13956lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13957lt_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'"
13958
13959# Handle CRLF in mingw tool chain
13960opt_cr=
13961case $build_os in
13962mingw*)
13963  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13964  ;;
13965esac
13966
13967# Try without a prefix underscore, then with it.
13968for ac_symprfx in "" "_"; do
13969
13970  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13971  symxfrm="\\1 $ac_symprfx\\2 \\2"
13972
13973  # Write the raw and C identifiers.
13974  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13975    # Fake it for dumpbin and say T for any non-static function
13976    # and D for any global variable.
13977    # Also find C++ and __fastcall symbols from MSVC++,
13978    # which start with @ or ?.
13979    lt_cv_sys_global_symbol_pipe="$AWK '"\
13980"     {last_section=section; section=\$ 3};"\
13981"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13982"     \$ 0!~/External *\|/{next};"\
13983"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13984"     {if(hide[section]) next};"\
13985"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13986"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13987"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13988"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13989"     ' prfx=^$ac_symprfx"
13990  else
13991    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13992  fi
13993
13994  # Check to see that the pipe works correctly.
13995  pipe_works=no
13996
13997  rm -f conftest*
13998  cat > conftest.$ac_ext <<_LT_EOF
13999#ifdef __cplusplus
14000extern "C" {
14001#endif
14002char nm_test_var;
14003void nm_test_func(void);
14004void nm_test_func(void){}
14005#ifdef __cplusplus
14006}
14007#endif
14008int main(){nm_test_var='a';nm_test_func();return(0);}
14009_LT_EOF
14010
14011  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14012  (eval $ac_compile) 2>&5
14013  ac_status=$?
14014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14015  test $ac_status = 0; }; then
14016    # Now try to grab the symbols.
14017    nlist=conftest.nm
14018    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14019  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14020  ac_status=$?
14021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14022  test $ac_status = 0; } && test -s "$nlist"; then
14023      # Try sorting and uniquifying the output.
14024      if sort "$nlist" | uniq > "$nlist"T; then
14025	mv -f "$nlist"T "$nlist"
14026      else
14027	rm -f "$nlist"T
14028      fi
14029
14030      # Make sure that we snagged all the symbols we need.
14031      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14032	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14033	  cat <<_LT_EOF > conftest.$ac_ext
14034#ifdef __cplusplus
14035extern "C" {
14036#endif
14037
14038_LT_EOF
14039	  # Now generate the symbol file.
14040	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14041
14042	  cat <<_LT_EOF >> conftest.$ac_ext
14043
14044/* The mapping between symbol names and symbols.  */
14045const struct {
14046  const char *name;
14047  void       *address;
14048}
14049lt__PROGRAM__LTX_preloaded_symbols[] =
14050{
14051  { "@PROGRAM@", (void *) 0 },
14052_LT_EOF
14053	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14054	  cat <<\_LT_EOF >> conftest.$ac_ext
14055  {0, (void *) 0}
14056};
14057
14058/* This works around a problem in FreeBSD linker */
14059#ifdef FREEBSD_WORKAROUND
14060static const void *lt_preloaded_setup() {
14061  return lt__PROGRAM__LTX_preloaded_symbols;
14062}
14063#endif
14064
14065#ifdef __cplusplus
14066}
14067#endif
14068_LT_EOF
14069	  # Now try linking the two files.
14070	  mv conftest.$ac_objext conftstm.$ac_objext
14071	  lt_save_LIBS="$LIBS"
14072	  lt_save_CFLAGS="$CFLAGS"
14073	  LIBS="conftstm.$ac_objext"
14074	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14075	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14076  (eval $ac_link) 2>&5
14077  ac_status=$?
14078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14079  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14080	    pipe_works=yes
14081	  fi
14082	  LIBS="$lt_save_LIBS"
14083	  CFLAGS="$lt_save_CFLAGS"
14084	else
14085	  echo "cannot find nm_test_func in $nlist" >&5
14086	fi
14087      else
14088	echo "cannot find nm_test_var in $nlist" >&5
14089      fi
14090    else
14091      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14092    fi
14093  else
14094    echo "$progname: failed program was:" >&5
14095    cat conftest.$ac_ext >&5
14096  fi
14097  rm -rf conftest* conftst*
14098
14099  # Do not use the global_symbol_pipe unless it works.
14100  if test "$pipe_works" = yes; then
14101    break
14102  else
14103    lt_cv_sys_global_symbol_pipe=
14104  fi
14105done
14106
14107fi
14108
14109if test -z "$lt_cv_sys_global_symbol_pipe"; then
14110  lt_cv_sys_global_symbol_to_cdecl=
14111fi
14112if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14114$as_echo "failed" >&6; }
14115else
14116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14117$as_echo "ok" >&6; }
14118fi
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141# Check whether --enable-libtool-lock was given.
14142if test "${enable_libtool_lock+set}" = set; then :
14143  enableval=$enable_libtool_lock;
14144fi
14145
14146test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14147
14148# Some flags need to be propagated to the compiler or linker for good
14149# libtool support.
14150case $host in
14151ia64-*-hpux*)
14152  # Find out which ABI we are using.
14153  echo 'int i;' > conftest.$ac_ext
14154  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14155  (eval $ac_compile) 2>&5
14156  ac_status=$?
14157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14158  test $ac_status = 0; }; then
14159    case `/usr/bin/file conftest.$ac_objext` in
14160      *ELF-32*)
14161	HPUX_IA64_MODE="32"
14162	;;
14163      *ELF-64*)
14164	HPUX_IA64_MODE="64"
14165	;;
14166    esac
14167  fi
14168  rm -rf conftest*
14169  ;;
14170*-*-irix6*)
14171  # Find out which ABI we are using.
14172  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14173  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14174  (eval $ac_compile) 2>&5
14175  ac_status=$?
14176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14177  test $ac_status = 0; }; then
14178    if test "$lt_cv_prog_gnu_ld" = yes; then
14179      case `/usr/bin/file conftest.$ac_objext` in
14180	*32-bit*)
14181	  LD="${LD-ld} -melf32bsmip"
14182	  ;;
14183	*N32*)
14184	  LD="${LD-ld} -melf32bmipn32"
14185	  ;;
14186	*64-bit*)
14187	  LD="${LD-ld} -melf64bmip"
14188	;;
14189      esac
14190    else
14191      case `/usr/bin/file conftest.$ac_objext` in
14192	*32-bit*)
14193	  LD="${LD-ld} -32"
14194	  ;;
14195	*N32*)
14196	  LD="${LD-ld} -n32"
14197	  ;;
14198	*64-bit*)
14199	  LD="${LD-ld} -64"
14200	  ;;
14201      esac
14202    fi
14203  fi
14204  rm -rf conftest*
14205  ;;
14206
14207x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14208s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14209  # Find out which ABI we are using.
14210  echo 'int i;' > conftest.$ac_ext
14211  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14212  (eval $ac_compile) 2>&5
14213  ac_status=$?
14214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14215  test $ac_status = 0; }; then
14216    case `/usr/bin/file conftest.o` in
14217      *32-bit*)
14218	case $host in
14219	  x86_64-*kfreebsd*-gnu)
14220	    LD="${LD-ld} -m elf_i386_fbsd"
14221	    ;;
14222	  x86_64-*linux*)
14223	    case `/usr/bin/file conftest.o` in
14224	      *x86-64*)
14225		LD="${LD-ld} -m elf32_x86_64"
14226		;;
14227	      *)
14228		LD="${LD-ld} -m elf_i386"
14229		;;
14230	    esac
14231	    ;;
14232	  powerpc64le-*linux*)
14233	    LD="${LD-ld} -m elf32lppclinux"
14234	    ;;
14235	  powerpc64-*linux*)
14236	    LD="${LD-ld} -m elf32ppclinux"
14237	    ;;
14238	  s390x-*linux*)
14239	    LD="${LD-ld} -m elf_s390"
14240	    ;;
14241	  sparc64-*linux*)
14242	    LD="${LD-ld} -m elf32_sparc"
14243	    ;;
14244	esac
14245	;;
14246      *64-bit*)
14247	case $host in
14248	  x86_64-*kfreebsd*-gnu)
14249	    LD="${LD-ld} -m elf_x86_64_fbsd"
14250	    ;;
14251	  x86_64-*linux*)
14252	    LD="${LD-ld} -m elf_x86_64"
14253	    ;;
14254	  powerpcle-*linux*)
14255	    LD="${LD-ld} -m elf64lppc"
14256	    ;;
14257	  powerpc-*linux*)
14258	    LD="${LD-ld} -m elf64ppc"
14259	    ;;
14260	  s390*-*linux*|s390*-*tpf*)
14261	    LD="${LD-ld} -m elf64_s390"
14262	    ;;
14263	  sparc*-*linux*)
14264	    LD="${LD-ld} -m elf64_sparc"
14265	    ;;
14266	esac
14267	;;
14268    esac
14269  fi
14270  rm -rf conftest*
14271  ;;
14272
14273*-*-sco3.2v5*)
14274  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14275  SAVE_CFLAGS="$CFLAGS"
14276  CFLAGS="$CFLAGS -belf"
14277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14278$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14279if test "${lt_cv_cc_needs_belf+set}" = set; then :
14280  $as_echo_n "(cached) " >&6
14281else
14282  ac_ext=c
14283ac_cpp='$CPP $CPPFLAGS'
14284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14286ac_compiler_gnu=$ac_cv_c_compiler_gnu
14287
14288     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289/* end confdefs.h.  */
14290
14291int
14292main ()
14293{
14294
14295  ;
14296  return 0;
14297}
14298_ACEOF
14299if ac_fn_c_try_link "$LINENO"; then :
14300  lt_cv_cc_needs_belf=yes
14301else
14302  lt_cv_cc_needs_belf=no
14303fi
14304rm -f core conftest.err conftest.$ac_objext \
14305    conftest$ac_exeext conftest.$ac_ext
14306     ac_ext=c
14307ac_cpp='$CPP $CPPFLAGS'
14308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14310ac_compiler_gnu=$ac_cv_c_compiler_gnu
14311
14312fi
14313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14314$as_echo "$lt_cv_cc_needs_belf" >&6; }
14315  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14316    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14317    CFLAGS="$SAVE_CFLAGS"
14318  fi
14319  ;;
14320sparc*-*solaris*)
14321  # Find out which ABI we are using.
14322  echo 'int i;' > conftest.$ac_ext
14323  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14324  (eval $ac_compile) 2>&5
14325  ac_status=$?
14326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14327  test $ac_status = 0; }; then
14328    case `/usr/bin/file conftest.o` in
14329    *64-bit*)
14330      case $lt_cv_prog_gnu_ld in
14331      yes*) LD="${LD-ld} -m elf64_sparc" ;;
14332      *)
14333	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14334	  LD="${LD-ld} -64"
14335	fi
14336	;;
14337      esac
14338      ;;
14339    esac
14340  fi
14341  rm -rf conftest*
14342  ;;
14343esac
14344
14345need_locks="$enable_libtool_lock"
14346
14347
14348  case $host_os in
14349    rhapsody* | darwin*)
14350    if test -n "$ac_tool_prefix"; then
14351  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14352set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14354$as_echo_n "checking for $ac_word... " >&6; }
14355if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14356  $as_echo_n "(cached) " >&6
14357else
14358  if test -n "$DSYMUTIL"; then
14359  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14360else
14361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362for as_dir in $PATH
14363do
14364  IFS=$as_save_IFS
14365  test -z "$as_dir" && as_dir=.
14366    for ac_exec_ext in '' $ac_executable_extensions; do
14367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14368    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14370    break 2
14371  fi
14372done
14373  done
14374IFS=$as_save_IFS
14375
14376fi
14377fi
14378DSYMUTIL=$ac_cv_prog_DSYMUTIL
14379if test -n "$DSYMUTIL"; then
14380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14381$as_echo "$DSYMUTIL" >&6; }
14382else
14383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384$as_echo "no" >&6; }
14385fi
14386
14387
14388fi
14389if test -z "$ac_cv_prog_DSYMUTIL"; then
14390  ac_ct_DSYMUTIL=$DSYMUTIL
14391  # Extract the first word of "dsymutil", so it can be a program name with args.
14392set dummy dsymutil; ac_word=$2
14393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14394$as_echo_n "checking for $ac_word... " >&6; }
14395if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14396  $as_echo_n "(cached) " >&6
14397else
14398  if test -n "$ac_ct_DSYMUTIL"; then
14399  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14400else
14401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402for as_dir in $PATH
14403do
14404  IFS=$as_save_IFS
14405  test -z "$as_dir" && as_dir=.
14406    for ac_exec_ext in '' $ac_executable_extensions; do
14407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14408    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14410    break 2
14411  fi
14412done
14413  done
14414IFS=$as_save_IFS
14415
14416fi
14417fi
14418ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14419if test -n "$ac_ct_DSYMUTIL"; then
14420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14421$as_echo "$ac_ct_DSYMUTIL" >&6; }
14422else
14423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424$as_echo "no" >&6; }
14425fi
14426
14427  if test "x$ac_ct_DSYMUTIL" = x; then
14428    DSYMUTIL=":"
14429  else
14430    case $cross_compiling:$ac_tool_warned in
14431yes:)
14432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14434ac_tool_warned=yes ;;
14435esac
14436    DSYMUTIL=$ac_ct_DSYMUTIL
14437  fi
14438else
14439  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14440fi
14441
14442    if test -n "$ac_tool_prefix"; then
14443  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14444set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14446$as_echo_n "checking for $ac_word... " >&6; }
14447if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14448  $as_echo_n "(cached) " >&6
14449else
14450  if test -n "$NMEDIT"; then
14451  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14452else
14453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454for as_dir in $PATH
14455do
14456  IFS=$as_save_IFS
14457  test -z "$as_dir" && as_dir=.
14458    for ac_exec_ext in '' $ac_executable_extensions; do
14459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14460    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14462    break 2
14463  fi
14464done
14465  done
14466IFS=$as_save_IFS
14467
14468fi
14469fi
14470NMEDIT=$ac_cv_prog_NMEDIT
14471if test -n "$NMEDIT"; then
14472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14473$as_echo "$NMEDIT" >&6; }
14474else
14475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476$as_echo "no" >&6; }
14477fi
14478
14479
14480fi
14481if test -z "$ac_cv_prog_NMEDIT"; then
14482  ac_ct_NMEDIT=$NMEDIT
14483  # Extract the first word of "nmedit", so it can be a program name with args.
14484set dummy nmedit; ac_word=$2
14485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14486$as_echo_n "checking for $ac_word... " >&6; }
14487if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14488  $as_echo_n "(cached) " >&6
14489else
14490  if test -n "$ac_ct_NMEDIT"; then
14491  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14492else
14493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14494for as_dir in $PATH
14495do
14496  IFS=$as_save_IFS
14497  test -z "$as_dir" && as_dir=.
14498    for ac_exec_ext in '' $ac_executable_extensions; do
14499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14500    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14502    break 2
14503  fi
14504done
14505  done
14506IFS=$as_save_IFS
14507
14508fi
14509fi
14510ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14511if test -n "$ac_ct_NMEDIT"; then
14512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14513$as_echo "$ac_ct_NMEDIT" >&6; }
14514else
14515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14516$as_echo "no" >&6; }
14517fi
14518
14519  if test "x$ac_ct_NMEDIT" = x; then
14520    NMEDIT=":"
14521  else
14522    case $cross_compiling:$ac_tool_warned in
14523yes:)
14524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14526ac_tool_warned=yes ;;
14527esac
14528    NMEDIT=$ac_ct_NMEDIT
14529  fi
14530else
14531  NMEDIT="$ac_cv_prog_NMEDIT"
14532fi
14533
14534    if test -n "$ac_tool_prefix"; then
14535  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14536set dummy ${ac_tool_prefix}lipo; ac_word=$2
14537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14538$as_echo_n "checking for $ac_word... " >&6; }
14539if test "${ac_cv_prog_LIPO+set}" = set; then :
14540  $as_echo_n "(cached) " >&6
14541else
14542  if test -n "$LIPO"; then
14543  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14544else
14545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14546for as_dir in $PATH
14547do
14548  IFS=$as_save_IFS
14549  test -z "$as_dir" && as_dir=.
14550    for ac_exec_ext in '' $ac_executable_extensions; do
14551  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14552    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14554    break 2
14555  fi
14556done
14557  done
14558IFS=$as_save_IFS
14559
14560fi
14561fi
14562LIPO=$ac_cv_prog_LIPO
14563if test -n "$LIPO"; then
14564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14565$as_echo "$LIPO" >&6; }
14566else
14567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14568$as_echo "no" >&6; }
14569fi
14570
14571
14572fi
14573if test -z "$ac_cv_prog_LIPO"; then
14574  ac_ct_LIPO=$LIPO
14575  # Extract the first word of "lipo", so it can be a program name with args.
14576set dummy lipo; ac_word=$2
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14578$as_echo_n "checking for $ac_word... " >&6; }
14579if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14580  $as_echo_n "(cached) " >&6
14581else
14582  if test -n "$ac_ct_LIPO"; then
14583  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14584else
14585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586for as_dir in $PATH
14587do
14588  IFS=$as_save_IFS
14589  test -z "$as_dir" && as_dir=.
14590    for ac_exec_ext in '' $ac_executable_extensions; do
14591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14592    ac_cv_prog_ac_ct_LIPO="lipo"
14593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14594    break 2
14595  fi
14596done
14597  done
14598IFS=$as_save_IFS
14599
14600fi
14601fi
14602ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14603if test -n "$ac_ct_LIPO"; then
14604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14605$as_echo "$ac_ct_LIPO" >&6; }
14606else
14607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14608$as_echo "no" >&6; }
14609fi
14610
14611  if test "x$ac_ct_LIPO" = x; then
14612    LIPO=":"
14613  else
14614    case $cross_compiling:$ac_tool_warned in
14615yes:)
14616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14618ac_tool_warned=yes ;;
14619esac
14620    LIPO=$ac_ct_LIPO
14621  fi
14622else
14623  LIPO="$ac_cv_prog_LIPO"
14624fi
14625
14626    if test -n "$ac_tool_prefix"; then
14627  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14628set dummy ${ac_tool_prefix}otool; ac_word=$2
14629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14630$as_echo_n "checking for $ac_word... " >&6; }
14631if test "${ac_cv_prog_OTOOL+set}" = set; then :
14632  $as_echo_n "(cached) " >&6
14633else
14634  if test -n "$OTOOL"; then
14635  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14636else
14637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14638for as_dir in $PATH
14639do
14640  IFS=$as_save_IFS
14641  test -z "$as_dir" && as_dir=.
14642    for ac_exec_ext in '' $ac_executable_extensions; do
14643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14644    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14646    break 2
14647  fi
14648done
14649  done
14650IFS=$as_save_IFS
14651
14652fi
14653fi
14654OTOOL=$ac_cv_prog_OTOOL
14655if test -n "$OTOOL"; then
14656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14657$as_echo "$OTOOL" >&6; }
14658else
14659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14660$as_echo "no" >&6; }
14661fi
14662
14663
14664fi
14665if test -z "$ac_cv_prog_OTOOL"; then
14666  ac_ct_OTOOL=$OTOOL
14667  # Extract the first word of "otool", so it can be a program name with args.
14668set dummy otool; ac_word=$2
14669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14670$as_echo_n "checking for $ac_word... " >&6; }
14671if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14672  $as_echo_n "(cached) " >&6
14673else
14674  if test -n "$ac_ct_OTOOL"; then
14675  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14676else
14677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14678for as_dir in $PATH
14679do
14680  IFS=$as_save_IFS
14681  test -z "$as_dir" && as_dir=.
14682    for ac_exec_ext in '' $ac_executable_extensions; do
14683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14684    ac_cv_prog_ac_ct_OTOOL="otool"
14685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14686    break 2
14687  fi
14688done
14689  done
14690IFS=$as_save_IFS
14691
14692fi
14693fi
14694ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14695if test -n "$ac_ct_OTOOL"; then
14696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14697$as_echo "$ac_ct_OTOOL" >&6; }
14698else
14699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14700$as_echo "no" >&6; }
14701fi
14702
14703  if test "x$ac_ct_OTOOL" = x; then
14704    OTOOL=":"
14705  else
14706    case $cross_compiling:$ac_tool_warned in
14707yes:)
14708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14710ac_tool_warned=yes ;;
14711esac
14712    OTOOL=$ac_ct_OTOOL
14713  fi
14714else
14715  OTOOL="$ac_cv_prog_OTOOL"
14716fi
14717
14718    if test -n "$ac_tool_prefix"; then
14719  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14720set dummy ${ac_tool_prefix}otool64; ac_word=$2
14721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14722$as_echo_n "checking for $ac_word... " >&6; }
14723if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14724  $as_echo_n "(cached) " >&6
14725else
14726  if test -n "$OTOOL64"; then
14727  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14728else
14729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14730for as_dir in $PATH
14731do
14732  IFS=$as_save_IFS
14733  test -z "$as_dir" && as_dir=.
14734    for ac_exec_ext in '' $ac_executable_extensions; do
14735  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14736    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14738    break 2
14739  fi
14740done
14741  done
14742IFS=$as_save_IFS
14743
14744fi
14745fi
14746OTOOL64=$ac_cv_prog_OTOOL64
14747if test -n "$OTOOL64"; then
14748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14749$as_echo "$OTOOL64" >&6; }
14750else
14751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752$as_echo "no" >&6; }
14753fi
14754
14755
14756fi
14757if test -z "$ac_cv_prog_OTOOL64"; then
14758  ac_ct_OTOOL64=$OTOOL64
14759  # Extract the first word of "otool64", so it can be a program name with args.
14760set dummy otool64; ac_word=$2
14761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14762$as_echo_n "checking for $ac_word... " >&6; }
14763if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14764  $as_echo_n "(cached) " >&6
14765else
14766  if test -n "$ac_ct_OTOOL64"; then
14767  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14768else
14769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770for as_dir in $PATH
14771do
14772  IFS=$as_save_IFS
14773  test -z "$as_dir" && as_dir=.
14774    for ac_exec_ext in '' $ac_executable_extensions; do
14775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14776    ac_cv_prog_ac_ct_OTOOL64="otool64"
14777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14778    break 2
14779  fi
14780done
14781  done
14782IFS=$as_save_IFS
14783
14784fi
14785fi
14786ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14787if test -n "$ac_ct_OTOOL64"; then
14788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14789$as_echo "$ac_ct_OTOOL64" >&6; }
14790else
14791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14792$as_echo "no" >&6; }
14793fi
14794
14795  if test "x$ac_ct_OTOOL64" = x; then
14796    OTOOL64=":"
14797  else
14798    case $cross_compiling:$ac_tool_warned in
14799yes:)
14800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14802ac_tool_warned=yes ;;
14803esac
14804    OTOOL64=$ac_ct_OTOOL64
14805  fi
14806else
14807  OTOOL64="$ac_cv_prog_OTOOL64"
14808fi
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14837$as_echo_n "checking for -single_module linker flag... " >&6; }
14838if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14839  $as_echo_n "(cached) " >&6
14840else
14841  lt_cv_apple_cc_single_mod=no
14842      if test -z "${LT_MULTI_MODULE}"; then
14843	# By default we will add the -single_module flag. You can override
14844	# by either setting the environment variable LT_MULTI_MODULE
14845	# non-empty at configure time, or by adding -multi_module to the
14846	# link flags.
14847	rm -rf libconftest.dylib*
14848	echo "int foo(void){return 1;}" > conftest.c
14849	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14850-dynamiclib -Wl,-single_module conftest.c" >&5
14851	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14852	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14853        _lt_result=$?
14854	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14855	  lt_cv_apple_cc_single_mod=yes
14856	else
14857	  cat conftest.err >&5
14858	fi
14859	rm -rf libconftest.dylib*
14860	rm -f conftest.*
14861      fi
14862fi
14863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14864$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14866$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14867if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14868  $as_echo_n "(cached) " >&6
14869else
14870  lt_cv_ld_exported_symbols_list=no
14871      save_LDFLAGS=$LDFLAGS
14872      echo "_main" > conftest.sym
14873      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14874      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875/* end confdefs.h.  */
14876
14877int
14878main ()
14879{
14880
14881  ;
14882  return 0;
14883}
14884_ACEOF
14885if ac_fn_c_try_link "$LINENO"; then :
14886  lt_cv_ld_exported_symbols_list=yes
14887else
14888  lt_cv_ld_exported_symbols_list=no
14889fi
14890rm -f core conftest.err conftest.$ac_objext \
14891    conftest$ac_exeext conftest.$ac_ext
14892	LDFLAGS="$save_LDFLAGS"
14893
14894fi
14895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14896$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14898$as_echo_n "checking for -force_load linker flag... " >&6; }
14899if test "${lt_cv_ld_force_load+set}" = set; then :
14900  $as_echo_n "(cached) " >&6
14901else
14902  lt_cv_ld_force_load=no
14903      cat > conftest.c << _LT_EOF
14904int forced_loaded() { return 2;}
14905_LT_EOF
14906      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14907      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14908      echo "$AR cru libconftest.a conftest.o" >&5
14909      $AR cru libconftest.a conftest.o 2>&5
14910      cat > conftest.c << _LT_EOF
14911int main() { return 0;}
14912_LT_EOF
14913      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14914      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14915      _lt_result=$?
14916      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14917	lt_cv_ld_force_load=yes
14918      else
14919	cat conftest.err >&5
14920      fi
14921        rm -f conftest.err libconftest.a conftest conftest.c
14922        rm -rf conftest.dSYM
14923
14924fi
14925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14926$as_echo "$lt_cv_ld_force_load" >&6; }
14927    case $host_os in
14928    rhapsody* | darwin1.[012])
14929      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14930    darwin1.*)
14931      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14932    darwin*) # darwin 5.x on
14933      # if running on 10.5 or later, the deployment target defaults
14934      # to the OS version, if on x86, and 10.4, the deployment
14935      # target defaults to 10.4. Don't you love it?
14936      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14937	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14938	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14939	10.[012][,.]*)
14940	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14941	10.*)
14942	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14943      esac
14944    ;;
14945  esac
14946    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14947      _lt_dar_single_mod='$single_module'
14948    fi
14949    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14950      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14951    else
14952      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14953    fi
14954    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14955      _lt_dsymutil='~$DSYMUTIL $lib || :'
14956    else
14957      _lt_dsymutil=
14958    fi
14959    ;;
14960  esac
14961
14962
14963for ac_header in dlfcn.h
14964do :
14965  ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14966if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14967  cat >>confdefs.h <<_ACEOF
14968#define HAVE_DLFCN_H 1
14969_ACEOF
14970
14971fi
14972done
14973
14974
14975
14976
14977
14978# Set options
14979
14980
14981
14982        enable_dlopen=no
14983
14984
14985  enable_win32_dll=no
14986
14987
14988            # Check whether --enable-shared was given.
14989if test "${enable_shared+set}" = set; then :
14990  enableval=$enable_shared; p=${PACKAGE-default}
14991    case $enableval in
14992    yes) enable_shared=yes ;;
14993    no) enable_shared=no ;;
14994    *)
14995      enable_shared=no
14996      # Look at the argument we got.  We use all the common list separators.
14997      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14998      for pkg in $enableval; do
14999	IFS="$lt_save_ifs"
15000	if test "X$pkg" = "X$p"; then
15001	  enable_shared=yes
15002	fi
15003      done
15004      IFS="$lt_save_ifs"
15005      ;;
15006    esac
15007else
15008  enable_shared=yes
15009fi
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019  # Check whether --enable-static was given.
15020if test "${enable_static+set}" = set; then :
15021  enableval=$enable_static; p=${PACKAGE-default}
15022    case $enableval in
15023    yes) enable_static=yes ;;
15024    no) enable_static=no ;;
15025    *)
15026     enable_static=no
15027      # Look at the argument we got.  We use all the common list separators.
15028      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15029      for pkg in $enableval; do
15030	IFS="$lt_save_ifs"
15031	if test "X$pkg" = "X$p"; then
15032	  enable_static=yes
15033	fi
15034      done
15035      IFS="$lt_save_ifs"
15036      ;;
15037    esac
15038else
15039  enable_static=yes
15040fi
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051# Check whether --with-pic was given.
15052if test "${with_pic+set}" = set; then :
15053  withval=$with_pic; pic_mode="$withval"
15054else
15055  pic_mode=default
15056fi
15057
15058
15059test -z "$pic_mode" && pic_mode=default
15060
15061
15062
15063
15064
15065
15066
15067  # Check whether --enable-fast-install was given.
15068if test "${enable_fast_install+set}" = set; then :
15069  enableval=$enable_fast_install; p=${PACKAGE-default}
15070    case $enableval in
15071    yes) enable_fast_install=yes ;;
15072    no) enable_fast_install=no ;;
15073    *)
15074      enable_fast_install=no
15075      # Look at the argument we got.  We use all the common list separators.
15076      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15077      for pkg in $enableval; do
15078	IFS="$lt_save_ifs"
15079	if test "X$pkg" = "X$p"; then
15080	  enable_fast_install=yes
15081	fi
15082      done
15083      IFS="$lt_save_ifs"
15084      ;;
15085    esac
15086else
15087  enable_fast_install=yes
15088fi
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100# This can be used to rebuild libtool when needed
15101LIBTOOL_DEPS="$ltmain"
15102
15103# Always use our own libtool.
15104LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131test -z "$LN_S" && LN_S="ln -s"
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146if test -n "${ZSH_VERSION+set}" ; then
15147   setopt NO_GLOB_SUBST
15148fi
15149
15150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15151$as_echo_n "checking for objdir... " >&6; }
15152if test "${lt_cv_objdir+set}" = set; then :
15153  $as_echo_n "(cached) " >&6
15154else
15155  rm -f .libs 2>/dev/null
15156mkdir .libs 2>/dev/null
15157if test -d .libs; then
15158  lt_cv_objdir=.libs
15159else
15160  # MS-DOS does not allow filenames that begin with a dot.
15161  lt_cv_objdir=_libs
15162fi
15163rmdir .libs 2>/dev/null
15164fi
15165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15166$as_echo "$lt_cv_objdir" >&6; }
15167objdir=$lt_cv_objdir
15168
15169
15170
15171
15172
15173cat >>confdefs.h <<_ACEOF
15174#define LT_OBJDIR "$lt_cv_objdir/"
15175_ACEOF
15176
15177
15178
15179
15180case $host_os in
15181aix3*)
15182  # AIX sometimes has problems with the GCC collect2 program.  For some
15183  # reason, if we set the COLLECT_NAMES environment variable, the problems
15184  # vanish in a puff of smoke.
15185  if test "X${COLLECT_NAMES+set}" != Xset; then
15186    COLLECT_NAMES=
15187    export COLLECT_NAMES
15188  fi
15189  ;;
15190esac
15191
15192# Global variables:
15193ofile=libtool
15194can_build_shared=yes
15195
15196# All known linkers require a `.a' archive for static linking (except MSVC,
15197# which needs '.lib').
15198libext=a
15199
15200with_gnu_ld="$lt_cv_prog_gnu_ld"
15201
15202old_CC="$CC"
15203old_CFLAGS="$CFLAGS"
15204
15205# Set sane defaults for various variables
15206test -z "$CC" && CC=cc
15207test -z "$LTCC" && LTCC=$CC
15208test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15209test -z "$LD" && LD=ld
15210test -z "$ac_objext" && ac_objext=o
15211
15212for cc_temp in $compiler""; do
15213  case $cc_temp in
15214    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15215    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15216    \-*) ;;
15217    *) break;;
15218  esac
15219done
15220cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15221
15222
15223# Only perform the check for file, if the check method requires it
15224test -z "$MAGIC_CMD" && MAGIC_CMD=file
15225case $deplibs_check_method in
15226file_magic*)
15227  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15229$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15230if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15231  $as_echo_n "(cached) " >&6
15232else
15233  case $MAGIC_CMD in
15234[\\/*] |  ?:[\\/]*)
15235  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15236  ;;
15237*)
15238  lt_save_MAGIC_CMD="$MAGIC_CMD"
15239  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15240  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15241  for ac_dir in $ac_dummy; do
15242    IFS="$lt_save_ifs"
15243    test -z "$ac_dir" && ac_dir=.
15244    if test -f $ac_dir/${ac_tool_prefix}file; then
15245      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15246      if test -n "$file_magic_test_file"; then
15247	case $deplibs_check_method in
15248	"file_magic "*)
15249	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15250	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15251	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15252	    $EGREP "$file_magic_regex" > /dev/null; then
15253	    :
15254	  else
15255	    cat <<_LT_EOF 1>&2
15256
15257*** Warning: the command libtool uses to detect shared libraries,
15258*** $file_magic_cmd, produces output that libtool cannot recognize.
15259*** The result is that libtool may fail to recognize shared libraries
15260*** as such.  This will affect the creation of libtool libraries that
15261*** depend on shared libraries, but programs linked with such libtool
15262*** libraries will work regardless of this problem.  Nevertheless, you
15263*** may want to report the problem to your system manager and/or to
15264*** bug-libtool@gnu.org
15265
15266_LT_EOF
15267	  fi ;;
15268	esac
15269      fi
15270      break
15271    fi
15272  done
15273  IFS="$lt_save_ifs"
15274  MAGIC_CMD="$lt_save_MAGIC_CMD"
15275  ;;
15276esac
15277fi
15278
15279MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15280if test -n "$MAGIC_CMD"; then
15281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15282$as_echo "$MAGIC_CMD" >&6; }
15283else
15284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15285$as_echo "no" >&6; }
15286fi
15287
15288
15289
15290
15291
15292if test -z "$lt_cv_path_MAGIC_CMD"; then
15293  if test -n "$ac_tool_prefix"; then
15294    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15295$as_echo_n "checking for file... " >&6; }
15296if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15297  $as_echo_n "(cached) " >&6
15298else
15299  case $MAGIC_CMD in
15300[\\/*] |  ?:[\\/]*)
15301  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15302  ;;
15303*)
15304  lt_save_MAGIC_CMD="$MAGIC_CMD"
15305  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15306  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15307  for ac_dir in $ac_dummy; do
15308    IFS="$lt_save_ifs"
15309    test -z "$ac_dir" && ac_dir=.
15310    if test -f $ac_dir/file; then
15311      lt_cv_path_MAGIC_CMD="$ac_dir/file"
15312      if test -n "$file_magic_test_file"; then
15313	case $deplibs_check_method in
15314	"file_magic "*)
15315	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15316	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15317	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15318	    $EGREP "$file_magic_regex" > /dev/null; then
15319	    :
15320	  else
15321	    cat <<_LT_EOF 1>&2
15322
15323*** Warning: the command libtool uses to detect shared libraries,
15324*** $file_magic_cmd, produces output that libtool cannot recognize.
15325*** The result is that libtool may fail to recognize shared libraries
15326*** as such.  This will affect the creation of libtool libraries that
15327*** depend on shared libraries, but programs linked with such libtool
15328*** libraries will work regardless of this problem.  Nevertheless, you
15329*** may want to report the problem to your system manager and/or to
15330*** bug-libtool@gnu.org
15331
15332_LT_EOF
15333	  fi ;;
15334	esac
15335      fi
15336      break
15337    fi
15338  done
15339  IFS="$lt_save_ifs"
15340  MAGIC_CMD="$lt_save_MAGIC_CMD"
15341  ;;
15342esac
15343fi
15344
15345MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15346if test -n "$MAGIC_CMD"; then
15347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15348$as_echo "$MAGIC_CMD" >&6; }
15349else
15350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15351$as_echo "no" >&6; }
15352fi
15353
15354
15355  else
15356    MAGIC_CMD=:
15357  fi
15358fi
15359
15360  fi
15361  ;;
15362esac
15363
15364# Use C for the default configuration in the libtool script
15365
15366lt_save_CC="$CC"
15367ac_ext=c
15368ac_cpp='$CPP $CPPFLAGS'
15369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15371ac_compiler_gnu=$ac_cv_c_compiler_gnu
15372
15373
15374# Source file extension for C test sources.
15375ac_ext=c
15376
15377# Object file extension for compiled C test sources.
15378objext=o
15379objext=$objext
15380
15381# Code to be used in simple compile tests
15382lt_simple_compile_test_code="int some_variable = 0;"
15383
15384# Code to be used in simple link tests
15385lt_simple_link_test_code='int main(){return(0);}'
15386
15387
15388
15389
15390
15391
15392
15393# If no C compiler was specified, use CC.
15394LTCC=${LTCC-"$CC"}
15395
15396# If no C compiler flags were specified, use CFLAGS.
15397LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15398
15399# Allow CC to be a program name with arguments.
15400compiler=$CC
15401
15402# Save the default compiler, since it gets overwritten when the other
15403# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15404compiler_DEFAULT=$CC
15405
15406# save warnings/boilerplate of simple test code
15407ac_outfile=conftest.$ac_objext
15408echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15409eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15410_lt_compiler_boilerplate=`cat conftest.err`
15411$RM conftest*
15412
15413ac_outfile=conftest.$ac_objext
15414echo "$lt_simple_link_test_code" >conftest.$ac_ext
15415eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15416_lt_linker_boilerplate=`cat conftest.err`
15417$RM -r conftest*
15418
15419
15420## CAVEAT EMPTOR:
15421## There is no encapsulation within the following macros, do not change
15422## the running order or otherwise move them around unless you know exactly
15423## what you are doing...
15424if test -n "$compiler"; then
15425
15426lt_prog_compiler_no_builtin_flag=
15427
15428if test "$GCC" = yes; then
15429  case $cc_basename in
15430  nvcc*)
15431    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15432  *)
15433    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15434  esac
15435
15436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15437$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15438if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15439  $as_echo_n "(cached) " >&6
15440else
15441  lt_cv_prog_compiler_rtti_exceptions=no
15442   ac_outfile=conftest.$ac_objext
15443   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15444   lt_compiler_flag="-fno-rtti -fno-exceptions"
15445   # Insert the option either (1) after the last *FLAGS variable, or
15446   # (2) before a word containing "conftest.", or (3) at the end.
15447   # Note that $ac_compile itself does not contain backslashes and begins
15448   # with a dollar sign (not a hyphen), so the echo should work correctly.
15449   # The option is referenced via a variable to avoid confusing sed.
15450   lt_compile=`echo "$ac_compile" | $SED \
15451   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15452   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15453   -e 's:$: $lt_compiler_flag:'`
15454   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15455   (eval "$lt_compile" 2>conftest.err)
15456   ac_status=$?
15457   cat conftest.err >&5
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   if (exit $ac_status) && test -s "$ac_outfile"; then
15460     # The compiler can only warn and ignore the option if not recognized
15461     # So say no if there are warnings other than the usual output.
15462     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15463     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15464     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15465       lt_cv_prog_compiler_rtti_exceptions=yes
15466     fi
15467   fi
15468   $RM conftest*
15469
15470fi
15471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15472$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15473
15474if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15475    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15476else
15477    :
15478fi
15479
15480fi
15481
15482
15483
15484
15485
15486
15487  lt_prog_compiler_wl=
15488lt_prog_compiler_pic=
15489lt_prog_compiler_static=
15490
15491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15492$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15493
15494  if test "$GCC" = yes; then
15495    lt_prog_compiler_wl='-Wl,'
15496    lt_prog_compiler_static='-static'
15497
15498    case $host_os in
15499      aix*)
15500      # All AIX code is PIC.
15501      if test "$host_cpu" = ia64; then
15502	# AIX 5 now supports IA64 processor
15503	lt_prog_compiler_static='-Bstatic'
15504      fi
15505      lt_prog_compiler_pic='-fPIC'
15506      ;;
15507
15508    amigaos*)
15509      case $host_cpu in
15510      powerpc)
15511            # see comment about AmigaOS4 .so support
15512            lt_prog_compiler_pic='-fPIC'
15513        ;;
15514      m68k)
15515            # FIXME: we need at least 68020 code to build shared libraries, but
15516            # adding the `-m68020' flag to GCC prevents building anything better,
15517            # like `-m68040'.
15518            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15519        ;;
15520      esac
15521      ;;
15522
15523    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15524      # PIC is the default for these OSes.
15525      ;;
15526
15527    mingw* | cygwin* | pw32* | os2* | cegcc*)
15528      # This hack is so that the source file can tell whether it is being
15529      # built for inclusion in a dll (and should export symbols for example).
15530      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15531      # (--disable-auto-import) libraries
15532      lt_prog_compiler_pic='-DDLL_EXPORT'
15533      ;;
15534
15535    darwin* | rhapsody*)
15536      # PIC is the default on this platform
15537      # Common symbols not allowed in MH_DYLIB files
15538      lt_prog_compiler_pic='-fno-common'
15539      ;;
15540
15541    haiku*)
15542      # PIC is the default for Haiku.
15543      # The "-static" flag exists, but is broken.
15544      lt_prog_compiler_static=
15545      ;;
15546
15547    hpux*)
15548      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15549      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15550      # sets the default TLS model and affects inlining.
15551      case $host_cpu in
15552      hppa*64*)
15553	# +Z the default
15554	;;
15555      *)
15556	lt_prog_compiler_pic='-fPIC'
15557	;;
15558      esac
15559      ;;
15560
15561    interix[3-9]*)
15562      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15563      # Instead, we relocate shared libraries at runtime.
15564      ;;
15565
15566    msdosdjgpp*)
15567      # Just because we use GCC doesn't mean we suddenly get shared libraries
15568      # on systems that don't support them.
15569      lt_prog_compiler_can_build_shared=no
15570      enable_shared=no
15571      ;;
15572
15573    *nto* | *qnx*)
15574      # QNX uses GNU C++, but need to define -shared option too, otherwise
15575      # it will coredump.
15576      lt_prog_compiler_pic='-fPIC -shared'
15577      ;;
15578
15579    sysv4*MP*)
15580      if test -d /usr/nec; then
15581	lt_prog_compiler_pic=-Kconform_pic
15582      fi
15583      ;;
15584
15585    *)
15586      lt_prog_compiler_pic='-fPIC'
15587      ;;
15588    esac
15589
15590    case $cc_basename in
15591    nvcc*) # Cuda Compiler Driver 2.2
15592      lt_prog_compiler_wl='-Xlinker '
15593      lt_prog_compiler_pic='-Xcompiler -fPIC'
15594      ;;
15595    esac
15596  else
15597    # PORTME Check for flag to pass linker flags through the system compiler.
15598    case $host_os in
15599    aix*)
15600      lt_prog_compiler_wl='-Wl,'
15601      if test "$host_cpu" = ia64; then
15602	# AIX 5 now supports IA64 processor
15603	lt_prog_compiler_static='-Bstatic'
15604      else
15605	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15606      fi
15607      ;;
15608
15609    mingw* | cygwin* | pw32* | os2* | cegcc*)
15610      # This hack is so that the source file can tell whether it is being
15611      # built for inclusion in a dll (and should export symbols for example).
15612      lt_prog_compiler_pic='-DDLL_EXPORT'
15613      ;;
15614
15615    hpux9* | hpux10* | hpux11*)
15616      lt_prog_compiler_wl='-Wl,'
15617      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15618      # not for PA HP-UX.
15619      case $host_cpu in
15620      hppa*64*|ia64*)
15621	# +Z the default
15622	;;
15623      *)
15624	lt_prog_compiler_pic='+Z'
15625	;;
15626      esac
15627      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15628      lt_prog_compiler_static='${wl}-a ${wl}archive'
15629      ;;
15630
15631    irix5* | irix6* | nonstopux*)
15632      lt_prog_compiler_wl='-Wl,'
15633      # PIC (with -KPIC) is the default.
15634      lt_prog_compiler_static='-non_shared'
15635      ;;
15636
15637    linux* | k*bsd*-gnu | kopensolaris*-gnu)
15638      case $cc_basename in
15639      # old Intel for x86_64 which still supported -KPIC.
15640      ecc*)
15641	lt_prog_compiler_wl='-Wl,'
15642	lt_prog_compiler_pic='-KPIC'
15643	lt_prog_compiler_static='-static'
15644        ;;
15645      # icc used to be incompatible with GCC.
15646      # ICC 10 doesn't accept -KPIC any more.
15647      icc* | ifort*)
15648	lt_prog_compiler_wl='-Wl,'
15649	lt_prog_compiler_pic='-fPIC'
15650	lt_prog_compiler_static='-static'
15651        ;;
15652      # Lahey Fortran 8.1.
15653      lf95*)
15654	lt_prog_compiler_wl='-Wl,'
15655	lt_prog_compiler_pic='--shared'
15656	lt_prog_compiler_static='--static'
15657	;;
15658      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15659        # Portland Group compilers (*not* the Pentium gcc compiler,
15660	# which looks to be a dead project)
15661	lt_prog_compiler_wl='-Wl,'
15662	lt_prog_compiler_pic='-fpic'
15663	lt_prog_compiler_static='-Bstatic'
15664        ;;
15665      ccc*)
15666        lt_prog_compiler_wl='-Wl,'
15667        # All Alpha code is PIC.
15668        lt_prog_compiler_static='-non_shared'
15669        ;;
15670      xl* | bgxl* | bgf* | mpixl*)
15671	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15672	lt_prog_compiler_wl='-Wl,'
15673	lt_prog_compiler_pic='-qpic'
15674	lt_prog_compiler_static='-qstaticlink'
15675	;;
15676      *)
15677	case `$CC -V 2>&1 | sed 5q` in
15678	*Sun\ F* | *Sun*Fortran*)
15679	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15680	  lt_prog_compiler_pic='-KPIC'
15681	  lt_prog_compiler_static='-Bstatic'
15682	  lt_prog_compiler_wl=''
15683	  ;;
15684	*Sun\ C*)
15685	  # Sun C 5.9
15686	  lt_prog_compiler_pic='-KPIC'
15687	  lt_prog_compiler_static='-Bstatic'
15688	  lt_prog_compiler_wl='-Wl,'
15689	  ;;
15690	esac
15691	;;
15692      esac
15693      ;;
15694
15695    newsos6)
15696      lt_prog_compiler_pic='-KPIC'
15697      lt_prog_compiler_static='-Bstatic'
15698      ;;
15699
15700    *nto* | *qnx*)
15701      # QNX uses GNU C++, but need to define -shared option too, otherwise
15702      # it will coredump.
15703      lt_prog_compiler_pic='-fPIC -shared'
15704      ;;
15705
15706    osf3* | osf4* | osf5*)
15707      lt_prog_compiler_wl='-Wl,'
15708      # All OSF/1 code is PIC.
15709      lt_prog_compiler_static='-non_shared'
15710      ;;
15711
15712    rdos*)
15713      lt_prog_compiler_static='-non_shared'
15714      ;;
15715
15716    solaris*)
15717      lt_prog_compiler_pic='-KPIC'
15718      lt_prog_compiler_static='-Bstatic'
15719      case $cc_basename in
15720      f77* | f90* | f95*)
15721	lt_prog_compiler_wl='-Qoption ld ';;
15722      *)
15723	lt_prog_compiler_wl='-Wl,';;
15724      esac
15725      ;;
15726
15727    sunos4*)
15728      lt_prog_compiler_wl='-Qoption ld '
15729      lt_prog_compiler_pic='-PIC'
15730      lt_prog_compiler_static='-Bstatic'
15731      ;;
15732
15733    sysv4 | sysv4.2uw2* | sysv4.3*)
15734      lt_prog_compiler_wl='-Wl,'
15735      lt_prog_compiler_pic='-KPIC'
15736      lt_prog_compiler_static='-Bstatic'
15737      ;;
15738
15739    sysv4*MP*)
15740      if test -d /usr/nec ;then
15741	lt_prog_compiler_pic='-Kconform_pic'
15742	lt_prog_compiler_static='-Bstatic'
15743      fi
15744      ;;
15745
15746    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15747      lt_prog_compiler_wl='-Wl,'
15748      lt_prog_compiler_pic='-KPIC'
15749      lt_prog_compiler_static='-Bstatic'
15750      ;;
15751
15752    unicos*)
15753      lt_prog_compiler_wl='-Wl,'
15754      lt_prog_compiler_can_build_shared=no
15755      ;;
15756
15757    uts4*)
15758      lt_prog_compiler_pic='-pic'
15759      lt_prog_compiler_static='-Bstatic'
15760      ;;
15761
15762    *)
15763      lt_prog_compiler_can_build_shared=no
15764      ;;
15765    esac
15766  fi
15767
15768case $host_os in
15769  # For platforms which do not support PIC, -DPIC is meaningless:
15770  *djgpp*)
15771    lt_prog_compiler_pic=
15772    ;;
15773  *)
15774    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15775    ;;
15776esac
15777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15778$as_echo "$lt_prog_compiler_pic" >&6; }
15779
15780
15781
15782
15783
15784
15785#
15786# Check to make sure the PIC flag actually works.
15787#
15788if test -n "$lt_prog_compiler_pic"; then
15789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15790$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15791if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15792  $as_echo_n "(cached) " >&6
15793else
15794  lt_cv_prog_compiler_pic_works=no
15795   ac_outfile=conftest.$ac_objext
15796   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15797   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15798   # Insert the option either (1) after the last *FLAGS variable, or
15799   # (2) before a word containing "conftest.", or (3) at the end.
15800   # Note that $ac_compile itself does not contain backslashes and begins
15801   # with a dollar sign (not a hyphen), so the echo should work correctly.
15802   # The option is referenced via a variable to avoid confusing sed.
15803   lt_compile=`echo "$ac_compile" | $SED \
15804   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15805   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15806   -e 's:$: $lt_compiler_flag:'`
15807   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15808   (eval "$lt_compile" 2>conftest.err)
15809   ac_status=$?
15810   cat conftest.err >&5
15811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812   if (exit $ac_status) && test -s "$ac_outfile"; then
15813     # The compiler can only warn and ignore the option if not recognized
15814     # So say no if there are warnings other than the usual output.
15815     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15816     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15817     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15818       lt_cv_prog_compiler_pic_works=yes
15819     fi
15820   fi
15821   $RM conftest*
15822
15823fi
15824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15825$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15826
15827if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15828    case $lt_prog_compiler_pic in
15829     "" | " "*) ;;
15830     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15831     esac
15832else
15833    lt_prog_compiler_pic=
15834     lt_prog_compiler_can_build_shared=no
15835fi
15836
15837fi
15838
15839
15840
15841
15842
15843
15844#
15845# Check to make sure the static flag actually works.
15846#
15847wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15849$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15850if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15851  $as_echo_n "(cached) " >&6
15852else
15853  lt_cv_prog_compiler_static_works=no
15854   save_LDFLAGS="$LDFLAGS"
15855   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15856   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15857   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15858     # The linker can only warn and ignore the option if not recognized
15859     # So say no if there are warnings
15860     if test -s conftest.err; then
15861       # Append any errors to the config.log.
15862       cat conftest.err 1>&5
15863       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15864       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15865       if diff conftest.exp conftest.er2 >/dev/null; then
15866         lt_cv_prog_compiler_static_works=yes
15867       fi
15868     else
15869       lt_cv_prog_compiler_static_works=yes
15870     fi
15871   fi
15872   $RM -r conftest*
15873   LDFLAGS="$save_LDFLAGS"
15874
15875fi
15876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15877$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15878
15879if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15880    :
15881else
15882    lt_prog_compiler_static=
15883fi
15884
15885
15886
15887
15888
15889
15890
15891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15892$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15893if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15894  $as_echo_n "(cached) " >&6
15895else
15896  lt_cv_prog_compiler_c_o=no
15897   $RM -r conftest 2>/dev/null
15898   mkdir conftest
15899   cd conftest
15900   mkdir out
15901   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15902
15903   lt_compiler_flag="-o out/conftest2.$ac_objext"
15904   # Insert the option either (1) after the last *FLAGS variable, or
15905   # (2) before a word containing "conftest.", or (3) at the end.
15906   # Note that $ac_compile itself does not contain backslashes and begins
15907   # with a dollar sign (not a hyphen), so the echo should work correctly.
15908   lt_compile=`echo "$ac_compile" | $SED \
15909   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15911   -e 's:$: $lt_compiler_flag:'`
15912   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15913   (eval "$lt_compile" 2>out/conftest.err)
15914   ac_status=$?
15915   cat out/conftest.err >&5
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15918   then
15919     # The compiler can only warn and ignore the option if not recognized
15920     # So say no if there are warnings
15921     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15922     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15923     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15924       lt_cv_prog_compiler_c_o=yes
15925     fi
15926   fi
15927   chmod u+w . 2>&5
15928   $RM conftest*
15929   # SGI C++ compiler will create directory out/ii_files/ for
15930   # template instantiation
15931   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15932   $RM out/* && rmdir out
15933   cd ..
15934   $RM -r conftest
15935   $RM conftest*
15936
15937fi
15938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15939$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15940
15941
15942
15943
15944
15945
15946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15947$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15948if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15949  $as_echo_n "(cached) " >&6
15950else
15951  lt_cv_prog_compiler_c_o=no
15952   $RM -r conftest 2>/dev/null
15953   mkdir conftest
15954   cd conftest
15955   mkdir out
15956   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15957
15958   lt_compiler_flag="-o out/conftest2.$ac_objext"
15959   # Insert the option either (1) after the last *FLAGS variable, or
15960   # (2) before a word containing "conftest.", or (3) at the end.
15961   # Note that $ac_compile itself does not contain backslashes and begins
15962   # with a dollar sign (not a hyphen), so the echo should work correctly.
15963   lt_compile=`echo "$ac_compile" | $SED \
15964   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15965   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15966   -e 's:$: $lt_compiler_flag:'`
15967   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15968   (eval "$lt_compile" 2>out/conftest.err)
15969   ac_status=$?
15970   cat out/conftest.err >&5
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15973   then
15974     # The compiler can only warn and ignore the option if not recognized
15975     # So say no if there are warnings
15976     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15977     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15978     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15979       lt_cv_prog_compiler_c_o=yes
15980     fi
15981   fi
15982   chmod u+w . 2>&5
15983   $RM conftest*
15984   # SGI C++ compiler will create directory out/ii_files/ for
15985   # template instantiation
15986   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15987   $RM out/* && rmdir out
15988   cd ..
15989   $RM -r conftest
15990   $RM conftest*
15991
15992fi
15993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15994$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15995
15996
15997
15998
15999hard_links="nottested"
16000if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16001  # do not overwrite the value of need_locks provided by the user
16002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16003$as_echo_n "checking if we can lock with hard links... " >&6; }
16004  hard_links=yes
16005  $RM conftest*
16006  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16007  touch conftest.a
16008  ln conftest.a conftest.b 2>&5 || hard_links=no
16009  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16011$as_echo "$hard_links" >&6; }
16012  if test "$hard_links" = no; then
16013    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16014$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16015    need_locks=warn
16016  fi
16017else
16018  need_locks=no
16019fi
16020
16021
16022
16023
16024
16025
16026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16027$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16028
16029  runpath_var=
16030  allow_undefined_flag=
16031  always_export_symbols=no
16032  archive_cmds=
16033  archive_expsym_cmds=
16034  compiler_needs_object=no
16035  enable_shared_with_static_runtimes=no
16036  export_dynamic_flag_spec=
16037  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16038  hardcode_automatic=no
16039  hardcode_direct=no
16040  hardcode_direct_absolute=no
16041  hardcode_libdir_flag_spec=
16042  hardcode_libdir_flag_spec_ld=
16043  hardcode_libdir_separator=
16044  hardcode_minus_L=no
16045  hardcode_shlibpath_var=unsupported
16046  inherit_rpath=no
16047  link_all_deplibs=unknown
16048  module_cmds=
16049  module_expsym_cmds=
16050  old_archive_from_new_cmds=
16051  old_archive_from_expsyms_cmds=
16052  thread_safe_flag_spec=
16053  whole_archive_flag_spec=
16054  # include_expsyms should be a list of space-separated symbols to be *always*
16055  # included in the symbol list
16056  include_expsyms=
16057  # exclude_expsyms can be an extended regexp of symbols to exclude
16058  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16059  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16060  # as well as any symbol that contains `d'.
16061  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16062  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16063  # platforms (ab)use it in PIC code, but their linkers get confused if
16064  # the symbol is explicitly referenced.  Since portable code cannot
16065  # rely on this symbol name, it's probably fine to never include it in
16066  # preloaded symbol tables.
16067  # Exclude shared library initialization/finalization symbols.
16068  extract_expsyms_cmds=
16069
16070  case $host_os in
16071  cygwin* | mingw* | pw32* | cegcc*)
16072    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16073    # When not using gcc, we currently assume that we are using
16074    # Microsoft Visual C++.
16075    if test "$GCC" != yes; then
16076      with_gnu_ld=no
16077    fi
16078    ;;
16079  interix*)
16080    # we just hope/assume this is gcc and not c89 (= MSVC++)
16081    with_gnu_ld=yes
16082    ;;
16083  openbsd*)
16084    with_gnu_ld=no
16085    ;;
16086  esac
16087
16088  ld_shlibs=yes
16089
16090  # On some targets, GNU ld is compatible enough with the native linker
16091  # that we're better off using the native interface for both.
16092  lt_use_gnu_ld_interface=no
16093  if test "$with_gnu_ld" = yes; then
16094    case $host_os in
16095      aix*)
16096	# The AIX port of GNU ld has always aspired to compatibility
16097	# with the native linker.  However, as the warning in the GNU ld
16098	# block says, versions before 2.19.5* couldn't really create working
16099	# shared libraries, regardless of the interface used.
16100	case `$LD -v 2>&1` in
16101	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16102	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16103	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16104	  *)
16105	    lt_use_gnu_ld_interface=yes
16106	    ;;
16107	esac
16108	;;
16109      *)
16110	lt_use_gnu_ld_interface=yes
16111	;;
16112    esac
16113  fi
16114
16115  if test "$lt_use_gnu_ld_interface" = yes; then
16116    # If archive_cmds runs LD, not CC, wlarc should be empty
16117    wlarc='${wl}'
16118
16119    # Set some defaults for GNU ld with shared library support. These
16120    # are reset later if shared libraries are not supported. Putting them
16121    # here allows them to be overridden if necessary.
16122    runpath_var=LD_RUN_PATH
16123    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16124    export_dynamic_flag_spec='${wl}--export-dynamic'
16125    # ancient GNU ld didn't support --whole-archive et. al.
16126    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16127      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16128    else
16129      whole_archive_flag_spec=
16130    fi
16131    supports_anon_versioning=no
16132    case `$LD -v 2>&1` in
16133      *GNU\ gold*) supports_anon_versioning=yes ;;
16134      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16135      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16136      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16137      *\ 2.11.*) ;; # other 2.11 versions
16138      *) supports_anon_versioning=yes ;;
16139    esac
16140
16141    # See if GNU ld supports shared libraries.
16142    case $host_os in
16143    aix[3-9]*)
16144      # On AIX/PPC, the GNU linker is very broken
16145      if test "$host_cpu" != ia64; then
16146	ld_shlibs=no
16147	cat <<_LT_EOF 1>&2
16148
16149*** Warning: the GNU linker, at least up to release 2.19, is reported
16150*** to be unable to reliably create shared libraries on AIX.
16151*** Therefore, libtool is disabling shared libraries support.  If you
16152*** really care for shared libraries, you may want to install binutils
16153*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16154*** You will then need to restart the configuration process.
16155
16156_LT_EOF
16157      fi
16158      ;;
16159
16160    amigaos*)
16161      case $host_cpu in
16162      powerpc)
16163            # see comment about AmigaOS4 .so support
16164            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16165            archive_expsym_cmds=''
16166        ;;
16167      m68k)
16168            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)'
16169            hardcode_libdir_flag_spec='-L$libdir'
16170            hardcode_minus_L=yes
16171        ;;
16172      esac
16173      ;;
16174
16175    beos*)
16176      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16177	allow_undefined_flag=unsupported
16178	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16179	# support --undefined.  This deserves some investigation.  FIXME
16180	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16181      else
16182	ld_shlibs=no
16183      fi
16184      ;;
16185
16186    cygwin* | mingw* | pw32* | cegcc*)
16187      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16188      # as there is no search path for DLLs.
16189      hardcode_libdir_flag_spec='-L$libdir'
16190      export_dynamic_flag_spec='${wl}--export-all-symbols'
16191      allow_undefined_flag=unsupported
16192      always_export_symbols=no
16193      enable_shared_with_static_runtimes=yes
16194      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16195
16196      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16197        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16198	# If the export-symbols file already is a .def file (1st line
16199	# is EXPORTS), use it as is; otherwise, prepend...
16200	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16201	  cp $export_symbols $output_objdir/$soname.def;
16202	else
16203	  echo EXPORTS > $output_objdir/$soname.def;
16204	  cat $export_symbols >> $output_objdir/$soname.def;
16205	fi~
16206	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16207      else
16208	ld_shlibs=no
16209      fi
16210      ;;
16211
16212    haiku*)
16213      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16214      link_all_deplibs=yes
16215      ;;
16216
16217    interix[3-9]*)
16218      hardcode_direct=no
16219      hardcode_shlibpath_var=no
16220      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16221      export_dynamic_flag_spec='${wl}-E'
16222      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16223      # Instead, shared libraries are loaded at an image base (0x10000000 by
16224      # default) and relocated if they conflict, which is a slow very memory
16225      # consuming and fragmenting process.  To avoid this, we pick a random,
16226      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16227      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16228      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16229      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'
16230      ;;
16231
16232    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16233      tmp_diet=no
16234      if test "$host_os" = linux-dietlibc; then
16235	case $cc_basename in
16236	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16237	esac
16238      fi
16239      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16240	 && test "$tmp_diet" = no
16241      then
16242	tmp_addflag=' $pic_flag'
16243	tmp_sharedflag='-shared'
16244	case $cc_basename,$host_cpu in
16245        pgcc*)				# Portland Group C compiler
16246	  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'
16247	  tmp_addflag=' $pic_flag'
16248	  ;;
16249	pgf77* | pgf90* | pgf95* | pgfortran*)
16250					# Portland Group f77 and f90 compilers
16251	  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'
16252	  tmp_addflag=' $pic_flag -Mnomain' ;;
16253	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16254	  tmp_addflag=' -i_dynamic' ;;
16255	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16256	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16257	ifc* | ifort*)			# Intel Fortran compiler
16258	  tmp_addflag=' -nofor_main' ;;
16259	lf95*)				# Lahey Fortran 8.1
16260	  whole_archive_flag_spec=
16261	  tmp_sharedflag='--shared' ;;
16262	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16263	  tmp_sharedflag='-qmkshrobj'
16264	  tmp_addflag= ;;
16265	nvcc*)	# Cuda Compiler Driver 2.2
16266	  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'
16267	  compiler_needs_object=yes
16268	  ;;
16269	esac
16270	case `$CC -V 2>&1 | sed 5q` in
16271	*Sun\ C*)			# Sun C 5.9
16272	  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'
16273	  compiler_needs_object=yes
16274	  tmp_sharedflag='-G' ;;
16275	*Sun\ F*)			# Sun Fortran 8.3
16276	  tmp_sharedflag='-G' ;;
16277	esac
16278	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16279
16280        if test "x$supports_anon_versioning" = xyes; then
16281          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16282	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16283	    echo "local: *; };" >> $output_objdir/$libname.ver~
16284	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16285        fi
16286
16287	case $cc_basename in
16288	xlf* | bgf* | bgxlf* | mpixlf*)
16289	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16290	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16291	  hardcode_libdir_flag_spec=
16292	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
16293	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16294	  if test "x$supports_anon_versioning" = xyes; then
16295	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16296	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16297	      echo "local: *; };" >> $output_objdir/$libname.ver~
16298	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16299	  fi
16300	  ;;
16301	esac
16302      else
16303        ld_shlibs=no
16304      fi
16305      ;;
16306
16307    netbsd*)
16308      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16309	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16310	wlarc=
16311      else
16312	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16313	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16314      fi
16315      ;;
16316
16317    solaris*)
16318      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16319	ld_shlibs=no
16320	cat <<_LT_EOF 1>&2
16321
16322*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16323*** create shared libraries on Solaris systems.  Therefore, libtool
16324*** is disabling shared libraries support.  We urge you to upgrade GNU
16325*** binutils to release 2.9.1 or newer.  Another option is to modify
16326*** your PATH or compiler configuration so that the native linker is
16327*** used, and then restart.
16328
16329_LT_EOF
16330      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16331	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16332	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16333      else
16334	ld_shlibs=no
16335      fi
16336      ;;
16337
16338    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16339      case `$LD -v 2>&1` in
16340        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16341	ld_shlibs=no
16342	cat <<_LT_EOF 1>&2
16343
16344*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16345*** reliably create shared libraries on SCO systems.  Therefore, libtool
16346*** is disabling shared libraries support.  We urge you to upgrade GNU
16347*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16348*** your PATH or compiler configuration so that the native linker is
16349*** used, and then restart.
16350
16351_LT_EOF
16352	;;
16353	*)
16354	  # For security reasons, it is highly recommended that you always
16355	  # use absolute paths for naming shared libraries, and exclude the
16356	  # DT_RUNPATH tag from executables and libraries.  But doing so
16357	  # requires that you compile everything twice, which is a pain.
16358	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16359	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16360	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16361	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16362	  else
16363	    ld_shlibs=no
16364	  fi
16365	;;
16366      esac
16367      ;;
16368
16369    sunos4*)
16370      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16371      wlarc=
16372      hardcode_direct=yes
16373      hardcode_shlibpath_var=no
16374      ;;
16375
16376    *)
16377      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16378	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16379	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16380      else
16381	ld_shlibs=no
16382      fi
16383      ;;
16384    esac
16385
16386    if test "$ld_shlibs" = no; then
16387      runpath_var=
16388      hardcode_libdir_flag_spec=
16389      export_dynamic_flag_spec=
16390      whole_archive_flag_spec=
16391    fi
16392  else
16393    # PORTME fill in a description of your system's linker (not GNU ld)
16394    case $host_os in
16395    aix3*)
16396      allow_undefined_flag=unsupported
16397      always_export_symbols=yes
16398      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'
16399      # Note: this linker hardcodes the directories in LIBPATH if there
16400      # are no directories specified by -L.
16401      hardcode_minus_L=yes
16402      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16403	# Neither direct hardcoding nor static linking is supported with a
16404	# broken collect2.
16405	hardcode_direct=unsupported
16406      fi
16407      ;;
16408
16409    aix[4-9]*)
16410      if test "$host_cpu" = ia64; then
16411	# On IA64, the linker does run time linking by default, so we don't
16412	# have to do anything special.
16413	aix_use_runtimelinking=no
16414	exp_sym_flag='-Bexport'
16415	no_entry_flag=""
16416      else
16417	# If we're using GNU nm, then we don't want the "-C" option.
16418	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16419	# Also, AIX nm treats weak defined symbols like other global
16420	# defined symbols, whereas GNU nm marks them as "W".
16421	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16422	  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'
16423	else
16424	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16425	fi
16426	aix_use_runtimelinking=no
16427
16428	# Test if we are trying to use run time linking or normal
16429	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16430	# need to do runtime linking.
16431	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16432	  for ld_flag in $LDFLAGS; do
16433	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16434	    aix_use_runtimelinking=yes
16435	    break
16436	  fi
16437	  done
16438	  ;;
16439	esac
16440
16441	exp_sym_flag='-bexport'
16442	no_entry_flag='-bnoentry'
16443      fi
16444
16445      # When large executables or shared objects are built, AIX ld can
16446      # have problems creating the table of contents.  If linking a library
16447      # or program results in "error TOC overflow" add -mminimal-toc to
16448      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16449      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16450
16451      archive_cmds=''
16452      hardcode_direct=yes
16453      hardcode_direct_absolute=yes
16454      hardcode_libdir_separator=':'
16455      link_all_deplibs=yes
16456      file_list_spec='${wl}-f,'
16457
16458      if test "$GCC" = yes; then
16459	case $host_os in aix4.[012]|aix4.[012].*)
16460	# We only want to do this on AIX 4.2 and lower, the check
16461	# below for broken collect2 doesn't work under 4.3+
16462	  collect2name=`${CC} -print-prog-name=collect2`
16463	  if test -f "$collect2name" &&
16464	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16465	  then
16466	  # We have reworked collect2
16467	  :
16468	  else
16469	  # We have old collect2
16470	  hardcode_direct=unsupported
16471	  # It fails to find uninstalled libraries when the uninstalled
16472	  # path is not listed in the libpath.  Setting hardcode_minus_L
16473	  # to unsupported forces relinking
16474	  hardcode_minus_L=yes
16475	  hardcode_libdir_flag_spec='-L$libdir'
16476	  hardcode_libdir_separator=
16477	  fi
16478	  ;;
16479	esac
16480	shared_flag='-shared'
16481	if test "$aix_use_runtimelinking" = yes; then
16482	  shared_flag="$shared_flag "'${wl}-G'
16483	fi
16484      else
16485	# not using gcc
16486	if test "$host_cpu" = ia64; then
16487	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16488	# chokes on -Wl,-G. The following line is correct:
16489	  shared_flag='-G'
16490	else
16491	  if test "$aix_use_runtimelinking" = yes; then
16492	    shared_flag='${wl}-G'
16493	  else
16494	    shared_flag='${wl}-bM:SRE'
16495	  fi
16496	fi
16497      fi
16498
16499      export_dynamic_flag_spec='${wl}-bexpall'
16500      # It seems that -bexpall does not export symbols beginning with
16501      # underscore (_), so it is better to generate a list of symbols to export.
16502      always_export_symbols=yes
16503      if test "$aix_use_runtimelinking" = yes; then
16504	# Warning - without using the other runtime loading flags (-brtl),
16505	# -berok will link without error, but may produce a broken library.
16506	allow_undefined_flag='-berok'
16507        # Determine the default libpath from the value encoded in an
16508        # empty executable.
16509        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510/* end confdefs.h.  */
16511
16512int
16513main ()
16514{
16515
16516  ;
16517  return 0;
16518}
16519_ACEOF
16520if ac_fn_c_try_link "$LINENO"; then :
16521
16522lt_aix_libpath_sed='
16523    /Import File Strings/,/^$/ {
16524	/^0/ {
16525	    s/^0  *\(.*\)$/\1/
16526	    p
16527	}
16528    }'
16529aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16530# Check for a 64-bit object if we didn't find anything.
16531if test -z "$aix_libpath"; then
16532  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16533fi
16534fi
16535rm -f core conftest.err conftest.$ac_objext \
16536    conftest$ac_exeext conftest.$ac_ext
16537if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16538
16539        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16540        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"
16541      else
16542	if test "$host_cpu" = ia64; then
16543	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16544	  allow_undefined_flag="-z nodefs"
16545	  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"
16546	else
16547	 # Determine the default libpath from the value encoded in an
16548	 # empty executable.
16549	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550/* end confdefs.h.  */
16551
16552int
16553main ()
16554{
16555
16556  ;
16557  return 0;
16558}
16559_ACEOF
16560if ac_fn_c_try_link "$LINENO"; then :
16561
16562lt_aix_libpath_sed='
16563    /Import File Strings/,/^$/ {
16564	/^0/ {
16565	    s/^0  *\(.*\)$/\1/
16566	    p
16567	}
16568    }'
16569aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16570# Check for a 64-bit object if we didn't find anything.
16571if test -z "$aix_libpath"; then
16572  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16573fi
16574fi
16575rm -f core conftest.err conftest.$ac_objext \
16576    conftest$ac_exeext conftest.$ac_ext
16577if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16578
16579	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16580	  # Warning - without using the other run time loading flags,
16581	  # -berok will link without error, but may produce a broken library.
16582	  no_undefined_flag=' ${wl}-bernotok'
16583	  allow_undefined_flag=' ${wl}-berok'
16584	  if test "$with_gnu_ld" = yes; then
16585	    # We only use this code for GNU lds that support --whole-archive.
16586	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16587	  else
16588	    # Exported symbols can be pulled into shared objects from archives
16589	    whole_archive_flag_spec='$convenience'
16590	  fi
16591	  archive_cmds_need_lc=yes
16592	  # This is similar to how AIX traditionally builds its shared libraries.
16593	  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'
16594	fi
16595      fi
16596      ;;
16597
16598    amigaos*)
16599      case $host_cpu in
16600      powerpc)
16601            # see comment about AmigaOS4 .so support
16602            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16603            archive_expsym_cmds=''
16604        ;;
16605      m68k)
16606            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)'
16607            hardcode_libdir_flag_spec='-L$libdir'
16608            hardcode_minus_L=yes
16609        ;;
16610      esac
16611      ;;
16612
16613    bsdi[45]*)
16614      export_dynamic_flag_spec=-rdynamic
16615      ;;
16616
16617    cygwin* | mingw* | pw32* | cegcc*)
16618      # When not using gcc, we currently assume that we are using
16619      # Microsoft Visual C++.
16620      # hardcode_libdir_flag_spec is actually meaningless, as there is
16621      # no search path for DLLs.
16622      hardcode_libdir_flag_spec=' '
16623      allow_undefined_flag=unsupported
16624      # Tell ltmain to make .lib files, not .a files.
16625      libext=lib
16626      # Tell ltmain to make .dll files, not .so files.
16627      shrext_cmds=".dll"
16628      # FIXME: Setting linknames here is a bad hack.
16629      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16630      # The linker will automatically build a .lib file if we build a DLL.
16631      old_archive_from_new_cmds='true'
16632      # FIXME: Should let the user specify the lib program.
16633      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16634      fix_srcfile_path='`cygpath -w "$srcfile"`'
16635      enable_shared_with_static_runtimes=yes
16636      ;;
16637
16638    darwin* | rhapsody*)
16639
16640
16641  archive_cmds_need_lc=no
16642  hardcode_direct=no
16643  hardcode_automatic=yes
16644  hardcode_shlibpath_var=unsupported
16645  if test "$lt_cv_ld_force_load" = "yes"; then
16646    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\"`'
16647  else
16648    whole_archive_flag_spec=''
16649  fi
16650  link_all_deplibs=yes
16651  allow_undefined_flag="$_lt_dar_allow_undefined"
16652  case $cc_basename in
16653     ifort*) _lt_dar_can_shared=yes ;;
16654     *) _lt_dar_can_shared=$GCC ;;
16655  esac
16656  if test "$_lt_dar_can_shared" = "yes"; then
16657    output_verbose_link_cmd=func_echo_all
16658    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16659    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16660    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}"
16661    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}"
16662
16663  else
16664  ld_shlibs=no
16665  fi
16666
16667      ;;
16668
16669    dgux*)
16670      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671      hardcode_libdir_flag_spec='-L$libdir'
16672      hardcode_shlibpath_var=no
16673      ;;
16674
16675    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16676    # support.  Future versions do this automatically, but an explicit c++rt0.o
16677    # does not break anything, and helps significantly (at the cost of a little
16678    # extra space).
16679    freebsd2.2*)
16680      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16681      hardcode_libdir_flag_spec='-R$libdir'
16682      hardcode_direct=yes
16683      hardcode_shlibpath_var=no
16684      ;;
16685
16686    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16687    freebsd2.*)
16688      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16689      hardcode_direct=yes
16690      hardcode_minus_L=yes
16691      hardcode_shlibpath_var=no
16692      ;;
16693
16694    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16695    freebsd* | dragonfly*)
16696      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16697      hardcode_libdir_flag_spec='-R$libdir'
16698      hardcode_direct=yes
16699      hardcode_shlibpath_var=no
16700      ;;
16701
16702    hpux9*)
16703      if test "$GCC" = yes; then
16704	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'
16705      else
16706	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'
16707      fi
16708      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16709      hardcode_libdir_separator=:
16710      hardcode_direct=yes
16711
16712      # hardcode_minus_L: Not really in the search PATH,
16713      # but as the default location of the library.
16714      hardcode_minus_L=yes
16715      export_dynamic_flag_spec='${wl}-E'
16716      ;;
16717
16718    hpux10*)
16719      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16720	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16721      else
16722	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16723      fi
16724      if test "$with_gnu_ld" = no; then
16725	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16726	hardcode_libdir_flag_spec_ld='+b $libdir'
16727	hardcode_libdir_separator=:
16728	hardcode_direct=yes
16729	hardcode_direct_absolute=yes
16730	export_dynamic_flag_spec='${wl}-E'
16731	# hardcode_minus_L: Not really in the search PATH,
16732	# but as the default location of the library.
16733	hardcode_minus_L=yes
16734      fi
16735      ;;
16736
16737    hpux11*)
16738      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16739	case $host_cpu in
16740	hppa*64*)
16741	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16742	  ;;
16743	ia64*)
16744	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16745	  ;;
16746	*)
16747	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16748	  ;;
16749	esac
16750      else
16751	case $host_cpu in
16752	hppa*64*)
16753	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16754	  ;;
16755	ia64*)
16756	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16757	  ;;
16758	*)
16759
16760	  # Older versions of the 11.00 compiler do not understand -b yet
16761	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16762	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16763$as_echo_n "checking if $CC understands -b... " >&6; }
16764if test "${lt_cv_prog_compiler__b+set}" = set; then :
16765  $as_echo_n "(cached) " >&6
16766else
16767  lt_cv_prog_compiler__b=no
16768   save_LDFLAGS="$LDFLAGS"
16769   LDFLAGS="$LDFLAGS -b"
16770   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16771   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16772     # The linker can only warn and ignore the option if not recognized
16773     # So say no if there are warnings
16774     if test -s conftest.err; then
16775       # Append any errors to the config.log.
16776       cat conftest.err 1>&5
16777       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16778       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16779       if diff conftest.exp conftest.er2 >/dev/null; then
16780         lt_cv_prog_compiler__b=yes
16781       fi
16782     else
16783       lt_cv_prog_compiler__b=yes
16784     fi
16785   fi
16786   $RM -r conftest*
16787   LDFLAGS="$save_LDFLAGS"
16788
16789fi
16790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16791$as_echo "$lt_cv_prog_compiler__b" >&6; }
16792
16793if test x"$lt_cv_prog_compiler__b" = xyes; then
16794    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16795else
16796    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16797fi
16798
16799	  ;;
16800	esac
16801      fi
16802      if test "$with_gnu_ld" = no; then
16803	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16804	hardcode_libdir_separator=:
16805
16806	case $host_cpu in
16807	hppa*64*|ia64*)
16808	  hardcode_direct=no
16809	  hardcode_shlibpath_var=no
16810	  ;;
16811	*)
16812	  hardcode_direct=yes
16813	  hardcode_direct_absolute=yes
16814	  export_dynamic_flag_spec='${wl}-E'
16815
16816	  # hardcode_minus_L: Not really in the search PATH,
16817	  # but as the default location of the library.
16818	  hardcode_minus_L=yes
16819	  ;;
16820	esac
16821      fi
16822      ;;
16823
16824    irix5* | irix6* | nonstopux*)
16825      if test "$GCC" = yes; then
16826	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'
16827	# Try to use the -exported_symbol ld option, if it does not
16828	# work, assume that -exports_file does not work either and
16829	# implicitly export all symbols.
16830        save_LDFLAGS="$LDFLAGS"
16831        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16832        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833/* end confdefs.h.  */
16834int foo(void) {}
16835_ACEOF
16836if ac_fn_c_try_link "$LINENO"; then :
16837  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'
16838
16839fi
16840rm -f core conftest.err conftest.$ac_objext \
16841    conftest$ac_exeext conftest.$ac_ext
16842        LDFLAGS="$save_LDFLAGS"
16843      else
16844	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'
16845	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'
16846      fi
16847      archive_cmds_need_lc='no'
16848      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16849      hardcode_libdir_separator=:
16850      inherit_rpath=yes
16851      link_all_deplibs=yes
16852      ;;
16853
16854    netbsd*)
16855      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16856	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16857      else
16858	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16859      fi
16860      hardcode_libdir_flag_spec='-R$libdir'
16861      hardcode_direct=yes
16862      hardcode_shlibpath_var=no
16863      ;;
16864
16865    newsos6)
16866      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16867      hardcode_direct=yes
16868      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16869      hardcode_libdir_separator=:
16870      hardcode_shlibpath_var=no
16871      ;;
16872
16873    *nto* | *qnx*)
16874      ;;
16875
16876    openbsd*)
16877      if test -f /usr/libexec/ld.so; then
16878	hardcode_direct=yes
16879	hardcode_shlibpath_var=no
16880	hardcode_direct_absolute=yes
16881	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16882	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16883	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16884	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16885	  export_dynamic_flag_spec='${wl}-E'
16886	else
16887	  case $host_os in
16888	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16889	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16890	     hardcode_libdir_flag_spec='-R$libdir'
16891	     ;;
16892	   *)
16893	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16894	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16895	     ;;
16896	  esac
16897	fi
16898      else
16899	ld_shlibs=no
16900      fi
16901      ;;
16902
16903    os2*)
16904      hardcode_libdir_flag_spec='-L$libdir'
16905      hardcode_minus_L=yes
16906      allow_undefined_flag=unsupported
16907      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'
16908      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16909      ;;
16910
16911    osf3*)
16912      if test "$GCC" = yes; then
16913	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16914	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'
16915      else
16916	allow_undefined_flag=' -expect_unresolved \*'
16917	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'
16918      fi
16919      archive_cmds_need_lc='no'
16920      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16921      hardcode_libdir_separator=:
16922      ;;
16923
16924    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16925      if test "$GCC" = yes; then
16926	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16927	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'
16928	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16929      else
16930	allow_undefined_flag=' -expect_unresolved \*'
16931	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'
16932	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~
16933	$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'
16934
16935	# Both c and cxx compiler support -rpath directly
16936	hardcode_libdir_flag_spec='-rpath $libdir'
16937      fi
16938      archive_cmds_need_lc='no'
16939      hardcode_libdir_separator=:
16940      ;;
16941
16942    solaris*)
16943      no_undefined_flag=' -z defs'
16944      if test "$GCC" = yes; then
16945	wlarc='${wl}'
16946	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16947	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16948	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16949      else
16950	case `$CC -V 2>&1` in
16951	*"Compilers 5.0"*)
16952	  wlarc=''
16953	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16954	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16955	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16956	  ;;
16957	*)
16958	  wlarc='${wl}'
16959	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16960	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16961	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16962	  ;;
16963	esac
16964      fi
16965      hardcode_libdir_flag_spec='-R$libdir'
16966      hardcode_shlibpath_var=no
16967      case $host_os in
16968      solaris2.[0-5] | solaris2.[0-5].*) ;;
16969      *)
16970	# The compiler driver will combine and reorder linker options,
16971	# but understands `-z linker_flag'.  GCC discards it without `$wl',
16972	# but is careful enough not to reorder.
16973	# Supported since Solaris 2.6 (maybe 2.5.1?)
16974	if test "$GCC" = yes; then
16975	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16976	else
16977	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16978	fi
16979	;;
16980      esac
16981      link_all_deplibs=yes
16982      ;;
16983
16984    sunos4*)
16985      if test "x$host_vendor" = xsequent; then
16986	# Use $CC to link under sequent, because it throws in some extra .o
16987	# files that make .init and .fini sections work.
16988	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16989      else
16990	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16991      fi
16992      hardcode_libdir_flag_spec='-L$libdir'
16993      hardcode_direct=yes
16994      hardcode_minus_L=yes
16995      hardcode_shlibpath_var=no
16996      ;;
16997
16998    sysv4)
16999      case $host_vendor in
17000	sni)
17001	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17002	  hardcode_direct=yes # is this really true???
17003	;;
17004	siemens)
17005	  ## LD is ld it makes a PLAMLIB
17006	  ## CC just makes a GrossModule.
17007	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17008	  reload_cmds='$CC -r -o $output$reload_objs'
17009	  hardcode_direct=no
17010        ;;
17011	motorola)
17012	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17013	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17014	;;
17015      esac
17016      runpath_var='LD_RUN_PATH'
17017      hardcode_shlibpath_var=no
17018      ;;
17019
17020    sysv4.3*)
17021      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17022      hardcode_shlibpath_var=no
17023      export_dynamic_flag_spec='-Bexport'
17024      ;;
17025
17026    sysv4*MP*)
17027      if test -d /usr/nec; then
17028	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17029	hardcode_shlibpath_var=no
17030	runpath_var=LD_RUN_PATH
17031	hardcode_runpath_var=yes
17032	ld_shlibs=yes
17033      fi
17034      ;;
17035
17036    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17037      no_undefined_flag='${wl}-z,text'
17038      archive_cmds_need_lc=no
17039      hardcode_shlibpath_var=no
17040      runpath_var='LD_RUN_PATH'
17041
17042      if test "$GCC" = yes; then
17043	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17044	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17045      else
17046	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17047	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17048      fi
17049      ;;
17050
17051    sysv5* | sco3.2v5* | sco5v6*)
17052      # Note: We can NOT use -z defs as we might desire, because we do not
17053      # link with -lc, and that would cause any symbols used from libc to
17054      # always be unresolved, which means just about no library would
17055      # ever link correctly.  If we're not using GNU ld we use -z text
17056      # though, which does catch some bad symbols but isn't as heavy-handed
17057      # as -z defs.
17058      no_undefined_flag='${wl}-z,text'
17059      allow_undefined_flag='${wl}-z,nodefs'
17060      archive_cmds_need_lc=no
17061      hardcode_shlibpath_var=no
17062      hardcode_libdir_flag_spec='${wl}-R,$libdir'
17063      hardcode_libdir_separator=':'
17064      link_all_deplibs=yes
17065      export_dynamic_flag_spec='${wl}-Bexport'
17066      runpath_var='LD_RUN_PATH'
17067
17068      if test "$GCC" = yes; then
17069	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17070	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17071      else
17072	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17073	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17074      fi
17075      ;;
17076
17077    uts4*)
17078      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17079      hardcode_libdir_flag_spec='-L$libdir'
17080      hardcode_shlibpath_var=no
17081      ;;
17082
17083    *)
17084      ld_shlibs=no
17085      ;;
17086    esac
17087
17088    if test x$host_vendor = xsni; then
17089      case $host in
17090      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17091	export_dynamic_flag_spec='${wl}-Blargedynsym'
17092	;;
17093      esac
17094    fi
17095  fi
17096
17097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17098$as_echo "$ld_shlibs" >&6; }
17099test "$ld_shlibs" = no && can_build_shared=no
17100
17101with_gnu_ld=$with_gnu_ld
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117#
17118# Do we need to explicitly link libc?
17119#
17120case "x$archive_cmds_need_lc" in
17121x|xyes)
17122  # Assume -lc should be added
17123  archive_cmds_need_lc=yes
17124
17125  if test "$enable_shared" = yes && test "$GCC" = yes; then
17126    case $archive_cmds in
17127    *'~'*)
17128      # FIXME: we may have to deal with multi-command sequences.
17129      ;;
17130    '$CC '*)
17131      # Test whether the compiler implicitly links with -lc since on some
17132      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17133      # to ld, don't add -lc before -lgcc.
17134      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17135$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17136if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17137  $as_echo_n "(cached) " >&6
17138else
17139  $RM conftest*
17140	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17141
17142	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17143  (eval $ac_compile) 2>&5
17144  ac_status=$?
17145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17146  test $ac_status = 0; } 2>conftest.err; then
17147	  soname=conftest
17148	  lib=conftest
17149	  libobjs=conftest.$ac_objext
17150	  deplibs=
17151	  wl=$lt_prog_compiler_wl
17152	  pic_flag=$lt_prog_compiler_pic
17153	  compiler_flags=-v
17154	  linker_flags=-v
17155	  verstring=
17156	  output_objdir=.
17157	  libname=conftest
17158	  lt_save_allow_undefined_flag=$allow_undefined_flag
17159	  allow_undefined_flag=
17160	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17161  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17162  ac_status=$?
17163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17164  test $ac_status = 0; }
17165	  then
17166	    lt_cv_archive_cmds_need_lc=no
17167	  else
17168	    lt_cv_archive_cmds_need_lc=yes
17169	  fi
17170	  allow_undefined_flag=$lt_save_allow_undefined_flag
17171	else
17172	  cat conftest.err 1>&5
17173	fi
17174	$RM conftest*
17175
17176fi
17177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17178$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17179      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17180      ;;
17181    esac
17182  fi
17183  ;;
17184esac
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17343$as_echo_n "checking dynamic linker characteristics... " >&6; }
17344
17345if test "$GCC" = yes; then
17346  case $host_os in
17347    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17348    *) lt_awk_arg="/^libraries:/" ;;
17349  esac
17350  case $host_os in
17351    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17352    *) lt_sed_strip_eq="s,=/,/,g" ;;
17353  esac
17354  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17355  case $lt_search_path_spec in
17356  *\;*)
17357    # if the path contains ";" then we assume it to be the separator
17358    # otherwise default to the standard path separator (i.e. ":") - it is
17359    # assumed that no part of a normal pathname contains ";" but that should
17360    # okay in the real world where ";" in dirpaths is itself problematic.
17361    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17362    ;;
17363  *)
17364    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17365    ;;
17366  esac
17367  # Ok, now we have the path, separated by spaces, we can step through it
17368  # and add multilib dir if necessary.
17369  lt_tmp_lt_search_path_spec=
17370  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17371  for lt_sys_path in $lt_search_path_spec; do
17372    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17373      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17374    else
17375      test -d "$lt_sys_path" && \
17376	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17377    fi
17378  done
17379  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17380BEGIN {RS=" "; FS="/|\n";} {
17381  lt_foo="";
17382  lt_count=0;
17383  for (lt_i = NF; lt_i > 0; lt_i--) {
17384    if ($lt_i != "" && $lt_i != ".") {
17385      if ($lt_i == "..") {
17386        lt_count++;
17387      } else {
17388        if (lt_count == 0) {
17389          lt_foo="/" $lt_i lt_foo;
17390        } else {
17391          lt_count--;
17392        }
17393      }
17394    }
17395  }
17396  if (lt_foo != "") { lt_freq[lt_foo]++; }
17397  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17398}'`
17399  # AWK program above erroneously prepends '/' to C:/dos/paths
17400  # for these hosts.
17401  case $host_os in
17402    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17403      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17404  esac
17405  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17406else
17407  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17408fi
17409library_names_spec=
17410libname_spec='lib$name'
17411soname_spec=
17412shrext_cmds=".so"
17413postinstall_cmds=
17414postuninstall_cmds=
17415finish_cmds=
17416finish_eval=
17417shlibpath_var=
17418shlibpath_overrides_runpath=unknown
17419version_type=none
17420dynamic_linker="$host_os ld.so"
17421sys_lib_dlsearch_path_spec="/lib /usr/lib"
17422need_lib_prefix=unknown
17423hardcode_into_libs=no
17424
17425# when you set need_version to no, make sure it does not cause -set_version
17426# flags to be left without arguments
17427need_version=unknown
17428
17429case $host_os in
17430aix3*)
17431  version_type=linux
17432  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17433  shlibpath_var=LIBPATH
17434
17435  # AIX 3 has no versioning support, so we append a major version to the name.
17436  soname_spec='${libname}${release}${shared_ext}$major'
17437  ;;
17438
17439aix[4-9]*)
17440  version_type=linux
17441  need_lib_prefix=no
17442  need_version=no
17443  hardcode_into_libs=yes
17444  if test "$host_cpu" = ia64; then
17445    # AIX 5 supports IA64
17446    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17447    shlibpath_var=LD_LIBRARY_PATH
17448  else
17449    # With GCC up to 2.95.x, collect2 would create an import file
17450    # for dependence libraries.  The import file would start with
17451    # the line `#! .'.  This would cause the generated library to
17452    # depend on `.', always an invalid library.  This was fixed in
17453    # development snapshots of GCC prior to 3.0.
17454    case $host_os in
17455      aix4 | aix4.[01] | aix4.[01].*)
17456      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17457	   echo ' yes '
17458	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17459	:
17460      else
17461	can_build_shared=no
17462      fi
17463      ;;
17464    esac
17465    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17466    # soname into executable. Probably we can add versioning support to
17467    # collect2, so additional links can be useful in future.
17468    if test "$aix_use_runtimelinking" = yes; then
17469      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17470      # instead of lib<name>.a to let people know that these are not
17471      # typical AIX shared libraries.
17472      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17473    else
17474      # We preserve .a as extension for shared libraries through AIX4.2
17475      # and later when we are not doing run time linking.
17476      library_names_spec='${libname}${release}.a $libname.a'
17477      soname_spec='${libname}${release}${shared_ext}$major'
17478    fi
17479    shlibpath_var=LIBPATH
17480  fi
17481  ;;
17482
17483amigaos*)
17484  case $host_cpu in
17485  powerpc)
17486    # Since July 2007 AmigaOS4 officially supports .so libraries.
17487    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17488    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489    ;;
17490  m68k)
17491    library_names_spec='$libname.ixlibrary $libname.a'
17492    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17493    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'
17494    ;;
17495  esac
17496  ;;
17497
17498beos*)
17499  library_names_spec='${libname}${shared_ext}'
17500  dynamic_linker="$host_os ld.so"
17501  shlibpath_var=LIBRARY_PATH
17502  ;;
17503
17504bsdi[45]*)
17505  version_type=linux
17506  need_version=no
17507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17508  soname_spec='${libname}${release}${shared_ext}$major'
17509  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17510  shlibpath_var=LD_LIBRARY_PATH
17511  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17512  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17513  # the default ld.so.conf also contains /usr/contrib/lib and
17514  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17515  # libtool to hard-code these into programs
17516  ;;
17517
17518cygwin* | mingw* | pw32* | cegcc*)
17519  version_type=windows
17520  shrext_cmds=".dll"
17521  need_version=no
17522  need_lib_prefix=no
17523
17524  case $GCC,$host_os in
17525  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17526    library_names_spec='$libname.dll.a'
17527    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17528    postinstall_cmds='base_file=`basename \${file}`~
17529      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17530      dldir=$destdir/`dirname \$dlpath`~
17531      test -d \$dldir || mkdir -p \$dldir~
17532      $install_prog $dir/$dlname \$dldir/$dlname~
17533      chmod a+x \$dldir/$dlname~
17534      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17535        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17536      fi'
17537    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17538      dlpath=$dir/\$dldll~
17539       $RM \$dlpath'
17540    shlibpath_overrides_runpath=yes
17541
17542    case $host_os in
17543    cygwin*)
17544      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17545      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17546
17547      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17548      ;;
17549    mingw* | cegcc*)
17550      # MinGW DLLs use traditional 'lib' prefix
17551      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17552      ;;
17553    pw32*)
17554      # pw32 DLLs use 'pw' prefix rather than 'lib'
17555      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17556      ;;
17557    esac
17558    ;;
17559
17560  *)
17561    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17562    ;;
17563  esac
17564  dynamic_linker='Win32 ld.exe'
17565  # FIXME: first we should search . and the directory the executable is in
17566  shlibpath_var=PATH
17567  ;;
17568
17569darwin* | rhapsody*)
17570  dynamic_linker="$host_os dyld"
17571  version_type=darwin
17572  need_lib_prefix=no
17573  need_version=no
17574  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17575  soname_spec='${libname}${release}${major}$shared_ext'
17576  shlibpath_overrides_runpath=yes
17577  shlibpath_var=DYLD_LIBRARY_PATH
17578  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17579
17580  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17581  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17582  ;;
17583
17584dgux*)
17585  version_type=linux
17586  need_lib_prefix=no
17587  need_version=no
17588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17589  soname_spec='${libname}${release}${shared_ext}$major'
17590  shlibpath_var=LD_LIBRARY_PATH
17591  ;;
17592
17593freebsd* | dragonfly*)
17594  # DragonFly does not have aout.  When/if they implement a new
17595  # versioning mechanism, adjust this.
17596  if test -x /usr/bin/objformat; then
17597    objformat=`/usr/bin/objformat`
17598  else
17599    case $host_os in
17600    freebsd[23].*) objformat=aout ;;
17601    *) objformat=elf ;;
17602    esac
17603  fi
17604  version_type=freebsd-$objformat
17605  case $version_type in
17606    freebsd-elf*)
17607      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17608      need_version=no
17609      need_lib_prefix=no
17610      ;;
17611    freebsd-*)
17612      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17613      need_version=yes
17614      ;;
17615  esac
17616  shlibpath_var=LD_LIBRARY_PATH
17617  case $host_os in
17618  freebsd2.*)
17619    shlibpath_overrides_runpath=yes
17620    ;;
17621  freebsd3.[01]* | freebsdelf3.[01]*)
17622    shlibpath_overrides_runpath=yes
17623    hardcode_into_libs=yes
17624    ;;
17625  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17626  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17627    shlibpath_overrides_runpath=no
17628    hardcode_into_libs=yes
17629    ;;
17630  *) # from 4.6 on, and DragonFly
17631    shlibpath_overrides_runpath=yes
17632    hardcode_into_libs=yes
17633    ;;
17634  esac
17635  ;;
17636
17637gnu*)
17638  version_type=linux
17639  need_lib_prefix=no
17640  need_version=no
17641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17642  soname_spec='${libname}${release}${shared_ext}$major'
17643  shlibpath_var=LD_LIBRARY_PATH
17644  hardcode_into_libs=yes
17645  ;;
17646
17647haiku*)
17648  version_type=linux
17649  need_lib_prefix=no
17650  need_version=no
17651  dynamic_linker="$host_os runtime_loader"
17652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17653  soname_spec='${libname}${release}${shared_ext}$major'
17654  shlibpath_var=LIBRARY_PATH
17655  shlibpath_overrides_runpath=yes
17656  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17657  hardcode_into_libs=yes
17658  ;;
17659
17660hpux9* | hpux10* | hpux11*)
17661  # Give a soname corresponding to the major version so that dld.sl refuses to
17662  # link against other versions.
17663  version_type=sunos
17664  need_lib_prefix=no
17665  need_version=no
17666  case $host_cpu in
17667  ia64*)
17668    shrext_cmds='.so'
17669    hardcode_into_libs=yes
17670    dynamic_linker="$host_os dld.so"
17671    shlibpath_var=LD_LIBRARY_PATH
17672    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17673    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17674    soname_spec='${libname}${release}${shared_ext}$major'
17675    if test "X$HPUX_IA64_MODE" = X32; then
17676      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17677    else
17678      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17679    fi
17680    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17681    ;;
17682  hppa*64*)
17683    shrext_cmds='.sl'
17684    hardcode_into_libs=yes
17685    dynamic_linker="$host_os dld.sl"
17686    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17687    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17688    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689    soname_spec='${libname}${release}${shared_ext}$major'
17690    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17691    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17692    ;;
17693  *)
17694    shrext_cmds='.sl'
17695    dynamic_linker="$host_os dld.sl"
17696    shlibpath_var=SHLIB_PATH
17697    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17698    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17699    soname_spec='${libname}${release}${shared_ext}$major'
17700    ;;
17701  esac
17702  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17703  postinstall_cmds='chmod 555 $lib'
17704  # or fails outright, so override atomically:
17705  install_override_mode=555
17706  ;;
17707
17708interix[3-9]*)
17709  version_type=linux
17710  need_lib_prefix=no
17711  need_version=no
17712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17713  soname_spec='${libname}${release}${shared_ext}$major'
17714  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17715  shlibpath_var=LD_LIBRARY_PATH
17716  shlibpath_overrides_runpath=no
17717  hardcode_into_libs=yes
17718  ;;
17719
17720irix5* | irix6* | nonstopux*)
17721  case $host_os in
17722    nonstopux*) version_type=nonstopux ;;
17723    *)
17724	if test "$lt_cv_prog_gnu_ld" = yes; then
17725		version_type=linux
17726	else
17727		version_type=irix
17728	fi ;;
17729  esac
17730  need_lib_prefix=no
17731  need_version=no
17732  soname_spec='${libname}${release}${shared_ext}$major'
17733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17734  case $host_os in
17735  irix5* | nonstopux*)
17736    libsuff= shlibsuff=
17737    ;;
17738  *)
17739    case $LD in # libtool.m4 will add one of these switches to LD
17740    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17741      libsuff= shlibsuff= libmagic=32-bit;;
17742    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17743      libsuff=32 shlibsuff=N32 libmagic=N32;;
17744    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17745      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17746    *) libsuff= shlibsuff= libmagic=never-match;;
17747    esac
17748    ;;
17749  esac
17750  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17751  shlibpath_overrides_runpath=no
17752  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17753  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17754  hardcode_into_libs=yes
17755  ;;
17756
17757# No shared lib support for Linux oldld, aout, or coff.
17758linux*oldld* | linux*aout* | linux*coff*)
17759  dynamic_linker=no
17760  ;;
17761
17762# This must be Linux ELF.
17763linux* | k*bsd*-gnu | kopensolaris*-gnu)
17764  version_type=linux
17765  need_lib_prefix=no
17766  need_version=no
17767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17768  soname_spec='${libname}${release}${shared_ext}$major'
17769  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17770  shlibpath_var=LD_LIBRARY_PATH
17771  shlibpath_overrides_runpath=no
17772
17773  # Some binutils ld are patched to set DT_RUNPATH
17774  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17775  $as_echo_n "(cached) " >&6
17776else
17777  lt_cv_shlibpath_overrides_runpath=no
17778    save_LDFLAGS=$LDFLAGS
17779    save_libdir=$libdir
17780    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17781	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17782    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783/* end confdefs.h.  */
17784
17785int
17786main ()
17787{
17788
17789  ;
17790  return 0;
17791}
17792_ACEOF
17793if ac_fn_c_try_link "$LINENO"; then :
17794  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17795  lt_cv_shlibpath_overrides_runpath=yes
17796fi
17797fi
17798rm -f core conftest.err conftest.$ac_objext \
17799    conftest$ac_exeext conftest.$ac_ext
17800    LDFLAGS=$save_LDFLAGS
17801    libdir=$save_libdir
17802
17803fi
17804
17805  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17806
17807  # This implies no fast_install, which is unacceptable.
17808  # Some rework will be needed to allow for fast_install
17809  # before this can be enabled.
17810  hardcode_into_libs=yes
17811
17812  # Append ld.so.conf contents to the search path
17813  if test -f /etc/ld.so.conf; then
17814    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' ' '`
17815    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17816  fi
17817
17818  # We used to test for /lib/ld.so.1 and disable shared libraries on
17819  # powerpc, because MkLinux only supported shared libraries with the
17820  # GNU dynamic linker.  Since this was broken with cross compilers,
17821  # most powerpc-linux boxes support dynamic linking these days and
17822  # people can always --disable-shared, the test was removed, and we
17823  # assume the GNU/Linux dynamic linker is in use.
17824  dynamic_linker='GNU/Linux ld.so'
17825  ;;
17826
17827netbsd*)
17828  version_type=sunos
17829  need_lib_prefix=no
17830  need_version=no
17831  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17832    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17833    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17834    dynamic_linker='NetBSD (a.out) ld.so'
17835  else
17836    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17837    soname_spec='${libname}${release}${shared_ext}$major'
17838    dynamic_linker='NetBSD ld.elf_so'
17839  fi
17840  shlibpath_var=LD_LIBRARY_PATH
17841  shlibpath_overrides_runpath=yes
17842  hardcode_into_libs=yes
17843  ;;
17844
17845newsos6)
17846  version_type=linux
17847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848  shlibpath_var=LD_LIBRARY_PATH
17849  shlibpath_overrides_runpath=yes
17850  ;;
17851
17852*nto* | *qnx*)
17853  version_type=qnx
17854  need_lib_prefix=no
17855  need_version=no
17856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857  soname_spec='${libname}${release}${shared_ext}$major'
17858  shlibpath_var=LD_LIBRARY_PATH
17859  shlibpath_overrides_runpath=no
17860  hardcode_into_libs=yes
17861  dynamic_linker='ldqnx.so'
17862  ;;
17863
17864openbsd*)
17865  version_type=sunos
17866  sys_lib_dlsearch_path_spec="/usr/lib"
17867  need_lib_prefix=no
17868  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17869  case $host_os in
17870    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17871    *)				need_version=no  ;;
17872  esac
17873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17874  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17875  shlibpath_var=LD_LIBRARY_PATH
17876  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17877    case $host_os in
17878      openbsd2.[89] | openbsd2.[89].*)
17879	shlibpath_overrides_runpath=no
17880	;;
17881      *)
17882	shlibpath_overrides_runpath=yes
17883	;;
17884      esac
17885  else
17886    shlibpath_overrides_runpath=yes
17887  fi
17888  ;;
17889
17890os2*)
17891  libname_spec='$name'
17892  shrext_cmds=".dll"
17893  need_lib_prefix=no
17894  library_names_spec='$libname${shared_ext} $libname.a'
17895  dynamic_linker='OS/2 ld.exe'
17896  shlibpath_var=LIBPATH
17897  ;;
17898
17899osf3* | osf4* | osf5*)
17900  version_type=osf
17901  need_lib_prefix=no
17902  need_version=no
17903  soname_spec='${libname}${release}${shared_ext}$major'
17904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17905  shlibpath_var=LD_LIBRARY_PATH
17906  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17907  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17908  ;;
17909
17910rdos*)
17911  dynamic_linker=no
17912  ;;
17913
17914solaris*)
17915  version_type=linux
17916  need_lib_prefix=no
17917  need_version=no
17918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17919  soname_spec='${libname}${release}${shared_ext}$major'
17920  shlibpath_var=LD_LIBRARY_PATH
17921  shlibpath_overrides_runpath=yes
17922  hardcode_into_libs=yes
17923  # ldd complains unless libraries are executable
17924  postinstall_cmds='chmod +x $lib'
17925  ;;
17926
17927sunos4*)
17928  version_type=sunos
17929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17930  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17931  shlibpath_var=LD_LIBRARY_PATH
17932  shlibpath_overrides_runpath=yes
17933  if test "$with_gnu_ld" = yes; then
17934    need_lib_prefix=no
17935  fi
17936  need_version=yes
17937  ;;
17938
17939sysv4 | sysv4.3*)
17940  version_type=linux
17941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942  soname_spec='${libname}${release}${shared_ext}$major'
17943  shlibpath_var=LD_LIBRARY_PATH
17944  case $host_vendor in
17945    sni)
17946      shlibpath_overrides_runpath=no
17947      need_lib_prefix=no
17948      runpath_var=LD_RUN_PATH
17949      ;;
17950    siemens)
17951      need_lib_prefix=no
17952      ;;
17953    motorola)
17954      need_lib_prefix=no
17955      need_version=no
17956      shlibpath_overrides_runpath=no
17957      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17958      ;;
17959  esac
17960  ;;
17961
17962sysv4*MP*)
17963  if test -d /usr/nec ;then
17964    version_type=linux
17965    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17966    soname_spec='$libname${shared_ext}.$major'
17967    shlibpath_var=LD_LIBRARY_PATH
17968  fi
17969  ;;
17970
17971sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17972  version_type=freebsd-elf
17973  need_lib_prefix=no
17974  need_version=no
17975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17976  soname_spec='${libname}${release}${shared_ext}$major'
17977  shlibpath_var=LD_LIBRARY_PATH
17978  shlibpath_overrides_runpath=yes
17979  hardcode_into_libs=yes
17980  if test "$with_gnu_ld" = yes; then
17981    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17982  else
17983    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17984    case $host_os in
17985      sco3.2v5*)
17986        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17987	;;
17988    esac
17989  fi
17990  sys_lib_dlsearch_path_spec='/usr/lib'
17991  ;;
17992
17993tpf*)
17994  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17995  version_type=linux
17996  need_lib_prefix=no
17997  need_version=no
17998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17999  shlibpath_var=LD_LIBRARY_PATH
18000  shlibpath_overrides_runpath=no
18001  hardcode_into_libs=yes
18002  ;;
18003
18004uts4*)
18005  version_type=linux
18006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18007  soname_spec='${libname}${release}${shared_ext}$major'
18008  shlibpath_var=LD_LIBRARY_PATH
18009  ;;
18010
18011*)
18012  dynamic_linker=no
18013  ;;
18014esac
18015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18016$as_echo "$dynamic_linker" >&6; }
18017test "$dynamic_linker" = no && can_build_shared=no
18018
18019variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18020if test "$GCC" = yes; then
18021  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18022fi
18023
18024if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18025  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18026fi
18027if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18028  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18029fi
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18123$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18124hardcode_action=
18125if test -n "$hardcode_libdir_flag_spec" ||
18126   test -n "$runpath_var" ||
18127   test "X$hardcode_automatic" = "Xyes" ; then
18128
18129  # We can hardcode non-existent directories.
18130  if test "$hardcode_direct" != no &&
18131     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18132     # have to relink, otherwise we might link with an installed library
18133     # when we should be linking with a yet-to-be-installed one
18134     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18135     test "$hardcode_minus_L" != no; then
18136    # Linking always hardcodes the temporary library directory.
18137    hardcode_action=relink
18138  else
18139    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18140    hardcode_action=immediate
18141  fi
18142else
18143  # We cannot hardcode anything, or else we can only hardcode existing
18144  # directories.
18145  hardcode_action=unsupported
18146fi
18147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18148$as_echo "$hardcode_action" >&6; }
18149
18150if test "$hardcode_action" = relink ||
18151   test "$inherit_rpath" = yes; then
18152  # Fast installation is not supported
18153  enable_fast_install=no
18154elif test "$shlibpath_overrides_runpath" = yes ||
18155     test "$enable_shared" = no; then
18156  # Fast installation is not necessary
18157  enable_fast_install=needless
18158fi
18159
18160
18161
18162
18163
18164
18165  if test "x$enable_dlopen" != xyes; then
18166  enable_dlopen=unknown
18167  enable_dlopen_self=unknown
18168  enable_dlopen_self_static=unknown
18169else
18170  lt_cv_dlopen=no
18171  lt_cv_dlopen_libs=
18172
18173  case $host_os in
18174  beos*)
18175    lt_cv_dlopen="load_add_on"
18176    lt_cv_dlopen_libs=
18177    lt_cv_dlopen_self=yes
18178    ;;
18179
18180  mingw* | pw32* | cegcc*)
18181    lt_cv_dlopen="LoadLibrary"
18182    lt_cv_dlopen_libs=
18183    ;;
18184
18185  cygwin*)
18186    lt_cv_dlopen="dlopen"
18187    lt_cv_dlopen_libs=
18188    ;;
18189
18190  darwin*)
18191  # if libdl is installed we need to link against it
18192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18193$as_echo_n "checking for dlopen in -ldl... " >&6; }
18194if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18195  $as_echo_n "(cached) " >&6
18196else
18197  ac_check_lib_save_LIBS=$LIBS
18198LIBS="-ldl  $LIBS"
18199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200/* end confdefs.h.  */
18201
18202/* Override any GCC internal prototype to avoid an error.
18203   Use char because int might match the return type of a GCC
18204   builtin and then its argument prototype would still apply.  */
18205#ifdef __cplusplus
18206extern "C"
18207#endif
18208char dlopen ();
18209int
18210main ()
18211{
18212return dlopen ();
18213  ;
18214  return 0;
18215}
18216_ACEOF
18217if ac_fn_c_try_link "$LINENO"; then :
18218  ac_cv_lib_dl_dlopen=yes
18219else
18220  ac_cv_lib_dl_dlopen=no
18221fi
18222rm -f core conftest.err conftest.$ac_objext \
18223    conftest$ac_exeext conftest.$ac_ext
18224LIBS=$ac_check_lib_save_LIBS
18225fi
18226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18227$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18228if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18229  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18230else
18231
18232    lt_cv_dlopen="dyld"
18233    lt_cv_dlopen_libs=
18234    lt_cv_dlopen_self=yes
18235
18236fi
18237
18238    ;;
18239
18240  *)
18241    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18242if test "x$ac_cv_func_shl_load" = x""yes; then :
18243  lt_cv_dlopen="shl_load"
18244else
18245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18246$as_echo_n "checking for shl_load in -ldld... " >&6; }
18247if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18248  $as_echo_n "(cached) " >&6
18249else
18250  ac_check_lib_save_LIBS=$LIBS
18251LIBS="-ldld  $LIBS"
18252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253/* end confdefs.h.  */
18254
18255/* Override any GCC internal prototype to avoid an error.
18256   Use char because int might match the return type of a GCC
18257   builtin and then its argument prototype would still apply.  */
18258#ifdef __cplusplus
18259extern "C"
18260#endif
18261char shl_load ();
18262int
18263main ()
18264{
18265return shl_load ();
18266  ;
18267  return 0;
18268}
18269_ACEOF
18270if ac_fn_c_try_link "$LINENO"; then :
18271  ac_cv_lib_dld_shl_load=yes
18272else
18273  ac_cv_lib_dld_shl_load=no
18274fi
18275rm -f core conftest.err conftest.$ac_objext \
18276    conftest$ac_exeext conftest.$ac_ext
18277LIBS=$ac_check_lib_save_LIBS
18278fi
18279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18280$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18281if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18282  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18283else
18284  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18285if test "x$ac_cv_func_dlopen" = x""yes; then :
18286  lt_cv_dlopen="dlopen"
18287else
18288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18289$as_echo_n "checking for dlopen in -ldl... " >&6; }
18290if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18291  $as_echo_n "(cached) " >&6
18292else
18293  ac_check_lib_save_LIBS=$LIBS
18294LIBS="-ldl  $LIBS"
18295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296/* end confdefs.h.  */
18297
18298/* Override any GCC internal prototype to avoid an error.
18299   Use char because int might match the return type of a GCC
18300   builtin and then its argument prototype would still apply.  */
18301#ifdef __cplusplus
18302extern "C"
18303#endif
18304char dlopen ();
18305int
18306main ()
18307{
18308return dlopen ();
18309  ;
18310  return 0;
18311}
18312_ACEOF
18313if ac_fn_c_try_link "$LINENO"; then :
18314  ac_cv_lib_dl_dlopen=yes
18315else
18316  ac_cv_lib_dl_dlopen=no
18317fi
18318rm -f core conftest.err conftest.$ac_objext \
18319    conftest$ac_exeext conftest.$ac_ext
18320LIBS=$ac_check_lib_save_LIBS
18321fi
18322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18323$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18324if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18325  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18326else
18327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18328$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18329if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18330  $as_echo_n "(cached) " >&6
18331else
18332  ac_check_lib_save_LIBS=$LIBS
18333LIBS="-lsvld  $LIBS"
18334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335/* end confdefs.h.  */
18336
18337/* Override any GCC internal prototype to avoid an error.
18338   Use char because int might match the return type of a GCC
18339   builtin and then its argument prototype would still apply.  */
18340#ifdef __cplusplus
18341extern "C"
18342#endif
18343char dlopen ();
18344int
18345main ()
18346{
18347return dlopen ();
18348  ;
18349  return 0;
18350}
18351_ACEOF
18352if ac_fn_c_try_link "$LINENO"; then :
18353  ac_cv_lib_svld_dlopen=yes
18354else
18355  ac_cv_lib_svld_dlopen=no
18356fi
18357rm -f core conftest.err conftest.$ac_objext \
18358    conftest$ac_exeext conftest.$ac_ext
18359LIBS=$ac_check_lib_save_LIBS
18360fi
18361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18362$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18363if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18364  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18365else
18366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18367$as_echo_n "checking for dld_link in -ldld... " >&6; }
18368if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18369  $as_echo_n "(cached) " >&6
18370else
18371  ac_check_lib_save_LIBS=$LIBS
18372LIBS="-ldld  $LIBS"
18373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18374/* end confdefs.h.  */
18375
18376/* Override any GCC internal prototype to avoid an error.
18377   Use char because int might match the return type of a GCC
18378   builtin and then its argument prototype would still apply.  */
18379#ifdef __cplusplus
18380extern "C"
18381#endif
18382char dld_link ();
18383int
18384main ()
18385{
18386return dld_link ();
18387  ;
18388  return 0;
18389}
18390_ACEOF
18391if ac_fn_c_try_link "$LINENO"; then :
18392  ac_cv_lib_dld_dld_link=yes
18393else
18394  ac_cv_lib_dld_dld_link=no
18395fi
18396rm -f core conftest.err conftest.$ac_objext \
18397    conftest$ac_exeext conftest.$ac_ext
18398LIBS=$ac_check_lib_save_LIBS
18399fi
18400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18401$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18402if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18403  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18404fi
18405
18406
18407fi
18408
18409
18410fi
18411
18412
18413fi
18414
18415
18416fi
18417
18418
18419fi
18420
18421    ;;
18422  esac
18423
18424  if test "x$lt_cv_dlopen" != xno; then
18425    enable_dlopen=yes
18426  else
18427    enable_dlopen=no
18428  fi
18429
18430  case $lt_cv_dlopen in
18431  dlopen)
18432    save_CPPFLAGS="$CPPFLAGS"
18433    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18434
18435    save_LDFLAGS="$LDFLAGS"
18436    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18437
18438    save_LIBS="$LIBS"
18439    LIBS="$lt_cv_dlopen_libs $LIBS"
18440
18441    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18442$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18443if test "${lt_cv_dlopen_self+set}" = set; then :
18444  $as_echo_n "(cached) " >&6
18445else
18446  	  if test "$cross_compiling" = yes; then :
18447  lt_cv_dlopen_self=cross
18448else
18449  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18450  lt_status=$lt_dlunknown
18451  cat > conftest.$ac_ext <<_LT_EOF
18452#line 18452 "configure"
18453#include "confdefs.h"
18454
18455#if HAVE_DLFCN_H
18456#include <dlfcn.h>
18457#endif
18458
18459#include <stdio.h>
18460
18461#ifdef RTLD_GLOBAL
18462#  define LT_DLGLOBAL		RTLD_GLOBAL
18463#else
18464#  ifdef DL_GLOBAL
18465#    define LT_DLGLOBAL		DL_GLOBAL
18466#  else
18467#    define LT_DLGLOBAL		0
18468#  endif
18469#endif
18470
18471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18472   find out it does not work in some platform. */
18473#ifndef LT_DLLAZY_OR_NOW
18474#  ifdef RTLD_LAZY
18475#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18476#  else
18477#    ifdef DL_LAZY
18478#      define LT_DLLAZY_OR_NOW		DL_LAZY
18479#    else
18480#      ifdef RTLD_NOW
18481#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18482#      else
18483#        ifdef DL_NOW
18484#          define LT_DLLAZY_OR_NOW	DL_NOW
18485#        else
18486#          define LT_DLLAZY_OR_NOW	0
18487#        endif
18488#      endif
18489#    endif
18490#  endif
18491#endif
18492
18493/* When -fvisbility=hidden is used, assume the code has been annotated
18494   correspondingly for the symbols needed.  */
18495#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18496void fnord () __attribute__((visibility("default")));
18497#endif
18498
18499void fnord () { int i=42; }
18500int main ()
18501{
18502  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18503  int status = $lt_dlunknown;
18504
18505  if (self)
18506    {
18507      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18508      else
18509        {
18510	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18511          else puts (dlerror ());
18512	}
18513      /* dlclose (self); */
18514    }
18515  else
18516    puts (dlerror ());
18517
18518  return status;
18519}
18520_LT_EOF
18521  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18522  (eval $ac_link) 2>&5
18523  ac_status=$?
18524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18525  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18526    (./conftest; exit; ) >&5 2>/dev/null
18527    lt_status=$?
18528    case x$lt_status in
18529      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18530      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18531      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18532    esac
18533  else :
18534    # compilation failed
18535    lt_cv_dlopen_self=no
18536  fi
18537fi
18538rm -fr conftest*
18539
18540
18541fi
18542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18543$as_echo "$lt_cv_dlopen_self" >&6; }
18544
18545    if test "x$lt_cv_dlopen_self" = xyes; then
18546      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18547      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18548$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18549if test "${lt_cv_dlopen_self_static+set}" = set; then :
18550  $as_echo_n "(cached) " >&6
18551else
18552  	  if test "$cross_compiling" = yes; then :
18553  lt_cv_dlopen_self_static=cross
18554else
18555  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18556  lt_status=$lt_dlunknown
18557  cat > conftest.$ac_ext <<_LT_EOF
18558#line 18558 "configure"
18559#include "confdefs.h"
18560
18561#if HAVE_DLFCN_H
18562#include <dlfcn.h>
18563#endif
18564
18565#include <stdio.h>
18566
18567#ifdef RTLD_GLOBAL
18568#  define LT_DLGLOBAL		RTLD_GLOBAL
18569#else
18570#  ifdef DL_GLOBAL
18571#    define LT_DLGLOBAL		DL_GLOBAL
18572#  else
18573#    define LT_DLGLOBAL		0
18574#  endif
18575#endif
18576
18577/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18578   find out it does not work in some platform. */
18579#ifndef LT_DLLAZY_OR_NOW
18580#  ifdef RTLD_LAZY
18581#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18582#  else
18583#    ifdef DL_LAZY
18584#      define LT_DLLAZY_OR_NOW		DL_LAZY
18585#    else
18586#      ifdef RTLD_NOW
18587#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18588#      else
18589#        ifdef DL_NOW
18590#          define LT_DLLAZY_OR_NOW	DL_NOW
18591#        else
18592#          define LT_DLLAZY_OR_NOW	0
18593#        endif
18594#      endif
18595#    endif
18596#  endif
18597#endif
18598
18599/* When -fvisbility=hidden is used, assume the code has been annotated
18600   correspondingly for the symbols needed.  */
18601#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18602void fnord () __attribute__((visibility("default")));
18603#endif
18604
18605void fnord () { int i=42; }
18606int main ()
18607{
18608  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18609  int status = $lt_dlunknown;
18610
18611  if (self)
18612    {
18613      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18614      else
18615        {
18616	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18617          else puts (dlerror ());
18618	}
18619      /* dlclose (self); */
18620    }
18621  else
18622    puts (dlerror ());
18623
18624  return status;
18625}
18626_LT_EOF
18627  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18628  (eval $ac_link) 2>&5
18629  ac_status=$?
18630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18631  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18632    (./conftest; exit; ) >&5 2>/dev/null
18633    lt_status=$?
18634    case x$lt_status in
18635      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18636      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18637      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18638    esac
18639  else :
18640    # compilation failed
18641    lt_cv_dlopen_self_static=no
18642  fi
18643fi
18644rm -fr conftest*
18645
18646
18647fi
18648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18649$as_echo "$lt_cv_dlopen_self_static" >&6; }
18650    fi
18651
18652    CPPFLAGS="$save_CPPFLAGS"
18653    LDFLAGS="$save_LDFLAGS"
18654    LIBS="$save_LIBS"
18655    ;;
18656  esac
18657
18658  case $lt_cv_dlopen_self in
18659  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18660  *) enable_dlopen_self=unknown ;;
18661  esac
18662
18663  case $lt_cv_dlopen_self_static in
18664  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18665  *) enable_dlopen_self_static=unknown ;;
18666  esac
18667fi
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685striplib=
18686old_striplib=
18687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18688$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18689if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18690  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18691  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18693$as_echo "yes" >&6; }
18694else
18695# FIXME - insert some real tests, host_os isn't really good enough
18696  case $host_os in
18697  darwin*)
18698    if test -n "$STRIP" ; then
18699      striplib="$STRIP -x"
18700      old_striplib="$STRIP -S"
18701      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18702$as_echo "yes" >&6; }
18703    else
18704      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18705$as_echo "no" >&6; }
18706    fi
18707    ;;
18708  *)
18709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18710$as_echo "no" >&6; }
18711    ;;
18712  esac
18713fi
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726  # Report which library types will actually be built
18727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18728$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18730$as_echo "$can_build_shared" >&6; }
18731
18732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18733$as_echo_n "checking whether to build shared libraries... " >&6; }
18734  test "$can_build_shared" = "no" && enable_shared=no
18735
18736  # On AIX, shared libraries and static libraries use the same namespace, and
18737  # are all built from PIC.
18738  case $host_os in
18739  aix3*)
18740    test "$enable_shared" = yes && enable_static=no
18741    if test -n "$RANLIB"; then
18742      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18743      postinstall_cmds='$RANLIB $lib'
18744    fi
18745    ;;
18746
18747  aix[4-9]*)
18748    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18749      test "$enable_shared" = yes && enable_static=no
18750    fi
18751    ;;
18752  esac
18753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18754$as_echo "$enable_shared" >&6; }
18755
18756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18757$as_echo_n "checking whether to build static libraries... " >&6; }
18758  # Make sure either enable_shared or enable_static is yes.
18759  test "$enable_shared" = yes || enable_static=yes
18760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18761$as_echo "$enable_static" >&6; }
18762
18763
18764
18765
18766fi
18767ac_ext=cpp
18768ac_cpp='$CXXCPP $CPPFLAGS'
18769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18772
18773CC="$lt_save_CC"
18774
18775      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18776    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18777    (test "X$CXX" != "Xg++"))) ; then
18778  ac_ext=cpp
18779ac_cpp='$CXXCPP $CPPFLAGS'
18780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18784$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18785if test -z "$CXXCPP"; then
18786  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18787  $as_echo_n "(cached) " >&6
18788else
18789      # Double quotes because CXXCPP needs to be expanded
18790    for CXXCPP in "$CXX -E" "/lib/cpp"
18791    do
18792      ac_preproc_ok=false
18793for ac_cxx_preproc_warn_flag in '' yes
18794do
18795  # Use a header file that comes with gcc, so configuring glibc
18796  # with a fresh cross-compiler works.
18797  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18798  # <limits.h> exists even on freestanding compilers.
18799  # On the NeXT, cc -E runs the code through the compiler's parser,
18800  # not just through cpp. "Syntax error" is here to catch this case.
18801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802/* end confdefs.h.  */
18803#ifdef __STDC__
18804# include <limits.h>
18805#else
18806# include <assert.h>
18807#endif
18808		     Syntax error
18809_ACEOF
18810if ac_fn_cxx_try_cpp "$LINENO"; then :
18811
18812else
18813  # Broken: fails on valid input.
18814continue
18815fi
18816rm -f conftest.err conftest.$ac_ext
18817
18818  # OK, works on sane cases.  Now check whether nonexistent headers
18819  # can be detected and how.
18820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821/* end confdefs.h.  */
18822#include <ac_nonexistent.h>
18823_ACEOF
18824if ac_fn_cxx_try_cpp "$LINENO"; then :
18825  # Broken: success on invalid input.
18826continue
18827else
18828  # Passes both tests.
18829ac_preproc_ok=:
18830break
18831fi
18832rm -f conftest.err conftest.$ac_ext
18833
18834done
18835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18836rm -f conftest.err conftest.$ac_ext
18837if $ac_preproc_ok; then :
18838  break
18839fi
18840
18841    done
18842    ac_cv_prog_CXXCPP=$CXXCPP
18843
18844fi
18845  CXXCPP=$ac_cv_prog_CXXCPP
18846else
18847  ac_cv_prog_CXXCPP=$CXXCPP
18848fi
18849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18850$as_echo "$CXXCPP" >&6; }
18851ac_preproc_ok=false
18852for ac_cxx_preproc_warn_flag in '' yes
18853do
18854  # Use a header file that comes with gcc, so configuring glibc
18855  # with a fresh cross-compiler works.
18856  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18857  # <limits.h> exists even on freestanding compilers.
18858  # On the NeXT, cc -E runs the code through the compiler's parser,
18859  # not just through cpp. "Syntax error" is here to catch this case.
18860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861/* end confdefs.h.  */
18862#ifdef __STDC__
18863# include <limits.h>
18864#else
18865# include <assert.h>
18866#endif
18867		     Syntax error
18868_ACEOF
18869if ac_fn_cxx_try_cpp "$LINENO"; then :
18870
18871else
18872  # Broken: fails on valid input.
18873continue
18874fi
18875rm -f conftest.err conftest.$ac_ext
18876
18877  # OK, works on sane cases.  Now check whether nonexistent headers
18878  # can be detected and how.
18879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18880/* end confdefs.h.  */
18881#include <ac_nonexistent.h>
18882_ACEOF
18883if ac_fn_cxx_try_cpp "$LINENO"; then :
18884  # Broken: success on invalid input.
18885continue
18886else
18887  # Passes both tests.
18888ac_preproc_ok=:
18889break
18890fi
18891rm -f conftest.err conftest.$ac_ext
18892
18893done
18894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18895rm -f conftest.err conftest.$ac_ext
18896if $ac_preproc_ok; then :
18897
18898else
18899  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18901as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18902See \`config.log' for more details." "$LINENO" 5; }
18903fi
18904
18905ac_ext=cpp
18906ac_cpp='$CXXCPP $CPPFLAGS'
18907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18910
18911else
18912  _lt_caught_CXX_error=yes
18913fi
18914
18915ac_ext=cpp
18916ac_cpp='$CXXCPP $CPPFLAGS'
18917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18920
18921archive_cmds_need_lc_CXX=no
18922allow_undefined_flag_CXX=
18923always_export_symbols_CXX=no
18924archive_expsym_cmds_CXX=
18925compiler_needs_object_CXX=no
18926export_dynamic_flag_spec_CXX=
18927hardcode_direct_CXX=no
18928hardcode_direct_absolute_CXX=no
18929hardcode_libdir_flag_spec_CXX=
18930hardcode_libdir_flag_spec_ld_CXX=
18931hardcode_libdir_separator_CXX=
18932hardcode_minus_L_CXX=no
18933hardcode_shlibpath_var_CXX=unsupported
18934hardcode_automatic_CXX=no
18935inherit_rpath_CXX=no
18936module_cmds_CXX=
18937module_expsym_cmds_CXX=
18938link_all_deplibs_CXX=unknown
18939old_archive_cmds_CXX=$old_archive_cmds
18940reload_flag_CXX=$reload_flag
18941reload_cmds_CXX=$reload_cmds
18942no_undefined_flag_CXX=
18943whole_archive_flag_spec_CXX=
18944enable_shared_with_static_runtimes_CXX=no
18945
18946# Source file extension for C++ test sources.
18947ac_ext=cpp
18948
18949# Object file extension for compiled C++ test sources.
18950objext=o
18951objext_CXX=$objext
18952
18953# No sense in running all these tests if we already determined that
18954# the CXX compiler isn't working.  Some variables (like enable_shared)
18955# are currently assumed to apply to all compilers on this platform,
18956# and will be corrupted by setting them based on a non-working compiler.
18957if test "$_lt_caught_CXX_error" != yes; then
18958  # Code to be used in simple compile tests
18959  lt_simple_compile_test_code="int some_variable = 0;"
18960
18961  # Code to be used in simple link tests
18962  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18963
18964  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18965
18966
18967
18968
18969
18970
18971# If no C compiler was specified, use CC.
18972LTCC=${LTCC-"$CC"}
18973
18974# If no C compiler flags were specified, use CFLAGS.
18975LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18976
18977# Allow CC to be a program name with arguments.
18978compiler=$CC
18979
18980
18981  # save warnings/boilerplate of simple test code
18982  ac_outfile=conftest.$ac_objext
18983echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18984eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18985_lt_compiler_boilerplate=`cat conftest.err`
18986$RM conftest*
18987
18988  ac_outfile=conftest.$ac_objext
18989echo "$lt_simple_link_test_code" >conftest.$ac_ext
18990eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18991_lt_linker_boilerplate=`cat conftest.err`
18992$RM -r conftest*
18993
18994
18995  # Allow CC to be a program name with arguments.
18996  lt_save_CC=$CC
18997  lt_save_LD=$LD
18998  lt_save_GCC=$GCC
18999  GCC=$GXX
19000  lt_save_with_gnu_ld=$with_gnu_ld
19001  lt_save_path_LD=$lt_cv_path_LD
19002  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19003    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19004  else
19005    $as_unset lt_cv_prog_gnu_ld
19006  fi
19007  if test -n "${lt_cv_path_LDCXX+set}"; then
19008    lt_cv_path_LD=$lt_cv_path_LDCXX
19009  else
19010    $as_unset lt_cv_path_LD
19011  fi
19012  test -z "${LDCXX+set}" || LD=$LDCXX
19013  CC=${CXX-"c++"}
19014  compiler=$CC
19015  compiler_CXX=$CC
19016  for cc_temp in $compiler""; do
19017  case $cc_temp in
19018    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19019    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19020    \-*) ;;
19021    *) break;;
19022  esac
19023done
19024cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19025
19026
19027  if test -n "$compiler"; then
19028    # We don't want -fno-exception when compiling C++ code, so set the
19029    # no_builtin_flag separately
19030    if test "$GXX" = yes; then
19031      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19032    else
19033      lt_prog_compiler_no_builtin_flag_CXX=
19034    fi
19035
19036    if test "$GXX" = yes; then
19037      # Set up default GNU C++ configuration
19038
19039
19040
19041# Check whether --with-gnu-ld was given.
19042if test "${with_gnu_ld+set}" = set; then :
19043  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19044else
19045  with_gnu_ld=no
19046fi
19047
19048ac_prog=ld
19049if test "$GCC" = yes; then
19050  # Check if gcc -print-prog-name=ld gives a path.
19051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19052$as_echo_n "checking for ld used by $CC... " >&6; }
19053  case $host in
19054  *-*-mingw*)
19055    # gcc leaves a trailing carriage return which upsets mingw
19056    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19057  *)
19058    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19059  esac
19060  case $ac_prog in
19061    # Accept absolute paths.
19062    [\\/]* | ?:[\\/]*)
19063      re_direlt='/[^/][^/]*/\.\./'
19064      # Canonicalize the pathname of ld
19065      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19066      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19067	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19068      done
19069      test -z "$LD" && LD="$ac_prog"
19070      ;;
19071  "")
19072    # If it fails, then pretend we aren't using GCC.
19073    ac_prog=ld
19074    ;;
19075  *)
19076    # If it is relative, then search for the first ld in PATH.
19077    with_gnu_ld=unknown
19078    ;;
19079  esac
19080elif test "$with_gnu_ld" = yes; then
19081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19082$as_echo_n "checking for GNU ld... " >&6; }
19083else
19084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19085$as_echo_n "checking for non-GNU ld... " >&6; }
19086fi
19087if test "${lt_cv_path_LD+set}" = set; then :
19088  $as_echo_n "(cached) " >&6
19089else
19090  if test -z "$LD"; then
19091  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19092  for ac_dir in $PATH; do
19093    IFS="$lt_save_ifs"
19094    test -z "$ac_dir" && ac_dir=.
19095    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19096      lt_cv_path_LD="$ac_dir/$ac_prog"
19097      # Check to see if the program is GNU ld.  I'd rather use --version,
19098      # but apparently some variants of GNU ld only accept -v.
19099      # Break only if it was the GNU/non-GNU ld that we prefer.
19100      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19101      *GNU* | *'with BFD'*)
19102	test "$with_gnu_ld" != no && break
19103	;;
19104      *)
19105	test "$with_gnu_ld" != yes && break
19106	;;
19107      esac
19108    fi
19109  done
19110  IFS="$lt_save_ifs"
19111else
19112  lt_cv_path_LD="$LD" # Let the user override the test with a path.
19113fi
19114fi
19115
19116LD="$lt_cv_path_LD"
19117if test -n "$LD"; then
19118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19119$as_echo "$LD" >&6; }
19120else
19121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19122$as_echo "no" >&6; }
19123fi
19124test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19126$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19127if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19128  $as_echo_n "(cached) " >&6
19129else
19130  # I'd rather use --version here, but apparently some GNU lds only accept -v.
19131case `$LD -v 2>&1 </dev/null` in
19132*GNU* | *'with BFD'*)
19133  lt_cv_prog_gnu_ld=yes
19134  ;;
19135*)
19136  lt_cv_prog_gnu_ld=no
19137  ;;
19138esac
19139fi
19140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19141$as_echo "$lt_cv_prog_gnu_ld" >&6; }
19142with_gnu_ld=$lt_cv_prog_gnu_ld
19143
19144
19145
19146
19147
19148
19149
19150      # Check if GNU C++ uses GNU ld as the underlying linker, since the
19151      # archiving commands below assume that GNU ld is being used.
19152      if test "$with_gnu_ld" = yes; then
19153        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19154        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19155
19156        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19157        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19158
19159        # If archive_cmds runs LD, not CC, wlarc should be empty
19160        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19161        #     investigate it a little bit more. (MM)
19162        wlarc='${wl}'
19163
19164        # ancient GNU ld didn't support --whole-archive et. al.
19165        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19166	  $GREP 'no-whole-archive' > /dev/null; then
19167          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19168        else
19169          whole_archive_flag_spec_CXX=
19170        fi
19171      else
19172        with_gnu_ld=no
19173        wlarc=
19174
19175        # A generic and very simple default shared library creation
19176        # command for GNU C++ for the case where it uses the native
19177        # linker, instead of GNU ld.  If possible, this setting should
19178        # overridden to take advantage of the native linker features on
19179        # the platform it is being used on.
19180        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19181      fi
19182
19183      # Commands to make compiler produce verbose output that lists
19184      # what "hidden" libraries, object files and flags are used when
19185      # linking a shared library.
19186      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19187
19188    else
19189      GXX=no
19190      with_gnu_ld=no
19191      wlarc=
19192    fi
19193
19194    # PORTME: fill in a description of your system's C++ link characteristics
19195    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19196$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19197    ld_shlibs_CXX=yes
19198    case $host_os in
19199      aix3*)
19200        # FIXME: insert proper C++ library support
19201        ld_shlibs_CXX=no
19202        ;;
19203      aix[4-9]*)
19204        if test "$host_cpu" = ia64; then
19205          # On IA64, the linker does run time linking by default, so we don't
19206          # have to do anything special.
19207          aix_use_runtimelinking=no
19208          exp_sym_flag='-Bexport'
19209          no_entry_flag=""
19210        else
19211          aix_use_runtimelinking=no
19212
19213          # Test if we are trying to use run time linking or normal
19214          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19215          # need to do runtime linking.
19216          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19217	    for ld_flag in $LDFLAGS; do
19218	      case $ld_flag in
19219	      *-brtl*)
19220	        aix_use_runtimelinking=yes
19221	        break
19222	        ;;
19223	      esac
19224	    done
19225	    ;;
19226          esac
19227
19228          exp_sym_flag='-bexport'
19229          no_entry_flag='-bnoentry'
19230        fi
19231
19232        # When large executables or shared objects are built, AIX ld can
19233        # have problems creating the table of contents.  If linking a library
19234        # or program results in "error TOC overflow" add -mminimal-toc to
19235        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19236        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19237
19238        archive_cmds_CXX=''
19239        hardcode_direct_CXX=yes
19240        hardcode_direct_absolute_CXX=yes
19241        hardcode_libdir_separator_CXX=':'
19242        link_all_deplibs_CXX=yes
19243        file_list_spec_CXX='${wl}-f,'
19244
19245        if test "$GXX" = yes; then
19246          case $host_os in aix4.[012]|aix4.[012].*)
19247          # We only want to do this on AIX 4.2 and lower, the check
19248          # below for broken collect2 doesn't work under 4.3+
19249	  collect2name=`${CC} -print-prog-name=collect2`
19250	  if test -f "$collect2name" &&
19251	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19252	  then
19253	    # We have reworked collect2
19254	    :
19255	  else
19256	    # We have old collect2
19257	    hardcode_direct_CXX=unsupported
19258	    # It fails to find uninstalled libraries when the uninstalled
19259	    # path is not listed in the libpath.  Setting hardcode_minus_L
19260	    # to unsupported forces relinking
19261	    hardcode_minus_L_CXX=yes
19262	    hardcode_libdir_flag_spec_CXX='-L$libdir'
19263	    hardcode_libdir_separator_CXX=
19264	  fi
19265          esac
19266          shared_flag='-shared'
19267	  if test "$aix_use_runtimelinking" = yes; then
19268	    shared_flag="$shared_flag "'${wl}-G'
19269	  fi
19270        else
19271          # not using gcc
19272          if test "$host_cpu" = ia64; then
19273	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19274	  # chokes on -Wl,-G. The following line is correct:
19275	  shared_flag='-G'
19276          else
19277	    if test "$aix_use_runtimelinking" = yes; then
19278	      shared_flag='${wl}-G'
19279	    else
19280	      shared_flag='${wl}-bM:SRE'
19281	    fi
19282          fi
19283        fi
19284
19285        export_dynamic_flag_spec_CXX='${wl}-bexpall'
19286        # It seems that -bexpall does not export symbols beginning with
19287        # underscore (_), so it is better to generate a list of symbols to
19288	# export.
19289        always_export_symbols_CXX=yes
19290        if test "$aix_use_runtimelinking" = yes; then
19291          # Warning - without using the other runtime loading flags (-brtl),
19292          # -berok will link without error, but may produce a broken library.
19293          allow_undefined_flag_CXX='-berok'
19294          # Determine the default libpath from the value encoded in an empty
19295          # executable.
19296          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19297/* end confdefs.h.  */
19298
19299int
19300main ()
19301{
19302
19303  ;
19304  return 0;
19305}
19306_ACEOF
19307if ac_fn_cxx_try_link "$LINENO"; then :
19308
19309lt_aix_libpath_sed='
19310    /Import File Strings/,/^$/ {
19311	/^0/ {
19312	    s/^0  *\(.*\)$/\1/
19313	    p
19314	}
19315    }'
19316aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19317# Check for a 64-bit object if we didn't find anything.
19318if test -z "$aix_libpath"; then
19319  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19320fi
19321fi
19322rm -f core conftest.err conftest.$ac_objext \
19323    conftest$ac_exeext conftest.$ac_ext
19324if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19325
19326          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19327
19328          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"
19329        else
19330          if test "$host_cpu" = ia64; then
19331	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19332	    allow_undefined_flag_CXX="-z nodefs"
19333	    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"
19334          else
19335	    # Determine the default libpath from the value encoded in an
19336	    # empty executable.
19337	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19338/* end confdefs.h.  */
19339
19340int
19341main ()
19342{
19343
19344  ;
19345  return 0;
19346}
19347_ACEOF
19348if ac_fn_cxx_try_link "$LINENO"; then :
19349
19350lt_aix_libpath_sed='
19351    /Import File Strings/,/^$/ {
19352	/^0/ {
19353	    s/^0  *\(.*\)$/\1/
19354	    p
19355	}
19356    }'
19357aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19358# Check for a 64-bit object if we didn't find anything.
19359if test -z "$aix_libpath"; then
19360  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19361fi
19362fi
19363rm -f core conftest.err conftest.$ac_objext \
19364    conftest$ac_exeext conftest.$ac_ext
19365if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19366
19367	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19368	    # Warning - without using the other run time loading flags,
19369	    # -berok will link without error, but may produce a broken library.
19370	    no_undefined_flag_CXX=' ${wl}-bernotok'
19371	    allow_undefined_flag_CXX=' ${wl}-berok'
19372	    if test "$with_gnu_ld" = yes; then
19373	      # We only use this code for GNU lds that support --whole-archive.
19374	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19375	    else
19376	      # Exported symbols can be pulled into shared objects from archives
19377	      whole_archive_flag_spec_CXX='$convenience'
19378	    fi
19379	    archive_cmds_need_lc_CXX=yes
19380	    # This is similar to how AIX traditionally builds its shared
19381	    # libraries.
19382	    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'
19383          fi
19384        fi
19385        ;;
19386
19387      beos*)
19388	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19389	  allow_undefined_flag_CXX=unsupported
19390	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19391	  # support --undefined.  This deserves some investigation.  FIXME
19392	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19393	else
19394	  ld_shlibs_CXX=no
19395	fi
19396	;;
19397
19398      chorus*)
19399        case $cc_basename in
19400          *)
19401	  # FIXME: insert proper C++ library support
19402	  ld_shlibs_CXX=no
19403	  ;;
19404        esac
19405        ;;
19406
19407      cygwin* | mingw* | pw32* | cegcc*)
19408        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19409        # as there is no search path for DLLs.
19410        hardcode_libdir_flag_spec_CXX='-L$libdir'
19411        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19412        allow_undefined_flag_CXX=unsupported
19413        always_export_symbols_CXX=no
19414        enable_shared_with_static_runtimes_CXX=yes
19415
19416        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19417          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'
19418          # If the export-symbols file already is a .def file (1st line
19419          # is EXPORTS), use it as is; otherwise, prepend...
19420          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19421	    cp $export_symbols $output_objdir/$soname.def;
19422          else
19423	    echo EXPORTS > $output_objdir/$soname.def;
19424	    cat $export_symbols >> $output_objdir/$soname.def;
19425          fi~
19426          $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'
19427        else
19428          ld_shlibs_CXX=no
19429        fi
19430        ;;
19431      darwin* | rhapsody*)
19432
19433
19434  archive_cmds_need_lc_CXX=no
19435  hardcode_direct_CXX=no
19436  hardcode_automatic_CXX=yes
19437  hardcode_shlibpath_var_CXX=unsupported
19438  if test "$lt_cv_ld_force_load" = "yes"; then
19439    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\"`'
19440  else
19441    whole_archive_flag_spec_CXX=''
19442  fi
19443  link_all_deplibs_CXX=yes
19444  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19445  case $cc_basename in
19446     ifort*) _lt_dar_can_shared=yes ;;
19447     *) _lt_dar_can_shared=$GCC ;;
19448  esac
19449  if test "$_lt_dar_can_shared" = "yes"; then
19450    output_verbose_link_cmd=func_echo_all
19451    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}"
19452    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19453    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}"
19454    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}"
19455       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19456      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}"
19457      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}"
19458    fi
19459
19460  else
19461  ld_shlibs_CXX=no
19462  fi
19463
19464	;;
19465
19466      dgux*)
19467        case $cc_basename in
19468          ec++*)
19469	    # FIXME: insert proper C++ library support
19470	    ld_shlibs_CXX=no
19471	    ;;
19472          ghcx*)
19473	    # Green Hills C++ Compiler
19474	    # FIXME: insert proper C++ library support
19475	    ld_shlibs_CXX=no
19476	    ;;
19477          *)
19478	    # FIXME: insert proper C++ library support
19479	    ld_shlibs_CXX=no
19480	    ;;
19481        esac
19482        ;;
19483
19484      freebsd2.*)
19485        # C++ shared libraries reported to be fairly broken before
19486	# switch to ELF
19487        ld_shlibs_CXX=no
19488        ;;
19489
19490      freebsd-elf*)
19491        archive_cmds_need_lc_CXX=no
19492        ;;
19493
19494      freebsd* | dragonfly*)
19495        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19496        # conventions
19497        ld_shlibs_CXX=yes
19498        ;;
19499
19500      gnu*)
19501        ;;
19502
19503      haiku*)
19504        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19505        link_all_deplibs_CXX=yes
19506        ;;
19507
19508      hpux9*)
19509        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19510        hardcode_libdir_separator_CXX=:
19511        export_dynamic_flag_spec_CXX='${wl}-E'
19512        hardcode_direct_CXX=yes
19513        hardcode_minus_L_CXX=yes # Not in the search PATH,
19514				             # but as the default
19515				             # location of the library.
19516
19517        case $cc_basename in
19518          CC*)
19519            # FIXME: insert proper C++ library support
19520            ld_shlibs_CXX=no
19521            ;;
19522          aCC*)
19523            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'
19524            # Commands to make compiler produce verbose output that lists
19525            # what "hidden" libraries, object files and flags are used when
19526            # linking a shared library.
19527            #
19528            # There doesn't appear to be a way to prevent this compiler from
19529            # explicitly linking system object files so we need to strip them
19530            # from the output so that they don't get included in the library
19531            # dependencies.
19532            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"'
19533            ;;
19534          *)
19535            if test "$GXX" = yes; then
19536              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'
19537            else
19538              # FIXME: insert proper C++ library support
19539              ld_shlibs_CXX=no
19540            fi
19541            ;;
19542        esac
19543        ;;
19544
19545      hpux10*|hpux11*)
19546        if test $with_gnu_ld = no; then
19547	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19548	  hardcode_libdir_separator_CXX=:
19549
19550          case $host_cpu in
19551            hppa*64*|ia64*)
19552              ;;
19553            *)
19554	      export_dynamic_flag_spec_CXX='${wl}-E'
19555              ;;
19556          esac
19557        fi
19558        case $host_cpu in
19559          hppa*64*|ia64*)
19560            hardcode_direct_CXX=no
19561            hardcode_shlibpath_var_CXX=no
19562            ;;
19563          *)
19564            hardcode_direct_CXX=yes
19565            hardcode_direct_absolute_CXX=yes
19566            hardcode_minus_L_CXX=yes # Not in the search PATH,
19567					         # but as the default
19568					         # location of the library.
19569            ;;
19570        esac
19571
19572        case $cc_basename in
19573          CC*)
19574	    # FIXME: insert proper C++ library support
19575	    ld_shlibs_CXX=no
19576	    ;;
19577          aCC*)
19578	    case $host_cpu in
19579	      hppa*64*)
19580	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19581	        ;;
19582	      ia64*)
19583	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19584	        ;;
19585	      *)
19586	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19587	        ;;
19588	    esac
19589	    # Commands to make compiler produce verbose output that lists
19590	    # what "hidden" libraries, object files and flags are used when
19591	    # linking a shared library.
19592	    #
19593	    # There doesn't appear to be a way to prevent this compiler from
19594	    # explicitly linking system object files so we need to strip them
19595	    # from the output so that they don't get included in the library
19596	    # dependencies.
19597	    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"'
19598	    ;;
19599          *)
19600	    if test "$GXX" = yes; then
19601	      if test $with_gnu_ld = no; then
19602	        case $host_cpu in
19603	          hppa*64*)
19604	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19605	            ;;
19606	          ia64*)
19607	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19608	            ;;
19609	          *)
19610	            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'
19611	            ;;
19612	        esac
19613	      fi
19614	    else
19615	      # FIXME: insert proper C++ library support
19616	      ld_shlibs_CXX=no
19617	    fi
19618	    ;;
19619        esac
19620        ;;
19621
19622      interix[3-9]*)
19623	hardcode_direct_CXX=no
19624	hardcode_shlibpath_var_CXX=no
19625	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19626	export_dynamic_flag_spec_CXX='${wl}-E'
19627	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19628	# Instead, shared libraries are loaded at an image base (0x10000000 by
19629	# default) and relocated if they conflict, which is a slow very memory
19630	# consuming and fragmenting process.  To avoid this, we pick a random,
19631	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19632	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19633	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'
19634	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'
19635	;;
19636      irix5* | irix6*)
19637        case $cc_basename in
19638          CC*)
19639	    # SGI C++
19640	    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'
19641
19642	    # Archives containing C++ object files must be created using
19643	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19644	    # necessary to make sure instantiated templates are included
19645	    # in the archive.
19646	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19647	    ;;
19648          *)
19649	    if test "$GXX" = yes; then
19650	      if test "$with_gnu_ld" = no; then
19651	        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'
19652	      else
19653	        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'
19654	      fi
19655	    fi
19656	    link_all_deplibs_CXX=yes
19657	    ;;
19658        esac
19659        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19660        hardcode_libdir_separator_CXX=:
19661        inherit_rpath_CXX=yes
19662        ;;
19663
19664      linux* | k*bsd*-gnu | kopensolaris*-gnu)
19665        case $cc_basename in
19666          KCC*)
19667	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19668
19669	    # KCC will only create a shared library if the output file
19670	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19671	    # to its proper name (with version) after linking.
19672	    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'
19673	    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'
19674	    # Commands to make compiler produce verbose output that lists
19675	    # what "hidden" libraries, object files and flags are used when
19676	    # linking a shared library.
19677	    #
19678	    # There doesn't appear to be a way to prevent this compiler from
19679	    # explicitly linking system object files so we need to strip them
19680	    # from the output so that they don't get included in the library
19681	    # dependencies.
19682	    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"'
19683
19684	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19685	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19686
19687	    # Archives containing C++ object files must be created using
19688	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19689	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19690	    ;;
19691	  icpc* | ecpc* )
19692	    # Intel C++
19693	    with_gnu_ld=yes
19694	    # version 8.0 and above of icpc choke on multiply defined symbols
19695	    # if we add $predep_objects and $postdep_objects, however 7.1 and
19696	    # earlier do not add the objects themselves.
19697	    case `$CC -V 2>&1` in
19698	      *"Version 7."*)
19699	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19700		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'
19701		;;
19702	      *)  # Version 8.0 or newer
19703	        tmp_idyn=
19704	        case $host_cpu in
19705		  ia64*) tmp_idyn=' -i_dynamic';;
19706		esac
19707	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19708		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'
19709		;;
19710	    esac
19711	    archive_cmds_need_lc_CXX=no
19712	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19713	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19714	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19715	    ;;
19716          pgCC* | pgcpp*)
19717            # Portland Group C++ compiler
19718	    case `$CC -V` in
19719	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19720	      prelink_cmds_CXX='tpldir=Template.dir~
19721		rm -rf $tpldir~
19722		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19723		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19724	      old_archive_cmds_CXX='tpldir=Template.dir~
19725		rm -rf $tpldir~
19726		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19727		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19728		$RANLIB $oldlib'
19729	      archive_cmds_CXX='tpldir=Template.dir~
19730		rm -rf $tpldir~
19731		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19732		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19733	      archive_expsym_cmds_CXX='tpldir=Template.dir~
19734		rm -rf $tpldir~
19735		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19736		$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'
19737	      ;;
19738	    *) # Version 6 and above use weak symbols
19739	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19740	      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'
19741	      ;;
19742	    esac
19743
19744	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19745	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19746	    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'
19747            ;;
19748	  cxx*)
19749	    # Compaq C++
19750	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19751	    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'
19752
19753	    runpath_var=LD_RUN_PATH
19754	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19755	    hardcode_libdir_separator_CXX=:
19756
19757	    # Commands to make compiler produce verbose output that lists
19758	    # what "hidden" libraries, object files and flags are used when
19759	    # linking a shared library.
19760	    #
19761	    # There doesn't appear to be a way to prevent this compiler from
19762	    # explicitly linking system object files so we need to strip them
19763	    # from the output so that they don't get included in the library
19764	    # dependencies.
19765	    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'
19766	    ;;
19767	  xl* | mpixl* | bgxl*)
19768	    # IBM XL 8.0 on PPC, with GNU ld
19769	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19770	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19771	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19772	    if test "x$supports_anon_versioning" = xyes; then
19773	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19774		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19775		echo "local: *; };" >> $output_objdir/$libname.ver~
19776		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19777	    fi
19778	    ;;
19779	  *)
19780	    case `$CC -V 2>&1 | sed 5q` in
19781	    *Sun\ C*)
19782	      # Sun C++ 5.9
19783	      no_undefined_flag_CXX=' -zdefs'
19784	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19785	      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'
19786	      hardcode_libdir_flag_spec_CXX='-R$libdir'
19787	      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'
19788	      compiler_needs_object_CXX=yes
19789
19790	      # Not sure whether something based on
19791	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19792	      # would be better.
19793	      output_verbose_link_cmd='func_echo_all'
19794
19795	      # Archives containing C++ object files must be created using
19796	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19797	      # necessary to make sure instantiated templates are included
19798	      # in the archive.
19799	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19800	      ;;
19801	    esac
19802	    ;;
19803	esac
19804	;;
19805
19806      lynxos*)
19807        # FIXME: insert proper C++ library support
19808	ld_shlibs_CXX=no
19809	;;
19810
19811      m88k*)
19812        # FIXME: insert proper C++ library support
19813        ld_shlibs_CXX=no
19814	;;
19815
19816      mvs*)
19817        case $cc_basename in
19818          cxx*)
19819	    # FIXME: insert proper C++ library support
19820	    ld_shlibs_CXX=no
19821	    ;;
19822	  *)
19823	    # FIXME: insert proper C++ library support
19824	    ld_shlibs_CXX=no
19825	    ;;
19826	esac
19827	;;
19828
19829      netbsd*)
19830        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19831	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19832	  wlarc=
19833	  hardcode_libdir_flag_spec_CXX='-R$libdir'
19834	  hardcode_direct_CXX=yes
19835	  hardcode_shlibpath_var_CXX=no
19836	fi
19837	# Workaround some broken pre-1.5 toolchains
19838	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19839	;;
19840
19841      *nto* | *qnx*)
19842        ld_shlibs_CXX=yes
19843	;;
19844
19845      openbsd2*)
19846        # C++ shared libraries are fairly broken
19847	ld_shlibs_CXX=no
19848	;;
19849
19850      openbsd*)
19851	if test -f /usr/libexec/ld.so; then
19852	  hardcode_direct_CXX=yes
19853	  hardcode_shlibpath_var_CXX=no
19854	  hardcode_direct_absolute_CXX=yes
19855	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19856	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19857	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19858	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19859	    export_dynamic_flag_spec_CXX='${wl}-E'
19860	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19861	  fi
19862	  output_verbose_link_cmd=func_echo_all
19863	else
19864	  ld_shlibs_CXX=no
19865	fi
19866	;;
19867
19868      osf3* | osf4* | osf5*)
19869        case $cc_basename in
19870          KCC*)
19871	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19872
19873	    # KCC will only create a shared library if the output file
19874	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19875	    # to its proper name (with version) after linking.
19876	    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'
19877
19878	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19879	    hardcode_libdir_separator_CXX=:
19880
19881	    # Archives containing C++ object files must be created using
19882	    # the KAI C++ compiler.
19883	    case $host in
19884	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19885	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19886	    esac
19887	    ;;
19888          RCC*)
19889	    # Rational C++ 2.4.1
19890	    # FIXME: insert proper C++ library support
19891	    ld_shlibs_CXX=no
19892	    ;;
19893          cxx*)
19894	    case $host in
19895	      osf3*)
19896	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19897	        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'
19898	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19899		;;
19900	      *)
19901	        allow_undefined_flag_CXX=' -expect_unresolved \*'
19902	        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'
19903	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19904	          echo "-hidden">> $lib.exp~
19905	          $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~
19906	          $RM $lib.exp'
19907	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19908		;;
19909	    esac
19910
19911	    hardcode_libdir_separator_CXX=:
19912
19913	    # Commands to make compiler produce verbose output that lists
19914	    # what "hidden" libraries, object files and flags are used when
19915	    # linking a shared library.
19916	    #
19917	    # There doesn't appear to be a way to prevent this compiler from
19918	    # explicitly linking system object files so we need to strip them
19919	    # from the output so that they don't get included in the library
19920	    # dependencies.
19921	    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"'
19922	    ;;
19923	  *)
19924	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19925	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19926	      case $host in
19927	        osf3*)
19928	          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'
19929		  ;;
19930	        *)
19931	          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'
19932		  ;;
19933	      esac
19934
19935	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19936	      hardcode_libdir_separator_CXX=:
19937
19938	      # Commands to make compiler produce verbose output that lists
19939	      # what "hidden" libraries, object files and flags are used when
19940	      # linking a shared library.
19941	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19942
19943	    else
19944	      # FIXME: insert proper C++ library support
19945	      ld_shlibs_CXX=no
19946	    fi
19947	    ;;
19948        esac
19949        ;;
19950
19951      psos*)
19952        # FIXME: insert proper C++ library support
19953        ld_shlibs_CXX=no
19954        ;;
19955
19956      sunos4*)
19957        case $cc_basename in
19958          CC*)
19959	    # Sun C++ 4.x
19960	    # FIXME: insert proper C++ library support
19961	    ld_shlibs_CXX=no
19962	    ;;
19963          lcc*)
19964	    # Lucid
19965	    # FIXME: insert proper C++ library support
19966	    ld_shlibs_CXX=no
19967	    ;;
19968          *)
19969	    # FIXME: insert proper C++ library support
19970	    ld_shlibs_CXX=no
19971	    ;;
19972        esac
19973        ;;
19974
19975      solaris*)
19976        case $cc_basename in
19977          CC*)
19978	    # Sun C++ 4.2, 5.x and Centerline C++
19979            archive_cmds_need_lc_CXX=yes
19980	    no_undefined_flag_CXX=' -zdefs'
19981	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19982	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19983	      $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'
19984
19985	    hardcode_libdir_flag_spec_CXX='-R$libdir'
19986	    hardcode_shlibpath_var_CXX=no
19987	    case $host_os in
19988	      solaris2.[0-5] | solaris2.[0-5].*) ;;
19989	      *)
19990		# The compiler driver will combine and reorder linker options,
19991		# but understands `-z linker_flag'.
19992	        # Supported since Solaris 2.6 (maybe 2.5.1?)
19993		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19994	        ;;
19995	    esac
19996	    link_all_deplibs_CXX=yes
19997
19998	    output_verbose_link_cmd='func_echo_all'
19999
20000	    # Archives containing C++ object files must be created using
20001	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20002	    # necessary to make sure instantiated templates are included
20003	    # in the archive.
20004	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20005	    ;;
20006          gcx*)
20007	    # Green Hills C++ Compiler
20008	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20009
20010	    # The C++ compiler must be used to create the archive.
20011	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20012	    ;;
20013          *)
20014	    # GNU C++ compiler with Solaris linker
20015	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20016	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20017	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20018	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20019	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20020		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20021
20022	        # Commands to make compiler produce verbose output that lists
20023	        # what "hidden" libraries, object files and flags are used when
20024	        # linking a shared library.
20025	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20026	      else
20027	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
20028	        # platform.
20029	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20030	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20031		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20032
20033	        # Commands to make compiler produce verbose output that lists
20034	        # what "hidden" libraries, object files and flags are used when
20035	        # linking a shared library.
20036	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20037	      fi
20038
20039	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20040	      case $host_os in
20041		solaris2.[0-5] | solaris2.[0-5].*) ;;
20042		*)
20043		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20044		  ;;
20045	      esac
20046	    fi
20047	    ;;
20048        esac
20049        ;;
20050
20051    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20052      no_undefined_flag_CXX='${wl}-z,text'
20053      archive_cmds_need_lc_CXX=no
20054      hardcode_shlibpath_var_CXX=no
20055      runpath_var='LD_RUN_PATH'
20056
20057      case $cc_basename in
20058        CC*)
20059	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20060	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20061	  ;;
20062	*)
20063	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20064	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20065	  ;;
20066      esac
20067      ;;
20068
20069      sysv5* | sco3.2v5* | sco5v6*)
20070	# Note: We can NOT use -z defs as we might desire, because we do not
20071	# link with -lc, and that would cause any symbols used from libc to
20072	# always be unresolved, which means just about no library would
20073	# ever link correctly.  If we're not using GNU ld we use -z text
20074	# though, which does catch some bad symbols but isn't as heavy-handed
20075	# as -z defs.
20076	no_undefined_flag_CXX='${wl}-z,text'
20077	allow_undefined_flag_CXX='${wl}-z,nodefs'
20078	archive_cmds_need_lc_CXX=no
20079	hardcode_shlibpath_var_CXX=no
20080	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20081	hardcode_libdir_separator_CXX=':'
20082	link_all_deplibs_CXX=yes
20083	export_dynamic_flag_spec_CXX='${wl}-Bexport'
20084	runpath_var='LD_RUN_PATH'
20085
20086	case $cc_basename in
20087          CC*)
20088	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20089	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20090	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20091	      '"$old_archive_cmds_CXX"
20092	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20093	      '"$reload_cmds_CXX"
20094	    ;;
20095	  *)
20096	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20097	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20098	    ;;
20099	esac
20100      ;;
20101
20102      tandem*)
20103        case $cc_basename in
20104          NCC*)
20105	    # NonStop-UX NCC 3.20
20106	    # FIXME: insert proper C++ library support
20107	    ld_shlibs_CXX=no
20108	    ;;
20109          *)
20110	    # FIXME: insert proper C++ library support
20111	    ld_shlibs_CXX=no
20112	    ;;
20113        esac
20114        ;;
20115
20116      vxworks*)
20117        # FIXME: insert proper C++ library support
20118        ld_shlibs_CXX=no
20119        ;;
20120
20121      *)
20122        # FIXME: insert proper C++ library support
20123        ld_shlibs_CXX=no
20124        ;;
20125    esac
20126
20127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20128$as_echo "$ld_shlibs_CXX" >&6; }
20129    test "$ld_shlibs_CXX" = no && can_build_shared=no
20130
20131    GCC_CXX="$GXX"
20132    LD_CXX="$LD"
20133
20134    ## CAVEAT EMPTOR:
20135    ## There is no encapsulation within the following macros, do not change
20136    ## the running order or otherwise move them around unless you know exactly
20137    ## what you are doing...
20138    # Dependencies to place before and after the object being linked:
20139predep_objects_CXX=
20140postdep_objects_CXX=
20141predeps_CXX=
20142postdeps_CXX=
20143compiler_lib_search_path_CXX=
20144
20145cat > conftest.$ac_ext <<_LT_EOF
20146class Foo
20147{
20148public:
20149  Foo (void) { a = 0; }
20150private:
20151  int a;
20152};
20153_LT_EOF
20154
20155if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20156  (eval $ac_compile) 2>&5
20157  ac_status=$?
20158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20159  test $ac_status = 0; }; then
20160  # Parse the compiler output and extract the necessary
20161  # objects, libraries and library flags.
20162
20163  # Sentinel used to keep track of whether or not we are before
20164  # the conftest object file.
20165  pre_test_object_deps_done=no
20166
20167  for p in `eval "$output_verbose_link_cmd"`; do
20168    case $p in
20169
20170    -L* | -R* | -l*)
20171       # Some compilers place space between "-{L,R}" and the path.
20172       # Remove the space.
20173       if test $p = "-L" ||
20174          test $p = "-R"; then
20175	 prev=$p
20176	 continue
20177       else
20178	 prev=
20179       fi
20180
20181       if test "$pre_test_object_deps_done" = no; then
20182	 case $p in
20183	 -L* | -R*)
20184	   # Internal compiler library paths should come after those
20185	   # provided the user.  The postdeps already come after the
20186	   # user supplied libs so there is no need to process them.
20187	   if test -z "$compiler_lib_search_path_CXX"; then
20188	     compiler_lib_search_path_CXX="${prev}${p}"
20189	   else
20190	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20191	   fi
20192	   ;;
20193	 # The "-l" case would never come before the object being
20194	 # linked, so don't bother handling this case.
20195	 esac
20196       else
20197	 if test -z "$postdeps_CXX"; then
20198	   postdeps_CXX="${prev}${p}"
20199	 else
20200	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20201	 fi
20202       fi
20203       ;;
20204
20205    *.$objext)
20206       # This assumes that the test object file only shows up
20207       # once in the compiler output.
20208       if test "$p" = "conftest.$objext"; then
20209	 pre_test_object_deps_done=yes
20210	 continue
20211       fi
20212
20213       if test "$pre_test_object_deps_done" = no; then
20214	 if test -z "$predep_objects_CXX"; then
20215	   predep_objects_CXX="$p"
20216	 else
20217	   predep_objects_CXX="$predep_objects_CXX $p"
20218	 fi
20219       else
20220	 if test -z "$postdep_objects_CXX"; then
20221	   postdep_objects_CXX="$p"
20222	 else
20223	   postdep_objects_CXX="$postdep_objects_CXX $p"
20224	 fi
20225       fi
20226       ;;
20227
20228    *) ;; # Ignore the rest.
20229
20230    esac
20231  done
20232
20233  # Clean up.
20234  rm -f a.out a.exe
20235else
20236  echo "libtool.m4: error: problem compiling CXX test program"
20237fi
20238
20239$RM -f confest.$objext
20240
20241# PORTME: override above test on systems where it is broken
20242case $host_os in
20243interix[3-9]*)
20244  # Interix 3.5 installs completely hosed .la files for C++, so rather than
20245  # hack all around it, let's just trust "g++" to DTRT.
20246  predep_objects_CXX=
20247  postdep_objects_CXX=
20248  postdeps_CXX=
20249  ;;
20250
20251linux*)
20252  case `$CC -V 2>&1 | sed 5q` in
20253  *Sun\ C*)
20254    # Sun C++ 5.9
20255
20256    # The more standards-conforming stlport4 library is
20257    # incompatible with the Cstd library. Avoid specifying
20258    # it if it's in CXXFLAGS. Ignore libCrun as
20259    # -library=stlport4 depends on it.
20260    case " $CXX $CXXFLAGS " in
20261    *" -library=stlport4 "*)
20262      solaris_use_stlport4=yes
20263      ;;
20264    esac
20265
20266    if test "$solaris_use_stlport4" != yes; then
20267      postdeps_CXX='-library=Cstd -library=Crun'
20268    fi
20269    ;;
20270  esac
20271  ;;
20272
20273solaris*)
20274  case $cc_basename in
20275  CC*)
20276    # The more standards-conforming stlport4 library is
20277    # incompatible with the Cstd library. Avoid specifying
20278    # it if it's in CXXFLAGS. Ignore libCrun as
20279    # -library=stlport4 depends on it.
20280    case " $CXX $CXXFLAGS " in
20281    *" -library=stlport4 "*)
20282      solaris_use_stlport4=yes
20283      ;;
20284    esac
20285
20286    # Adding this requires a known-good setup of shared libraries for
20287    # Sun compiler versions before 5.6, else PIC objects from an old
20288    # archive will be linked into the output, leading to subtle bugs.
20289    if test "$solaris_use_stlport4" != yes; then
20290      postdeps_CXX='-library=Cstd -library=Crun'
20291    fi
20292    ;;
20293  esac
20294  ;;
20295esac
20296
20297
20298case " $postdeps_CXX " in
20299*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20300esac
20301 compiler_lib_search_dirs_CXX=
20302if test -n "${compiler_lib_search_path_CXX}"; then
20303 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20304fi
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336    lt_prog_compiler_wl_CXX=
20337lt_prog_compiler_pic_CXX=
20338lt_prog_compiler_static_CXX=
20339
20340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20341$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20342
20343  # C++ specific cases for pic, static, wl, etc.
20344  if test "$GXX" = yes; then
20345    lt_prog_compiler_wl_CXX='-Wl,'
20346    lt_prog_compiler_static_CXX='-static'
20347
20348    case $host_os in
20349    aix*)
20350      # All AIX code is PIC.
20351      if test "$host_cpu" = ia64; then
20352	# AIX 5 now supports IA64 processor
20353	lt_prog_compiler_static_CXX='-Bstatic'
20354      fi
20355      lt_prog_compiler_pic_CXX='-fPIC'
20356      ;;
20357
20358    amigaos*)
20359      case $host_cpu in
20360      powerpc)
20361            # see comment about AmigaOS4 .so support
20362            lt_prog_compiler_pic_CXX='-fPIC'
20363        ;;
20364      m68k)
20365            # FIXME: we need at least 68020 code to build shared libraries, but
20366            # adding the `-m68020' flag to GCC prevents building anything better,
20367            # like `-m68040'.
20368            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20369        ;;
20370      esac
20371      ;;
20372
20373    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20374      # PIC is the default for these OSes.
20375      ;;
20376    mingw* | cygwin* | os2* | pw32* | cegcc*)
20377      # This hack is so that the source file can tell whether it is being
20378      # built for inclusion in a dll (and should export symbols for example).
20379      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20380      # (--disable-auto-import) libraries
20381      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20382      ;;
20383    darwin* | rhapsody*)
20384      # PIC is the default on this platform
20385      # Common symbols not allowed in MH_DYLIB files
20386      lt_prog_compiler_pic_CXX='-fno-common'
20387      ;;
20388    *djgpp*)
20389      # DJGPP does not support shared libraries at all
20390      lt_prog_compiler_pic_CXX=
20391      ;;
20392    haiku*)
20393      # PIC is the default for Haiku.
20394      # The "-static" flag exists, but is broken.
20395      lt_prog_compiler_static_CXX=
20396      ;;
20397    interix[3-9]*)
20398      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20399      # Instead, we relocate shared libraries at runtime.
20400      ;;
20401    sysv4*MP*)
20402      if test -d /usr/nec; then
20403	lt_prog_compiler_pic_CXX=-Kconform_pic
20404      fi
20405      ;;
20406    hpux*)
20407      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20408      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20409      # sets the default TLS model and affects inlining.
20410      case $host_cpu in
20411      hppa*64*)
20412	;;
20413      *)
20414	lt_prog_compiler_pic_CXX='-fPIC'
20415	;;
20416      esac
20417      ;;
20418    *qnx* | *nto*)
20419      # QNX uses GNU C++, but need to define -shared option too, otherwise
20420      # it will coredump.
20421      lt_prog_compiler_pic_CXX='-fPIC -shared'
20422      ;;
20423    *)
20424      lt_prog_compiler_pic_CXX='-fPIC'
20425      ;;
20426    esac
20427  else
20428    case $host_os in
20429      aix[4-9]*)
20430	# All AIX code is PIC.
20431	if test "$host_cpu" = ia64; then
20432	  # AIX 5 now supports IA64 processor
20433	  lt_prog_compiler_static_CXX='-Bstatic'
20434	else
20435	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20436	fi
20437	;;
20438      chorus*)
20439	case $cc_basename in
20440	cxch68*)
20441	  # Green Hills C++ Compiler
20442	  # _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"
20443	  ;;
20444	esac
20445	;;
20446      dgux*)
20447	case $cc_basename in
20448	  ec++*)
20449	    lt_prog_compiler_pic_CXX='-KPIC'
20450	    ;;
20451	  ghcx*)
20452	    # Green Hills C++ Compiler
20453	    lt_prog_compiler_pic_CXX='-pic'
20454	    ;;
20455	  *)
20456	    ;;
20457	esac
20458	;;
20459      freebsd* | dragonfly*)
20460	# FreeBSD uses GNU C++
20461	;;
20462      hpux9* | hpux10* | hpux11*)
20463	case $cc_basename in
20464	  CC*)
20465	    lt_prog_compiler_wl_CXX='-Wl,'
20466	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20467	    if test "$host_cpu" != ia64; then
20468	      lt_prog_compiler_pic_CXX='+Z'
20469	    fi
20470	    ;;
20471	  aCC*)
20472	    lt_prog_compiler_wl_CXX='-Wl,'
20473	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20474	    case $host_cpu in
20475	    hppa*64*|ia64*)
20476	      # +Z the default
20477	      ;;
20478	    *)
20479	      lt_prog_compiler_pic_CXX='+Z'
20480	      ;;
20481	    esac
20482	    ;;
20483	  *)
20484	    ;;
20485	esac
20486	;;
20487      interix*)
20488	# This is c89, which is MS Visual C++ (no shared libs)
20489	# Anyone wants to do a port?
20490	;;
20491      irix5* | irix6* | nonstopux*)
20492	case $cc_basename in
20493	  CC*)
20494	    lt_prog_compiler_wl_CXX='-Wl,'
20495	    lt_prog_compiler_static_CXX='-non_shared'
20496	    # CC pic flag -KPIC is the default.
20497	    ;;
20498	  *)
20499	    ;;
20500	esac
20501	;;
20502      linux* | k*bsd*-gnu | kopensolaris*-gnu)
20503	case $cc_basename in
20504	  KCC*)
20505	    # KAI C++ Compiler
20506	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20507	    lt_prog_compiler_pic_CXX='-fPIC'
20508	    ;;
20509	  ecpc* )
20510	    # old Intel C++ for x86_64 which still supported -KPIC.
20511	    lt_prog_compiler_wl_CXX='-Wl,'
20512	    lt_prog_compiler_pic_CXX='-KPIC'
20513	    lt_prog_compiler_static_CXX='-static'
20514	    ;;
20515	  icpc* )
20516	    # Intel C++, used to be incompatible with GCC.
20517	    # ICC 10 doesn't accept -KPIC any more.
20518	    lt_prog_compiler_wl_CXX='-Wl,'
20519	    lt_prog_compiler_pic_CXX='-fPIC'
20520	    lt_prog_compiler_static_CXX='-static'
20521	    ;;
20522	  pgCC* | pgcpp*)
20523	    # Portland Group C++ compiler
20524	    lt_prog_compiler_wl_CXX='-Wl,'
20525	    lt_prog_compiler_pic_CXX='-fpic'
20526	    lt_prog_compiler_static_CXX='-Bstatic'
20527	    ;;
20528	  cxx*)
20529	    # Compaq C++
20530	    # Make sure the PIC flag is empty.  It appears that all Alpha
20531	    # Linux and Compaq Tru64 Unix objects are PIC.
20532	    lt_prog_compiler_pic_CXX=
20533	    lt_prog_compiler_static_CXX='-non_shared'
20534	    ;;
20535	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20536	    # IBM XL 8.0, 9.0 on PPC and BlueGene
20537	    lt_prog_compiler_wl_CXX='-Wl,'
20538	    lt_prog_compiler_pic_CXX='-qpic'
20539	    lt_prog_compiler_static_CXX='-qstaticlink'
20540	    ;;
20541	  *)
20542	    case `$CC -V 2>&1 | sed 5q` in
20543	    *Sun\ C*)
20544	      # Sun C++ 5.9
20545	      lt_prog_compiler_pic_CXX='-KPIC'
20546	      lt_prog_compiler_static_CXX='-Bstatic'
20547	      lt_prog_compiler_wl_CXX='-Qoption ld '
20548	      ;;
20549	    esac
20550	    ;;
20551	esac
20552	;;
20553      lynxos*)
20554	;;
20555      m88k*)
20556	;;
20557      mvs*)
20558	case $cc_basename in
20559	  cxx*)
20560	    lt_prog_compiler_pic_CXX='-W c,exportall'
20561	    ;;
20562	  *)
20563	    ;;
20564	esac
20565	;;
20566      netbsd*)
20567	;;
20568      *qnx* | *nto*)
20569        # QNX uses GNU C++, but need to define -shared option too, otherwise
20570        # it will coredump.
20571        lt_prog_compiler_pic_CXX='-fPIC -shared'
20572        ;;
20573      osf3* | osf4* | osf5*)
20574	case $cc_basename in
20575	  KCC*)
20576	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20577	    ;;
20578	  RCC*)
20579	    # Rational C++ 2.4.1
20580	    lt_prog_compiler_pic_CXX='-pic'
20581	    ;;
20582	  cxx*)
20583	    # Digital/Compaq C++
20584	    lt_prog_compiler_wl_CXX='-Wl,'
20585	    # Make sure the PIC flag is empty.  It appears that all Alpha
20586	    # Linux and Compaq Tru64 Unix objects are PIC.
20587	    lt_prog_compiler_pic_CXX=
20588	    lt_prog_compiler_static_CXX='-non_shared'
20589	    ;;
20590	  *)
20591	    ;;
20592	esac
20593	;;
20594      psos*)
20595	;;
20596      solaris*)
20597	case $cc_basename in
20598	  CC*)
20599	    # Sun C++ 4.2, 5.x and Centerline C++
20600	    lt_prog_compiler_pic_CXX='-KPIC'
20601	    lt_prog_compiler_static_CXX='-Bstatic'
20602	    lt_prog_compiler_wl_CXX='-Qoption ld '
20603	    ;;
20604	  gcx*)
20605	    # Green Hills C++ Compiler
20606	    lt_prog_compiler_pic_CXX='-PIC'
20607	    ;;
20608	  *)
20609	    ;;
20610	esac
20611	;;
20612      sunos4*)
20613	case $cc_basename in
20614	  CC*)
20615	    # Sun C++ 4.x
20616	    lt_prog_compiler_pic_CXX='-pic'
20617	    lt_prog_compiler_static_CXX='-Bstatic'
20618	    ;;
20619	  lcc*)
20620	    # Lucid
20621	    lt_prog_compiler_pic_CXX='-pic'
20622	    ;;
20623	  *)
20624	    ;;
20625	esac
20626	;;
20627      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20628	case $cc_basename in
20629	  CC*)
20630	    lt_prog_compiler_wl_CXX='-Wl,'
20631	    lt_prog_compiler_pic_CXX='-KPIC'
20632	    lt_prog_compiler_static_CXX='-Bstatic'
20633	    ;;
20634	esac
20635	;;
20636      tandem*)
20637	case $cc_basename in
20638	  NCC*)
20639	    # NonStop-UX NCC 3.20
20640	    lt_prog_compiler_pic_CXX='-KPIC'
20641	    ;;
20642	  *)
20643	    ;;
20644	esac
20645	;;
20646      vxworks*)
20647	;;
20648      *)
20649	lt_prog_compiler_can_build_shared_CXX=no
20650	;;
20651    esac
20652  fi
20653
20654case $host_os in
20655  # For platforms which do not support PIC, -DPIC is meaningless:
20656  *djgpp*)
20657    lt_prog_compiler_pic_CXX=
20658    ;;
20659  *)
20660    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20661    ;;
20662esac
20663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20664$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20665
20666
20667
20668#
20669# Check to make sure the PIC flag actually works.
20670#
20671if test -n "$lt_prog_compiler_pic_CXX"; then
20672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20673$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20674if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20675  $as_echo_n "(cached) " >&6
20676else
20677  lt_cv_prog_compiler_pic_works_CXX=no
20678   ac_outfile=conftest.$ac_objext
20679   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20680   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20681   # Insert the option either (1) after the last *FLAGS variable, or
20682   # (2) before a word containing "conftest.", or (3) at the end.
20683   # Note that $ac_compile itself does not contain backslashes and begins
20684   # with a dollar sign (not a hyphen), so the echo should work correctly.
20685   # The option is referenced via a variable to avoid confusing sed.
20686   lt_compile=`echo "$ac_compile" | $SED \
20687   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20688   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20689   -e 's:$: $lt_compiler_flag:'`
20690   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20691   (eval "$lt_compile" 2>conftest.err)
20692   ac_status=$?
20693   cat conftest.err >&5
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   if (exit $ac_status) && test -s "$ac_outfile"; then
20696     # The compiler can only warn and ignore the option if not recognized
20697     # So say no if there are warnings other than the usual output.
20698     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20699     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20700     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20701       lt_cv_prog_compiler_pic_works_CXX=yes
20702     fi
20703   fi
20704   $RM conftest*
20705
20706fi
20707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20708$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20709
20710if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20711    case $lt_prog_compiler_pic_CXX in
20712     "" | " "*) ;;
20713     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20714     esac
20715else
20716    lt_prog_compiler_pic_CXX=
20717     lt_prog_compiler_can_build_shared_CXX=no
20718fi
20719
20720fi
20721
20722
20723
20724#
20725# Check to make sure the static flag actually works.
20726#
20727wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20729$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20730if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20731  $as_echo_n "(cached) " >&6
20732else
20733  lt_cv_prog_compiler_static_works_CXX=no
20734   save_LDFLAGS="$LDFLAGS"
20735   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20736   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20737   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20738     # The linker can only warn and ignore the option if not recognized
20739     # So say no if there are warnings
20740     if test -s conftest.err; then
20741       # Append any errors to the config.log.
20742       cat conftest.err 1>&5
20743       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20744       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20745       if diff conftest.exp conftest.er2 >/dev/null; then
20746         lt_cv_prog_compiler_static_works_CXX=yes
20747       fi
20748     else
20749       lt_cv_prog_compiler_static_works_CXX=yes
20750     fi
20751   fi
20752   $RM -r conftest*
20753   LDFLAGS="$save_LDFLAGS"
20754
20755fi
20756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20757$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20758
20759if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20760    :
20761else
20762    lt_prog_compiler_static_CXX=
20763fi
20764
20765
20766
20767
20768    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20769$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20770if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20771  $as_echo_n "(cached) " >&6
20772else
20773  lt_cv_prog_compiler_c_o_CXX=no
20774   $RM -r conftest 2>/dev/null
20775   mkdir conftest
20776   cd conftest
20777   mkdir out
20778   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20779
20780   lt_compiler_flag="-o out/conftest2.$ac_objext"
20781   # Insert the option either (1) after the last *FLAGS variable, or
20782   # (2) before a word containing "conftest.", or (3) at the end.
20783   # Note that $ac_compile itself does not contain backslashes and begins
20784   # with a dollar sign (not a hyphen), so the echo should work correctly.
20785   lt_compile=`echo "$ac_compile" | $SED \
20786   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20787   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20788   -e 's:$: $lt_compiler_flag:'`
20789   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20790   (eval "$lt_compile" 2>out/conftest.err)
20791   ac_status=$?
20792   cat out/conftest.err >&5
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20795   then
20796     # The compiler can only warn and ignore the option if not recognized
20797     # So say no if there are warnings
20798     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20799     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20800     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20801       lt_cv_prog_compiler_c_o_CXX=yes
20802     fi
20803   fi
20804   chmod u+w . 2>&5
20805   $RM conftest*
20806   # SGI C++ compiler will create directory out/ii_files/ for
20807   # template instantiation
20808   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20809   $RM out/* && rmdir out
20810   cd ..
20811   $RM -r conftest
20812   $RM conftest*
20813
20814fi
20815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20816$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20817
20818
20819
20820    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20821$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20822if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20823  $as_echo_n "(cached) " >&6
20824else
20825  lt_cv_prog_compiler_c_o_CXX=no
20826   $RM -r conftest 2>/dev/null
20827   mkdir conftest
20828   cd conftest
20829   mkdir out
20830   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20831
20832   lt_compiler_flag="-o out/conftest2.$ac_objext"
20833   # Insert the option either (1) after the last *FLAGS variable, or
20834   # (2) before a word containing "conftest.", or (3) at the end.
20835   # Note that $ac_compile itself does not contain backslashes and begins
20836   # with a dollar sign (not a hyphen), so the echo should work correctly.
20837   lt_compile=`echo "$ac_compile" | $SED \
20838   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20839   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20840   -e 's:$: $lt_compiler_flag:'`
20841   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20842   (eval "$lt_compile" 2>out/conftest.err)
20843   ac_status=$?
20844   cat out/conftest.err >&5
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20847   then
20848     # The compiler can only warn and ignore the option if not recognized
20849     # So say no if there are warnings
20850     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20851     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20852     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20853       lt_cv_prog_compiler_c_o_CXX=yes
20854     fi
20855   fi
20856   chmod u+w . 2>&5
20857   $RM conftest*
20858   # SGI C++ compiler will create directory out/ii_files/ for
20859   # template instantiation
20860   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20861   $RM out/* && rmdir out
20862   cd ..
20863   $RM -r conftest
20864   $RM conftest*
20865
20866fi
20867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20868$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20869
20870
20871
20872
20873hard_links="nottested"
20874if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20875  # do not overwrite the value of need_locks provided by the user
20876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20877$as_echo_n "checking if we can lock with hard links... " >&6; }
20878  hard_links=yes
20879  $RM conftest*
20880  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20881  touch conftest.a
20882  ln conftest.a conftest.b 2>&5 || hard_links=no
20883  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20885$as_echo "$hard_links" >&6; }
20886  if test "$hard_links" = no; then
20887    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20888$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20889    need_locks=warn
20890  fi
20891else
20892  need_locks=no
20893fi
20894
20895
20896
20897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20898$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20899
20900  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20901  case $host_os in
20902  aix[4-9]*)
20903    # If we're using GNU nm, then we don't want the "-C" option.
20904    # -C means demangle to AIX nm, but means don't demangle with GNU nm
20905    # Also, AIX nm treats weak defined symbols like other global defined
20906    # symbols, whereas GNU nm marks them as "W".
20907    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20908      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'
20909    else
20910      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20911    fi
20912    ;;
20913  pw32*)
20914    export_symbols_cmds_CXX="$ltdll_cmds"
20915  ;;
20916  cygwin* | mingw* | cegcc*)
20917    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'
20918  ;;
20919  *)
20920    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20921  ;;
20922  esac
20923  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20924
20925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20926$as_echo "$ld_shlibs_CXX" >&6; }
20927test "$ld_shlibs_CXX" = no && can_build_shared=no
20928
20929with_gnu_ld_CXX=$with_gnu_ld
20930
20931
20932
20933
20934
20935
20936#
20937# Do we need to explicitly link libc?
20938#
20939case "x$archive_cmds_need_lc_CXX" in
20940x|xyes)
20941  # Assume -lc should be added
20942  archive_cmds_need_lc_CXX=yes
20943
20944  if test "$enable_shared" = yes && test "$GCC" = yes; then
20945    case $archive_cmds_CXX in
20946    *'~'*)
20947      # FIXME: we may have to deal with multi-command sequences.
20948      ;;
20949    '$CC '*)
20950      # Test whether the compiler implicitly links with -lc since on some
20951      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20952      # to ld, don't add -lc before -lgcc.
20953      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20954$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20955if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20956  $as_echo_n "(cached) " >&6
20957else
20958  $RM conftest*
20959	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20960
20961	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20962  (eval $ac_compile) 2>&5
20963  ac_status=$?
20964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20965  test $ac_status = 0; } 2>conftest.err; then
20966	  soname=conftest
20967	  lib=conftest
20968	  libobjs=conftest.$ac_objext
20969	  deplibs=
20970	  wl=$lt_prog_compiler_wl_CXX
20971	  pic_flag=$lt_prog_compiler_pic_CXX
20972	  compiler_flags=-v
20973	  linker_flags=-v
20974	  verstring=
20975	  output_objdir=.
20976	  libname=conftest
20977	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20978	  allow_undefined_flag_CXX=
20979	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20980  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20981  ac_status=$?
20982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20983  test $ac_status = 0; }
20984	  then
20985	    lt_cv_archive_cmds_need_lc_CXX=no
20986	  else
20987	    lt_cv_archive_cmds_need_lc_CXX=yes
20988	  fi
20989	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20990	else
20991	  cat conftest.err 1>&5
20992	fi
20993	$RM conftest*
20994
20995fi
20996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20997$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20998      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20999      ;;
21000    esac
21001  fi
21002  ;;
21003esac
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21069$as_echo_n "checking dynamic linker characteristics... " >&6; }
21070
21071library_names_spec=
21072libname_spec='lib$name'
21073soname_spec=
21074shrext_cmds=".so"
21075postinstall_cmds=
21076postuninstall_cmds=
21077finish_cmds=
21078finish_eval=
21079shlibpath_var=
21080shlibpath_overrides_runpath=unknown
21081version_type=none
21082dynamic_linker="$host_os ld.so"
21083sys_lib_dlsearch_path_spec="/lib /usr/lib"
21084need_lib_prefix=unknown
21085hardcode_into_libs=no
21086
21087# when you set need_version to no, make sure it does not cause -set_version
21088# flags to be left without arguments
21089need_version=unknown
21090
21091case $host_os in
21092aix3*)
21093  version_type=linux
21094  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21095  shlibpath_var=LIBPATH
21096
21097  # AIX 3 has no versioning support, so we append a major version to the name.
21098  soname_spec='${libname}${release}${shared_ext}$major'
21099  ;;
21100
21101aix[4-9]*)
21102  version_type=linux
21103  need_lib_prefix=no
21104  need_version=no
21105  hardcode_into_libs=yes
21106  if test "$host_cpu" = ia64; then
21107    # AIX 5 supports IA64
21108    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21109    shlibpath_var=LD_LIBRARY_PATH
21110  else
21111    # With GCC up to 2.95.x, collect2 would create an import file
21112    # for dependence libraries.  The import file would start with
21113    # the line `#! .'.  This would cause the generated library to
21114    # depend on `.', always an invalid library.  This was fixed in
21115    # development snapshots of GCC prior to 3.0.
21116    case $host_os in
21117      aix4 | aix4.[01] | aix4.[01].*)
21118      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21119	   echo ' yes '
21120	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21121	:
21122      else
21123	can_build_shared=no
21124      fi
21125      ;;
21126    esac
21127    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21128    # soname into executable. Probably we can add versioning support to
21129    # collect2, so additional links can be useful in future.
21130    if test "$aix_use_runtimelinking" = yes; then
21131      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21132      # instead of lib<name>.a to let people know that these are not
21133      # typical AIX shared libraries.
21134      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21135    else
21136      # We preserve .a as extension for shared libraries through AIX4.2
21137      # and later when we are not doing run time linking.
21138      library_names_spec='${libname}${release}.a $libname.a'
21139      soname_spec='${libname}${release}${shared_ext}$major'
21140    fi
21141    shlibpath_var=LIBPATH
21142  fi
21143  ;;
21144
21145amigaos*)
21146  case $host_cpu in
21147  powerpc)
21148    # Since July 2007 AmigaOS4 officially supports .so libraries.
21149    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21150    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21151    ;;
21152  m68k)
21153    library_names_spec='$libname.ixlibrary $libname.a'
21154    # Create ${libname}_ixlibrary.a entries in /sys/libs.
21155    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'
21156    ;;
21157  esac
21158  ;;
21159
21160beos*)
21161  library_names_spec='${libname}${shared_ext}'
21162  dynamic_linker="$host_os ld.so"
21163  shlibpath_var=LIBRARY_PATH
21164  ;;
21165
21166bsdi[45]*)
21167  version_type=linux
21168  need_version=no
21169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21170  soname_spec='${libname}${release}${shared_ext}$major'
21171  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21172  shlibpath_var=LD_LIBRARY_PATH
21173  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21174  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21175  # the default ld.so.conf also contains /usr/contrib/lib and
21176  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21177  # libtool to hard-code these into programs
21178  ;;
21179
21180cygwin* | mingw* | pw32* | cegcc*)
21181  version_type=windows
21182  shrext_cmds=".dll"
21183  need_version=no
21184  need_lib_prefix=no
21185
21186  case $GCC,$host_os in
21187  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21188    library_names_spec='$libname.dll.a'
21189    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21190    postinstall_cmds='base_file=`basename \${file}`~
21191      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21192      dldir=$destdir/`dirname \$dlpath`~
21193      test -d \$dldir || mkdir -p \$dldir~
21194      $install_prog $dir/$dlname \$dldir/$dlname~
21195      chmod a+x \$dldir/$dlname~
21196      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21197        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21198      fi'
21199    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21200      dlpath=$dir/\$dldll~
21201       $RM \$dlpath'
21202    shlibpath_overrides_runpath=yes
21203
21204    case $host_os in
21205    cygwin*)
21206      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21207      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21208
21209      ;;
21210    mingw* | cegcc*)
21211      # MinGW DLLs use traditional 'lib' prefix
21212      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21213      ;;
21214    pw32*)
21215      # pw32 DLLs use 'pw' prefix rather than 'lib'
21216      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21217      ;;
21218    esac
21219    ;;
21220
21221  *)
21222    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21223    ;;
21224  esac
21225  dynamic_linker='Win32 ld.exe'
21226  # FIXME: first we should search . and the directory the executable is in
21227  shlibpath_var=PATH
21228  ;;
21229
21230darwin* | rhapsody*)
21231  dynamic_linker="$host_os dyld"
21232  version_type=darwin
21233  need_lib_prefix=no
21234  need_version=no
21235  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21236  soname_spec='${libname}${release}${major}$shared_ext'
21237  shlibpath_overrides_runpath=yes
21238  shlibpath_var=DYLD_LIBRARY_PATH
21239  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21240
21241  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21242  ;;
21243
21244dgux*)
21245  version_type=linux
21246  need_lib_prefix=no
21247  need_version=no
21248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21249  soname_spec='${libname}${release}${shared_ext}$major'
21250  shlibpath_var=LD_LIBRARY_PATH
21251  ;;
21252
21253freebsd* | dragonfly*)
21254  # DragonFly does not have aout.  When/if they implement a new
21255  # versioning mechanism, adjust this.
21256  if test -x /usr/bin/objformat; then
21257    objformat=`/usr/bin/objformat`
21258  else
21259    case $host_os in
21260    freebsd[23].*) objformat=aout ;;
21261    *) objformat=elf ;;
21262    esac
21263  fi
21264  version_type=freebsd-$objformat
21265  case $version_type in
21266    freebsd-elf*)
21267      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21268      need_version=no
21269      need_lib_prefix=no
21270      ;;
21271    freebsd-*)
21272      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21273      need_version=yes
21274      ;;
21275  esac
21276  shlibpath_var=LD_LIBRARY_PATH
21277  case $host_os in
21278  freebsd2.*)
21279    shlibpath_overrides_runpath=yes
21280    ;;
21281  freebsd3.[01]* | freebsdelf3.[01]*)
21282    shlibpath_overrides_runpath=yes
21283    hardcode_into_libs=yes
21284    ;;
21285  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21286  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21287    shlibpath_overrides_runpath=no
21288    hardcode_into_libs=yes
21289    ;;
21290  *) # from 4.6 on, and DragonFly
21291    shlibpath_overrides_runpath=yes
21292    hardcode_into_libs=yes
21293    ;;
21294  esac
21295  ;;
21296
21297gnu*)
21298  version_type=linux
21299  need_lib_prefix=no
21300  need_version=no
21301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21302  soname_spec='${libname}${release}${shared_ext}$major'
21303  shlibpath_var=LD_LIBRARY_PATH
21304  hardcode_into_libs=yes
21305  ;;
21306
21307haiku*)
21308  version_type=linux
21309  need_lib_prefix=no
21310  need_version=no
21311  dynamic_linker="$host_os runtime_loader"
21312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21313  soname_spec='${libname}${release}${shared_ext}$major'
21314  shlibpath_var=LIBRARY_PATH
21315  shlibpath_overrides_runpath=yes
21316  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21317  hardcode_into_libs=yes
21318  ;;
21319
21320hpux9* | hpux10* | hpux11*)
21321  # Give a soname corresponding to the major version so that dld.sl refuses to
21322  # link against other versions.
21323  version_type=sunos
21324  need_lib_prefix=no
21325  need_version=no
21326  case $host_cpu in
21327  ia64*)
21328    shrext_cmds='.so'
21329    hardcode_into_libs=yes
21330    dynamic_linker="$host_os dld.so"
21331    shlibpath_var=LD_LIBRARY_PATH
21332    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21333    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21334    soname_spec='${libname}${release}${shared_ext}$major'
21335    if test "X$HPUX_IA64_MODE" = X32; then
21336      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21337    else
21338      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21339    fi
21340    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21341    ;;
21342  hppa*64*)
21343    shrext_cmds='.sl'
21344    hardcode_into_libs=yes
21345    dynamic_linker="$host_os dld.sl"
21346    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21347    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21348    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21349    soname_spec='${libname}${release}${shared_ext}$major'
21350    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21351    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21352    ;;
21353  *)
21354    shrext_cmds='.sl'
21355    dynamic_linker="$host_os dld.sl"
21356    shlibpath_var=SHLIB_PATH
21357    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21358    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21359    soname_spec='${libname}${release}${shared_ext}$major'
21360    ;;
21361  esac
21362  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21363  postinstall_cmds='chmod 555 $lib'
21364  # or fails outright, so override atomically:
21365  install_override_mode=555
21366  ;;
21367
21368interix[3-9]*)
21369  version_type=linux
21370  need_lib_prefix=no
21371  need_version=no
21372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21373  soname_spec='${libname}${release}${shared_ext}$major'
21374  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21375  shlibpath_var=LD_LIBRARY_PATH
21376  shlibpath_overrides_runpath=no
21377  hardcode_into_libs=yes
21378  ;;
21379
21380irix5* | irix6* | nonstopux*)
21381  case $host_os in
21382    nonstopux*) version_type=nonstopux ;;
21383    *)
21384	if test "$lt_cv_prog_gnu_ld" = yes; then
21385		version_type=linux
21386	else
21387		version_type=irix
21388	fi ;;
21389  esac
21390  need_lib_prefix=no
21391  need_version=no
21392  soname_spec='${libname}${release}${shared_ext}$major'
21393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21394  case $host_os in
21395  irix5* | nonstopux*)
21396    libsuff= shlibsuff=
21397    ;;
21398  *)
21399    case $LD in # libtool.m4 will add one of these switches to LD
21400    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21401      libsuff= shlibsuff= libmagic=32-bit;;
21402    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21403      libsuff=32 shlibsuff=N32 libmagic=N32;;
21404    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21405      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21406    *) libsuff= shlibsuff= libmagic=never-match;;
21407    esac
21408    ;;
21409  esac
21410  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21411  shlibpath_overrides_runpath=no
21412  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21413  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21414  hardcode_into_libs=yes
21415  ;;
21416
21417# No shared lib support for Linux oldld, aout, or coff.
21418linux*oldld* | linux*aout* | linux*coff*)
21419  dynamic_linker=no
21420  ;;
21421
21422# This must be Linux ELF.
21423linux* | k*bsd*-gnu | kopensolaris*-gnu)
21424  version_type=linux
21425  need_lib_prefix=no
21426  need_version=no
21427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21428  soname_spec='${libname}${release}${shared_ext}$major'
21429  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21430  shlibpath_var=LD_LIBRARY_PATH
21431  shlibpath_overrides_runpath=no
21432
21433  # Some binutils ld are patched to set DT_RUNPATH
21434  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21435  $as_echo_n "(cached) " >&6
21436else
21437  lt_cv_shlibpath_overrides_runpath=no
21438    save_LDFLAGS=$LDFLAGS
21439    save_libdir=$libdir
21440    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21441	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21442    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21443/* end confdefs.h.  */
21444
21445int
21446main ()
21447{
21448
21449  ;
21450  return 0;
21451}
21452_ACEOF
21453if ac_fn_cxx_try_link "$LINENO"; then :
21454  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21455  lt_cv_shlibpath_overrides_runpath=yes
21456fi
21457fi
21458rm -f core conftest.err conftest.$ac_objext \
21459    conftest$ac_exeext conftest.$ac_ext
21460    LDFLAGS=$save_LDFLAGS
21461    libdir=$save_libdir
21462
21463fi
21464
21465  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21466
21467  # This implies no fast_install, which is unacceptable.
21468  # Some rework will be needed to allow for fast_install
21469  # before this can be enabled.
21470  hardcode_into_libs=yes
21471
21472  # Append ld.so.conf contents to the search path
21473  if test -f /etc/ld.so.conf; then
21474    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' ' '`
21475    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21476  fi
21477
21478  # We used to test for /lib/ld.so.1 and disable shared libraries on
21479  # powerpc, because MkLinux only supported shared libraries with the
21480  # GNU dynamic linker.  Since this was broken with cross compilers,
21481  # most powerpc-linux boxes support dynamic linking these days and
21482  # people can always --disable-shared, the test was removed, and we
21483  # assume the GNU/Linux dynamic linker is in use.
21484  dynamic_linker='GNU/Linux ld.so'
21485  ;;
21486
21487netbsd*)
21488  version_type=sunos
21489  need_lib_prefix=no
21490  need_version=no
21491  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21493    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21494    dynamic_linker='NetBSD (a.out) ld.so'
21495  else
21496    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21497    soname_spec='${libname}${release}${shared_ext}$major'
21498    dynamic_linker='NetBSD ld.elf_so'
21499  fi
21500  shlibpath_var=LD_LIBRARY_PATH
21501  shlibpath_overrides_runpath=yes
21502  hardcode_into_libs=yes
21503  ;;
21504
21505newsos6)
21506  version_type=linux
21507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21508  shlibpath_var=LD_LIBRARY_PATH
21509  shlibpath_overrides_runpath=yes
21510  ;;
21511
21512*nto* | *qnx*)
21513  version_type=qnx
21514  need_lib_prefix=no
21515  need_version=no
21516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21517  soname_spec='${libname}${release}${shared_ext}$major'
21518  shlibpath_var=LD_LIBRARY_PATH
21519  shlibpath_overrides_runpath=no
21520  hardcode_into_libs=yes
21521  dynamic_linker='ldqnx.so'
21522  ;;
21523
21524openbsd*)
21525  version_type=sunos
21526  sys_lib_dlsearch_path_spec="/usr/lib"
21527  need_lib_prefix=no
21528  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21529  case $host_os in
21530    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
21531    *)				need_version=no  ;;
21532  esac
21533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21534  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21535  shlibpath_var=LD_LIBRARY_PATH
21536  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21537    case $host_os in
21538      openbsd2.[89] | openbsd2.[89].*)
21539	shlibpath_overrides_runpath=no
21540	;;
21541      *)
21542	shlibpath_overrides_runpath=yes
21543	;;
21544      esac
21545  else
21546    shlibpath_overrides_runpath=yes
21547  fi
21548  ;;
21549
21550os2*)
21551  libname_spec='$name'
21552  shrext_cmds=".dll"
21553  need_lib_prefix=no
21554  library_names_spec='$libname${shared_ext} $libname.a'
21555  dynamic_linker='OS/2 ld.exe'
21556  shlibpath_var=LIBPATH
21557  ;;
21558
21559osf3* | osf4* | osf5*)
21560  version_type=osf
21561  need_lib_prefix=no
21562  need_version=no
21563  soname_spec='${libname}${release}${shared_ext}$major'
21564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21565  shlibpath_var=LD_LIBRARY_PATH
21566  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21567  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21568  ;;
21569
21570rdos*)
21571  dynamic_linker=no
21572  ;;
21573
21574solaris*)
21575  version_type=linux
21576  need_lib_prefix=no
21577  need_version=no
21578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21579  soname_spec='${libname}${release}${shared_ext}$major'
21580  shlibpath_var=LD_LIBRARY_PATH
21581  shlibpath_overrides_runpath=yes
21582  hardcode_into_libs=yes
21583  # ldd complains unless libraries are executable
21584  postinstall_cmds='chmod +x $lib'
21585  ;;
21586
21587sunos4*)
21588  version_type=sunos
21589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21590  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21591  shlibpath_var=LD_LIBRARY_PATH
21592  shlibpath_overrides_runpath=yes
21593  if test "$with_gnu_ld" = yes; then
21594    need_lib_prefix=no
21595  fi
21596  need_version=yes
21597  ;;
21598
21599sysv4 | sysv4.3*)
21600  version_type=linux
21601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21602  soname_spec='${libname}${release}${shared_ext}$major'
21603  shlibpath_var=LD_LIBRARY_PATH
21604  case $host_vendor in
21605    sni)
21606      shlibpath_overrides_runpath=no
21607      need_lib_prefix=no
21608      runpath_var=LD_RUN_PATH
21609      ;;
21610    siemens)
21611      need_lib_prefix=no
21612      ;;
21613    motorola)
21614      need_lib_prefix=no
21615      need_version=no
21616      shlibpath_overrides_runpath=no
21617      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21618      ;;
21619  esac
21620  ;;
21621
21622sysv4*MP*)
21623  if test -d /usr/nec ;then
21624    version_type=linux
21625    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21626    soname_spec='$libname${shared_ext}.$major'
21627    shlibpath_var=LD_LIBRARY_PATH
21628  fi
21629  ;;
21630
21631sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21632  version_type=freebsd-elf
21633  need_lib_prefix=no
21634  need_version=no
21635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21636  soname_spec='${libname}${release}${shared_ext}$major'
21637  shlibpath_var=LD_LIBRARY_PATH
21638  shlibpath_overrides_runpath=yes
21639  hardcode_into_libs=yes
21640  if test "$with_gnu_ld" = yes; then
21641    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21642  else
21643    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21644    case $host_os in
21645      sco3.2v5*)
21646        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21647	;;
21648    esac
21649  fi
21650  sys_lib_dlsearch_path_spec='/usr/lib'
21651  ;;
21652
21653tpf*)
21654  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21655  version_type=linux
21656  need_lib_prefix=no
21657  need_version=no
21658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21659  shlibpath_var=LD_LIBRARY_PATH
21660  shlibpath_overrides_runpath=no
21661  hardcode_into_libs=yes
21662  ;;
21663
21664uts4*)
21665  version_type=linux
21666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21667  soname_spec='${libname}${release}${shared_ext}$major'
21668  shlibpath_var=LD_LIBRARY_PATH
21669  ;;
21670
21671*)
21672  dynamic_linker=no
21673  ;;
21674esac
21675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21676$as_echo "$dynamic_linker" >&6; }
21677test "$dynamic_linker" = no && can_build_shared=no
21678
21679variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21680if test "$GCC" = yes; then
21681  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21682fi
21683
21684if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21685  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21686fi
21687if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21688  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21689fi
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21729$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21730hardcode_action_CXX=
21731if test -n "$hardcode_libdir_flag_spec_CXX" ||
21732   test -n "$runpath_var_CXX" ||
21733   test "X$hardcode_automatic_CXX" = "Xyes" ; then
21734
21735  # We can hardcode non-existent directories.
21736  if test "$hardcode_direct_CXX" != no &&
21737     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21738     # have to relink, otherwise we might link with an installed library
21739     # when we should be linking with a yet-to-be-installed one
21740     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21741     test "$hardcode_minus_L_CXX" != no; then
21742    # Linking always hardcodes the temporary library directory.
21743    hardcode_action_CXX=relink
21744  else
21745    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21746    hardcode_action_CXX=immediate
21747  fi
21748else
21749  # We cannot hardcode anything, or else we can only hardcode existing
21750  # directories.
21751  hardcode_action_CXX=unsupported
21752fi
21753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21754$as_echo "$hardcode_action_CXX" >&6; }
21755
21756if test "$hardcode_action_CXX" = relink ||
21757   test "$inherit_rpath_CXX" = yes; then
21758  # Fast installation is not supported
21759  enable_fast_install=no
21760elif test "$shlibpath_overrides_runpath" = yes ||
21761     test "$enable_shared" = no; then
21762  # Fast installation is not necessary
21763  enable_fast_install=needless
21764fi
21765
21766
21767
21768
21769
21770
21771
21772  fi # test -n "$compiler"
21773
21774  CC=$lt_save_CC
21775  LDCXX=$LD
21776  LD=$lt_save_LD
21777  GCC=$lt_save_GCC
21778  with_gnu_ld=$lt_save_with_gnu_ld
21779  lt_cv_path_LDCXX=$lt_cv_path_LD
21780  lt_cv_path_LD=$lt_save_path_LD
21781  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21782  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21783fi # test "$_lt_caught_CXX_error" != yes
21784
21785ac_ext=cpp
21786ac_cpp='$CXXCPP $CPPFLAGS'
21787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806# Only expand once:
21807
21808
21809
21810
21811
21812# Identify the assembler which will work hand-in-glove with the newly
21813# built GCC, so that we can examine its features.  This is the assembler
21814# which will be driven by the driver program.
21815#
21816# If build != host, and we aren't building gas in-tree, we identify a
21817# build->target assembler and hope that it will have the same features
21818# as the host->target assembler we'll be using.
21819gcc_cv_gas_major_version=
21820gcc_cv_gas_minor_version=
21821gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21822
21823if test "${gcc_cv_as+set}" = set; then :
21824
21825else
21826
21827if test -x "$DEFAULT_ASSEMBLER"; then
21828	gcc_cv_as="$DEFAULT_ASSEMBLER"
21829elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21830     && test -f ../gas/Makefile \
21831     && test x$build = x$host; then
21832	gcc_cv_as=../gas/as-new$build_exeext
21833elif test -x as$build_exeext; then
21834	# Build using assembler in the current directory.
21835	gcc_cv_as=./as$build_exeext
21836elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21837        gcc_cv_as="$AS_FOR_TARGET"
21838else
21839        # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21840set dummy $AS_FOR_TARGET; ac_word=$2
21841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21842$as_echo_n "checking for $ac_word... " >&6; }
21843if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21844  $as_echo_n "(cached) " >&6
21845else
21846  case $gcc_cv_as in
21847  [\\/]* | ?:[\\/]*)
21848  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21849  ;;
21850  *)
21851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21852for as_dir in $PATH
21853do
21854  IFS=$as_save_IFS
21855  test -z "$as_dir" && as_dir=.
21856    for ac_exec_ext in '' $ac_executable_extensions; do
21857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21858    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21860    break 2
21861  fi
21862done
21863  done
21864IFS=$as_save_IFS
21865
21866  ;;
21867esac
21868fi
21869gcc_cv_as=$ac_cv_path_gcc_cv_as
21870if test -n "$gcc_cv_as"; then
21871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21872$as_echo "$gcc_cv_as" >&6; }
21873else
21874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21875$as_echo "no" >&6; }
21876fi
21877
21878
21879fi
21880fi
21881
21882ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21883
21884case "$ORIGINAL_AS_FOR_TARGET" in
21885  ./as | ./as$build_exeext) ;;
21886  *) ac_config_files="$ac_config_files as:exec-tool.in"
21887 ;;
21888esac
21889
21890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21891$as_echo_n "checking what assembler to use... " >&6; }
21892if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21893  # Single tree build which includes gas.  We want to prefer it
21894  # over whatever linker top-level may have detected, since
21895  # we'll use what we're building after installation anyway.
21896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21897$as_echo "newly built gas" >&6; }
21898  in_tree_gas=yes
21899  gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21900for f in $gcc_cv_as_bfd_srcdir/configure \
21901         $gcc_cv_as_gas_srcdir/configure \
21902         $gcc_cv_as_gas_srcdir/configure.ac \
21903         $gcc_cv_as_gas_srcdir/Makefile.in ; do
21904  gcc_cv_gas_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21905  if test x$gcc_cv_gas_version != x; then
21906    break
21907  fi
21908done
21909case $gcc_cv_gas_version in
21910  VERSION=[0-9]*) ;;
21911  *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21912esac
21913gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21914gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21915gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21916case $gcc_cv_gas_patch_version in
21917  "") gcc_cv_gas_patch_version="0" ;;
21918esac
21919gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21920			    + $gcc_cv_gas_minor_version \) \* 1000 \
21921			    + $gcc_cv_gas_patch_version`
21922
21923  in_tree_gas_is_elf=no
21924  if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21925     || (grep 'obj_format = multi' ../gas/Makefile \
21926         && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21927  then
21928    in_tree_gas_is_elf=yes
21929  fi
21930else
21931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21932$as_echo "$gcc_cv_as" >&6; }
21933  in_tree_gas=no
21934fi
21935
21936default_ld=
21937# Check whether --enable-ld was given.
21938if test "${enable_ld+set}" = set; then :
21939  enableval=$enable_ld; case "${enableval}" in
21940 no)
21941   default_ld=ld.gold
21942   ;;
21943 esac
21944fi
21945
21946
21947install_gold_as_default=no
21948# Check whether --enable-gold was given.
21949if test "${enable_gold+set}" = set; then :
21950  enableval=$enable_gold; case "${enableval}" in
21951 default)
21952   install_gold_as_default=yes
21953   ;;
21954 yes)
21955   if test x${default_ld} != x; then
21956     install_gold_as_default=yes
21957   fi
21958   ;;
21959 no)
21960   ;;
21961 *)
21962   as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21963   ;;
21964 esac
21965fi
21966
21967
21968# Identify the linker which will work hand-in-glove with the newly
21969# built GCC, so that we can examine its features.  This is the linker
21970# which will be driven by the driver program.
21971#
21972# If build != host, and we aren't building gas in-tree, we identify a
21973# build->target linker and hope that it will have the same features
21974# as the host->target linker we'll be using.
21975gcc_cv_gld_major_version=
21976gcc_cv_gld_minor_version=
21977gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21978gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21979gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21980
21981if test "${gcc_cv_ld+set}" = set; then :
21982
21983else
21984
21985if test -x "$DEFAULT_LINKER"; then
21986	gcc_cv_ld="$DEFAULT_LINKER"
21987elif test $install_gold_as_default = yes \
21988     && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21989     && test -f ../gold/Makefile \
21990     && test x$build = x$host; then
21991	gcc_cv_ld=../gold/ld-new$build_exeext
21992elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21993     && test -f ../ld/Makefile \
21994     && test x$build = x$host; then
21995	gcc_cv_ld=../ld/ld-new$build_exeext
21996elif test -x collect-ld$build_exeext; then
21997	# Build using linker in the current directory.
21998	gcc_cv_ld=./collect-ld$build_exeext
21999elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22000        gcc_cv_ld="$LD_FOR_TARGET"
22001else
22002        # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22003set dummy $LD_FOR_TARGET; ac_word=$2
22004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22005$as_echo_n "checking for $ac_word... " >&6; }
22006if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22007  $as_echo_n "(cached) " >&6
22008else
22009  case $gcc_cv_ld in
22010  [\\/]* | ?:[\\/]*)
22011  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22012  ;;
22013  *)
22014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22015for as_dir in $PATH
22016do
22017  IFS=$as_save_IFS
22018  test -z "$as_dir" && as_dir=.
22019    for ac_exec_ext in '' $ac_executable_extensions; do
22020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22021    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22023    break 2
22024  fi
22025done
22026  done
22027IFS=$as_save_IFS
22028
22029  ;;
22030esac
22031fi
22032gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22033if test -n "$gcc_cv_ld"; then
22034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22035$as_echo "$gcc_cv_ld" >&6; }
22036else
22037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22038$as_echo "no" >&6; }
22039fi
22040
22041
22042fi
22043fi
22044
22045ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22046PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22047# if the PLUGIN_LD is set ld-new, just have it as ld
22048# as that is the installed named.
22049if test x$PLUGIN_LD_SUFFIX = xld-new \
22050   || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22051  PLUGIN_LD_SUFFIX=ld
22052fi
22053
22054# Check whether --with-plugin-ld was given.
22055if test "${with_plugin_ld+set}" = set; then :
22056  withval=$with_plugin_ld; if test x"$withval" != x; then
22057   ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22058   PLUGIN_LD_SUFFIX="$withval"
22059 fi
22060fi
22061
22062
22063
22064cat >>confdefs.h <<_ACEOF
22065#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22066_ACEOF
22067
22068
22069# Check to see if we are using gold instead of ld
22070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22071$as_echo_n "checking whether we are using gold... " >&6; }
22072ld_is_gold=no
22073if test x$gcc_cv_ld != x; then
22074  if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22075     | grep "GNU gold" > /dev/null; then
22076    ld_is_gold=yes
22077  fi
22078fi
22079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22080$as_echo "$ld_is_gold" >&6; }
22081
22082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22083$as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22084# Check to see if default ld is not gold, but gold is
22085# available and has support for split stack.  If gcc was configured
22086# with gold then no checking is done.
22087#
22088if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22089
22090# For platforms other than powerpc64*, enable as appropriate.
22091
22092  gold_non_default=no
22093  ld_gold=`which ${gcc_cv_ld}.gold`
22094# Make sure this gold has minimal split stack support
22095  if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22096    ld_vers=`$ld_gold --version | sed 1q`
22097    gold_vers=`echo $ld_vers | sed -n \
22098          -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22099    case $target in
22100# check that the gold version contains the complete split stack support
22101# on powerpc64 big and little endian
22102      powerpc64*-*-*)
22103        case "$gold_vers" in
22104          2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22105          ;;
22106          *) gold_non_default=no
22107          ;;
22108        esac
22109        ;;
22110    esac
22111  fi
22112  if test $gold_non_default = yes; then
22113
22114$as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22115
22116  fi
22117fi
22118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22119$as_echo "$gold_non_default" >&6; }
22120
22121ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22122
22123case "$ORIGINAL_LD_FOR_TARGET" in
22124  ./collect-ld | ./collect-ld$build_exeext) ;;
22125  *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22126 ;;
22127esac
22128
22129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22130$as_echo_n "checking what linker to use... " >&6; }
22131if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22132   || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22133	# Single tree build which includes ld.  We want to prefer it
22134	# over whatever linker top-level may have detected, since
22135	# we'll use what we're building after installation anyway.
22136	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22137$as_echo "newly built ld" >&6; }
22138	in_tree_ld=yes
22139	in_tree_ld_is_elf=no
22140	if (grep 'EMUL = .*elf' ../ld/Makefile \
22141	    || grep 'EMUL = .*linux' ../ld/Makefile \
22142	    || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22143	  in_tree_ld_is_elf=yes
22144	elif test "$ld_is_gold" = yes; then
22145	  in_tree_ld_is_elf=yes
22146	fi
22147	for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
22148	do
22149		gcc_cv_gld_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22150		if test x$gcc_cv_gld_version != x; then
22151			break
22152		fi
22153	done
22154	case $gcc_cv_gld_version in
22155	  VERSION=[0-9]*) ;;
22156	  *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22157	esac
22158	gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22159	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22160	ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22161	ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22162else
22163	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22164$as_echo "$gcc_cv_ld" >&6; }
22165	in_tree_ld=no
22166	gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22167	ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22168	ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22169fi
22170
22171
22172
22173
22174# Figure out what nm we will be using.
22175gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22176if test "${gcc_cv_nm+set}" = set; then :
22177
22178else
22179
22180if test -f $gcc_cv_binutils_srcdir/configure.ac \
22181     && test -f ../binutils/Makefile \
22182     && test x$build = x$host; then
22183	gcc_cv_nm=../binutils/nm-new$build_exeext
22184elif test -x nm$build_exeext; then
22185	gcc_cv_nm=./nm$build_exeext
22186elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22187        gcc_cv_nm="$NM_FOR_TARGET"
22188else
22189        # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22190set dummy $NM_FOR_TARGET; ac_word=$2
22191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22192$as_echo_n "checking for $ac_word... " >&6; }
22193if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22194  $as_echo_n "(cached) " >&6
22195else
22196  case $gcc_cv_nm in
22197  [\\/]* | ?:[\\/]*)
22198  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22199  ;;
22200  *)
22201  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22202for as_dir in $PATH
22203do
22204  IFS=$as_save_IFS
22205  test -z "$as_dir" && as_dir=.
22206    for ac_exec_ext in '' $ac_executable_extensions; do
22207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22208    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22210    break 2
22211  fi
22212done
22213  done
22214IFS=$as_save_IFS
22215
22216  ;;
22217esac
22218fi
22219gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22220if test -n "$gcc_cv_nm"; then
22221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22222$as_echo "$gcc_cv_nm" >&6; }
22223else
22224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22225$as_echo "no" >&6; }
22226fi
22227
22228
22229fi
22230fi
22231
22232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22233$as_echo_n "checking what nm to use... " >&6; }
22234if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22235	# Single tree build which includes binutils.
22236	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22237$as_echo "newly built nm" >&6; }
22238	in_tree_nm=yes
22239else
22240	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22241$as_echo "$gcc_cv_nm" >&6; }
22242	in_tree_nm=no
22243fi
22244
22245ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22246
22247case "$ORIGINAL_NM_FOR_TARGET" in
22248  ./nm | ./nm$build_exeext) ;;
22249  *) ac_config_files="$ac_config_files nm:exec-tool.in"
22250 ;;
22251esac
22252
22253
22254# Figure out what objdump we will be using.
22255if test "${gcc_cv_objdump+set}" = set; then :
22256
22257else
22258
22259if test -f $gcc_cv_binutils_srcdir/configure.ac \
22260     && test -f ../binutils/Makefile \
22261     && test x$build = x$host; then
22262	# Single tree build which includes binutils.
22263	gcc_cv_objdump=../binutils/objdump$build_exeext
22264elif test -x objdump$build_exeext; then
22265	gcc_cv_objdump=./objdump$build_exeext
22266elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22267        gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22268else
22269        # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22270set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22272$as_echo_n "checking for $ac_word... " >&6; }
22273if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22274  $as_echo_n "(cached) " >&6
22275else
22276  case $gcc_cv_objdump in
22277  [\\/]* | ?:[\\/]*)
22278  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22279  ;;
22280  *)
22281  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22282for as_dir in $PATH
22283do
22284  IFS=$as_save_IFS
22285  test -z "$as_dir" && as_dir=.
22286    for ac_exec_ext in '' $ac_executable_extensions; do
22287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22288    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22290    break 2
22291  fi
22292done
22293  done
22294IFS=$as_save_IFS
22295
22296  ;;
22297esac
22298fi
22299gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22300if test -n "$gcc_cv_objdump"; then
22301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22302$as_echo "$gcc_cv_objdump" >&6; }
22303else
22304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22305$as_echo "no" >&6; }
22306fi
22307
22308
22309fi
22310fi
22311
22312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22313$as_echo_n "checking what objdump to use... " >&6; }
22314if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22315	# Single tree build which includes binutils.
22316	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22317$as_echo "newly built objdump" >&6; }
22318elif test x$gcc_cv_objdump = x; then
22319	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22320$as_echo "not found" >&6; }
22321else
22322	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22323$as_echo "$gcc_cv_objdump" >&6; }
22324fi
22325
22326# Figure out what readelf we will be using.
22327if test "${gcc_cv_readelf+set}" = set; then :
22328
22329else
22330
22331if test -f $gcc_cv_binutils_srcdir/configure.ac \
22332     && test -f ../binutils/Makefile \
22333     && test x$build = x$host; then
22334	# Single tree build which includes binutils.
22335	gcc_cv_readelf=../binutils/readelf$build_exeext
22336elif test -x readelf$build_exeext; then
22337	gcc_cv_readelf=./readelf$build_exeext
22338elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22339        gcc_cv_readelf="$READELF_FOR_TARGET"
22340else
22341        # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22342set dummy $READELF_FOR_TARGET; ac_word=$2
22343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22344$as_echo_n "checking for $ac_word... " >&6; }
22345if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22346  $as_echo_n "(cached) " >&6
22347else
22348  case $gcc_cv_readelf in
22349  [\\/]* | ?:[\\/]*)
22350  ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22351  ;;
22352  *)
22353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22354for as_dir in $PATH
22355do
22356  IFS=$as_save_IFS
22357  test -z "$as_dir" && as_dir=.
22358    for ac_exec_ext in '' $ac_executable_extensions; do
22359  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22360    ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22362    break 2
22363  fi
22364done
22365  done
22366IFS=$as_save_IFS
22367
22368  ;;
22369esac
22370fi
22371gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22372if test -n "$gcc_cv_readelf"; then
22373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22374$as_echo "$gcc_cv_readelf" >&6; }
22375else
22376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22377$as_echo "no" >&6; }
22378fi
22379
22380
22381fi
22382fi
22383
22384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22385$as_echo_n "checking what readelf to use... " >&6; }
22386if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22387	# Single tree build which includes binutils.
22388	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22389$as_echo "newly built readelf" >&6; }
22390elif test x$gcc_cv_readelf = x; then
22391	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22392$as_echo "not found" >&6; }
22393else
22394	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22395$as_echo "$gcc_cv_readelf" >&6; }
22396fi
22397
22398# Figure out what assembler alignment features are present.
22399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22400$as_echo_n "checking assembler flags... " >&6; }
22401if test "${gcc_cv_as_flags+set}" = set; then :
22402  $as_echo_n "(cached) " >&6
22403else
22404   case "$target" in
22405  i[34567]86-*-linux*)
22406        gcc_cv_as_flags=--32
22407    ;;
22408  x86_64-*-linux-gnux32)
22409        gcc_cv_as_flags=--x32
22410    ;;
22411  x86_64-*-linux*)
22412        gcc_cv_as_flags=--64
22413    ;;
22414  powerpc*-*-darwin*)
22415        gcc_cv_as_flags="-arch ppc"
22416    ;;
22417  *)
22418    gcc_cv_as_flags=" "
22419    ;;
22420  esac
22421fi
22422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22423$as_echo "$gcc_cv_as_flags" >&6; }
22424
22425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22426$as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22427if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22428  $as_echo_n "(cached) " >&6
22429else
22430  gcc_cv_as_balign_and_p2align=no
22431    if test $in_tree_gas = yes; then
22432    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22433  then gcc_cv_as_balign_and_p2align=yes
22434fi
22435  elif test x$gcc_cv_as != x; then
22436    $as_echo '.balign 4
22437.p2align 2' > conftest.s
22438    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22439  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22440  (eval $ac_try) 2>&5
22441  ac_status=$?
22442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22443  test $ac_status = 0; }; }
22444    then
22445	gcc_cv_as_balign_and_p2align=yes
22446    else
22447      echo "configure: failed program was" >&5
22448      cat conftest.s >&5
22449    fi
22450    rm -f conftest.o conftest.s
22451  fi
22452fi
22453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22454$as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22455if test $gcc_cv_as_balign_and_p2align = yes; then
22456
22457$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22458
22459fi
22460
22461
22462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22463$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22464if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22465  $as_echo_n "(cached) " >&6
22466else
22467  gcc_cv_as_max_skip_p2align=no
22468    if test $in_tree_gas = yes; then
22469    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22470  then gcc_cv_as_max_skip_p2align=yes
22471fi
22472  elif test x$gcc_cv_as != x; then
22473    $as_echo '.p2align 4,,7' > conftest.s
22474    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22475  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22476  (eval $ac_try) 2>&5
22477  ac_status=$?
22478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22479  test $ac_status = 0; }; }
22480    then
22481	gcc_cv_as_max_skip_p2align=yes
22482    else
22483      echo "configure: failed program was" >&5
22484      cat conftest.s >&5
22485    fi
22486    rm -f conftest.o conftest.s
22487  fi
22488fi
22489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22490$as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22491if test $gcc_cv_as_max_skip_p2align = yes; then
22492
22493$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22494
22495fi
22496
22497
22498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22499$as_echo_n "checking assembler for .literal16... " >&6; }
22500if test "${gcc_cv_as_literal16+set}" = set; then :
22501  $as_echo_n "(cached) " >&6
22502else
22503  gcc_cv_as_literal16=no
22504    if test $in_tree_gas = yes; then
22505    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22506  then gcc_cv_as_literal16=yes
22507fi
22508  elif test x$gcc_cv_as != x; then
22509    $as_echo '.literal16' > conftest.s
22510    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22511  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22512  (eval $ac_try) 2>&5
22513  ac_status=$?
22514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22515  test $ac_status = 0; }; }
22516    then
22517	gcc_cv_as_literal16=yes
22518    else
22519      echo "configure: failed program was" >&5
22520      cat conftest.s >&5
22521    fi
22522    rm -f conftest.o conftest.s
22523  fi
22524fi
22525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22526$as_echo "$gcc_cv_as_literal16" >&6; }
22527if test $gcc_cv_as_literal16 = yes; then
22528
22529$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22530
22531fi
22532
22533
22534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22535$as_echo_n "checking assembler for working .subsection -1... " >&6; }
22536if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22537  $as_echo_n "(cached) " >&6
22538else
22539  gcc_cv_as_subsection_m1=no
22540    if test $in_tree_gas = yes; then
22541    if test $in_tree_gas_is_elf = yes \
22542  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22543  then gcc_cv_as_subsection_m1=yes
22544fi
22545  elif test x$gcc_cv_as != x; then
22546    $as_echo 'conftest_label1: .word 0
22547.subsection -1
22548conftest_label2: .word 0
22549.previous' > conftest.s
22550    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22551  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22552  (eval $ac_try) 2>&5
22553  ac_status=$?
22554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22555  test $ac_status = 0; }; }
22556    then
22557	if test x$gcc_cv_nm != x; then
22558    $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22559    $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22560    if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22561    then :
22562    else gcc_cv_as_subsection_m1=yes
22563    fi
22564    rm -f conftest.nm1 conftest.nm2
22565  fi
22566    else
22567      echo "configure: failed program was" >&5
22568      cat conftest.s >&5
22569    fi
22570    rm -f conftest.o conftest.s
22571  fi
22572fi
22573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22574$as_echo "$gcc_cv_as_subsection_m1" >&6; }
22575if test $gcc_cv_as_subsection_m1 = yes; then
22576
22577$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22578
22579fi
22580
22581
22582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22583$as_echo_n "checking assembler for .weak... " >&6; }
22584if test "${gcc_cv_as_weak+set}" = set; then :
22585  $as_echo_n "(cached) " >&6
22586else
22587  gcc_cv_as_weak=no
22588    if test $in_tree_gas = yes; then
22589    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22590  then gcc_cv_as_weak=yes
22591fi
22592  elif test x$gcc_cv_as != x; then
22593    $as_echo '	.weak foobar' > conftest.s
22594    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22595  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22596  (eval $ac_try) 2>&5
22597  ac_status=$?
22598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22599  test $ac_status = 0; }; }
22600    then
22601	gcc_cv_as_weak=yes
22602    else
22603      echo "configure: failed program was" >&5
22604      cat conftest.s >&5
22605    fi
22606    rm -f conftest.o conftest.s
22607  fi
22608fi
22609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22610$as_echo "$gcc_cv_as_weak" >&6; }
22611if test $gcc_cv_as_weak = yes; then
22612
22613$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22614
22615fi
22616
22617
22618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22619$as_echo_n "checking assembler for .weakref... " >&6; }
22620if test "${gcc_cv_as_weakref+set}" = set; then :
22621  $as_echo_n "(cached) " >&6
22622else
22623  gcc_cv_as_weakref=no
22624    if test $in_tree_gas = yes; then
22625    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22626  then gcc_cv_as_weakref=yes
22627fi
22628  elif test x$gcc_cv_as != x; then
22629    $as_echo '	.weakref foobar, barfnot' > conftest.s
22630    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22631  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22632  (eval $ac_try) 2>&5
22633  ac_status=$?
22634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22635  test $ac_status = 0; }; }
22636    then
22637	gcc_cv_as_weakref=yes
22638    else
22639      echo "configure: failed program was" >&5
22640      cat conftest.s >&5
22641    fi
22642    rm -f conftest.o conftest.s
22643  fi
22644fi
22645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22646$as_echo "$gcc_cv_as_weakref" >&6; }
22647if test $gcc_cv_as_weakref = yes; then
22648
22649$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22650
22651fi
22652
22653
22654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22655$as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22656if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22657  $as_echo_n "(cached) " >&6
22658else
22659  gcc_cv_as_nsubspa_comdat=no
22660    if test $in_tree_gas = yes; then
22661    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22662  then gcc_cv_as_nsubspa_comdat=yes
22663fi
22664  elif test x$gcc_cv_as != x; then
22665    $as_echo '	.SPACE $TEXT$
22666	.NSUBSPA $CODE$,COMDAT' > conftest.s
22667    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22668  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22669  (eval $ac_try) 2>&5
22670  ac_status=$?
22671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22672  test $ac_status = 0; }; }
22673    then
22674	gcc_cv_as_nsubspa_comdat=yes
22675    else
22676      echo "configure: failed program was" >&5
22677      cat conftest.s >&5
22678    fi
22679    rm -f conftest.o conftest.s
22680  fi
22681fi
22682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22683$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22684if test $gcc_cv_as_nsubspa_comdat = yes; then
22685
22686$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22687
22688fi
22689
22690
22691# .hidden needs to be supported in both the assembler and the linker,
22692# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22693# This is irritatingly difficult to feature test for; we have to check the
22694# date string after the version number.  If we've got an in-tree
22695# ld, we don't know its patchlevel version, so we set the baseline at 2.13
22696# to be safe.
22697# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22698case "${target}" in
22699  *-*-aix*)
22700    conftest_s='	.globl foobar,hidden'
22701    ;;
22702  *)
22703    conftest_s='	.hidden foobar
22704foobar:'
22705    ;;
22706esac
22707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22708$as_echo_n "checking assembler for .hidden... " >&6; }
22709if test "${gcc_cv_as_hidden+set}" = set; then :
22710  $as_echo_n "(cached) " >&6
22711else
22712  gcc_cv_as_hidden=no
22713    if test $in_tree_gas = yes; then
22714    if test $in_tree_gas_is_elf = yes \
22715  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22716  then gcc_cv_as_hidden=yes
22717fi
22718  elif test x$gcc_cv_as != x; then
22719    $as_echo "$conftest_s" > conftest.s
22720    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22721  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22722  (eval $ac_try) 2>&5
22723  ac_status=$?
22724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22725  test $ac_status = 0; }; }
22726    then
22727	gcc_cv_as_hidden=yes
22728    else
22729      echo "configure: failed program was" >&5
22730      cat conftest.s >&5
22731    fi
22732    rm -f conftest.o conftest.s
22733  fi
22734fi
22735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22736$as_echo "$gcc_cv_as_hidden" >&6; }
22737
22738
22739case "${target}" in
22740  *-*-darwin*)
22741    # Darwin as has some visibility support, though with a different syntax.
22742    gcc_cv_as_hidden=yes
22743    ;;
22744esac
22745
22746# gnu_indirect_function type is an extension proposed at
22747# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22748# selection of function implementation
22749# Check whether --enable-gnu-indirect-function was given.
22750if test "${enable_gnu_indirect_function+set}" = set; then :
22751  enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22752    yes | no) ;;
22753    *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22754Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22755  esac
22756else
22757  enable_gnu_indirect_function="$default_gnu_indirect_function"
22758fi
22759
22760
22761gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22762
22763cat >>confdefs.h <<_ACEOF
22764#define HAVE_GNU_INDIRECT_FUNCTION $gif
22765_ACEOF
22766
22767
22768
22769if test $in_tree_ld != yes ; then
22770  ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22771  if echo "$ld_ver" | grep GNU > /dev/null; then
22772    if test x"$ld_is_gold" = xyes; then
22773      # GNU gold --version looks like this:
22774      #
22775      # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22776      #
22777      # We extract the binutils version which is more familiar and specific
22778      # than the gold version.
22779      ld_vers=`echo $ld_ver | sed -n \
22780	  -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22781    else
22782      # GNU ld --version looks like this:
22783      #
22784      # GNU ld (GNU Binutils) 2.21.51.20110225
22785      ld_vers=`echo $ld_ver | sed -n \
22786	  -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22787    fi
22788    ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
22789    ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22790    ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22791    ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22792  else
22793    case "${target}" in
22794      *-*-solaris2*)
22795	# Solaris 2 ld -V output looks like this for a regular version:
22796	#
22797	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22798	#
22799	# but test versions add stuff at the end:
22800	#
22801	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22802	#
22803	# ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22804	# numbers can be used in ld.so.1 feature checks even if a different
22805	# linker is configured.
22806	ld_ver=`$gcc_cv_ld -V 2>&1`
22807	if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22808	  ld_vers=`echo $ld_ver | sed -n \
22809	    -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22810	  ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22811	  ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22812	fi
22813	;;
22814    esac
22815  fi
22816fi
22817
22818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22819$as_echo_n "checking linker for .hidden support... " >&6; }
22820if test "${gcc_cv_ld_hidden+set}" = set; then :
22821  $as_echo_n "(cached) " >&6
22822else
22823  if test $in_tree_ld = yes ; then
22824  gcc_cv_ld_hidden=no
22825  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 \
22826     && test $in_tree_ld_is_elf = yes; then
22827     gcc_cv_ld_hidden=yes
22828  fi
22829else
22830  gcc_cv_ld_hidden=yes
22831  if test x"$ld_is_gold" = xyes; then
22832    :
22833  elif echo "$ld_ver" | grep GNU > /dev/null; then
22834    case "${target}" in
22835      mmix-knuth-mmixware)
22836        # The linker emits by default mmo, not ELF, so "no" is appropriate.
22837	gcc_cv_ld_hidden=no
22838	;;
22839    esac
22840    if test 0"$ld_date" -lt 20020404; then
22841      if test -n "$ld_date"; then
22842	# If there was date string, but was earlier than 2002-04-04, fail
22843	gcc_cv_ld_hidden=no
22844      elif test -z "$ld_vers"; then
22845	# If there was no date string nor ld version number, something is wrong
22846	gcc_cv_ld_hidden=no
22847      else
22848	test -z "$ld_vers_patch" && ld_vers_patch=0
22849	if test "$ld_vers_major" -lt 2; then
22850	  gcc_cv_ld_hidden=no
22851	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22852	  gcc_cv_ld_hidden="no"
22853	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22854	  gcc_cv_ld_hidden=no
22855	fi
22856      fi
22857    fi
22858  else
22859    case "${target}" in
22860      *-*-aix[789]*)
22861        gcc_cv_ld_hidden=yes
22862        ;;
22863      *-*-darwin*)
22864	# Darwin ld has some visibility support.
22865	gcc_cv_ld_hidden=yes
22866        ;;
22867      hppa64*-*-hpux* | ia64*-*-hpux*)
22868	gcc_cv_ld_hidden=yes
22869	;;
22870      *-*-solaris2.1[0-9]*)
22871	# Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22872	# .symbolic was only added in Solaris 9 12/02.
22873        gcc_cv_ld_hidden=yes
22874	;;
22875      *)
22876	gcc_cv_ld_hidden=no
22877	;;
22878    esac
22879  fi
22880fi
22881fi
22882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22883$as_echo "$gcc_cv_ld_hidden" >&6; }
22884libgcc_visibility=no
22885
22886
22887if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22888  libgcc_visibility=yes
22889
22890$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22891
22892fi
22893
22894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22895$as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22896gcc_cv_ld_ro_rw_mix=unknown
22897if test $in_tree_ld = yes ; then
22898  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 \
22899     && test $in_tree_ld_is_elf = yes; then
22900    gcc_cv_ld_ro_rw_mix=read-write
22901  fi
22902elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22903  echo '.section myfoosect, "a"' > conftest1.s
22904  echo '.section myfoosect, "aw"' > conftest2.s
22905  echo '.byte 1' >> conftest2.s
22906  echo '.section myfoosect, "a"' > conftest3.s
22907  echo '.byte 0' >> conftest3.s
22908  if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22909     && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22910     && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22911     && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22912	conftest2.o conftest3.o > /dev/null 2>&1; then
22913    gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22914			 | sed -e '/myfoosect/!d' -e N`
22915    if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22916      if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22917	gcc_cv_ld_ro_rw_mix=read-only
22918      else
22919	gcc_cv_ld_ro_rw_mix=read-write
22920      fi
22921    fi
22922  fi
22923  rm -f conftest.* conftest[123].*
22924fi
22925if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22926
22927$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22928
22929fi
22930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22931$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22932
22933# Check whether --enable-initfini-array was given.
22934if test "${enable_initfini_array+set}" = set; then :
22935  enableval=$enable_initfini_array;
22936else
22937
22938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22939$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22940if test "${gcc_cv_initfini_array+set}" = set; then :
22941  $as_echo_n "(cached) " >&6
22942else
22943    if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22944    case "${target}" in
22945      ia64-*)
22946	if test "$cross_compiling" = yes; then :
22947  gcc_cv_initfini_array=no
22948else
22949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22950/* end confdefs.h.  */
22951
22952#ifndef __ELF__
22953#error Not an ELF OS
22954#endif
22955/* We turn on .preinit_array/.init_array/.fini_array support for ia64
22956   if it can be used.  */
22957static int x = -1;
22958int main (void) { return x; }
22959int foo (void) { x = 0; }
22960int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22961
22962_ACEOF
22963if ac_fn_cxx_try_run "$LINENO"; then :
22964  gcc_cv_initfini_array=yes
22965else
22966  gcc_cv_initfini_array=no
22967fi
22968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22969  conftest.$ac_objext conftest.beam conftest.$ac_ext
22970fi
22971;;
22972      *)
22973	gcc_cv_initfini_array=no
22974	if test $in_tree_ld = yes ; then
22975	  if test "$gcc_cv_gld_major_version" -eq 2 \
22976	     -a "$gcc_cv_gld_minor_version" -ge 22 \
22977	     -o "$gcc_cv_gld_major_version" -gt 2 \
22978	     && test $in_tree_ld_is_elf = yes; then
22979	    gcc_cv_initfini_array=yes
22980	  fi
22981	elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22982	  case $target:$gas in
22983	    *:yes)
22984	      sh_flags='"a"'
22985	      sh_type='%progbits'
22986	      ;;
22987	    i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22988	      sh_flags='"a"'
22989	      sh_type='@progbits'
22990	      ;;
22991	    sparc*-*-solaris2*:no)
22992	      sh_flags='#alloc'
22993	      sh_type='#progbits'
22994	      sh_quote='"'
22995	      ;;
22996	  esac
22997	  case "$target:$gnu_ld" in
22998	    *:yes)
22999	      cat > conftest.s <<EOF
23000.section .dtors,$sh_flags,$sh_type
23001.balign 4
23002.byte 'A', 'A', 'A', 'A'
23003.section .ctors,$sh_flags,$sh_type
23004.balign 4
23005.byte 'B', 'B', 'B', 'B'
23006.section .fini_array.65530,$sh_flags,$sh_type
23007.balign 4
23008.byte 'C', 'C', 'C', 'C'
23009.section .init_array.65530,$sh_flags,$sh_type
23010.balign 4
23011.byte 'D', 'D', 'D', 'D'
23012.section .dtors.64528,$sh_flags,$sh_type
23013.balign 4
23014.byte 'E', 'E', 'E', 'E'
23015.section .ctors.64528,$sh_flags,$sh_type
23016.balign 4
23017.byte 'F', 'F', 'F', 'F'
23018.section .fini_array.01005,$sh_flags,$sh_type
23019.balign 4
23020.byte 'G', 'G', 'G', 'G'
23021.section .init_array.01005,$sh_flags,$sh_type
23022.balign 4
23023.byte 'H', 'H', 'H', 'H'
23024.text
23025.globl _start
23026_start:
23027EOF
23028	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23029	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23030	         && $gcc_cv_objdump -s -j .init_array conftest \
23031		    | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23032	         && $gcc_cv_objdump -s -j .fini_array conftest \
23033		    | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23034	        gcc_cv_initfini_array=yes
23035	      fi
23036	      ;;
23037	    *-*-solaris2*:no)
23038	      # When Solaris ld added constructor priority support, it was
23039	      # decided to only handle .init_array.N/.fini_array.N since
23040	      # there was no need for backwards compatibility with
23041	      # .ctors.N/.dtors.N.  .ctors/.dtors remain as separate
23042	      # sections with correct execution order resp. to
23043	      # .init_array/.fini_array, while gld merges them into
23044	      # .init_array/.fini_array.
23045	      cat > conftest.s <<EOF
23046.section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23047.align 4
23048.byte 'C', 'C', 'C', 'C'
23049.section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23050.align 4
23051.byte 'D', 'D', 'D', 'D'
23052.section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23053.align 4
23054.byte 'G', 'G', 'G', 'G'
23055.section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23056.align 4
23057.byte 'H', 'H', 'H', 'H'
23058.text
23059.globl _start
23060_start:
23061EOF
23062	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23063	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23064	         && $gcc_cv_objdump -s -j .init_array conftest \
23065		    | grep HHHHDDDD > /dev/null 2>&1 \
23066	         && $gcc_cv_objdump -s -j .fini_array conftest \
23067		    | grep GGGGCCCC > /dev/null 2>&1; then
23068	        gcc_cv_initfini_array=yes
23069	      fi
23070	      ;;
23071	    esac
23072	  rm -f conftest conftest.*
23073	fi
23074	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23075/* end confdefs.h.  */
23076
23077#ifndef __ELF__
23078# error Not an ELF OS
23079#endif
23080#include <stdlib.h>
23081#if defined __GLIBC_PREREQ
23082# if __GLIBC_PREREQ (2, 4)
23083# else
23084#  error GLIBC 2.4 required
23085# endif
23086#else
23087# if defined __sun__ && defined __svr4__
23088   /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
23089# else
23090#  error The C library not known to support .init_array/.fini_array
23091# endif
23092#endif
23093
23094_ACEOF
23095if ac_fn_cxx_try_cpp "$LINENO"; then :
23096
23097else
23098  gcc_cv_initfini_array=no
23099fi
23100rm -f conftest.err conftest.$ac_ext;;
23101    esac
23102  else
23103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23104$as_echo_n "checking cross compile... guessing... " >&6; }
23105    gcc_cv_initfini_array=no
23106  fi
23107fi
23108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23109$as_echo "$gcc_cv_initfini_array" >&6; }
23110  enable_initfini_array=$gcc_cv_initfini_array
23111
23112fi
23113
23114
23115cat >>confdefs.h <<_ACEOF
23116#define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23117_ACEOF
23118
23119
23120
23121# Check if we have .[us]leb128, and support symbol arithmetic with it.
23122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23123$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23124if test "${gcc_cv_as_leb128+set}" = set; then :
23125  $as_echo_n "(cached) " >&6
23126else
23127  gcc_cv_as_leb128=no
23128    if test $in_tree_gas = yes; then
23129    if test $in_tree_gas_is_elf = yes \
23130  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23131  then gcc_cv_as_leb128=yes
23132fi
23133  elif test x$gcc_cv_as != x; then
23134    $as_echo '	.data
23135	.uleb128 L2 - L1
23136L1:
23137	.uleb128 1280
23138	.sleb128 -1010
23139L2:' > conftest.s
23140    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23141  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23142  (eval $ac_try) 2>&5
23143  ac_status=$?
23144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23145  test $ac_status = 0; }; }
23146    then
23147	# GAS versions before 2.11 do not support uleb128,
23148  # despite appearing to.
23149  # ??? There exists an elf-specific test that will crash
23150  # the assembler.  Perhaps it's better to figure out whether
23151  # arbitrary sections are supported and try the test.
23152  as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23153  if echo "$as_ver" | grep GNU > /dev/null; then
23154    as_vers=`echo $as_ver | sed -n \
23155	-e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23156    as_major=`expr "$as_vers" : '\([0-9]*\)'`
23157    as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23158    if test $as_major -eq 2 && test $as_minor -lt 11
23159    then :
23160    else gcc_cv_as_leb128=yes
23161    fi
23162  fi
23163    else
23164      echo "configure: failed program was" >&5
23165      cat conftest.s >&5
23166    fi
23167    rm -f conftest.o conftest.s
23168  fi
23169fi
23170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23171$as_echo "$gcc_cv_as_leb128" >&6; }
23172if test $gcc_cv_as_leb128 = yes; then
23173
23174$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23175
23176fi
23177if test $gcc_cv_as_leb128 != yes; then
23178
23179$as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23180
23181fi
23182
23183# Determine if an .eh_frame section is read-only.
23184gcc_fn_eh_frame_ro () {
23185  $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23186    $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23187    sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23188}
23189
23190# Check if we have assembler support for unwind directives.
23191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23192$as_echo_n "checking assembler for cfi directives... " >&6; }
23193if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23194  $as_echo_n "(cached) " >&6
23195else
23196  gcc_cv_as_cfi_directive=no
23197  if test x$gcc_cv_as != x; then
23198    $as_echo '	.text
23199	.cfi_startproc
23200	.cfi_offset 0, 0
23201	.cfi_same_value 1
23202	.cfi_def_cfa 1, 2
23203	.cfi_escape 1, 2, 3, 4, 5
23204	.cfi_endproc' > conftest.s
23205    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23206  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23207  (eval $ac_try) 2>&5
23208  ac_status=$?
23209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23210  test $ac_status = 0; }; }
23211    then
23212	case "$target" in
23213  *-*-solaris*)
23214    # If the linker used on Solaris (like Sun ld) isn't capable of merging
23215    # read-only and read-write sections, we need to make sure that the
23216    # assembler used emits read-write .eh_frame sections.
23217    if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23218      gcc_cv_as_cfi_directive=yes
23219    elif test "x$gcc_cv_objdump" = x; then
23220      # No objdump, err on the side of caution.
23221      gcc_cv_as_cfi_directive=no
23222    else
23223      if test x$gas = xyes; then
23224	as_32_opt="--32"
23225	as_64_opt="--64"
23226      else
23227	as_32_opt="-m32"
23228	as_64_opt="-m64"
23229      fi
23230      case "$target" in
23231	sparc*-*-solaris2.*)
23232	  # On Solaris/SPARC, .eh_frame sections should always be read-write.
23233	  if gcc_fn_eh_frame_ro $as_32_opt \
23234	     || gcc_fn_eh_frame_ro $as_64_opt; then
23235	    gcc_cv_as_cfi_directive=no
23236	  else
23237	    gcc_cv_as_cfi_directive=yes
23238	  fi
23239	  ;;
23240	i?86-*-solaris2.* | x86_64-*-solaris2.*)
23241	  # On Solaris/x86, make sure that GCC and assembler agree on using
23242	  # read-only .eh_frame sections for 64-bit.
23243	  if gcc_fn_eh_frame_ro $as_32_opt; then
23244	    gcc_cv_as_cfi_directive=no
23245	  elif gcc_fn_eh_frame_ro $as_64_opt; then
23246	    gcc_cv_as_cfi_directive=yes
23247	  else
23248	    gcc_cv_as_cfi_directive=no
23249	  fi
23250	  ;;
23251      esac
23252    fi
23253    ;;
23254  *-*-*)
23255    gcc_cv_as_cfi_directive=yes
23256    ;;
23257esac
23258    else
23259      echo "configure: failed program was" >&5
23260      cat conftest.s >&5
23261    fi
23262    rm -f conftest.o conftest.s
23263  fi
23264fi
23265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23266$as_echo "$gcc_cv_as_cfi_directive" >&6; }
23267
23268
23269if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23271$as_echo_n "checking assembler for working cfi advance... " >&6; }
23272if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23273  $as_echo_n "(cached) " >&6
23274else
23275  gcc_cv_as_cfi_advance_working=no
23276  if test x$gcc_cv_as != x; then
23277    $as_echo '	.text
23278	.cfi_startproc
23279	.cfi_adjust_cfa_offset 64
23280	.skip 75040, 0
23281	.cfi_adjust_cfa_offset 128
23282	.cfi_endproc' > 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
23291if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23292    | grep 'DW_CFA_advance_loc[24]:[ 	][ 	]*75040[ 	]' >/dev/null; then
23293   gcc_cv_as_cfi_advance_working=yes
23294fi
23295
23296    else
23297      echo "configure: failed program was" >&5
23298      cat conftest.s >&5
23299    fi
23300    rm -f conftest.o conftest.s
23301  fi
23302fi
23303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23304$as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23305
23306
23307else
23308  # no objdump, err on the side of caution
23309  gcc_cv_as_cfi_advance_working=no
23310fi
23311
23312
23313cat >>confdefs.h <<_ACEOF
23314#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23315       && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23316_ACEOF
23317
23318
23319
23320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23321$as_echo_n "checking assembler for cfi personality directive... " >&6; }
23322if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23323  $as_echo_n "(cached) " >&6
23324else
23325  gcc_cv_as_cfi_personality_directive=no
23326  if test x$gcc_cv_as != x; then
23327    $as_echo '	.text
23328	.cfi_startproc
23329	.cfi_personality 0, symbol
23330	.cfi_endproc' > conftest.s
23331    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23332  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23333  (eval $ac_try) 2>&5
23334  ac_status=$?
23335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23336  test $ac_status = 0; }; }
23337    then
23338	gcc_cv_as_cfi_personality_directive=yes
23339    else
23340      echo "configure: failed program was" >&5
23341      cat conftest.s >&5
23342    fi
23343    rm -f conftest.o conftest.s
23344  fi
23345fi
23346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23347$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23348
23349
23350
23351cat >>confdefs.h <<_ACEOF
23352#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23353    then echo 1; else echo 0; fi`
23354_ACEOF
23355
23356
23357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23358$as_echo_n "checking assembler for cfi sections directive... " >&6; }
23359if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23360  $as_echo_n "(cached) " >&6
23361else
23362  gcc_cv_as_cfi_sections_directive=no
23363  if test x$gcc_cv_as != x; then
23364    $as_echo '	.text
23365	.cfi_sections .debug_frame, .eh_frame
23366	.cfi_startproc
23367	.cfi_endproc' > conftest.s
23368    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23369  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23370  (eval $ac_try) 2>&5
23371  ac_status=$?
23372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23373  test $ac_status = 0; }; }
23374    then
23375	case $target_os in
23376  win32 | pe | cygwin* | mingw32*)
23377    # Need to check that we generated the correct relocation for the
23378    # .debug_frame section.  This was fixed for binutils 2.21.
23379    gcc_cv_as_cfi_sections_directive=no
23380    if test "x$gcc_cv_objdump" != x; then
23381     if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23382	grep secrel > /dev/null; then
23383      gcc_cv_as_cfi_sections_directive=yes
23384     fi
23385    fi
23386    ;;
23387  *)
23388    gcc_cv_as_cfi_sections_directive=yes
23389    ;;
23390esac
23391    else
23392      echo "configure: failed program was" >&5
23393      cat conftest.s >&5
23394    fi
23395    rm -f conftest.o conftest.s
23396  fi
23397fi
23398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23399$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23400
23401
23402
23403
23404cat >>confdefs.h <<_ACEOF
23405#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23406    then echo 1; else echo 0; fi`
23407_ACEOF
23408
23409
23410# GAS versions up to and including 2.11.0 may mis-optimize
23411# .eh_frame data.
23412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23413$as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23414if test "${gcc_cv_as_eh_frame+set}" = set; then :
23415  $as_echo_n "(cached) " >&6
23416else
23417  gcc_cv_as_eh_frame=no
23418    if test $in_tree_gas = yes; then
23419    if test $in_tree_gas_is_elf = yes \
23420  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23421  then gcc_cv_as_eh_frame=yes
23422fi
23423  elif test x$gcc_cv_as != x; then
23424    $as_echo '	.text
23425.LFB1:
23426	.4byte	0
23427.L1:
23428	.4byte	0
23429.LFE1:
23430	.section	.eh_frame,"aw",@progbits
23431__FRAME_BEGIN__:
23432	.4byte	.LECIE1-.LSCIE1
23433.LSCIE1:
23434	.4byte	0x0
23435	.byte	0x1
23436	.ascii "z\0"
23437	.byte	0x1
23438	.byte	0x78
23439	.byte	0x1a
23440	.byte	0x0
23441	.byte	0x4
23442	.4byte	1
23443	.p2align 1
23444.LECIE1:
23445.LSFDE1:
23446	.4byte	.LEFDE1-.LASFDE1
23447.LASFDE1:
23448	.4byte	.LASFDE1-__FRAME_BEGIN__
23449	.4byte	.LFB1
23450	.4byte	.LFE1-.LFB1
23451	.byte	0x4
23452	.4byte	.LFE1-.LFB1
23453	.byte	0x4
23454	.4byte	.L1-.LFB1
23455.LEFDE1:' > conftest.s
23456    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23457  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23458  (eval $ac_try) 2>&5
23459  ac_status=$?
23460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23461  test $ac_status = 0; }; }
23462    then
23463	  cat > conftest.lit <<EOF
23464 0000 10000000 00000000 017a0001 781a0004  .........z..x...
23465 0010 01000000 12000000 18000000 00000000  ................
23466 0020 08000000 04080000 0044               .........D      
23467EOF
23468cat > conftest.big <<EOF
23469 0000 00000010 00000000 017a0001 781a0004  .........z..x...
23470 0010 00000001 00000012 00000018 00000000  ................
23471 0020 00000008 04000000 0844               .........D      
23472EOF
23473  # If the assembler didn't choke, and we can objdump,
23474  # and we got the correct data, then succeed.
23475  # The text in the here-document typically retains its unix-style line
23476  # endings, while the output of objdump will use host line endings.
23477  # Therefore, use diff -b for the comparisons.
23478  if test x$gcc_cv_objdump != x \
23479  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23480     | tail -3 > conftest.got \
23481  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23482    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23483  then
23484    gcc_cv_as_eh_frame=yes
23485  elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23486  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23487  (eval $ac_try) 2>&5
23488  ac_status=$?
23489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23490  test $ac_status = 0; }; }; then
23491    gcc_cv_as_eh_frame=buggy
23492  else
23493    # Uh oh, what do we do now?
23494    gcc_cv_as_eh_frame=no
23495  fi
23496    else
23497      echo "configure: failed program was" >&5
23498      cat conftest.s >&5
23499    fi
23500    rm -f conftest.o conftest.s
23501  fi
23502fi
23503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23504$as_echo "$gcc_cv_as_eh_frame" >&6; }
23505
23506
23507
23508if test $gcc_cv_as_eh_frame = buggy; then
23509
23510$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23511
23512fi
23513
23514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23515$as_echo_n "checking assembler for section merging support... " >&6; }
23516if test "${gcc_cv_as_shf_merge+set}" = set; then :
23517  $as_echo_n "(cached) " >&6
23518else
23519  gcc_cv_as_shf_merge=no
23520    if test $in_tree_gas = yes; then
23521    if test $in_tree_gas_is_elf = yes \
23522  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23523  then gcc_cv_as_shf_merge=yes
23524fi
23525  elif test x$gcc_cv_as != x; then
23526    $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23527    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23528  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23529  (eval $ac_try) 2>&5
23530  ac_status=$?
23531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23532  test $ac_status = 0; }; }
23533    then
23534	gcc_cv_as_shf_merge=yes
23535    else
23536      echo "configure: failed program was" >&5
23537      cat conftest.s >&5
23538    fi
23539    rm -f conftest.o conftest.s
23540  fi
23541fi
23542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23543$as_echo "$gcc_cv_as_shf_merge" >&6; }
23544
23545
23546if test $gcc_cv_as_shf_merge = no; then
23547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23548$as_echo_n "checking assembler for section merging support... " >&6; }
23549if test "${gcc_cv_as_shf_merge+set}" = set; then :
23550  $as_echo_n "(cached) " >&6
23551else
23552  gcc_cv_as_shf_merge=no
23553    if test $in_tree_gas = yes; then
23554    if test $in_tree_gas_is_elf = yes \
23555  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23556  then gcc_cv_as_shf_merge=yes
23557fi
23558  elif test x$gcc_cv_as != x; then
23559    $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23560    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23561  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23562  (eval $ac_try) 2>&5
23563  ac_status=$?
23564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23565  test $ac_status = 0; }; }
23566    then
23567	gcc_cv_as_shf_merge=yes
23568    else
23569      echo "configure: failed program was" >&5
23570      cat conftest.s >&5
23571    fi
23572    rm -f conftest.o conftest.s
23573  fi
23574fi
23575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23576$as_echo "$gcc_cv_as_shf_merge" >&6; }
23577
23578
23579fi
23580case "$target" in
23581  i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23582    # SHF_MERGE support in Solaris 10/x86 ld is broken.
23583    if test x"$gnu_ld" = xno; then
23584      gcc_cv_as_shf_merge=no
23585    fi
23586    ;;
23587esac
23588
23589cat >>confdefs.h <<_ACEOF
23590#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23591_ACEOF
23592
23593
23594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23595$as_echo_n "checking assembler for stabs directive... " >&6; }
23596if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23597  $as_echo_n "(cached) " >&6
23598else
23599  gcc_cv_as_stabs_directive=no
23600  if test x$gcc_cv_as != x; then
23601    $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23602    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23603  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23604  (eval $ac_try) 2>&5
23605  ac_status=$?
23606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23607  test $ac_status = 0; }; }
23608    then
23609	gcc_cv_as_stabs_directive=yes
23610    else
23611      echo "configure: failed program was" >&5
23612      cat conftest.s >&5
23613    fi
23614    rm -f conftest.o conftest.s
23615  fi
23616fi
23617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23618$as_echo "$gcc_cv_as_stabs_directive" >&6; }
23619if test $gcc_cv_as_stabs_directive = yes; then
23620
23621$as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23622
23623fi
23624
23625
23626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23627$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23628if test "${gcc_cv_as_comdat_group+set}" = set; then :
23629  $as_echo_n "(cached) " >&6
23630else
23631  gcc_cv_as_comdat_group=no
23632    if test $in_tree_gas = yes; then
23633    if test $in_tree_gas_is_elf = yes \
23634  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23635  then gcc_cv_as_comdat_group=yes
23636fi
23637  elif test x$gcc_cv_as != x; then
23638    $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23639    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23640  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23641  (eval $ac_try) 2>&5
23642  ac_status=$?
23643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23644  test $ac_status = 0; }; }
23645    then
23646	gcc_cv_as_comdat_group=yes
23647    else
23648      echo "configure: failed program was" >&5
23649      cat conftest.s >&5
23650    fi
23651    rm -f conftest.o conftest.s
23652  fi
23653fi
23654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23655$as_echo "$gcc_cv_as_comdat_group" >&6; }
23656
23657
23658if test $gcc_cv_as_comdat_group = yes; then
23659  gcc_cv_as_comdat_group_percent=no
23660  gcc_cv_as_comdat_group_group=no
23661else
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23663$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23664if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23665  $as_echo_n "(cached) " >&6
23666else
23667  gcc_cv_as_comdat_group_percent=no
23668    if test $in_tree_gas = yes; then
23669    if test $in_tree_gas_is_elf = yes \
23670  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23671  then gcc_cv_as_comdat_group_percent=yes
23672fi
23673  elif test x$gcc_cv_as != x; then
23674    $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23675    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23676  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23677  (eval $ac_try) 2>&5
23678  ac_status=$?
23679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23680  test $ac_status = 0; }; }
23681    then
23682	gcc_cv_as_comdat_group_percent=yes
23683    else
23684      echo "configure: failed program was" >&5
23685      cat conftest.s >&5
23686    fi
23687    rm -f conftest.o conftest.s
23688  fi
23689fi
23690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23691$as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23692
23693
23694 if test $gcc_cv_as_comdat_group_percent = yes; then
23695   gcc_cv_as_comdat_group_group=no
23696 else
23697   case "${target}" in
23698     # Sun as uses a completely different syntax.
23699     *-*-solaris2*)
23700       case "${target}" in
23701         sparc*-*-solaris2*)
23702           conftest_s='
23703               .group foo,".text%foo",#comdat
23704               .section ".text%foo", #alloc,#execinstr,#progbits
23705               .globl foo
23706             foo:
23707	     '
23708           ;;
23709         i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23710	   conftest_s='
23711               .group foo,.text%foo,#comdat
23712               .section .text%foo, "ax", @progbits
23713               .globl  foo
23714             foo:
23715	     '
23716	   ;;
23717       esac
23718       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23719$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23720if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23721  $as_echo_n "(cached) " >&6
23722else
23723  gcc_cv_as_comdat_group_group=no
23724  if test x$gcc_cv_as != x; then
23725    $as_echo "$conftest_s" > conftest.s
23726    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23727  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23728  (eval $ac_try) 2>&5
23729  ac_status=$?
23730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23731  test $ac_status = 0; }; }
23732    then
23733	gcc_cv_as_comdat_group_group=yes
23734    else
23735      echo "configure: failed program was" >&5
23736      cat conftest.s >&5
23737    fi
23738    rm -f conftest.o conftest.s
23739  fi
23740fi
23741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23742$as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23743
23744
23745       ;;
23746   esac
23747   if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23748     gcc_cv_as_comdat_group_group=no
23749   fi
23750 fi
23751fi
23752if test x"$ld_is_gold" = xyes; then
23753  comdat_group=yes
23754elif test $in_tree_ld = yes ; then
23755  comdat_group=no
23756  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 \
23757     && test $in_tree_ld_is_elf = yes; then
23758     comdat_group=yes
23759  fi
23760elif echo "$ld_ver" | grep GNU > /dev/null; then
23761  comdat_group=yes
23762  if test 0"$ld_date" -lt 20050308; then
23763    if test -n "$ld_date"; then
23764      # If there was date string, but was earlier than 2005-03-08, fail
23765      comdat_group=no
23766    elif test "$ld_vers_major" -lt 2; then
23767      comdat_group=no
23768    elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23769      comdat_group=no
23770    fi
23771  fi
23772else
23773  case "${target}" in
23774    *-*-solaris2.1[1-9]*)
23775      comdat_group=no
23776      # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23777      # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23778      # version 1.688.
23779      #
23780      # If using Sun as for COMDAT group as emitted by GCC, one needs at
23781      # least ld version 1.2267.
23782      if test "$ld_vers_major" -gt 1; then
23783        comdat_group=yes
23784      elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23785	comdat_group=yes
23786      elif test "$ld_vers_minor" -ge 2267; then
23787	comdat_group=yes
23788      fi
23789      ;;
23790    *)
23791      # Assume linkers other than GNU ld don't support COMDAT group.
23792      comdat_group=no
23793      ;;
23794  esac
23795fi
23796# Allow overriding the automatic COMDAT group tests above.
23797# Check whether --enable-comdat was given.
23798if test "${enable_comdat+set}" = set; then :
23799  enableval=$enable_comdat; comdat_group="$enable_comdat"
23800fi
23801
23802if test $comdat_group = no; then
23803  gcc_cv_as_comdat_group=no
23804  gcc_cv_as_comdat_group_percent=no
23805  gcc_cv_as_comdat_group_group=no
23806fi
23807
23808cat >>confdefs.h <<_ACEOF
23809#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23810    || test $gcc_cv_as_comdat_group_percent = yes \
23811    || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23812_ACEOF
23813
23814
23815# Restrict this test to Solaris/x86: other targets define this statically.
23816case "${target}" in
23817  i?86-*-solaris2* | x86_64-*-solaris2*)
23818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
23819$as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
23820    if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
23821      hidden_linkonce=yes
23822    else
23823      case "${target}" in
23824	# Full support for hidden thunks in linkonce sections only appeared in
23825	# Solaris 11/OpenSolaris.
23826        *-*-solaris2.1[1-9]*)
23827	  hidden_linkonce=yes
23828	  ;;
23829	*)
23830	  hidden_linkonce=no
23831	  ;;
23832      esac
23833    fi
23834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
23835$as_echo "$hidden_linkonce" >&6; }
23836
23837cat >>confdefs.h <<_ACEOF
23838#define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
23839_ACEOF
23840
23841  ;;
23842esac
23843
23844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23845$as_echo_n "checking assembler for line table discriminator support... " >&6; }
23846if test "${gcc_cv_as_discriminator+set}" = set; then :
23847  $as_echo_n "(cached) " >&6
23848else
23849  gcc_cv_as_discriminator=no
23850    if test $in_tree_gas = yes; then
23851    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23852  then gcc_cv_as_discriminator=yes
23853fi
23854  elif test x$gcc_cv_as != x; then
23855    $as_echo '	.text
23856	.file 1 "conf.c"
23857	.loc 1 1 0 discriminator 1' > conftest.s
23858    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23859  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23860  (eval $ac_try) 2>&5
23861  ac_status=$?
23862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23863  test $ac_status = 0; }; }
23864    then
23865	gcc_cv_as_discriminator=yes
23866    else
23867      echo "configure: failed program was" >&5
23868      cat conftest.s >&5
23869    fi
23870    rm -f conftest.o conftest.s
23871  fi
23872fi
23873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23874$as_echo "$gcc_cv_as_discriminator" >&6; }
23875if test $gcc_cv_as_discriminator = yes; then
23876
23877$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23878
23879fi
23880
23881
23882# Thread-local storage - the check is heavily parameterized.
23883conftest_s=
23884tls_first_major=
23885tls_first_minor=
23886tls_as_opt=
23887case "$target" in
23888  alpha*-*-*)
23889    conftest_s='
23890	.section ".tdata","awT",@progbits
23891foo:	.long	25
23892	.text
23893	ldq	$27,__tls_get_addr($29)		!literal!1
23894	lda	$16,foo($29)			!tlsgd!1
23895	jsr	$26,($27),__tls_get_addr	!lituse_tlsgd!1
23896	ldq	$27,__tls_get_addr($29)		!literal!2
23897	lda	$16,foo($29)			!tlsldm!2
23898	jsr	$26,($27),__tls_get_addr	!lituse_tlsldm!2
23899	ldq	$1,foo($29)			!gotdtprel
23900	ldah	$2,foo($29)			!dtprelhi
23901	lda	$3,foo($2)			!dtprello
23902	lda	$4,foo($29)			!dtprel
23903	ldq	$1,foo($29)			!gottprel
23904	ldah	$2,foo($29)			!tprelhi
23905	lda	$3,foo($2)			!tprello
23906	lda	$4,foo($29)			!tprel'
23907	tls_first_major=2
23908	tls_first_minor=13
23909	tls_as_opt=--fatal-warnings
23910	;;
23911  arc*-*-*)
23912    conftest_s='
23913	add_s r0,r0, @foo@tpoff'
23914	tls_first_major=2
23915	tls_first_minor=23
23916	;;
23917  cris-*-*|crisv32-*-*)
23918    conftest_s='
23919	.section ".tdata","awT",@progbits
23920x:      .long   25
23921        .text
23922	move.d x:IE,$r10
23923	nop'
23924	tls_first_major=2
23925	tls_first_minor=20
23926	tls_as_opt=--fatal-warnings
23927	;;
23928  frv*-*-*)
23929    conftest_s='
23930	.section ".tdata","awT",@progbits
23931x:      .long   25
23932        .text
23933        call    #gettlsoff(x)'
23934	tls_first_major=2
23935	tls_first_minor=14
23936	;;
23937  hppa*-*-linux*)
23938    conftest_s='
23939t1:	.reg	%r20
23940t2:	.reg	%r21
23941gp:	.reg	%r19
23942	.section ".tdata","awT",@progbits
23943foo:	.long	25
23944	.text
23945	.align	4
23946	addil LT%foo-$tls_gdidx$,gp
23947	ldo RT%foo-$tls_gdidx$(%r1),%arg0
23948	b __tls_get_addr
23949	nop
23950	addil LT%foo-$tls_ldidx$,gp
23951	b __tls_get_addr
23952	ldo RT%foo-$tls_ldidx$(%r1),%arg0
23953	addil LR%foo-$tls_dtpoff$,%ret0
23954	ldo RR%foo-$tls_dtpoff$(%r1),%t1
23955	mfctl %cr27,%t1
23956	addil LT%foo-$tls_ieoff$,gp
23957	ldw RT%foo-$tls_ieoff$(%r1),%t2
23958	add %t1,%t2,%t3
23959	mfctl %cr27,%t1
23960	addil LR%foo-$tls_leoff$,%t1
23961	ldo RR%foo-$tls_leoff$(%r1),%t2'
23962	tls_first_major=2
23963	tls_first_minor=15
23964	tls_as_opt=--fatal-warnings
23965	;;
23966  arm*-*-*)
23967    conftest_s='
23968	.section ".tdata","awT",%progbits
23969foo:	.long	25
23970	.text
23971.word foo(gottpoff)
23972.word foo(tpoff)
23973.word foo(tlsgd)
23974.word foo(tlsldm)
23975.word foo(tlsldo)'
23976	tls_first_major=2
23977	tls_first_minor=17
23978	;;
23979  i[34567]86-*-* | x86_64-*-*)
23980    case "$target" in
23981      i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23982	on_solaris=yes
23983        ;;
23984      *)
23985	on_solaris=no
23986	;;
23987    esac
23988    if test x$on_solaris = xyes && test x$gas_flag = xno; then
23989      conftest_s='
23990	.section .tdata,"awt",@progbits'
23991      tls_first_major=0
23992      tls_first_minor=0
23993      tls_section_flag=t
23994
23995$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23996
23997    else
23998      conftest_s='
23999	.section ".tdata","awT",@progbits'
24000      tls_first_major=2
24001      tls_first_minor=14
24002      tls_section_flag=T
24003      tls_as_opt="--fatal-warnings"
24004    fi
24005    case "$target" in
24006      i[34567]86-*-*)
24007	conftest_s="$conftest_s
24008foo:	.long	25
24009	.text
24010	movl	%gs:0, %eax
24011	leal	foo@tlsgd(,%ebx,1), %eax
24012	leal	foo@tlsldm(%ebx), %eax
24013	leal	foo@dtpoff(%eax), %edx
24014	movl	foo@gottpoff(%ebx), %eax
24015	subl	foo@gottpoff(%ebx), %eax
24016	addl	foo@gotntpoff(%ebx), %eax
24017	movl	foo@indntpoff, %eax
24018	movl	\$foo@tpoff, %eax
24019	subl	\$foo@tpoff, %eax
24020	leal	foo@ntpoff(%ecx), %eax"
24021	;;
24022      x86_64-*-*)
24023	if test x$on_solaris = xyes; then
24024	  case $gas_flag in
24025	    yes) tls_as_opt="$tls_as_opt --64" ;;
24026	    no)	 tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24027	  esac
24028	fi
24029	conftest_s="$conftest_s
24030foo:	.long	25
24031	.text
24032	movq	%fs:0, %rax
24033	leaq	foo@tlsgd(%rip), %rdi
24034	leaq	foo@tlsld(%rip), %rdi
24035	leaq	foo@dtpoff(%rax), %rdx
24036	movq	foo@gottpoff(%rip), %rax
24037	movq	\$foo@tpoff, %rax"
24038        ;;
24039    esac
24040    ;;
24041  ia64-*-*)
24042    conftest_s='
24043	.section ".tdata","awT",@progbits
24044foo:	data8	25
24045	.text
24046	addl	r16 = @ltoff(@dtpmod(foo#)), gp
24047	addl	r17 = @ltoff(@dtprel(foo#)), gp
24048	addl	r18 = @ltoff(@tprel(foo#)), gp
24049	addl	r19 = @dtprel(foo#), gp
24050	adds	r21 = @dtprel(foo#), r13
24051	movl	r23 = @dtprel(foo#)
24052	addl	r20 = @tprel(foo#), gp
24053	adds	r22 = @tprel(foo#), r13
24054	movl	r24 = @tprel(foo#)'
24055	tls_first_major=2
24056	tls_first_minor=13
24057	tls_as_opt=--fatal-warnings
24058	;;
24059  microblaze*-*-*)
24060    conftest_s='
24061	.section .tdata,"awT",@progbits
24062x:
24063	.word 2
24064	.text
24065	addik r5,r20,x@TLSGD
24066	addik r5,r20,x@TLSLDM'
24067	tls_first_major=2
24068	tls_first_minor=20
24069	tls_as_opt='--fatal-warnings'
24070	;;
24071  mips*-*-*)
24072    conftest_s='
24073	.section .tdata,"awT",@progbits
24074x:
24075	.word 2
24076	.text
24077	addiu $4, $28, %tlsgd(x)
24078	addiu $4, $28, %tlsldm(x)
24079	lui $4, %dtprel_hi(x)
24080	addiu $4, $4, %dtprel_lo(x)
24081	lw $4, %gottprel(x)($28)
24082	lui $4, %tprel_hi(x)
24083	addiu $4, $4, %tprel_lo(x)'
24084	tls_first_major=2
24085	tls_first_minor=16
24086	tls_as_opt='-32 --fatal-warnings'
24087	;;
24088  m68k-*-*)
24089    conftest_s='
24090	.section .tdata,"awT",@progbits
24091x:
24092	.word 2
24093	.text
24094foo:
24095	move.l x@TLSGD(%a5),%a0
24096	move.l x@TLSLDM(%a5),%a0
24097	move.l x@TLSLDO(%a5),%a0
24098	move.l x@TLSIE(%a5),%a0
24099	move.l x@TLSLE(%a5),%a0'
24100	tls_first_major=2
24101	tls_first_minor=19
24102	tls_as_opt='--fatal-warnings'
24103	;;
24104  nios2-*-*)
24105      conftest_s='
24106	.section ".tdata","awT",@progbits'
24107	tls_first_major=2
24108	tls_first_minor=23
24109	tls_as_opt="--fatal-warnings"
24110	;;
24111  aarch64*-*-*)
24112    conftest_s='
24113	.section ".tdata","awT",%progbits
24114foo:	.long	25
24115	.text
24116	adrp  x0, :tlsgd:x
24117	add   x0, x0, #:tlsgd_lo12:x
24118        bl    __tls_get_addr
24119	nop'
24120	tls_first_major=2
24121	tls_first_minor=20
24122	tls_as_opt='--fatal-warnings'
24123	;;
24124  powerpc-ibm-aix*)
24125    conftest_s='
24126	.extern __get_tpointer
24127	.toc
24128LC..1:
24129	.tc a[TC],a[TL]@le
24130	.csect .text[PR]
24131.tlstest:
24132	lwz 9,LC..1(2)
24133	bla __get_tpointer
24134	lwzx 3,9,3
24135	.globl a
24136	.csect a[TL],4
24137a:
24138	.space 4'
24139	tls_first_major=0
24140	tls_first_minor=0
24141	;;
24142  powerpc64*-*-*)
24143    conftest_s='
24144	.section ".tdata","awT",@progbits
24145	.align 3
24146ld0:	.space 8
24147ld1:	.space 8
24148x1:	.space 8
24149x2:	.space 8
24150x3:	.space 8
24151	.text
24152	addi 3,2,ld0@got@tlsgd
24153	bl .__tls_get_addr
24154	nop
24155	addi 3,2,ld1@toc
24156	bl .__tls_get_addr
24157	nop
24158	addi 3,2,x1@got@tlsld
24159	bl .__tls_get_addr
24160	nop
24161	addi 9,3,x1@dtprel
24162	bl .__tls_get_addr
24163	nop
24164	addis 9,3,x2@dtprel@ha
24165	addi 9,9,x2@dtprel@l
24166	bl .__tls_get_addr
24167	nop
24168	ld 9,x3@got@dtprel(2)
24169	add 9,9,3
24170	bl .__tls_get_addr
24171	nop'
24172	tls_first_major=2
24173	tls_first_minor=14
24174	tls_as_opt="-a64 --fatal-warnings"
24175	;;
24176  powerpc*-*-*)
24177    conftest_s='
24178	.section ".tdata","awT",@progbits
24179	.align 2
24180ld0:	.space 4
24181ld1:	.space 4
24182x1:	.space 4
24183x2:	.space 4
24184x3:	.space 4
24185	.text
24186	addi 3,31,ld0@got@tlsgd
24187	bl __tls_get_addr
24188	addi 3,31,x1@got@tlsld
24189	bl __tls_get_addr
24190	addi 9,3,x1@dtprel
24191	addis 9,3,x2@dtprel@ha
24192	addi 9,9,x2@dtprel@l
24193	lwz 9,x3@got@tprel(31)
24194	add 9,9,x@tls
24195	addi 9,2,x1@tprel
24196	addis 9,2,x2@tprel@ha
24197	addi 9,9,x2@tprel@l'
24198	tls_first_major=2
24199	tls_first_minor=14
24200	tls_as_opt="-a32 --fatal-warnings"
24201	;;
24202  riscv*-*-*)
24203    conftest_s='
24204	.section .tdata,"awT",@progbits
24205x:	.word 2
24206	.text
24207	la.tls.gd a0,x
24208        call __tls_get_addr'
24209	tls_first_major=2
24210	tls_first_minor=21
24211	tls_as_opt='--fatal-warnings'
24212	;;
24213  s390-*-*)
24214    conftest_s='
24215	.section ".tdata","awT",@progbits
24216foo:	.long	25
24217	.text
24218	.long	foo@TLSGD
24219	.long	foo@TLSLDM
24220	.long	foo@DTPOFF
24221	.long	foo@NTPOFF
24222	.long	foo@GOTNTPOFF
24223	.long	foo@INDNTPOFF
24224	l	%r1,foo@GOTNTPOFF(%r12)
24225	l	%r1,0(%r1):tls_load:foo
24226	bas	%r14,0(%r1,%r13):tls_gdcall:foo
24227	bas	%r14,0(%r1,%r13):tls_ldcall:foo'
24228	tls_first_major=2
24229	tls_first_minor=14
24230	tls_as_opt="-m31 --fatal-warnings"
24231	;;
24232  s390x-*-*)
24233    conftest_s='
24234	.section ".tdata","awT",@progbits
24235foo:	.long	25
24236	.text
24237	.quad	foo@TLSGD
24238	.quad	foo@TLSLDM
24239	.quad	foo@DTPOFF
24240	.quad	foo@NTPOFF
24241	.quad	foo@GOTNTPOFF
24242	lg	%r1,foo@GOTNTPOFF(%r12)
24243	larl	%r1,foo@INDNTPOFF
24244	brasl	%r14,__tls_get_offset@PLT:tls_gdcall:foo
24245	brasl	%r14,__tls_get_offset@PLT:tls_ldcall:foo'
24246	tls_first_major=2
24247	tls_first_minor=14
24248	tls_as_opt="-m64 -Aesame --fatal-warnings"
24249	;;
24250  sh-*-* | sh[123456789lbe]*-*-*)
24251    conftest_s='
24252	.section ".tdata","awT",@progbits
24253foo:	.long	25
24254	.text
24255	.long	foo@TLSGD
24256	.long	foo@TLSLDM
24257	.long	foo@DTPOFF
24258	.long	foo@GOTTPOFF
24259	.long	foo@TPOFF'
24260	tls_first_major=2
24261	tls_first_minor=13
24262	tls_as_opt=--fatal-warnings
24263	;;
24264  sparc*-*-*)
24265    case "$target" in
24266      sparc*-sun-solaris2.*)
24267	on_solaris=yes
24268	;;
24269      *)
24270	on_solaris=no
24271	;;
24272    esac
24273    if test x$on_solaris = xyes && test x$gas_flag = xno; then
24274      conftest_s='
24275	.section ".tdata",#alloc,#write,#tls'
24276	tls_first_major=0
24277	tls_first_minor=0
24278    else
24279      conftest_s='
24280	.section ".tdata","awT",@progbits'
24281	tls_first_major=2
24282	tls_first_minor=14
24283	tls_as_opt="-32 --fatal-warnings"
24284    fi
24285    conftest_s="$conftest_s
24286foo:	.long	25
24287	.text
24288	sethi	%tgd_hi22(foo), %o0
24289	add	%o0, %tgd_lo10(foo), %o1
24290	add	%l7, %o1, %o0, %tgd_add(foo)
24291	call	__tls_get_addr, %tgd_call(foo)
24292	sethi	%tldm_hi22(foo), %l1
24293	add	%l1, %tldm_lo10(foo), %l2
24294	add	%l7, %l2, %o0, %tldm_add(foo)
24295	call	__tls_get_addr, %tldm_call(foo)
24296	sethi	%tldo_hix22(foo), %l3
24297	xor	%l3, %tldo_lox10(foo), %l4
24298	add	%o0, %l4, %l5, %tldo_add(foo)
24299	sethi	%tie_hi22(foo), %o3
24300	add	%o3, %tie_lo10(foo), %o3
24301	ld	[%l7 + %o3], %o2, %tie_ld(foo)
24302	add	%g7, %o2, %o4, %tie_add(foo)
24303	sethi	%tle_hix22(foo), %l1
24304	xor	%l1, %tle_lox10(foo), %o5
24305	ld	[%g7 + %o5], %o1"
24306	;;
24307  tilepro*-*-*)
24308      conftest_s='
24309	.section ".tdata","awT",@progbits
24310foo:	.long	25
24311	.text
24312	addli	r0, zero, tls_gd(foo)
24313	auli	r0, zero, tls_gd_ha16(foo)
24314	addli	r0, r0, tls_gd_lo16(foo)
24315	jal	__tls_get_addr
24316	addli	r0, zero, tls_ie(foo)
24317	auli	r0, r0, tls_ie_ha16(foo)
24318	addli	r0, r0, tls_ie_lo16(foo)'
24319	tls_first_major=2
24320	tls_first_minor=22
24321	tls_as_opt="--fatal-warnings"
24322	;;
24323  tilegx*-*-*)
24324      conftest_s='
24325	.section ".tdata","awT",@progbits
24326foo:	.long	25
24327	.text
24328	shl16insli r0, zero, hw0_last_tls_gd(foo)
24329	shl16insli r0, zero, hw1_last_tls_gd(foo)
24330	shl16insli r0, r0,   hw0_tls_gd(foo)
24331	jal	   __tls_get_addr
24332	shl16insli r0, zero, hw1_last_tls_ie(foo)
24333	shl16insli r0, r0,   hw0_tls_ie(foo)'
24334	tls_first_major=2
24335	tls_first_minor=22
24336	tls_as_opt="--fatal-warnings"
24337	;;
24338  xtensa*-*-*)
24339    conftest_s='
24340	.section ".tdata","awT",@progbits
24341foo:	.long	25
24342	.text
24343	movi	a8, foo@TLSFUNC
24344	movi	a10, foo@TLSARG
24345	callx8.tls a8, foo@TLSCALL'
24346	tls_first_major=2
24347	tls_first_minor=19
24348	;;
24349esac
24350set_have_as_tls=no
24351if test "x$enable_tls" = xno ; then
24352  : # TLS explicitly disabled.
24353elif test "x$enable_tls" = xyes ; then
24354  set_have_as_tls=yes # TLS explicitly enabled.
24355elif test -z "$tls_first_major"; then
24356  : # If we don't have a check, assume no support.
24357else
24358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24359$as_echo_n "checking assembler for thread-local storage support... " >&6; }
24360if test "${gcc_cv_as_tls+set}" = set; then :
24361  $as_echo_n "(cached) " >&6
24362else
24363  gcc_cv_as_tls=no
24364    if test $in_tree_gas = yes; then
24365    if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24366  then gcc_cv_as_tls=yes
24367fi
24368  elif test x$gcc_cv_as != x; then
24369    $as_echo "$conftest_s" > conftest.s
24370    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24371  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24372  (eval $ac_try) 2>&5
24373  ac_status=$?
24374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24375  test $ac_status = 0; }; }
24376    then
24377	gcc_cv_as_tls=yes
24378    else
24379      echo "configure: failed program was" >&5
24380      cat conftest.s >&5
24381    fi
24382    rm -f conftest.o conftest.s
24383  fi
24384fi
24385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24386$as_echo "$gcc_cv_as_tls" >&6; }
24387if test $gcc_cv_as_tls = yes; then
24388  set_have_as_tls=yes
24389fi
24390
24391fi
24392if test $set_have_as_tls = yes ; then
24393
24394$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24395
24396fi
24397
24398# Target-specific assembler checks.
24399
24400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24401$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24402gcc_cv_ld_static_dynamic=no
24403gcc_cv_ld_static_option='-Bstatic'
24404gcc_cv_ld_dynamic_option='-Bdynamic'
24405if test $in_tree_ld = yes ; then
24406  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
24407    gcc_cv_ld_static_dynamic=yes
24408  fi
24409elif test x$gcc_cv_ld != x; then
24410  # Check if linker supports -Bstatic/-Bdynamic option
24411  if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24412     && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24413      gcc_cv_ld_static_dynamic=yes
24414  else
24415    case "$target" in
24416      # AIX ld uses -b flags
24417      *-*-aix4.[23]* | *-*-aix[5-9]*)
24418	gcc_cv_ld_static_dynamic=yes
24419	gcc_cv_ld_static_option="-bstatic"
24420	gcc_cv_ld_dynamic_option="-bdynamic"
24421	;;
24422      # HP-UX ld uses -a flags to select between shared and archive.
24423      *-*-hpux*)
24424	if test x"$gnu_ld" = xno; then
24425	  gcc_cv_ld_static_dynamic=yes
24426	  gcc_cv_ld_static_option="-aarchive_shared"
24427	  gcc_cv_ld_dynamic_option="-adefault"
24428	fi
24429	;;
24430      # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24431      *-*-solaris2*)
24432        gcc_cv_ld_static_dynamic=yes
24433        ;;
24434    esac
24435  fi
24436fi
24437if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24438
24439$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24440
24441
24442cat >>confdefs.h <<_ACEOF
24443#define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24444_ACEOF
24445
24446
24447cat >>confdefs.h <<_ACEOF
24448#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24449_ACEOF
24450
24451fi
24452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24453$as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24454
24455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24456$as_echo_n "checking linker --version-script option... " >&6; }
24457gcc_cv_ld_version_script=no
24458ld_version_script_option=''
24459if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24460  gcc_cv_ld_version_script=yes
24461  ld_version_script_option='--version-script'
24462elif test x$gcc_cv_ld != x; then
24463  case "$target" in
24464    # Solaris 2 ld always supports -M.  It also supports a subset of
24465    # --version-script since Solaris 11.4, but requires
24466    # -z gnu-version-script-compat to activate.
24467    *-*-solaris2*)
24468      gcc_cv_ld_version_script=yes
24469      ld_version_script_option='-M'
24470      ;;
24471  esac
24472fi
24473# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24475$as_echo "$gcc_cv_ld_version_script" >&6; }
24476
24477
24478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24479$as_echo_n "checking linker soname option... " >&6; }
24480gcc_cv_ld_soname=no
24481if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24482  gcc_cv_ld_soname=yes
24483  ld_soname_option='-soname'
24484elif test x$gcc_cv_ld != x; then
24485  case "$target" in
24486    *-*-darwin*)
24487      gcc_cv_ld_soname=yes
24488      ld_soname_option='-install_name'
24489      ;;
24490    # Solaris 2 ld always supports -h.  It also supports --soname for GNU
24491    # ld compatiblity since some Solaris 10 update.
24492    *-*-solaris2*)
24493      gcc_cv_ld_soname=yes
24494      ld_soname_option='-h'
24495      ;;
24496  esac
24497fi
24498# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24500$as_echo "$gcc_cv_ld_soname" >&6; }
24501
24502
24503if test x"$demangler_in_ld" = xyes; then
24504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24505$as_echo_n "checking linker --demangle support... " >&6; }
24506  gcc_cv_ld_demangle=no
24507  if test $in_tree_ld = yes; then
24508    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 \
24509      gcc_cv_ld_demangle=yes
24510    fi
24511  elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24512    # Check if the GNU linker supports --demangle option
24513    if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24514      gcc_cv_ld_demangle=yes
24515    fi
24516  fi
24517  if test x"$gcc_cv_ld_demangle" = xyes; then
24518
24519$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24520
24521  fi
24522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24523$as_echo "$gcc_cv_ld_demangle" >&6; }
24524fi
24525
24526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24527$as_echo_n "checking linker plugin support... " >&6; }
24528gcc_cv_lto_plugin=0
24529if test -f liblto_plugin.la; then
24530  save_ld_ver="$ld_ver"
24531  save_ld_vers_major="$ld_vers_major"
24532  save_ld_vers_minor="$ld_vers_minor"
24533  save_ld_is_gold="$ld_is_gold"
24534
24535  ld_is_gold=no
24536
24537  if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24538    ld_ver="GNU ld"
24539    # FIXME: ld_is_gold?
24540    ld_vers_major="$gcc_cv_gld_major_version"
24541    ld_vers_minor="$gcc_cv_gld_minor_version"
24542  else
24543    # Determine plugin linker version.
24544    # FIXME: Partial duplicate from above, generalize.
24545    ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24546    if echo "$ld_ver" | grep GNU > /dev/null; then
24547      if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24548        ld_is_gold=yes
24549        ld_vers=`echo $ld_ver | sed -n \
24550    	    -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24551      else
24552        ld_vers=`echo $ld_ver | sed -n \
24553    	    -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24554      fi
24555      ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24556      ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24557    fi
24558  fi
24559
24560  # Determine plugin support.
24561  if echo "$ld_ver" | grep GNU > /dev/null; then
24562    # Require GNU ld or gold 2.21+ for plugin support by default.
24563    if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24564      gcc_cv_lto_plugin=2
24565    # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24566    elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24567      gcc_cv_lto_plugin=1
24568    fi
24569  fi
24570
24571  ld_ver="$save_ld_ver"
24572  ld_vers_major="$save_ld_vers_major"
24573  ld_vers_minor="$save_ld_vers_minor"
24574  ld_is_gold="$save_ld_is_gold"
24575fi
24576
24577cat >>confdefs.h <<_ACEOF
24578#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24579_ACEOF
24580
24581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24582$as_echo "$gcc_cv_lto_plugin" >&6; }
24583
24584# Target OS-specific assembler checks.
24585
24586case "$target_os" in
24587  darwin*)
24588    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24589$as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24590if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24591  $as_echo_n "(cached) " >&6
24592else
24593  gcc_cv_as_mmacosx_version_min=no
24594  if test x$gcc_cv_as != x; then
24595    $as_echo '.text' > conftest.s
24596    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24597  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24598  (eval $ac_try) 2>&5
24599  ac_status=$?
24600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24601  test $ac_status = 0; }; }
24602    then
24603	gcc_cv_as_mmacosx_version_min=yes
24604    else
24605      echo "configure: failed program was" >&5
24606      cat conftest.s >&5
24607    fi
24608    rm -f conftest.o conftest.s
24609  fi
24610fi
24611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24612$as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24613if test $gcc_cv_as_mmacosx_version_min = yes; then
24614
24615$as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24616
24617fi
24618
24619    ;;
24620esac
24621
24622# Target CPU-specific assembler checks.
24623
24624case "$target" in
24625  aarch64*-*-*)
24626    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24627$as_echo_n "checking assembler for -mabi option... " >&6; }
24628if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24629  $as_echo_n "(cached) " >&6
24630else
24631  gcc_cv_as_aarch64_mabi=no
24632  if test x$gcc_cv_as != x; then
24633    $as_echo '.text' > conftest.s
24634    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24635  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24636  (eval $ac_try) 2>&5
24637  ac_status=$?
24638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24639  test $ac_status = 0; }; }
24640    then
24641	gcc_cv_as_aarch64_mabi=yes
24642    else
24643      echo "configure: failed program was" >&5
24644      cat conftest.s >&5
24645    fi
24646    rm -f conftest.o conftest.s
24647  fi
24648fi
24649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24650$as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24651
24652
24653    if test x$gcc_cv_as_aarch64_mabi = xyes; then
24654
24655$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24656
24657    else
24658      if test x$with_abi = xilp32; then
24659        as_fn_error "Assembler does not support -mabi=ilp32.\
24660                     Upgrade the Assembler." "$LINENO" 5
24661      fi
24662      if test x"$with_multilib_list" = xdefault; then
24663        TM_MULTILIB_CONFIG=lp64
24664      else
24665        aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24666        for aarch64_multilib in ${aarch64_multilibs}; do
24667          case ${aarch64_multilib} in
24668            ilp32)
24669              as_fn_error "Assembler does not support -mabi=ilp32.\
24670                            Upgrade the Assembler." "$LINENO" 5
24671              ;;
24672            *)
24673              ;;
24674          esac
24675        done
24676      fi
24677    fi
24678    # Check if we have binutils support for relocations types needed by -fpic
24679    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24680$as_echo_n "checking assembler for -fpic relocs... " >&6; }
24681if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24682  $as_echo_n "(cached) " >&6
24683else
24684  gcc_cv_as_aarch64_picreloc=no
24685  if test x$gcc_cv_as != x; then
24686    $as_echo '
24687	.text
24688	ldr     x0, [x2, #:gotpage_lo15:globalsym]
24689    ' > conftest.s
24690    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24691  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24692  (eval $ac_try) 2>&5
24693  ac_status=$?
24694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24695  test $ac_status = 0; }; }
24696    then
24697	gcc_cv_as_aarch64_picreloc=yes
24698    else
24699      echo "configure: failed program was" >&5
24700      cat conftest.s >&5
24701    fi
24702    rm -f conftest.o conftest.s
24703  fi
24704fi
24705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24706$as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24707if test $gcc_cv_as_aarch64_picreloc = yes; then
24708
24709$as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24710
24711fi
24712
24713    # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24714    # Check whether --enable-fix-cortex-a53-835769 was given.
24715if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24716  enableval=$enable_fix_cortex_a53_835769;
24717        case $enableval in
24718          yes)
24719            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24720            ;;
24721          no)
24722            ;;
24723          *)
24724            as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24725  Valid choices are 'yes' and 'no'." "$LINENO" 5
24726            ;;
24727
24728        esac
24729
24730fi
24731
24732    # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24733    # Check whether --enable-fix-cortex-a53-843419 was given.
24734if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24735  enableval=$enable_fix_cortex_a53_843419;
24736        case $enableval in
24737          yes)
24738            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24739            ;;
24740          no)
24741            ;;
24742          *)
24743            as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24744  Valid choices are 'yes' and 'no'." "$LINENO" 5
24745            ;;
24746
24747        esac
24748
24749fi
24750
24751    ;;
24752
24753  # All TARGET_ABI_OSF targets.
24754  alpha*-*-linux* | alpha*-*-*bsd*)
24755    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24756$as_echo_n "checking assembler for explicit relocation support... " >&6; }
24757if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24758  $as_echo_n "(cached) " >&6
24759else
24760  gcc_cv_as_alpha_explicit_relocs=no
24761    if test $in_tree_gas = yes; then
24762    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24763  then gcc_cv_as_alpha_explicit_relocs=yes
24764fi
24765  elif test x$gcc_cv_as != x; then
24766    $as_echo '	.set nomacro
24767	.text
24768	extbl	$3, $2, $3	!lituse_bytoff!1
24769	ldq	$2, a($29)	!literal!1
24770	ldq	$4, b($29)	!literal!2
24771	ldq_u	$3, 0($2)	!lituse_base!1
24772	ldq	$27, f($29)	!literal!5
24773	jsr	$26, ($27), f	!lituse_jsr!5
24774	ldah	$29, 0($26)	!gpdisp!3
24775	lda	$0, c($29)	!gprel
24776	ldah	$1, d($29)	!gprelhigh
24777	lda	$1, d($1)	!gprellow
24778	lda	$29, 0($29)	!gpdisp!3' > conftest.s
24779    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24780  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781  (eval $ac_try) 2>&5
24782  ac_status=$?
24783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784  test $ac_status = 0; }; }
24785    then
24786	gcc_cv_as_alpha_explicit_relocs=yes
24787    else
24788      echo "configure: failed program was" >&5
24789      cat conftest.s >&5
24790    fi
24791    rm -f conftest.o conftest.s
24792  fi
24793fi
24794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24795$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24796if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24797
24798$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24799
24800fi
24801
24802    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24803$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24804if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24805  $as_echo_n "(cached) " >&6
24806else
24807  gcc_cv_as_alpha_jsrdirect_relocs=no
24808    if test $in_tree_gas = yes; then
24809    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24810  then gcc_cv_as_alpha_jsrdirect_relocs=yes
24811fi
24812  elif test x$gcc_cv_as != x; then
24813    $as_echo '	.set nomacro
24814	.text
24815	ldq	$27, a($29)	!literal!1
24816	jsr	$26, ($27), a	!lituse_jsrdirect!1' > conftest.s
24817    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24818  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24819  (eval $ac_try) 2>&5
24820  ac_status=$?
24821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24822  test $ac_status = 0; }; }
24823    then
24824	gcc_cv_as_alpha_jsrdirect_relocs=yes
24825    else
24826      echo "configure: failed program was" >&5
24827      cat conftest.s >&5
24828    fi
24829    rm -f conftest.o conftest.s
24830  fi
24831fi
24832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24833$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24834if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24835
24836$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24837
24838fi
24839
24840    ;;
24841
24842  avr-*-*)
24843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24844$as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24845if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24846  $as_echo_n "(cached) " >&6
24847else
24848  gcc_cv_as_avr_mlink_relax=no
24849  if test x$gcc_cv_as != x; then
24850    $as_echo '.text' > conftest.s
24851    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24852  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24853  (eval $ac_try) 2>&5
24854  ac_status=$?
24855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24856  test $ac_status = 0; }; }
24857    then
24858	gcc_cv_as_avr_mlink_relax=yes
24859    else
24860      echo "configure: failed program was" >&5
24861      cat conftest.s >&5
24862    fi
24863    rm -f conftest.o conftest.s
24864  fi
24865fi
24866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24867$as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24868if test $gcc_cv_as_avr_mlink_relax = yes; then
24869
24870$as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24871
24872fi
24873
24874
24875    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24876$as_echo_n "checking assembler for -mrmw option... " >&6; }
24877if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24878  $as_echo_n "(cached) " >&6
24879else
24880  gcc_cv_as_avr_mrmw=no
24881  if test x$gcc_cv_as != x; then
24882    $as_echo '.text' > conftest.s
24883    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24884  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24885  (eval $ac_try) 2>&5
24886  ac_status=$?
24887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24888  test $ac_status = 0; }; }
24889    then
24890	gcc_cv_as_avr_mrmw=yes
24891    else
24892      echo "configure: failed program was" >&5
24893      cat conftest.s >&5
24894    fi
24895    rm -f conftest.o conftest.s
24896  fi
24897fi
24898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24899$as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24900if test $gcc_cv_as_avr_mrmw = yes; then
24901
24902$as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24903
24904fi
24905
24906
24907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
24908$as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
24909if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
24910  $as_echo_n "(cached) " >&6
24911else
24912  gcc_cv_as_avr_mgccisr=no
24913  if test x$gcc_cv_as != x; then
24914    $as_echo '.text
24915      		    __gcc_isr 1
24916      		    __gcc_isr 2
24917      		    __gcc_isr 0,r24
24918      		   ' > conftest.s
24919    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
24920  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24921  (eval $ac_try) 2>&5
24922  ac_status=$?
24923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24924  test $ac_status = 0; }; }
24925    then
24926	gcc_cv_as_avr_mgccisr=yes
24927    else
24928      echo "configure: failed program was" >&5
24929      cat conftest.s >&5
24930    fi
24931    rm -f conftest.o conftest.s
24932  fi
24933fi
24934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
24935$as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
24936if test $gcc_cv_as_avr_mgccisr = yes; then
24937
24938$as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
24939
24940fi
24941
24942
24943    # Check how default linker description file implements .rodata for
24944    # avrxmega3 (PR21472).  avr-gcc assumes .rodata is *not* loaded to
24945    # RAM so avr-gcc skips __do_copy_data for .rodata objects.
24946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
24947$as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
24948    cat > conftest.s <<EOF
24949        .section .rodata,"a",@progbits
24950        .global xxvaryy
24951    ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
24952    xxvaryy:
24953        .word 1
24954EOF
24955    rm -f conftest.nm
24956    { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
24957  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24958  (eval $ac_try) 2>&5
24959  ac_status=$?
24960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24961  test $ac_status = 0; }; }
24962    { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
24963  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24964  (eval $ac_try) 2>&5
24965  ac_status=$?
24966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24967  test $ac_status = 0; }; }
24968    { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
24969  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24970  (eval $ac_try) 2>&5
24971  ac_status=$?
24972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24973  test $ac_status = 0; }; }
24974    if test -s conftest.nm
24975    then
24976	if grep ' R xxvaryy' conftest.nm > /dev/null; then
24977	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24978$as_echo "yes" >&6; }
24979
24980$as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
24981
24982	else
24983	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
24984$as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
24985	    echo "$as_me: nm output was" >&5
24986	    cat conftest.nm >&5
24987	    avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
24988	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
24989$as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
24990	fi
24991    else
24992	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
24993$as_echo "test failed" >&6; }
24994	echo "$as_me: failed program was" >&5
24995	cat conftest.s >&5
24996	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
24997$as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
24998    fi
24999    rm -f conftest.s conftest.o conftest.elf conftest.nm
25000    ;;
25001
25002  cris-*-*)
25003    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25004$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25005if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
25006  $as_echo_n "(cached) " >&6
25007else
25008  gcc_cv_as_cris_no_mul_bug=no
25009    if test $in_tree_gas = yes; then
25010    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25011  then gcc_cv_as_cris_no_mul_bug=yes
25012fi
25013  elif test x$gcc_cv_as != x; then
25014    $as_echo '.text' > conftest.s
25015    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25016  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25017  (eval $ac_try) 2>&5
25018  ac_status=$?
25019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25020  test $ac_status = 0; }; }
25021    then
25022	gcc_cv_as_cris_no_mul_bug=yes
25023    else
25024      echo "configure: failed program was" >&5
25025      cat conftest.s >&5
25026    fi
25027    rm -f conftest.o conftest.s
25028  fi
25029fi
25030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25031$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25032if test $gcc_cv_as_cris_no_mul_bug = yes; then
25033
25034$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25035
25036fi
25037
25038    ;;
25039
25040  sparc*-*-*)
25041    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
25042$as_echo_n "checking assembler for .register... " >&6; }
25043if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
25044  $as_echo_n "(cached) " >&6
25045else
25046  gcc_cv_as_sparc_register_op=no
25047  if test x$gcc_cv_as != x; then
25048    $as_echo '.register %g2, #scratch' > conftest.s
25049    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25050  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25051  (eval $ac_try) 2>&5
25052  ac_status=$?
25053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25054  test $ac_status = 0; }; }
25055    then
25056	gcc_cv_as_sparc_register_op=yes
25057    else
25058      echo "configure: failed program was" >&5
25059      cat conftest.s >&5
25060    fi
25061    rm -f conftest.o conftest.s
25062  fi
25063fi
25064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25065$as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25066if test $gcc_cv_as_sparc_register_op = yes; then
25067
25068$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25069
25070fi
25071
25072
25073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25074$as_echo_n "checking assembler for -relax option... " >&6; }
25075if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25076  $as_echo_n "(cached) " >&6
25077else
25078  gcc_cv_as_sparc_relax=no
25079  if test x$gcc_cv_as != x; then
25080    $as_echo '.text' > conftest.s
25081    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25082  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25083  (eval $ac_try) 2>&5
25084  ac_status=$?
25085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25086  test $ac_status = 0; }; }
25087    then
25088	gcc_cv_as_sparc_relax=yes
25089    else
25090      echo "configure: failed program was" >&5
25091      cat conftest.s >&5
25092    fi
25093    rm -f conftest.o conftest.s
25094  fi
25095fi
25096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25097$as_echo "$gcc_cv_as_sparc_relax" >&6; }
25098if test $gcc_cv_as_sparc_relax = yes; then
25099
25100$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25101
25102fi
25103
25104
25105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25106$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25107if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25108  $as_echo_n "(cached) " >&6
25109else
25110  gcc_cv_as_sparc_gotdata_op=no
25111  if test x$gcc_cv_as != x; then
25112    $as_echo '.text
25113.align 4
25114foo:
25115	nop
25116bar:
25117	sethi %gdop_hix22(foo), %g1
25118	xor    %g1, %gdop_lox10(foo), %g1
25119	ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25120    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25121  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25122  (eval $ac_try) 2>&5
25123  ac_status=$?
25124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25125  test $ac_status = 0; }; }
25126    then
25127	if test x$gcc_cv_ld != x \
25128       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25129         if test x$gcc_cv_objdump != x; then
25130           if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25131              | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25132	       gcc_cv_as_sparc_gotdata_op=no
25133           else
25134	       gcc_cv_as_sparc_gotdata_op=yes
25135           fi
25136         fi
25137       fi
25138       rm -f conftest
25139    else
25140      echo "configure: failed program was" >&5
25141      cat conftest.s >&5
25142    fi
25143    rm -f conftest.o conftest.s
25144  fi
25145fi
25146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25147$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25148if test $gcc_cv_as_sparc_gotdata_op = yes; then
25149
25150$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25151
25152fi
25153
25154
25155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25156$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25157if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25158  $as_echo_n "(cached) " >&6
25159else
25160  gcc_cv_as_sparc_ua_pcrel=no
25161  if test x$gcc_cv_as != x; then
25162    $as_echo '.text
25163foo:
25164	nop
25165.data
25166.align 4
25167.byte 0
25168.uaword %r_disp32(foo)' > conftest.s
25169    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25170  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25171  (eval $ac_try) 2>&5
25172  ac_status=$?
25173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25174  test $ac_status = 0; }; }
25175    then
25176	if test x$gcc_cv_ld != x \
25177       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25178	 gcc_cv_as_sparc_ua_pcrel=yes
25179       fi
25180       rm -f conftest
25181    else
25182      echo "configure: failed program was" >&5
25183      cat conftest.s >&5
25184    fi
25185    rm -f conftest.o conftest.s
25186  fi
25187fi
25188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25189$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25190if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25191
25192$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25193
25194
25195      { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25196$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25197if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25198  $as_echo_n "(cached) " >&6
25199else
25200  gcc_cv_as_sparc_ua_pcrel_hidden=no
25201  if test x$gcc_cv_as != x; then
25202    $as_echo '.data
25203.align 4
25204.byte 0x31
25205.uaword %r_disp32(foo)
25206.byte 0x32, 0x33, 0x34
25207.global foo
25208.hidden foo
25209foo:
25210.skip 4' > conftest.s
25211    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25212  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25213  (eval $ac_try) 2>&5
25214  ac_status=$?
25215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25216  test $ac_status = 0; }; }
25217    then
25218	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25219	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25220	 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25221	    | grep ' 31000000 07323334' > /dev/null 2>&1; then
25222	    if $gcc_cv_objdump -R conftest 2> /dev/null \
25223	       | grep 'DISP32' > /dev/null 2>&1; then
25224		:
25225	    else
25226		gcc_cv_as_sparc_ua_pcrel_hidden=yes
25227	    fi
25228	 fi
25229	 rm -f conftest
25230    else
25231      echo "configure: failed program was" >&5
25232      cat conftest.s >&5
25233    fi
25234    rm -f conftest.o conftest.s
25235  fi
25236fi
25237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25238$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25239if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25240
25241$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25242
25243fi
25244
25245
25246fi
25247 # unaligned pcrel relocs
25248
25249    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25250$as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25251if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25252  $as_echo_n "(cached) " >&6
25253else
25254  gcc_cv_as_sparc_offsetable_lo10=no
25255  if test x$gcc_cv_as != x; then
25256    $as_echo '.text
25257	or %g1, %lo(ab) + 12, %g1
25258	or %g1, %lo(ab + 12), %g1' > conftest.s
25259    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25260  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25261  (eval $ac_try) 2>&5
25262  ac_status=$?
25263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25264  test $ac_status = 0; }; }
25265    then
25266	if test x$gcc_cv_objdump != x \
25267       && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25268          | grep ' 82106000 82106000' > /dev/null 2>&1; then
25269	 gcc_cv_as_sparc_offsetable_lo10=yes
25270       fi
25271    else
25272      echo "configure: failed program was" >&5
25273      cat conftest.s >&5
25274    fi
25275    rm -f conftest.o conftest.s
25276  fi
25277fi
25278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25279$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25280if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25281
25282$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25283
25284fi
25285
25286
25287    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25288$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25289if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25290  $as_echo_n "(cached) " >&6
25291else
25292  gcc_cv_as_sparc_fmaf=no
25293  if test x$gcc_cv_as != x; then
25294    $as_echo '.text
25295       .register %g2, #scratch
25296       .register %g3, #scratch
25297       .align 4
25298       fmaddd %f0, %f2, %f4, %f6
25299       addxccc %g1, %g2, %g3
25300       fsrl32 %f2, %f4, %f8
25301       fnaddd %f10, %f12, %f14' > conftest.s
25302    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25303  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25304  (eval $ac_try) 2>&5
25305  ac_status=$?
25306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25307  test $ac_status = 0; }; }
25308    then
25309	gcc_cv_as_sparc_fmaf=yes
25310    else
25311      echo "configure: failed program was" >&5
25312      cat conftest.s >&5
25313    fi
25314    rm -f conftest.o conftest.s
25315  fi
25316fi
25317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25318$as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25319if test $gcc_cv_as_sparc_fmaf = yes; then
25320
25321$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25322
25323fi
25324
25325
25326    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25327$as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25328if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25329  $as_echo_n "(cached) " >&6
25330else
25331  gcc_cv_as_sparc_sparc4=no
25332  if test x$gcc_cv_as != x; then
25333    $as_echo '.text
25334       .register %g2, #scratch
25335       .register %g3, #scratch
25336       .align 4
25337       cxbe %g2, %g3, 1f
253381:     cwbneg %g2, %g3, 1f
253391:     sha1
25340       md5
25341       aes_kexpand0 %f4, %f6, %f8
25342       des_round %f38, %f40, %f42, %f44
25343       camellia_f %f54, %f56, %f58, %f60
25344       kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25345    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25346  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25347  (eval $ac_try) 2>&5
25348  ac_status=$?
25349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25350  test $ac_status = 0; }; }
25351    then
25352	gcc_cv_as_sparc_sparc4=yes
25353    else
25354      echo "configure: failed program was" >&5
25355      cat conftest.s >&5
25356    fi
25357    rm -f conftest.o conftest.s
25358  fi
25359fi
25360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25361$as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25362if test $gcc_cv_as_sparc_sparc4 = yes; then
25363
25364$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25365
25366fi
25367
25368
25369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25370$as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25371if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25372  $as_echo_n "(cached) " >&6
25373else
25374  gcc_cv_as_sparc_sparc5=no
25375  if test x$gcc_cv_as != x; then
25376    $as_echo '.text
25377       .register %g2, #scratch
25378       .register %g3, #scratch
25379       .align 4
25380       subxc %g1, %g2, %g3
25381       fpadd8 %f0, %f2, %f4' > conftest.s
25382    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25383  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25384  (eval $ac_try) 2>&5
25385  ac_status=$?
25386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25387  test $ac_status = 0; }; }
25388    then
25389	gcc_cv_as_sparc_sparc5=yes
25390    else
25391      echo "configure: failed program was" >&5
25392      cat conftest.s >&5
25393    fi
25394    rm -f conftest.o conftest.s
25395  fi
25396fi
25397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25398$as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25399if test $gcc_cv_as_sparc_sparc5 = yes; then
25400
25401$as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25402
25403fi
25404
25405
25406    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25407$as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25408if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25409  $as_echo_n "(cached) " >&6
25410else
25411  gcc_cv_as_sparc_sparc6=no
25412  if test x$gcc_cv_as != x; then
25413    $as_echo '.text
25414       .register %g2, #scratch
25415       .register %g3, #scratch
25416       .align 4
25417       rd %entropy, %g1
25418       fpsll64x %f0, %f2, %f4' > conftest.s
25419    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25420  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25421  (eval $ac_try) 2>&5
25422  ac_status=$?
25423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25424  test $ac_status = 0; }; }
25425    then
25426	gcc_cv_as_sparc_sparc6=yes
25427    else
25428      echo "configure: failed program was" >&5
25429      cat conftest.s >&5
25430    fi
25431    rm -f conftest.o conftest.s
25432  fi
25433fi
25434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25435$as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25436if test $gcc_cv_as_sparc_sparc6 = yes; then
25437
25438$as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25439
25440fi
25441
25442
25443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25444$as_echo_n "checking assembler for LEON instructions... " >&6; }
25445if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25446  $as_echo_n "(cached) " >&6
25447else
25448  gcc_cv_as_sparc_leon=no
25449  if test x$gcc_cv_as != x; then
25450    $as_echo '.text
25451       .register %g2, #scratch
25452       .register %g3, #scratch
25453       .align 4
25454       smac %g2, %g3, %g1
25455       umac %g2, %g3, %g1
25456       casa [%g2] 0xb, %g3, %g1' > conftest.s
25457    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25458  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25459  (eval $ac_try) 2>&5
25460  ac_status=$?
25461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25462  test $ac_status = 0; }; }
25463    then
25464	gcc_cv_as_sparc_leon=yes
25465    else
25466      echo "configure: failed program was" >&5
25467      cat conftest.s >&5
25468    fi
25469    rm -f conftest.o conftest.s
25470  fi
25471fi
25472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25473$as_echo "$gcc_cv_as_sparc_leon" >&6; }
25474if test $gcc_cv_as_sparc_leon = yes; then
25475
25476$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25477
25478fi
25479
25480    ;;
25481
25482  i[34567]86-*-* | x86_64-*-*)
25483    case $target_os in
25484      cygwin*)
25485	# Full C++ conformance when using a shared libstdc++-v3 requires some
25486	# support from the Cygwin DLL, which in more recent versions exports
25487	# wrappers to aid in interposing and redirecting operators new, delete,
25488	# etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
25489	# are configuring for a version of Cygwin that exports the wrappers.
25490	if test x$host = x$target && test x$host_cpu = xi686; then
25491	  ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25492if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25493  gcc_ac_cygwin_dll_wrappers=yes
25494else
25495  gcc_ac_cygwin_dll_wrappers=no
25496fi
25497
25498	else
25499	  # Can't check presence of libc functions during cross-compile, so
25500	  # we just have to assume we're building for an up-to-date target.
25501	  gcc_ac_cygwin_dll_wrappers=yes
25502	fi
25503
25504cat >>confdefs.h <<_ACEOF
25505#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25506_ACEOF
25507
25508    esac
25509    case $target_os in
25510      cygwin* | pe | mingw32*)
25511	# Recent binutils allows the three-operand form of ".comm" on PE.  This
25512	# definition is used unconditionally to initialise the default state of
25513	# the target option variable that governs usage of the feature.
25514	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25515$as_echo_n "checking assembler for .comm with alignment... " >&6; }
25516if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25517  $as_echo_n "(cached) " >&6
25518else
25519  gcc_cv_as_comm_has_align=no
25520    if test $in_tree_gas = yes; then
25521    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25522  then gcc_cv_as_comm_has_align=yes
25523fi
25524  elif test x$gcc_cv_as != x; then
25525    $as_echo '.comm foo,1,32' > conftest.s
25526    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25527  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528  (eval $ac_try) 2>&5
25529  ac_status=$?
25530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531  test $ac_status = 0; }; }
25532    then
25533	gcc_cv_as_comm_has_align=yes
25534    else
25535      echo "configure: failed program was" >&5
25536      cat conftest.s >&5
25537    fi
25538    rm -f conftest.o conftest.s
25539  fi
25540fi
25541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25542$as_echo "$gcc_cv_as_comm_has_align" >&6; }
25543
25544
25545
25546cat >>confdefs.h <<_ACEOF
25547#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25548_ACEOF
25549
25550	# Used for DWARF 2 in PE
25551	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25552$as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25553if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25554  $as_echo_n "(cached) " >&6
25555else
25556  gcc_cv_as_ix86_pe_secrel32=no
25557    if test $in_tree_gas = yes; then
25558    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25559  then gcc_cv_as_ix86_pe_secrel32=yes
25560fi
25561  elif test x$gcc_cv_as != x; then
25562    $as_echo '.text
25563foo:	nop
25564.data
25565	.secrel32 foo' > conftest.s
25566    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25567  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25568  (eval $ac_try) 2>&5
25569  ac_status=$?
25570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25571  test $ac_status = 0; }; }
25572    then
25573	if test x$gcc_cv_ld != x \
25574	   && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25575	     gcc_cv_as_ix86_pe_secrel32=yes
25576	   fi
25577	   rm -f conftest
25578    else
25579      echo "configure: failed program was" >&5
25580      cat conftest.s >&5
25581    fi
25582    rm -f conftest.o conftest.s
25583  fi
25584fi
25585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25586$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25587if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25588
25589$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25590
25591fi
25592
25593	# Test if the assembler supports the extended form of the .section
25594	# directive that specifies section alignment.  LTO support uses this,
25595	# but normally only after installation, so we warn but don't fail the
25596	# configure if LTO is enabled but the assembler does not support it.
25597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25598$as_echo_n "checking assembler for .section with alignment... " >&6; }
25599if test "${gcc_cv_as_section_has_align+set}" = set; then :
25600  $as_echo_n "(cached) " >&6
25601else
25602  gcc_cv_as_section_has_align=no
25603    if test $in_tree_gas = yes; then
25604    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25605  then gcc_cv_as_section_has_align=yes
25606fi
25607  elif test x$gcc_cv_as != x; then
25608    $as_echo '.section lto_test,"dr0"' > conftest.s
25609    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25610  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25611  (eval $ac_try) 2>&5
25612  ac_status=$?
25613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25614  test $ac_status = 0; }; }
25615    then
25616	gcc_cv_as_section_has_align=yes
25617    else
25618      echo "configure: failed program was" >&5
25619      cat conftest.s >&5
25620    fi
25621    rm -f conftest.o conftest.s
25622  fi
25623fi
25624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25625$as_echo "$gcc_cv_as_section_has_align" >&6; }
25626
25627
25628	if test x$gcc_cv_as_section_has_align != xyes; then
25629	  case ",$enable_languages," in
25630	    *,lto,*)
25631	      { $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
25632$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;}
25633	      ;;
25634	  esac
25635	fi
25636	;;
25637    esac
25638
25639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25640$as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25641if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25642  $as_echo_n "(cached) " >&6
25643else
25644  gcc_cv_as_ix86_xbrace_comment=no
25645  if test x$gcc_cv_as != x; then
25646    $as_echo '.text' > conftest.s
25647    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25648  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25649  (eval $ac_try) 2>&5
25650  ac_status=$?
25651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652  test $ac_status = 0; }; }
25653    then
25654	gcc_cv_as_ix86_xbrace_comment=yes
25655    else
25656      echo "configure: failed program was" >&5
25657      cat conftest.s >&5
25658    fi
25659    rm -f conftest.o conftest.s
25660  fi
25661fi
25662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25663$as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25664if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25665
25666$as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25667
25668fi
25669
25670
25671    # Test if the assembler supports the section flag 'e' for specifying
25672    # an excluded section.
25673    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25674$as_echo_n "checking assembler for .section with e... " >&6; }
25675if test "${gcc_cv_as_section_has_e+set}" = set; then :
25676  $as_echo_n "(cached) " >&6
25677else
25678  gcc_cv_as_section_has_e=no
25679    if test $in_tree_gas = yes; then
25680    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25681  then gcc_cv_as_section_has_e=yes
25682fi
25683  elif test x$gcc_cv_as != x; then
25684    $as_echo '.section foo1,"e"
25685.byte 0,0,0,0' > conftest.s
25686    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25687  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25688  (eval $ac_try) 2>&5
25689  ac_status=$?
25690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25691  test $ac_status = 0; }; }
25692    then
25693	gcc_cv_as_section_has_e=yes
25694    else
25695      echo "configure: failed program was" >&5
25696      cat conftest.s >&5
25697    fi
25698    rm -f conftest.o conftest.s
25699  fi
25700fi
25701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25702$as_echo "$gcc_cv_as_section_has_e" >&6; }
25703
25704
25705
25706cat >>confdefs.h <<_ACEOF
25707#define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25708_ACEOF
25709
25710
25711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25712$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25713if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25714  $as_echo_n "(cached) " >&6
25715else
25716  gcc_cv_as_ix86_filds=no
25717  if test x$gcc_cv_as != x; then
25718    $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25719    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25720  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25721  (eval $ac_try) 2>&5
25722  ac_status=$?
25723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25724  test $ac_status = 0; }; }
25725    then
25726	gcc_cv_as_ix86_filds=yes
25727    else
25728      echo "configure: failed program was" >&5
25729      cat conftest.s >&5
25730    fi
25731    rm -f conftest.o conftest.s
25732  fi
25733fi
25734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25735$as_echo "$gcc_cv_as_ix86_filds" >&6; }
25736if test $gcc_cv_as_ix86_filds = yes; then
25737
25738$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25739
25740fi
25741
25742
25743    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25744$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25745if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25746  $as_echo_n "(cached) " >&6
25747else
25748  gcc_cv_as_ix86_fildq=no
25749  if test x$gcc_cv_as != x; then
25750    $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25751    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25752  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25753  (eval $ac_try) 2>&5
25754  ac_status=$?
25755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25756  test $ac_status = 0; }; }
25757    then
25758	gcc_cv_as_ix86_fildq=yes
25759    else
25760      echo "configure: failed program was" >&5
25761      cat conftest.s >&5
25762    fi
25763    rm -f conftest.o conftest.s
25764  fi
25765fi
25766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25767$as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25768if test $gcc_cv_as_ix86_fildq = yes; then
25769
25770$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25771
25772fi
25773
25774
25775    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25776$as_echo_n "checking assembler for cmov syntax... " >&6; }
25777if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25778  $as_echo_n "(cached) " >&6
25779else
25780  gcc_cv_as_ix86_cmov_sun_syntax=no
25781  if test x$gcc_cv_as != x; then
25782    $as_echo 'cmovl.l %edx, %eax' > conftest.s
25783    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25784  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25785  (eval $ac_try) 2>&5
25786  ac_status=$?
25787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25788  test $ac_status = 0; }; }
25789    then
25790	gcc_cv_as_ix86_cmov_sun_syntax=yes
25791    else
25792      echo "configure: failed program was" >&5
25793      cat conftest.s >&5
25794    fi
25795    rm -f conftest.o conftest.s
25796  fi
25797fi
25798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25799$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25800if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25801
25802$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25803
25804fi
25805
25806
25807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25808$as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25809if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25810  $as_echo_n "(cached) " >&6
25811else
25812  gcc_cv_as_ix86_ffreep=no
25813  if test x$gcc_cv_as != x; then
25814    $as_echo 'ffreep %st(1)' > conftest.s
25815    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25816  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25817  (eval $ac_try) 2>&5
25818  ac_status=$?
25819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25820  test $ac_status = 0; }; }
25821    then
25822	gcc_cv_as_ix86_ffreep=yes
25823    else
25824      echo "configure: failed program was" >&5
25825      cat conftest.s >&5
25826    fi
25827    rm -f conftest.o conftest.s
25828  fi
25829fi
25830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25831$as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25832if test $gcc_cv_as_ix86_ffreep = yes; then
25833
25834$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25835
25836fi
25837
25838
25839    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25840$as_echo_n "checking assembler for .quad directive... " >&6; }
25841if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25842  $as_echo_n "(cached) " >&6
25843else
25844  gcc_cv_as_ix86_quad=no
25845  if test x$gcc_cv_as != x; then
25846    $as_echo '.quad 0' > conftest.s
25847    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25848  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25849  (eval $ac_try) 2>&5
25850  ac_status=$?
25851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25852  test $ac_status = 0; }; }
25853    then
25854	gcc_cv_as_ix86_quad=yes
25855    else
25856      echo "configure: failed program was" >&5
25857      cat conftest.s >&5
25858    fi
25859    rm -f conftest.o conftest.s
25860  fi
25861fi
25862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25863$as_echo "$gcc_cv_as_ix86_quad" >&6; }
25864if test $gcc_cv_as_ix86_quad = yes; then
25865
25866$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25867
25868fi
25869
25870
25871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25872$as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25873if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25874  $as_echo_n "(cached) " >&6
25875else
25876  gcc_cv_as_ix86_sahf=no
25877  if test x$gcc_cv_as != x; then
25878    $as_echo '.code64
25879       sahf' > conftest.s
25880    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25881  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25882  (eval $ac_try) 2>&5
25883  ac_status=$?
25884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25885  test $ac_status = 0; }; }
25886    then
25887	gcc_cv_as_ix86_sahf=yes
25888    else
25889      echo "configure: failed program was" >&5
25890      cat conftest.s >&5
25891    fi
25892    rm -f conftest.o conftest.s
25893  fi
25894fi
25895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25896$as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25897if test $gcc_cv_as_ix86_sahf = yes; then
25898
25899$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25900
25901fi
25902
25903
25904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25905$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25906if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25907  $as_echo_n "(cached) " >&6
25908else
25909  gcc_cv_as_ix86_interunit_movq=no
25910  if test x$gcc_cv_as != x; then
25911    $as_echo '.code64
25912       movq %mm0, %rax
25913       movq %rax, %xmm0' > conftest.s
25914    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25915  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25916  (eval $ac_try) 2>&5
25917  ac_status=$?
25918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25919  test $ac_status = 0; }; }
25920    then
25921	gcc_cv_as_ix86_interunit_movq=yes
25922    else
25923      echo "configure: failed program was" >&5
25924      cat conftest.s >&5
25925    fi
25926    rm -f conftest.o conftest.s
25927  fi
25928fi
25929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25930$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25931
25932
25933
25934cat >>confdefs.h <<_ACEOF
25935#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25936_ACEOF
25937
25938
25939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25940$as_echo_n "checking assembler for hle prefixes... " >&6; }
25941if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25942  $as_echo_n "(cached) " >&6
25943else
25944  gcc_cv_as_ix86_hle=no
25945  if test x$gcc_cv_as != x; then
25946    $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25947    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25948  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25949  (eval $ac_try) 2>&5
25950  ac_status=$?
25951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25952  test $ac_status = 0; }; }
25953    then
25954	gcc_cv_as_ix86_hle=yes
25955    else
25956      echo "configure: failed program was" >&5
25957      cat conftest.s >&5
25958    fi
25959    rm -f conftest.o conftest.s
25960  fi
25961fi
25962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25963$as_echo "$gcc_cv_as_ix86_hle" >&6; }
25964if test $gcc_cv_as_ix86_hle = yes; then
25965
25966$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25967
25968fi
25969
25970
25971    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25972$as_echo_n "checking assembler for swap suffix... " >&6; }
25973if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25974  $as_echo_n "(cached) " >&6
25975else
25976  gcc_cv_as_ix86_swap=no
25977  if test x$gcc_cv_as != x; then
25978    $as_echo 'movl.s %esp, %ebp' > conftest.s
25979    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25980  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25981  (eval $ac_try) 2>&5
25982  ac_status=$?
25983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25984  test $ac_status = 0; }; }
25985    then
25986	gcc_cv_as_ix86_swap=yes
25987    else
25988      echo "configure: failed program was" >&5
25989      cat conftest.s >&5
25990    fi
25991    rm -f conftest.o conftest.s
25992  fi
25993fi
25994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25995$as_echo "$gcc_cv_as_ix86_swap" >&6; }
25996if test $gcc_cv_as_ix86_swap = yes; then
25997
25998$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25999
26000fi
26001
26002
26003    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26004$as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26005if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
26006  $as_echo_n "(cached) " >&6
26007else
26008  gcc_cv_as_ix86_diff_sect_delta=no
26009  if test x$gcc_cv_as != x; then
26010    $as_echo '.section .rodata
26011.L1:
26012        .long .L2-.L1
26013        .long .L3-.L1
26014        .text
26015.L3:    nop
26016.L2:    nop' > conftest.s
26017    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26018  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26019  (eval $ac_try) 2>&5
26020  ac_status=$?
26021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26022  test $ac_status = 0; }; }
26023    then
26024	gcc_cv_as_ix86_diff_sect_delta=yes
26025    else
26026      echo "configure: failed program was" >&5
26027      cat conftest.s >&5
26028    fi
26029    rm -f conftest.o conftest.s
26030  fi
26031fi
26032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26033$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26034if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26035
26036$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26037
26038fi
26039
26040
26041    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26042$as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26043if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
26044  $as_echo_n "(cached) " >&6
26045else
26046  gcc_cv_as_ix86_rep_lock_prefix=no
26047  if test x$gcc_cv_as != x; then
26048    $as_echo 'rep movsl
26049	 rep ret
26050	 rep nop
26051	 rep bsf %ecx, %eax
26052	 rep bsr %ecx, %eax
26053	 lock addl %edi, (%eax,%esi)
26054	 lock orl $0, (%esp)' > conftest.s
26055    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26056  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26057  (eval $ac_try) 2>&5
26058  ac_status=$?
26059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26060  test $ac_status = 0; }; }
26061    then
26062	gcc_cv_as_ix86_rep_lock_prefix=yes
26063    else
26064      echo "configure: failed program was" >&5
26065      cat conftest.s >&5
26066    fi
26067    rm -f conftest.o conftest.s
26068  fi
26069fi
26070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26071$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26072if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26073
26074$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26075
26076fi
26077
26078
26079    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26080$as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26081if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26082  $as_echo_n "(cached) " >&6
26083else
26084  gcc_cv_as_ix86_ud2=no
26085  if test x$gcc_cv_as != x; then
26086    $as_echo 'ud2' > conftest.s
26087    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26088  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26089  (eval $ac_try) 2>&5
26090  ac_status=$?
26091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26092  test $ac_status = 0; }; }
26093    then
26094	gcc_cv_as_ix86_ud2=yes
26095    else
26096      echo "configure: failed program was" >&5
26097      cat conftest.s >&5
26098    fi
26099    rm -f conftest.o conftest.s
26100  fi
26101fi
26102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26103$as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26104if test $gcc_cv_as_ix86_ud2 = yes; then
26105
26106$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26107
26108fi
26109
26110
26111    # Enforce 32-bit output with gas and gld.
26112    if test x$gas = xyes; then
26113      as_ix86_gas_32_opt="--32"
26114    fi
26115    if echo "$ld_ver" | grep GNU > /dev/null; then
26116      if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26117        ld_ix86_gld_32_opt="-melf_i386_sol2"
26118      else
26119        ld_ix86_gld_32_opt="-melf_i386"
26120      fi
26121    fi
26122
26123    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26124$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26125if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26126  $as_echo_n "(cached) " >&6
26127else
26128  gcc_cv_as_ix86_tlsgdplt=no
26129  if test x$gcc_cv_as != x; then
26130    $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
26131    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26132  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26133  (eval $ac_try) 2>&5
26134  ac_status=$?
26135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26136  test $ac_status = 0; }; }
26137    then
26138	if test x$gcc_cv_ld != x \
26139	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26140	   gcc_cv_as_ix86_tlsgdplt=yes
26141	 fi
26142	 rm -f conftest
26143    else
26144      echo "configure: failed program was" >&5
26145      cat conftest.s >&5
26146    fi
26147    rm -f conftest.o conftest.s
26148  fi
26149fi
26150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26151$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26152if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26153
26154$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26155
26156fi
26157
26158
26159    conftest_s='
26160	.section .tdata,"aw'$tls_section_flag'",@progbits
26161tls_ld:
26162	.section .text,"ax",@progbits
26163	 call    tls_ld@tlsldmplt'
26164
26165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26166$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26167if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26168  $as_echo_n "(cached) " >&6
26169else
26170  gcc_cv_as_ix86_tlsldmplt=no
26171  if test x$gcc_cv_as != x; then
26172    $as_echo "$conftest_s" > conftest.s
26173    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26174  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26175  (eval $ac_try) 2>&5
26176  ac_status=$?
26177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26178  test $ac_status = 0; }; }
26179    then
26180	if test x$gcc_cv_ld != x \
26181	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26182	   gcc_cv_as_ix86_tlsldmplt=yes
26183	 fi
26184	 rm -f conftest
26185    else
26186      echo "configure: failed program was" >&5
26187      cat conftest.s >&5
26188    fi
26189    rm -f conftest.o conftest.s
26190  fi
26191fi
26192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26193$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26194
26195
26196
26197cat >>confdefs.h <<_ACEOF
26198#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26199_ACEOF
26200
26201
26202    conftest_s='
26203	.section .text,"ax",@progbits
26204        .globl  _start
26205        .type   _start, @function
26206_start:
26207	leal	value@tlsldm(%ebx), %eax
26208	call	___tls_get_addr@plt
26209
26210        .section .tdata,"aw'$tls_section_flag'",@progbits
26211        .type	value, @object
26212value:'
26213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26214$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26215if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26216  $as_echo_n "(cached) " >&6
26217else
26218  gcc_cv_as_ix86_tlsldm=no
26219  if test x$gcc_cv_as != x; then
26220    $as_echo "$conftest_s" > conftest.s
26221    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26222  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26223  (eval $ac_try) 2>&5
26224  ac_status=$?
26225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26226  test $ac_status = 0; }; }
26227    then
26228	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26229	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26230	   if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26231	      || dis conftest 2>/dev/null | grep nop > /dev/null; then
26232	     gcc_cv_as_ix86_tlsldm=yes
26233	   fi
26234	 fi
26235	 rm -f conftest
26236    else
26237      echo "configure: failed program was" >&5
26238      cat conftest.s >&5
26239    fi
26240    rm -f conftest.o conftest.s
26241  fi
26242fi
26243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26244$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26245
26246
26247
26248cat >>confdefs.h <<_ACEOF
26249#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26250_ACEOF
26251
26252
26253    conftest_s='
26254	.data
26255bar:
26256	.byte 1
26257	.text
26258	.global _start
26259_start:
26260	 cmpl $0, bar@GOT
26261	 jmp *_start@GOT'
26262    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26263$as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26264if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26265  $as_echo_n "(cached) " >&6
26266else
26267  gcc_cv_as_ix86_got32x=no
26268  if test x$gcc_cv_as != x; then
26269    $as_echo "$conftest_s" > conftest.s
26270    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26271  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26272  (eval $ac_try) 2>&5
26273  ac_status=$?
26274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26275  test $ac_status = 0; }; }
26276    then
26277	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26278	    && test x$gcc_cv_readelf != x \
26279	    && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26280	       | grep R_386_GOT32X > /dev/null 2>&1 \
26281	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26282	   if $gcc_cv_objdump -dw conftest 2>&1 \
26283	      | grep 0xffffff > /dev/null 2>&1; then
26284	     gcc_cv_as_ix86_got32x=no
26285	   else
26286	     gcc_cv_as_ix86_got32x=yes
26287	   fi
26288	 fi
26289	 rm -f conftest
26290    else
26291      echo "configure: failed program was" >&5
26292      cat conftest.s >&5
26293    fi
26294    rm -f conftest.o conftest.s
26295  fi
26296fi
26297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26298$as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26299
26300
26301
26302cat >>confdefs.h <<_ACEOF
26303#define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26304_ACEOF
26305
26306
26307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26308$as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26309if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26310  $as_echo_n "(cached) " >&6
26311else
26312  gcc_cv_as_ix86_gotoff_in_data=no
26313    if test $in_tree_gas = yes; then
26314    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26315  then gcc_cv_as_ix86_gotoff_in_data=yes
26316fi
26317  elif test x$gcc_cv_as != x; then
26318    $as_echo '	.text
26319.L0:
26320	nop
26321	.data
26322	.long .L0@GOTOFF' > conftest.s
26323    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26324  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26325  (eval $ac_try) 2>&5
26326  ac_status=$?
26327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26328  test $ac_status = 0; }; }
26329    then
26330	gcc_cv_as_ix86_gotoff_in_data=yes
26331    else
26332      echo "configure: failed program was" >&5
26333      cat conftest.s >&5
26334    fi
26335    rm -f conftest.o conftest.s
26336  fi
26337fi
26338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26339$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26340
26341
26342
26343cat >>confdefs.h <<_ACEOF
26344#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26345_ACEOF
26346
26347
26348    conftest_s='
26349	.section .text,"ax",@progbits
26350	.globl  _start
26351	.type   _start, @function
26352_start:
26353	leal	ld@tlsldm(%ecx), %eax
26354	call	*___tls_get_addr@GOT(%ecx)
26355	leal	gd@tlsgd(%ecx), %eax
26356	call	*___tls_get_addr@GOT(%ecx)
26357
26358	.section .tdata,"aw'$tls_section_flag'",@progbits
26359	.type	ld, @object
26360ld:
26361	.byte 0
26362	.globl  gd
26363	.type	gd, @object
26364gd:
26365	.byte 0'
26366    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26367$as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26368if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26369  $as_echo_n "(cached) " >&6
26370else
26371  gcc_cv_as_ix86_tls_get_addr_via_got=no
26372  if test x$gcc_cv_as != x; then
26373    $as_echo "$conftest_s" > conftest.s
26374    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26375  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26376  (eval $ac_try) 2>&5
26377  ac_status=$?
26378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26379  test $ac_status = 0; }; }
26380    then
26381	if test x$gcc_cv_ld != x \
26382	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26383	   gcc_cv_as_ix86_tls_get_addr_via_got=yes
26384	 fi
26385	 rm -f conftest
26386    else
26387      echo "configure: failed program was" >&5
26388      cat conftest.s >&5
26389    fi
26390    rm -f conftest.o conftest.s
26391  fi
26392fi
26393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26394$as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26395
26396
26397
26398cat >>confdefs.h <<_ACEOF
26399#define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26400_ACEOF
26401
26402    ;;
26403
26404  ia64*-*-*)
26405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26406$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26407if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26408  $as_echo_n "(cached) " >&6
26409else
26410  gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26411    if test $in_tree_gas = yes; then
26412    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26413  then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26414fi
26415  elif test x$gcc_cv_as != x; then
26416    $as_echo '	.text
26417	addl r15 = @ltoffx(x#), gp
26418	;;
26419	ld8.mov r16 = [r15], x#' > conftest.s
26420    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26421  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26422  (eval $ac_try) 2>&5
26423  ac_status=$?
26424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26425  test $ac_status = 0; }; }
26426    then
26427	gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26428    else
26429      echo "configure: failed program was" >&5
26430      cat conftest.s >&5
26431    fi
26432    rm -f conftest.o conftest.s
26433  fi
26434fi
26435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26436$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26437if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26438
26439$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26440
26441fi
26442
26443
26444    ;;
26445
26446  powerpc*-*-*)
26447
26448    case $target in
26449      *-*-darwin*)
26450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26451$as_echo_n "checking assembler for .machine directive support... " >&6; }
26452if test "${gcc_cv_as_machine_directive+set}" = set; then :
26453  $as_echo_n "(cached) " >&6
26454else
26455  gcc_cv_as_machine_directive=no
26456  if test x$gcc_cv_as != x; then
26457    $as_echo '	.machine ppc7400' > conftest.s
26458    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26459  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26460  (eval $ac_try) 2>&5
26461  ac_status=$?
26462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26463  test $ac_status = 0; }; }
26464    then
26465	gcc_cv_as_machine_directive=yes
26466    else
26467      echo "configure: failed program was" >&5
26468      cat conftest.s >&5
26469    fi
26470    rm -f conftest.o conftest.s
26471  fi
26472fi
26473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26474$as_echo "$gcc_cv_as_machine_directive" >&6; }
26475
26476
26477	if test x$gcc_cv_as_machine_directive != xyes; then
26478	  echo "*** This target requires an assembler supporting \".machine\"" >&2
26479	  echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26480	  test x$build = x$target && exit 1
26481	fi
26482        ;;
26483    esac
26484
26485    case $target in
26486      *-*-aix*) conftest_s='	.machine "pwr5"
26487	.csect .text[PR]
26488	mfcr 3,128';;
26489      *-*-darwin*) conftest_s='	.text
26490	mfcr r3,128';;
26491      *) conftest_s='	.machine power4
26492	.text
26493	mfcr 3,128';;
26494    esac
26495
26496    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26497$as_echo_n "checking assembler for mfcr field support... " >&6; }
26498if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26499  $as_echo_n "(cached) " >&6
26500else
26501  gcc_cv_as_powerpc_mfcrf=no
26502    if test $in_tree_gas = yes; then
26503    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26504  then gcc_cv_as_powerpc_mfcrf=yes
26505fi
26506  elif test x$gcc_cv_as != x; then
26507    $as_echo "$conftest_s" > conftest.s
26508    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26509  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26510  (eval $ac_try) 2>&5
26511  ac_status=$?
26512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26513  test $ac_status = 0; }; }
26514    then
26515	gcc_cv_as_powerpc_mfcrf=yes
26516    else
26517      echo "configure: failed program was" >&5
26518      cat conftest.s >&5
26519    fi
26520    rm -f conftest.o conftest.s
26521  fi
26522fi
26523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26524$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26525if test $gcc_cv_as_powerpc_mfcrf = yes; then
26526
26527$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26528
26529fi
26530
26531
26532    case $target in
26533      *-*-aix*) conftest_s='	.machine "pwr5"
26534	.csect .text[PR]
26535	popcntb 3,3';;
26536      *) conftest_s='	.machine power5
26537	.text
26538	popcntb 3,3';;
26539    esac
26540
26541    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26542$as_echo_n "checking assembler for popcntb support... " >&6; }
26543if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26544  $as_echo_n "(cached) " >&6
26545else
26546  gcc_cv_as_powerpc_popcntb=no
26547    if test $in_tree_gas = yes; then
26548    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26549  then gcc_cv_as_powerpc_popcntb=yes
26550fi
26551  elif test x$gcc_cv_as != x; then
26552    $as_echo "$conftest_s" > conftest.s
26553    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26554  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26555  (eval $ac_try) 2>&5
26556  ac_status=$?
26557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26558  test $ac_status = 0; }; }
26559    then
26560	gcc_cv_as_powerpc_popcntb=yes
26561    else
26562      echo "configure: failed program was" >&5
26563      cat conftest.s >&5
26564    fi
26565    rm -f conftest.o conftest.s
26566  fi
26567fi
26568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26569$as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26570if test $gcc_cv_as_powerpc_popcntb = yes; then
26571
26572$as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26573
26574fi
26575
26576
26577    case $target in
26578      *-*-aix*) conftest_s='	.machine "pwr5x"
26579	.csect .text[PR]
26580	frin 1,1';;
26581      *) conftest_s='	.machine power5
26582	.text
26583	frin 1,1';;
26584    esac
26585
26586    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26587$as_echo_n "checking assembler for fp round support... " >&6; }
26588if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26589  $as_echo_n "(cached) " >&6
26590else
26591  gcc_cv_as_powerpc_fprnd=no
26592    if test $in_tree_gas = yes; then
26593    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26594  then gcc_cv_as_powerpc_fprnd=yes
26595fi
26596  elif test x$gcc_cv_as != x; then
26597    $as_echo "$conftest_s" > conftest.s
26598    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26599  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26600  (eval $ac_try) 2>&5
26601  ac_status=$?
26602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26603  test $ac_status = 0; }; }
26604    then
26605	gcc_cv_as_powerpc_fprnd=yes
26606    else
26607      echo "configure: failed program was" >&5
26608      cat conftest.s >&5
26609    fi
26610    rm -f conftest.o conftest.s
26611  fi
26612fi
26613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26614$as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26615if test $gcc_cv_as_powerpc_fprnd = yes; then
26616
26617$as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26618
26619fi
26620
26621
26622    case $target in
26623      *-*-aix*) conftest_s='	.machine "pwr6"
26624	.csect .text[PR]
26625	mffgpr 1,3';;
26626      *) conftest_s='	.machine power6
26627	.text
26628	mffgpr 1,3';;
26629    esac
26630
26631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26632$as_echo_n "checking assembler for move fp gpr support... " >&6; }
26633if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26634  $as_echo_n "(cached) " >&6
26635else
26636  gcc_cv_as_powerpc_mfpgpr=no
26637    if test $in_tree_gas = yes; then
26638    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26639  then gcc_cv_as_powerpc_mfpgpr=yes
26640fi
26641  elif test x$gcc_cv_as != x; then
26642    $as_echo "$conftest_s" > conftest.s
26643    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26644  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26645  (eval $ac_try) 2>&5
26646  ac_status=$?
26647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26648  test $ac_status = 0; }; }
26649    then
26650	gcc_cv_as_powerpc_mfpgpr=yes
26651    else
26652      echo "configure: failed program was" >&5
26653      cat conftest.s >&5
26654    fi
26655    rm -f conftest.o conftest.s
26656  fi
26657fi
26658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26659$as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26660if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26661
26662$as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26663
26664fi
26665
26666
26667    case $target in
26668      *-*-aix*) conftest_s='	.csect .text[PR]
26669LCF..0:
26670	addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26671      *-*-darwin*)
26672	conftest_s='	.text
26673LCF0:
26674	addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26675      *) conftest_s='	.text
26676.LCF0:
26677	addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26678    esac
26679
26680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26681$as_echo_n "checking assembler for rel16 relocs... " >&6; }
26682if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26683  $as_echo_n "(cached) " >&6
26684else
26685  gcc_cv_as_powerpc_rel16=no
26686    if test $in_tree_gas = yes; then
26687    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26688  then gcc_cv_as_powerpc_rel16=yes
26689fi
26690  elif test x$gcc_cv_as != x; then
26691    $as_echo "$conftest_s" > conftest.s
26692    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26693  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26694  (eval $ac_try) 2>&5
26695  ac_status=$?
26696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26697  test $ac_status = 0; }; }
26698    then
26699	gcc_cv_as_powerpc_rel16=yes
26700    else
26701      echo "configure: failed program was" >&5
26702      cat conftest.s >&5
26703    fi
26704    rm -f conftest.o conftest.s
26705  fi
26706fi
26707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26708$as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26709if test $gcc_cv_as_powerpc_rel16 = yes; then
26710
26711$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26712
26713fi
26714
26715
26716    case $target in
26717      *-*-aix*) conftest_s='	.machine "pwr6"
26718	.csect .text[PR]
26719	cmpb 3,4,5';;
26720      *) conftest_s='	.machine power6
26721	.text
26722	cmpb 3,4,5';;
26723    esac
26724
26725    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26726$as_echo_n "checking assembler for compare bytes support... " >&6; }
26727if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26728  $as_echo_n "(cached) " >&6
26729else
26730  gcc_cv_as_powerpc_cmpb=no
26731    if test $in_tree_gas = yes; then
26732    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26733  then gcc_cv_as_powerpc_cmpb=yes
26734fi
26735  elif test x$gcc_cv_as != x; then
26736    $as_echo "$conftest_s" > conftest.s
26737    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26738  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26739  (eval $ac_try) 2>&5
26740  ac_status=$?
26741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26742  test $ac_status = 0; }; }
26743    then
26744	gcc_cv_as_powerpc_cmpb=yes
26745    else
26746      echo "configure: failed program was" >&5
26747      cat conftest.s >&5
26748    fi
26749    rm -f conftest.o conftest.s
26750  fi
26751fi
26752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26753$as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26754if test $gcc_cv_as_powerpc_cmpb = yes; then
26755
26756$as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26757
26758fi
26759
26760
26761    case $target in
26762      *-*-aix*) conftest_s='	.machine "pwr6"
26763	.csect .text[PR]
26764	dadd 1,2,3';;
26765      *) conftest_s='	.machine power6
26766	.text
26767	dadd 1,2,3';;
26768    esac
26769
26770    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26771$as_echo_n "checking assembler for decimal float support... " >&6; }
26772if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26773  $as_echo_n "(cached) " >&6
26774else
26775  gcc_cv_as_powerpc_dfp=no
26776    if test $in_tree_gas = yes; then
26777    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26778  then gcc_cv_as_powerpc_dfp=yes
26779fi
26780  elif test x$gcc_cv_as != x; then
26781    $as_echo "$conftest_s" > conftest.s
26782    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26783  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26784  (eval $ac_try) 2>&5
26785  ac_status=$?
26786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26787  test $ac_status = 0; }; }
26788    then
26789	gcc_cv_as_powerpc_dfp=yes
26790    else
26791      echo "configure: failed program was" >&5
26792      cat conftest.s >&5
26793    fi
26794    rm -f conftest.o conftest.s
26795  fi
26796fi
26797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26798$as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26799if test $gcc_cv_as_powerpc_dfp = yes; then
26800
26801$as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26802
26803fi
26804
26805
26806    case $target in
26807      *-*-aix*) conftest_s='	.machine "pwr7"
26808	.csect .text[PR]
26809	lxvd2x 1,2,3';;
26810      *) conftest_s='	.machine power7
26811	.text
26812	lxvd2x 1,2,3';;
26813    esac
26814
26815    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26816$as_echo_n "checking assembler for vector-scalar support... " >&6; }
26817if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26818  $as_echo_n "(cached) " >&6
26819else
26820  gcc_cv_as_powerpc_vsx=no
26821    if test $in_tree_gas = yes; then
26822    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26823  then gcc_cv_as_powerpc_vsx=yes
26824fi
26825  elif test x$gcc_cv_as != x; then
26826    $as_echo "$conftest_s" > conftest.s
26827    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26828  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26829  (eval $ac_try) 2>&5
26830  ac_status=$?
26831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26832  test $ac_status = 0; }; }
26833    then
26834	gcc_cv_as_powerpc_vsx=yes
26835    else
26836      echo "configure: failed program was" >&5
26837      cat conftest.s >&5
26838    fi
26839    rm -f conftest.o conftest.s
26840  fi
26841fi
26842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26843$as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26844if test $gcc_cv_as_powerpc_vsx = yes; then
26845
26846$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26847
26848fi
26849
26850
26851    case $target in
26852      *-*-aix*) conftest_s='	.machine "pwr7"
26853	.csect .text[PR]
26854	popcntd 3,3';;
26855      *) conftest_s='	.machine power7
26856	.text
26857	popcntd 3,3';;
26858    esac
26859
26860    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26861$as_echo_n "checking assembler for popcntd support... " >&6; }
26862if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26863  $as_echo_n "(cached) " >&6
26864else
26865  gcc_cv_as_powerpc_popcntd=no
26866    if test $in_tree_gas = yes; then
26867    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26868  then gcc_cv_as_powerpc_popcntd=yes
26869fi
26870  elif test x$gcc_cv_as != x; then
26871    $as_echo "$conftest_s" > conftest.s
26872    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26873  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26874  (eval $ac_try) 2>&5
26875  ac_status=$?
26876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26877  test $ac_status = 0; }; }
26878    then
26879	gcc_cv_as_powerpc_popcntd=yes
26880    else
26881      echo "configure: failed program was" >&5
26882      cat conftest.s >&5
26883    fi
26884    rm -f conftest.o conftest.s
26885  fi
26886fi
26887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26888$as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26889if test $gcc_cv_as_powerpc_popcntd = yes; then
26890
26891$as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26892
26893fi
26894
26895
26896    case $target in
26897      *-*-aix*) conftest_s='	.machine "pwr8"
26898	.csect .text[PR]';;
26899      *) conftest_s='	.machine power8
26900	.text';;
26901    esac
26902
26903    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26904$as_echo_n "checking assembler for power8 support... " >&6; }
26905if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26906  $as_echo_n "(cached) " >&6
26907else
26908  gcc_cv_as_powerpc_power8=no
26909    if test $in_tree_gas = yes; then
26910    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26911  then gcc_cv_as_powerpc_power8=yes
26912fi
26913  elif test x$gcc_cv_as != x; then
26914    $as_echo "$conftest_s" > conftest.s
26915    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26916  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26917  (eval $ac_try) 2>&5
26918  ac_status=$?
26919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26920  test $ac_status = 0; }; }
26921    then
26922	gcc_cv_as_powerpc_power8=yes
26923    else
26924      echo "configure: failed program was" >&5
26925      cat conftest.s >&5
26926    fi
26927    rm -f conftest.o conftest.s
26928  fi
26929fi
26930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26931$as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26932if test $gcc_cv_as_powerpc_power8 = yes; then
26933
26934$as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26935
26936fi
26937
26938
26939    case $target in
26940      *-*-aix*) conftest_s='	.machine "pwr9"
26941	.csect .text[PR]';;
26942      *) conftest_s='	.machine power9
26943	.text';;
26944    esac
26945
26946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26947$as_echo_n "checking assembler for power9 support... " >&6; }
26948if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26949  $as_echo_n "(cached) " >&6
26950else
26951  gcc_cv_as_powerpc_power9=no
26952    if test $in_tree_gas = yes; then
26953    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26954  then gcc_cv_as_powerpc_power9=yes
26955fi
26956  elif test x$gcc_cv_as != x; then
26957    $as_echo "$conftest_s" > conftest.s
26958    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26959  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26960  (eval $ac_try) 2>&5
26961  ac_status=$?
26962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26963  test $ac_status = 0; }; }
26964    then
26965	gcc_cv_as_powerpc_power9=yes
26966    else
26967      echo "configure: failed program was" >&5
26968      cat conftest.s >&5
26969    fi
26970    rm -f conftest.o conftest.s
26971  fi
26972fi
26973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26974$as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26975if test $gcc_cv_as_powerpc_power9 = yes; then
26976
26977$as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26978
26979fi
26980
26981
26982    case $target in
26983      *-*-aix*) conftest_s='	.csect .text[PR]
26984	lwsync';;
26985      *) conftest_s='	.text
26986	lwsync';;
26987    esac
26988
26989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26990$as_echo_n "checking assembler for lwsync support... " >&6; }
26991if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26992  $as_echo_n "(cached) " >&6
26993else
26994  gcc_cv_as_powerpc_lwsync=no
26995    if test $in_tree_gas = yes; then
26996    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26997  then gcc_cv_as_powerpc_lwsync=yes
26998fi
26999  elif test x$gcc_cv_as != x; then
27000    $as_echo "$conftest_s" > conftest.s
27001    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27002  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27003  (eval $ac_try) 2>&5
27004  ac_status=$?
27005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27006  test $ac_status = 0; }; }
27007    then
27008	gcc_cv_as_powerpc_lwsync=yes
27009    else
27010      echo "configure: failed program was" >&5
27011      cat conftest.s >&5
27012    fi
27013    rm -f conftest.o conftest.s
27014  fi
27015fi
27016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
27017$as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
27018if test $gcc_cv_as_powerpc_lwsync = yes; then
27019
27020$as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
27021
27022fi
27023
27024
27025    case $target in
27026      *-*-aix*) conftest_s='	.machine "476"
27027	.csect .text[PR]
27028	dci 0';;
27029      *) conftest_s='	.machine "476"
27030	.text
27031	dci 0';;
27032    esac
27033
27034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
27035$as_echo_n "checking assembler for data cache invalidate support... " >&6; }
27036if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
27037  $as_echo_n "(cached) " >&6
27038else
27039  gcc_cv_as_powerpc_dci=no
27040    if test $in_tree_gas = yes; then
27041    if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
27042  then gcc_cv_as_powerpc_dci=yes
27043fi
27044  elif test x$gcc_cv_as != x; then
27045    $as_echo "$conftest_s" > conftest.s
27046    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27047  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27048  (eval $ac_try) 2>&5
27049  ac_status=$?
27050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27051  test $ac_status = 0; }; }
27052    then
27053	gcc_cv_as_powerpc_dci=yes
27054    else
27055      echo "configure: failed program was" >&5
27056      cat conftest.s >&5
27057    fi
27058    rm -f conftest.o conftest.s
27059  fi
27060fi
27061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
27062$as_echo "$gcc_cv_as_powerpc_dci" >&6; }
27063if test $gcc_cv_as_powerpc_dci = yes; then
27064
27065$as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
27066
27067fi
27068
27069
27070    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27071$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27072if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
27073  $as_echo_n "(cached) " >&6
27074else
27075  gcc_cv_as_powerpc_gnu_attribute=no
27076    if test $in_tree_gas = yes; then
27077    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27078  then gcc_cv_as_powerpc_gnu_attribute=yes
27079fi
27080  elif test x$gcc_cv_as != x; then
27081    $as_echo '.gnu_attribute 4,1' > conftest.s
27082    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27083  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27084  (eval $ac_try) 2>&5
27085  ac_status=$?
27086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27087  test $ac_status = 0; }; }
27088    then
27089	gcc_cv_as_powerpc_gnu_attribute=yes
27090    else
27091      echo "configure: failed program was" >&5
27092      cat conftest.s >&5
27093    fi
27094    rm -f conftest.o conftest.s
27095  fi
27096fi
27097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27098$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27099if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27100
27101$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27102
27103fi
27104
27105
27106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27107$as_echo_n "checking assembler for tls marker support... " >&6; }
27108if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
27109  $as_echo_n "(cached) " >&6
27110else
27111  gcc_cv_as_powerpc_tls_markers=no
27112    if test $in_tree_gas = yes; then
27113    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27114  then gcc_cv_as_powerpc_tls_markers=yes
27115fi
27116  elif test x$gcc_cv_as != x; then
27117    $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27118    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27119  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27120  (eval $ac_try) 2>&5
27121  ac_status=$?
27122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27123  test $ac_status = 0; }; }
27124    then
27125	gcc_cv_as_powerpc_tls_markers=yes
27126    else
27127      echo "configure: failed program was" >&5
27128      cat conftest.s >&5
27129    fi
27130    rm -f conftest.o conftest.s
27131  fi
27132fi
27133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27134$as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27135if test $gcc_cv_as_powerpc_tls_markers = yes; then
27136
27137$as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27138
27139fi
27140
27141
27142    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27143$as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27144if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
27145  $as_echo_n "(cached) " >&6
27146else
27147  gcc_cv_as_powerpc_entry_markers=no
27148    if test $in_tree_gas = yes; then
27149    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27150  then gcc_cv_as_powerpc_entry_markers=yes
27151fi
27152  elif test x$gcc_cv_as != x; then
27153    $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27154    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27155  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27156  (eval $ac_try) 2>&5
27157  ac_status=$?
27158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27159  test $ac_status = 0; }; }
27160    then
27161	gcc_cv_as_powerpc_entry_markers=yes
27162    else
27163      echo "configure: failed program was" >&5
27164      cat conftest.s >&5
27165    fi
27166    rm -f conftest.o conftest.s
27167  fi
27168fi
27169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27170$as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27171if test $gcc_cv_as_powerpc_entry_markers = yes; then
27172
27173$as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27174
27175fi
27176
27177
27178    case $target in
27179      *-*-aix*)
27180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27181$as_echo_n "checking assembler for AIX .ref support... " >&6; }
27182if test "${gcc_cv_as_aix_ref+set}" = set; then :
27183  $as_echo_n "(cached) " >&6
27184else
27185  gcc_cv_as_aix_ref=no
27186    if test $in_tree_gas = yes; then
27187    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27188  then gcc_cv_as_aix_ref=yes
27189fi
27190  elif test x$gcc_cv_as != x; then
27191    $as_echo '	.csect stuff[rw]
27192	     stuff:
27193		.long 1
27194		.extern sym
27195		.ref sym
27196	  ' > conftest.s
27197    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27198  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27199  (eval $ac_try) 2>&5
27200  ac_status=$?
27201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27202  test $ac_status = 0; }; }
27203    then
27204	gcc_cv_as_aix_ref=yes
27205    else
27206      echo "configure: failed program was" >&5
27207      cat conftest.s >&5
27208    fi
27209    rm -f conftest.o conftest.s
27210  fi
27211fi
27212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27213$as_echo "$gcc_cv_as_aix_ref" >&6; }
27214if test $gcc_cv_as_aix_ref = yes; then
27215
27216$as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27217
27218fi
27219
27220
27221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27222$as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27223if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
27224  $as_echo_n "(cached) " >&6
27225else
27226  gcc_cv_as_aix_dwloc=no
27227    if test $in_tree_gas = yes; then
27228    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27229  then gcc_cv_as_aix_dwloc=yes
27230fi
27231  elif test x$gcc_cv_as != x; then
27232    $as_echo '	.dwsect 0xA0000
27233	Lframe..0:
27234		.vbyte 4,Lframe..0
27235	  ' > conftest.s
27236    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27237  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27238  (eval $ac_try) 2>&5
27239  ac_status=$?
27240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27241  test $ac_status = 0; }; }
27242    then
27243	gcc_cv_as_aix_dwloc=yes
27244    else
27245      echo "configure: failed program was" >&5
27246      cat conftest.s >&5
27247    fi
27248    rm -f conftest.o conftest.s
27249  fi
27250fi
27251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27252$as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27253if test $gcc_cv_as_aix_dwloc = yes; then
27254
27255$as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27256
27257fi
27258
27259	;;
27260    esac
27261    ;;
27262
27263  mips*-*-*)
27264    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27265$as_echo_n "checking assembler for explicit relocation support... " >&6; }
27266if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27267  $as_echo_n "(cached) " >&6
27268else
27269  gcc_cv_as_mips_explicit_relocs=no
27270    if test $in_tree_gas = yes; then
27271    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27272  then gcc_cv_as_mips_explicit_relocs=yes
27273fi
27274  elif test x$gcc_cv_as != x; then
27275    $as_echo '	lw $4,%gp_rel(foo)($4)' > conftest.s
27276    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27277  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27278  (eval $ac_try) 2>&5
27279  ac_status=$?
27280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27281  test $ac_status = 0; }; }
27282    then
27283	gcc_cv_as_mips_explicit_relocs=yes
27284    else
27285      echo "configure: failed program was" >&5
27286      cat conftest.s >&5
27287    fi
27288    rm -f conftest.o conftest.s
27289  fi
27290fi
27291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27292$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27293if test $gcc_cv_as_mips_explicit_relocs = yes; then
27294  if test x$target_cpu_default = x
27295       then target_cpu_default=MASK_EXPLICIT_RELOCS
27296       else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27297       fi
27298fi
27299
27300
27301    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27302$as_echo_n "checking assembler for -mno-shared support... " >&6; }
27303if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27304  $as_echo_n "(cached) " >&6
27305else
27306  gcc_cv_as_mips_no_shared=no
27307    if test $in_tree_gas = yes; then
27308    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27309  then gcc_cv_as_mips_no_shared=yes
27310fi
27311  elif test x$gcc_cv_as != x; then
27312    $as_echo 'nop' > conftest.s
27313    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27314  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27315  (eval $ac_try) 2>&5
27316  ac_status=$?
27317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27318  test $ac_status = 0; }; }
27319    then
27320	gcc_cv_as_mips_no_shared=yes
27321    else
27322      echo "configure: failed program was" >&5
27323      cat conftest.s >&5
27324    fi
27325    rm -f conftest.o conftest.s
27326  fi
27327fi
27328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27329$as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27330if test $gcc_cv_as_mips_no_shared = yes; then
27331
27332$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27333
27334fi
27335
27336
27337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27338$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27339if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27340  $as_echo_n "(cached) " >&6
27341else
27342  gcc_cv_as_mips_gnu_attribute=no
27343    if test $in_tree_gas = yes; then
27344    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27345  then gcc_cv_as_mips_gnu_attribute=yes
27346fi
27347  elif test x$gcc_cv_as != x; then
27348    $as_echo '.gnu_attribute 4,1' > conftest.s
27349    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27350  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27351  (eval $ac_try) 2>&5
27352  ac_status=$?
27353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27354  test $ac_status = 0; }; }
27355    then
27356	gcc_cv_as_mips_gnu_attribute=yes
27357    else
27358      echo "configure: failed program was" >&5
27359      cat conftest.s >&5
27360    fi
27361    rm -f conftest.o conftest.s
27362  fi
27363fi
27364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27365$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27366if test $gcc_cv_as_mips_gnu_attribute = yes; then
27367
27368$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27369
27370fi
27371
27372
27373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27374$as_echo_n "checking assembler for .module support... " >&6; }
27375if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27376  $as_echo_n "(cached) " >&6
27377else
27378  gcc_cv_as_mips_dot_module=no
27379  if test x$gcc_cv_as != x; then
27380    $as_echo '.module mips2
27381       .module fp=xx' > conftest.s
27382    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27383  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27384  (eval $ac_try) 2>&5
27385  ac_status=$?
27386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27387  test $ac_status = 0; }; }
27388    then
27389	gcc_cv_as_mips_dot_module=yes
27390    else
27391      echo "configure: failed program was" >&5
27392      cat conftest.s >&5
27393    fi
27394    rm -f conftest.o conftest.s
27395  fi
27396fi
27397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27398$as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27399if test $gcc_cv_as_mips_dot_module = yes; then
27400
27401$as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27402
27403fi
27404
27405    if test x$gcc_cv_as_mips_dot_module = xno \
27406       && test x$with_fp_32 != x; then
27407      as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27408    fi
27409
27410    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27411$as_echo_n "checking assembler for .micromips support... " >&6; }
27412if test "${gcc_cv_as_micromips_support+set}" = set; then :
27413  $as_echo_n "(cached) " >&6
27414else
27415  gcc_cv_as_micromips_support=no
27416  if test x$gcc_cv_as != x; then
27417    $as_echo '.set micromips' > conftest.s
27418    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27419  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27420  (eval $ac_try) 2>&5
27421  ac_status=$?
27422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27423  test $ac_status = 0; }; }
27424    then
27425	gcc_cv_as_micromips_support=yes
27426    else
27427      echo "configure: failed program was" >&5
27428      cat conftest.s >&5
27429    fi
27430    rm -f conftest.o conftest.s
27431  fi
27432fi
27433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27434$as_echo "$gcc_cv_as_micromips_support" >&6; }
27435if test $gcc_cv_as_micromips_support = yes; then
27436
27437$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27438
27439fi
27440
27441
27442    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27443$as_echo_n "checking assembler for .dtprelword support... " >&6; }
27444if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27445  $as_echo_n "(cached) " >&6
27446else
27447  gcc_cv_as_mips_dtprelword=no
27448    if test $in_tree_gas = yes; then
27449    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27450  then gcc_cv_as_mips_dtprelword=yes
27451fi
27452  elif test x$gcc_cv_as != x; then
27453    $as_echo '.section .tdata,"awT",@progbits
27454x:
27455	.word 2
27456	.text
27457	.dtprelword x+0x8000' > conftest.s
27458    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27459  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27460  (eval $ac_try) 2>&5
27461  ac_status=$?
27462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27463  test $ac_status = 0; }; }
27464    then
27465	gcc_cv_as_mips_dtprelword=yes
27466    else
27467      echo "configure: failed program was" >&5
27468      cat conftest.s >&5
27469    fi
27470    rm -f conftest.o conftest.s
27471  fi
27472fi
27473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27474$as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27475if test $gcc_cv_as_mips_dtprelword = yes; then
27476
27477$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27478
27479fi
27480
27481
27482    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27483$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27484if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27485  $as_echo_n "(cached) " >&6
27486else
27487  gcc_cv_as_mips_dspr1_mult=no
27488  if test x$gcc_cv_as != x; then
27489    $as_echo '	.set	mips32r2
27490	.set	nodspr2
27491	.set	dsp
27492	madd	$ac3,$4,$5
27493	maddu	$ac3,$4,$5
27494	msub	$ac3,$4,$5
27495	msubu	$ac3,$4,$5
27496	mult	$ac3,$4,$5
27497	multu	$ac3,$4,$5' > conftest.s
27498    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27499  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27500  (eval $ac_try) 2>&5
27501  ac_status=$?
27502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27503  test $ac_status = 0; }; }
27504    then
27505	gcc_cv_as_mips_dspr1_mult=yes
27506    else
27507      echo "configure: failed program was" >&5
27508      cat conftest.s >&5
27509    fi
27510    rm -f conftest.o conftest.s
27511  fi
27512fi
27513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27514$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27515if test $gcc_cv_as_mips_dspr1_mult = yes; then
27516
27517$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27518
27519fi
27520
27521
27522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27523$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27524    gcc_cv_as_ld_jalr_reloc=no
27525    if test $gcc_cv_as_mips_explicit_relocs = yes; then
27526      if test $in_tree_ld = yes ; then
27527        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 \
27528           && test $in_tree_ld_is_elf = yes; then
27529          gcc_cv_as_ld_jalr_reloc=yes
27530        fi
27531      elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27532        echo '	.ent x' > conftest.s
27533        echo 'x:	lw $2,%got_disp(y)($3)' >> conftest.s
27534        echo '	lw $25,%call16(y)($28)' >> conftest.s
27535        echo '	.reloc	1f,R_MIPS_JALR,y' >> conftest.s
27536        echo '1:	jalr $25' >> conftest.s
27537        echo '	.reloc	1f,R_MIPS_JALR,x' >> conftest.s
27538        echo '1:	jalr $25' >> conftest.s
27539        echo '	.end x' >> conftest.s
27540        if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27541           && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27542	  if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27543	     && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27544            gcc_cv_as_ld_jalr_reloc=yes
27545	  fi
27546        fi
27547        rm -f conftest.*
27548      fi
27549    fi
27550    if test $gcc_cv_as_ld_jalr_reloc = yes; then
27551      if test x$target_cpu_default = x; then
27552        target_cpu_default=MASK_RELAX_PIC_CALLS
27553      else
27554        target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27555      fi
27556    fi
27557    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27558$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27559
27560    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27561$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27562if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27563  $as_echo_n "(cached) " >&6
27564else
27565  gcc_cv_ld_mips_personality_relaxation=no
27566       if test $in_tree_ld = yes ; then
27567	 if test "$gcc_cv_gld_major_version" -eq 2 \
27568		 -a "$gcc_cv_gld_minor_version" -ge 21 \
27569		 -o "$gcc_cv_gld_major_version" -gt 2; then
27570	   gcc_cv_ld_mips_personality_relaxation=yes
27571	 fi
27572       elif test x$gcc_cv_as != x \
27573       	    	 -a x$gcc_cv_ld != x \
27574		 -a x$gcc_cv_readelf != x ; then
27575	 cat > conftest.s <<EOF
27576	.cfi_startproc
27577	.cfi_personality 0x80,indirect_ptr
27578	.ent test
27579test:
27580	nop
27581	.end test
27582	.cfi_endproc
27583
27584	.section .data,"aw",@progbits
27585indirect_ptr:
27586	.dc.a personality
27587EOF
27588	 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27589	    && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27590	   if $gcc_cv_readelf -d conftest 2>&1 \
27591	      | grep TEXTREL > /dev/null 2>&1; then
27592	     :
27593	   elif $gcc_cv_readelf --relocs conftest 2>&1 \
27594	        | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27595	     :
27596	   else
27597	     gcc_cv_ld_mips_personality_relaxation=yes
27598	   fi
27599	 fi
27600       fi
27601       rm -f conftest.s conftest.o conftest
27602fi
27603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27604$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27605    if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27606
27607$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27608
27609    fi
27610
27611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27612$as_echo_n "checking assembler for -mnan= support... " >&6; }
27613if test "${gcc_cv_as_mips_nan+set}" = set; then :
27614  $as_echo_n "(cached) " >&6
27615else
27616  gcc_cv_as_mips_nan=no
27617  if test x$gcc_cv_as != x; then
27618    $as_echo '' > conftest.s
27619    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27620  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27621  (eval $ac_try) 2>&5
27622  ac_status=$?
27623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27624  test $ac_status = 0; }; }
27625    then
27626	gcc_cv_as_mips_nan=yes
27627    else
27628      echo "configure: failed program was" >&5
27629      cat conftest.s >&5
27630    fi
27631    rm -f conftest.o conftest.s
27632  fi
27633fi
27634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27635$as_echo "$gcc_cv_as_mips_nan" >&6; }
27636if test $gcc_cv_as_mips_nan = yes; then
27637
27638$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27639
27640fi
27641
27642    if test x$gcc_cv_as_mips_nan = xno \
27643       && test x$with_nan != x; then
27644      as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27645    fi
27646    ;;
27647    s390*-*-*)
27648    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27649$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27650if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27651  $as_echo_n "(cached) " >&6
27652else
27653  gcc_cv_as_s390_gnu_attribute=no
27654    if test $in_tree_gas = yes; then
27655    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27656  then gcc_cv_as_s390_gnu_attribute=yes
27657fi
27658  elif test x$gcc_cv_as != x; then
27659    $as_echo '.gnu_attribute 8,1' > conftest.s
27660    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27661  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27662  (eval $ac_try) 2>&5
27663  ac_status=$?
27664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27665  test $ac_status = 0; }; }
27666    then
27667	gcc_cv_as_s390_gnu_attribute=yes
27668    else
27669      echo "configure: failed program was" >&5
27670      cat conftest.s >&5
27671    fi
27672    rm -f conftest.o conftest.s
27673  fi
27674fi
27675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27676$as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27677if test $gcc_cv_as_s390_gnu_attribute = yes; then
27678
27679$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27680
27681fi
27682
27683    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27684$as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27685if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27686  $as_echo_n "(cached) " >&6
27687else
27688  gcc_cv_as_s390_machine_machinemode=no
27689    if test $in_tree_gas = yes; then
27690    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27691  then gcc_cv_as_s390_machine_machinemode=yes
27692fi
27693  elif test x$gcc_cv_as != x; then
27694    $as_echo '	.machinemode push
27695	.machinemode pop
27696	.machine push
27697	.machine pop' > conftest.s
27698    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27699  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27700  (eval $ac_try) 2>&5
27701  ac_status=$?
27702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27703  test $ac_status = 0; }; }
27704    then
27705	gcc_cv_as_s390_machine_machinemode=yes
27706    else
27707      echo "configure: failed program was" >&5
27708      cat conftest.s >&5
27709    fi
27710    rm -f conftest.o conftest.s
27711  fi
27712fi
27713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27714$as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27715if test $gcc_cv_as_s390_machine_machinemode = yes; then
27716
27717$as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27718
27719fi
27720
27721    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27722$as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27723if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27724  $as_echo_n "(cached) " >&6
27725else
27726  gcc_cv_as_s390_architecture_modifiers=no
27727    if test $in_tree_gas = yes; then
27728    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27729  then gcc_cv_as_s390_architecture_modifiers=yes
27730fi
27731  elif test x$gcc_cv_as != x; then
27732    $as_echo '	.machine z13+vx ' > conftest.s
27733    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27734  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27735  (eval $ac_try) 2>&5
27736  ac_status=$?
27737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27738  test $ac_status = 0; }; }
27739    then
27740	gcc_cv_as_s390_architecture_modifiers=yes
27741    else
27742      echo "configure: failed program was" >&5
27743      cat conftest.s >&5
27744    fi
27745    rm -f conftest.o conftest.s
27746  fi
27747fi
27748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27749$as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27750if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27751
27752$as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27753
27754fi
27755
27756    ;;
27757esac
27758
27759# Mips and HP-UX need the GNU assembler.
27760# Linux on IA64 might be able to use the Intel assembler.
27761
27762case "$target" in
27763  mips*-*-* | *-*-hpux* )
27764    if test x$gas_flag = xyes \
27765       || test x"$host" != x"$build" \
27766       || test ! -x "$gcc_cv_as" \
27767       || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27768      :
27769    else
27770      echo "*** This configuration requires the GNU assembler" >&2
27771      exit 1
27772    fi
27773    ;;
27774esac
27775
27776# ??? Not all targets support dwarf2 debug_line, even within a version
27777# of gas.  Moreover, we need to emit a valid instruction to trigger any
27778# info to the output file.  So, as supported targets are added to gas 2.11,
27779# add some instruction here to (also) show we expect this might work.
27780# ??? Once 2.11 is released, probably need to add first known working
27781# version to the per-target configury.
27782case "$cpu_type" in
27783  aarch64 | alpha | arc | arm | avr | bfin | cris | i386 | m32c | m68k \
27784  | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27785  | tilegx | tilepro | visium | xstormy16 | xtensa)
27786    insn="nop"
27787    ;;
27788  ia64 | s390)
27789    insn="nop 0"
27790    ;;
27791  mmix)
27792    insn="swym 0"
27793    ;;
27794esac
27795if test x"$insn" != x; then
27796 conftest_s="\
27797	.file 1 \"conftest.s\"
27798	.loc 1 3 0
27799	$insn"
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27801$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27802if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27803  $as_echo_n "(cached) " >&6
27804else
27805  gcc_cv_as_dwarf2_debug_line=no
27806    if test $in_tree_gas = yes; then
27807    if test $in_tree_gas_is_elf = yes \
27808  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27809  then gcc_cv_as_dwarf2_debug_line=yes
27810fi
27811  elif test x$gcc_cv_as != x; then
27812    $as_echo "$conftest_s" > conftest.s
27813    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27814  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27815  (eval $ac_try) 2>&5
27816  ac_status=$?
27817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27818  test $ac_status = 0; }; }
27819    then
27820	if test x$gcc_cv_objdump != x \
27821   && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27822      | grep debug_line > /dev/null 2>&1; then
27823     gcc_cv_as_dwarf2_debug_line=yes
27824   fi
27825    else
27826      echo "configure: failed program was" >&5
27827      cat conftest.s >&5
27828    fi
27829    rm -f conftest.o conftest.s
27830  fi
27831fi
27832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27833$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27834
27835
27836
27837# The .debug_line file table must be in the exact order that
27838# we specified the files, since these indices are also used
27839# by DW_AT_decl_file.  Approximate this test by testing if
27840# the assembler bitches if the same index is assigned twice.
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27842$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27843if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27844  $as_echo_n "(cached) " >&6
27845else
27846  gcc_cv_as_dwarf2_file_buggy=no
27847  if test x$gcc_cv_as != x; then
27848    $as_echo '	.file 1 "foo.s"
27849	.file 1 "bar.s"' > conftest.s
27850    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27851  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27852  (eval $ac_try) 2>&5
27853  ac_status=$?
27854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27855  test $ac_status = 0; }; }
27856    then
27857	gcc_cv_as_dwarf2_file_buggy=yes
27858    else
27859      echo "configure: failed program was" >&5
27860      cat conftest.s >&5
27861    fi
27862    rm -f conftest.o conftest.s
27863  fi
27864fi
27865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27866$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27867
27868
27869
27870 if test $gcc_cv_as_dwarf2_debug_line = yes \
27871 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27872
27873$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27874
27875
27876    if test $gcc_cv_as_leb128 = yes; then
27877	conftest_s="\
27878	.file 1 \"conftest.s\"
27879	.loc 1 3 0 view .LVU1
27880	$insn
27881	.data
27882	.uleb128 .LVU1
27883	.uleb128 .LVU1
27884"
27885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27886$as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27887if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27888  $as_echo_n "(cached) " >&6
27889else
27890  gcc_cv_as_dwarf2_debug_view=no
27891    if test $in_tree_gas = yes; then
27892    if test $in_tree_gas_is_elf = yes \
27893  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27894  then gcc_cv_as_dwarf2_debug_view=yes
27895fi
27896  elif test x$gcc_cv_as != x; then
27897    $as_echo "$conftest_s" > conftest.s
27898    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27899  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27900  (eval $ac_try) 2>&5
27901  ac_status=$?
27902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27903  test $ac_status = 0; }; }
27904    then
27905	gcc_cv_as_dwarf2_debug_view=yes
27906    else
27907      echo "configure: failed program was" >&5
27908      cat conftest.s >&5
27909    fi
27910    rm -f conftest.o conftest.s
27911  fi
27912fi
27913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27914$as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27915if test $gcc_cv_as_dwarf2_debug_view = yes; then
27916
27917$as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27918
27919fi
27920
27921    fi
27922 fi
27923
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27925$as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27926if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27927  $as_echo_n "(cached) " >&6
27928else
27929  gcc_cv_as_gdwarf2_flag=no
27930    if test $in_tree_gas = yes; then
27931    if test $in_tree_gas_is_elf = yes \
27932  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27933  then gcc_cv_as_gdwarf2_flag=yes
27934fi
27935  elif test x$gcc_cv_as != x; then
27936    $as_echo "$insn" > conftest.s
27937    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27938  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27939  (eval $ac_try) 2>&5
27940  ac_status=$?
27941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27942  test $ac_status = 0; }; }
27943    then
27944	gcc_cv_as_gdwarf2_flag=yes
27945    else
27946      echo "configure: failed program was" >&5
27947      cat conftest.s >&5
27948    fi
27949    rm -f conftest.o conftest.s
27950  fi
27951fi
27952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27953$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27954if test $gcc_cv_as_gdwarf2_flag = yes; then
27955
27956$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27957
27958fi
27959
27960
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27962$as_echo_n "checking assembler for --gstabs option... " >&6; }
27963if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27964  $as_echo_n "(cached) " >&6
27965else
27966  gcc_cv_as_gstabs_flag=no
27967    if test $in_tree_gas = yes; then
27968    if test $in_tree_gas_is_elf = yes \
27969  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27970  then gcc_cv_as_gstabs_flag=yes
27971fi
27972  elif test x$gcc_cv_as != x; then
27973    $as_echo "$insn" > conftest.s
27974    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27975  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27976  (eval $ac_try) 2>&5
27977  ac_status=$?
27978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27979  test $ac_status = 0; }; }
27980    then
27981	gcc_cv_as_gstabs_flag=yes
27982    else
27983      echo "configure: failed program was" >&5
27984      cat conftest.s >&5
27985    fi
27986    rm -f conftest.o conftest.s
27987  fi
27988fi
27989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27990$as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27991if test $gcc_cv_as_gstabs_flag = yes; then
27992
27993$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27994
27995fi
27996
27997
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27999$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28000if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
28001  $as_echo_n "(cached) " >&6
28002else
28003  gcc_cv_as_debug_prefix_map_flag=no
28004    if test $in_tree_gas = yes; then
28005    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28006  then gcc_cv_as_debug_prefix_map_flag=yes
28007fi
28008  elif test x$gcc_cv_as != x; then
28009    $as_echo "$insn" > conftest.s
28010    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28011  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28012  (eval $ac_try) 2>&5
28013  ac_status=$?
28014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28015  test $ac_status = 0; }; }
28016    then
28017	gcc_cv_as_debug_prefix_map_flag=yes
28018    else
28019      echo "configure: failed program was" >&5
28020      cat conftest.s >&5
28021    fi
28022    rm -f conftest.o conftest.s
28023  fi
28024fi
28025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28026$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28027if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28028
28029$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28030
28031fi
28032
28033fi
28034
28035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28036$as_echo_n "checking assembler for compressed debug sections... " >&6; }
28037if test "${gcc_cv_as_compress_debug+set}" = set; then :
28038  $as_echo_n "(cached) " >&6
28039else
28040  gcc_cv_as_compress_debug=no
28041  if test x$gcc_cv_as != x; then
28042    $as_echo '' > conftest.s
28043    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28044  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28045  (eval $ac_try) 2>&5
28046  ac_status=$?
28047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28048  test $ac_status = 0; }; }
28049    then
28050	# gas compiled without zlib cannot compress debug sections and warns
28051   # about it, but still exits successfully.  So check for this, too.
28052   if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28053   then
28054     gcc_cv_as_compress_debug=0
28055   # Since binutils 2.26, gas supports --compress-debug-sections=type,
28056   # defaulting to the ELF gABI format.
28057   elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28058   then
28059     gcc_cv_as_compress_debug=2
28060     gcc_cv_as_compress_debug_option="--compress-debug-sections"
28061     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28062   # Before binutils 2.26, gas only supported --compress-debug-options and
28063   # emitted the traditional GNU format.
28064   elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28065   then
28066     gcc_cv_as_compress_debug=1
28067     gcc_cv_as_compress_debug_option="--compress-debug-sections"
28068     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28069   else
28070     gcc_cv_as_compress_debug=0
28071   fi
28072    else
28073      echo "configure: failed program was" >&5
28074      cat conftest.s >&5
28075    fi
28076    rm -f conftest.o conftest.s
28077  fi
28078fi
28079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28080$as_echo "$gcc_cv_as_compress_debug" >&6; }
28081
28082
28083
28084cat >>confdefs.h <<_ACEOF
28085#define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28086_ACEOF
28087
28088
28089cat >>confdefs.h <<_ACEOF
28090#define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28091_ACEOF
28092
28093
28094cat >>confdefs.h <<_ACEOF
28095#define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28096_ACEOF
28097
28098
28099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28100$as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28101if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
28102  $as_echo_n "(cached) " >&6
28103else
28104  gcc_cv_as_lcomm_with_alignment=no
28105  if test x$gcc_cv_as != x; then
28106    $as_echo '.lcomm bar,4,16' > conftest.s
28107    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28108  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28109  (eval $ac_try) 2>&5
28110  ac_status=$?
28111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28112  test $ac_status = 0; }; }
28113    then
28114	gcc_cv_as_lcomm_with_alignment=yes
28115    else
28116      echo "configure: failed program was" >&5
28117      cat conftest.s >&5
28118    fi
28119    rm -f conftest.o conftest.s
28120  fi
28121fi
28122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28123$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28124if test $gcc_cv_as_lcomm_with_alignment = yes; then
28125
28126$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28127
28128fi
28129
28130
28131if test x$with_sysroot = x && test x$host = x$target \
28132   && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28133   && test "$prefix" != "NONE"; then
28134
28135cat >>confdefs.h <<_ACEOF
28136#define PREFIX_INCLUDE_DIR "$prefix/include"
28137_ACEOF
28138
28139fi
28140
28141# Determine the version of glibc, if any, used on the target.
28142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28143$as_echo_n "checking for target glibc version... " >&6; }
28144
28145# Check whether --with-glibc-version was given.
28146if test "${with_glibc_version+set}" = set; then :
28147  withval=$with_glibc_version;
28148if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28149  glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28150  glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28151else
28152  as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28153fi
28154else
28155
28156glibc_version_major=0
28157glibc_version_minor=0
28158if test -f $target_header_dir/features.h \
28159  && glibc_version_major_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+[0-9]' $target_header_dir/features.h` \
28160  && glibc_version_minor_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC_MINOR__[ 	]+[0-9]' $target_header_dir/features.h`; then
28161  glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ 	]*//'`
28162  glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ 	]*//'`
28163fi
28164fi
28165
28166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28167$as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28168
28169cat >>confdefs.h <<_ACEOF
28170#define TARGET_GLIBC_MAJOR $glibc_version_major
28171_ACEOF
28172
28173
28174cat >>confdefs.h <<_ACEOF
28175#define TARGET_GLIBC_MINOR $glibc_version_minor
28176_ACEOF
28177
28178
28179# Check whether --enable-gnu-unique-object was given.
28180if test "${enable_gnu_unique_object+set}" = set; then :
28181  enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28182    yes | no) ;;
28183    *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28184Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28185  esac
28186else
28187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28188$as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28189if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
28190  $as_echo_n "(cached) " >&6
28191else
28192  gcc_cv_as_gnu_unique_object=no
28193    if test $in_tree_gas = yes; then
28194    if test $in_tree_gas_is_elf = yes \
28195  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28196  then gcc_cv_as_gnu_unique_object=yes
28197fi
28198  elif test x$gcc_cv_as != x; then
28199    $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28200    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28201  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28202  (eval $ac_try) 2>&5
28203  ac_status=$?
28204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28205  test $ac_status = 0; }; }
28206    then
28207	gcc_cv_as_gnu_unique_object=yes
28208    else
28209      echo "configure: failed program was" >&5
28210      cat conftest.s >&5
28211    fi
28212    rm -f conftest.o conftest.s
28213  fi
28214fi
28215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28216$as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28217if test $gcc_cv_as_gnu_unique_object = yes; then
28218  # We need to unquote above to to use the definition from config.gcc.
28219# Also check for ld.so support, i.e. glibc 2.11 or higher.
28220
28221if test $glibc_version_major -gt 2 \
28222  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28223  enable_gnu_unique_object=yes
28224fi
28225
28226fi
28227
28228fi
28229
28230if test x$enable_gnu_unique_object = xyes; then
28231
28232$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28233
28234fi
28235
28236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28237$as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28238if test "${gcc_cv_as_line_zero+set}" = set; then :
28239  $as_echo_n "(cached) " >&6
28240else
28241  gcc_cv_as_line_zero=no
28242  if test $in_tree_gas = yes; then
28243    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28244  then gcc_cv_as_line_zero=yes
28245fi
28246  elif test "x$gcc_cv_as" != x; then
28247    { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28248    if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28249  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28250  (eval $ac_try) 2>&5
28251  ac_status=$?
28252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28253  test $ac_status = 0; }; } &&
28254       test "x`cat conftest.out`" = x
28255    then
28256      gcc_cv_as_line_zero=yes
28257    else
28258      echo "configure: failed program was" >&5
28259      cat conftest.s >&5
28260      echo "configure: error output was" >&5
28261      cat conftest.out >&5
28262    fi
28263    rm -f conftest.o conftest.s conftest.out
28264  fi
28265fi
28266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28267$as_echo "$gcc_cv_as_line_zero" >&6; }
28268if test "x$gcc_cv_as_line_zero" = xyes; then
28269
28270$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28271
28272fi
28273
28274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28275$as_echo_n "checking support for thin archives... " >&6; }
28276thin_archive_support=no
28277echo 'int main (void) { return 0; }' > conftest.c
28278if ($AR --version | sed 1q | grep "GNU ar" \
28279    && $CC $CFLAGS -c conftest.c \
28280    && $AR rcT conftest.a conftest.o \
28281    && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28282  thin_archive_support=yes
28283fi
28284rm -f conftest.c conftest.o conftest.a conftest
28285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28286$as_echo "$thin_archive_support" >&6; }
28287
28288
28289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28290$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28291gcc_cv_ld_eh_frame_hdr=no
28292if test $in_tree_ld = yes ; then
28293  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 \
28294     && test $in_tree_ld_is_elf = yes; then
28295    gcc_cv_ld_eh_frame_hdr=yes
28296  fi
28297elif test x$gcc_cv_ld != x; then
28298  if echo "$ld_ver" | grep GNU > /dev/null; then
28299    # Check if linker supports --eh-frame-hdr option
28300    if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28301      gcc_cv_ld_eh_frame_hdr=yes
28302    fi
28303  else
28304    case "$target" in
28305      *-*-solaris2*)
28306        # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28307        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28308          gcc_cv_ld_eh_frame_hdr=yes
28309        fi
28310        ;;
28311    esac
28312  fi
28313fi
28314
28315if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28316
28317$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28318
28319fi
28320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28321$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28322
28323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28324$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28325gcc_cv_ld_eh_frame_ciev3=no
28326if test $in_tree_ld = yes ; then
28327  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 \
28328     && test $in_tree_ld_is_elf = yes; then
28329    gcc_cv_ld_eh_frame_ciev3=yes
28330  fi
28331elif test x$gcc_cv_ld != x; then
28332  if echo "$ld_ver" | grep GNU > /dev/null; then
28333    gcc_cv_ld_eh_frame_ciev3=yes
28334    if test 0"$ld_date" -lt 20040513; then
28335      if test -n "$ld_date"; then
28336	# If there was date string, but was earlier than 2004-05-13, fail
28337	gcc_cv_ld_eh_frame_ciev3=no
28338      elif test "$ld_vers_major" -lt 2; then
28339	gcc_cv_ld_eh_frame_ciev3=no
28340      elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28341	gcc_cv_ld_eh_frame_ciev3=no
28342      fi
28343    fi
28344  else
28345    case "$target" in
28346      *-*-solaris2*)
28347        # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28348        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28349          gcc_cv_ld_eh_frame_ciev3=yes
28350        fi
28351        ;;
28352    esac
28353  fi
28354fi
28355
28356cat >>confdefs.h <<_ACEOF
28357#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28358_ACEOF
28359
28360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28361$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28362
28363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28364$as_echo_n "checking linker position independent executable support... " >&6; }
28365gcc_cv_ld_pie=no
28366if test $in_tree_ld = yes ; then
28367  case "$target" in
28368    # Full PIE support on Solaris was only introduced in gld 2.26.
28369    *-*-solaris2*)  gcc_gld_pie_min_version=26 ;;
28370    *) 		    gcc_gld_pie_min_version=15 ;;
28371  esac
28372  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
28373     && test $in_tree_ld_is_elf = yes; then
28374    gcc_cv_ld_pie=yes
28375  fi
28376elif test x$gcc_cv_ld != x; then
28377  # Check if linker supports -pie option
28378  if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28379    gcc_cv_ld_pie=yes
28380    case "$target" in
28381      *-*-solaris2*)
28382	if echo "$ld_ver" | grep GNU > /dev/null \
28383	  && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28384	  gcc_cv_ld_pie=no
28385	fi
28386	;;
28387    esac
28388  else
28389    case "$target" in
28390      *-*-solaris2.1[1-9]*)
28391	# Solaris 11.3 added PIE support.
28392	if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28393	  gcc_cv_ld_pie=yes
28394	fi
28395	;;
28396    esac
28397  fi
28398fi
28399if test x"$gcc_cv_ld_pie" = xyes; then
28400
28401$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28402
28403fi
28404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28405$as_echo "$gcc_cv_ld_pie" >&6; }
28406
28407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28408$as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28409gcc_cv_ld_pie_copyreloc=no
28410if test $gcc_cv_ld_pie = yes ; then
28411  if test $in_tree_ld = yes ; then
28412    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
28413      gcc_cv_ld_pie_copyreloc=yes
28414    fi
28415  elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28416    # Check if linker supports -pie option with copy reloc
28417    case "$target" in
28418    i?86-*-linux* | x86_64-*-linux*)
28419      cat > conftest1.s <<EOF
28420	.globl	a_glob
28421	.data
28422	.type	a_glob, @object
28423	.size	a_glob, 4
28424a_glob:
28425	.long	2
28426EOF
28427      cat > conftest2.s <<EOF
28428	.text
28429	.globl	main
28430	.type	main, @function
28431main:
28432	movl	%eax, a_glob(%rip)
28433	.size	main, .-main
28434	.globl	ptr
28435	.section	.data.rel,"aw",@progbits
28436	.type	ptr, @object
28437ptr:
28438	.quad	a_glob
28439EOF
28440      if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28441         && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28442         && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28443         && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28444        gcc_cv_ld_pie_copyreloc=yes
28445      fi
28446      rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28447      ;;
28448    esac
28449  fi
28450fi
28451
28452cat >>confdefs.h <<_ACEOF
28453#define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28454_ACEOF
28455
28456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28457$as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28458
28459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28460$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28461gcc_cv_ld_eh_gc_sections=no
28462if test $in_tree_ld = yes ; then
28463  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 \
28464     && test $in_tree_ld_is_elf = yes; then
28465    gcc_cv_ld_eh_gc_sections=yes
28466  fi
28467elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28468  cat > conftest.s <<EOF
28469	.section	.text
28470.globl _start
28471        .type _start, @function
28472_start:
28473	.long foo
28474	.size _start, .-_start
28475	.section	.text.foo,"ax",@progbits
28476	.type foo, @function
28477foo:
28478	.long 0
28479	.size foo, .-foo
28480	.section	.gcc_except_table.foo,"a",@progbits
28481.L0:
28482	.long 0
28483	.section	.eh_frame,"a",@progbits
28484	.long .L0
28485EOF
28486  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28487    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28488	 | grep "gc-sections option ignored" > /dev/null; then
28489      gcc_cv_ld_eh_gc_sections=no
28490    elif $gcc_cv_objdump -h conftest 2> /dev/null \
28491         | grep gcc_except_table > /dev/null; then
28492      gcc_cv_ld_eh_gc_sections=yes
28493      # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28494      if test x$gcc_cv_as_comdat_group != xyes; then
28495	gcc_cv_ld_eh_gc_sections=no
28496	cat > conftest.s <<EOF
28497	.section	.text
28498.globl _start
28499        .type _start, @function
28500_start:
28501	.long foo
28502	.size _start, .-_start
28503	.section	.gnu.linkonce.t.foo,"ax",@progbits
28504	.type foo, @function
28505foo:
28506	.long 0
28507	.size foo, .-foo
28508	.section	.gcc_except_table.foo,"a",@progbits
28509.L0:
28510	.long 0
28511	.section	.eh_frame,"a",@progbits
28512	.long .L0
28513EOF
28514	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28515	  if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28516	       | grep "gc-sections option ignored" > /dev/null; then
28517	    gcc_cv_ld_eh_gc_sections=no
28518	  elif $gcc_cv_objdump -h conftest 2> /dev/null \
28519	       | grep gcc_except_table > /dev/null; then
28520	    gcc_cv_ld_eh_gc_sections=yes
28521	  fi
28522	fi
28523      fi
28524    fi
28525  fi
28526  rm -f conftest.s conftest.o conftest
28527fi
28528case "$target" in
28529  hppa*-*-linux*)
28530    # ??? This apparently exposes a binutils bug with PC-relative relocations.
28531    gcc_cv_ld_eh_gc_sections=no
28532    ;;
28533esac
28534if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28535
28536$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28537
28538fi
28539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28540$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28541
28542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28543$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28544gcc_cv_ld_eh_gc_sections_bug=no
28545if test $in_tree_ld = yes ; then
28546  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
28547     && test $in_tree_ld_is_elf = yes; then
28548    gcc_cv_ld_eh_gc_sections_bug=yes
28549  fi
28550elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
28551  gcc_cv_ld_eh_gc_sections_bug=yes
28552  cat > conftest.s <<EOF
28553	.section	.text
28554.globl _start
28555	.type _start, @function
28556_start:
28557	.long foo
28558	.size _start, .-_start
28559	.section	.text.startup.foo,"ax",@progbits
28560	.type foo, @function
28561foo:
28562	.long 0
28563	.size foo, .-foo
28564	.section	.gcc_except_table.foo,"a",@progbits
28565.L0:
28566	.long 0
28567	.section	.eh_frame,"a",@progbits
28568	.long .L0
28569EOF
28570  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28571    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28572	 | grep "gc-sections option ignored" > /dev/null; then
28573      :
28574    elif $gcc_cv_objdump -h conftest 2> /dev/null \
28575	 | grep gcc_except_table > /dev/null; then
28576      gcc_cv_ld_eh_gc_sections_bug=no
28577    fi
28578  fi
28579  rm -f conftest.s conftest.o conftest
28580fi
28581if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28582
28583$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28584
28585fi
28586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28587$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28588
28589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28590$as_echo_n "checking linker for compressed debug sections... " >&6; }
28591# gold/gld support compressed debug sections since binutils 2.19/2.21
28592# In binutils 2.26, gld gained support for the ELF gABI format.
28593if test $in_tree_ld = yes ; then
28594  gcc_cv_ld_compress_debug=0
28595  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
28596     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28597    gcc_cv_ld_compress_debug=2
28598    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28599  elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28600     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28601    gcc_cv_ld_compress_debug=3
28602    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28603  elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
28604     && test $in_tree_ld_is_elf = yes; then
28605    gcc_cv_ld_compress_debug=1
28606  fi
28607elif echo "$ld_ver" | grep GNU > /dev/null; then
28608  if test "$ld_vers_major" -lt 2 \
28609     || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28610    gcc_cv_ld_compress_debug=0
28611  elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28612    gcc_cv_ld_compress_debug=1
28613  else
28614    gcc_cv_ld_compress_debug=3
28615    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28616  fi
28617  if test $ld_is_gold = yes; then
28618    gcc_cv_ld_compress_debug=2
28619    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28620  fi
28621else
28622  case "${target}" in
28623    *-*-solaris2*)
28624      # Introduced in Solaris 11.2.
28625      if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28626        gcc_cv_ld_compress_debug=3
28627        gcc_cv_ld_compress_debug_option="-z compress-sections"
28628      else
28629        gcc_cv_ld_compress_debug=0
28630      fi
28631      ;;
28632    *)
28633      # Assume linkers other than GNU ld don't support compessed debug
28634      # sections.
28635      gcc_cv_ld_compress_debug=0
28636      ;;
28637  esac
28638fi
28639
28640cat >>confdefs.h <<_ACEOF
28641#define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28642_ACEOF
28643
28644
28645cat >>confdefs.h <<_ACEOF
28646#define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28647_ACEOF
28648
28649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28650$as_echo "$gcc_cv_ld_compress_debug" >&6; }
28651
28652if test x"$ld64_flag" = x"yes"; then
28653
28654  # Set defaults for possibly untestable items.
28655  gcc_cv_ld64_export_dynamic=0
28656
28657  if test "$build" = "$host"; then
28658    darwin_try_test=1
28659  else
28660    darwin_try_test=0
28661  fi
28662
28663  # On Darwin, because of FAT library support, it is often possible to execute
28664  # exes from compatible archs even when the host differs from the build system.
28665  case "$build","$host" in
28666    x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28667	darwin_try_test=1;;
28668    *) ;;
28669  esac
28670
28671  # If the configurer specified a minimum ld64 version to be supported, then use
28672  # that to determine feature support.
28673  if test x"${gcc_cv_ld64_version}" != x; then
28674    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28675$as_echo_n "checking ld64 specified version... " >&6; }
28676    gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28677    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28678$as_echo "$gcc_cv_ld64_major" >&6; }
28679   if test "$gcc_cv_ld64_major" -ge 236; then
28680      gcc_cv_ld64_export_dynamic=1
28681    fi
28682  elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28683    # If the version was not specified, try to find it.
28684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28685$as_echo_n "checking linker version... " >&6; }
28686    if test x"${gcc_cv_ld64_version}" = x; then
28687      gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28688    fi
28689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28690$as_echo "$gcc_cv_ld64_version" >&6; }
28691
28692    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28693$as_echo_n "checking linker for -export_dynamic support... " >&6; }
28694    gcc_cv_ld64_export_dynamic=1
28695    if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28696      gcc_cv_ld64_export_dynamic=0
28697    fi
28698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28699$as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28700  fi
28701
28702  if test x"${gcc_cv_ld64_version}" != x; then
28703
28704cat >>confdefs.h <<_ACEOF
28705#define LD64_VERSION "${gcc_cv_ld64_version}"
28706_ACEOF
28707
28708  fi
28709
28710
28711cat >>confdefs.h <<_ACEOF
28712#define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28713_ACEOF
28714
28715fi
28716
28717# --------
28718# UNSORTED
28719# --------
28720
28721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28722$as_echo_n "checking linker --as-needed support... " >&6; }
28723if test "${gcc_cv_ld_as_needed+set}" = set; then :
28724  $as_echo_n "(cached) " >&6
28725else
28726  gcc_cv_ld_as_needed=no
28727gcc_cv_ld_as_needed_option='--as-needed'
28728gcc_cv_ld_no_as_needed_option='--no-as-needed'
28729if test $in_tree_ld = yes ; then
28730  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 \
28731     && test $in_tree_ld_is_elf = yes; then
28732    gcc_cv_ld_as_needed=yes
28733  fi
28734elif test x$gcc_cv_ld != x; then
28735  # Check if linker supports --as-needed and --no-as-needed options
28736  if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28737    gcc_cv_ld_as_needed=yes
28738  fi
28739  case "$target:$gnu_ld" in
28740    *-*-solaris2*:no)
28741      # Solaris 2 ld always supports -z ignore/-z record.  Prefer the native
28742      # forms.
28743      gcc_cv_ld_as_needed=yes
28744      gcc_cv_ld_as_needed_option="-z ignore"
28745      gcc_cv_ld_no_as_needed_option="-z record"
28746      ;;
28747  esac
28748fi
28749# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28750# dl_iterate_phdr, i.e. since Solaris 11.
28751case "$target" in
28752  *-*-solaris2.1[1-9]*)
28753    case "$target" in
28754    i?86-*-* | x86_64-*-*)
28755      if echo "$ld_ver" | grep GNU > /dev/null; then
28756        # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28757        gcc_cv_ld_as_needed=no
28758      fi
28759      ;;
28760    esac
28761    ;;
28762  *-*-solaris2*)
28763    gcc_cv_ld_as_needed=no
28764    ;;
28765esac
28766
28767fi
28768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28769$as_echo "$gcc_cv_ld_as_needed" >&6; }
28770if test x"$gcc_cv_ld_as_needed" = xyes; then
28771
28772$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28773
28774
28775cat >>confdefs.h <<_ACEOF
28776#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28777_ACEOF
28778
28779
28780cat >>confdefs.h <<_ACEOF
28781#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28782_ACEOF
28783
28784fi
28785
28786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28787$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28788saved_LDFLAGS="$LDFLAGS"
28789for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28790  LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28792/* end confdefs.h.  */
28793int main(void) {return 0;}
28794_ACEOF
28795if ac_fn_cxx_try_link "$LINENO"; then :
28796  gcc_cv_ld_clearcap=yes; break
28797else
28798  gcc_cv_ld_clearcap=no
28799fi
28800rm -f core conftest.err conftest.$ac_objext \
28801    conftest$ac_exeext conftest.$ac_ext
28802done
28803LDFLAGS="$saved_LDFLAGS"
28804if test "x$gcc_cv_ld_clearcap" = xyes; then
28805
28806$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28807
28808  ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28809
28810fi
28811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28812$as_echo "$gcc_cv_ld_clearcap" >&6; }
28813
28814case "$target" in
28815  powerpc*-*-*)
28816    case "$target" in
28817      *le-*-linux*)
28818	emul_name="-melf32lppc"
28819	;;
28820      *)
28821	emul_name="-melf32ppc"
28822	;;
28823    esac
28824    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28825$as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28826if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28827  $as_echo_n "(cached) " >&6
28828else
28829  gcc_cv_ld_ppc_attr=no
28830    if test x"$ld_is_gold" = xyes; then
28831      gcc_cv_ld_ppc_attr=yes
28832    elif test $in_tree_ld = yes ; then
28833      if test "$gcc_cv_gld_major_version" -eq 2 \
28834		-a "$gcc_cv_gld_minor_version" -ge 28 \
28835		-o "$gcc_cv_gld_major_version" -gt 2; then
28836        gcc_cv_ld_ppc_attr=yes
28837      fi
28838    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28839      # check that merging the long double .gnu_attribute doesn't warn
28840      cat > conftest1.s <<EOF
28841	.gnu_attribute 4,1
28842EOF
28843      cat > conftest2.s <<EOF
28844	.gnu_attribute 4,9
28845EOF
28846      if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28847         && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28848         && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28849	 && test ! -s conftest.err; then
28850        gcc_cv_ld_ppc_attr=yes
28851      fi
28852      rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28853    fi
28854
28855fi
28856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28857$as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28858    if test x$gcc_cv_ld_ppc_attr = xyes; then
28859
28860$as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28861
28862    fi
28863    ;;
28864esac
28865
28866case "$target:$tm_file" in
28867  powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28868  case "$target" in
28869     *le-*-linux*)
28870     emul_name="-melf64lppc"
28871      ;;
28872     *-*-linux*)
28873     emul_name="-melf64ppc"
28874      ;;
28875     *-*-freebsd*)
28876     emul_name="-melf64ppc_fbsd"
28877      ;;
28878  esac
28879    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28880$as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28881if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28882  $as_echo_n "(cached) " >&6
28883else
28884  gcc_cv_ld_no_dot_syms=no
28885    if test x"$ld_is_gold" = xyes; then
28886      gcc_cv_ld_no_dot_syms=yes
28887    elif test $in_tree_ld = yes ; then
28888      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
28889        gcc_cv_ld_no_dot_syms=yes
28890      fi
28891    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28892      cat > conftest1.s <<EOF
28893	.text
28894	bl .foo
28895EOF
28896      cat > conftest2.s <<EOF
28897	.section ".opd","aw"
28898	.align 3
28899	.globl foo
28900	.type foo,@function
28901foo:
28902	.quad .LEfoo,.TOC.@tocbase,0
28903	.text
28904.LEfoo:
28905	blr
28906	.size foo,.-.LEfoo
28907EOF
28908      if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28909         && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28910         && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28911        gcc_cv_ld_no_dot_syms=yes
28912      fi
28913      rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28914    fi
28915
28916fi
28917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28918$as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28919    if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28920
28921$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28922
28923    fi
28924
28925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28926$as_echo_n "checking linker large toc support... " >&6; }
28927if test "${gcc_cv_ld_large_toc+set}" = set; then :
28928  $as_echo_n "(cached) " >&6
28929else
28930  gcc_cv_ld_large_toc=no
28931    if test x"$ld_is_gold" = xyes; then
28932      gcc_cv_ld_large_toc=yes
28933    elif test $in_tree_ld = yes ; then
28934      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
28935        gcc_cv_ld_large_toc=yes
28936      fi
28937    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28938      cat > conftest.s <<EOF
28939	.section ".tbss","awT",@nobits
28940	.align 3
28941ie0:	.space 8
28942	.global _start
28943	.text
28944_start:
28945	addis 9,13,ie0@got@tprel@ha
28946	ld 9,ie0@got@tprel@l(9)
28947EOF
28948      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28949         && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28950        gcc_cv_ld_large_toc=yes
28951      fi
28952      rm -f conftest conftest.o conftest.s
28953    fi
28954
28955fi
28956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28957$as_echo "$gcc_cv_ld_large_toc" >&6; }
28958    if test x"$gcc_cv_ld_large_toc" = xyes; then
28959
28960$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28961
28962    fi
28963
28964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28965$as_echo_n "checking linker toc pointer alignment... " >&6; }
28966if test "${gcc_cv_ld_toc_align+set}" = set; then :
28967  $as_echo_n "(cached) " >&6
28968else
28969  if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28970      cat > conftest.s <<EOF
28971	.global _start
28972	.text
28973_start:
28974	addis 9,2,x@got@ha
28975	.section .data.rel.ro,"aw",@progbits
28976	.p2align 16
28977	.space 32768
28978x:	.quad .TOC.
28979EOF
28980      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28981         && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28982        gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
28983      fi
28984      rm -f conftest conftest.o conftest.s
28985    fi
28986
28987fi
28988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28989$as_echo "$gcc_cv_ld_toc_align" >&6; }
28990    if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28991
28992cat >>confdefs.h <<_ACEOF
28993#define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28994_ACEOF
28995
28996    fi
28997    ;;
28998esac
28999
29000case "$target" in
29001  *-*-aix*)
29002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29003$as_echo_n "checking linker large toc support... " >&6; }
29004if test "${gcc_cv_ld_large_toc+set}" = set; then :
29005  $as_echo_n "(cached) " >&6
29006else
29007  gcc_cv_ld_large_toc=no
29008    if test x$gcc_cv_as != x ; then
29009      cat > conftest.s <<EOF
29010	.toc
29011LC..1:
29012	.tc a[TC],a[RW]
29013	.extern a[RW]
29014	.csect .text[PR]
29015.largetoctest:
29016	addis 9,LC..1@u(2)
29017	ld 3,LC..1@l(9)
29018EOF
29019      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29020        gcc_cv_ld_large_toc=yes
29021      fi
29022      rm -f conftest conftest.o conftest.s
29023    fi
29024
29025fi
29026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29027$as_echo "$gcc_cv_ld_large_toc" >&6; }
29028    if test x"$gcc_cv_ld_large_toc" = xyes; then
29029
29030$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29031
29032    fi
29033    ;;
29034esac
29035
29036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29037$as_echo_n "checking linker --build-id support... " >&6; }
29038if test "${gcc_cv_ld_buildid+set}" = set; then :
29039  $as_echo_n "(cached) " >&6
29040else
29041  gcc_cv_ld_buildid=no
29042  if test $in_tree_ld = yes ; then
29043    if test "$gcc_cv_gld_major_version" -eq 2 -a \
29044       "$gcc_cv_gld_minor_version" -ge 18 -o \
29045       "$gcc_cv_gld_major_version" -gt 2 \
29046       && test $in_tree_ld_is_elf = yes; then
29047      gcc_cv_ld_buildid=yes
29048    fi
29049  elif test x$gcc_cv_ld != x; then
29050    if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29051      gcc_cv_ld_buildid=yes
29052    fi
29053  fi
29054fi
29055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29056$as_echo "$gcc_cv_ld_buildid" >&6; }
29057if test x"$gcc_cv_ld_buildid" = xyes; then
29058
29059$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29060
29061fi
29062
29063# Check whether --enable-linker-build-id was given.
29064if test "${enable_linker_build_id+set}" = set; then :
29065  enableval=$enable_linker_build_id;
29066else
29067  enable_linker_build_id=no
29068fi
29069
29070
29071if test x"$enable_linker_build_id" = xyes; then
29072  if test x"$gcc_cv_ld_buildid" = xyes; then
29073
29074$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29075
29076  else
29077    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29078$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29079  fi
29080fi
29081
29082# In binutils 2.21, GNU ld gained support for new emulations fully
29083# supporting the Solaris 2 ABI.  Detect their presence in the linker used.
29084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29085$as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29086if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
29087  $as_echo_n "(cached) " >&6
29088else
29089  gcc_cv_ld_sol2_emulation=no
29090  if test $in_tree_ld = yes ; then
29091    if test "$gcc_cv_gld_major_version" -eq 2 -a \
29092       "$gcc_cv_gld_minor_version" -ge 21 -o \
29093       "$gcc_cv_gld_major_version" -gt 2 \
29094       && test $in_tree_ld_is_elf = yes; then
29095      gcc_cv_ld_sol2_emulation=yes
29096    fi
29097  elif test x$gcc_cv_ld != x; then
29098    if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29099       grep _sol2 > /dev/null; then
29100      gcc_cv_ld_sol2_emulation=yes
29101    fi
29102  fi
29103fi
29104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29105$as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29106if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29107
29108$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29109
29110fi
29111
29112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29113$as_echo_n "checking linker --sysroot support... " >&6; }
29114if test "${gcc_cv_ld_sysroot+set}" = set; then :
29115  $as_echo_n "(cached) " >&6
29116else
29117  gcc_cv_ld_sysroot=no
29118  if test $in_tree_ld = yes ; then
29119      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
29120        gcc_cv_ld_sysroot=yes
29121      fi
29122  elif test x$gcc_cv_ld != x; then
29123    if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29124      gcc_cv_ld_sysroot=yes
29125    fi
29126  fi
29127fi
29128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29129$as_echo "$gcc_cv_ld_sysroot" >&6; }
29130if test x"$gcc_cv_ld_sysroot" = xyes; then
29131
29132$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29133
29134fi
29135
29136case $target in
29137*-*-solaris2*)
29138  # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29140$as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29141if test "${gcc_cv_solaris_crts+set}" = set; then :
29142  $as_echo_n "(cached) " >&6
29143else
29144  gcc_cv_solaris_crts=no
29145     if test x$host != x$target; then
29146       if test "x$with_sysroot" = xyes; then
29147         target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29148       else
29149         target_sysroot="${with_sysroot}"
29150       fi
29151     fi
29152     target_libdir="$target_sysroot/usr/lib"
29153     # At the time they were added, gcrt1.o became a symlink for backwards
29154     # compatibility on x86, while crt1.o was added on sparc, so check for that.
29155     case $target in
29156       i?86-*-solaris2* | x86_64-*-solaris2*)
29157         if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29158	 ;;
29159       sparc*-*-solaris2*)
29160         if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29161	 ;;
29162     esac
29163fi
29164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29165$as_echo "$gcc_cv_solaris_crts" >&6; }
29166  ;;
29167esac
29168if test x$gcc_cv_solaris_crts = xyes; then
29169
29170$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29171
29172fi
29173
29174# Check whether --enable-libssp was given.
29175if test "${enable_libssp+set}" = set; then :
29176  enableval=$enable_libssp; case "${enableval}" in
29177  yes|no)
29178    ;;
29179  *)
29180    as_fn_error "unknown libssp setting $enableval" "$LINENO" 5
29181    ;;
29182esac
29183fi
29184
29185
29186# Test for stack protector support in target C library.
29187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29188$as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29189if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
29190  $as_echo_n "(cached) " >&6
29191else
29192  gcc_cv_libc_provides_ssp=no
29193  if test "x$enable_libssp" = "xno"; then
29194    gcc_cv_libc_provides_ssp=yes
29195  elif test "x$enable_libssp" = "xyes"; then
29196    gcc_cv_libc_provides_ssp=no
29197  else
29198    case "$target" in
29199       *-*-musl*)
29200	 # All versions of musl provide stack protector
29201	 gcc_cv_libc_provides_ssp=yes;;
29202       *-*-linux* | *-*-kfreebsd*-gnu)
29203      # glibc 2.4 and later provides __stack_chk_fail and
29204      # either __stack_chk_guard, or TLS access to stack guard canary.
29205
29206if test $glibc_version_major -gt 2 \
29207  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29208  gcc_cv_libc_provides_ssp=yes
29209else
29210
29211      if test -f $target_header_dir/features.h \
29212	 && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GNU_LIBRARY__[ 	]+([1-9][0-9]|[6-9])' \
29213	    $target_header_dir/features.h > /dev/null; then
29214	if $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC__[ 	]+1' \
29215	     $target_header_dir/features.h > /dev/null && \
29216	     test -f $target_header_dir/bits/uClibc_config.h && \
29217	     $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC_HAS_SSP__[ 	]+1' \
29218	     $target_header_dir/bits/uClibc_config.h > /dev/null; then
29219	  gcc_cv_libc_provides_ssp=yes
29220	fi
29221      # all versions of Bionic support stack protector
29222      elif test -f $target_header_dir/sys/cdefs.h \
29223        && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
29224           $target_header_dir/sys/cdefs.h > /dev/null; then
29225         gcc_cv_libc_provides_ssp=yes
29226      fi
29227fi
29228	;;
29229       *-*-gnu*)
29230	 # Avoid complicated tests (see
29231	 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29232	 # simply assert that glibc does provide this, which is true for all
29233	 # realistically usable GNU/Hurd configurations.
29234	 # All supported versions of musl provide it as well
29235	 gcc_cv_libc_provides_ssp=yes;;
29236       *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29237	 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29238if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
29239  gcc_cv_libc_provides_ssp=yes
29240else
29241  echo "no __stack_chk_fail on this target"
29242fi
29243
29244        ;;
29245       *) gcc_cv_libc_provides_ssp=no ;;
29246    esac
29247  fi
29248fi
29249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29250$as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29251
29252if test x$gcc_cv_libc_provides_ssp = xyes; then
29253
29254$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29255
29256fi
29257
29258# Check whether --enable-default-ssp was given.
29259# Check whether --enable-default-ssp was given.
29260if test "${enable_default_ssp+set}" = set; then :
29261  enableval=$enable_default_ssp;
29262if test x$gcc_cv_libc_provides_ssp = xyes; then
29263  case "$target" in
29264    ia64*-*-*) enable_default_ssp=no ;;
29265    *) enable_default_ssp=$enableval ;;
29266  esac
29267else
29268  enable_default_ssp=no
29269fi
29270else
29271  enable_default_ssp=no
29272fi
29273
29274if test x$enable_default_ssp = xyes ; then
29275
29276$as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29277
29278fi
29279
29280
29281# Test for <sys/sdt.h> on the target.
29282
29283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29284$as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29285have_sys_sdt_h=no
29286if test -f $target_header_dir/sys/sdt.h; then
29287  have_sys_sdt_h=yes
29288
29289$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29290
29291fi
29292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29293$as_echo "$have_sys_sdt_h" >&6; }
29294
29295# Check if TFmode long double should be used by default or not.
29296# Some glibc targets used DFmode long double, but with glibc 2.4
29297# and later they can use TFmode.
29298case "$target" in
29299  powerpc*-*-linux* | \
29300  sparc*-*-linux* | \
29301  s390*-*-linux* | \
29302  alpha*-*-linux*)
29303
29304# Check whether --with-long-double-128 was given.
29305if test "${with_long_double_128+set}" = set; then :
29306  withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29307else
29308
29309if test $glibc_version_major -gt 2 \
29310  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29311  gcc_cv_target_ldbl128=yes
29312else
29313
29314      gcc_cv_target_ldbl128=no
29315      grep '^[ 	]*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
29316        $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29317      && gcc_cv_target_ldbl128=yes
29318
29319fi
29320fi
29321
29322    ;;
29323esac
29324if test x$gcc_cv_target_ldbl128 = xyes; then
29325
29326$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29327
29328fi
29329
29330# Check if TFmode long double target should use the IBM extended double or IEEE
29331# 128-bit floating point formats if long doubles are 128-bits long.  The long
29332# double type can only be switched on powerpc64 bit Linux systems where VSX is
29333# supported.  Other PowerPC systems do not build the IEEE 128-bit emulator in
29334# libgcc.
29335
29336# Check whether --with-long-double-format was given.
29337if test "${with_long_double_format+set}" = set; then :
29338  withval=$with_long_double_format;
29339case "$target:$with_long_double_format" in
29340  powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29341    :
29342    ;;
29343  powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29344    # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29345    case "$with_cpu" in
29346      power7 | power8 | power9 | power1*)
29347	:
29348	;;
29349      *)
29350	as_fn_error "Configuration option --with-long-double-format is only \
29351supported if the default cpu is power7 or newer" "$LINENO" 5
29352	with_long_double_format=""
29353	;;
29354      esac
29355      ;;
29356  xpowerpc64*-*-linux*:*)
29357    as_fn_error "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29358    with_long_double_format=""
29359    ;;
29360  *)
29361    as_fn_error "Configure option --with-long-double-format is only supported \
29362on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29363    with_long_double_format=""
29364    ;;
29365esac
29366fi
29367
29368
29369# Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29370# values in the TCB.  Currently, only GLIBC 2.23 and later support this.
29371gcc_cv_libc_provides_hwcap_in_tcb=no
29372case "$target" in
29373  powerpc*-*-linux*)
29374
29375if test $glibc_version_major -gt 2 \
29376  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29377  gcc_cv_libc_provides_hwcap_in_tcb=yes
29378fi
29379    ;;
29380esac
29381if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29382
29383$as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29384
29385fi
29386
29387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29388$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29389gcc_cv_target_dl_iterate_phdr=unknown
29390case "$target" in
29391  # Restrict to Solaris 11+.  While most of the Solaris 11 linker changes
29392  # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29393  # libdl there, both complicating its use and breaking compatibility
29394  # between Solaris 10 updates.
29395  *-*-solaris2.1[1-9]*)
29396    # <link.h> needs both a dl_iterate_phdr declaration and support for
29397    # compilation with largefile support.
29398    if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29399      && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29400      gcc_cv_target_dl_iterate_phdr=yes
29401    else
29402      gcc_cv_target_dl_iterate_phdr=no
29403    fi
29404    ;;
29405  *-*-dragonfly* | *-*-freebsd*)
29406    if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29407      gcc_cv_target_dl_iterate_phdr=yes
29408    else
29409      gcc_cv_target_dl_iterate_phdr=no
29410    fi
29411    ;;
29412  *-linux-musl*)
29413    gcc_cv_target_dl_iterate_phdr=yes
29414    ;;
29415esac
29416
29417if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29418
29419$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29420
29421fi
29422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29423$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29424
29425# We no longer support different GC mechanisms.  Emit an error if
29426# the user configures with --with-gc.
29427
29428# Check whether --with-gc was given.
29429if test "${with_gc+set}" = set; then :
29430  withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29431fi
29432
29433
29434# Libraries to use on the host.  This will normally be set by the top
29435# level Makefile.  Here we simply capture the value for our Makefile.
29436if test -z "${HOST_LIBS+set}"; then
29437  HOST_LIBS=
29438fi
29439
29440
29441# Use the system's zlib library.
29442
29443  # Use the system's zlib library.
29444  zlibdir="-L\$(top_builddir)/../zlib"
29445  zlibinc="-I\$(top_srcdir)/../zlib"
29446
29447# Check whether --with-system-zlib was given.
29448if test "${with_system_zlib+set}" = set; then :
29449  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29450    zlibdir=
29451    zlibinc=
29452  fi
29453
29454fi
29455
29456
29457
29458
29459
29460
29461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29462$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29463    # Check whether --enable-maintainer-mode was given.
29464if test "${enable_maintainer_mode+set}" = set; then :
29465  enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29466else
29467  maintainer_mode=no
29468fi
29469
29470
29471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29472$as_echo "$maintainer_mode" >&6; }
29473
29474if test "$maintainer_mode" = "yes"; then
29475  MAINT=''
29476else
29477  MAINT='#'
29478fi
29479
29480
29481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29482$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29483  # Check whether --enable-link-mutex was given.
29484if test "${enable_link_mutex+set}" = set; then :
29485  enableval=$enable_link_mutex; do_link_mutex=$enableval
29486else
29487  do_link_mutex=no
29488fi
29489
29490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29491$as_echo "$do_link_mutex" >&6; }
29492
29493if test "$do_link_mutex" = "yes"; then
29494   DO_LINK_MUTEX=true
29495else
29496   DO_LINK_MUTEX=false
29497fi
29498
29499
29500# --------------
29501# Language hooks
29502# --------------
29503
29504# Make empty files to contain the specs and options for each language.
29505# Then add #include lines to for a compiler that has specs and/or options.
29506
29507subdirs=
29508lang_opt_files=
29509lang_specs_files=
29510lang_tree_files=
29511# These (without "all_") are set in each config-lang.in.
29512# `language' must be a single word so is spelled singularly.
29513all_languages=
29514all_compilers=
29515all_outputs='Makefile'
29516# List of language configure and makefile fragments.
29517all_lang_configurefrags=
29518all_lang_makefrags=
29519# Additional files for gengtype
29520all_gtfiles="$target_gtfiles"
29521
29522# These are the languages that are set in --enable-languages,
29523# and are available in the GCC tree.
29524all_selected_languages=
29525
29526# Add the language fragments.
29527# Languages are added via two mechanisms.  Some information must be
29528# recorded in makefile variables, these are defined in config-lang.in.
29529# We accumulate them and plug them into the main Makefile.
29530# The other mechanism is a set of hooks for each of the main targets
29531# like `clean', `install', etc.
29532
29533language_hooks="Make-hooks"
29534
29535for lang in ${srcdir}/*/config-lang.in
29536do
29537	test "$lang" = "${srcdir}/*/config-lang.in" && continue
29538
29539        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
29540        if test "x$lang_alias" = x
29541        then
29542              echo "$lang doesn't set \$language." 1>&2
29543              exit 1
29544        fi
29545        subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29546        subdirs="$subdirs $subdir"
29547
29548	# $gcc_subdir is where the gcc integration files are to be found
29549	# for a language, both for internal compiler purposes (compiler
29550	# sources implementing front-end to GCC tree converters), and for
29551	# build infrastructure purposes (Make-lang.in, etc.)
29552	#
29553	# This will be <subdir> (relative to $srcdir) if a line like
29554	# gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29555	# is found in <langdir>/config-lang.in, and will remain <langdir>
29556	# otherwise.
29557	#
29558	# Except for the language alias (fetched above), the regular
29559	# "config-lang.in" contents are always retrieved from $gcc_subdir,
29560	# so a <langdir>/config-lang.in setting gcc_subdir typically sets
29561	# only this and the language alias.
29562
29563        gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
29564        if [ "$gcc_subdir" = "" ]; then
29565           gcc_subdir="$subdir"
29566        fi
29567
29568        case ",$enable_languages," in
29569        *,$lang_alias,*)
29570            all_selected_languages="$all_selected_languages $lang_alias"
29571            if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29572                lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29573	    fi
29574	    ;;
29575        esac
29576
29577	language=
29578	boot_language=
29579	compilers=
29580	outputs=
29581	gtfiles=
29582	subdir_requires=
29583	. ${srcdir}/$gcc_subdir/config-lang.in
29584	if test "x$language" = x
29585	then
29586		echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29587		exit 1
29588	fi
29589
29590	ok=:
29591        case ",$enable_languages," in
29592        	*,$lang_alias,*) ;;
29593		*)
29594			for i in $subdir_requires; do
29595				test -f "${srcdir}/$i/config-lang.in" && continue
29596				ok=false
29597				break
29598			done
29599		;;
29600	esac
29601	$ok || continue
29602
29603	all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
29604	all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29605	if test -f $srcdir/$gcc_subdir/lang.opt; then
29606	    lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29607	    all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29608	fi
29609	if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29610	    lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29611	fi
29612	all_languages="$all_languages $language"
29613	all_compilers="$all_compilers $compilers"
29614	all_outputs="$all_outputs $outputs"
29615	all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29616        case ",$enable_languages," in
29617        	*,lto,*)
29618
29619$as_echo "#define ENABLE_LTO 1" >>confdefs.h
29620
29621		    enable_lto=yes
29622
29623		    ;;
29624		*) ;;
29625	esac
29626done
29627
29628check_languages=
29629for language in $all_selected_languages
29630do
29631	check_languages="$check_languages check-$language"
29632done
29633
29634# We link each language in with a set of hooks, reached indirectly via
29635# lang.${target}.  Only do so for selected languages.
29636
29637rm -f Make-hooks
29638touch Make-hooks
29639target_list="all.cross start.encap rest.encap tags \
29640	install-common install-man install-info install-pdf install-html dvi \
29641	pdf html uninstall info man srcextra srcman srcinfo \
29642	mostlyclean clean distclean maintainer-clean install-plugin"
29643
29644for t in $target_list
29645do
29646	x=
29647	for lang in $all_selected_languages
29648	do
29649		x="$x $lang.$t"
29650	done
29651	echo "lang.$t: $x" >> Make-hooks
29652done
29653
29654# --------
29655# Option include files
29656# --------
29657
29658${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29659option_includes="option-includes.mk"
29660
29661
29662# --------
29663# UNSORTED
29664# --------
29665
29666# Create .gdbinit.
29667
29668echo "dir ." > .gdbinit
29669echo "dir ${srcdir}" >> .gdbinit
29670if test x$gdb_needs_out_file_path = xyes
29671then
29672	echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29673fi
29674if test "x$subdirs" != x; then
29675	for s in $subdirs
29676	do
29677		echo "dir ${srcdir}/$s" >> .gdbinit
29678	done
29679fi
29680echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29681echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29682
29683# Put a breakpoint on __asan_report_error to help with debugging buffer
29684# overflow.
29685case "$CFLAGS" in
29686*-fsanitize=address*)
29687  echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29688  ;;
29689esac
29690
29691gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29692
29693
29694
29695# Find a directory in which to install a shared libgcc.
29696
29697# Check whether --enable-version-specific-runtime-libs was given.
29698if test "${enable_version_specific_runtime_libs+set}" = set; then :
29699  enableval=$enable_version_specific_runtime_libs;
29700fi
29701
29702
29703# Substitute configuration variables
29704
29705
29706
29707
29708
29709
29710
29711
29712
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767# Echo link setup.
29768if test x${build} = x${host} ; then
29769  if test x${host} = x${target} ; then
29770    echo "Links are now set up to build a native compiler for ${target}." 1>&2
29771  else
29772    echo "Links are now set up to build a cross-compiler" 1>&2
29773    echo " from ${host} to ${target}." 1>&2
29774  fi
29775else
29776  if test x${host} = x${target} ; then
29777    echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29778    echo " for ${target}." 1>&2
29779  else
29780    echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29781    echo " from ${host} to ${target}." 1>&2
29782  fi
29783fi
29784
29785
29786
29787
29788
29789
29790if test "x${ISLLIBS}" != "x" ; then
29791
29792$as_echo "#define HAVE_isl 1" >>confdefs.h
29793
29794fi
29795
29796# Check for plugin support
29797   # Check whether --enable-plugin was given.
29798if test "${enable_plugin+set}" = set; then :
29799  enableval=$enable_plugin; enable_plugin=$enableval
29800else
29801  enable_plugin=yes; default_plugin=yes
29802fi
29803
29804
29805   pluginlibs=
29806   plugin_check=yes
29807
29808   case "${host}" in
29809     *-*-mingw*)
29810       # Since plugin support under MinGW is not as straightforward as on
29811       # other platforms (e.g., we have to link import library, etc), we
29812       # only enable it if explicitly requested.
29813       if test x"$default_plugin" = x"yes"; then
29814         enable_plugin=no
29815       elif test x"$enable_plugin" = x"yes"; then
29816         # Use make's target variable to derive import library name.
29817         pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29818	 plugin_check=no
29819       fi
29820     ;;
29821     *-*-darwin*)
29822       if test x$build = x$host; then
29823	 export_sym_check="nm${exeext} -g"
29824       elif test x$host = x$target; then
29825	 export_sym_check="$gcc_cv_nm -g"
29826       else
29827	 export_sym_check=
29828       fi
29829     ;;
29830     *)
29831       if test x$build = x$host; then
29832	 export_sym_check="objdump${exeext} -T"
29833       elif test x$host = x$target; then
29834	 export_sym_check="$gcc_cv_objdump -T"
29835       else
29836	 export_sym_check=
29837       fi
29838     ;;
29839   esac
29840
29841   if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29842
29843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29844$as_echo_n "checking for exported symbols... " >&6; }
29845     if test "x$export_sym_check" != x; then
29846       echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29847       ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29848       if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29849	 : # No need to use a flag
29850	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29851$as_echo "yes" >&6; }
29852       else
29853	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29854$as_echo "yes" >&6; }
29855	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29856$as_echo_n "checking for -rdynamic... " >&6; }
29857	 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29858	 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29859	   plugin_rdynamic=yes
29860	   pluginlibs="-rdynamic"
29861	 else
29862	   plugin_rdynamic=no
29863	   enable_plugin=no
29864	 fi
29865	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29866$as_echo "$plugin_rdynamic" >&6; }
29867       fi
29868     else
29869       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29870$as_echo "unable to check" >&6; }
29871     fi
29872
29873     # Check -ldl
29874     saved_LIBS="$LIBS"
29875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29876$as_echo_n "checking for library containing dlopen... " >&6; }
29877if test "${ac_cv_search_dlopen+set}" = set; then :
29878  $as_echo_n "(cached) " >&6
29879else
29880  ac_func_search_save_LIBS=$LIBS
29881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29882/* end confdefs.h.  */
29883
29884/* Override any GCC internal prototype to avoid an error.
29885   Use char because int might match the return type of a GCC
29886   builtin and then its argument prototype would still apply.  */
29887#ifdef __cplusplus
29888extern "C"
29889#endif
29890char dlopen ();
29891int
29892main ()
29893{
29894return dlopen ();
29895  ;
29896  return 0;
29897}
29898_ACEOF
29899for ac_lib in '' dl; do
29900  if test -z "$ac_lib"; then
29901    ac_res="none required"
29902  else
29903    ac_res=-l$ac_lib
29904    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29905  fi
29906  if ac_fn_cxx_try_link "$LINENO"; then :
29907  ac_cv_search_dlopen=$ac_res
29908fi
29909rm -f core conftest.err conftest.$ac_objext \
29910    conftest$ac_exeext
29911  if test "${ac_cv_search_dlopen+set}" = set; then :
29912  break
29913fi
29914done
29915if test "${ac_cv_search_dlopen+set}" = set; then :
29916
29917else
29918  ac_cv_search_dlopen=no
29919fi
29920rm conftest.$ac_ext
29921LIBS=$ac_func_search_save_LIBS
29922fi
29923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29924$as_echo "$ac_cv_search_dlopen" >&6; }
29925ac_res=$ac_cv_search_dlopen
29926if test "$ac_res" != no; then :
29927  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29928
29929fi
29930
29931     if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29932       pluginlibs="$pluginlibs -ldl"
29933     fi
29934     LIBS="$saved_LIBS"
29935
29936     # Check that we can build shared objects with -fPIC -shared
29937     saved_LDFLAGS="$LDFLAGS"
29938     saved_CFLAGS="$CFLAGS"
29939     case "${host}" in
29940       *-*-darwin*)
29941	 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29942	 CFLAGS="$CFLAGS -fPIC"
29943	 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29944       ;;
29945       *)
29946	 CFLAGS="$CFLAGS -fPIC"
29947	 LDFLAGS="$LDFLAGS -fPIC -shared"
29948       ;;
29949     esac
29950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29951$as_echo_n "checking for -fPIC -shared... " >&6; }
29952     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29953/* end confdefs.h.  */
29954extern int X;
29955int
29956main ()
29957{
29958return X == 0;
29959  ;
29960  return 0;
29961}
29962_ACEOF
29963if ac_fn_cxx_try_link "$LINENO"; then :
29964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29965$as_echo "yes" >&6; }; have_pic_shared=yes
29966else
29967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29968$as_echo "no" >&6; }; have_pic_shared=no
29969fi
29970rm -f core conftest.err conftest.$ac_objext \
29971    conftest$ac_exeext conftest.$ac_ext
29972     if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29973       pluginlibs=
29974       enable_plugin=no
29975     fi
29976     LDFLAGS="$saved_LDFLAGS"
29977     CFLAGS="$saved_CFLAGS"
29978
29979     # If plugin support had been requested but not available, fail.
29980     if test x"$enable_plugin" = x"no" ; then
29981       if test x"$default_plugin" != x"yes"; then
29982	 as_fn_error "
29983   Building GCC with plugin support requires a host that supports
29984   -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29985       fi
29986     fi
29987   fi
29988
29989
29990
29991if test x"$enable_plugin" = x"yes"; then
29992
29993$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29994
29995fi
29996
29997
29998# Enable --enable-host-shared
29999# Check whether --enable-host-shared was given.
30000if test "${enable_host_shared+set}" = set; then :
30001  enableval=$enable_host_shared; PICFLAG=-fPIC
30002else
30003  PICFLAG=
30004fi
30005
30006
30007
30008
30009
30010# Check whether --enable-libquadmath-support was given.
30011if test "${enable_libquadmath_support+set}" = set; then :
30012  enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30013else
30014  ENABLE_LIBQUADMATH_SUPPORT=yes
30015fi
30016
30017if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30018
30019$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30020
30021fi
30022
30023
30024# Specify what hash style to use by default.
30025
30026# Check whether --with-linker-hash-style was given.
30027if test "${with_linker_hash_style+set}" = set; then :
30028  withval=$with_linker_hash_style; case x"$withval" in
30029   xsysv)
30030     LINKER_HASH_STYLE=sysv
30031     ;;
30032   xgnu)
30033     LINKER_HASH_STYLE=gnu
30034     ;;
30035   xboth)
30036     LINKER_HASH_STYLE=both
30037     ;;
30038   *)
30039     as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30040     ;;
30041 esac
30042else
30043  LINKER_HASH_STYLE=''
30044fi
30045
30046if test x"${LINKER_HASH_STYLE}" != x; then
30047
30048cat >>confdefs.h <<_ACEOF
30049#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30050_ACEOF
30051
30052fi
30053
30054# Specify what should be the default of -fdiagnostics-color option.
30055
30056# Check whether --with-diagnostics-color was given.
30057if test "${with_diagnostics_color+set}" = set; then :
30058  withval=$with_diagnostics_color; case x"$withval" in
30059   xnever)
30060     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30061     ;;
30062   xauto)
30063     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30064     ;;
30065   xauto-if-env)
30066     DIAGNOSTICS_COLOR_DEFAULT=-1
30067     ;;
30068   xalways)
30069     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30070     ;;
30071   *)
30072     as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30073     ;;
30074 esac
30075else
30076  DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30077fi
30078
30079
30080cat >>confdefs.h <<_ACEOF
30081#define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30082_ACEOF
30083
30084
30085# Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30086# of jit/jit-playback.c.
30087gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30088echo "gcc_driver_version: ${gcc_driver_version}"
30089cat > gcc-driver-name.h <<EOF
30090#define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30091EOF
30092
30093# Check whether --enable-default-pie was given.
30094# Check whether --enable-default-pie was given.
30095if test "${enable_default_pie+set}" = set; then :
30096  enableval=$enable_default_pie; enable_default_pie=$enableval
30097else
30098  enable_default_pie=no
30099fi
30100
30101if test x$enable_default_pie = xyes ; then
30102
30103$as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30104
30105fi
30106
30107
30108# Check if -fno-PIE works.
30109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30110$as_echo_n "checking for -fno-PIE option... " >&6; }
30111if test "${gcc_cv_c_no_fpie+set}" = set; then :
30112  $as_echo_n "(cached) " >&6
30113else
30114  saved_CXXFLAGS="$CXXFLAGS"
30115   CXXFLAGS="$CXXFLAGS -fno-PIE"
30116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30117/* end confdefs.h.  */
30118int main(void) {return 0;}
30119_ACEOF
30120if ac_fn_cxx_try_compile "$LINENO"; then :
30121  gcc_cv_c_no_fpie=yes
30122else
30123  gcc_cv_c_no_fpie=no
30124fi
30125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30126   CXXFLAGS="$saved_CXXFLAGS"
30127fi
30128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30129$as_echo "$gcc_cv_c_no_fpie" >&6; }
30130if test "$gcc_cv_c_no_fpie" = "yes"; then
30131  NO_PIE_CFLAGS="-fno-PIE"
30132fi
30133
30134
30135# Check if -no-pie works.
30136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30137$as_echo_n "checking for -no-pie option... " >&6; }
30138if test "${gcc_cv_no_pie+set}" = set; then :
30139  $as_echo_n "(cached) " >&6
30140else
30141  saved_LDFLAGS="$LDFLAGS"
30142   LDFLAGS="$LDFLAGS -no-pie"
30143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30144/* end confdefs.h.  */
30145int main(void) {return 0;}
30146_ACEOF
30147if ac_fn_cxx_try_link "$LINENO"; then :
30148  gcc_cv_no_pie=yes
30149else
30150  gcc_cv_no_pie=no
30151fi
30152rm -f core conftest.err conftest.$ac_objext \
30153    conftest$ac_exeext conftest.$ac_ext
30154   LDFLAGS="$saved_LDFLAGS"
30155fi
30156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30157$as_echo "$gcc_cv_no_pie" >&6; }
30158if test "$gcc_cv_no_pie" = "yes"; then
30159  NO_PIE_FLAG="-no-pie"
30160fi
30161
30162
30163# Check linker supports '-z bndplt'
30164ld_bndplt_support=no
30165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30166$as_echo_n "checking linker -z bndplt option... " >&6; }
30167if test x"$ld_is_gold" = xno; then
30168  if test $in_tree_ld = yes ; then
30169    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
30170      ld_bndplt_support=yes
30171    fi
30172  elif test x$gcc_cv_ld != x; then
30173    # Check if linker supports -a bndplt option
30174    if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30175      ld_bndplt_support=yes
30176    fi
30177  fi
30178fi
30179if test x"$ld_bndplt_support" = xyes; then
30180
30181$as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30182
30183fi
30184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30185$as_echo "$ld_bndplt_support" >&6; }
30186
30187# Check linker supports '--push-state'/'--pop-state'
30188ld_pushpopstate_support=no
30189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30190$as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30191if test x"$ld_is_gold" = xno; then
30192  if test $in_tree_ld = yes ; then
30193    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
30194      ld_pushpopstate_support=yes
30195    fi
30196  elif test x$gcc_cv_ld != x; then
30197    # Check if linker supports --push-state/--pop-state options
30198    if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30199      ld_pushpopstate_support=yes
30200    fi
30201  fi
30202fi
30203if test x"$ld_pushpopstate_support" = xyes; then
30204
30205$as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30206
30207fi
30208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30209$as_echo "$ld_pushpopstate_support" >&6; }
30210
30211# Configure the subdirectories
30212# AC_CONFIG_SUBDIRS($subdirs)
30213
30214# Create the Makefile
30215# and configure language subdirectories
30216ac_config_files="$ac_config_files $all_outputs"
30217
30218
30219ac_config_commands="$ac_config_commands default"
30220
30221cat >confcache <<\_ACEOF
30222# This file is a shell script that caches the results of configure
30223# tests run on this system so they can be shared between configure
30224# scripts and configure runs, see configure's option --config-cache.
30225# It is not useful on other systems.  If it contains results you don't
30226# want to keep, you may remove or edit it.
30227#
30228# config.status only pays attention to the cache file if you give it
30229# the --recheck option to rerun configure.
30230#
30231# `ac_cv_env_foo' variables (set or unset) will be overridden when
30232# loading this file, other *unset* `ac_cv_foo' will be assigned the
30233# following values.
30234
30235_ACEOF
30236
30237# The following way of writing the cache mishandles newlines in values,
30238# but we know of no workaround that is simple, portable, and efficient.
30239# So, we kill variables containing newlines.
30240# Ultrix sh set writes to stderr and can't be redirected directly,
30241# and sets the high bit in the cache file unless we assign to the vars.
30242(
30243  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30244    eval ac_val=\$$ac_var
30245    case $ac_val in #(
30246    *${as_nl}*)
30247      case $ac_var in #(
30248      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30249$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30250      esac
30251      case $ac_var in #(
30252      _ | IFS | as_nl) ;; #(
30253      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30254      *) { eval $ac_var=; unset $ac_var;} ;;
30255      esac ;;
30256    esac
30257  done
30258
30259  (set) 2>&1 |
30260    case $as_nl`(ac_space=' '; set) 2>&1` in #(
30261    *${as_nl}ac_space=\ *)
30262      # `set' does not quote correctly, so add quotes: double-quote
30263      # substitution turns \\\\ into \\, and sed turns \\ into \.
30264      sed -n \
30265	"s/'/'\\\\''/g;
30266	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30267      ;; #(
30268    *)
30269      # `set' quotes correctly as required by POSIX, so do not add quotes.
30270      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30271      ;;
30272    esac |
30273    sort
30274) |
30275  sed '
30276     /^ac_cv_env_/b end
30277     t clear
30278     :clear
30279     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30280     t end
30281     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30282     :end' >>confcache
30283if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30284  if test -w "$cache_file"; then
30285    test "x$cache_file" != "x/dev/null" &&
30286      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30287$as_echo "$as_me: updating cache $cache_file" >&6;}
30288    cat confcache >$cache_file
30289  else
30290    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30291$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30292  fi
30293fi
30294rm -f confcache
30295
30296test "x$prefix" = xNONE && prefix=$ac_default_prefix
30297# Let make expand exec_prefix.
30298test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30299
30300DEFS=-DHAVE_CONFIG_H
30301
30302ac_libobjs=
30303ac_ltlibobjs=
30304for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30305  # 1. Remove the extension, and $U if already installed.
30306  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30307  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30308  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30309  #    will be set to the directory where LIBOBJS objects are built.
30310  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30311  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30312done
30313LIBOBJS=$ac_libobjs
30314
30315LTLIBOBJS=$ac_ltlibobjs
30316
30317
30318
30319
30320: ${CONFIG_STATUS=./config.status}
30321ac_write_fail=0
30322ac_clean_files_save=$ac_clean_files
30323ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30324{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30325$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30326as_write_fail=0
30327cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30328#! $SHELL
30329# Generated by $as_me.
30330# Run this file to recreate the current configuration.
30331# Compiler output produced by configure, useful for debugging
30332# configure, is in config.log if it exists.
30333
30334debug=false
30335ac_cs_recheck=false
30336ac_cs_silent=false
30337
30338SHELL=\${CONFIG_SHELL-$SHELL}
30339export SHELL
30340_ASEOF
30341cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30342## -------------------- ##
30343## M4sh Initialization. ##
30344## -------------------- ##
30345
30346# Be more Bourne compatible
30347DUALCASE=1; export DUALCASE # for MKS sh
30348if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30349  emulate sh
30350  NULLCMD=:
30351  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30352  # is contrary to our usage.  Disable this feature.
30353  alias -g '${1+"$@"}'='"$@"'
30354  setopt NO_GLOB_SUBST
30355else
30356  case `(set -o) 2>/dev/null` in #(
30357  *posix*) :
30358    set -o posix ;; #(
30359  *) :
30360     ;;
30361esac
30362fi
30363
30364
30365as_nl='
30366'
30367export as_nl
30368# Printing a long string crashes Solaris 7 /usr/bin/printf.
30369as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30370as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30371as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30372# Prefer a ksh shell builtin over an external printf program on Solaris,
30373# but without wasting forks for bash or zsh.
30374if test -z "$BASH_VERSION$ZSH_VERSION" \
30375    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30376  as_echo='print -r --'
30377  as_echo_n='print -rn --'
30378elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30379  as_echo='printf %s\n'
30380  as_echo_n='printf %s'
30381else
30382  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30383    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30384    as_echo_n='/usr/ucb/echo -n'
30385  else
30386    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30387    as_echo_n_body='eval
30388      arg=$1;
30389      case $arg in #(
30390      *"$as_nl"*)
30391	expr "X$arg" : "X\\(.*\\)$as_nl";
30392	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30393      esac;
30394      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30395    '
30396    export as_echo_n_body
30397    as_echo_n='sh -c $as_echo_n_body as_echo'
30398  fi
30399  export as_echo_body
30400  as_echo='sh -c $as_echo_body as_echo'
30401fi
30402
30403# The user is always right.
30404if test "${PATH_SEPARATOR+set}" != set; then
30405  PATH_SEPARATOR=:
30406  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30407    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30408      PATH_SEPARATOR=';'
30409  }
30410fi
30411
30412
30413# IFS
30414# We need space, tab and new line, in precisely that order.  Quoting is
30415# there to prevent editors from complaining about space-tab.
30416# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30417# splitting by setting IFS to empty value.)
30418IFS=" ""	$as_nl"
30419
30420# Find who we are.  Look in the path if we contain no directory separator.
30421case $0 in #((
30422  *[\\/]* ) as_myself=$0 ;;
30423  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30424for as_dir in $PATH
30425do
30426  IFS=$as_save_IFS
30427  test -z "$as_dir" && as_dir=.
30428    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30429  done
30430IFS=$as_save_IFS
30431
30432     ;;
30433esac
30434# We did not find ourselves, most probably we were run as `sh COMMAND'
30435# in which case we are not to be found in the path.
30436if test "x$as_myself" = x; then
30437  as_myself=$0
30438fi
30439if test ! -f "$as_myself"; then
30440  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30441  exit 1
30442fi
30443
30444# Unset variables that we do not need and which cause bugs (e.g. in
30445# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30446# suppresses any "Segmentation fault" message there.  '((' could
30447# trigger a bug in pdksh 5.2.14.
30448for as_var in BASH_ENV ENV MAIL MAILPATH
30449do eval test x\${$as_var+set} = xset \
30450  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30451done
30452PS1='$ '
30453PS2='> '
30454PS4='+ '
30455
30456# NLS nuisances.
30457LC_ALL=C
30458export LC_ALL
30459LANGUAGE=C
30460export LANGUAGE
30461
30462# CDPATH.
30463(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30464
30465
30466# as_fn_error ERROR [LINENO LOG_FD]
30467# ---------------------------------
30468# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30469# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30470# script with status $?, using 1 if that was 0.
30471as_fn_error ()
30472{
30473  as_status=$?; test $as_status -eq 0 && as_status=1
30474  if test "$3"; then
30475    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30476    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30477  fi
30478  $as_echo "$as_me: error: $1" >&2
30479  as_fn_exit $as_status
30480} # as_fn_error
30481
30482
30483# as_fn_set_status STATUS
30484# -----------------------
30485# Set $? to STATUS, without forking.
30486as_fn_set_status ()
30487{
30488  return $1
30489} # as_fn_set_status
30490
30491# as_fn_exit STATUS
30492# -----------------
30493# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30494as_fn_exit ()
30495{
30496  set +e
30497  as_fn_set_status $1
30498  exit $1
30499} # as_fn_exit
30500
30501# as_fn_unset VAR
30502# ---------------
30503# Portably unset VAR.
30504as_fn_unset ()
30505{
30506  { eval $1=; unset $1;}
30507}
30508as_unset=as_fn_unset
30509# as_fn_append VAR VALUE
30510# ----------------------
30511# Append the text in VALUE to the end of the definition contained in VAR. Take
30512# advantage of any shell optimizations that allow amortized linear growth over
30513# repeated appends, instead of the typical quadratic growth present in naive
30514# implementations.
30515if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30516  eval 'as_fn_append ()
30517  {
30518    eval $1+=\$2
30519  }'
30520else
30521  as_fn_append ()
30522  {
30523    eval $1=\$$1\$2
30524  }
30525fi # as_fn_append
30526
30527# as_fn_arith ARG...
30528# ------------------
30529# Perform arithmetic evaluation on the ARGs, and store the result in the
30530# global $as_val. Take advantage of shells that can avoid forks. The arguments
30531# must be portable across $(()) and expr.
30532if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30533  eval 'as_fn_arith ()
30534  {
30535    as_val=$(( $* ))
30536  }'
30537else
30538  as_fn_arith ()
30539  {
30540    as_val=`expr "$@" || test $? -eq 1`
30541  }
30542fi # as_fn_arith
30543
30544
30545if expr a : '\(a\)' >/dev/null 2>&1 &&
30546   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30547  as_expr=expr
30548else
30549  as_expr=false
30550fi
30551
30552if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30553  as_basename=basename
30554else
30555  as_basename=false
30556fi
30557
30558if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30559  as_dirname=dirname
30560else
30561  as_dirname=false
30562fi
30563
30564as_me=`$as_basename -- "$0" ||
30565$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30566	 X"$0" : 'X\(//\)$' \| \
30567	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30568$as_echo X/"$0" |
30569    sed '/^.*\/\([^/][^/]*\)\/*$/{
30570	    s//\1/
30571	    q
30572	  }
30573	  /^X\/\(\/\/\)$/{
30574	    s//\1/
30575	    q
30576	  }
30577	  /^X\/\(\/\).*/{
30578	    s//\1/
30579	    q
30580	  }
30581	  s/.*/./; q'`
30582
30583# Avoid depending upon Character Ranges.
30584as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30585as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30586as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30587as_cr_digits='0123456789'
30588as_cr_alnum=$as_cr_Letters$as_cr_digits
30589
30590ECHO_C= ECHO_N= ECHO_T=
30591case `echo -n x` in #(((((
30592-n*)
30593  case `echo 'xy\c'` in
30594  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
30595  xy)  ECHO_C='\c';;
30596  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30597       ECHO_T='	';;
30598  esac;;
30599*)
30600  ECHO_N='-n';;
30601esac
30602
30603rm -f conf$$ conf$$.exe conf$$.file
30604if test -d conf$$.dir; then
30605  rm -f conf$$.dir/conf$$.file
30606else
30607  rm -f conf$$.dir
30608  mkdir conf$$.dir 2>/dev/null
30609fi
30610if (echo >conf$$.file) 2>/dev/null; then
30611  if ln -s conf$$.file conf$$ 2>/dev/null; then
30612    as_ln_s='ln -s'
30613    # ... but there are two gotchas:
30614    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30615    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30616    # In both cases, we have to default to `cp -p'.
30617    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30618      as_ln_s='cp -p'
30619  elif ln conf$$.file conf$$ 2>/dev/null; then
30620    as_ln_s=ln
30621  else
30622    as_ln_s='cp -p'
30623  fi
30624else
30625  as_ln_s='cp -p'
30626fi
30627rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30628rmdir conf$$.dir 2>/dev/null
30629
30630
30631# as_fn_mkdir_p
30632# -------------
30633# Create "$as_dir" as a directory, including parents if necessary.
30634as_fn_mkdir_p ()
30635{
30636
30637  case $as_dir in #(
30638  -*) as_dir=./$as_dir;;
30639  esac
30640  test -d "$as_dir" || eval $as_mkdir_p || {
30641    as_dirs=
30642    while :; do
30643      case $as_dir in #(
30644      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30645      *) as_qdir=$as_dir;;
30646      esac
30647      as_dirs="'$as_qdir' $as_dirs"
30648      as_dir=`$as_dirname -- "$as_dir" ||
30649$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30650	 X"$as_dir" : 'X\(//\)[^/]' \| \
30651	 X"$as_dir" : 'X\(//\)$' \| \
30652	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30653$as_echo X"$as_dir" |
30654    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30655	    s//\1/
30656	    q
30657	  }
30658	  /^X\(\/\/\)[^/].*/{
30659	    s//\1/
30660	    q
30661	  }
30662	  /^X\(\/\/\)$/{
30663	    s//\1/
30664	    q
30665	  }
30666	  /^X\(\/\).*/{
30667	    s//\1/
30668	    q
30669	  }
30670	  s/.*/./; q'`
30671      test -d "$as_dir" && break
30672    done
30673    test -z "$as_dirs" || eval "mkdir $as_dirs"
30674  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30675
30676
30677} # as_fn_mkdir_p
30678if mkdir -p . 2>/dev/null; then
30679  as_mkdir_p='mkdir -p "$as_dir"'
30680else
30681  test -d ./-p && rmdir ./-p
30682  as_mkdir_p=false
30683fi
30684
30685if test -x / >/dev/null 2>&1; then
30686  as_test_x='test -x'
30687else
30688  if ls -dL / >/dev/null 2>&1; then
30689    as_ls_L_option=L
30690  else
30691    as_ls_L_option=
30692  fi
30693  as_test_x='
30694    eval sh -c '\''
30695      if test -d "$1"; then
30696	test -d "$1/.";
30697      else
30698	case $1 in #(
30699	-*)set "./$1";;
30700	esac;
30701	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30702	???[sx]*):;;*)false;;esac;fi
30703    '\'' sh
30704  '
30705fi
30706as_executable_p=$as_test_x
30707
30708# Sed expression to map a string onto a valid CPP name.
30709as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30710
30711# Sed expression to map a string onto a valid variable name.
30712as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30713
30714
30715exec 6>&1
30716## ----------------------------------- ##
30717## Main body of $CONFIG_STATUS script. ##
30718## ----------------------------------- ##
30719_ASEOF
30720test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30721
30722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30723# Save the log message, to keep $0 and so on meaningful, and to
30724# report actual input values of CONFIG_FILES etc. instead of their
30725# values after options handling.
30726ac_log="
30727This file was extended by $as_me, which was
30728generated by GNU Autoconf 2.64.  Invocation command line was
30729
30730  CONFIG_FILES    = $CONFIG_FILES
30731  CONFIG_HEADERS  = $CONFIG_HEADERS
30732  CONFIG_LINKS    = $CONFIG_LINKS
30733  CONFIG_COMMANDS = $CONFIG_COMMANDS
30734  $ $0 $@
30735
30736on `(hostname || uname -n) 2>/dev/null | sed 1q`
30737"
30738
30739_ACEOF
30740
30741case $ac_config_files in *"
30742"*) set x $ac_config_files; shift; ac_config_files=$*;;
30743esac
30744
30745case $ac_config_headers in *"
30746"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30747esac
30748
30749
30750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30751# Files that config.status was made for.
30752config_files="$ac_config_files"
30753config_headers="$ac_config_headers"
30754config_links="$ac_config_links"
30755config_commands="$ac_config_commands"
30756
30757_ACEOF
30758
30759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30760ac_cs_usage="\
30761\`$as_me' instantiates files and other configuration actions
30762from templates according to the current configuration.  Unless the files
30763and actions are specified as TAGs, all are instantiated by default.
30764
30765Usage: $0 [OPTION]... [TAG]...
30766
30767  -h, --help       print this help, then exit
30768  -V, --version    print version number and configuration settings, then exit
30769  -q, --quiet, --silent
30770                   do not print progress messages
30771  -d, --debug      don't remove temporary files
30772      --recheck    update $as_me by reconfiguring in the same conditions
30773      --file=FILE[:TEMPLATE]
30774                   instantiate the configuration file FILE
30775      --header=FILE[:TEMPLATE]
30776                   instantiate the configuration header FILE
30777
30778Configuration files:
30779$config_files
30780
30781Configuration headers:
30782$config_headers
30783
30784Configuration links:
30785$config_links
30786
30787Configuration commands:
30788$config_commands
30789
30790Report bugs to the package provider."
30791
30792_ACEOF
30793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30794ac_cs_version="\\
30795config.status
30796configured by $0, generated by GNU Autoconf 2.64,
30797  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30798
30799Copyright (C) 2009 Free Software Foundation, Inc.
30800This config.status script is free software; the Free Software Foundation
30801gives unlimited permission to copy, distribute and modify it."
30802
30803ac_pwd='$ac_pwd'
30804srcdir='$srcdir'
30805AWK='$AWK'
30806test -n "\$AWK" || AWK=awk
30807_ACEOF
30808
30809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30810# The default lists apply if the user does not specify any file.
30811ac_need_defaults=:
30812while test $# != 0
30813do
30814  case $1 in
30815  --*=*)
30816    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30817    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30818    ac_shift=:
30819    ;;
30820  *)
30821    ac_option=$1
30822    ac_optarg=$2
30823    ac_shift=shift
30824    ;;
30825  esac
30826
30827  case $ac_option in
30828  # Handling of the options.
30829  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30830    ac_cs_recheck=: ;;
30831  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30832    $as_echo "$ac_cs_version"; exit ;;
30833  --debug | --debu | --deb | --de | --d | -d )
30834    debug=: ;;
30835  --file | --fil | --fi | --f )
30836    $ac_shift
30837    case $ac_optarg in
30838    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30839    esac
30840    as_fn_append CONFIG_FILES " '$ac_optarg'"
30841    ac_need_defaults=false;;
30842  --header | --heade | --head | --hea )
30843    $ac_shift
30844    case $ac_optarg in
30845    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30846    esac
30847    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30848    ac_need_defaults=false;;
30849  --he | --h)
30850    # Conflict between --help and --header
30851    as_fn_error "ambiguous option: \`$1'
30852Try \`$0 --help' for more information.";;
30853  --help | --hel | -h )
30854    $as_echo "$ac_cs_usage"; exit ;;
30855  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30856  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30857    ac_cs_silent=: ;;
30858
30859  # This is an error.
30860  -*) as_fn_error "unrecognized option: \`$1'
30861Try \`$0 --help' for more information." ;;
30862
30863  *) as_fn_append ac_config_targets " $1"
30864     ac_need_defaults=false ;;
30865
30866  esac
30867  shift
30868done
30869
30870ac_configure_extra_args=
30871
30872if $ac_cs_silent; then
30873  exec 6>/dev/null
30874  ac_configure_extra_args="$ac_configure_extra_args --silent"
30875fi
30876
30877_ACEOF
30878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30879if \$ac_cs_recheck; then
30880  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30881  shift
30882  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30883  CONFIG_SHELL='$SHELL'
30884  export CONFIG_SHELL
30885  exec "\$@"
30886fi
30887
30888_ACEOF
30889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30890exec 5>>config.log
30891{
30892  echo
30893  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30894## Running $as_me. ##
30895_ASBOX
30896  $as_echo "$ac_log"
30897} >&5
30898
30899_ACEOF
30900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30901#
30902# INIT-COMMANDS
30903#
30904ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30905subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30906subdirs='$subdirs'
30907
30908_ACEOF
30909
30910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30911
30912# Handling of arguments.
30913for ac_config_target in $ac_config_targets
30914do
30915  case $ac_config_target in
30916    "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30917    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30918    "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30919    "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30920    "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30921    "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30922    "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30923    "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30924    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30925
30926  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30927  esac
30928done
30929
30930
30931# If the user did not use the arguments to specify the items to instantiate,
30932# then the envvar interface is used.  Set only those that are not.
30933# We use the long form for the default assignment because of an extremely
30934# bizarre bug on SunOS 4.1.3.
30935if $ac_need_defaults; then
30936  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30937  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30938  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30939  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30940fi
30941
30942# Have a temporary directory for convenience.  Make it in the build tree
30943# simply because there is no reason against having it here, and in addition,
30944# creating and moving files from /tmp can sometimes cause problems.
30945# Hook for its removal unless debugging.
30946# Note that there is a small window in which the directory will not be cleaned:
30947# after its creation but before its name has been assigned to `$tmp'.
30948$debug ||
30949{
30950  tmp=
30951  trap 'exit_status=$?
30952  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30953' 0
30954  trap 'as_fn_exit 1' 1 2 13 15
30955}
30956# Create a (secure) tmp directory for tmp files.
30957
30958{
30959  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30960  test -n "$tmp" && test -d "$tmp"
30961}  ||
30962{
30963  tmp=./conf$$-$RANDOM
30964  (umask 077 && mkdir "$tmp")
30965} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30966
30967# Set up the scripts for CONFIG_FILES section.
30968# No need to generate them if there are no CONFIG_FILES.
30969# This happens for instance with `./config.status config.h'.
30970if test -n "$CONFIG_FILES"; then
30971
30972if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30973  ac_cs_awk_getline=:
30974  ac_cs_awk_pipe_init=
30975  ac_cs_awk_read_file='
30976      while ((getline aline < (F[key])) > 0)
30977	print(aline)
30978      close(F[key])'
30979  ac_cs_awk_pipe_fini=
30980else
30981  ac_cs_awk_getline=false
30982  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30983  ac_cs_awk_read_file='
30984      print "|#_!!_#|"
30985      print "cat " F[key] " &&"
30986      '$ac_cs_awk_pipe_init
30987  # The final `:' finishes the AND list.
30988  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30989fi
30990ac_cr=`echo X | tr X '\015'`
30991# On cygwin, bash can eat \r inside `` if the user requested igncr.
30992# But we know of no other shell where ac_cr would be empty at this
30993# point, so we can use a bashism as a fallback.
30994if test "x$ac_cr" = x; then
30995  eval ac_cr=\$\'\\r\'
30996fi
30997ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30998if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30999  ac_cs_awk_cr='\r'
31000else
31001  ac_cs_awk_cr=$ac_cr
31002fi
31003
31004echo 'BEGIN {' >"$tmp/subs1.awk" &&
31005_ACEOF
31006
31007# Create commands to substitute file output variables.
31008{
31009  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31010  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31011  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31012  echo "_ACAWK" &&
31013  echo "_ACEOF"
31014} >conf$$files.sh &&
31015. ./conf$$files.sh ||
31016  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31017rm -f conf$$files.sh
31018
31019{
31020  echo "cat >conf$$subs.awk <<_ACEOF" &&
31021  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31022  echo "_ACEOF"
31023} >conf$$subs.sh ||
31024  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31025ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31026ac_delim='%!_!# '
31027for ac_last_try in false false false false false :; do
31028  . ./conf$$subs.sh ||
31029    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31030
31031  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31032  if test $ac_delim_n = $ac_delim_num; then
31033    break
31034  elif $ac_last_try; then
31035    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31036  else
31037    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31038  fi
31039done
31040rm -f conf$$subs.sh
31041
31042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31043cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31044_ACEOF
31045sed -n '
31046h
31047s/^/S["/; s/!.*/"]=/
31048p
31049g
31050s/^[^!]*!//
31051:repl
31052t repl
31053s/'"$ac_delim"'$//
31054t delim
31055:nl
31056h
31057s/\(.\{148\}\).*/\1/
31058t more1
31059s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31060p
31061n
31062b repl
31063:more1
31064s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31065p
31066g
31067s/.\{148\}//
31068t nl
31069:delim
31070h
31071s/\(.\{148\}\).*/\1/
31072t more2
31073s/["\\]/\\&/g; s/^/"/; s/$/"/
31074p
31075b
31076:more2
31077s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31078p
31079g
31080s/.\{148\}//
31081t delim
31082' <conf$$subs.awk | sed '
31083/^[^""]/{
31084  N
31085  s/\n//
31086}
31087' >>$CONFIG_STATUS || ac_write_fail=1
31088rm -f conf$$subs.awk
31089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31090_ACAWK
31091cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31092  for (key in S) S_is_set[key] = 1
31093  FS = ""
31094  \$ac_cs_awk_pipe_init
31095}
31096{
31097  line = $ 0
31098  nfields = split(line, field, "@")
31099  substed = 0
31100  len = length(field[1])
31101  for (i = 2; i < nfields; i++) {
31102    key = field[i]
31103    keylen = length(key)
31104    if (S_is_set[key]) {
31105      value = S[key]
31106      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31107      len += length(value) + length(field[++i])
31108      substed = 1
31109    } else
31110      len += 1 + keylen
31111  }
31112  if (nfields == 3 && !substed) {
31113    key = field[2]
31114    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
31115      \$ac_cs_awk_read_file
31116      next
31117    }
31118  }
31119  print line
31120}
31121\$ac_cs_awk_pipe_fini
31122_ACAWK
31123_ACEOF
31124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31125if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31126  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31127else
31128  cat
31129fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31130  || as_fn_error "could not setup config files machinery" "$LINENO" 5
31131_ACEOF
31132
31133# VPATH may cause trouble with some makes, so we remove $(srcdir),
31134# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31135# trailing colons and then remove the whole line if VPATH becomes empty
31136# (actually we leave an empty line to preserve line numbers).
31137if test "x$srcdir" = x.; then
31138  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
31139s/:*\$(srcdir):*/:/
31140s/:*\${srcdir}:*/:/
31141s/:*@srcdir@:*/:/
31142s/^\([^=]*=[	 ]*\):*/\1/
31143s/:*$//
31144s/^[^=]*=[	 ]*$//
31145}'
31146fi
31147
31148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31149fi # test -n "$CONFIG_FILES"
31150
31151# Set up the scripts for CONFIG_HEADERS section.
31152# No need to generate them if there are no CONFIG_HEADERS.
31153# This happens for instance with `./config.status Makefile'.
31154if test -n "$CONFIG_HEADERS"; then
31155cat >"$tmp/defines.awk" <<\_ACAWK ||
31156BEGIN {
31157_ACEOF
31158
31159# Transform confdefs.h into an awk script `defines.awk', embedded as
31160# here-document in config.status, that substitutes the proper values into
31161# config.h.in to produce config.h.
31162
31163# Create a delimiter string that does not exist in confdefs.h, to ease
31164# handling of long lines.
31165ac_delim='%!_!# '
31166for ac_last_try in false false :; do
31167  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31168  if test -z "$ac_t"; then
31169    break
31170  elif $ac_last_try; then
31171    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31172  else
31173    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31174  fi
31175done
31176
31177# For the awk script, D is an array of macro values keyed by name,
31178# likewise P contains macro parameters if any.  Preserve backslash
31179# newline sequences.
31180
31181ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31182sed -n '
31183s/.\{148\}/&'"$ac_delim"'/g
31184t rset
31185:rset
31186s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
31187t def
31188d
31189:def
31190s/\\$//
31191t bsnl
31192s/["\\]/\\&/g
31193s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31194D["\1"]=" \3"/p
31195s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
31196d
31197:bsnl
31198s/["\\]/\\&/g
31199s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31200D["\1"]=" \3\\\\\\n"\\/p
31201t cont
31202s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31203t cont
31204d
31205:cont
31206n
31207s/.\{148\}/&'"$ac_delim"'/g
31208t clear
31209:clear
31210s/\\$//
31211t bsnlc
31212s/["\\]/\\&/g; s/^/"/; s/$/"/p
31213d
31214:bsnlc
31215s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31216b cont
31217' <confdefs.h | sed '
31218s/'"$ac_delim"'/"\\\
31219"/g' >>$CONFIG_STATUS || ac_write_fail=1
31220
31221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31222  for (key in D) D_is_set[key] = 1
31223  FS = ""
31224}
31225/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31226  line = \$ 0
31227  split(line, arg, " ")
31228  if (arg[1] == "#") {
31229    defundef = arg[2]
31230    mac1 = arg[3]
31231  } else {
31232    defundef = substr(arg[1], 2)
31233    mac1 = arg[2]
31234  }
31235  split(mac1, mac2, "(") #)
31236  macro = mac2[1]
31237  prefix = substr(line, 1, index(line, defundef) - 1)
31238  if (D_is_set[macro]) {
31239    # Preserve the white space surrounding the "#".
31240    print prefix "define", macro P[macro] D[macro]
31241    next
31242  } else {
31243    # Replace #undef with comments.  This is necessary, for example,
31244    # in the case of _POSIX_SOURCE, which is predefined and required
31245    # on some systems where configure will not decide to define it.
31246    if (defundef == "undef") {
31247      print "/*", prefix defundef, macro, "*/"
31248      next
31249    }
31250  }
31251}
31252{ print }
31253_ACAWK
31254_ACEOF
31255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31256  as_fn_error "could not setup config headers machinery" "$LINENO" 5
31257fi # test -n "$CONFIG_HEADERS"
31258
31259
31260eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31261shift
31262for ac_tag
31263do
31264  case $ac_tag in
31265  :[FHLC]) ac_mode=$ac_tag; continue;;
31266  esac
31267  case $ac_mode$ac_tag in
31268  :[FHL]*:*);;
31269  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31270  :[FH]-) ac_tag=-:-;;
31271  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31272  esac
31273  ac_save_IFS=$IFS
31274  IFS=:
31275  set x $ac_tag
31276  IFS=$ac_save_IFS
31277  shift
31278  ac_file=$1
31279  shift
31280
31281  case $ac_mode in
31282  :L) ac_source=$1;;
31283  :[FH])
31284    ac_file_inputs=
31285    for ac_f
31286    do
31287      case $ac_f in
31288      -) ac_f="$tmp/stdin";;
31289      *) # Look for the file first in the build tree, then in the source tree
31290	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
31291	 # because $ac_f cannot contain `:'.
31292	 test -f "$ac_f" ||
31293	   case $ac_f in
31294	   [\\/$]*) false;;
31295	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31296	   esac ||
31297	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31298      esac
31299      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31300      as_fn_append ac_file_inputs " '$ac_f'"
31301    done
31302
31303    # Let's still pretend it is `configure' which instantiates (i.e., don't
31304    # use $as_me), people would be surprised to read:
31305    #    /* config.h.  Generated by config.status.  */
31306    configure_input='Generated from '`
31307	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31308	`' by configure.'
31309    if test x"$ac_file" != x-; then
31310      configure_input="$ac_file.  $configure_input"
31311      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31312$as_echo "$as_me: creating $ac_file" >&6;}
31313    fi
31314    # Neutralize special characters interpreted by sed in replacement strings.
31315    case $configure_input in #(
31316    *\&* | *\|* | *\\* )
31317       ac_sed_conf_input=`$as_echo "$configure_input" |
31318       sed 's/[\\\\&|]/\\\\&/g'`;; #(
31319    *) ac_sed_conf_input=$configure_input;;
31320    esac
31321
31322    case $ac_tag in
31323    *:-:* | *:-) cat >"$tmp/stdin" \
31324      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31325    esac
31326    ;;
31327  esac
31328
31329  ac_dir=`$as_dirname -- "$ac_file" ||
31330$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31331	 X"$ac_file" : 'X\(//\)[^/]' \| \
31332	 X"$ac_file" : 'X\(//\)$' \| \
31333	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31334$as_echo X"$ac_file" |
31335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31336	    s//\1/
31337	    q
31338	  }
31339	  /^X\(\/\/\)[^/].*/{
31340	    s//\1/
31341	    q
31342	  }
31343	  /^X\(\/\/\)$/{
31344	    s//\1/
31345	    q
31346	  }
31347	  /^X\(\/\).*/{
31348	    s//\1/
31349	    q
31350	  }
31351	  s/.*/./; q'`
31352  as_dir="$ac_dir"; as_fn_mkdir_p
31353  ac_builddir=.
31354
31355case "$ac_dir" in
31356.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31357*)
31358  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31359  # A ".." for each directory in $ac_dir_suffix.
31360  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31361  case $ac_top_builddir_sub in
31362  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31363  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31364  esac ;;
31365esac
31366ac_abs_top_builddir=$ac_pwd
31367ac_abs_builddir=$ac_pwd$ac_dir_suffix
31368# for backward compatibility:
31369ac_top_builddir=$ac_top_build_prefix
31370
31371case $srcdir in
31372  .)  # We are building in place.
31373    ac_srcdir=.
31374    ac_top_srcdir=$ac_top_builddir_sub
31375    ac_abs_top_srcdir=$ac_pwd ;;
31376  [\\/]* | ?:[\\/]* )  # Absolute name.
31377    ac_srcdir=$srcdir$ac_dir_suffix;
31378    ac_top_srcdir=$srcdir
31379    ac_abs_top_srcdir=$srcdir ;;
31380  *) # Relative name.
31381    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31382    ac_top_srcdir=$ac_top_build_prefix$srcdir
31383    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31384esac
31385ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31386
31387
31388  case $ac_mode in
31389  :F)
31390  #
31391  # CONFIG_FILE
31392  #
31393
31394_ACEOF
31395
31396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31397# If the template does not know about datarootdir, expand it.
31398# FIXME: This hack should be removed a few years after 2.60.
31399ac_datarootdir_hack=; ac_datarootdir_seen=
31400ac_sed_dataroot='
31401/datarootdir/ {
31402  p
31403  q
31404}
31405/@datadir@/p
31406/@docdir@/p
31407/@infodir@/p
31408/@localedir@/p
31409/@mandir@/p'
31410case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31411*datarootdir*) ac_datarootdir_seen=yes;;
31412*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31413  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31414$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31415_ACEOF
31416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31417  ac_datarootdir_hack='
31418  s&@datadir@&$datadir&g
31419  s&@docdir@&$docdir&g
31420  s&@infodir@&$infodir&g
31421  s&@localedir@&$localedir&g
31422  s&@mandir@&$mandir&g
31423  s&\\\${datarootdir}&$datarootdir&g' ;;
31424esac
31425_ACEOF
31426
31427# Neutralize VPATH when `$srcdir' = `.'.
31428# Shell code in configure.ac might set extrasub.
31429# FIXME: do we really want to maintain this feature?
31430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31431ac_sed_extra="$ac_vpsub
31432$extrasub
31433_ACEOF
31434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31435:t
31436/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31437s|@configure_input@|$ac_sed_conf_input|;t t
31438s&@top_builddir@&$ac_top_builddir_sub&;t t
31439s&@top_build_prefix@&$ac_top_build_prefix&;t t
31440s&@srcdir@&$ac_srcdir&;t t
31441s&@abs_srcdir@&$ac_abs_srcdir&;t t
31442s&@top_srcdir@&$ac_top_srcdir&;t t
31443s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31444s&@builddir@&$ac_builddir&;t t
31445s&@abs_builddir@&$ac_abs_builddir&;t t
31446s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31447$ac_datarootdir_hack
31448"
31449eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31450if $ac_cs_awk_getline; then
31451  $AWK -f "$tmp/subs.awk"
31452else
31453  $AWK -f "$tmp/subs.awk" | $SHELL
31454fi >$tmp/out \
31455  || as_fn_error "could not create $ac_file" "$LINENO" 5
31456
31457test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31458  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31459  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31460  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31461which seems to be undefined.  Please make sure it is defined." >&5
31462$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31463which seems to be undefined.  Please make sure it is defined." >&2;}
31464
31465  rm -f "$tmp/stdin"
31466  case $ac_file in
31467  -) cat "$tmp/out" && rm -f "$tmp/out";;
31468  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31469  esac \
31470  || as_fn_error "could not create $ac_file" "$LINENO" 5
31471 ;;
31472  :H)
31473  #
31474  # CONFIG_HEADER
31475  #
31476  if test x"$ac_file" != x-; then
31477    {
31478      $as_echo "/* $configure_input  */" \
31479      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31480    } >"$tmp/config.h" \
31481      || as_fn_error "could not create $ac_file" "$LINENO" 5
31482    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31483      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31484$as_echo "$as_me: $ac_file is unchanged" >&6;}
31485    else
31486      rm -f "$ac_file"
31487      mv "$tmp/config.h" "$ac_file" \
31488	|| as_fn_error "could not create $ac_file" "$LINENO" 5
31489    fi
31490  else
31491    $as_echo "/* $configure_input  */" \
31492      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31493      || as_fn_error "could not create -" "$LINENO" 5
31494  fi
31495 ;;
31496  :L)
31497  #
31498  # CONFIG_LINK
31499  #
31500
31501  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31502    :
31503  else
31504    # Prefer the file from the source tree if names are identical.
31505    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31506      ac_source=$srcdir/$ac_source
31507    fi
31508
31509    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31510$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31511
31512    if test ! -r "$ac_source"; then
31513      as_fn_error "$ac_source: file not found" "$LINENO" 5
31514    fi
31515    rm -f "$ac_file"
31516
31517    # Try a relative symlink, then a hard link, then a copy.
31518    case $srcdir in
31519    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31520	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31521    esac
31522    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31523      ln "$ac_source" "$ac_file" 2>/dev/null ||
31524      cp -p "$ac_source" "$ac_file" ||
31525      as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31526  fi
31527 ;;
31528  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31529$as_echo "$as_me: executing $ac_file commands" >&6;}
31530 ;;
31531  esac
31532
31533
31534  case $ac_file$ac_mode in
31535    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31536    "gccdepdir":C)
31537  ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31538  for lang in $subdirs c-family common
31539  do
31540      ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31541  done ;;
31542    "as":F) chmod +x as ;;
31543    "collect-ld":F) chmod +x collect-ld ;;
31544    "nm":F) chmod +x nm ;;
31545    "default":C)
31546case ${CONFIG_HEADERS} in
31547  *auto-host.h:config.in*)
31548  echo > cstamp-h ;;
31549esac
31550# Make sure all the subdirs exist.
31551for d in $subdirs doc build common c-family
31552do
31553    test -d $d || mkdir $d
31554done
31555 ;;
31556
31557  esac
31558done # for ac_tag
31559
31560
31561as_fn_exit 0
31562_ACEOF
31563ac_clean_files=$ac_clean_files_save
31564
31565test $ac_write_fail = 0 ||
31566  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31567
31568
31569# configure is writing to config.log, and then calls config.status.
31570# config.status does its own redirection, appending to config.log.
31571# Unfortunately, on DOS this fails, as config.log is still kept open
31572# by configure, so config.status won't be able to write to it; its
31573# output is simply discarded.  So we exec the FD to /dev/null,
31574# effectively closing config.log, so it can be properly (re)opened and
31575# appended to by config.status.  When coming back to configure, we
31576# need to make the FD available again.
31577if test "$no_create" != yes; then
31578  ac_cs_success=:
31579  ac_config_status_args=
31580  test "$silent" = yes &&
31581    ac_config_status_args="$ac_config_status_args --quiet"
31582  exec 5>/dev/null
31583  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31584  exec 5>>config.log
31585  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31586  # would make configure fail if this is the last instruction.
31587  $ac_cs_success || as_fn_exit $?
31588fi
31589if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31590  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31591$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31592fi
31593
31594
31595