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
603PICFLAG
604enable_host_shared
605enable_plugin
606pluginlibs
607CLOOGINC
608CLOOGLIBS
609ISLINC
610ISLLIBS
611GMPINC
612GMPLIBS
613target_cpu_default
614fortran_target_objs
615cxx_target_objs
616c_target_objs
617use_gcc_stdint
618xm_defines
619xm_include_list
620xm_file_list
621tm_p_include_list
622tm_p_file_list
623tm_defines
624tm_include_list
625tm_file_list
626common_out_object_file
627common_out_file
628out_object_file
629out_file
630objc_boehm_gc
631md_file
632local_prefix
633lang_tree_files
634lang_specs_files
635lang_opt_files
636install
637out_host_hook_obj
638host_xm_defines
639host_xm_include_list
640host_xm_file_list
641host_exeext
642gcc_gxx_include_dir_add_sysroot
643gcc_gxx_include_dir
644gcc_config_arguments
645float_h_file
646extra_programs
647extra_objs
648extra_headers_list
649user_headers_inc_next_post
650user_headers_inc_next_pre
651extra_gcc_objs
652TM_MULTILIB_EXCEPTIONS_CONFIG
653TM_MULTILIB_CONFIG
654TM_ENDIAN_CONFIG
655tmake_file
656xmake_file
657cpp_install_dir
658check_languages
659build_file_translate
660build_xm_defines
661build_xm_include_list
662build_xm_file_list
663build_install_headers_dir
664build_exeext
665all_selected_languages
666all_languages
667all_lang_makefrags
668all_gtfiles
669all_compilers
670srcdir
671subdirs
672dollar
673gcc_tooldir
674enable_lto
675DO_LINK_MUTEX
676MAINT
677zlibinc
678zlibdir
679HOST_LIBS
680libgcc_visibility
681gcc_cv_readelf
682gcc_cv_objdump
683ORIGINAL_NM_FOR_TARGET
684gcc_cv_nm
685ORIGINAL_LD_GOLD_FOR_TARGET
686ORIGINAL_LD_BFD_FOR_TARGET
687ORIGINAL_LD_FOR_TARGET
688ORIGINAL_PLUGIN_LD_FOR_TARGET
689gcc_cv_ld
690ORIGINAL_AS_FOR_TARGET
691gcc_cv_as
692enable_fast_install
693objdir
694OTOOL64
695OTOOL
696LIPO
697NMEDIT
698DSYMUTIL
699STRIP
700OBJDUMP
701ac_ct_DUMPBIN
702DUMPBIN
703LD
704FGREP
705SED
706LIBTOOL
707collect2
708STMP_FIXINC
709BUILD_LDFLAGS
710BUILD_CXXFLAGS
711BUILD_CFLAGS
712CXX_FOR_BUILD
713CC_FOR_BUILD
714inhibit_libc
715SYSTEM_HEADER_DIR
716ALL
717CROSS
718CATOBJEXT
719GENCAT
720INSTOBJEXT
721DATADIRNAME
722CATALOGS
723POSUB
724GMSGFMT
725XGETTEXT
726INCINTL
727LIBINTL_DEP
728LIBINTL
729USE_NLS
730extra_opt_files
731extra_modes_file
732NATIVE_SYSTEM_HEADER_DIR
733objext
734manext
735LIBICONV_DEP
736LTLIBICONV
737LIBICONV
738LDEXP_LIB
739EXTRA_GCC_LIBS
740GNAT_LIBEXC
741COLLECT2_LIBS
742CXXDEPMODE
743DEPDIR
744am__leading_dot
745CXXCPP
746AR
747NM
748BISON
749FLEX
750GENERATED_MANPAGES
751BUILD_INFO
752MAKEINFO
753have_mktemp_command
754make_compare_target
755INSTALL_DATA
756INSTALL_PROGRAM
757INSTALL
758ranlib_flags
759RANLIB
760LN
761LN_S
762AWK
763SET_MAKE
764REPORT_BUGS_TEXI
765REPORT_BUGS_TO
766PKGVERSION
767CONFIGURE_SPECS
768CROSS_SYSTEM_HEADER_DIR
769TARGET_SYSTEM_ROOT_DEFINE
770TARGET_SYSTEM_ROOT
771SYSROOT_CFLAGS_FOR_TARGET
772enable_shared
773enable_fixed_point
774enable_decimal_float
775with_float
776with_cpu
777enable_multiarch
778enable_multilib
779coverage_flags
780valgrind_command
781valgrind_path_defines
782valgrind_path
783TREECHECKING
784TREEBROWSER
785nocommon_flag
786noexception_flags
787warn_cxxflags
788warn_cflags
789c_strict_warn
790strict_warn
791c_loose_warn
792loose_warn
793EGREP
794GREP
795CPP
796PICFLAG_FOR_TARGET
797GNATMAKE
798GNATBIND
799ac_ct_CXX
800CXXFLAGS
801CXX
802OBJEXT
803EXEEXT
804ac_ct_CC
805CPPFLAGS
806LDFLAGS
807CFLAGS
808CC
809GENINSRC
810target_subdir
811host_subdir
812build_subdir
813build_libsubdir
814target_noncanonical
815target_os
816target_vendor
817target_cpu
818target
819host_os
820host_vendor
821host_cpu
822host
823build_os
824build_vendor
825build_cpu
826build
827target_alias
828host_alias
829build_alias
830LIBS
831ECHO_T
832ECHO_N
833ECHO_C
834DEFS
835mandir
836localedir
837libdir
838psdir
839pdfdir
840dvidir
841htmldir
842infodir
843docdir
844oldincludedir
845includedir
846localstatedir
847sharedstatedir
848sysconfdir
849datadir
850datarootdir
851libexecdir
852sbindir
853bindir
854program_transform_name
855prefix
856exec_prefix
857PACKAGE_URL
858PACKAGE_BUGREPORT
859PACKAGE_STRING
860PACKAGE_VERSION
861PACKAGE_TARNAME
862PACKAGE_NAME
863PATH_SEPARATOR
864SHELL'
865ac_subst_files='option_includes
866language_hooks'
867ac_user_opts='
868enable_option_checking
869with_build_libsubdir
870with_local_prefix
871with_gxx_include_dir
872with_cpp_install_dir
873enable_generated_files_in_srcdir
874with_gnu_ld
875with_ld
876with_demangler_in_ld
877with_gnu_as
878with_as
879enable_largefile
880enable_build_format_warnings
881enable_werror_always
882enable_checking
883enable_coverage
884enable_gather_detailed_mem_stats
885with_stabs
886enable_multilib
887enable_multiarch
888enable___cxa_atexit
889enable_decimal_float
890enable_fixed_point
891enable_threads
892enable_tls
893enable_objc_gc
894with_dwarf2
895enable_shared
896with_native_system_header_dir
897with_build_sysroot
898with_sysroot
899with_specs
900with_pkgversion
901with_bugurl
902enable_languages
903with_multilib_list
904enable_rpath
905with_libiconv_prefix
906enable_sjlj_exceptions
907enable_secureplt
908enable_leading_mingw64_underscores
909enable_cld
910enable_frame_pointer
911enable_win32_registry
912enable_static
913with_pic
914enable_fast_install
915enable_libtool_lock
916enable_ld
917enable_gold
918with_plugin_ld
919enable_gnu_indirect_function
920enable_initfini_array
921enable_comdat
922enable_fix_cortex_a53_835769
923with_glibc_version
924enable_gnu_unique_object
925enable_linker_build_id
926with_long_double_128
927with_gc
928with_system_zlib
929enable_maintainer_mode
930enable_link_mutex
931enable_version_specific_runtime_libs
932enable_plugin
933enable_host_shared
934enable_libquadmath_support
935with_linker_hash_style
936'
937      ac_precious_vars='build_alias
938host_alias
939target_alias
940CC
941CFLAGS
942LDFLAGS
943LIBS
944CPPFLAGS
945CXX
946CXXFLAGS
947CCC
948CPP
949CXXCPP
950GMPLIBS
951GMPINC
952ISLLIBS
953ISLINC
954CLOOGLIBS
955CLOOGINC'
956
957
958# Initialize some variables set by options.
959ac_init_help=
960ac_init_version=false
961ac_unrecognized_opts=
962ac_unrecognized_sep=
963# The variables have the same names as the options, with
964# dashes changed to underlines.
965cache_file=/dev/null
966exec_prefix=NONE
967no_create=
968no_recursion=
969prefix=NONE
970program_prefix=NONE
971program_suffix=NONE
972program_transform_name=s,x,x,
973silent=
974site=
975srcdir=
976verbose=
977x_includes=NONE
978x_libraries=NONE
979
980# Installation directory options.
981# These are left unexpanded so users can "make install exec_prefix=/foo"
982# and all the variables that are supposed to be based on exec_prefix
983# by default will actually change.
984# Use braces instead of parens because sh, perl, etc. also accept them.
985# (The list follows the same order as the GNU Coding Standards.)
986bindir='${exec_prefix}/bin'
987sbindir='${exec_prefix}/sbin'
988libexecdir='${exec_prefix}/libexec'
989datarootdir='${prefix}/share'
990datadir='${datarootdir}'
991sysconfdir='${prefix}/etc'
992sharedstatedir='${prefix}/com'
993localstatedir='${prefix}/var'
994includedir='${prefix}/include'
995oldincludedir='/usr/include'
996docdir='${datarootdir}/doc/${PACKAGE}'
997infodir='${datarootdir}/info'
998htmldir='${docdir}'
999dvidir='${docdir}'
1000pdfdir='${docdir}'
1001psdir='${docdir}'
1002libdir='${exec_prefix}/lib'
1003localedir='${datarootdir}/locale'
1004mandir='${datarootdir}/man'
1005
1006ac_prev=
1007ac_dashdash=
1008for ac_option
1009do
1010  # If the previous option needs an argument, assign it.
1011  if test -n "$ac_prev"; then
1012    eval $ac_prev=\$ac_option
1013    ac_prev=
1014    continue
1015  fi
1016
1017  case $ac_option in
1018  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019  *)	ac_optarg=yes ;;
1020  esac
1021
1022  # Accept the important Cygnus configure options, so we can diagnose typos.
1023
1024  case $ac_dashdash$ac_option in
1025  --)
1026    ac_dashdash=yes ;;
1027
1028  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029    ac_prev=bindir ;;
1030  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031    bindir=$ac_optarg ;;
1032
1033  -build | --build | --buil | --bui | --bu)
1034    ac_prev=build_alias ;;
1035  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036    build_alias=$ac_optarg ;;
1037
1038  -cache-file | --cache-file | --cache-fil | --cache-fi \
1039  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040    ac_prev=cache_file ;;
1041  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043    cache_file=$ac_optarg ;;
1044
1045  --config-cache | -C)
1046    cache_file=config.cache ;;
1047
1048  -datadir | --datadir | --datadi | --datad)
1049    ac_prev=datadir ;;
1050  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051    datadir=$ac_optarg ;;
1052
1053  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054  | --dataroo | --dataro | --datar)
1055    ac_prev=datarootdir ;;
1056  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058    datarootdir=$ac_optarg ;;
1059
1060  -disable-* | --disable-*)
1061    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062    # Reject names that are not valid shell variable names.
1063    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064      as_fn_error "invalid feature name: $ac_useropt"
1065    ac_useropt_orig=$ac_useropt
1066    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067    case $ac_user_opts in
1068      *"
1069"enable_$ac_useropt"
1070"*) ;;
1071      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072	 ac_unrecognized_sep=', ';;
1073    esac
1074    eval enable_$ac_useropt=no ;;
1075
1076  -docdir | --docdir | --docdi | --doc | --do)
1077    ac_prev=docdir ;;
1078  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079    docdir=$ac_optarg ;;
1080
1081  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082    ac_prev=dvidir ;;
1083  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084    dvidir=$ac_optarg ;;
1085
1086  -enable-* | --enable-*)
1087    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088    # Reject names that are not valid shell variable names.
1089    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090      as_fn_error "invalid feature name: $ac_useropt"
1091    ac_useropt_orig=$ac_useropt
1092    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093    case $ac_user_opts in
1094      *"
1095"enable_$ac_useropt"
1096"*) ;;
1097      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098	 ac_unrecognized_sep=', ';;
1099    esac
1100    eval enable_$ac_useropt=\$ac_optarg ;;
1101
1102  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104  | --exec | --exe | --ex)
1105    ac_prev=exec_prefix ;;
1106  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108  | --exec=* | --exe=* | --ex=*)
1109    exec_prefix=$ac_optarg ;;
1110
1111  -gas | --gas | --ga | --g)
1112    # Obsolete; use --with-gas.
1113    with_gas=yes ;;
1114
1115  -help | --help | --hel | --he | -h)
1116    ac_init_help=long ;;
1117  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118    ac_init_help=recursive ;;
1119  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120    ac_init_help=short ;;
1121
1122  -host | --host | --hos | --ho)
1123    ac_prev=host_alias ;;
1124  -host=* | --host=* | --hos=* | --ho=*)
1125    host_alias=$ac_optarg ;;
1126
1127  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128    ac_prev=htmldir ;;
1129  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130  | --ht=*)
1131    htmldir=$ac_optarg ;;
1132
1133  -includedir | --includedir | --includedi | --included | --include \
1134  | --includ | --inclu | --incl | --inc)
1135    ac_prev=includedir ;;
1136  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137  | --includ=* | --inclu=* | --incl=* | --inc=*)
1138    includedir=$ac_optarg ;;
1139
1140  -infodir | --infodir | --infodi | --infod | --info | --inf)
1141    ac_prev=infodir ;;
1142  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143    infodir=$ac_optarg ;;
1144
1145  -libdir | --libdir | --libdi | --libd)
1146    ac_prev=libdir ;;
1147  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148    libdir=$ac_optarg ;;
1149
1150  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151  | --libexe | --libex | --libe)
1152    ac_prev=libexecdir ;;
1153  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154  | --libexe=* | --libex=* | --libe=*)
1155    libexecdir=$ac_optarg ;;
1156
1157  -localedir | --localedir | --localedi | --localed | --locale)
1158    ac_prev=localedir ;;
1159  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160    localedir=$ac_optarg ;;
1161
1162  -localstatedir | --localstatedir | --localstatedi | --localstated \
1163  | --localstate | --localstat | --localsta | --localst | --locals)
1164    ac_prev=localstatedir ;;
1165  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167    localstatedir=$ac_optarg ;;
1168
1169  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170    ac_prev=mandir ;;
1171  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172    mandir=$ac_optarg ;;
1173
1174  -nfp | --nfp | --nf)
1175    # Obsolete; use --without-fp.
1176    with_fp=no ;;
1177
1178  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179  | --no-cr | --no-c | -n)
1180    no_create=yes ;;
1181
1182  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184    no_recursion=yes ;;
1185
1186  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188  | --oldin | --oldi | --old | --ol | --o)
1189    ac_prev=oldincludedir ;;
1190  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193    oldincludedir=$ac_optarg ;;
1194
1195  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196    ac_prev=prefix ;;
1197  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198    prefix=$ac_optarg ;;
1199
1200  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201  | --program-pre | --program-pr | --program-p)
1202    ac_prev=program_prefix ;;
1203  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205    program_prefix=$ac_optarg ;;
1206
1207  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208  | --program-suf | --program-su | --program-s)
1209    ac_prev=program_suffix ;;
1210  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212    program_suffix=$ac_optarg ;;
1213
1214  -program-transform-name | --program-transform-name \
1215  | --program-transform-nam | --program-transform-na \
1216  | --program-transform-n | --program-transform- \
1217  | --program-transform | --program-transfor \
1218  | --program-transfo | --program-transf \
1219  | --program-trans | --program-tran \
1220  | --progr-tra | --program-tr | --program-t)
1221    ac_prev=program_transform_name ;;
1222  -program-transform-name=* | --program-transform-name=* \
1223  | --program-transform-nam=* | --program-transform-na=* \
1224  | --program-transform-n=* | --program-transform-=* \
1225  | --program-transform=* | --program-transfor=* \
1226  | --program-transfo=* | --program-transf=* \
1227  | --program-trans=* | --program-tran=* \
1228  | --progr-tra=* | --program-tr=* | --program-t=*)
1229    program_transform_name=$ac_optarg ;;
1230
1231  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232    ac_prev=pdfdir ;;
1233  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234    pdfdir=$ac_optarg ;;
1235
1236  -psdir | --psdir | --psdi | --psd | --ps)
1237    ac_prev=psdir ;;
1238  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239    psdir=$ac_optarg ;;
1240
1241  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242  | -silent | --silent | --silen | --sile | --sil)
1243    silent=yes ;;
1244
1245  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246    ac_prev=sbindir ;;
1247  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248  | --sbi=* | --sb=*)
1249    sbindir=$ac_optarg ;;
1250
1251  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253  | --sharedst | --shareds | --shared | --share | --shar \
1254  | --sha | --sh)
1255    ac_prev=sharedstatedir ;;
1256  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259  | --sha=* | --sh=*)
1260    sharedstatedir=$ac_optarg ;;
1261
1262  -site | --site | --sit)
1263    ac_prev=site ;;
1264  -site=* | --site=* | --sit=*)
1265    site=$ac_optarg ;;
1266
1267  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268    ac_prev=srcdir ;;
1269  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270    srcdir=$ac_optarg ;;
1271
1272  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273  | --syscon | --sysco | --sysc | --sys | --sy)
1274    ac_prev=sysconfdir ;;
1275  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277    sysconfdir=$ac_optarg ;;
1278
1279  -target | --target | --targe | --targ | --tar | --ta | --t)
1280    ac_prev=target_alias ;;
1281  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282    target_alias=$ac_optarg ;;
1283
1284  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285    verbose=yes ;;
1286
1287  -version | --version | --versio | --versi | --vers | -V)
1288    ac_init_version=: ;;
1289
1290  -with-* | --with-*)
1291    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292    # Reject names that are not valid shell variable names.
1293    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294      as_fn_error "invalid package name: $ac_useropt"
1295    ac_useropt_orig=$ac_useropt
1296    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297    case $ac_user_opts in
1298      *"
1299"with_$ac_useropt"
1300"*) ;;
1301      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302	 ac_unrecognized_sep=', ';;
1303    esac
1304    eval with_$ac_useropt=\$ac_optarg ;;
1305
1306  -without-* | --without-*)
1307    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308    # Reject names that are not valid shell variable names.
1309    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310      as_fn_error "invalid package name: $ac_useropt"
1311    ac_useropt_orig=$ac_useropt
1312    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313    case $ac_user_opts in
1314      *"
1315"with_$ac_useropt"
1316"*) ;;
1317      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318	 ac_unrecognized_sep=', ';;
1319    esac
1320    eval with_$ac_useropt=no ;;
1321
1322  --x)
1323    # Obsolete; use --with-x.
1324    with_x=yes ;;
1325
1326  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1327  | --x-incl | --x-inc | --x-in | --x-i)
1328    ac_prev=x_includes ;;
1329  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1330  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1331    x_includes=$ac_optarg ;;
1332
1333  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1334  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1335    ac_prev=x_libraries ;;
1336  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1337  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1338    x_libraries=$ac_optarg ;;
1339
1340  -*) as_fn_error "unrecognized option: \`$ac_option'
1341Try \`$0 --help' for more information."
1342    ;;
1343
1344  *=*)
1345    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1346    # Reject names that are not valid shell variable names.
1347    case $ac_envvar in #(
1348      '' | [0-9]* | *[!_$as_cr_alnum]* )
1349      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1350    esac
1351    eval $ac_envvar=\$ac_optarg
1352    export $ac_envvar ;;
1353
1354  *)
1355    # FIXME: should be removed in autoconf 3.0.
1356    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1360    ;;
1361
1362  esac
1363done
1364
1365if test -n "$ac_prev"; then
1366  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1367  as_fn_error "missing argument to $ac_option"
1368fi
1369
1370if test -n "$ac_unrecognized_opts"; then
1371  case $enable_option_checking in
1372    no) ;;
1373    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1374    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1375  esac
1376fi
1377
1378# Check all directory arguments for consistency.
1379for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380		datadir sysconfdir sharedstatedir localstatedir includedir \
1381		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382		libdir localedir mandir
1383do
1384  eval ac_val=\$$ac_var
1385  # Remove trailing slashes.
1386  case $ac_val in
1387    */ )
1388      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389      eval $ac_var=\$ac_val;;
1390  esac
1391  # Be sure to have absolute directory names.
1392  case $ac_val in
1393    [\\/$]* | ?:[\\/]* )  continue;;
1394    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395  esac
1396  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1397done
1398
1399# There might be people who depend on the old broken behavior: `$host'
1400# used to hold the argument of --host etc.
1401# FIXME: To remove some day.
1402build=$build_alias
1403host=$host_alias
1404target=$target_alias
1405
1406# FIXME: To remove some day.
1407if test "x$host_alias" != x; then
1408  if test "x$build_alias" = x; then
1409    cross_compiling=maybe
1410    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1411    If a cross compiler is detected then cross compile mode will be used." >&2
1412  elif test "x$build_alias" != "x$host_alias"; then
1413    cross_compiling=yes
1414  fi
1415fi
1416
1417ac_tool_prefix=
1418test -n "$host_alias" && ac_tool_prefix=$host_alias-
1419
1420test "$silent" = yes && exec 6>/dev/null
1421
1422
1423ac_pwd=`pwd` && test -n "$ac_pwd" &&
1424ac_ls_di=`ls -di .` &&
1425ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1426  as_fn_error "working directory cannot be determined"
1427test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428  as_fn_error "pwd does not report name of working directory"
1429
1430
1431# Find the source files, if location was not specified.
1432if test -z "$srcdir"; then
1433  ac_srcdir_defaulted=yes
1434  # Try the directory containing this script, then the parent directory.
1435  ac_confdir=`$as_dirname -- "$as_myself" ||
1436$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437	 X"$as_myself" : 'X\(//\)[^/]' \| \
1438	 X"$as_myself" : 'X\(//\)$' \| \
1439	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440$as_echo X"$as_myself" |
1441    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442	    s//\1/
1443	    q
1444	  }
1445	  /^X\(\/\/\)[^/].*/{
1446	    s//\1/
1447	    q
1448	  }
1449	  /^X\(\/\/\)$/{
1450	    s//\1/
1451	    q
1452	  }
1453	  /^X\(\/\).*/{
1454	    s//\1/
1455	    q
1456	  }
1457	  s/.*/./; q'`
1458  srcdir=$ac_confdir
1459  if test ! -r "$srcdir/$ac_unique_file"; then
1460    srcdir=..
1461  fi
1462else
1463  ac_srcdir_defaulted=no
1464fi
1465if test ! -r "$srcdir/$ac_unique_file"; then
1466  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1468fi
1469ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1470ac_abs_confdir=`(
1471	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1472	pwd)`
1473# When building in place, set srcdir=.
1474if test "$ac_abs_confdir" = "$ac_pwd"; then
1475  srcdir=.
1476fi
1477# Remove unnecessary trailing slashes from srcdir.
1478# Double slashes in file names in object file debugging info
1479# mess up M-x gdb in Emacs.
1480case $srcdir in
1481*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482esac
1483for ac_var in $ac_precious_vars; do
1484  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485  eval ac_env_${ac_var}_value=\$${ac_var}
1486  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488done
1489
1490#
1491# Report the --help message.
1492#
1493if test "$ac_init_help" = "long"; then
1494  # Omit some internal or obsolete options to make the list less imposing.
1495  # This message is too long to be a string in the A/UX 3.1 sh.
1496  cat <<_ACEOF
1497\`configure' configures this package to adapt to many kinds of systems.
1498
1499Usage: $0 [OPTION]... [VAR=VALUE]...
1500
1501To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502VAR=VALUE.  See below for descriptions of some of the useful variables.
1503
1504Defaults for the options are specified in brackets.
1505
1506Configuration:
1507  -h, --help              display this help and exit
1508      --help=short        display options specific to this package
1509      --help=recursive    display the short help of all the included packages
1510  -V, --version           display version information and exit
1511  -q, --quiet, --silent   do not print \`checking...' messages
1512      --cache-file=FILE   cache test results in FILE [disabled]
1513  -C, --config-cache      alias for \`--cache-file=config.cache'
1514  -n, --no-create         do not create output files
1515      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1516
1517Installation directories:
1518  --prefix=PREFIX         install architecture-independent files in PREFIX
1519                          [$ac_default_prefix]
1520  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1521                          [PREFIX]
1522
1523By default, \`make install' will install all the files in
1524\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1525an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526for instance \`--prefix=\$HOME'.
1527
1528For better control, use the options below.
1529
1530Fine tuning of the installation directories:
1531  --bindir=DIR            user executables [EPREFIX/bin]
1532  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1533  --libexecdir=DIR        program executables [EPREFIX/libexec]
1534  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1535  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1536  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1537  --libdir=DIR            object code libraries [EPREFIX/lib]
1538  --includedir=DIR        C header files [PREFIX/include]
1539  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1540  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1541  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1542  --infodir=DIR           info documentation [DATAROOTDIR/info]
1543  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1544  --mandir=DIR            man documentation [DATAROOTDIR/man]
1545  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1546  --htmldir=DIR           html documentation [DOCDIR]
1547  --dvidir=DIR            dvi documentation [DOCDIR]
1548  --pdfdir=DIR            pdf documentation [DOCDIR]
1549  --psdir=DIR             ps documentation [DOCDIR]
1550_ACEOF
1551
1552  cat <<\_ACEOF
1553
1554Program names:
1555  --program-prefix=PREFIX            prepend PREFIX to installed program names
1556  --program-suffix=SUFFIX            append SUFFIX to installed program names
1557  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1558
1559System types:
1560  --build=BUILD     configure for building on BUILD [guessed]
1561  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1562  --target=TARGET   configure for building compilers for TARGET [HOST]
1563_ACEOF
1564fi
1565
1566if test -n "$ac_init_help"; then
1567
1568  cat <<\_ACEOF
1569
1570Optional Features:
1571  --disable-option-checking  ignore unrecognized --enable/--with options
1572  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1573  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1574  --enable-generated-files-in-srcdir
1575                          put copies of generated files in source dir intended
1576                          for creating source tarballs for users without
1577                          texinfo bison or flex
1578  --disable-largefile     omit support for large files
1579  --disable-build-format-warnings
1580                          don't use -Wformat while building GCC
1581  --enable-werror-always  enable -Werror despite compiler version
1582  --enable-checking[=LIST]
1583                          enable expensive run-time checks. With LIST, enable
1584                          only specific categories of checks. Categories are:
1585                          yes,no,all,none,release. Flags are:
1586                          assert,df,fold,gc,gcac,gimple,misc,
1587                          rtlflag,rtl,runtime,tree,valgrind,types
1588  --enable-coverage[=LEVEL]
1589                          enable compiler's code coverage collection. Use to
1590                          measure compiler performance and locate unused parts
1591                          of the compiler. With LEVEL, specify optimization.
1592                          Values are opt, noopt, default is noopt
1593  --enable-gather-detailed-mem-stats
1594                          enable detailed memory allocation stats gathering
1595  --enable-multilib       enable library support for multiple ABIs
1596  --enable-multiarch      enable support for multiarch paths
1597  --enable-__cxa_atexit   enable __cxa_atexit for C++
1598  --enable-decimal-float={no,yes,bid,dpd}
1599			enable decimal float extension to C.  Selecting 'bid'
1600			or 'dpd' choses which decimal floating point format
1601			to use
1602  --enable-fixed-point    enable fixed-point arithmetic extension to C
1603  --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1604                          package
1605  --enable-tls            enable or disable generation of tls code overriding
1606                          the assembler check for tls support
1607  --enable-objc-gc        enable the use of Boehm's garbage collector with the
1608                          GNU Objective-C runtime
1609  --disable-shared        don't provide a shared libgcc
1610  --enable-languages=LIST specify which front-ends to build
1611  --disable-rpath         do not hardcode runtime library paths
1612  --enable-sjlj-exceptions
1613                          arrange to use setjmp/longjmp exception handling
1614  --enable-secureplt      enable -msecure-plt by default for PowerPC
1615  --enable-leading-mingw64-underscores
1616                          enable leading underscores on 64 bit mingw targets
1617  --enable-cld            enable -mcld by default for 32bit x86
1618  --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1619                          x86
1620  --disable-win32-registry
1621                          disable lookup of installation paths in the Registry
1622                          on Windows hosts
1623  --enable-win32-registry enable registry lookup (default)
1624  --enable-win32-registry=KEY
1625                          use KEY instead of GCC version as the last portion
1626                          of the registry key
1627  --enable-shared[=PKGS]  build shared libraries [default=yes]
1628  --enable-static[=PKGS]  build static libraries [default=yes]
1629  --enable-fast-install[=PKGS]
1630                          optimize for fast installation [default=yes]
1631  --disable-libtool-lock  avoid locking (might break parallel builds)
1632  --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1633  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1634  --enable-gnu-indirect-function
1635                          enable the use of the @gnu_indirect_function to
1636                          glibc systems
1637  --enable-initfini-array	use .init_array/.fini_array sections
1638  --enable-comdat         enable COMDAT group support
1639
1640  --enable-fix-cortex-a53-835769
1641                          enable workaround for AArch64 Cortex-A53 erratum
1642                          835769 by default
1643  --disable-fix-cortex-a53-835769
1644                          disable workaround for AArch64 Cortex-A53 erratum
1645                          835769 by default
1646
1647  --enable-gnu-unique-object
1648                          enable the use of the @gnu_unique_object ELF
1649                          extension on glibc systems
1650  --enable-linker-build-id
1651                          compiler will always pass --build-id to linker
1652  --enable-maintainer-mode
1653                          enable make rules and dependencies not useful (and
1654                          sometimes confusing) to the casual installer
1655  --enable-link-mutex     avoid linking multiple front-ends at once to avoid
1656                          thrashing on the build machine
1657  --enable-version-specific-runtime-libs
1658                          specify that runtime libraries should be installed
1659                          in a compiler-specific directory
1660  --enable-plugin         enable plugin support
1661  --enable-host-shared    build host code as shared libraries
1662  --disable-libquadmath-support
1663                          disable libquadmath support for Fortran
1664
1665Optional Packages:
1666  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1667  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1668  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1669  --with-local-prefix=DIR specifies directory to put local include
1670  --with-gxx-include-dir=DIR
1671                          specifies directory to put g++ header files
1672  --with-cpp-install-dir=DIR
1673                          install the user visible C preprocessor in DIR
1674                          (relative to PREFIX) as well as PREFIX/bin
1675  --with-gnu-ld           arrange to work with GNU ld
1676  --with-ld               arrange to use the specified ld (full pathname)
1677  --with-demangler-in-ld  try to use demangler in GNU ld
1678  --with-gnu-as           arrange to work with GNU as
1679  --with-as               arrange to use the specified as (full pathname)
1680  --with-stabs            arrange to use stabs instead of host debug format
1681  --with-dwarf2           force the default debug format to be DWARF 2
1682  --with-native-system-header-dir=dir
1683                          use dir as the directory to look for standard
1684                          system header files in.  Defaults to /usr/include.
1685  --with-build-sysroot=sysroot
1686                          use sysroot as the system root during the build
1687  --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1688  --with-specs=SPECS      add SPECS to driver command-line processing
1689  --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1690  --with-bugurl=URL       Direct users to URL to report a bug
1691  --with-multilib-list    select multilibs (AArch64, SH and x86-64 only)
1692  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1693  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1694  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1695  --with-pic              try to use only PIC/non-PIC objects [default=use
1696                          both]
1697  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1698  --with-plugin-ld=[ARG]  specify the plugin linker
1699  --with-glibc-version=M.N
1700                          assume GCC used with glibc version M.N or later
1701  --with-long-double-128  use 128-bit long double by default
1702  --with-gc={page,zone}   this option is not supported anymore. It used to
1703                          choose the garbage collection mechanism to use with
1704                          the compiler
1705  --with-system-zlib      use installed libz
1706  --with-linker-hash-style={sysv,gnu,both}
1707                          specify the linker hash style
1708
1709Some influential environment variables:
1710  CC          C compiler command
1711  CFLAGS      C compiler flags
1712  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1713              nonstandard directory <lib dir>
1714  LIBS        libraries to pass to the linker, e.g. -l<library>
1715  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1716              you have headers in a nonstandard directory <include dir>
1717  CXX         C++ compiler command
1718  CXXFLAGS    C++ compiler flags
1719  CPP         C preprocessor
1720  CXXCPP      C++ preprocessor
1721  GMPLIBS     How to link GMP
1722  GMPINC      How to find GMP include files
1723  ISLLIBS     How to link ISL
1724  ISLINC      How to find ISL include files
1725  CLOOGLIBS   How to link CLOOG
1726  CLOOGINC    How to find CLOOG include files
1727
1728Use these variables to override the choices made by `configure' or to help
1729it to find libraries and programs with nonstandard names/locations.
1730
1731Report bugs to the package provider.
1732_ACEOF
1733ac_status=$?
1734fi
1735
1736if test "$ac_init_help" = "recursive"; then
1737  # If there are subdirs, report their specific --help.
1738  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1739    test -d "$ac_dir" ||
1740      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1741      continue
1742    ac_builddir=.
1743
1744case "$ac_dir" in
1745.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746*)
1747  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1748  # A ".." for each directory in $ac_dir_suffix.
1749  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1750  case $ac_top_builddir_sub in
1751  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1753  esac ;;
1754esac
1755ac_abs_top_builddir=$ac_pwd
1756ac_abs_builddir=$ac_pwd$ac_dir_suffix
1757# for backward compatibility:
1758ac_top_builddir=$ac_top_build_prefix
1759
1760case $srcdir in
1761  .)  # We are building in place.
1762    ac_srcdir=.
1763    ac_top_srcdir=$ac_top_builddir_sub
1764    ac_abs_top_srcdir=$ac_pwd ;;
1765  [\\/]* | ?:[\\/]* )  # Absolute name.
1766    ac_srcdir=$srcdir$ac_dir_suffix;
1767    ac_top_srcdir=$srcdir
1768    ac_abs_top_srcdir=$srcdir ;;
1769  *) # Relative name.
1770    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1771    ac_top_srcdir=$ac_top_build_prefix$srcdir
1772    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1773esac
1774ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1775
1776    cd "$ac_dir" || { ac_status=$?; continue; }
1777    # Check for guested configure.
1778    if test -f "$ac_srcdir/configure.gnu"; then
1779      echo &&
1780      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1781    elif test -f "$ac_srcdir/configure"; then
1782      echo &&
1783      $SHELL "$ac_srcdir/configure" --help=recursive
1784    else
1785      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1786    fi || ac_status=$?
1787    cd "$ac_pwd" || { ac_status=$?; break; }
1788  done
1789fi
1790
1791test -n "$ac_init_help" && exit $ac_status
1792if $ac_init_version; then
1793  cat <<\_ACEOF
1794configure
1795generated by GNU Autoconf 2.64
1796
1797Copyright (C) 2009 Free Software Foundation, Inc.
1798This configure script is free software; the Free Software Foundation
1799gives unlimited permission to copy, distribute and modify it.
1800_ACEOF
1801  exit
1802fi
1803
1804## ------------------------ ##
1805## Autoconf initialization. ##
1806## ------------------------ ##
1807
1808# ac_fn_c_try_compile LINENO
1809# --------------------------
1810# Try to compile conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_c_try_compile ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  rm -f conftest.$ac_objext
1815  if { { ac_try="$ac_compile"
1816case "(($ac_try" in
1817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818  *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822  (eval "$ac_compile") 2>conftest.err
1823  ac_status=$?
1824  if test -s conftest.err; then
1825    grep -v '^ *+' conftest.err >conftest.er1
1826    cat conftest.er1 >&5
1827    mv -f conftest.er1 conftest.err
1828  fi
1829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830  test $ac_status = 0; } && {
1831	 test -z "$ac_c_werror_flag" ||
1832	 test ! -s conftest.err
1833       } && test -s conftest.$ac_objext; then :
1834  ac_retval=0
1835else
1836  $as_echo "$as_me: failed program was:" >&5
1837sed 's/^/| /' conftest.$ac_ext >&5
1838
1839	ac_retval=1
1840fi
1841  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842  return $ac_retval
1843
1844} # ac_fn_c_try_compile
1845
1846# ac_fn_cxx_try_compile LINENO
1847# ----------------------------
1848# Try to compile conftest.$ac_ext, and return whether this succeeded.
1849ac_fn_cxx_try_compile ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  rm -f conftest.$ac_objext
1853  if { { ac_try="$ac_compile"
1854case "(($ac_try" in
1855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856  *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860  (eval "$ac_compile") 2>conftest.err
1861  ac_status=$?
1862  if test -s conftest.err; then
1863    grep -v '^ *+' conftest.err >conftest.er1
1864    cat conftest.er1 >&5
1865    mv -f conftest.er1 conftest.err
1866  fi
1867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868  test $ac_status = 0; } && {
1869	 test -z "$ac_cxx_werror_flag" ||
1870	 test ! -s conftest.err
1871       } && test -s conftest.$ac_objext; then :
1872  ac_retval=0
1873else
1874  $as_echo "$as_me: failed program was:" >&5
1875sed 's/^/| /' conftest.$ac_ext >&5
1876
1877	ac_retval=1
1878fi
1879  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880  return $ac_retval
1881
1882} # ac_fn_cxx_try_compile
1883
1884# ac_fn_c_try_cpp LINENO
1885# ----------------------
1886# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1887ac_fn_c_try_cpp ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  if { { ac_try="$ac_cpp conftest.$ac_ext"
1891case "(($ac_try" in
1892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893  *) ac_try_echo=$ac_try;;
1894esac
1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896$as_echo "$ac_try_echo"; } >&5
1897  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1898  ac_status=$?
1899  if test -s conftest.err; then
1900    grep -v '^ *+' conftest.err >conftest.er1
1901    cat conftest.er1 >&5
1902    mv -f conftest.er1 conftest.err
1903  fi
1904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905  test $ac_status = 0; } >/dev/null && {
1906	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1907	 test ! -s conftest.err
1908       }; then :
1909  ac_retval=0
1910else
1911  $as_echo "$as_me: failed program was:" >&5
1912sed 's/^/| /' conftest.$ac_ext >&5
1913
1914    ac_retval=1
1915fi
1916  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917  return $ac_retval
1918
1919} # ac_fn_c_try_cpp
1920
1921# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1922# -------------------------------------------------------
1923# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1924# the include files in INCLUDES and setting the cache variable VAR
1925# accordingly.
1926ac_fn_c_check_header_mongrel ()
1927{
1928  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933  $as_echo_n "(cached) " >&6
1934fi
1935eval ac_res=\$$3
1936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938else
1939  # Is the header compilable?
1940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1941$as_echo_n "checking $2 usability... " >&6; }
1942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$4
1945#include <$2>
1946_ACEOF
1947if ac_fn_c_try_compile "$LINENO"; then :
1948  ac_header_compiler=yes
1949else
1950  ac_header_compiler=no
1951fi
1952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1954$as_echo "$ac_header_compiler" >&6; }
1955
1956# Is the header present?
1957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1958$as_echo_n "checking $2 presence... " >&6; }
1959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961#include <$2>
1962_ACEOF
1963if ac_fn_c_try_cpp "$LINENO"; then :
1964  ac_header_preproc=yes
1965else
1966  ac_header_preproc=no
1967fi
1968rm -f conftest.err conftest.$ac_ext
1969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1970$as_echo "$ac_header_preproc" >&6; }
1971
1972# So?  What about this header?
1973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1974  yes:no: )
1975    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1976$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1977    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1978$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979    ;;
1980  no:yes:* )
1981    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1982$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1983    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1984$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1985    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1986$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1987    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1988$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1989    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991    ;;
1992esac
1993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
1995if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996  $as_echo_n "(cached) " >&6
1997else
1998  eval "$3=\$ac_header_compiler"
1999fi
2000eval ac_res=\$$3
2001	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003fi
2004  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005
2006} # ac_fn_c_check_header_mongrel
2007
2008# ac_fn_c_try_run LINENO
2009# ----------------------
2010# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2011# that executables *can* be run.
2012ac_fn_c_try_run ()
2013{
2014  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015  if { { ac_try="$ac_link"
2016case "(($ac_try" in
2017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018  *) ac_try_echo=$ac_try;;
2019esac
2020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021$as_echo "$ac_try_echo"; } >&5
2022  (eval "$ac_link") 2>&5
2023  ac_status=$?
2024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2026  { { case "(($ac_try" in
2027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028  *) ac_try_echo=$ac_try;;
2029esac
2030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031$as_echo "$ac_try_echo"; } >&5
2032  (eval "$ac_try") 2>&5
2033  ac_status=$?
2034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035  test $ac_status = 0; }; }; then :
2036  ac_retval=0
2037else
2038  $as_echo "$as_me: program exited with status $ac_status" >&5
2039       $as_echo "$as_me: failed program was:" >&5
2040sed 's/^/| /' conftest.$ac_ext >&5
2041
2042       ac_retval=$ac_status
2043fi
2044  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046  return $ac_retval
2047
2048} # ac_fn_c_try_run
2049
2050# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2051# -------------------------------------------------------
2052# Tests whether HEADER exists and can be compiled using the include files in
2053# INCLUDES, setting the cache variable VAR accordingly.
2054ac_fn_c_check_header_compile ()
2055{
2056  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058$as_echo_n "checking for $2... " >&6; }
2059if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2060  $as_echo_n "(cached) " >&6
2061else
2062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063/* end confdefs.h.  */
2064$4
2065#include <$2>
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"; then :
2068  eval "$3=yes"
2069else
2070  eval "$3=no"
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073fi
2074eval ac_res=\$$3
2075	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076$as_echo "$ac_res" >&6; }
2077  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078
2079} # ac_fn_c_check_header_compile
2080
2081# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2082# --------------------------------------------
2083# Tries to find the compile-time value of EXPR in a program that includes
2084# INCLUDES, setting VAR accordingly. Returns whether the value could be
2085# computed
2086ac_fn_c_compute_int ()
2087{
2088  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089  if test "$cross_compiling" = yes; then
2090    # Depending upon the size, compute the lo and hi bounds.
2091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093$4
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !(($2) >= 0)];
2098test_array [0] = 0
2099
2100  ;
2101  return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105  ac_lo=0 ac_mid=0
2106  while :; do
2107    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h.  */
2109$4
2110int
2111main ()
2112{
2113static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2114test_array [0] = 0
2115
2116  ;
2117  return 0;
2118}
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121  ac_hi=$ac_mid; break
2122else
2123  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2124			if test $ac_lo -le $ac_mid; then
2125			  ac_lo= ac_hi=
2126			  break
2127			fi
2128			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2129fi
2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131  done
2132else
2133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h.  */
2135$4
2136int
2137main ()
2138{
2139static int test_array [1 - 2 * !(($2) < 0)];
2140test_array [0] = 0
2141
2142  ;
2143  return 0;
2144}
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147  ac_hi=-1 ac_mid=-1
2148  while :; do
2149    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150/* end confdefs.h.  */
2151$4
2152int
2153main ()
2154{
2155static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2156test_array [0] = 0
2157
2158  ;
2159  return 0;
2160}
2161_ACEOF
2162if ac_fn_c_try_compile "$LINENO"; then :
2163  ac_lo=$ac_mid; break
2164else
2165  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2166			if test $ac_mid -le $ac_hi; then
2167			  ac_lo= ac_hi=
2168			  break
2169			fi
2170			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2171fi
2172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173  done
2174else
2175  ac_lo= ac_hi=
2176fi
2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178fi
2179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180# Binary search between lo and hi bounds.
2181while test "x$ac_lo" != "x$ac_hi"; do
2182  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h.  */
2185$4
2186int
2187main ()
2188{
2189static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2190test_array [0] = 0
2191
2192  ;
2193  return 0;
2194}
2195_ACEOF
2196if ac_fn_c_try_compile "$LINENO"; then :
2197  ac_hi=$ac_mid
2198else
2199  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2200fi
2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202done
2203case $ac_lo in #((
2204?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2205'') ac_retval=1 ;;
2206esac
2207  else
2208    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209/* end confdefs.h.  */
2210$4
2211static long int longval () { return $2; }
2212static unsigned long int ulongval () { return $2; }
2213#include <stdio.h>
2214#include <stdlib.h>
2215int
2216main ()
2217{
2218
2219  FILE *f = fopen ("conftest.val", "w");
2220  if (! f)
2221    return 1;
2222  if (($2) < 0)
2223    {
2224      long int i = longval ();
2225      if (i != ($2))
2226	return 1;
2227      fprintf (f, "%ld", i);
2228    }
2229  else
2230    {
2231      unsigned long int i = ulongval ();
2232      if (i != ($2))
2233	return 1;
2234      fprintf (f, "%lu", i);
2235    }
2236  /* Do not output a trailing newline, as this causes \r\n confusion
2237     on some platforms.  */
2238  return ferror (f) || fclose (f) != 0;
2239
2240  ;
2241  return 0;
2242}
2243_ACEOF
2244if ac_fn_c_try_run "$LINENO"; then :
2245  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2246else
2247  ac_retval=1
2248fi
2249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2250  conftest.$ac_objext conftest.beam conftest.$ac_ext
2251rm -f conftest.val
2252
2253  fi
2254  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255  return $ac_retval
2256
2257} # ac_fn_c_compute_int
2258
2259# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2260# -------------------------------------------
2261# Tests whether TYPE exists after having included INCLUDES, setting cache
2262# variable VAR accordingly.
2263ac_fn_c_check_type ()
2264{
2265  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2267$as_echo_n "checking for $2... " >&6; }
2268if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2269  $as_echo_n "(cached) " >&6
2270else
2271  eval "$3=no"
2272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273/* end confdefs.h.  */
2274$4
2275int
2276main ()
2277{
2278if (sizeof ($2))
2279	 return 0;
2280  ;
2281  return 0;
2282}
2283_ACEOF
2284if ac_fn_c_try_compile "$LINENO"; then :
2285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286/* end confdefs.h.  */
2287$4
2288int
2289main ()
2290{
2291if (sizeof (($2)))
2292	    return 0;
2293  ;
2294  return 0;
2295}
2296_ACEOF
2297if ac_fn_c_try_compile "$LINENO"; then :
2298
2299else
2300  eval "$3=yes"
2301fi
2302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303fi
2304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305fi
2306eval ac_res=\$$3
2307	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2308$as_echo "$ac_res" >&6; }
2309  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2310
2311} # ac_fn_c_check_type
2312
2313# ac_fn_c_find_intX_t LINENO BITS VAR
2314# -----------------------------------
2315# Finds a signed integer type with width BITS, setting cache variable VAR
2316# accordingly.
2317ac_fn_c_find_intX_t ()
2318{
2319  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2321$as_echo_n "checking for int$2_t... " >&6; }
2322if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2323  $as_echo_n "(cached) " >&6
2324else
2325  eval "$3=no"
2326     for ac_type in int$2_t 'int' 'long int' \
2327	 'long long int' 'short int' 'signed char'; do
2328       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h.  */
2330$ac_includes_default
2331int
2332main ()
2333{
2334static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2335test_array [0] = 0
2336
2337  ;
2338  return 0;
2339}
2340_ACEOF
2341if ac_fn_c_try_compile "$LINENO"; then :
2342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343/* end confdefs.h.  */
2344$ac_includes_default
2345int
2346main ()
2347{
2348static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2349		 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2350test_array [0] = 0
2351
2352  ;
2353  return 0;
2354}
2355_ACEOF
2356if ac_fn_c_try_compile "$LINENO"; then :
2357
2358else
2359  case $ac_type in #(
2360  int$2_t) :
2361    eval "$3=yes" ;; #(
2362  *) :
2363    eval "$3=\$ac_type" ;;
2364esac
2365fi
2366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367fi
2368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369       eval as_val=\$$3
2370   if test "x$as_val" = x""no; then :
2371
2372else
2373  break
2374fi
2375     done
2376fi
2377eval ac_res=\$$3
2378	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2379$as_echo "$ac_res" >&6; }
2380  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2381
2382} # ac_fn_c_find_intX_t
2383
2384# ac_fn_c_try_link LINENO
2385# -----------------------
2386# Try to link conftest.$ac_ext, and return whether this succeeded.
2387ac_fn_c_try_link ()
2388{
2389  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390  rm -f conftest.$ac_objext conftest$ac_exeext
2391  if { { ac_try="$ac_link"
2392case "(($ac_try" in
2393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394  *) ac_try_echo=$ac_try;;
2395esac
2396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2397$as_echo "$ac_try_echo"; } >&5
2398  (eval "$ac_link") 2>conftest.err
2399  ac_status=$?
2400  if test -s conftest.err; then
2401    grep -v '^ *+' conftest.err >conftest.er1
2402    cat conftest.er1 >&5
2403    mv -f conftest.er1 conftest.err
2404  fi
2405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2406  test $ac_status = 0; } && {
2407	 test -z "$ac_c_werror_flag" ||
2408	 test ! -s conftest.err
2409       } && test -s conftest$ac_exeext && {
2410	 test "$cross_compiling" = yes ||
2411	 $as_test_x conftest$ac_exeext
2412       }; then :
2413  ac_retval=0
2414else
2415  $as_echo "$as_me: failed program was:" >&5
2416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418	ac_retval=1
2419fi
2420  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2421  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2422  # interfere with the next link command; also delete a directory that is
2423  # left behind by Apple's compiler.  We do this before executing the actions.
2424  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2425  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2426  return $ac_retval
2427
2428} # ac_fn_c_try_link
2429
2430# ac_fn_c_find_uintX_t LINENO BITS VAR
2431# ------------------------------------
2432# Finds an unsigned integer type with width BITS, setting cache variable VAR
2433# accordingly.
2434ac_fn_c_find_uintX_t ()
2435{
2436  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2438$as_echo_n "checking for uint$2_t... " >&6; }
2439if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2440  $as_echo_n "(cached) " >&6
2441else
2442  eval "$3=no"
2443     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2444	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2445       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446/* end confdefs.h.  */
2447$ac_includes_default
2448int
2449main ()
2450{
2451static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2452test_array [0] = 0
2453
2454  ;
2455  return 0;
2456}
2457_ACEOF
2458if ac_fn_c_try_compile "$LINENO"; then :
2459  case $ac_type in #(
2460  uint$2_t) :
2461    eval "$3=yes" ;; #(
2462  *) :
2463    eval "$3=\$ac_type" ;;
2464esac
2465fi
2466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467       eval as_val=\$$3
2468   if test "x$as_val" = x""no; then :
2469
2470else
2471  break
2472fi
2473     done
2474fi
2475eval ac_res=\$$3
2476	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477$as_echo "$ac_res" >&6; }
2478  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2479
2480} # ac_fn_c_find_uintX_t
2481
2482# ac_fn_c_check_header_preproc LINENO HEADER VAR
2483# ----------------------------------------------
2484# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2485ac_fn_c_check_header_preproc ()
2486{
2487  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2489$as_echo_n "checking for $2... " >&6; }
2490if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2491  $as_echo_n "(cached) " >&6
2492else
2493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494/* end confdefs.h.  */
2495#include <$2>
2496_ACEOF
2497if ac_fn_c_try_cpp "$LINENO"; then :
2498  eval "$3=yes"
2499else
2500  eval "$3=no"
2501fi
2502rm -f conftest.err conftest.$ac_ext
2503fi
2504eval ac_res=\$$3
2505	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506$as_echo "$ac_res" >&6; }
2507  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508
2509} # ac_fn_c_check_header_preproc
2510
2511# ac_fn_cxx_try_cpp LINENO
2512# ------------------------
2513# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2514ac_fn_cxx_try_cpp ()
2515{
2516  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2517  if { { ac_try="$ac_cpp conftest.$ac_ext"
2518case "(($ac_try" in
2519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520  *) ac_try_echo=$ac_try;;
2521esac
2522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2523$as_echo "$ac_try_echo"; } >&5
2524  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2525  ac_status=$?
2526  if test -s conftest.err; then
2527    grep -v '^ *+' conftest.err >conftest.er1
2528    cat conftest.er1 >&5
2529    mv -f conftest.er1 conftest.err
2530  fi
2531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2532  test $ac_status = 0; } >/dev/null && {
2533	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2534	 test ! -s conftest.err
2535       }; then :
2536  ac_retval=0
2537else
2538  $as_echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541    ac_retval=1
2542fi
2543  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2544  return $ac_retval
2545
2546} # ac_fn_cxx_try_cpp
2547
2548# ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2549# ------------------------------------------------
2550# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2551ac_fn_cxx_check_header_preproc ()
2552{
2553  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2555$as_echo_n "checking for $2... " >&6; }
2556if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2557  $as_echo_n "(cached) " >&6
2558else
2559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560/* end confdefs.h.  */
2561#include <$2>
2562_ACEOF
2563if ac_fn_cxx_try_cpp "$LINENO"; then :
2564  eval "$3=yes"
2565else
2566  eval "$3=no"
2567fi
2568rm -f conftest.err conftest.$ac_ext
2569fi
2570eval ac_res=\$$3
2571	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2572$as_echo "$ac_res" >&6; }
2573  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2574
2575} # ac_fn_cxx_check_header_preproc
2576
2577# ac_fn_c_check_func LINENO FUNC VAR
2578# ----------------------------------
2579# Tests whether FUNC exists, setting the cache variable VAR accordingly
2580ac_fn_c_check_func ()
2581{
2582  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2584$as_echo_n "checking for $2... " >&6; }
2585if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2586  $as_echo_n "(cached) " >&6
2587else
2588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589/* end confdefs.h.  */
2590/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2591   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2592#define $2 innocuous_$2
2593
2594/* System header to define __stub macros and hopefully few prototypes,
2595    which can conflict with char $2 (); below.
2596    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2597    <limits.h> exists even on freestanding compilers.  */
2598
2599#ifdef __STDC__
2600# include <limits.h>
2601#else
2602# include <assert.h>
2603#endif
2604
2605#undef $2
2606
2607/* Override any GCC internal prototype to avoid an error.
2608   Use char because int might match the return type of a GCC
2609   builtin and then its argument prototype would still apply.  */
2610#ifdef __cplusplus
2611extern "C"
2612#endif
2613char $2 ();
2614/* The GNU C library defines this for functions which it implements
2615    to always fail with ENOSYS.  Some functions are actually named
2616    something starting with __ and the normal name is an alias.  */
2617#if defined __stub_$2 || defined __stub___$2
2618choke me
2619#endif
2620
2621int
2622main ()
2623{
2624return $2 ();
2625  ;
2626  return 0;
2627}
2628_ACEOF
2629if ac_fn_c_try_link "$LINENO"; then :
2630  eval "$3=yes"
2631else
2632  eval "$3=no"
2633fi
2634rm -f core conftest.err conftest.$ac_objext \
2635    conftest$ac_exeext conftest.$ac_ext
2636fi
2637eval ac_res=\$$3
2638	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639$as_echo "$ac_res" >&6; }
2640  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2641
2642} # ac_fn_c_check_func
2643
2644# ac_fn_cxx_try_link LINENO
2645# -------------------------
2646# Try to link conftest.$ac_ext, and return whether this succeeded.
2647ac_fn_cxx_try_link ()
2648{
2649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650  rm -f conftest.$ac_objext conftest$ac_exeext
2651  if { { ac_try="$ac_link"
2652case "(($ac_try" in
2653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654  *) ac_try_echo=$ac_try;;
2655esac
2656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2657$as_echo "$ac_try_echo"; } >&5
2658  (eval "$ac_link") 2>conftest.err
2659  ac_status=$?
2660  if test -s conftest.err; then
2661    grep -v '^ *+' conftest.err >conftest.er1
2662    cat conftest.er1 >&5
2663    mv -f conftest.er1 conftest.err
2664  fi
2665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2666  test $ac_status = 0; } && {
2667	 test -z "$ac_cxx_werror_flag" ||
2668	 test ! -s conftest.err
2669       } && test -s conftest$ac_exeext && {
2670	 test "$cross_compiling" = yes ||
2671	 $as_test_x conftest$ac_exeext
2672       }; then :
2673  ac_retval=0
2674else
2675  $as_echo "$as_me: failed program was:" >&5
2676sed 's/^/| /' conftest.$ac_ext >&5
2677
2678	ac_retval=1
2679fi
2680  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2681  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2682  # interfere with the next link command; also delete a directory that is
2683  # left behind by Apple's compiler.  We do this before executing the actions.
2684  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2685  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2686  return $ac_retval
2687
2688} # ac_fn_cxx_try_link
2689cat >config.log <<_ACEOF
2690This file contains any messages produced by compilers while
2691running configure, to aid debugging if configure makes a mistake.
2692
2693It was created by $as_me, which was
2694generated by GNU Autoconf 2.64.  Invocation command line was
2695
2696  $ $0 $@
2697
2698_ACEOF
2699exec 5>>config.log
2700{
2701cat <<_ASUNAME
2702## --------- ##
2703## Platform. ##
2704## --------- ##
2705
2706hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2707uname -m = `(uname -m) 2>/dev/null || echo unknown`
2708uname -r = `(uname -r) 2>/dev/null || echo unknown`
2709uname -s = `(uname -s) 2>/dev/null || echo unknown`
2710uname -v = `(uname -v) 2>/dev/null || echo unknown`
2711
2712/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2713/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2714
2715/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2716/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2717/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2718/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2719/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2720/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2721/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2722
2723_ASUNAME
2724
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728  IFS=$as_save_IFS
2729  test -z "$as_dir" && as_dir=.
2730    $as_echo "PATH: $as_dir"
2731  done
2732IFS=$as_save_IFS
2733
2734} >&5
2735
2736cat >&5 <<_ACEOF
2737
2738
2739## ----------- ##
2740## Core tests. ##
2741## ----------- ##
2742
2743_ACEOF
2744
2745
2746# Keep a trace of the command line.
2747# Strip out --no-create and --no-recursion so they do not pile up.
2748# Strip out --silent because we don't want to record it for future runs.
2749# Also quote any args containing shell meta-characters.
2750# Make two passes to allow for proper duplicate-argument suppression.
2751ac_configure_args=
2752ac_configure_args0=
2753ac_configure_args1=
2754ac_must_keep_next=false
2755for ac_pass in 1 2
2756do
2757  for ac_arg
2758  do
2759    case $ac_arg in
2760    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2761    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2762    | -silent | --silent | --silen | --sile | --sil)
2763      continue ;;
2764    *\'*)
2765      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2766    esac
2767    case $ac_pass in
2768    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2769    2)
2770      as_fn_append ac_configure_args1 " '$ac_arg'"
2771      if test $ac_must_keep_next = true; then
2772	ac_must_keep_next=false # Got value, back to normal.
2773      else
2774	case $ac_arg in
2775	  *=* | --config-cache | -C | -disable-* | --disable-* \
2776	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2777	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2778	  | -with-* | --with-* | -without-* | --without-* | --x)
2779	    case "$ac_configure_args0 " in
2780	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2781	    esac
2782	    ;;
2783	  -* ) ac_must_keep_next=true ;;
2784	esac
2785      fi
2786      as_fn_append ac_configure_args " '$ac_arg'"
2787      ;;
2788    esac
2789  done
2790done
2791{ ac_configure_args0=; unset ac_configure_args0;}
2792{ ac_configure_args1=; unset ac_configure_args1;}
2793
2794# When interrupted or exit'd, cleanup temporary files, and complete
2795# config.log.  We remove comments because anyway the quotes in there
2796# would cause problems or look ugly.
2797# WARNING: Use '\'' to represent an apostrophe within the trap.
2798# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2799trap 'exit_status=$?
2800  # Save into config.log some information that might help in debugging.
2801  {
2802    echo
2803
2804    cat <<\_ASBOX
2805## ---------------- ##
2806## Cache variables. ##
2807## ---------------- ##
2808_ASBOX
2809    echo
2810    # The following way of writing the cache mishandles newlines in values,
2811(
2812  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2813    eval ac_val=\$$ac_var
2814    case $ac_val in #(
2815    *${as_nl}*)
2816      case $ac_var in #(
2817      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2818$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2819      esac
2820      case $ac_var in #(
2821      _ | IFS | as_nl) ;; #(
2822      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2823      *) { eval $ac_var=; unset $ac_var;} ;;
2824      esac ;;
2825    esac
2826  done
2827  (set) 2>&1 |
2828    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2829    *${as_nl}ac_space=\ *)
2830      sed -n \
2831	"s/'\''/'\''\\\\'\'''\''/g;
2832	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2833      ;; #(
2834    *)
2835      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2836      ;;
2837    esac |
2838    sort
2839)
2840    echo
2841
2842    cat <<\_ASBOX
2843## ----------------- ##
2844## Output variables. ##
2845## ----------------- ##
2846_ASBOX
2847    echo
2848    for ac_var in $ac_subst_vars
2849    do
2850      eval ac_val=\$$ac_var
2851      case $ac_val in
2852      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2853      esac
2854      $as_echo "$ac_var='\''$ac_val'\''"
2855    done | sort
2856    echo
2857
2858    if test -n "$ac_subst_files"; then
2859      cat <<\_ASBOX
2860## ------------------- ##
2861## File substitutions. ##
2862## ------------------- ##
2863_ASBOX
2864      echo
2865      for ac_var in $ac_subst_files
2866      do
2867	eval ac_val=\$$ac_var
2868	case $ac_val in
2869	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2870	esac
2871	$as_echo "$ac_var='\''$ac_val'\''"
2872      done | sort
2873      echo
2874    fi
2875
2876    if test -s confdefs.h; then
2877      cat <<\_ASBOX
2878## ----------- ##
2879## confdefs.h. ##
2880## ----------- ##
2881_ASBOX
2882      echo
2883      cat confdefs.h
2884      echo
2885    fi
2886    test "$ac_signal" != 0 &&
2887      $as_echo "$as_me: caught signal $ac_signal"
2888    $as_echo "$as_me: exit $exit_status"
2889  } >&5
2890  rm -f core *.core core.conftest.* &&
2891    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2892    exit $exit_status
2893' 0
2894for ac_signal in 1 2 13 15; do
2895  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2896done
2897ac_signal=0
2898
2899# confdefs.h avoids OS command line length limits that DEFS can exceed.
2900rm -f -r conftest* confdefs.h
2901
2902$as_echo "/* confdefs.h */" > confdefs.h
2903
2904# Predefined preprocessor variables.
2905
2906cat >>confdefs.h <<_ACEOF
2907#define PACKAGE_NAME "$PACKAGE_NAME"
2908_ACEOF
2909
2910cat >>confdefs.h <<_ACEOF
2911#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2912_ACEOF
2913
2914cat >>confdefs.h <<_ACEOF
2915#define PACKAGE_VERSION "$PACKAGE_VERSION"
2916_ACEOF
2917
2918cat >>confdefs.h <<_ACEOF
2919#define PACKAGE_STRING "$PACKAGE_STRING"
2920_ACEOF
2921
2922cat >>confdefs.h <<_ACEOF
2923#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2924_ACEOF
2925
2926cat >>confdefs.h <<_ACEOF
2927#define PACKAGE_URL "$PACKAGE_URL"
2928_ACEOF
2929
2930
2931# Let the site file select an alternate cache file if it wants to.
2932# Prefer an explicitly selected file to automatically selected ones.
2933ac_site_file1=NONE
2934ac_site_file2=NONE
2935if test -n "$CONFIG_SITE"; then
2936  ac_site_file1=$CONFIG_SITE
2937elif test "x$prefix" != xNONE; then
2938  ac_site_file1=$prefix/share/config.site
2939  ac_site_file2=$prefix/etc/config.site
2940else
2941  ac_site_file1=$ac_default_prefix/share/config.site
2942  ac_site_file2=$ac_default_prefix/etc/config.site
2943fi
2944for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2945do
2946  test "x$ac_site_file" = xNONE && continue
2947  if test -r "$ac_site_file"; then
2948    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2949$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2950    sed 's/^/| /' "$ac_site_file" >&5
2951    . "$ac_site_file"
2952  fi
2953done
2954
2955if test -r "$cache_file"; then
2956  # Some versions of bash will fail to source /dev/null (special
2957  # files actually), so we avoid doing that.
2958  if test -f "$cache_file"; then
2959    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2960$as_echo "$as_me: loading cache $cache_file" >&6;}
2961    case $cache_file in
2962      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2963      *)                      . "./$cache_file";;
2964    esac
2965  fi
2966else
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2968$as_echo "$as_me: creating cache $cache_file" >&6;}
2969  >$cache_file
2970fi
2971
2972# Check that the precious variables saved in the cache have kept the same
2973# value.
2974ac_cache_corrupted=false
2975for ac_var in $ac_precious_vars; do
2976  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2977  eval ac_new_set=\$ac_env_${ac_var}_set
2978  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2979  eval ac_new_val=\$ac_env_${ac_var}_value
2980  case $ac_old_set,$ac_new_set in
2981    set,)
2982      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2983$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2984      ac_cache_corrupted=: ;;
2985    ,set)
2986      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2987$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2988      ac_cache_corrupted=: ;;
2989    ,);;
2990    *)
2991      if test "x$ac_old_val" != "x$ac_new_val"; then
2992	# differences in whitespace do not lead to failure.
2993	ac_old_val_w=`echo x $ac_old_val`
2994	ac_new_val_w=`echo x $ac_new_val`
2995	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2996	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2997$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2998	  ac_cache_corrupted=:
2999	else
3000	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3001$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3002	  eval $ac_var=\$ac_old_val
3003	fi
3004	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3005$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3006	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3007$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3008      fi;;
3009  esac
3010  # Pass precious variables to config.status.
3011  if test "$ac_new_set" = set; then
3012    case $ac_new_val in
3013    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3014    *) ac_arg=$ac_var=$ac_new_val ;;
3015    esac
3016    case " $ac_configure_args " in
3017      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3018      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3019    esac
3020  fi
3021done
3022if $ac_cache_corrupted; then
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3026$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3027  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3028fi
3029## -------------------- ##
3030## Main body of script. ##
3031## -------------------- ##
3032
3033ac_ext=c
3034ac_cpp='$CPP $CPPFLAGS'
3035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038
3039
3040
3041
3042
3043
3044ac_config_headers="$ac_config_headers auto-host.h:config.in"
3045
3046
3047gcc_version=`cat $srcdir/BASE-VER`
3048
3049# Determine the host, build, and target systems
3050ac_aux_dir=
3051for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3052  for ac_t in install-sh install.sh shtool; do
3053    if test -f "$ac_dir/$ac_t"; then
3054      ac_aux_dir=$ac_dir
3055      ac_install_sh="$ac_aux_dir/$ac_t -c"
3056      break 2
3057    fi
3058  done
3059done
3060if test -z "$ac_aux_dir"; then
3061  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3062fi
3063
3064# These three variables are undocumented and unsupported,
3065# and are intended to be withdrawn in a future Autoconf release.
3066# They can cause serious problems if a builder's source tree is in a directory
3067# whose full name contains unusual characters.
3068ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3069ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3070ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3071
3072
3073# Make sure we can run config.sub.
3074$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3075  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3076
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3078$as_echo_n "checking build system type... " >&6; }
3079if test "${ac_cv_build+set}" = set; then :
3080  $as_echo_n "(cached) " >&6
3081else
3082  ac_build_alias=$build_alias
3083test "x$ac_build_alias" = x &&
3084  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3085test "x$ac_build_alias" = x &&
3086  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3087ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3088  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3089
3090fi
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3092$as_echo "$ac_cv_build" >&6; }
3093case $ac_cv_build in
3094*-*-*) ;;
3095*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3096esac
3097build=$ac_cv_build
3098ac_save_IFS=$IFS; IFS='-'
3099set x $ac_cv_build
3100shift
3101build_cpu=$1
3102build_vendor=$2
3103shift; shift
3104# Remember, the first character of IFS is used to create $*,
3105# except with old shells:
3106build_os=$*
3107IFS=$ac_save_IFS
3108case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3109
3110
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3112$as_echo_n "checking host system type... " >&6; }
3113if test "${ac_cv_host+set}" = set; then :
3114  $as_echo_n "(cached) " >&6
3115else
3116  if test "x$host_alias" = x; then
3117  ac_cv_host=$ac_cv_build
3118else
3119  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3120    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3121fi
3122
3123fi
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3125$as_echo "$ac_cv_host" >&6; }
3126case $ac_cv_host in
3127*-*-*) ;;
3128*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3129esac
3130host=$ac_cv_host
3131ac_save_IFS=$IFS; IFS='-'
3132set x $ac_cv_host
3133shift
3134host_cpu=$1
3135host_vendor=$2
3136shift; shift
3137# Remember, the first character of IFS is used to create $*,
3138# except with old shells:
3139host_os=$*
3140IFS=$ac_save_IFS
3141case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3142
3143
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3145$as_echo_n "checking target system type... " >&6; }
3146if test "${ac_cv_target+set}" = set; then :
3147  $as_echo_n "(cached) " >&6
3148else
3149  if test "x$target_alias" = x; then
3150  ac_cv_target=$ac_cv_host
3151else
3152  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3153    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3154fi
3155
3156fi
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3158$as_echo "$ac_cv_target" >&6; }
3159case $ac_cv_target in
3160*-*-*) ;;
3161*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3162esac
3163target=$ac_cv_target
3164ac_save_IFS=$IFS; IFS='-'
3165set x $ac_cv_target
3166shift
3167target_cpu=$1
3168target_vendor=$2
3169shift; shift
3170# Remember, the first character of IFS is used to create $*,
3171# except with old shells:
3172target_os=$*
3173IFS=$ac_save_IFS
3174case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3175
3176
3177# The aliases save the names the user supplied, while $host etc.
3178# will get canonicalized.
3179test -n "$target_alias" &&
3180  test "$program_prefix$program_suffix$program_transform_name" = \
3181    NONENONEs,x,x, &&
3182  program_prefix=${target_alias}-
3183
3184# Determine the noncanonical target name, for directory use.
3185 case ${build_alias} in
3186  "") build_noncanonical=${build} ;;
3187  *) build_noncanonical=${build_alias} ;;
3188esac
3189
3190 case ${host_alias} in
3191  "") host_noncanonical=${build_noncanonical} ;;
3192  *) host_noncanonical=${host_alias} ;;
3193esac
3194
3195 case ${target_alias} in
3196  "") target_noncanonical=${host_noncanonical} ;;
3197  *) target_noncanonical=${target_alias} ;;
3198esac
3199
3200
3201
3202
3203# Determine the target- and build-specific subdirectories
3204
3205# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3206# have matching libraries, they should use host libraries: Makefile.tpl
3207# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3208# However, they still use the build modules, because the corresponding
3209# host modules (e.g. bison) are only built for the host when bootstrap
3210# finishes. So:
3211# - build_subdir is where we find build modules, and never changes.
3212# - build_libsubdir is where we find build libraries, and can be overridden.
3213
3214# Prefix 'build-' so this never conflicts with target_subdir.
3215build_subdir="build-${build_noncanonical}"
3216
3217# Check whether --with-build-libsubdir was given.
3218if test "${with_build_libsubdir+set}" = set; then :
3219  withval=$with_build_libsubdir; build_libsubdir="$withval"
3220else
3221  build_libsubdir="$build_subdir"
3222fi
3223
3224# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3225if ( test $srcdir = . && test -d gcc ) \
3226   || test -d $srcdir/../host-${host_noncanonical}; then
3227  host_subdir="host-${host_noncanonical}"
3228else
3229  host_subdir=.
3230fi
3231# No prefix.
3232target_subdir=${target_noncanonical}
3233
3234
3235# Set program_transform_name
3236test "$program_prefix" != NONE &&
3237  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3238# Use a double $ so make ignores it.
3239test "$program_suffix" != NONE &&
3240  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3241# Double any \ or $.
3242# By default was `s,x,x', remove it if useless.
3243ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3244program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3245
3246
3247# Check for bogus environment variables.
3248# Test if LIBRARY_PATH contains the notation for the current directory
3249# since this would lead to problems installing/building glibc.
3250# LIBRARY_PATH contains the current directory if one of the following
3251# is true:
3252# - one of the terminals (":" and ";") is the first or last sign
3253# - two terminals occur directly after each other
3254# - the path contains an element with a dot in it
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3256$as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3257case ${LIBRARY_PATH} in
3258  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3259    library_path_setting="contains current directory"
3260    ;;
3261  *)
3262    library_path_setting="ok"
3263    ;;
3264esac
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3266$as_echo "$library_path_setting" >&6; }
3267if test "$library_path_setting" != "ok"; then
3268as_fn_error "
3269*** LIBRARY_PATH shouldn't contain the current directory when
3270*** building gcc. Please change the environment variable
3271*** and run configure again." "$LINENO" 5
3272fi
3273
3274# Test if GCC_EXEC_PREFIX contains the notation for the current directory
3275# since this would lead to problems installing/building glibc.
3276# GCC_EXEC_PREFIX contains the current directory if one of the following
3277# is true:
3278# - one of the terminals (":" and ";") is the first or last sign
3279# - two terminals occur directly after each other
3280# - the path contains an element with a dot in it
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3282$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3283case ${GCC_EXEC_PREFIX} in
3284  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3285    gcc_exec_prefix_setting="contains current directory"
3286    ;;
3287  *)
3288    gcc_exec_prefix_setting="ok"
3289    ;;
3290esac
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3292$as_echo "$gcc_exec_prefix_setting" >&6; }
3293if test "$gcc_exec_prefix_setting" != "ok"; then
3294as_fn_error "
3295*** GCC_EXEC_PREFIX shouldn't contain the current directory when
3296*** building gcc. Please change the environment variable
3297*** and run configure again." "$LINENO" 5
3298fi
3299
3300# -----------
3301# Directories
3302# -----------
3303
3304# Specify the local prefix
3305local_prefix=
3306
3307# Check whether --with-local-prefix was given.
3308if test "${with_local_prefix+set}" = set; then :
3309  withval=$with_local_prefix; case "${withval}" in
3310yes)	as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3311no)	;;
3312*)	local_prefix=$with_local_prefix ;;
3313esac
3314fi
3315
3316
3317# Default local prefix if it is empty
3318if test x$local_prefix = x; then
3319	local_prefix=/usr/local
3320fi
3321
3322# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3323# passed in by the toplevel make and thus we'd get different behavior
3324# depending on where we built the sources.
3325gcc_gxx_include_dir=
3326# Specify the g++ header file directory
3327
3328# Check whether --with-gxx-include-dir was given.
3329if test "${with_gxx_include_dir+set}" = set; then :
3330  withval=$with_gxx_include_dir; case "${withval}" in
3331yes)	as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3332no)	;;
3333*)	gcc_gxx_include_dir=$with_gxx_include_dir ;;
3334esac
3335fi
3336
3337
3338# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3339if test x${gcc_gxx_include_dir} = x; then
3340  if test x${enable_version_specific_runtime_libs} = xyes; then
3341    gcc_gxx_include_dir='${libsubdir}/include/c++'
3342  else
3343    libstdcxx_incdir='include/c++/$(version)'
3344    if test x$host != x$target; then
3345       libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3346    fi
3347    gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3348  fi
3349fi
3350
3351gcc_gxx_include_dir_add_sysroot=0
3352if test "${with_sysroot+set}" = set; then
3353  gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3354  if test "${gcc_gxx_without_sysroot}"; then
3355    gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3356    gcc_gxx_include_dir_add_sysroot=1
3357  fi
3358fi
3359
3360
3361# Check whether --with-cpp_install_dir was given.
3362if test "${with_cpp_install_dir+set}" = set; then :
3363  withval=$with_cpp_install_dir; if test x$withval = xyes; then
3364  as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3365elif test x$withval != xno; then
3366  cpp_install_dir=$withval
3367fi
3368fi
3369
3370
3371# We would like to our source tree to be readonly.  However when releases or
3372# pre-releases are generated, the flex/bison generated files as well as the
3373# various formats of manuals need to be included along with the rest of the
3374# sources.  Therefore we have --enable-generated-files-in-srcdir to do
3375# just that.
3376
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3378$as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3379    # Check whether --enable-generated-files-in-srcdir was given.
3380if test "${enable_generated_files_in_srcdir+set}" = set; then :
3381  enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3382else
3383  generated_files_in_srcdir=no
3384fi
3385
3386
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3388$as_echo "$generated_files_in_srcdir" >&6; }
3389
3390if test "$generated_files_in_srcdir" = "yes"; then
3391  GENINSRC=''
3392else
3393  GENINSRC='#'
3394fi
3395
3396
3397# -------------------
3398# Find default linker
3399# -------------------
3400
3401# With GNU ld
3402
3403# Check whether --with-gnu-ld was given.
3404if test "${with_gnu_ld+set}" = set; then :
3405  withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3406else
3407  gnu_ld_flag=no
3408fi
3409
3410
3411# With pre-defined ld
3412
3413# Check whether --with-ld was given.
3414if test "${with_ld+set}" = set; then :
3415  withval=$with_ld; DEFAULT_LINKER="$with_ld"
3416fi
3417
3418if test x"${DEFAULT_LINKER+set}" = x"set"; then
3419  if test ! -x "$DEFAULT_LINKER"; then
3420    as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3421  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3422    gnu_ld_flag=yes
3423  fi
3424
3425cat >>confdefs.h <<_ACEOF
3426#define DEFAULT_LINKER "$DEFAULT_LINKER"
3427_ACEOF
3428
3429fi
3430
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3432$as_echo_n "checking whether a default linker was specified... " >&6; }
3433if test x"${DEFAULT_LINKER+set}" = x"set"; then
3434  if test x"$gnu_ld_flag" = x"no"; then
3435    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3436$as_echo "yes ($DEFAULT_LINKER)" >&6; }
3437  else
3438    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3439$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3440  fi
3441else
3442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443$as_echo "no" >&6; }
3444fi
3445
3446# With demangler in GNU ld
3447
3448# Check whether --with-demangler-in-ld was given.
3449if test "${with_demangler_in_ld+set}" = set; then :
3450  withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3451else
3452  demangler_in_ld=yes
3453fi
3454
3455
3456# ----------------------
3457# Find default assembler
3458# ----------------------
3459
3460# With GNU as
3461
3462# Check whether --with-gnu-as was given.
3463if test "${with_gnu_as+set}" = set; then :
3464  withval=$with_gnu_as; gas_flag="$with_gnu_as"
3465else
3466  gas_flag=no
3467fi
3468
3469
3470
3471# Check whether --with-as was given.
3472if test "${with_as+set}" = set; then :
3473  withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3474fi
3475
3476if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3477  if test ! -x "$DEFAULT_ASSEMBLER"; then
3478    as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3479  elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3480    gas_flag=yes
3481  fi
3482
3483cat >>confdefs.h <<_ACEOF
3484#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3485_ACEOF
3486
3487fi
3488
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3490$as_echo_n "checking whether a default assembler was specified... " >&6; }
3491if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3492  if test x"$gas_flag" = x"no"; then
3493    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3494$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3495  else
3496    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3497$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3498  fi
3499else
3500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501$as_echo "no" >&6; }
3502fi
3503
3504# ---------------
3505# Find C compiler
3506# ---------------
3507
3508# If a non-executable a.out is present (e.g. created by GNU as above even if
3509# invoked with -v only), the IRIX 6 native ld just overwrites the existing
3510# file, even when creating an executable, so an execution test fails.
3511# Remove possible default executable files to avoid this.
3512#
3513# FIXME: This really belongs into AC_PROG_CC and can be removed once
3514# Autoconf includes it.
3515rm -f a.out a.exe b.out
3516
3517# Find the native compiler
3518ac_ext=c
3519ac_cpp='$CPP $CPPFLAGS'
3520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523if test -n "$ac_tool_prefix"; then
3524  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3525set dummy ${ac_tool_prefix}gcc; ac_word=$2
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527$as_echo_n "checking for $ac_word... " >&6; }
3528if test "${ac_cv_prog_CC+set}" = set; then :
3529  $as_echo_n "(cached) " >&6
3530else
3531  if test -n "$CC"; then
3532  ac_cv_prog_CC="$CC" # Let the user override the test.
3533else
3534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535for as_dir in $PATH
3536do
3537  IFS=$as_save_IFS
3538  test -z "$as_dir" && as_dir=.
3539    for ac_exec_ext in '' $ac_executable_extensions; do
3540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543    break 2
3544  fi
3545done
3546  done
3547IFS=$as_save_IFS
3548
3549fi
3550fi
3551CC=$ac_cv_prog_CC
3552if test -n "$CC"; then
3553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554$as_echo "$CC" >&6; }
3555else
3556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557$as_echo "no" >&6; }
3558fi
3559
3560
3561fi
3562if test -z "$ac_cv_prog_CC"; then
3563  ac_ct_CC=$CC
3564  # Extract the first word of "gcc", so it can be a program name with args.
3565set dummy gcc; ac_word=$2
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567$as_echo_n "checking for $ac_word... " >&6; }
3568if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3569  $as_echo_n "(cached) " >&6
3570else
3571  if test -n "$ac_ct_CC"; then
3572  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3573else
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577  IFS=$as_save_IFS
3578  test -z "$as_dir" && as_dir=.
3579    for ac_exec_ext in '' $ac_executable_extensions; do
3580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3581    ac_cv_prog_ac_ct_CC="gcc"
3582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583    break 2
3584  fi
3585done
3586  done
3587IFS=$as_save_IFS
3588
3589fi
3590fi
3591ac_ct_CC=$ac_cv_prog_ac_ct_CC
3592if test -n "$ac_ct_CC"; then
3593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3594$as_echo "$ac_ct_CC" >&6; }
3595else
3596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
3598fi
3599
3600  if test "x$ac_ct_CC" = x; then
3601    CC=""
3602  else
3603    case $cross_compiling:$ac_tool_warned in
3604yes:)
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3607ac_tool_warned=yes ;;
3608esac
3609    CC=$ac_ct_CC
3610  fi
3611else
3612  CC="$ac_cv_prog_CC"
3613fi
3614
3615if test -z "$CC"; then
3616          if test -n "$ac_tool_prefix"; then
3617    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3618set dummy ${ac_tool_prefix}cc; ac_word=$2
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620$as_echo_n "checking for $ac_word... " >&6; }
3621if test "${ac_cv_prog_CC+set}" = set; then :
3622  $as_echo_n "(cached) " >&6
3623else
3624  if test -n "$CC"; then
3625  ac_cv_prog_CC="$CC" # Let the user override the test.
3626else
3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH
3629do
3630  IFS=$as_save_IFS
3631  test -z "$as_dir" && as_dir=.
3632    for ac_exec_ext in '' $ac_executable_extensions; do
3633  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3634    ac_cv_prog_CC="${ac_tool_prefix}cc"
3635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636    break 2
3637  fi
3638done
3639  done
3640IFS=$as_save_IFS
3641
3642fi
3643fi
3644CC=$ac_cv_prog_CC
3645if test -n "$CC"; then
3646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3647$as_echo "$CC" >&6; }
3648else
3649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650$as_echo "no" >&6; }
3651fi
3652
3653
3654  fi
3655fi
3656if test -z "$CC"; then
3657  # Extract the first word of "cc", so it can be a program name with args.
3658set dummy cc; ac_word=$2
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660$as_echo_n "checking for $ac_word... " >&6; }
3661if test "${ac_cv_prog_CC+set}" = set; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  if test -n "$CC"; then
3665  ac_cv_prog_CC="$CC" # Let the user override the test.
3666else
3667  ac_prog_rejected=no
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671  IFS=$as_save_IFS
3672  test -z "$as_dir" && as_dir=.
3673    for ac_exec_ext in '' $ac_executable_extensions; do
3674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3676       ac_prog_rejected=yes
3677       continue
3678     fi
3679    ac_cv_prog_CC="cc"
3680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681    break 2
3682  fi
3683done
3684  done
3685IFS=$as_save_IFS
3686
3687if test $ac_prog_rejected = yes; then
3688  # We found a bogon in the path, so make sure we never use it.
3689  set dummy $ac_cv_prog_CC
3690  shift
3691  if test $# != 0; then
3692    # We chose a different compiler from the bogus one.
3693    # However, it has the same basename, so the bogon will be chosen
3694    # first if we set CC to just the basename; use the full file name.
3695    shift
3696    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3697  fi
3698fi
3699fi
3700fi
3701CC=$ac_cv_prog_CC
3702if test -n "$CC"; then
3703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3704$as_echo "$CC" >&6; }
3705else
3706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708fi
3709
3710
3711fi
3712if test -z "$CC"; then
3713  if test -n "$ac_tool_prefix"; then
3714  for ac_prog in cl.exe
3715  do
3716    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3717set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719$as_echo_n "checking for $ac_word... " >&6; }
3720if test "${ac_cv_prog_CC+set}" = set; then :
3721  $as_echo_n "(cached) " >&6
3722else
3723  if test -n "$CC"; then
3724  ac_cv_prog_CC="$CC" # Let the user override the test.
3725else
3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH
3728do
3729  IFS=$as_save_IFS
3730  test -z "$as_dir" && as_dir=.
3731    for ac_exec_ext in '' $ac_executable_extensions; do
3732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735    break 2
3736  fi
3737done
3738  done
3739IFS=$as_save_IFS
3740
3741fi
3742fi
3743CC=$ac_cv_prog_CC
3744if test -n "$CC"; then
3745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746$as_echo "$CC" >&6; }
3747else
3748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749$as_echo "no" >&6; }
3750fi
3751
3752
3753    test -n "$CC" && break
3754  done
3755fi
3756if test -z "$CC"; then
3757  ac_ct_CC=$CC
3758  for ac_prog in cl.exe
3759do
3760  # Extract the first word of "$ac_prog", so it can be a program name with args.
3761set dummy $ac_prog; ac_word=$2
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763$as_echo_n "checking for $ac_word... " >&6; }
3764if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3765  $as_echo_n "(cached) " >&6
3766else
3767  if test -n "$ac_ct_CC"; then
3768  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3769else
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773  IFS=$as_save_IFS
3774  test -z "$as_dir" && as_dir=.
3775    for ac_exec_ext in '' $ac_executable_extensions; do
3776  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777    ac_cv_prog_ac_ct_CC="$ac_prog"
3778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779    break 2
3780  fi
3781done
3782  done
3783IFS=$as_save_IFS
3784
3785fi
3786fi
3787ac_ct_CC=$ac_cv_prog_ac_ct_CC
3788if test -n "$ac_ct_CC"; then
3789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3790$as_echo "$ac_ct_CC" >&6; }
3791else
3792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793$as_echo "no" >&6; }
3794fi
3795
3796
3797  test -n "$ac_ct_CC" && break
3798done
3799
3800  if test "x$ac_ct_CC" = x; then
3801    CC=""
3802  else
3803    case $cross_compiling:$ac_tool_warned in
3804yes:)
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3807ac_tool_warned=yes ;;
3808esac
3809    CC=$ac_ct_CC
3810  fi
3811fi
3812
3813fi
3814
3815
3816test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3818as_fn_error "no acceptable C compiler found in \$PATH
3819See \`config.log' for more details." "$LINENO" 5; }
3820
3821# Provide some information about the compiler.
3822$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3823set X $ac_compile
3824ac_compiler=$2
3825for ac_option in --version -v -V -qversion; do
3826  { { ac_try="$ac_compiler $ac_option >&5"
3827case "(($ac_try" in
3828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829  *) ac_try_echo=$ac_try;;
3830esac
3831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832$as_echo "$ac_try_echo"; } >&5
3833  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3834  ac_status=$?
3835  if test -s conftest.err; then
3836    sed '10a\
3837... rest of stderr output deleted ...
3838         10q' conftest.err >conftest.er1
3839    cat conftest.er1 >&5
3840    rm -f conftest.er1 conftest.err
3841  fi
3842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843  test $ac_status = 0; }
3844done
3845
3846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847/* end confdefs.h.  */
3848
3849int
3850main ()
3851{
3852
3853  ;
3854  return 0;
3855}
3856_ACEOF
3857ac_clean_files_save=$ac_clean_files
3858ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3859# Try to create an executable without -o first, disregard a.out.
3860# It will help us diagnose broken compilers, and finding out an intuition
3861# of exeext.
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3863$as_echo_n "checking for C compiler default output file name... " >&6; }
3864ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3865
3866# The possible output files:
3867ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3868
3869ac_rmfiles=
3870for ac_file in $ac_files
3871do
3872  case $ac_file in
3873    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3874    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3875  esac
3876done
3877rm -f $ac_rmfiles
3878
3879if { { ac_try="$ac_link_default"
3880case "(($ac_try" in
3881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882  *) ac_try_echo=$ac_try;;
3883esac
3884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885$as_echo "$ac_try_echo"; } >&5
3886  (eval "$ac_link_default") 2>&5
3887  ac_status=$?
3888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889  test $ac_status = 0; }; then :
3890  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3891# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3892# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3893# so that the user can short-circuit this test for compilers unknown to
3894# Autoconf.
3895for ac_file in $ac_files ''
3896do
3897  test -f "$ac_file" || continue
3898  case $ac_file in
3899    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3900	;;
3901    [ab].out )
3902	# We found the default executable, but exeext='' is most
3903	# certainly right.
3904	break;;
3905    *.* )
3906	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3907	then :; else
3908	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3909	fi
3910	# We set ac_cv_exeext here because the later test for it is not
3911	# safe: cross compilers may not add the suffix if given an `-o'
3912	# argument, so we may need to know it at that point already.
3913	# Even if this section looks crufty: it has the advantage of
3914	# actually working.
3915	break;;
3916    * )
3917	break;;
3918  esac
3919done
3920test "$ac_cv_exeext" = no && ac_cv_exeext=
3921
3922else
3923  ac_file=''
3924fi
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3926$as_echo "$ac_file" >&6; }
3927if test -z "$ac_file"; then :
3928  $as_echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933{ as_fn_set_status 77
3934as_fn_error "C compiler cannot create executables
3935See \`config.log' for more details." "$LINENO" 5; }; }
3936fi
3937ac_exeext=$ac_cv_exeext
3938
3939# Check that the compiler produces executables we can run.  If not, either
3940# the compiler is broken, or we cross compile.
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3942$as_echo_n "checking whether the C compiler works... " >&6; }
3943# If not cross compiling, check that we can run a simple program.
3944if test "$cross_compiling" != yes; then
3945  if { ac_try='./$ac_file'
3946  { { case "(($ac_try" in
3947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948  *) ac_try_echo=$ac_try;;
3949esac
3950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951$as_echo "$ac_try_echo"; } >&5
3952  (eval "$ac_try") 2>&5
3953  ac_status=$?
3954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955  test $ac_status = 0; }; }; then
3956    cross_compiling=no
3957  else
3958    if test "$cross_compiling" = maybe; then
3959	cross_compiling=yes
3960    else
3961	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963as_fn_error "cannot run C compiled programs.
3964If you meant to cross compile, use \`--host'.
3965See \`config.log' for more details." "$LINENO" 5; }
3966    fi
3967  fi
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3970$as_echo "yes" >&6; }
3971
3972rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3973ac_clean_files=$ac_clean_files_save
3974# Check that the compiler produces executables we can run.  If not, either
3975# the compiler is broken, or we cross compile.
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3977$as_echo_n "checking whether we are cross compiling... " >&6; }
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3979$as_echo "$cross_compiling" >&6; }
3980
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3982$as_echo_n "checking for suffix of executables... " >&6; }
3983if { { ac_try="$ac_link"
3984case "(($ac_try" in
3985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986  *) ac_try_echo=$ac_try;;
3987esac
3988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3989$as_echo "$ac_try_echo"; } >&5
3990  (eval "$ac_link") 2>&5
3991  ac_status=$?
3992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993  test $ac_status = 0; }; then :
3994  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3995# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3996# work properly (i.e., refer to `conftest.exe'), while it won't with
3997# `rm'.
3998for ac_file in conftest.exe conftest conftest.*; do
3999  test -f "$ac_file" || continue
4000  case $ac_file in
4001    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4002    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4003	  break;;
4004    * ) break;;
4005  esac
4006done
4007else
4008  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010as_fn_error "cannot compute suffix of executables: cannot compile and link
4011See \`config.log' for more details." "$LINENO" 5; }
4012fi
4013rm -f conftest$ac_cv_exeext
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4015$as_echo "$ac_cv_exeext" >&6; }
4016
4017rm -f conftest.$ac_ext
4018EXEEXT=$ac_cv_exeext
4019ac_exeext=$EXEEXT
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4021$as_echo_n "checking for suffix of object files... " >&6; }
4022if test "${ac_cv_objext+set}" = set; then :
4023  $as_echo_n "(cached) " >&6
4024else
4025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026/* end confdefs.h.  */
4027
4028int
4029main ()
4030{
4031
4032  ;
4033  return 0;
4034}
4035_ACEOF
4036rm -f conftest.o conftest.obj
4037if { { ac_try="$ac_compile"
4038case "(($ac_try" in
4039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040  *) ac_try_echo=$ac_try;;
4041esac
4042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043$as_echo "$ac_try_echo"; } >&5
4044  (eval "$ac_compile") 2>&5
4045  ac_status=$?
4046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047  test $ac_status = 0; }; then :
4048  for ac_file in conftest.o conftest.obj conftest.*; do
4049  test -f "$ac_file" || continue;
4050  case $ac_file in
4051    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4052    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4053       break;;
4054  esac
4055done
4056else
4057  $as_echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4062as_fn_error "cannot compute suffix of object files: cannot compile
4063See \`config.log' for more details." "$LINENO" 5; }
4064fi
4065rm -f conftest.$ac_cv_objext conftest.$ac_ext
4066fi
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4068$as_echo "$ac_cv_objext" >&6; }
4069OBJEXT=$ac_cv_objext
4070ac_objext=$OBJEXT
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4072$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4073if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4074  $as_echo_n "(cached) " >&6
4075else
4076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077/* end confdefs.h.  */
4078
4079int
4080main ()
4081{
4082#ifndef __GNUC__
4083       choke me
4084#endif
4085
4086  ;
4087  return 0;
4088}
4089_ACEOF
4090if ac_fn_c_try_compile "$LINENO"; then :
4091  ac_compiler_gnu=yes
4092else
4093  ac_compiler_gnu=no
4094fi
4095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096ac_cv_c_compiler_gnu=$ac_compiler_gnu
4097
4098fi
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4100$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4101if test $ac_compiler_gnu = yes; then
4102  GCC=yes
4103else
4104  GCC=
4105fi
4106ac_test_CFLAGS=${CFLAGS+set}
4107ac_save_CFLAGS=$CFLAGS
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4109$as_echo_n "checking whether $CC accepts -g... " >&6; }
4110if test "${ac_cv_prog_cc_g+set}" = set; then :
4111  $as_echo_n "(cached) " >&6
4112else
4113  ac_save_c_werror_flag=$ac_c_werror_flag
4114   ac_c_werror_flag=yes
4115   ac_cv_prog_cc_g=no
4116   CFLAGS="-g"
4117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h.  */
4119
4120int
4121main ()
4122{
4123
4124  ;
4125  return 0;
4126}
4127_ACEOF
4128if ac_fn_c_try_compile "$LINENO"; then :
4129  ac_cv_prog_cc_g=yes
4130else
4131  CFLAGS=""
4132      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133/* end confdefs.h.  */
4134
4135int
4136main ()
4137{
4138
4139  ;
4140  return 0;
4141}
4142_ACEOF
4143if ac_fn_c_try_compile "$LINENO"; then :
4144
4145else
4146  ac_c_werror_flag=$ac_save_c_werror_flag
4147	 CFLAGS="-g"
4148	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149/* end confdefs.h.  */
4150
4151int
4152main ()
4153{
4154
4155  ;
4156  return 0;
4157}
4158_ACEOF
4159if ac_fn_c_try_compile "$LINENO"; then :
4160  ac_cv_prog_cc_g=yes
4161fi
4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163fi
4164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165fi
4166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167   ac_c_werror_flag=$ac_save_c_werror_flag
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4170$as_echo "$ac_cv_prog_cc_g" >&6; }
4171if test "$ac_test_CFLAGS" = set; then
4172  CFLAGS=$ac_save_CFLAGS
4173elif test $ac_cv_prog_cc_g = yes; then
4174  if test "$GCC" = yes; then
4175    CFLAGS="-g -O2"
4176  else
4177    CFLAGS="-g"
4178  fi
4179else
4180  if test "$GCC" = yes; then
4181    CFLAGS="-O2"
4182  else
4183    CFLAGS=
4184  fi
4185fi
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4187$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4188if test "${ac_cv_prog_cc_c89+set}" = set; then :
4189  $as_echo_n "(cached) " >&6
4190else
4191  ac_cv_prog_cc_c89=no
4192ac_save_CC=$CC
4193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h.  */
4195#include <stdarg.h>
4196#include <stdio.h>
4197#include <sys/types.h>
4198#include <sys/stat.h>
4199/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4200struct buf { int x; };
4201FILE * (*rcsopen) (struct buf *, struct stat *, int);
4202static char *e (p, i)
4203     char **p;
4204     int i;
4205{
4206  return p[i];
4207}
4208static char *f (char * (*g) (char **, int), char **p, ...)
4209{
4210  char *s;
4211  va_list v;
4212  va_start (v,p);
4213  s = g (p, va_arg (v,int));
4214  va_end (v);
4215  return s;
4216}
4217
4218/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4219   function prototypes and stuff, but not '\xHH' hex character constants.
4220   These don't provoke an error unfortunately, instead are silently treated
4221   as 'x'.  The following induces an error, until -std is added to get
4222   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4223   array size at least.  It's necessary to write '\x00'==0 to get something
4224   that's true only with -std.  */
4225int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4226
4227/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4228   inside strings and character constants.  */
4229#define FOO(x) 'x'
4230int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4231
4232int test (int i, double x);
4233struct s1 {int (*f) (int a);};
4234struct s2 {int (*f) (double a);};
4235int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4236int argc;
4237char **argv;
4238int
4239main ()
4240{
4241return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4242  ;
4243  return 0;
4244}
4245_ACEOF
4246for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4247	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4248do
4249  CC="$ac_save_CC $ac_arg"
4250  if ac_fn_c_try_compile "$LINENO"; then :
4251  ac_cv_prog_cc_c89=$ac_arg
4252fi
4253rm -f core conftest.err conftest.$ac_objext
4254  test "x$ac_cv_prog_cc_c89" != "xno" && break
4255done
4256rm -f conftest.$ac_ext
4257CC=$ac_save_CC
4258
4259fi
4260# AC_CACHE_VAL
4261case "x$ac_cv_prog_cc_c89" in
4262  x)
4263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4264$as_echo "none needed" >&6; } ;;
4265  xno)
4266    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4267$as_echo "unsupported" >&6; } ;;
4268  *)
4269    CC="$CC $ac_cv_prog_cc_c89"
4270    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4271$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4272esac
4273if test "x$ac_cv_prog_cc_c89" != xno; then :
4274
4275fi
4276
4277ac_ext=c
4278ac_cpp='$CPP $CPPFLAGS'
4279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282
4283ac_ext=cpp
4284ac_cpp='$CXXCPP $CPPFLAGS'
4285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4288if test -z "$CXX"; then
4289  if test -n "$CCC"; then
4290    CXX=$CCC
4291  else
4292    if test -n "$ac_tool_prefix"; then
4293  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4294  do
4295    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4296set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298$as_echo_n "checking for $ac_word... " >&6; }
4299if test "${ac_cv_prog_CXX+set}" = set; then :
4300  $as_echo_n "(cached) " >&6
4301else
4302  if test -n "$CXX"; then
4303  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4304else
4305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308  IFS=$as_save_IFS
4309  test -z "$as_dir" && as_dir=.
4310    for ac_exec_ext in '' $ac_executable_extensions; do
4311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314    break 2
4315  fi
4316done
4317  done
4318IFS=$as_save_IFS
4319
4320fi
4321fi
4322CXX=$ac_cv_prog_CXX
4323if test -n "$CXX"; then
4324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4325$as_echo "$CXX" >&6; }
4326else
4327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328$as_echo "no" >&6; }
4329fi
4330
4331
4332    test -n "$CXX" && break
4333  done
4334fi
4335if test -z "$CXX"; then
4336  ac_ct_CXX=$CXX
4337  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4338do
4339  # Extract the first word of "$ac_prog", so it can be a program name with args.
4340set dummy $ac_prog; ac_word=$2
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342$as_echo_n "checking for $ac_word... " >&6; }
4343if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4344  $as_echo_n "(cached) " >&6
4345else
4346  if test -n "$ac_ct_CXX"; then
4347  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4348else
4349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH
4351do
4352  IFS=$as_save_IFS
4353  test -z "$as_dir" && as_dir=.
4354    for ac_exec_ext in '' $ac_executable_extensions; do
4355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4356    ac_cv_prog_ac_ct_CXX="$ac_prog"
4357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358    break 2
4359  fi
4360done
4361  done
4362IFS=$as_save_IFS
4363
4364fi
4365fi
4366ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4367if test -n "$ac_ct_CXX"; then
4368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4369$as_echo "$ac_ct_CXX" >&6; }
4370else
4371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372$as_echo "no" >&6; }
4373fi
4374
4375
4376  test -n "$ac_ct_CXX" && break
4377done
4378
4379  if test "x$ac_ct_CXX" = x; then
4380    CXX="g++"
4381  else
4382    case $cross_compiling:$ac_tool_warned in
4383yes:)
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386ac_tool_warned=yes ;;
4387esac
4388    CXX=$ac_ct_CXX
4389  fi
4390fi
4391
4392  fi
4393fi
4394# Provide some information about the compiler.
4395$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4396set X $ac_compile
4397ac_compiler=$2
4398for ac_option in --version -v -V -qversion; do
4399  { { ac_try="$ac_compiler $ac_option >&5"
4400case "(($ac_try" in
4401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402  *) ac_try_echo=$ac_try;;
4403esac
4404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405$as_echo "$ac_try_echo"; } >&5
4406  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4407  ac_status=$?
4408  if test -s conftest.err; then
4409    sed '10a\
4410... rest of stderr output deleted ...
4411         10q' conftest.err >conftest.er1
4412    cat conftest.er1 >&5
4413    rm -f conftest.er1 conftest.err
4414  fi
4415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416  test $ac_status = 0; }
4417done
4418
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4420$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4421if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4422  $as_echo_n "(cached) " >&6
4423else
4424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h.  */
4426
4427int
4428main ()
4429{
4430#ifndef __GNUC__
4431       choke me
4432#endif
4433
4434  ;
4435  return 0;
4436}
4437_ACEOF
4438if ac_fn_cxx_try_compile "$LINENO"; then :
4439  ac_compiler_gnu=yes
4440else
4441  ac_compiler_gnu=no
4442fi
4443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4445
4446fi
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4448$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4449if test $ac_compiler_gnu = yes; then
4450  GXX=yes
4451else
4452  GXX=
4453fi
4454ac_test_CXXFLAGS=${CXXFLAGS+set}
4455ac_save_CXXFLAGS=$CXXFLAGS
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4457$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4458if test "${ac_cv_prog_cxx_g+set}" = set; then :
4459  $as_echo_n "(cached) " >&6
4460else
4461  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4462   ac_cxx_werror_flag=yes
4463   ac_cv_prog_cxx_g=no
4464   CXXFLAGS="-g"
4465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466/* end confdefs.h.  */
4467
4468int
4469main ()
4470{
4471
4472  ;
4473  return 0;
4474}
4475_ACEOF
4476if ac_fn_cxx_try_compile "$LINENO"; then :
4477  ac_cv_prog_cxx_g=yes
4478else
4479  CXXFLAGS=""
4480      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481/* end confdefs.h.  */
4482
4483int
4484main ()
4485{
4486
4487  ;
4488  return 0;
4489}
4490_ACEOF
4491if ac_fn_cxx_try_compile "$LINENO"; then :
4492
4493else
4494  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4495	 CXXFLAGS="-g"
4496	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497/* end confdefs.h.  */
4498
4499int
4500main ()
4501{
4502
4503  ;
4504  return 0;
4505}
4506_ACEOF
4507if ac_fn_cxx_try_compile "$LINENO"; then :
4508  ac_cv_prog_cxx_g=yes
4509fi
4510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511fi
4512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513fi
4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4516fi
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4518$as_echo "$ac_cv_prog_cxx_g" >&6; }
4519if test "$ac_test_CXXFLAGS" = set; then
4520  CXXFLAGS=$ac_save_CXXFLAGS
4521elif test $ac_cv_prog_cxx_g = yes; then
4522  if test "$GXX" = yes; then
4523    CXXFLAGS="-g -O2"
4524  else
4525    CXXFLAGS="-g"
4526  fi
4527else
4528  if test "$GXX" = yes; then
4529    CXXFLAGS="-O2"
4530  else
4531    CXXFLAGS=
4532  fi
4533fi
4534ac_ext=c
4535ac_cpp='$CPP $CPPFLAGS'
4536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539
4540
4541
4542
4543if test -n "$ac_tool_prefix"; then
4544  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4545set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547$as_echo_n "checking for $ac_word... " >&6; }
4548if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4549  $as_echo_n "(cached) " >&6
4550else
4551  if test -n "$GNATBIND"; then
4552  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557  IFS=$as_save_IFS
4558  test -z "$as_dir" && as_dir=.
4559    for ac_exec_ext in '' $ac_executable_extensions; do
4560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563    break 2
4564  fi
4565done
4566  done
4567IFS=$as_save_IFS
4568
4569fi
4570fi
4571GNATBIND=$ac_cv_prog_GNATBIND
4572if test -n "$GNATBIND"; then
4573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4574$as_echo "$GNATBIND" >&6; }
4575else
4576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
4579
4580
4581fi
4582if test -z "$ac_cv_prog_GNATBIND"; then
4583  ac_ct_GNATBIND=$GNATBIND
4584  # Extract the first word of "gnatbind", so it can be a program name with args.
4585set dummy gnatbind; ac_word=$2
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587$as_echo_n "checking for $ac_word... " >&6; }
4588if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  if test -n "$ac_ct_GNATBIND"; then
4592  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4593else
4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595for as_dir in $PATH
4596do
4597  IFS=$as_save_IFS
4598  test -z "$as_dir" && as_dir=.
4599    for ac_exec_ext in '' $ac_executable_extensions; do
4600  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603    break 2
4604  fi
4605done
4606  done
4607IFS=$as_save_IFS
4608
4609fi
4610fi
4611ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4612if test -n "$ac_ct_GNATBIND"; then
4613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4614$as_echo "$ac_ct_GNATBIND" >&6; }
4615else
4616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617$as_echo "no" >&6; }
4618fi
4619
4620  if test "x$ac_ct_GNATBIND" = x; then
4621    GNATBIND="no"
4622  else
4623    case $cross_compiling:$ac_tool_warned in
4624yes:)
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627ac_tool_warned=yes ;;
4628esac
4629    GNATBIND=$ac_ct_GNATBIND
4630  fi
4631else
4632  GNATBIND="$ac_cv_prog_GNATBIND"
4633fi
4634
4635if test -n "$ac_tool_prefix"; then
4636  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4637set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639$as_echo_n "checking for $ac_word... " >&6; }
4640if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4641  $as_echo_n "(cached) " >&6
4642else
4643  if test -n "$GNATMAKE"; then
4644  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649  IFS=$as_save_IFS
4650  test -z "$as_dir" && as_dir=.
4651    for ac_exec_ext in '' $ac_executable_extensions; do
4652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655    break 2
4656  fi
4657done
4658  done
4659IFS=$as_save_IFS
4660
4661fi
4662fi
4663GNATMAKE=$ac_cv_prog_GNATMAKE
4664if test -n "$GNATMAKE"; then
4665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4666$as_echo "$GNATMAKE" >&6; }
4667else
4668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669$as_echo "no" >&6; }
4670fi
4671
4672
4673fi
4674if test -z "$ac_cv_prog_GNATMAKE"; then
4675  ac_ct_GNATMAKE=$GNATMAKE
4676  # Extract the first word of "gnatmake", so it can be a program name with args.
4677set dummy gnatmake; ac_word=$2
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679$as_echo_n "checking for $ac_word... " >&6; }
4680if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4681  $as_echo_n "(cached) " >&6
4682else
4683  if test -n "$ac_ct_GNATMAKE"; then
4684  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689  IFS=$as_save_IFS
4690  test -z "$as_dir" && as_dir=.
4691    for ac_exec_ext in '' $ac_executable_extensions; do
4692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695    break 2
4696  fi
4697done
4698  done
4699IFS=$as_save_IFS
4700
4701fi
4702fi
4703ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4704if test -n "$ac_ct_GNATMAKE"; then
4705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4706$as_echo "$ac_ct_GNATMAKE" >&6; }
4707else
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709$as_echo "no" >&6; }
4710fi
4711
4712  if test "x$ac_ct_GNATMAKE" = x; then
4713    GNATMAKE="no"
4714  else
4715    case $cross_compiling:$ac_tool_warned in
4716yes:)
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719ac_tool_warned=yes ;;
4720esac
4721    GNATMAKE=$ac_ct_GNATMAKE
4722  fi
4723else
4724  GNATMAKE="$ac_cv_prog_GNATMAKE"
4725fi
4726
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4728$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4729if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4730  $as_echo_n "(cached) " >&6
4731else
4732  cat >conftest.adb <<EOF
4733procedure conftest is begin null; end conftest;
4734EOF
4735acx_cv_cc_gcc_supports_ada=no
4736# There is a bug in old released versions of GCC which causes the
4737# driver to exit successfully when the appropriate language module
4738# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4739# Therefore we must check for the error message as well as an
4740# unsuccessful exit.
4741# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4742# given a .adb file, but produce no object file.  So we must check
4743# if an object file was really produced to guard against this.
4744errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4745if test x"$errors" = x && test -f conftest.$ac_objext; then
4746  acx_cv_cc_gcc_supports_ada=yes
4747fi
4748rm -f conftest.*
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4751$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4752
4753if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4754  have_gnat=yes
4755else
4756  have_gnat=no
4757fi
4758
4759
4760# Remove the -O2: for historical reasons, unless bootstrapping we prefer
4761# optimizations to be activated explicitly by the toplevel.
4762case "$CC" in
4763  */prev-gcc/xgcc*) ;;
4764  *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" `
4765     CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" ` ;;
4766esac
4767
4768
4769
4770# Determine PICFLAG for target gnatlib.
4771
4772
4773
4774
4775case "${target}" in
4776    # PIC is the default on some targets or must not be used.
4777    *-*-darwin*)
4778	# PIC is the default on this platform
4779	# Common symbols not allowed in MH_DYLIB files
4780	PICFLAG_FOR_TARGET=-fno-common
4781	;;
4782    alpha*-dec-osf5*)
4783	# PIC is the default.
4784	;;
4785    hppa*64*-*-hpux*)
4786	# PIC is the default for 64-bit PA HP-UX.
4787	;;
4788    i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4789	;;
4790    i[34567]86-*-mingw* | x86_64-*-mingw*)
4791	;;
4792    i[34567]86-*-interix[3-9]*)
4793	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4794	# Instead, we relocate shared libraries at runtime.
4795	;;
4796    i[34567]86-*-nto-qnx*)
4797	# QNX uses GNU C++, but need to define -shared option too, otherwise
4798	# it will coredump.
4799	PICFLAG_FOR_TARGET='-fPIC -shared'
4800	;;
4801    i[34567]86-pc-msdosdjgpp*)
4802	# DJGPP does not support shared libraries at all.
4803	;;
4804    ia64*-*-hpux*)
4805	# On IA64 HP-UX, PIC is the default but the pic flag
4806	# sets the default TLS model and affects inlining.
4807	PICFLAG_FOR_TARGET=-fPIC
4808	;;
4809    mips-sgi-irix6*)
4810	# PIC is the default.
4811	;;
4812    rs6000-ibm-aix* | powerpc-ibm-aix*)
4813	# All AIX code is PIC.
4814	;;
4815
4816    # Some targets support both -fPIC and -fpic, but prefer the latter.
4817    # FIXME: Why?
4818    i[34567]86-*-* | x86_64-*-*)
4819	PICFLAG_FOR_TARGET=-fpic
4820	;;
4821    # FIXME: Override -fPIC default in libgcc only?
4822    sh-*-linux* | sh[2346lbe]*-*-linux*)
4823	PICFLAG_FOR_TARGET=-fpic
4824	;;
4825    # FIXME: Simplify to sh*-*-netbsd*?
4826    sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4827      sh64-*-netbsd* | sh64l*-*-netbsd*)
4828	PICFLAG_FOR_TARGET=-fpic
4829	;;
4830    # Default to -fPIC unless specified otherwise.
4831    *)
4832	PICFLAG_FOR_TARGET=-fPIC
4833	;;
4834esac
4835
4836# If the user explicitly uses -fpic/-fPIC, keep that.
4837case "${CFLAGS_FOR_TARGET}" in
4838    *-fpic*)
4839	PICFLAG_FOR_TARGET=-fpic
4840	;;
4841    *-fPIC*)
4842	PICFLAG_FOR_TARGET=-fPIC
4843	;;
4844esac
4845
4846
4847
4848# -------------------------
4849# Check C compiler features
4850# -------------------------
4851
4852
4853ac_ext=c
4854ac_cpp='$CPP $CPPFLAGS'
4855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4859$as_echo_n "checking how to run the C preprocessor... " >&6; }
4860# On Suns, sometimes $CPP names a directory.
4861if test -n "$CPP" && test -d "$CPP"; then
4862  CPP=
4863fi
4864if test -z "$CPP"; then
4865  if test "${ac_cv_prog_CPP+set}" = set; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868      # Double quotes because CPP needs to be expanded
4869    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4870    do
4871      ac_preproc_ok=false
4872for ac_c_preproc_warn_flag in '' yes
4873do
4874  # Use a header file that comes with gcc, so configuring glibc
4875  # with a fresh cross-compiler works.
4876  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4877  # <limits.h> exists even on freestanding compilers.
4878  # On the NeXT, cc -E runs the code through the compiler's parser,
4879  # not just through cpp. "Syntax error" is here to catch this case.
4880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881/* end confdefs.h.  */
4882#ifdef __STDC__
4883# include <limits.h>
4884#else
4885# include <assert.h>
4886#endif
4887		     Syntax error
4888_ACEOF
4889if ac_fn_c_try_cpp "$LINENO"; then :
4890
4891else
4892  # Broken: fails on valid input.
4893continue
4894fi
4895rm -f conftest.err conftest.$ac_ext
4896
4897  # OK, works on sane cases.  Now check whether nonexistent headers
4898  # can be detected and how.
4899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h.  */
4901#include <ac_nonexistent.h>
4902_ACEOF
4903if ac_fn_c_try_cpp "$LINENO"; then :
4904  # Broken: success on invalid input.
4905continue
4906else
4907  # Passes both tests.
4908ac_preproc_ok=:
4909break
4910fi
4911rm -f conftest.err conftest.$ac_ext
4912
4913done
4914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4915rm -f conftest.err conftest.$ac_ext
4916if $ac_preproc_ok; then :
4917  break
4918fi
4919
4920    done
4921    ac_cv_prog_CPP=$CPP
4922
4923fi
4924  CPP=$ac_cv_prog_CPP
4925else
4926  ac_cv_prog_CPP=$CPP
4927fi
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4929$as_echo "$CPP" >&6; }
4930ac_preproc_ok=false
4931for ac_c_preproc_warn_flag in '' yes
4932do
4933  # Use a header file that comes with gcc, so configuring glibc
4934  # with a fresh cross-compiler works.
4935  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4936  # <limits.h> exists even on freestanding compilers.
4937  # On the NeXT, cc -E runs the code through the compiler's parser,
4938  # not just through cpp. "Syntax error" is here to catch this case.
4939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940/* end confdefs.h.  */
4941#ifdef __STDC__
4942# include <limits.h>
4943#else
4944# include <assert.h>
4945#endif
4946		     Syntax error
4947_ACEOF
4948if ac_fn_c_try_cpp "$LINENO"; then :
4949
4950else
4951  # Broken: fails on valid input.
4952continue
4953fi
4954rm -f conftest.err conftest.$ac_ext
4955
4956  # OK, works on sane cases.  Now check whether nonexistent headers
4957  # can be detected and how.
4958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959/* end confdefs.h.  */
4960#include <ac_nonexistent.h>
4961_ACEOF
4962if ac_fn_c_try_cpp "$LINENO"; then :
4963  # Broken: success on invalid input.
4964continue
4965else
4966  # Passes both tests.
4967ac_preproc_ok=:
4968break
4969fi
4970rm -f conftest.err conftest.$ac_ext
4971
4972done
4973# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4974rm -f conftest.err conftest.$ac_ext
4975if $ac_preproc_ok; then :
4976
4977else
4978  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4980as_fn_error "C preprocessor \"$CPP\" fails sanity check
4981See \`config.log' for more details." "$LINENO" 5; }
4982fi
4983
4984ac_ext=c
4985ac_cpp='$CPP $CPPFLAGS'
4986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988ac_compiler_gnu=$ac_cv_c_compiler_gnu
4989
4990
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4992$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4993if test "${ac_cv_path_GREP+set}" = set; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  if test -z "$GREP"; then
4997  ac_path_GREP_found=false
4998  # Loop through the user's path and test for each of PROGNAME-LIST
4999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5001do
5002  IFS=$as_save_IFS
5003  test -z "$as_dir" && as_dir=.
5004    for ac_prog in grep ggrep; do
5005    for ac_exec_ext in '' $ac_executable_extensions; do
5006      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5007      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5008# Check for GNU ac_path_GREP and select it if it is found.
5009  # Check for GNU $ac_path_GREP
5010case `"$ac_path_GREP" --version 2>&1` in
5011*GNU*)
5012  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5013*)
5014  ac_count=0
5015  $as_echo_n 0123456789 >"conftest.in"
5016  while :
5017  do
5018    cat "conftest.in" "conftest.in" >"conftest.tmp"
5019    mv "conftest.tmp" "conftest.in"
5020    cp "conftest.in" "conftest.nl"
5021    $as_echo 'GREP' >> "conftest.nl"
5022    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5023    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5024    as_fn_arith $ac_count + 1 && ac_count=$as_val
5025    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5026      # Best one so far, save it but keep looking for a better one
5027      ac_cv_path_GREP="$ac_path_GREP"
5028      ac_path_GREP_max=$ac_count
5029    fi
5030    # 10*(2^10) chars as input seems more than enough
5031    test $ac_count -gt 10 && break
5032  done
5033  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5034esac
5035
5036      $ac_path_GREP_found && break 3
5037    done
5038  done
5039  done
5040IFS=$as_save_IFS
5041  if test -z "$ac_cv_path_GREP"; then
5042    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5043  fi
5044else
5045  ac_cv_path_GREP=$GREP
5046fi
5047
5048fi
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5050$as_echo "$ac_cv_path_GREP" >&6; }
5051 GREP="$ac_cv_path_GREP"
5052
5053
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5055$as_echo_n "checking for egrep... " >&6; }
5056if test "${ac_cv_path_EGREP+set}" = set; then :
5057  $as_echo_n "(cached) " >&6
5058else
5059  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5060   then ac_cv_path_EGREP="$GREP -E"
5061   else
5062     if test -z "$EGREP"; then
5063  ac_path_EGREP_found=false
5064  # Loop through the user's path and test for each of PROGNAME-LIST
5065  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5067do
5068  IFS=$as_save_IFS
5069  test -z "$as_dir" && as_dir=.
5070    for ac_prog in egrep; do
5071    for ac_exec_ext in '' $ac_executable_extensions; do
5072      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5073      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5074# Check for GNU ac_path_EGREP and select it if it is found.
5075  # Check for GNU $ac_path_EGREP
5076case `"$ac_path_EGREP" --version 2>&1` in
5077*GNU*)
5078  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5079*)
5080  ac_count=0
5081  $as_echo_n 0123456789 >"conftest.in"
5082  while :
5083  do
5084    cat "conftest.in" "conftest.in" >"conftest.tmp"
5085    mv "conftest.tmp" "conftest.in"
5086    cp "conftest.in" "conftest.nl"
5087    $as_echo 'EGREP' >> "conftest.nl"
5088    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5089    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5090    as_fn_arith $ac_count + 1 && ac_count=$as_val
5091    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5092      # Best one so far, save it but keep looking for a better one
5093      ac_cv_path_EGREP="$ac_path_EGREP"
5094      ac_path_EGREP_max=$ac_count
5095    fi
5096    # 10*(2^10) chars as input seems more than enough
5097    test $ac_count -gt 10 && break
5098  done
5099  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5100esac
5101
5102      $ac_path_EGREP_found && break 3
5103    done
5104  done
5105  done
5106IFS=$as_save_IFS
5107  if test -z "$ac_cv_path_EGREP"; then
5108    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5109  fi
5110else
5111  ac_cv_path_EGREP=$EGREP
5112fi
5113
5114   fi
5115fi
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5117$as_echo "$ac_cv_path_EGREP" >&6; }
5118 EGREP="$ac_cv_path_EGREP"
5119
5120
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5122$as_echo_n "checking for ANSI C header files... " >&6; }
5123if test "${ac_cv_header_stdc+set}" = set; then :
5124  $as_echo_n "(cached) " >&6
5125else
5126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127/* end confdefs.h.  */
5128#include <stdlib.h>
5129#include <stdarg.h>
5130#include <string.h>
5131#include <float.h>
5132
5133int
5134main ()
5135{
5136
5137  ;
5138  return 0;
5139}
5140_ACEOF
5141if ac_fn_c_try_compile "$LINENO"; then :
5142  ac_cv_header_stdc=yes
5143else
5144  ac_cv_header_stdc=no
5145fi
5146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147
5148if test $ac_cv_header_stdc = yes; then
5149  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151/* end confdefs.h.  */
5152#include <string.h>
5153
5154_ACEOF
5155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5156  $EGREP "memchr" >/dev/null 2>&1; then :
5157
5158else
5159  ac_cv_header_stdc=no
5160fi
5161rm -f conftest*
5162
5163fi
5164
5165if test $ac_cv_header_stdc = yes; then
5166  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168/* end confdefs.h.  */
5169#include <stdlib.h>
5170
5171_ACEOF
5172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5173  $EGREP "free" >/dev/null 2>&1; then :
5174
5175else
5176  ac_cv_header_stdc=no
5177fi
5178rm -f conftest*
5179
5180fi
5181
5182if test $ac_cv_header_stdc = yes; then
5183  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5184  if test "$cross_compiling" = yes; then :
5185  :
5186else
5187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188/* end confdefs.h.  */
5189#include <ctype.h>
5190#include <stdlib.h>
5191#if ((' ' & 0x0FF) == 0x020)
5192# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5193# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5194#else
5195# define ISLOWER(c) \
5196		   (('a' <= (c) && (c) <= 'i') \
5197		     || ('j' <= (c) && (c) <= 'r') \
5198		     || ('s' <= (c) && (c) <= 'z'))
5199# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5200#endif
5201
5202#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5203int
5204main ()
5205{
5206  int i;
5207  for (i = 0; i < 256; i++)
5208    if (XOR (islower (i), ISLOWER (i))
5209	|| toupper (i) != TOUPPER (i))
5210      return 2;
5211  return 0;
5212}
5213_ACEOF
5214if ac_fn_c_try_run "$LINENO"; then :
5215
5216else
5217  ac_cv_header_stdc=no
5218fi
5219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5220  conftest.$ac_objext conftest.beam conftest.$ac_ext
5221fi
5222
5223fi
5224fi
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5226$as_echo "$ac_cv_header_stdc" >&6; }
5227if test $ac_cv_header_stdc = yes; then
5228
5229$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5230
5231fi
5232
5233# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5234for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5235		  inttypes.h stdint.h unistd.h
5236do :
5237  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5238ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5239"
5240eval as_val=\$$as_ac_Header
5241   if test "x$as_val" = x""yes; then :
5242  cat >>confdefs.h <<_ACEOF
5243#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5244_ACEOF
5245
5246fi
5247
5248done
5249
5250
5251
5252  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5253if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5254  MINIX=yes
5255else
5256  MINIX=
5257fi
5258
5259
5260  if test "$MINIX" = yes; then
5261
5262$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5263
5264
5265$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5266
5267
5268$as_echo "#define _MINIX 1" >>confdefs.h
5269
5270  fi
5271
5272
5273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5274$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5275if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5276  $as_echo_n "(cached) " >&6
5277else
5278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279/* end confdefs.h.  */
5280
5281#	  define __EXTENSIONS__ 1
5282	  $ac_includes_default
5283int
5284main ()
5285{
5286
5287  ;
5288  return 0;
5289}
5290_ACEOF
5291if ac_fn_c_try_compile "$LINENO"; then :
5292  ac_cv_safe_to_define___extensions__=yes
5293else
5294  ac_cv_safe_to_define___extensions__=no
5295fi
5296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297fi
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5299$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5300  test $ac_cv_safe_to_define___extensions__ = yes &&
5301    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5302
5303  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5304
5305  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5306
5307  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5308
5309  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5310
5311
5312ac_ext=c
5313ac_cpp='$CPP $CPPFLAGS'
5314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5318$as_echo_n "checking how to run the C preprocessor... " >&6; }
5319# On Suns, sometimes $CPP names a directory.
5320if test -n "$CPP" && test -d "$CPP"; then
5321  CPP=
5322fi
5323if test -z "$CPP"; then
5324  if test "${ac_cv_prog_CPP+set}" = set; then :
5325  $as_echo_n "(cached) " >&6
5326else
5327      # Double quotes because CPP needs to be expanded
5328    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5329    do
5330      ac_preproc_ok=false
5331for ac_c_preproc_warn_flag in '' yes
5332do
5333  # Use a header file that comes with gcc, so configuring glibc
5334  # with a fresh cross-compiler works.
5335  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5336  # <limits.h> exists even on freestanding compilers.
5337  # On the NeXT, cc -E runs the code through the compiler's parser,
5338  # not just through cpp. "Syntax error" is here to catch this case.
5339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h.  */
5341#ifdef __STDC__
5342# include <limits.h>
5343#else
5344# include <assert.h>
5345#endif
5346		     Syntax error
5347_ACEOF
5348if ac_fn_c_try_cpp "$LINENO"; then :
5349
5350else
5351  # Broken: fails on valid input.
5352continue
5353fi
5354rm -f conftest.err conftest.$ac_ext
5355
5356  # OK, works on sane cases.  Now check whether nonexistent headers
5357  # can be detected and how.
5358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359/* end confdefs.h.  */
5360#include <ac_nonexistent.h>
5361_ACEOF
5362if ac_fn_c_try_cpp "$LINENO"; then :
5363  # Broken: success on invalid input.
5364continue
5365else
5366  # Passes both tests.
5367ac_preproc_ok=:
5368break
5369fi
5370rm -f conftest.err conftest.$ac_ext
5371
5372done
5373# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5374rm -f conftest.err conftest.$ac_ext
5375if $ac_preproc_ok; then :
5376  break
5377fi
5378
5379    done
5380    ac_cv_prog_CPP=$CPP
5381
5382fi
5383  CPP=$ac_cv_prog_CPP
5384else
5385  ac_cv_prog_CPP=$CPP
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5388$as_echo "$CPP" >&6; }
5389ac_preproc_ok=false
5390for ac_c_preproc_warn_flag in '' yes
5391do
5392  # Use a header file that comes with gcc, so configuring glibc
5393  # with a fresh cross-compiler works.
5394  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395  # <limits.h> exists even on freestanding compilers.
5396  # On the NeXT, cc -E runs the code through the compiler's parser,
5397  # not just through cpp. "Syntax error" is here to catch this case.
5398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399/* end confdefs.h.  */
5400#ifdef __STDC__
5401# include <limits.h>
5402#else
5403# include <assert.h>
5404#endif
5405		     Syntax error
5406_ACEOF
5407if ac_fn_c_try_cpp "$LINENO"; then :
5408
5409else
5410  # Broken: fails on valid input.
5411continue
5412fi
5413rm -f conftest.err conftest.$ac_ext
5414
5415  # OK, works on sane cases.  Now check whether nonexistent headers
5416  # can be detected and how.
5417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418/* end confdefs.h.  */
5419#include <ac_nonexistent.h>
5420_ACEOF
5421if ac_fn_c_try_cpp "$LINENO"; then :
5422  # Broken: success on invalid input.
5423continue
5424else
5425  # Passes both tests.
5426ac_preproc_ok=:
5427break
5428fi
5429rm -f conftest.err conftest.$ac_ext
5430
5431done
5432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5433rm -f conftest.err conftest.$ac_ext
5434if $ac_preproc_ok; then :
5435
5436else
5437  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5439as_fn_error "C preprocessor \"$CPP\" fails sanity check
5440See \`config.log' for more details." "$LINENO" 5; }
5441fi
5442
5443ac_ext=c
5444ac_cpp='$CPP $CPPFLAGS'
5445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5450$as_echo_n "checking for inline... " >&6; }
5451if test "${ac_cv_c_inline+set}" = set; then :
5452  $as_echo_n "(cached) " >&6
5453else
5454  ac_cv_c_inline=no
5455for ac_kw in inline __inline__ __inline; do
5456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457/* end confdefs.h.  */
5458#ifndef __cplusplus
5459typedef int foo_t;
5460static $ac_kw foo_t static_foo () {return 0; }
5461$ac_kw foo_t foo () {return 0; }
5462#endif
5463
5464_ACEOF
5465if ac_fn_c_try_compile "$LINENO"; then :
5466  ac_cv_c_inline=$ac_kw
5467fi
5468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469  test "$ac_cv_c_inline" != no && break
5470done
5471
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5474$as_echo "$ac_cv_c_inline" >&6; }
5475
5476case $ac_cv_c_inline in
5477  inline | yes) ;;
5478  *)
5479    case $ac_cv_c_inline in
5480      no) ac_val=;;
5481      *) ac_val=$ac_cv_c_inline;;
5482    esac
5483    cat >>confdefs.h <<_ACEOF
5484#ifndef __cplusplus
5485#define inline $ac_val
5486#endif
5487_ACEOF
5488    ;;
5489esac
5490
5491
5492# Check whether --enable-largefile was given.
5493if test "${enable_largefile+set}" = set; then :
5494  enableval=$enable_largefile;
5495fi
5496
5497if test "$enable_largefile" != no; then
5498
5499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5500$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5501if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5502  $as_echo_n "(cached) " >&6
5503else
5504  ac_cv_sys_largefile_CC=no
5505     if test "$GCC" != yes; then
5506       ac_save_CC=$CC
5507       while :; do
5508	 # IRIX 6.2 and later do not support large files by default,
5509	 # so use the C compiler's -n32 option if that helps.
5510	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511/* end confdefs.h.  */
5512#include <sys/types.h>
5513 /* Check that off_t can represent 2**63 - 1 correctly.
5514    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5515    since some C++ compilers masquerading as C compilers
5516    incorrectly reject 9223372036854775807.  */
5517#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5518  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5519		       && LARGE_OFF_T % 2147483647 == 1)
5520		      ? 1 : -1];
5521int
5522main ()
5523{
5524
5525  ;
5526  return 0;
5527}
5528_ACEOF
5529	 if ac_fn_c_try_compile "$LINENO"; then :
5530  break
5531fi
5532rm -f core conftest.err conftest.$ac_objext
5533	 CC="$CC -n32"
5534	 if ac_fn_c_try_compile "$LINENO"; then :
5535  ac_cv_sys_largefile_CC=' -n32'; break
5536fi
5537rm -f core conftest.err conftest.$ac_objext
5538	 break
5539       done
5540       CC=$ac_save_CC
5541       rm -f conftest.$ac_ext
5542    fi
5543fi
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5545$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5546  if test "$ac_cv_sys_largefile_CC" != no; then
5547    CC=$CC$ac_cv_sys_largefile_CC
5548  fi
5549
5550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5551$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5552if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5553  $as_echo_n "(cached) " >&6
5554else
5555  while :; do
5556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557/* end confdefs.h.  */
5558#include <sys/types.h>
5559 /* Check that off_t can represent 2**63 - 1 correctly.
5560    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5561    since some C++ compilers masquerading as C compilers
5562    incorrectly reject 9223372036854775807.  */
5563#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5564  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5565		       && LARGE_OFF_T % 2147483647 == 1)
5566		      ? 1 : -1];
5567int
5568main ()
5569{
5570
5571  ;
5572  return 0;
5573}
5574_ACEOF
5575if ac_fn_c_try_compile "$LINENO"; then :
5576  ac_cv_sys_file_offset_bits=no; break
5577fi
5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580/* end confdefs.h.  */
5581#define _FILE_OFFSET_BITS 64
5582#include <sys/types.h>
5583 /* Check that off_t can represent 2**63 - 1 correctly.
5584    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5585    since some C++ compilers masquerading as C compilers
5586    incorrectly reject 9223372036854775807.  */
5587#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5588  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5589		       && LARGE_OFF_T % 2147483647 == 1)
5590		      ? 1 : -1];
5591int
5592main ()
5593{
5594
5595  ;
5596  return 0;
5597}
5598_ACEOF
5599if ac_fn_c_try_compile "$LINENO"; then :
5600  ac_cv_sys_file_offset_bits=64; break
5601fi
5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603  ac_cv_sys_file_offset_bits=unknown
5604  break
5605done
5606fi
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5608$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5609case $ac_cv_sys_file_offset_bits in #(
5610  no | unknown) ;;
5611  *)
5612cat >>confdefs.h <<_ACEOF
5613#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5614_ACEOF
5615;;
5616esac
5617rm -rf conftest*
5618  if test $ac_cv_sys_file_offset_bits = unknown; then
5619    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5620$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5621if test "${ac_cv_sys_large_files+set}" = set; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  while :; do
5625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h.  */
5627#include <sys/types.h>
5628 /* Check that off_t can represent 2**63 - 1 correctly.
5629    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5630    since some C++ compilers masquerading as C compilers
5631    incorrectly reject 9223372036854775807.  */
5632#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5633  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5634		       && LARGE_OFF_T % 2147483647 == 1)
5635		      ? 1 : -1];
5636int
5637main ()
5638{
5639
5640  ;
5641  return 0;
5642}
5643_ACEOF
5644if ac_fn_c_try_compile "$LINENO"; then :
5645  ac_cv_sys_large_files=no; break
5646fi
5647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h.  */
5650#define _LARGE_FILES 1
5651#include <sys/types.h>
5652 /* Check that off_t can represent 2**63 - 1 correctly.
5653    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5654    since some C++ compilers masquerading as C compilers
5655    incorrectly reject 9223372036854775807.  */
5656#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5657  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5658		       && LARGE_OFF_T % 2147483647 == 1)
5659		      ? 1 : -1];
5660int
5661main ()
5662{
5663
5664  ;
5665  return 0;
5666}
5667_ACEOF
5668if ac_fn_c_try_compile "$LINENO"; then :
5669  ac_cv_sys_large_files=1; break
5670fi
5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672  ac_cv_sys_large_files=unknown
5673  break
5674done
5675fi
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5677$as_echo "$ac_cv_sys_large_files" >&6; }
5678case $ac_cv_sys_large_files in #(
5679  no | unknown) ;;
5680  *)
5681cat >>confdefs.h <<_ACEOF
5682#define _LARGE_FILES $ac_cv_sys_large_files
5683_ACEOF
5684;;
5685esac
5686rm -rf conftest*
5687  fi
5688fi
5689
5690
5691# sizeof(char) is 1 by definition.
5692# The cast to long int works around a bug in the HP C Compiler
5693# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5694# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5695# This bug is HP SR number 8606223364.
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5697$as_echo_n "checking size of void *... " >&6; }
5698if test "${ac_cv_sizeof_void_p+set}" = set; then :
5699  $as_echo_n "(cached) " >&6
5700else
5701  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5702
5703else
5704  if test "$ac_cv_type_void_p" = yes; then
5705     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5707{ as_fn_set_status 77
5708as_fn_error "cannot compute sizeof (void *)
5709See \`config.log' for more details." "$LINENO" 5; }; }
5710   else
5711     ac_cv_sizeof_void_p=0
5712   fi
5713fi
5714
5715fi
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5717$as_echo "$ac_cv_sizeof_void_p" >&6; }
5718
5719
5720
5721cat >>confdefs.h <<_ACEOF
5722#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5723_ACEOF
5724
5725
5726# The cast to long int works around a bug in the HP C Compiler
5727# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5728# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5729# This bug is HP SR number 8606223364.
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5731$as_echo_n "checking size of short... " >&6; }
5732if test "${ac_cv_sizeof_short+set}" = set; then :
5733  $as_echo_n "(cached) " >&6
5734else
5735  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5736
5737else
5738  if test "$ac_cv_type_short" = yes; then
5739     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5741{ as_fn_set_status 77
5742as_fn_error "cannot compute sizeof (short)
5743See \`config.log' for more details." "$LINENO" 5; }; }
5744   else
5745     ac_cv_sizeof_short=0
5746   fi
5747fi
5748
5749fi
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5751$as_echo "$ac_cv_sizeof_short" >&6; }
5752
5753
5754
5755cat >>confdefs.h <<_ACEOF
5756#define SIZEOF_SHORT $ac_cv_sizeof_short
5757_ACEOF
5758
5759
5760# The cast to long int works around a bug in the HP C Compiler
5761# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5762# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5763# This bug is HP SR number 8606223364.
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5765$as_echo_n "checking size of int... " >&6; }
5766if test "${ac_cv_sizeof_int+set}" = set; then :
5767  $as_echo_n "(cached) " >&6
5768else
5769  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5770
5771else
5772  if test "$ac_cv_type_int" = yes; then
5773     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5775{ as_fn_set_status 77
5776as_fn_error "cannot compute sizeof (int)
5777See \`config.log' for more details." "$LINENO" 5; }; }
5778   else
5779     ac_cv_sizeof_int=0
5780   fi
5781fi
5782
5783fi
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5785$as_echo "$ac_cv_sizeof_int" >&6; }
5786
5787
5788
5789cat >>confdefs.h <<_ACEOF
5790#define SIZEOF_INT $ac_cv_sizeof_int
5791_ACEOF
5792
5793
5794# The cast to long int works around a bug in the HP C Compiler
5795# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5796# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5797# This bug is HP SR number 8606223364.
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5799$as_echo_n "checking size of long... " >&6; }
5800if test "${ac_cv_sizeof_long+set}" = set; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5804
5805else
5806  if test "$ac_cv_type_long" = yes; then
5807     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5809{ as_fn_set_status 77
5810as_fn_error "cannot compute sizeof (long)
5811See \`config.log' for more details." "$LINENO" 5; }; }
5812   else
5813     ac_cv_sizeof_long=0
5814   fi
5815fi
5816
5817fi
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5819$as_echo "$ac_cv_sizeof_long" >&6; }
5820
5821
5822
5823cat >>confdefs.h <<_ACEOF
5824#define SIZEOF_LONG $ac_cv_sizeof_long
5825_ACEOF
5826
5827
5828ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5829if test "x$ac_cv_type_long_long" = x""yes; then :
5830
5831cat >>confdefs.h <<_ACEOF
5832#define HAVE_LONG_LONG 1
5833_ACEOF
5834
5835# The cast to long int works around a bug in the HP C Compiler
5836# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5837# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5838# This bug is HP SR number 8606223364.
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5840$as_echo_n "checking size of long long... " >&6; }
5841if test "${ac_cv_sizeof_long_long+set}" = set; then :
5842  $as_echo_n "(cached) " >&6
5843else
5844  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5845
5846else
5847  if test "$ac_cv_type_long_long" = yes; then
5848     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5850{ as_fn_set_status 77
5851as_fn_error "cannot compute sizeof (long long)
5852See \`config.log' for more details." "$LINENO" 5; }; }
5853   else
5854     ac_cv_sizeof_long_long=0
5855   fi
5856fi
5857
5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5860$as_echo "$ac_cv_sizeof_long_long" >&6; }
5861
5862
5863
5864cat >>confdefs.h <<_ACEOF
5865#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5866_ACEOF
5867
5868
5869fi
5870
5871ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5872if test "x$ac_cv_type___int64" = x""yes; then :
5873
5874cat >>confdefs.h <<_ACEOF
5875#define HAVE___INT64 1
5876_ACEOF
5877
5878# The cast to long int works around a bug in the HP C Compiler
5879# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5880# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5881# This bug is HP SR number 8606223364.
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5883$as_echo_n "checking size of __int64... " >&6; }
5884if test "${ac_cv_sizeof___int64+set}" = set; then :
5885  $as_echo_n "(cached) " >&6
5886else
5887  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5888
5889else
5890  if test "$ac_cv_type___int64" = yes; then
5891     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5893{ as_fn_set_status 77
5894as_fn_error "cannot compute sizeof (__int64)
5895See \`config.log' for more details." "$LINENO" 5; }; }
5896   else
5897     ac_cv_sizeof___int64=0
5898   fi
5899fi
5900
5901fi
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5903$as_echo "$ac_cv_sizeof___int64" >&6; }
5904
5905
5906
5907cat >>confdefs.h <<_ACEOF
5908#define SIZEOF___INT64 $ac_cv_sizeof___int64
5909_ACEOF
5910
5911
5912fi
5913
5914ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5915case $ac_cv_c_int8_t in #(
5916  no|yes) ;; #(
5917  *)
5918
5919cat >>confdefs.h <<_ACEOF
5920#define int8_t $ac_cv_c_int8_t
5921_ACEOF
5922;;
5923esac
5924
5925ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5926case $ac_cv_c_int16_t in #(
5927  no|yes) ;; #(
5928  *)
5929
5930cat >>confdefs.h <<_ACEOF
5931#define int16_t $ac_cv_c_int16_t
5932_ACEOF
5933;;
5934esac
5935
5936ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5937case $ac_cv_c_int32_t in #(
5938  no|yes) ;; #(
5939  *)
5940
5941cat >>confdefs.h <<_ACEOF
5942#define int32_t $ac_cv_c_int32_t
5943_ACEOF
5944;;
5945esac
5946
5947ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5948case $ac_cv_c_int64_t in #(
5949  no|yes) ;; #(
5950  *)
5951
5952cat >>confdefs.h <<_ACEOF
5953#define int64_t $ac_cv_c_int64_t
5954_ACEOF
5955;;
5956esac
5957
5958
5959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5960$as_echo_n "checking for long long int... " >&6; }
5961if test "${ac_cv_type_long_long_int+set}" = set; then :
5962  $as_echo_n "(cached) " >&6
5963else
5964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965/* end confdefs.h.  */
5966
5967  /* For now, do not test the preprocessor; as of 2007 there are too many
5968	 implementations with broken preprocessors.  Perhaps this can
5969	 be revisited in 2012.  In the meantime, code should not expect
5970	 #if to work with literals wider than 32 bits.  */
5971      /* Test literals.  */
5972      long long int ll = 9223372036854775807ll;
5973      long long int nll = -9223372036854775807LL;
5974      unsigned long long int ull = 18446744073709551615ULL;
5975      /* Test constant expressions.   */
5976      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5977		     ? 1 : -1)];
5978      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5979		     ? 1 : -1)];
5980      int i = 63;
5981int
5982main ()
5983{
5984/* Test availability of runtime routines for shift and division.  */
5985      long long int llmax = 9223372036854775807ll;
5986      unsigned long long int ullmax = 18446744073709551615ull;
5987      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5988	      | (llmax / ll) | (llmax % ll)
5989	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5990	      | (ullmax / ull) | (ullmax % ull));
5991  ;
5992  return 0;
5993}
5994
5995_ACEOF
5996if ac_fn_c_try_link "$LINENO"; then :
5997  			if test "$cross_compiling" = yes; then :
5998  ac_cv_type_long_long_int=yes
5999else
6000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001/* end confdefs.h.  */
6002#include <limits.h>
6003	       #ifndef LLONG_MAX
6004	       # define HALF \
6005			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
6006	       # define LLONG_MAX (HALF - 1 + HALF)
6007	       #endif
6008int
6009main ()
6010{
6011long long int n = 1;
6012	       int i;
6013	       for (i = 0; ; i++)
6014		 {
6015		   long long int m = n << i;
6016		   if (m >> i != n)
6017		     return 1;
6018		   if (LLONG_MAX / 2 < m)
6019		     break;
6020		 }
6021	       return 0;
6022  ;
6023  return 0;
6024}
6025_ACEOF
6026if ac_fn_c_try_run "$LINENO"; then :
6027  ac_cv_type_long_long_int=yes
6028else
6029  ac_cv_type_long_long_int=no
6030fi
6031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6032  conftest.$ac_objext conftest.beam conftest.$ac_ext
6033fi
6034
6035else
6036  ac_cv_type_long_long_int=no
6037fi
6038rm -f core conftest.err conftest.$ac_objext \
6039    conftest$ac_exeext conftest.$ac_ext
6040fi
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6042$as_echo "$ac_cv_type_long_long_int" >&6; }
6043  if test $ac_cv_type_long_long_int = yes; then
6044
6045$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6046
6047  fi
6048
6049
6050
6051  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6052if test "x$ac_cv_type_intmax_t" = x""yes; then :
6053
6054$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6055
6056else
6057  test $ac_cv_type_long_long_int = yes \
6058       && ac_type='long long int' \
6059       || ac_type='long int'
6060
6061cat >>confdefs.h <<_ACEOF
6062#define intmax_t $ac_type
6063_ACEOF
6064
6065fi
6066
6067
6068
6069  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6070if test "x$ac_cv_type_intptr_t" = x""yes; then :
6071
6072$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6073
6074else
6075  for ac_type in 'int' 'long int' 'long long int'; do
6076       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077/* end confdefs.h.  */
6078$ac_includes_default
6079int
6080main ()
6081{
6082static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6083test_array [0] = 0
6084
6085  ;
6086  return 0;
6087}
6088_ACEOF
6089if ac_fn_c_try_compile "$LINENO"; then :
6090
6091cat >>confdefs.h <<_ACEOF
6092#define intptr_t $ac_type
6093_ACEOF
6094
6095	  ac_type=
6096fi
6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098       test -z "$ac_type" && break
6099     done
6100fi
6101
6102
6103ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6104case $ac_cv_c_uint8_t in #(
6105  no|yes) ;; #(
6106  *)
6107
6108$as_echo "#define _UINT8_T 1" >>confdefs.h
6109
6110
6111cat >>confdefs.h <<_ACEOF
6112#define uint8_t $ac_cv_c_uint8_t
6113_ACEOF
6114;;
6115  esac
6116
6117ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6118case $ac_cv_c_uint16_t in #(
6119  no|yes) ;; #(
6120  *)
6121
6122
6123cat >>confdefs.h <<_ACEOF
6124#define uint16_t $ac_cv_c_uint16_t
6125_ACEOF
6126;;
6127  esac
6128
6129ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6130case $ac_cv_c_uint32_t in #(
6131  no|yes) ;; #(
6132  *)
6133
6134$as_echo "#define _UINT32_T 1" >>confdefs.h
6135
6136
6137cat >>confdefs.h <<_ACEOF
6138#define uint32_t $ac_cv_c_uint32_t
6139_ACEOF
6140;;
6141  esac
6142
6143ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6144case $ac_cv_c_uint64_t in #(
6145  no|yes) ;; #(
6146  *)
6147
6148$as_echo "#define _UINT64_T 1" >>confdefs.h
6149
6150
6151cat >>confdefs.h <<_ACEOF
6152#define uint64_t $ac_cv_c_uint64_t
6153_ACEOF
6154;;
6155  esac
6156
6157
6158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6159$as_echo_n "checking for unsigned long long int... " >&6; }
6160if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6161  $as_echo_n "(cached) " >&6
6162else
6163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164/* end confdefs.h.  */
6165
6166  /* For now, do not test the preprocessor; as of 2007 there are too many
6167	 implementations with broken preprocessors.  Perhaps this can
6168	 be revisited in 2012.  In the meantime, code should not expect
6169	 #if to work with literals wider than 32 bits.  */
6170      /* Test literals.  */
6171      long long int ll = 9223372036854775807ll;
6172      long long int nll = -9223372036854775807LL;
6173      unsigned long long int ull = 18446744073709551615ULL;
6174      /* Test constant expressions.   */
6175      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6176		     ? 1 : -1)];
6177      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6178		     ? 1 : -1)];
6179      int i = 63;
6180int
6181main ()
6182{
6183/* Test availability of runtime routines for shift and division.  */
6184      long long int llmax = 9223372036854775807ll;
6185      unsigned long long int ullmax = 18446744073709551615ull;
6186      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6187	      | (llmax / ll) | (llmax % ll)
6188	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6189	      | (ullmax / ull) | (ullmax % ull));
6190  ;
6191  return 0;
6192}
6193
6194_ACEOF
6195if ac_fn_c_try_link "$LINENO"; then :
6196  ac_cv_type_unsigned_long_long_int=yes
6197else
6198  ac_cv_type_unsigned_long_long_int=no
6199fi
6200rm -f core conftest.err conftest.$ac_objext \
6201    conftest$ac_exeext conftest.$ac_ext
6202fi
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6204$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6205  if test $ac_cv_type_unsigned_long_long_int = yes; then
6206
6207$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6208
6209  fi
6210
6211
6212
6213  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6214if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6215
6216$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6217
6218else
6219  test $ac_cv_type_unsigned_long_long_int = yes \
6220       && ac_type='unsigned long long int' \
6221       || ac_type='unsigned long int'
6222
6223cat >>confdefs.h <<_ACEOF
6224#define uintmax_t $ac_type
6225_ACEOF
6226
6227fi
6228
6229
6230
6231  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6232if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6233
6234$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6235
6236else
6237  for ac_type in 'unsigned int' 'unsigned long int' \
6238	'unsigned long long int'; do
6239       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240/* end confdefs.h.  */
6241$ac_includes_default
6242int
6243main ()
6244{
6245static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6246test_array [0] = 0
6247
6248  ;
6249  return 0;
6250}
6251_ACEOF
6252if ac_fn_c_try_compile "$LINENO"; then :
6253
6254cat >>confdefs.h <<_ACEOF
6255#define uintptr_t $ac_type
6256_ACEOF
6257
6258	  ac_type=
6259fi
6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261       test -z "$ac_type" && break
6262     done
6263fi
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279# ---------------------
6280# Warnings and checking
6281# ---------------------
6282
6283# Check $CC warning features (if it's GCC).
6284# We want to use -pedantic, but we don't want warnings about
6285# * 'long long'
6286# * variadic macros
6287# * overlong strings
6288# * C++11 narrowing conversions in { }
6289# So, we only use -pedantic if we can disable those warnings.
6290
6291# In stage 1, disable -Wformat warnings from old GCCs about new % codes
6292# Check whether --enable-build-format-warnings was given.
6293if test "${enable_build_format_warnings+set}" = set; then :
6294  enableval=$enable_build_format_warnings;
6295else
6296  enable_build_format_warnings=yes
6297fi
6298
6299if test $enable_build_format_warnings = no; then :
6300  wf_opt=-Wno-format
6301else
6302  wf_opt=
6303fi
6304loose_warn=
6305save_CFLAGS="$CFLAGS"
6306for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6307  # Do the check with the no- prefix removed since gcc silently
6308  # accepts any -Wno-* option on purpose
6309  case $real_option in
6310    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6311    *) option=$real_option ;;
6312  esac
6313  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6314
6315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6316$as_echo_n "checking whether $CC supports $option... " >&6; }
6317if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6318  $as_echo_n "(cached) " >&6
6319else
6320  CFLAGS="$option"
6321    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322/* end confdefs.h.  */
6323
6324int
6325main ()
6326{
6327
6328  ;
6329  return 0;
6330}
6331_ACEOF
6332if ac_fn_c_try_compile "$LINENO"; then :
6333  eval "$as_acx_Woption=yes"
6334else
6335  eval "$as_acx_Woption=no"
6336fi
6337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338
6339fi
6340eval ac_res=\$$as_acx_Woption
6341	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6342$as_echo "$ac_res" >&6; }
6343  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6344  loose_warn="$loose_warn${loose_warn:+ }$real_option"
6345fi
6346  done
6347CFLAGS="$save_CFLAGS"
6348
6349c_loose_warn=
6350save_CFLAGS="$CFLAGS"
6351for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6352  # Do the check with the no- prefix removed since gcc silently
6353  # accepts any -Wno-* option on purpose
6354  case $real_option in
6355    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6356    *) option=$real_option ;;
6357  esac
6358  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6359
6360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6361$as_echo_n "checking whether $CC supports $option... " >&6; }
6362if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  CFLAGS="$option"
6366    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367/* end confdefs.h.  */
6368
6369int
6370main ()
6371{
6372
6373  ;
6374  return 0;
6375}
6376_ACEOF
6377if ac_fn_c_try_compile "$LINENO"; then :
6378  eval "$as_acx_Woption=yes"
6379else
6380  eval "$as_acx_Woption=no"
6381fi
6382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383
6384fi
6385eval ac_res=\$$as_acx_Woption
6386	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6387$as_echo "$ac_res" >&6; }
6388  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6389  c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6390fi
6391  done
6392CFLAGS="$save_CFLAGS"
6393
6394strict_warn=
6395save_CFLAGS="$CFLAGS"
6396for real_option in -Wmissing-format-attribute; do
6397  # Do the check with the no- prefix removed since gcc silently
6398  # accepts any -Wno-* option on purpose
6399  case $real_option in
6400    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6401    *) option=$real_option ;;
6402  esac
6403  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6404
6405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6406$as_echo_n "checking whether $CC supports $option... " >&6; }
6407if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6408  $as_echo_n "(cached) " >&6
6409else
6410  CFLAGS="$option"
6411    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412/* end confdefs.h.  */
6413
6414int
6415main ()
6416{
6417
6418  ;
6419  return 0;
6420}
6421_ACEOF
6422if ac_fn_c_try_compile "$LINENO"; then :
6423  eval "$as_acx_Woption=yes"
6424else
6425  eval "$as_acx_Woption=no"
6426fi
6427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428
6429fi
6430eval ac_res=\$$as_acx_Woption
6431	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6432$as_echo "$ac_res" >&6; }
6433  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6434  strict_warn="$strict_warn${strict_warn:+ }$real_option"
6435fi
6436  done
6437CFLAGS="$save_CFLAGS"
6438
6439c_strict_warn=
6440save_CFLAGS="$CFLAGS"
6441for real_option in -Wold-style-definition -Wc++-compat; do
6442  # Do the check with the no- prefix removed since gcc silently
6443  # accepts any -Wno-* option on purpose
6444  case $real_option in
6445    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6446    *) option=$real_option ;;
6447  esac
6448  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6449
6450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6451$as_echo_n "checking whether $CC supports $option... " >&6; }
6452if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6453  $as_echo_n "(cached) " >&6
6454else
6455  CFLAGS="$option"
6456    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457/* end confdefs.h.  */
6458
6459int
6460main ()
6461{
6462
6463  ;
6464  return 0;
6465}
6466_ACEOF
6467if ac_fn_c_try_compile "$LINENO"; then :
6468  eval "$as_acx_Woption=yes"
6469else
6470  eval "$as_acx_Woption=no"
6471fi
6472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473
6474fi
6475eval ac_res=\$$as_acx_Woption
6476	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6477$as_echo "$ac_res" >&6; }
6478  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6479  c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6480fi
6481  done
6482CFLAGS="$save_CFLAGS"
6483
6484# Do the check with the no- prefix removed from the warning options
6485# since gcc silently accepts any -Wno-* option on purpose
6486if test "$GCC" = yes; then :
6487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6488$as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6489if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6490  $as_echo_n "(cached) " >&6
6491else
6492  save_CFLAGS="$CFLAGS"
6493CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h.  */
6496
6497int
6498main ()
6499{
6500
6501  ;
6502  return 0;
6503}
6504_ACEOF
6505if ac_fn_c_try_compile "$LINENO"; then :
6506  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6507else
6508  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6509fi
6510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511CFLAGS="$save_CFLAGS"
6512fi
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6514$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6515if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6516  strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6517fi
6518
6519fi
6520
6521# Check whether --enable-werror-always was given.
6522if test "${enable_werror_always+set}" = set; then :
6523  enableval=$enable_werror_always;
6524else
6525  enable_werror_always=no
6526fi
6527
6528if test $enable_werror_always = yes; then :
6529  strict_warn="$strict_warn${strict_warn:+ }-Werror"
6530fi
6531
6532
6533
6534# The above macros do nothing if the compiler is not GCC.  However, the
6535# Makefile has more goo to add other flags, so these variables are used
6536# to enable warnings only for GCC.
6537warn_cflags=
6538warn_cxxflags=
6539if test "x$GCC" = "xyes"; then
6540  warn_cflags='$(GCC_WARN_CFLAGS)'
6541  warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6542fi
6543
6544
6545
6546# Disable exceptions and RTTI if building with g++
6547noexception_flags=
6548save_CFLAGS="$CFLAGS"
6549for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6550  # Do the check with the no- prefix removed since gcc silently
6551  # accepts any -Wno-* option on purpose
6552  case $real_option in
6553    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6554    *) option=$real_option ;;
6555  esac
6556  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6557
6558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6559$as_echo_n "checking whether $CC supports $option... " >&6; }
6560if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6561  $as_echo_n "(cached) " >&6
6562else
6563  CFLAGS="$option"
6564    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h.  */
6566
6567int
6568main ()
6569{
6570
6571  ;
6572  return 0;
6573}
6574_ACEOF
6575if ac_fn_c_try_compile "$LINENO"; then :
6576  eval "$as_acx_Woption=yes"
6577else
6578  eval "$as_acx_Woption=no"
6579fi
6580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581
6582fi
6583eval ac_res=\$$as_acx_Woption
6584	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6585$as_echo "$ac_res" >&6; }
6586  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6587  noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6588fi
6589  done
6590CFLAGS="$save_CFLAGS"
6591
6592
6593# Enable expensive internal checks
6594is_release=
6595if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6596  is_release=yes
6597fi
6598
6599# Check whether --enable-checking was given.
6600if test "${enable_checking+set}" = set; then :
6601  enableval=$enable_checking; ac_checking_flags="${enableval}"
6602else
6603
6604# Determine the default checks.
6605if test x$is_release = x ; then
6606  ac_checking_flags=yes
6607else
6608  ac_checking_flags=release
6609fi
6610fi
6611
6612IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
6613for check in release $ac_checking_flags
6614do
6615	case $check in
6616	# these set all the flags to specific states
6617	yes)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6618			ac_fold_checking= ; ac_gc_checking=1 ;
6619			ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6620			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6621			ac_tree_checking=1 ; ac_valgrind_checking= ;
6622			ac_types_checking=1 ;;
6623	no|none)	ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6624			ac_fold_checking= ; ac_gc_checking= ;
6625			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6626			ac_rtlflag_checking= ; ac_runtime_checking= ;
6627			ac_tree_checking= ; ac_valgrind_checking= ;
6628			ac_types_checking= ;;
6629	all)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6630			ac_fold_checking=1 ; ac_gc_checking=1 ;
6631			ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6632			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6633			ac_tree_checking=1 ; ac_valgrind_checking= ;
6634			ac_types_checking=1 ;;
6635	release)	ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6636			ac_fold_checking= ; ac_gc_checking= ;
6637			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6638			ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6639			ac_tree_checking= ; ac_valgrind_checking= ;
6640			ac_types_checking= ;;
6641	# these enable particular checks
6642	assert) 	ac_assert_checking=1 ;;
6643	df)	 	ac_df_checking=1 ;;
6644	fold)		ac_fold_checking=1 ;;
6645	gc)		ac_gc_checking=1 ;;
6646	gcac)		ac_gc_always_collect=1 ;;
6647	gimple)		ac_gimple_checking=1 ;;
6648	misc)		ac_checking=1 ;;
6649	rtl)		ac_rtl_checking=1 ;;
6650	rtlflag)	ac_rtlflag_checking=1 ;;
6651	runtime)	ac_runtime_checking=1 ;;
6652	tree)		ac_tree_checking=1 ;;
6653	types)		ac_types_checking=1 ;;
6654	valgrind)	ac_valgrind_checking=1 ;;
6655	*)	as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6656	esac
6657done
6658IFS="$ac_save_IFS"
6659
6660nocommon_flag=""
6661if test x$ac_checking != x ; then
6662
6663$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6664
6665  nocommon_flag=-fno-common
6666fi
6667
6668if test x$ac_df_checking != x ; then
6669
6670$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6671
6672fi
6673if test x$ac_assert_checking != x ; then
6674
6675$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6676
6677fi
6678if test x$ac_gimple_checking != x ; then
6679
6680$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6681
6682fi
6683
6684if test x$ac_runtime_checking != x ; then
6685
6686$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6687
6688fi
6689if test x$ac_tree_checking != x ; then
6690
6691$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6692
6693  TREEBROWSER=tree-browser.o
6694  TREECHECKING=yes
6695fi
6696if test x$ac_types_checking != x ; then
6697
6698$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6699
6700fi
6701
6702
6703if test x$ac_rtl_checking != x ; then
6704
6705$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6706
6707fi
6708if test x$ac_rtlflag_checking != x ; then
6709
6710$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6711
6712fi
6713if test x$ac_gc_checking != x ; then
6714
6715$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6716
6717fi
6718if test x$ac_gc_always_collect != x ; then
6719
6720$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6721
6722fi
6723if test x$ac_fold_checking != x ; then
6724
6725$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6726
6727fi
6728valgrind_path_defines=
6729valgrind_command=
6730
6731ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6732if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6733  have_valgrind_h=yes
6734else
6735  have_valgrind_h=no
6736fi
6737
6738
6739
6740if test x$ac_valgrind_checking != x ; then
6741  # It is certainly possible that there's valgrind but no valgrind.h.
6742  # GCC relies on making annotations so we must have both.
6743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6744$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h.  */
6747#include <valgrind/memcheck.h>
6748#ifndef VALGRIND_DISCARD
6749#error VALGRIND_DISCARD not defined
6750#endif
6751_ACEOF
6752if ac_fn_c_try_cpp "$LINENO"; then :
6753  gcc_cv_header_valgrind_memcheck_h=yes
6754else
6755  gcc_cv_header_valgrind_memcheck_h=no
6756fi
6757rm -f conftest.err conftest.$ac_ext
6758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6759$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6761$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763/* end confdefs.h.  */
6764#include <memcheck.h>
6765#ifndef VALGRIND_DISCARD
6766#error VALGRIND_DISCARD not defined
6767#endif
6768_ACEOF
6769if ac_fn_c_try_cpp "$LINENO"; then :
6770  gcc_cv_header_memcheck_h=yes
6771else
6772  gcc_cv_header_memcheck_h=no
6773fi
6774rm -f conftest.err conftest.$ac_ext
6775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6776$as_echo "$gcc_cv_header_memcheck_h" >&6; }
6777
6778# Prepare PATH_SEPARATOR.
6779# The user is always right.
6780if test "${PATH_SEPARATOR+set}" != set; then
6781  echo "#! /bin/sh" >conf$$.sh
6782  echo  "exit 0"   >>conf$$.sh
6783  chmod +x conf$$.sh
6784  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6785    PATH_SEPARATOR=';'
6786  else
6787    PATH_SEPARATOR=:
6788  fi
6789  rm -f conf$$.sh
6790fi
6791
6792# Find out how to test for executable files. Don't use a zero-byte file,
6793# as systems may use methods other than mode bits to determine executability.
6794cat >conf$$.file <<_ASEOF
6795#! /bin/sh
6796exit 0
6797_ASEOF
6798chmod +x conf$$.file
6799if test -x conf$$.file >/dev/null 2>&1; then
6800  ac_executable_p="test -x"
6801else
6802  ac_executable_p="test -f"
6803fi
6804rm -f conf$$.file
6805
6806# Extract the first word of "valgrind", so it can be a program name with args.
6807set dummy valgrind; ac_word=$2
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809$as_echo_n "checking for $ac_word... " >&6; }
6810if test "${ac_cv_path_valgrind_path+set}" = set; then :
6811  $as_echo_n "(cached) " >&6
6812else
6813  case "$valgrind_path" in
6814  [\\/]* | ?:[\\/]*)
6815    ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6816    ;;
6817  *)
6818    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6819    for ac_dir in $PATH; do
6820      IFS="$ac_save_IFS"
6821      test -z "$ac_dir" && ac_dir=.
6822      for ac_exec_ext in '' $ac_executable_extensions; do
6823        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6824          if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6825            ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6826            break 2
6827          fi
6828        fi
6829      done
6830    done
6831    IFS="$ac_save_IFS"
6832    ;;
6833esac
6834fi
6835valgrind_path="$ac_cv_path_valgrind_path"
6836if test -n "$valgrind_path"; then
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6838$as_echo "$valgrind_path" >&6; }
6839else
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844  if test "x$valgrind_path" = "x" \
6845    || (test $have_valgrind_h = no \
6846	&& test $gcc_cv_header_memcheck_h = no \
6847	&& test $gcc_cv_header_valgrind_memcheck_h = no); then
6848	as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6849  fi
6850  valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6851  valgrind_command="$valgrind_path -q"
6852
6853$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6854
6855  if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6856
6857$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6858
6859  fi
6860  if test $gcc_cv_header_memcheck_h = yes; then
6861
6862$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6863
6864  fi
6865fi
6866
6867
6868
6869# Enable code coverage collection
6870# Check whether --enable-coverage was given.
6871if test "${enable_coverage+set}" = set; then :
6872  enableval=$enable_coverage; case "${enableval}" in
6873  yes|noopt)
6874    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6875    ;;
6876  opt)
6877    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6878    ;;
6879  no)
6880    # a.k.a. --disable-coverage
6881    coverage_flags=""
6882    ;;
6883  *)
6884    as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6885    ;;
6886esac
6887else
6888  coverage_flags=""
6889fi
6890
6891
6892
6893# Check whether --enable-gather-detailed-mem-stats was given.
6894if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6895  enableval=$enable_gather_detailed_mem_stats;
6896else
6897  enable_gather_detailed_mem_stats=no
6898fi
6899
6900gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6901
6902cat >>confdefs.h <<_ACEOF
6903#define GATHER_STATISTICS $gather_stats
6904_ACEOF
6905
6906
6907# -------------------------------
6908# Miscenalleous configure options
6909# -------------------------------
6910
6911# With stabs
6912
6913# Check whether --with-stabs was given.
6914if test "${with_stabs+set}" = set; then :
6915  withval=$with_stabs; stabs="$with_stabs"
6916else
6917  stabs=no
6918fi
6919
6920
6921# Determine whether or not multilibs are enabled.
6922# Check whether --enable-multilib was given.
6923if test "${enable_multilib+set}" = set; then :
6924  enableval=$enable_multilib;
6925else
6926  enable_multilib=yes
6927fi
6928
6929
6930
6931# Determine whether or not multiarch is enabled.
6932# Check whether --enable-multiarch was given.
6933if test "${enable_multiarch+set}" = set; then :
6934  enableval=$enable_multiarch; case "${enableval}" in
6935yes|no|auto) enable_multiarch=$enableval;;
6936*) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6937esac
6938else
6939  enable_multiarch=auto
6940fi
6941
6942if test x${enable_multiarch} = xauto; then
6943  if test x${with_native_system_header_dir} != x; then
6944    ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6945    enable_multiarch=no
6946  fi
6947  if test x$host != x$target && test "x$with_sysroot" = x; then
6948    ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6949    enable_multiarch=no
6950  fi
6951fi
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6953$as_echo_n "checking for multiarch configuration... " >&6; }
6954
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6956$as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6957
6958# needed for setting the multiarch name for soft-float/hard-float ABIs
6959
6960
6961
6962# Enable __cxa_atexit for C++.
6963# Check whether --enable-__cxa_atexit was given.
6964if test "${enable___cxa_atexit+set}" = set; then :
6965  enableval=$enable___cxa_atexit;
6966fi
6967
6968
6969# Enable C extension for decimal float if target supports it.
6970
6971# Check whether --enable-decimal-float was given.
6972if test "${enable_decimal_float+set}" = set; then :
6973  enableval=$enable_decimal_float;
6974  case $enable_decimal_float in
6975    yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6976    *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6977Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6978  esac
6979
6980else
6981
6982  case $target in
6983    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6984    i?86*-*-gnu* | \
6985    i?86*-*-mingw* | x86_64*-*-mingw* | \
6986    i?86*-*-cygwin* | x86_64*-*-cygwin*)
6987      enable_decimal_float=yes
6988      ;;
6989    *)
6990      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6991$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6992      enable_decimal_float=no
6993      ;;
6994  esac
6995
6996fi
6997
6998
6999# x86's use BID format instead of DPD
7000case x$enable_decimal_float in
7001  xyes)
7002    case $target in
7003      i?86*-*-* | x86_64*-*-*)
7004	enable_decimal_float=bid
7005	;;
7006      *)
7007	enable_decimal_float=dpd
7008	;;
7009    esac
7010    default_decimal_float=$enable_decimal_float
7011    ;;
7012  xno)
7013    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7014    # dependency on libdecnumber.
7015    default_decimal_float=dpd
7016    ;;
7017esac
7018
7019
7020
7021
7022dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7023
7024cat >>confdefs.h <<_ACEOF
7025#define ENABLE_DECIMAL_FLOAT $dfp
7026_ACEOF
7027
7028
7029# Use default_decimal_float for dependency.
7030enable_decimal_float=$default_decimal_float
7031
7032bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7033
7034cat >>confdefs.h <<_ACEOF
7035#define ENABLE_DECIMAL_BID_FORMAT $bid
7036_ACEOF
7037
7038
7039# Enable C extension for fixed-point arithmetic.
7040# Check whether --enable-fixed-point was given.
7041if test "${enable_fixed_point+set}" = set; then :
7042  enableval=$enable_fixed_point;
7043else
7044
7045  case $target in
7046    arm*)
7047      enable_fixed_point=yes
7048      ;;
7049
7050    mips*-*-*)
7051      enable_fixed_point=yes
7052      ;;
7053    *)
7054      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7055$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7056      enable_fixed_point=no
7057      ;;
7058  esac
7059
7060fi
7061
7062
7063
7064fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7065
7066cat >>confdefs.h <<_ACEOF
7067#define ENABLE_FIXED_POINT $fixedpoint
7068_ACEOF
7069
7070
7071# Enable threads
7072# Pass with no value to take the default
7073# Pass with a value to specify a thread package
7074# Check whether --enable-threads was given.
7075if test "${enable_threads+set}" = set; then :
7076  enableval=$enable_threads;
7077else
7078  enable_threads=''
7079fi
7080
7081
7082# Check whether --enable-tls was given.
7083if test "${enable_tls+set}" = set; then :
7084  enableval=$enable_tls;
7085  case $enable_tls in
7086    yes | no) ;;
7087    *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7088Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7089  esac
7090
7091else
7092  enable_tls=''
7093fi
7094
7095
7096# Check whether --enable-objc-gc was given.
7097if test "${enable_objc_gc+set}" = set; then :
7098  enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7099	objc_boehm_gc=''
7100else
7101	objc_boehm_gc=1
7102fi
7103else
7104  objc_boehm_gc=''
7105fi
7106
7107
7108
7109# Check whether --with-dwarf2 was given.
7110if test "${with_dwarf2+set}" = set; then :
7111  withval=$with_dwarf2; dwarf2="$with_dwarf2"
7112else
7113  dwarf2=no
7114fi
7115
7116
7117# Check whether --enable-shared was given.
7118if test "${enable_shared+set}" = set; then :
7119  enableval=$enable_shared;
7120  case $enable_shared in
7121  yes | no) ;;
7122  *)
7123    enable_shared=no
7124    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7125    for pkg in $enableval; do
7126      if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7127        enable_shared=yes
7128      fi
7129    done
7130    IFS="$ac_save_ifs"
7131    ;;
7132  esac
7133
7134else
7135  enable_shared=yes
7136fi
7137
7138
7139
7140
7141# Check whether --with-native-system-header-dir was given.
7142if test "${with_native_system_header_dir+set}" = set; then :
7143  withval=$with_native_system_header_dir;
7144 case ${with_native_system_header_dir} in
7145 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7146 /* | [A-Za-z]:[\\/]*) ;;
7147 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7148 esac
7149 configured_native_system_header_dir="${withval}"
7150
7151else
7152  configured_native_system_header_dir=
7153fi
7154
7155
7156
7157# Check whether --with-build-sysroot was given.
7158if test "${with_build_sysroot+set}" = set; then :
7159  withval=$with_build_sysroot; if test x"$withval" != x ; then
7160     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7161   fi
7162else
7163  SYSROOT_CFLAGS_FOR_TARGET=
7164fi
7165
7166
7167
7168if test "x$prefix" = xNONE; then
7169 test_prefix=/usr/local
7170else
7171 test_prefix=$prefix
7172fi
7173if test "x$exec_prefix" = xNONE; then
7174 test_exec_prefix=$test_prefix
7175else
7176 test_exec_prefix=$exec_prefix
7177fi
7178
7179
7180# Check whether --with-sysroot was given.
7181if test "${with_sysroot+set}" = set; then :
7182  withval=$with_sysroot;
7183 case ${with_sysroot} in
7184 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7185 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7186 esac
7187
7188 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7189 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7190
7191 case ${TARGET_SYSTEM_ROOT} in
7192 "${test_prefix}"|"${test_prefix}/"*|\
7193 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7194 '${prefix}'|'${prefix}/'*|\
7195 '${exec_prefix}'|'${exec_prefix}/'*)
7196   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7197   TARGET_SYSTEM_ROOT_DEFINE="$t"
7198   ;;
7199 esac
7200
7201else
7202
7203 TARGET_SYSTEM_ROOT=
7204 TARGET_SYSTEM_ROOT_DEFINE=
7205 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7206
7207fi
7208
7209
7210
7211
7212
7213
7214# Check whether --with-specs was given.
7215if test "${with_specs+set}" = set; then :
7216  withval=$with_specs; CONFIGURE_SPECS=$withval
7217else
7218  CONFIGURE_SPECS=
7219
7220fi
7221
7222
7223
7224
7225
7226# Check whether --with-pkgversion was given.
7227if test "${with_pkgversion+set}" = set; then :
7228  withval=$with_pkgversion; case "$withval" in
7229      yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7230      no)  PKGVERSION= ;;
7231      *)   PKGVERSION="($withval) " ;;
7232     esac
7233else
7234  PKGVERSION="(GCC) "
7235
7236fi
7237
7238
7239
7240
7241
7242# Check whether --with-bugurl was given.
7243if test "${with_bugurl+set}" = set; then :
7244  withval=$with_bugurl; case "$withval" in
7245      yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7246      no)  BUGURL=
7247	   ;;
7248      *)   BUGURL="$withval"
7249	   ;;
7250     esac
7251else
7252  BUGURL="http://gcc.gnu.org/bugs.html"
7253
7254fi
7255
7256  case ${BUGURL} in
7257  "")
7258    REPORT_BUGS_TO=
7259    REPORT_BUGS_TEXI=
7260    ;;
7261  *)
7262    REPORT_BUGS_TO="<$BUGURL>"
7263    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7264    ;;
7265  esac;
7266
7267
7268
7269
7270# Sanity check enable_languages in case someone does not run the toplevel
7271# configure # script.
7272# Check whether --enable-languages was given.
7273if test "${enable_languages+set}" = set; then :
7274  enableval=$enable_languages; case ,${enable_languages}, in
7275       ,,|,yes,)
7276		# go safe -- we cannot be much sure without the toplevel
7277		# configure's
7278		# analysis of which target libs are present and usable
7279		enable_languages=c
7280		;;
7281	 *,all,*)
7282		as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7283		;;
7284	*,c,*)
7285		;;
7286        *)
7287		enable_languages=c,${enable_languages}
7288		;;
7289esac
7290else
7291  enable_languages=c
7292fi
7293
7294
7295
7296# Check whether --with-multilib-list was given.
7297if test "${with_multilib_list+set}" = set; then :
7298  withval=$with_multilib_list; :
7299else
7300  with_multilib_list=default
7301fi
7302
7303
7304# -------------------------
7305# Checks for other programs
7306# -------------------------
7307
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7309$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7310set x ${MAKE-make}
7311ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7312if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7313  $as_echo_n "(cached) " >&6
7314else
7315  cat >conftest.make <<\_ACEOF
7316SHELL = /bin/sh
7317all:
7318	@echo '@@@%%%=$(MAKE)=@@@%%%'
7319_ACEOF
7320# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7321case `${MAKE-make} -f conftest.make 2>/dev/null` in
7322  *@@@%%%=?*=@@@%%%*)
7323    eval ac_cv_prog_make_${ac_make}_set=yes;;
7324  *)
7325    eval ac_cv_prog_make_${ac_make}_set=no;;
7326esac
7327rm -f conftest.make
7328fi
7329if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7331$as_echo "yes" >&6; }
7332  SET_MAKE=
7333else
7334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335$as_echo "no" >&6; }
7336  SET_MAKE="MAKE=${MAKE-make}"
7337fi
7338
7339
7340# Find some useful tools
7341for ac_prog in gawk mawk nawk awk
7342do
7343  # Extract the first word of "$ac_prog", so it can be a program name with args.
7344set dummy $ac_prog; ac_word=$2
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346$as_echo_n "checking for $ac_word... " >&6; }
7347if test "${ac_cv_prog_AWK+set}" = set; then :
7348  $as_echo_n "(cached) " >&6
7349else
7350  if test -n "$AWK"; then
7351  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7352else
7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356  IFS=$as_save_IFS
7357  test -z "$as_dir" && as_dir=.
7358    for ac_exec_ext in '' $ac_executable_extensions; do
7359  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7360    ac_cv_prog_AWK="$ac_prog"
7361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362    break 2
7363  fi
7364done
7365  done
7366IFS=$as_save_IFS
7367
7368fi
7369fi
7370AWK=$ac_cv_prog_AWK
7371if test -n "$AWK"; then
7372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7373$as_echo "$AWK" >&6; }
7374else
7375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376$as_echo "no" >&6; }
7377fi
7378
7379
7380  test -n "$AWK" && break
7381done
7382
7383# We need awk to create options.c and options.h.
7384# Bail out if it's missing.
7385case ${AWK} in
7386  "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7387esac
7388
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7390$as_echo_n "checking whether ln -s works... " >&6; }
7391if test "${gcc_cv_prog_LN_S+set}" = set; then :
7392  $as_echo_n "(cached) " >&6
7393else
7394  rm -f conftestdata_t
7395echo >conftestdata_f
7396if ln -s conftestdata_f conftestdata_t 2>/dev/null
7397then
7398  gcc_cv_prog_LN_S="ln -s"
7399else
7400  if ln conftestdata_f conftestdata_t 2>/dev/null
7401  then
7402    gcc_cv_prog_LN_S=ln
7403  else
7404    if cp -p conftestdata_f conftestdata_t 2>/dev/null
7405    then
7406      gcc_cv_prog_LN_S="cp -p"
7407    else
7408      gcc_cv_prog_LN_S=cp
7409    fi
7410  fi
7411fi
7412rm -f conftestdata_f conftestdata_t
7413
7414fi
7415LN_S="$gcc_cv_prog_LN_S"
7416if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7418$as_echo "yes" >&6; }
7419else
7420  if test "$gcc_cv_prog_LN_S" = "ln"; then
7421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7422$as_echo "no, using ln" >&6; }
7423  else
7424    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7425$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7426  fi
7427fi
7428
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7430$as_echo_n "checking whether ln works... " >&6; }
7431if test "${acx_cv_prog_LN+set}" = set; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  rm -f conftestdata_t
7435echo >conftestdata_f
7436if ln conftestdata_f conftestdata_t 2>/dev/null
7437then
7438  acx_cv_prog_LN=ln
7439else
7440  acx_cv_prog_LN=no
7441fi
7442rm -f conftestdata_f conftestdata_t
7443
7444fi
7445if test $acx_cv_prog_LN = no; then
7446  LN="$LN_S"
7447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7448$as_echo "no, using $LN" >&6; }
7449else
7450  LN="$acx_cv_prog_LN"
7451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7452$as_echo "yes" >&6; }
7453fi
7454
7455if test -n "$ac_tool_prefix"; then
7456  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7457set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459$as_echo_n "checking for $ac_word... " >&6; }
7460if test "${ac_cv_prog_RANLIB+set}" = set; then :
7461  $as_echo_n "(cached) " >&6
7462else
7463  if test -n "$RANLIB"; then
7464  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7465else
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469  IFS=$as_save_IFS
7470  test -z "$as_dir" && as_dir=.
7471    for ac_exec_ext in '' $ac_executable_extensions; do
7472  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475    break 2
7476  fi
7477done
7478  done
7479IFS=$as_save_IFS
7480
7481fi
7482fi
7483RANLIB=$ac_cv_prog_RANLIB
7484if test -n "$RANLIB"; then
7485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7486$as_echo "$RANLIB" >&6; }
7487else
7488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489$as_echo "no" >&6; }
7490fi
7491
7492
7493fi
7494if test -z "$ac_cv_prog_RANLIB"; then
7495  ac_ct_RANLIB=$RANLIB
7496  # Extract the first word of "ranlib", so it can be a program name with args.
7497set dummy ranlib; ac_word=$2
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
7500if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7501  $as_echo_n "(cached) " >&6
7502else
7503  if test -n "$ac_ct_RANLIB"; then
7504  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509  IFS=$as_save_IFS
7510  test -z "$as_dir" && as_dir=.
7511    for ac_exec_ext in '' $ac_executable_extensions; do
7512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513    ac_cv_prog_ac_ct_RANLIB="ranlib"
7514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515    break 2
7516  fi
7517done
7518  done
7519IFS=$as_save_IFS
7520
7521fi
7522fi
7523ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7524if test -n "$ac_ct_RANLIB"; then
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7526$as_echo "$ac_ct_RANLIB" >&6; }
7527else
7528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
7530fi
7531
7532  if test "x$ac_ct_RANLIB" = x; then
7533    RANLIB=":"
7534  else
7535    case $cross_compiling:$ac_tool_warned in
7536yes:)
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539ac_tool_warned=yes ;;
7540esac
7541    RANLIB=$ac_ct_RANLIB
7542  fi
7543else
7544  RANLIB="$ac_cv_prog_RANLIB"
7545fi
7546
7547ranlib_flags=""
7548
7549
7550# Find a good install program.  We prefer a C program (faster),
7551# so one script is as good as another.  But avoid the broken or
7552# incompatible versions:
7553# SysV /etc/install, /usr/sbin/install
7554# SunOS /usr/etc/install
7555# IRIX /sbin/install
7556# AIX /bin/install
7557# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7558# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7559# ./install, which can be erroneously created by make from ./install.sh.
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7561$as_echo_n "checking for a BSD compatible install... " >&6; }
7562if test -z "$INSTALL"; then
7563if test "${ac_cv_path_install+set}" = set; then :
7564  $as_echo_n "(cached) " >&6
7565else
7566    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7567  for ac_dir in $PATH; do
7568    # Account for people who put trailing slashes in PATH elements.
7569    case "$ac_dir/" in
7570    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7571    *)
7572      # OSF1 and SCO ODT 3.0 have their own names for install.
7573      for ac_prog in ginstall scoinst install; do
7574        if test -f $ac_dir/$ac_prog; then
7575	  if test $ac_prog = install &&
7576            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7577	    # AIX install.  It has an incompatible calling convention.
7578	    # OSF/1 installbsd also uses dspmsg, but is usable.
7579	    :
7580	  else
7581	    ac_cv_path_install="$ac_dir/$ac_prog -c"
7582	    break 2
7583	  fi
7584	fi
7585      done
7586      ;;
7587    esac
7588  done
7589  IFS="$ac_save_IFS"
7590
7591fi
7592  if test "${ac_cv_path_install+set}" = set; then
7593    INSTALL="$ac_cv_path_install"
7594  else
7595    # As a last resort, use the slow shell script.  We don't cache a
7596    # path for INSTALL within a source directory, because that will
7597    # break other packages using the cache if that directory is
7598    # removed, or if the path is relative.
7599    INSTALL="$ac_install_sh"
7600  fi
7601fi
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7603$as_echo "$INSTALL" >&6; }
7604
7605# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7606# It thinks the first close brace ends the variable substitution.
7607test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7608
7609test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7610
7611
7612# See if cmp has --ignore-initial.
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7614$as_echo_n "checking for cmp's capabilities... " >&6; }
7615if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7616  $as_echo_n "(cached) " >&6
7617else
7618   echo abfoo >t1
7619  echo cdfoo >t2
7620  gcc_cv_prog_cmp_skip=slowcompare
7621  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7622    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7623      :
7624    else
7625      gcc_cv_prog_cmp_skip=gnucompare
7626    fi
7627  fi
7628  if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7629    if cmp t1 t2 2 2 > /dev/null 2>&1; then
7630      if cmp t1 t2 1 1 > /dev/null 2>&1; then
7631        :
7632      else
7633        gcc_cv_prog_cmp_skip=fastcompare
7634      fi
7635    fi
7636  fi
7637  rm t1 t2
7638
7639fi
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7641$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7642make_compare_target=$gcc_cv_prog_cmp_skip
7643
7644
7645
7646# See if we have the mktemp command.
7647# Extract the first word of "mktemp", so it can be a program name with args.
7648set dummy mktemp; ac_word=$2
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650$as_echo_n "checking for $ac_word... " >&6; }
7651if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7652  $as_echo_n "(cached) " >&6
7653else
7654  if test -n "$have_mktemp_command"; then
7655  ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7656else
7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660  IFS=$as_save_IFS
7661  test -z "$as_dir" && as_dir=.
7662    for ac_exec_ext in '' $ac_executable_extensions; do
7663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7664    ac_cv_prog_have_mktemp_command="yes"
7665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666    break 2
7667  fi
7668done
7669  done
7670IFS=$as_save_IFS
7671
7672  test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7673fi
7674fi
7675have_mktemp_command=$ac_cv_prog_have_mktemp_command
7676if test -n "$have_mktemp_command"; then
7677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7678$as_echo "$have_mktemp_command" >&6; }
7679else
7680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681$as_echo "no" >&6; }
7682fi
7683
7684
7685
7686# See if makeinfo has been installed and is modern enough
7687# that we can use it.
7688
7689  # Extract the first word of "makeinfo", so it can be a program name with args.
7690set dummy makeinfo; ac_word=$2
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692$as_echo_n "checking for $ac_word... " >&6; }
7693if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7694  $as_echo_n "(cached) " >&6
7695else
7696  if test -n "$MAKEINFO"; then
7697  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7698else
7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702  IFS=$as_save_IFS
7703  test -z "$as_dir" && as_dir=.
7704    for ac_exec_ext in '' $ac_executable_extensions; do
7705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7706    ac_cv_prog_MAKEINFO="makeinfo"
7707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708    break 2
7709  fi
7710done
7711  done
7712IFS=$as_save_IFS
7713
7714fi
7715fi
7716MAKEINFO=$ac_cv_prog_MAKEINFO
7717if test -n "$MAKEINFO"; then
7718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7719$as_echo "$MAKEINFO" >&6; }
7720else
7721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722$as_echo "no" >&6; }
7723fi
7724
7725
7726  if test -n "$MAKEINFO"; then
7727    # Found it, now check the version.
7728    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7729$as_echo_n "checking for modern makeinfo... " >&6; }
7730if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7731  $as_echo_n "(cached) " >&6
7732else
7733  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7734                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7735
7736                    case $ac_prog_version in
7737                      '')  gcc_cv_prog_makeinfo_modern=no;;
7738                      4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7739                      *)   gcc_cv_prog_makeinfo_modern=no;;
7740                    esac
7741
7742fi
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7744$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7745  else
7746    gcc_cv_prog_makeinfo_modern=no
7747  fi
7748  if test $gcc_cv_prog_makeinfo_modern = no; then
7749    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7750  fi
7751
7752if test $gcc_cv_prog_makeinfo_modern = no; then
7753  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7754*** Makeinfo is missing or too old.
7755*** Info documentation will not be built." >&5
7756$as_echo "$as_me: WARNING:
7757*** Makeinfo is missing or too old.
7758*** Info documentation will not be built." >&2;}
7759  BUILD_INFO=
7760else
7761  BUILD_INFO=info
7762fi
7763
7764
7765# Is pod2man recent enough to regenerate manpages?
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7767$as_echo_n "checking for recent Pod::Man... " >&6; }
7768if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7770$as_echo "yes" >&6; }
7771  GENERATED_MANPAGES=generated-manpages
7772else
7773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774$as_echo "no" >&6; }
7775  GENERATED_MANPAGES=
7776fi
7777
7778
7779MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7780
7781# How about lex?
7782for ac_prog in flex
7783do
7784  # Extract the first word of "$ac_prog", so it can be a program name with args.
7785set dummy $ac_prog; ac_word=$2
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787$as_echo_n "checking for $ac_word... " >&6; }
7788if test "${ac_cv_prog_FLEX+set}" = set; then :
7789  $as_echo_n "(cached) " >&6
7790else
7791  if test -n "$FLEX"; then
7792  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7793else
7794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797  IFS=$as_save_IFS
7798  test -z "$as_dir" && as_dir=.
7799    for ac_exec_ext in '' $ac_executable_extensions; do
7800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801    ac_cv_prog_FLEX="$ac_prog"
7802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803    break 2
7804  fi
7805done
7806  done
7807IFS=$as_save_IFS
7808
7809fi
7810fi
7811FLEX=$ac_cv_prog_FLEX
7812if test -n "$FLEX"; then
7813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7814$as_echo "$FLEX" >&6; }
7815else
7816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817$as_echo "no" >&6; }
7818fi
7819
7820
7821  test -n "$FLEX" && break
7822done
7823test -n "$FLEX" || FLEX="$MISSING flex"
7824
7825
7826# Bison?
7827for ac_prog in bison
7828do
7829  # Extract the first word of "$ac_prog", so it can be a program name with args.
7830set dummy $ac_prog; ac_word=$2
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832$as_echo_n "checking for $ac_word... " >&6; }
7833if test "${ac_cv_prog_BISON+set}" = set; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  if test -n "$BISON"; then
7837  ac_cv_prog_BISON="$BISON" # Let the user override the test.
7838else
7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842  IFS=$as_save_IFS
7843  test -z "$as_dir" && as_dir=.
7844    for ac_exec_ext in '' $ac_executable_extensions; do
7845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7846    ac_cv_prog_BISON="$ac_prog"
7847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848    break 2
7849  fi
7850done
7851  done
7852IFS=$as_save_IFS
7853
7854fi
7855fi
7856BISON=$ac_cv_prog_BISON
7857if test -n "$BISON"; then
7858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7859$as_echo "$BISON" >&6; }
7860else
7861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
7863fi
7864
7865
7866  test -n "$BISON" && break
7867done
7868test -n "$BISON" || BISON="$MISSING bison"
7869
7870
7871# Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7872# check for build == host before using them.
7873
7874# NM
7875if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7876  && test -d ../binutils ; then
7877  NM='${objdir}/../binutils/nm-new'
7878else
7879  # Extract the first word of "nm", so it can be a program name with args.
7880set dummy nm; ac_word=$2
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882$as_echo_n "checking for $ac_word... " >&6; }
7883if test "${ac_cv_prog_NM+set}" = set; then :
7884  $as_echo_n "(cached) " >&6
7885else
7886  if test -n "$NM"; then
7887  ac_cv_prog_NM="$NM" # Let the user override the test.
7888else
7889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890for as_dir in $PATH
7891do
7892  IFS=$as_save_IFS
7893  test -z "$as_dir" && as_dir=.
7894    for ac_exec_ext in '' $ac_executable_extensions; do
7895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896    ac_cv_prog_NM="nm"
7897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898    break 2
7899  fi
7900done
7901  done
7902IFS=$as_save_IFS
7903
7904  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7905fi
7906fi
7907NM=$ac_cv_prog_NM
7908if test -n "$NM"; then
7909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7910$as_echo "$NM" >&6; }
7911else
7912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913$as_echo "no" >&6; }
7914fi
7915
7916
7917fi
7918
7919# AR
7920if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7921  && test -d ../binutils ; then
7922  AR='${objdir}/../binutils/ar'
7923else
7924  # Extract the first word of "ar", so it can be a program name with args.
7925set dummy ar; ac_word=$2
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927$as_echo_n "checking for $ac_word... " >&6; }
7928if test "${ac_cv_prog_AR+set}" = set; then :
7929  $as_echo_n "(cached) " >&6
7930else
7931  if test -n "$AR"; then
7932  ac_cv_prog_AR="$AR" # Let the user override the test.
7933else
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937  IFS=$as_save_IFS
7938  test -z "$as_dir" && as_dir=.
7939    for ac_exec_ext in '' $ac_executable_extensions; do
7940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941    ac_cv_prog_AR="ar"
7942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943    break 2
7944  fi
7945done
7946  done
7947IFS=$as_save_IFS
7948
7949  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7950fi
7951fi
7952AR=$ac_cv_prog_AR
7953if test -n "$AR"; then
7954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7955$as_echo "$AR" >&6; }
7956else
7957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958$as_echo "no" >&6; }
7959fi
7960
7961
7962fi
7963
7964
7965# --------------------
7966# Checks for C headers
7967# --------------------
7968
7969# Need to reject headers which give warnings, so that the -Werror bootstrap
7970# works later. *sigh*  This needs to come before all header checks.
7971
7972ac_c_preproc_warn_flag=yes
7973
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7975$as_echo_n "checking for ANSI C header files... " >&6; }
7976if test "${ac_cv_header_stdc+set}" = set; then :
7977  $as_echo_n "(cached) " >&6
7978else
7979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980/* end confdefs.h.  */
7981#include <stdlib.h>
7982#include <stdarg.h>
7983#include <string.h>
7984#include <float.h>
7985
7986int
7987main ()
7988{
7989
7990  ;
7991  return 0;
7992}
7993_ACEOF
7994if ac_fn_c_try_compile "$LINENO"; then :
7995  ac_cv_header_stdc=yes
7996else
7997  ac_cv_header_stdc=no
7998fi
7999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000
8001if test $ac_cv_header_stdc = yes; then
8002  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004/* end confdefs.h.  */
8005#include <string.h>
8006
8007_ACEOF
8008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8009  $EGREP "memchr" >/dev/null 2>&1; then :
8010
8011else
8012  ac_cv_header_stdc=no
8013fi
8014rm -f conftest*
8015
8016fi
8017
8018if test $ac_cv_header_stdc = yes; then
8019  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021/* end confdefs.h.  */
8022#include <stdlib.h>
8023
8024_ACEOF
8025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8026  $EGREP "free" >/dev/null 2>&1; then :
8027
8028else
8029  ac_cv_header_stdc=no
8030fi
8031rm -f conftest*
8032
8033fi
8034
8035if test $ac_cv_header_stdc = yes; then
8036  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8037  if test "$cross_compiling" = yes; then :
8038  :
8039else
8040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041/* end confdefs.h.  */
8042#include <ctype.h>
8043#include <stdlib.h>
8044#if ((' ' & 0x0FF) == 0x020)
8045# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8046# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8047#else
8048# define ISLOWER(c) \
8049		   (('a' <= (c) && (c) <= 'i') \
8050		     || ('j' <= (c) && (c) <= 'r') \
8051		     || ('s' <= (c) && (c) <= 'z'))
8052# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8053#endif
8054
8055#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8056int
8057main ()
8058{
8059  int i;
8060  for (i = 0; i < 256; i++)
8061    if (XOR (islower (i), ISLOWER (i))
8062	|| toupper (i) != TOUPPER (i))
8063      return 2;
8064  return 0;
8065}
8066_ACEOF
8067if ac_fn_c_try_run "$LINENO"; then :
8068
8069else
8070  ac_cv_header_stdc=no
8071fi
8072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8073  conftest.$ac_objext conftest.beam conftest.$ac_ext
8074fi
8075
8076fi
8077fi
8078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8079$as_echo "$ac_cv_header_stdc" >&6; }
8080if test $ac_cv_header_stdc = yes; then
8081
8082$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8083
8084fi
8085
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8087$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8088if test "${ac_cv_header_time+set}" = set; then :
8089  $as_echo_n "(cached) " >&6
8090else
8091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092/* end confdefs.h.  */
8093#include <sys/types.h>
8094#include <sys/time.h>
8095#include <time.h>
8096
8097int
8098main ()
8099{
8100if ((struct tm *) 0)
8101return 0;
8102  ;
8103  return 0;
8104}
8105_ACEOF
8106if ac_fn_c_try_compile "$LINENO"; then :
8107  ac_cv_header_time=yes
8108else
8109  ac_cv_header_time=no
8110fi
8111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112fi
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8114$as_echo "$ac_cv_header_time" >&6; }
8115if test $ac_cv_header_time = yes; then
8116
8117$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8118
8119fi
8120
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8122$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8123if test "${gcc_cv_header_string+set}" = set; then :
8124  $as_echo_n "(cached) " >&6
8125else
8126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127/* end confdefs.h.  */
8128#include <string.h>
8129#include <strings.h>
8130int
8131main ()
8132{
8133
8134  ;
8135  return 0;
8136}
8137_ACEOF
8138if ac_fn_c_try_compile "$LINENO"; then :
8139  gcc_cv_header_string=yes
8140else
8141  gcc_cv_header_string=no
8142fi
8143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144fi
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8146$as_echo "$gcc_cv_header_string" >&6; }
8147if test $gcc_cv_header_string = yes; then
8148
8149$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8150
8151fi
8152
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8154$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8155if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8156  $as_echo_n "(cached) " >&6
8157else
8158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h.  */
8160#include <sys/types.h>
8161#include <sys/wait.h>
8162#ifndef WEXITSTATUS
8163# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8164#endif
8165#ifndef WIFEXITED
8166# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8167#endif
8168
8169int
8170main ()
8171{
8172  int s;
8173  wait (&s);
8174  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8175  ;
8176  return 0;
8177}
8178_ACEOF
8179if ac_fn_c_try_compile "$LINENO"; then :
8180  ac_cv_header_sys_wait_h=yes
8181else
8182  ac_cv_header_sys_wait_h=no
8183fi
8184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185fi
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8187$as_echo "$ac_cv_header_sys_wait_h" >&6; }
8188if test $ac_cv_header_sys_wait_h = yes; then
8189
8190$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8191
8192fi
8193
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8195$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8196if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8197  $as_echo_n "(cached) " >&6
8198else
8199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200/* end confdefs.h.  */
8201#include <sys/types.h>
8202#include <termios.h>
8203#ifdef TIOCGWINSZ
8204  yes
8205#endif
8206
8207_ACEOF
8208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8209  $EGREP "yes" >/dev/null 2>&1; then :
8210  ac_cv_sys_tiocgwinsz_in_termios_h=yes
8211else
8212  ac_cv_sys_tiocgwinsz_in_termios_h=no
8213fi
8214rm -f conftest*
8215
8216fi
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8218$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8219
8220if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8222$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8223if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8224  $as_echo_n "(cached) " >&6
8225else
8226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h.  */
8228#include <sys/types.h>
8229#include <sys/ioctl.h>
8230#ifdef TIOCGWINSZ
8231  yes
8232#endif
8233
8234_ACEOF
8235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8236  $EGREP "yes" >/dev/null 2>&1; then :
8237  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8238else
8239  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8240fi
8241rm -f conftest*
8242
8243fi
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8245$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8246
8247  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8248
8249$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8250
8251  fi
8252fi
8253
8254for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8255		 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8256		 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8257		 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8258do :
8259  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8260ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8261eval as_val=\$$as_ac_Header
8262   if test "x$as_val" = x""yes; then :
8263  cat >>confdefs.h <<_ACEOF
8264#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8265_ACEOF
8266
8267fi
8268done
8269
8270
8271# Check for thread headers.
8272ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8273if test "x$ac_cv_header_thread_h" = x""yes; then :
8274  have_thread_h=yes
8275else
8276  have_thread_h=
8277fi
8278
8279ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8280if test "x$ac_cv_header_pthread_h" = x""yes; then :
8281  have_pthread_h=yes
8282else
8283  have_pthread_h=
8284fi
8285
8286
8287# These tests can't be done till we know if we have limits.h.
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8289$as_echo_n "checking for CHAR_BIT... " >&6; }
8290if test "${gcc_cv_decl_char_bit+set}" = set; then :
8291  $as_echo_n "(cached) " >&6
8292else
8293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294/* end confdefs.h.  */
8295#ifdef HAVE_LIMITS_H
8296#include <limits.h>
8297#endif
8298#ifdef CHAR_BIT
8299found
8300#endif
8301_ACEOF
8302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8303  $EGREP "found" >/dev/null 2>&1; then :
8304  gcc_cv_decl_char_bit=yes
8305else
8306  gcc_cv_decl_char_bit=no
8307fi
8308rm -f conftest*
8309
8310
8311fi
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8313$as_echo "$gcc_cv_decl_char_bit" >&6; }
8314if test $gcc_cv_decl_char_bit = no; then
8315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8316$as_echo_n "checking number of bits in a byte... " >&6; }
8317if test "${gcc_cv_c_nbby+set}" = set; then :
8318  $as_echo_n "(cached) " >&6
8319else
8320  i=8
8321 gcc_cv_c_nbby=
8322 while test $i -lt 65; do
8323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324/* end confdefs.h.  */
8325
8326int
8327main ()
8328{
8329switch(0) {
8330  case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8331  case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8332  ; }
8333  ;
8334  return 0;
8335}
8336_ACEOF
8337if ac_fn_c_try_compile "$LINENO"; then :
8338  gcc_cv_c_nbby=$i; break
8339fi
8340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341   i=`expr $i + 1`
8342 done
8343 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8344
8345fi
8346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8347$as_echo "$gcc_cv_c_nbby" >&6; }
8348if test $gcc_cv_c_nbby = failed; then
8349  as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8350else
8351
8352cat >>confdefs.h <<_ACEOF
8353#define CHAR_BIT $gcc_cv_c_nbby
8354_ACEOF
8355
8356fi
8357fi
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8359$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8360if test "${ac_cv_c_bigendian+set}" = set; then :
8361  $as_echo_n "(cached) " >&6
8362else
8363  ac_cv_c_bigendian=unknown
8364    # See if we're dealing with a universal compiler.
8365    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366/* end confdefs.h.  */
8367#ifndef __APPLE_CC__
8368	       not a universal capable compiler
8369	     #endif
8370	     typedef int dummy;
8371
8372_ACEOF
8373if ac_fn_c_try_compile "$LINENO"; then :
8374
8375	# Check for potential -arch flags.  It is not universal unless
8376	# there are at least two -arch flags with different values.
8377	ac_arch=
8378	ac_prev=
8379	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8380	 if test -n "$ac_prev"; then
8381	   case $ac_word in
8382	     i?86 | x86_64 | ppc | ppc64)
8383	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8384		 ac_arch=$ac_word
8385	       else
8386		 ac_cv_c_bigendian=universal
8387		 break
8388	       fi
8389	       ;;
8390	   esac
8391	   ac_prev=
8392	 elif test "x$ac_word" = "x-arch"; then
8393	   ac_prev=arch
8394	 fi
8395       done
8396fi
8397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398    if test $ac_cv_c_bigendian = unknown; then
8399      # See if sys/param.h defines the BYTE_ORDER macro.
8400      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h.  */
8402#include <sys/types.h>
8403	     #include <sys/param.h>
8404
8405int
8406main ()
8407{
8408#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8409		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8410		     && LITTLE_ENDIAN)
8411	      bogus endian macros
8412	     #endif
8413
8414  ;
8415  return 0;
8416}
8417_ACEOF
8418if ac_fn_c_try_compile "$LINENO"; then :
8419  # It does; now see whether it defined to BIG_ENDIAN or not.
8420	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h.  */
8422#include <sys/types.h>
8423		#include <sys/param.h>
8424
8425int
8426main ()
8427{
8428#if BYTE_ORDER != BIG_ENDIAN
8429		 not big endian
8430		#endif
8431
8432  ;
8433  return 0;
8434}
8435_ACEOF
8436if ac_fn_c_try_compile "$LINENO"; then :
8437  ac_cv_c_bigendian=yes
8438else
8439  ac_cv_c_bigendian=no
8440fi
8441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442fi
8443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444    fi
8445    if test $ac_cv_c_bigendian = unknown; then
8446      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8447      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448/* end confdefs.h.  */
8449#include <limits.h>
8450
8451int
8452main ()
8453{
8454#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8455	      bogus endian macros
8456	     #endif
8457
8458  ;
8459  return 0;
8460}
8461_ACEOF
8462if ac_fn_c_try_compile "$LINENO"; then :
8463  # It does; now see whether it defined to _BIG_ENDIAN or not.
8464	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465/* end confdefs.h.  */
8466#include <limits.h>
8467
8468int
8469main ()
8470{
8471#ifndef _BIG_ENDIAN
8472		 not big endian
8473		#endif
8474
8475  ;
8476  return 0;
8477}
8478_ACEOF
8479if ac_fn_c_try_compile "$LINENO"; then :
8480  ac_cv_c_bigendian=yes
8481else
8482  ac_cv_c_bigendian=no
8483fi
8484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485fi
8486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8487    fi
8488    if test $ac_cv_c_bigendian = unknown; then
8489      # Compile a test program.
8490      if test "$cross_compiling" = yes; then :
8491  # Try to guess by grepping values from an object file.
8492	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h.  */
8494short int ascii_mm[] =
8495		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8496		short int ascii_ii[] =
8497		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8498		int use_ascii (int i) {
8499		  return ascii_mm[i] + ascii_ii[i];
8500		}
8501		short int ebcdic_ii[] =
8502		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8503		short int ebcdic_mm[] =
8504		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8505		int use_ebcdic (int i) {
8506		  return ebcdic_mm[i] + ebcdic_ii[i];
8507		}
8508		extern int foo;
8509
8510int
8511main ()
8512{
8513return use_ascii (foo) == use_ebcdic (foo);
8514  ;
8515  return 0;
8516}
8517_ACEOF
8518if ac_fn_c_try_compile "$LINENO"; then :
8519  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8520	      ac_cv_c_bigendian=yes
8521	    fi
8522	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8523	      if test "$ac_cv_c_bigendian" = unknown; then
8524		ac_cv_c_bigendian=no
8525	      else
8526		# finding both strings is unlikely to happen, but who knows?
8527		ac_cv_c_bigendian=unknown
8528	      fi
8529	    fi
8530fi
8531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532else
8533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534/* end confdefs.h.  */
8535$ac_includes_default
8536int
8537main ()
8538{
8539
8540	     /* Are we little or big endian?  From Harbison&Steele.  */
8541	     union
8542	     {
8543	       long int l;
8544	       char c[sizeof (long int)];
8545	     } u;
8546	     u.l = 1;
8547	     return u.c[sizeof (long int) - 1] == 1;
8548
8549  ;
8550  return 0;
8551}
8552_ACEOF
8553if ac_fn_c_try_run "$LINENO"; then :
8554  ac_cv_c_bigendian=no
8555else
8556  ac_cv_c_bigendian=yes
8557fi
8558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8559  conftest.$ac_objext conftest.beam conftest.$ac_ext
8560fi
8561
8562    fi
8563fi
8564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8565$as_echo "$ac_cv_c_bigendian" >&6; }
8566 case $ac_cv_c_bigendian in #(
8567   yes)
8568     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8569;; #(
8570   no)
8571      ;; #(
8572   universal)
8573
8574$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8575
8576     ;; #(
8577   *)
8578     as_fn_error "unknown endianness
8579 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8580 esac
8581
8582
8583# ----------------------
8584# Checks for C++ headers
8585# ----------------------
8586
8587ac_ext=cpp
8588ac_cpp='$CXXCPP $CPPFLAGS'
8589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8593$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8594if test -z "$CXXCPP"; then
8595  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8596  $as_echo_n "(cached) " >&6
8597else
8598      # Double quotes because CXXCPP needs to be expanded
8599    for CXXCPP in "$CXX -E" "/lib/cpp"
8600    do
8601      ac_preproc_ok=false
8602for ac_cxx_preproc_warn_flag in '' yes
8603do
8604  # Use a header file that comes with gcc, so configuring glibc
8605  # with a fresh cross-compiler works.
8606  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8607  # <limits.h> exists even on freestanding compilers.
8608  # On the NeXT, cc -E runs the code through the compiler's parser,
8609  # not just through cpp. "Syntax error" is here to catch this case.
8610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h.  */
8612#ifdef __STDC__
8613# include <limits.h>
8614#else
8615# include <assert.h>
8616#endif
8617		     Syntax error
8618_ACEOF
8619if ac_fn_cxx_try_cpp "$LINENO"; then :
8620
8621else
8622  # Broken: fails on valid input.
8623continue
8624fi
8625rm -f conftest.err conftest.$ac_ext
8626
8627  # OK, works on sane cases.  Now check whether nonexistent headers
8628  # can be detected and how.
8629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630/* end confdefs.h.  */
8631#include <ac_nonexistent.h>
8632_ACEOF
8633if ac_fn_cxx_try_cpp "$LINENO"; then :
8634  # Broken: success on invalid input.
8635continue
8636else
8637  # Passes both tests.
8638ac_preproc_ok=:
8639break
8640fi
8641rm -f conftest.err conftest.$ac_ext
8642
8643done
8644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8645rm -f conftest.err conftest.$ac_ext
8646if $ac_preproc_ok; then :
8647  break
8648fi
8649
8650    done
8651    ac_cv_prog_CXXCPP=$CXXCPP
8652
8653fi
8654  CXXCPP=$ac_cv_prog_CXXCPP
8655else
8656  ac_cv_prog_CXXCPP=$CXXCPP
8657fi
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8659$as_echo "$CXXCPP" >&6; }
8660ac_preproc_ok=false
8661for ac_cxx_preproc_warn_flag in '' yes
8662do
8663  # Use a header file that comes with gcc, so configuring glibc
8664  # with a fresh cross-compiler works.
8665  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8666  # <limits.h> exists even on freestanding compilers.
8667  # On the NeXT, cc -E runs the code through the compiler's parser,
8668  # not just through cpp. "Syntax error" is here to catch this case.
8669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670/* end confdefs.h.  */
8671#ifdef __STDC__
8672# include <limits.h>
8673#else
8674# include <assert.h>
8675#endif
8676		     Syntax error
8677_ACEOF
8678if ac_fn_cxx_try_cpp "$LINENO"; then :
8679
8680else
8681  # Broken: fails on valid input.
8682continue
8683fi
8684rm -f conftest.err conftest.$ac_ext
8685
8686  # OK, works on sane cases.  Now check whether nonexistent headers
8687  # can be detected and how.
8688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690#include <ac_nonexistent.h>
8691_ACEOF
8692if ac_fn_cxx_try_cpp "$LINENO"; then :
8693  # Broken: success on invalid input.
8694continue
8695else
8696  # Passes both tests.
8697ac_preproc_ok=:
8698break
8699fi
8700rm -f conftest.err conftest.$ac_ext
8701
8702done
8703# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8704rm -f conftest.err conftest.$ac_ext
8705if $ac_preproc_ok; then :
8706
8707else
8708  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8711See \`config.log' for more details." >&5
8712$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8713See \`config.log' for more details." >&2;}; }
8714fi
8715
8716ac_ext=c
8717ac_cpp='$CPP $CPPFLAGS'
8718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8720ac_compiler_gnu=$ac_cv_c_compiler_gnu
8721
8722
8723ac_ext=cpp
8724ac_cpp='$CXXCPP $CPPFLAGS'
8725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8728
8729
8730
8731
8732for ac_header in unordered_map
8733do :
8734  ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8735if test "x$ac_cv_header_unordered_map" = x""yes; then :
8736  cat >>confdefs.h <<_ACEOF
8737#define HAVE_UNORDERED_MAP 1
8738_ACEOF
8739
8740fi
8741done
8742
8743for ac_header in tr1/unordered_map
8744do :
8745  ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8746if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8747  cat >>confdefs.h <<_ACEOF
8748#define HAVE_TR1_UNORDERED_MAP 1
8749_ACEOF
8750
8751fi
8752done
8753
8754for ac_header in ext/hash_map
8755do :
8756  ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8757if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8758  cat >>confdefs.h <<_ACEOF
8759#define HAVE_EXT_HASH_MAP 1
8760_ACEOF
8761
8762fi
8763done
8764
8765
8766ac_ext=c
8767ac_cpp='$CPP $CPPFLAGS'
8768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8770ac_compiler_gnu=$ac_cv_c_compiler_gnu
8771
8772
8773# --------
8774# Dependency checking.
8775# --------
8776
8777ac_ext=cpp
8778ac_cpp='$CXXCPP $CPPFLAGS'
8779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8782
8783rm -rf .tst 2>/dev/null
8784mkdir .tst 2>/dev/null
8785if test -d .tst; then
8786  am__leading_dot=.
8787else
8788  am__leading_dot=_
8789fi
8790rmdir .tst 2>/dev/null
8791
8792DEPDIR="${am__leading_dot}deps"
8793
8794ac_config_commands="$ac_config_commands depdir"
8795
8796
8797ac_config_commands="$ac_config_commands gccdepdir"
8798
8799
8800depcc="$CXX"  am_compiler_list=
8801
8802am_depcomp=$ac_aux_dir/depcomp
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8804$as_echo_n "checking dependency style of $depcc... " >&6; }
8805if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8806  $as_echo_n "(cached) " >&6
8807else
8808  if test -f "$am_depcomp"; then
8809  # We make a subdir and do the tests there.  Otherwise we can end up
8810  # making bogus files that we don't know about and never remove.  For
8811  # instance it was reported that on HP-UX the gcc test will end up
8812  # making a dummy file named `D' -- because `-MD' means `put the output
8813  # in D'.
8814  mkdir conftest.dir
8815  # Copy depcomp to subdir because otherwise we won't find it if we're
8816  # using a relative directory.
8817  cp "$am_depcomp" conftest.dir
8818  cd conftest.dir
8819  # We will build objects and dependencies in a subdirectory because
8820  # it helps to detect inapplicable dependency modes.  For instance
8821  # both Tru64's cc and ICC support -MD to output dependencies as a
8822  # side effect of compilation, but ICC will put the dependencies in
8823  # the current directory while Tru64 will put them in the object
8824  # directory.
8825  mkdir sub
8826
8827  am_cv_CXX_dependencies_compiler_type=none
8828  if test "$am_compiler_list" = ""; then
8829     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8830  fi
8831  for depmode in $am_compiler_list; do
8832    if test $depmode = none; then break; fi
8833
8834    $as_echo "$as_me:$LINENO: trying $depmode" >&5
8835    # Setup a source with many dependencies, because some compilers
8836    # like to wrap large dependency lists on column 80 (with \), and
8837    # we should not choose a depcomp mode which is confused by this.
8838    #
8839    # We need to recreate these files for each test, as the compiler may
8840    # overwrite some of them when testing with obscure command lines.
8841    # This happens at least with the AIX C compiler.
8842    : > sub/conftest.c
8843    for i in 1 2 3 4 5 6; do
8844      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8845      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8846      # Solaris 8's {/usr,}/bin/sh.
8847      touch sub/conftst$i.h
8848    done
8849    echo "include sub/conftest.Po" > confmf
8850
8851    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8852    # mode.  It turns out that the SunPro C++ compiler does not properly
8853    # handle `-M -o', and we need to detect this.
8854    depcmd="depmode=$depmode \
8855       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8856       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8857       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8858    echo "| $depcmd" | sed -e 's/  */ /g' >&5
8859    if env $depcmd > conftest.err 2>&1 &&
8860       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8861       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8862       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8863      # icc doesn't choke on unknown options, it will just issue warnings
8864      # or remarks (even with -Werror).  So we grep stderr for any message
8865      # that says an option was ignored or not supported.
8866      # When given -MP, icc 7.0 and 7.1 complain thusly:
8867      #   icc: Command line warning: ignoring option '-M'; no argument required
8868      # The diagnosis changed in icc 8.0:
8869      #   icc: Command line remark: option '-MP' not supported
8870      if (grep 'ignoring option' conftest.err ||
8871          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8872        am_cv_CXX_dependencies_compiler_type=$depmode
8873	$as_echo "$as_me:$LINENO: success" >&5
8874        break
8875      fi
8876    fi
8877    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8878    sed -e 's/^/| /' < conftest.err >&5
8879  done
8880
8881  cd ..
8882  rm -rf conftest.dir
8883else
8884  am_cv_CXX_dependencies_compiler_type=none
8885fi
8886
8887fi
8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8889$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8890if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8891then as_fn_error "no usable dependency style found" "$LINENO" 5
8892else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8893
8894fi
8895
8896ac_ext=c
8897ac_cpp='$CPP $CPPFLAGS'
8898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8900ac_compiler_gnu=$ac_cv_c_compiler_gnu
8901
8902
8903# --------
8904# UNSORTED
8905# --------
8906
8907
8908# These libraries may be used by collect2.
8909# We may need a special search path to get them linked.
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8911$as_echo_n "checking for collect2 libraries... " >&6; }
8912if test "${gcc_cv_collect2_libs+set}" = set; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  save_LIBS="$LIBS"
8916for libs in '' -lld -lmld \
8917		'-L/usr/lib/cmplrs/cc2.11 -lmld' \
8918		'-L/usr/lib/cmplrs/cc3.11 -lmld'
8919do
8920	LIBS="$libs"
8921	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922/* end confdefs.h.  */
8923
8924/* Override any GCC internal prototype to avoid an error.
8925   Use char because int might match the return type of a GCC
8926   builtin and then its argument prototype would still apply.  */
8927#ifdef __cplusplus
8928extern "C"
8929#endif
8930char ldopen ();
8931int
8932main ()
8933{
8934return ldopen ();
8935  ;
8936  return 0;
8937}
8938_ACEOF
8939if ac_fn_c_try_link "$LINENO"; then :
8940  gcc_cv_collect2_libs="$libs"; break
8941fi
8942rm -f core conftest.err conftest.$ac_objext \
8943    conftest$ac_exeext conftest.$ac_ext
8944done
8945LIBS="$save_LIBS"
8946test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8947fi
8948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8949$as_echo "$gcc_cv_collect2_libs" >&6; }
8950case $gcc_cv_collect2_libs in
8951	"none required")	;;
8952	*)	COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8953esac
8954
8955
8956# When building Ada code on Alpha, we need exc_resume which is usually in
8957# -lexc.  So test for it.
8958save_LIBS="$LIBS"
8959LIBS=
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8961$as_echo_n "checking for library containing exc_resume... " >&6; }
8962if test "${ac_cv_search_exc_resume+set}" = set; then :
8963  $as_echo_n "(cached) " >&6
8964else
8965  ac_func_search_save_LIBS=$LIBS
8966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967/* end confdefs.h.  */
8968
8969/* Override any GCC internal prototype to avoid an error.
8970   Use char because int might match the return type of a GCC
8971   builtin and then its argument prototype would still apply.  */
8972#ifdef __cplusplus
8973extern "C"
8974#endif
8975char exc_resume ();
8976int
8977main ()
8978{
8979return exc_resume ();
8980  ;
8981  return 0;
8982}
8983_ACEOF
8984for ac_lib in '' exc; do
8985  if test -z "$ac_lib"; then
8986    ac_res="none required"
8987  else
8988    ac_res=-l$ac_lib
8989    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8990  fi
8991  if ac_fn_c_try_link "$LINENO"; then :
8992  ac_cv_search_exc_resume=$ac_res
8993fi
8994rm -f core conftest.err conftest.$ac_objext \
8995    conftest$ac_exeext
8996  if test "${ac_cv_search_exc_resume+set}" = set; then :
8997  break
8998fi
8999done
9000if test "${ac_cv_search_exc_resume+set}" = set; then :
9001
9002else
9003  ac_cv_search_exc_resume=no
9004fi
9005rm conftest.$ac_ext
9006LIBS=$ac_func_search_save_LIBS
9007fi
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9009$as_echo "$ac_cv_search_exc_resume" >&6; }
9010ac_res=$ac_cv_search_exc_resume
9011if test "$ac_res" != no; then :
9012  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9013
9014fi
9015
9016GNAT_LIBEXC="$LIBS"
9017LIBS="$save_LIBS"
9018
9019
9020# To support -mcpu=native on Solaris/SPARC, we need libkstat.
9021save_LIBS="$LIBS"
9022LIBS=
9023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9024$as_echo_n "checking for library containing kstat_open... " >&6; }
9025if test "${ac_cv_search_kstat_open+set}" = set; then :
9026  $as_echo_n "(cached) " >&6
9027else
9028  ac_func_search_save_LIBS=$LIBS
9029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030/* end confdefs.h.  */
9031
9032/* Override any GCC internal prototype to avoid an error.
9033   Use char because int might match the return type of a GCC
9034   builtin and then its argument prototype would still apply.  */
9035#ifdef __cplusplus
9036extern "C"
9037#endif
9038char kstat_open ();
9039int
9040main ()
9041{
9042return kstat_open ();
9043  ;
9044  return 0;
9045}
9046_ACEOF
9047for ac_lib in '' kstat; do
9048  if test -z "$ac_lib"; then
9049    ac_res="none required"
9050  else
9051    ac_res=-l$ac_lib
9052    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9053  fi
9054  if ac_fn_c_try_link "$LINENO"; then :
9055  ac_cv_search_kstat_open=$ac_res
9056fi
9057rm -f core conftest.err conftest.$ac_objext \
9058    conftest$ac_exeext
9059  if test "${ac_cv_search_kstat_open+set}" = set; then :
9060  break
9061fi
9062done
9063if test "${ac_cv_search_kstat_open+set}" = set; then :
9064
9065else
9066  ac_cv_search_kstat_open=no
9067fi
9068rm conftest.$ac_ext
9069LIBS=$ac_func_search_save_LIBS
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9072$as_echo "$ac_cv_search_kstat_open" >&6; }
9073ac_res=$ac_cv_search_kstat_open
9074if test "$ac_res" != no; then :
9075  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9076
9077fi
9078
9079EXTRA_GCC_LIBS="$LIBS"
9080LIBS="$save_LIBS"
9081
9082
9083# Some systems put ldexp and frexp in libm instead of libc; assume
9084# they're both in the same place.  jcf-dump needs them.
9085save_LIBS="$LIBS"
9086LIBS=
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9088$as_echo_n "checking for library containing ldexp... " >&6; }
9089if test "${ac_cv_search_ldexp+set}" = set; then :
9090  $as_echo_n "(cached) " >&6
9091else
9092  ac_func_search_save_LIBS=$LIBS
9093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094/* end confdefs.h.  */
9095
9096/* Override any GCC internal prototype to avoid an error.
9097   Use char because int might match the return type of a GCC
9098   builtin and then its argument prototype would still apply.  */
9099#ifdef __cplusplus
9100extern "C"
9101#endif
9102char ldexp ();
9103int
9104main ()
9105{
9106return ldexp ();
9107  ;
9108  return 0;
9109}
9110_ACEOF
9111for ac_lib in '' m; do
9112  if test -z "$ac_lib"; then
9113    ac_res="none required"
9114  else
9115    ac_res=-l$ac_lib
9116    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9117  fi
9118  if ac_fn_c_try_link "$LINENO"; then :
9119  ac_cv_search_ldexp=$ac_res
9120fi
9121rm -f core conftest.err conftest.$ac_objext \
9122    conftest$ac_exeext
9123  if test "${ac_cv_search_ldexp+set}" = set; then :
9124  break
9125fi
9126done
9127if test "${ac_cv_search_ldexp+set}" = set; then :
9128
9129else
9130  ac_cv_search_ldexp=no
9131fi
9132rm conftest.$ac_ext
9133LIBS=$ac_func_search_save_LIBS
9134fi
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9136$as_echo "$ac_cv_search_ldexp" >&6; }
9137ac_res=$ac_cv_search_ldexp
9138if test "$ac_res" != no; then :
9139  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9140
9141fi
9142
9143LDEXP_LIB="$LIBS"
9144LIBS="$save_LIBS"
9145
9146
9147# Use <inttypes.h> only if it exists,
9148# doesn't clash with <sys/types.h>, and declares intmax_t.
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9150$as_echo_n "checking for inttypes.h... " >&6; }
9151if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9152  $as_echo_n "(cached) " >&6
9153else
9154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h.  */
9156#include <sys/types.h>
9157#include <inttypes.h>
9158int
9159main ()
9160{
9161intmax_t i = -1;
9162  ;
9163  return 0;
9164}
9165_ACEOF
9166if ac_fn_c_try_compile "$LINENO"; then :
9167  gcc_cv_header_inttypes_h=yes
9168else
9169  gcc_cv_header_inttypes_h=no
9170fi
9171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172fi
9173
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9175$as_echo "$gcc_cv_header_inttypes_h" >&6; }
9176if test $gcc_cv_header_inttypes_h = yes; then
9177
9178$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9179
9180fi
9181
9182
9183
9184for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9185	sysconf strsignal getrusage nl_langinfo \
9186	gettimeofday mbstowcs wcswidth mmap setlocale \
9187	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
9188do :
9189  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9190ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9191eval as_val=\$$as_ac_var
9192   if test "x$as_val" = x""yes; then :
9193  cat >>confdefs.h <<_ACEOF
9194#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9195_ACEOF
9196
9197fi
9198done
9199
9200
9201if test x$ac_cv_func_mbstowcs = xyes; then
9202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9203$as_echo_n "checking whether mbstowcs works... " >&6; }
9204if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9205  $as_echo_n "(cached) " >&6
9206else
9207      if test "$cross_compiling" = yes; then :
9208  gcc_cv_func_mbstowcs_works=yes
9209else
9210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211/* end confdefs.h.  */
9212#include <stdlib.h>
9213int main()
9214{
9215  mbstowcs(0, "", 0);
9216  return 0;
9217}
9218_ACEOF
9219if ac_fn_c_try_run "$LINENO"; then :
9220  gcc_cv_func_mbstowcs_works=yes
9221else
9222  gcc_cv_func_mbstowcs_works=no
9223fi
9224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9225  conftest.$ac_objext conftest.beam conftest.$ac_ext
9226fi
9227
9228fi
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9230$as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9231  if test x$gcc_cv_func_mbstowcs_works = xyes; then
9232
9233$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9234
9235  fi
9236fi
9237
9238ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9239if test "x$ac_cv_type_ssize_t" = x""yes; then :
9240
9241else
9242
9243cat >>confdefs.h <<_ACEOF
9244#define ssize_t int
9245_ACEOF
9246
9247fi
9248
9249ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9250if test "x$ac_cv_type_caddr_t" = x""yes; then :
9251
9252else
9253
9254cat >>confdefs.h <<_ACEOF
9255#define caddr_t char *
9256_ACEOF
9257
9258fi
9259
9260
9261
9262ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9263if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9264  gcc_header_sys_mman_h=yes
9265else
9266  gcc_header_sys_mman_h=no
9267fi
9268
9269ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9270if test "x$ac_cv_func_mmap" = x""yes; then :
9271  gcc_func_mmap=yes
9272else
9273  gcc_func_mmap=no
9274fi
9275
9276if test "$gcc_header_sys_mman_h" != yes \
9277 || test "$gcc_func_mmap" != yes; then
9278   gcc_cv_func_mmap_file=no
9279   gcc_cv_func_mmap_dev_zero=no
9280   gcc_cv_func_mmap_anon=no
9281else
9282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9283$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9284if test "${gcc_cv_func_mmap_file+set}" = set; then :
9285  $as_echo_n "(cached) " >&6
9286else
9287  # Add a system to this blacklist if
9288   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9289   # memory area containing the same data that you'd get if you applied
9290   # read() to the same fd.  The only system known to have a problem here
9291   # is VMS, where text files have record structure.
9292   case "$host_os" in
9293     *vms* | ultrix*)
9294        gcc_cv_func_mmap_file=no ;;
9295     *)
9296        gcc_cv_func_mmap_file=yes;;
9297   esac
9298fi
9299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9300$as_echo "$gcc_cv_func_mmap_file" >&6; }
9301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9302$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9303if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9304  $as_echo_n "(cached) " >&6
9305else
9306  # Add a system to this blacklist if it has mmap() but /dev/zero
9307   # does not exist, or if mmapping /dev/zero does not give anonymous
9308   # zeroed pages with both the following properties:
9309   # 1. If you map N consecutive pages in with one call, and then
9310   #    unmap any subset of those pages, the pages that were not
9311   #    explicitly unmapped remain accessible.
9312   # 2. If you map two adjacent blocks of memory and then unmap them
9313   #    both at once, they must both go away.
9314   # Systems known to be in this category are Windows (all variants),
9315   # VMS, and Darwin.
9316   case "$host_os" in
9317     *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9318        gcc_cv_func_mmap_dev_zero=no ;;
9319     *)
9320        gcc_cv_func_mmap_dev_zero=yes;;
9321   esac
9322fi
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9324$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9325
9326   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9328$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9329if test "${gcc_cv_decl_map_anon+set}" = set; then :
9330  $as_echo_n "(cached) " >&6
9331else
9332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h.  */
9334#include <sys/types.h>
9335#include <sys/mman.h>
9336#include <unistd.h>
9337
9338#ifndef MAP_ANONYMOUS
9339#define MAP_ANONYMOUS MAP_ANON
9340#endif
9341
9342int
9343main ()
9344{
9345int n = MAP_ANONYMOUS;
9346  ;
9347  return 0;
9348}
9349_ACEOF
9350if ac_fn_c_try_compile "$LINENO"; then :
9351  gcc_cv_decl_map_anon=yes
9352else
9353  gcc_cv_decl_map_anon=no
9354fi
9355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356fi
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9358$as_echo "$gcc_cv_decl_map_anon" >&6; }
9359
9360   if test $gcc_cv_decl_map_anon = no; then
9361     gcc_cv_func_mmap_anon=no
9362   else
9363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9364$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9365if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9366  $as_echo_n "(cached) " >&6
9367else
9368  # Add a system to this blacklist if it has mmap() and MAP_ANON or
9369   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9370   # doesn't give anonymous zeroed pages with the same properties listed
9371   # above for use of /dev/zero.
9372   # Systems known to be in this category are Windows, VMS, and SCO Unix.
9373   case "$host_os" in
9374     *vms* | cygwin* | pe | mingw* | sco* | udk* )
9375        gcc_cv_func_mmap_anon=no ;;
9376     *)
9377        gcc_cv_func_mmap_anon=yes;;
9378   esac
9379fi
9380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9381$as_echo "$gcc_cv_func_mmap_anon" >&6; }
9382   fi
9383fi
9384
9385if test $gcc_cv_func_mmap_file = yes; then
9386
9387$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9388
9389fi
9390if test $gcc_cv_func_mmap_dev_zero = yes; then
9391
9392$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9393
9394fi
9395if test $gcc_cv_func_mmap_anon = yes; then
9396
9397$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9398
9399fi
9400
9401
9402case "${host}" in
9403*-*-*vms*)
9404  # Under VMS, vfork works very differently than on Unix. The standard test
9405  # won't work, and it isn't easily adaptable. It makes more sense to
9406  # just force it.
9407  ac_cv_func_vfork_works=yes
9408  ;;
9409esac
9410ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9411if test "x$ac_cv_type_pid_t" = x""yes; then :
9412
9413else
9414
9415cat >>confdefs.h <<_ACEOF
9416#define pid_t int
9417_ACEOF
9418
9419fi
9420
9421for ac_header in vfork.h
9422do :
9423  ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9424if test "x$ac_cv_header_vfork_h" = x""yes; then :
9425  cat >>confdefs.h <<_ACEOF
9426#define HAVE_VFORK_H 1
9427_ACEOF
9428
9429fi
9430done
9431
9432for ac_func in fork vfork
9433do :
9434  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9435ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9436eval as_val=\$$as_ac_var
9437   if test "x$as_val" = x""yes; then :
9438  cat >>confdefs.h <<_ACEOF
9439#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9440_ACEOF
9441
9442fi
9443done
9444
9445if test "x$ac_cv_func_fork" = xyes; then
9446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9447$as_echo_n "checking for working fork... " >&6; }
9448if test "${ac_cv_func_fork_works+set}" = set; then :
9449  $as_echo_n "(cached) " >&6
9450else
9451  if test "$cross_compiling" = yes; then :
9452  ac_cv_func_fork_works=cross
9453else
9454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h.  */
9456$ac_includes_default
9457int
9458main ()
9459{
9460
9461	  /* By Ruediger Kuhlmann. */
9462	  return fork () < 0;
9463
9464  ;
9465  return 0;
9466}
9467_ACEOF
9468if ac_fn_c_try_run "$LINENO"; then :
9469  ac_cv_func_fork_works=yes
9470else
9471  ac_cv_func_fork_works=no
9472fi
9473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9474  conftest.$ac_objext conftest.beam conftest.$ac_ext
9475fi
9476
9477fi
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9479$as_echo "$ac_cv_func_fork_works" >&6; }
9480
9481else
9482  ac_cv_func_fork_works=$ac_cv_func_fork
9483fi
9484if test "x$ac_cv_func_fork_works" = xcross; then
9485  case $host in
9486    *-*-amigaos* | *-*-msdosdjgpp*)
9487      # Override, as these systems have only a dummy fork() stub
9488      ac_cv_func_fork_works=no
9489      ;;
9490    *)
9491      ac_cv_func_fork_works=yes
9492      ;;
9493  esac
9494  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9495$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9496fi
9497ac_cv_func_vfork_works=$ac_cv_func_vfork
9498if test "x$ac_cv_func_vfork" = xyes; then
9499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9500$as_echo_n "checking for working vfork... " >&6; }
9501if test "${ac_cv_func_vfork_works+set}" = set; then :
9502  $as_echo_n "(cached) " >&6
9503else
9504  if test "$cross_compiling" = yes; then :
9505  ac_cv_func_vfork_works=cross
9506else
9507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h.  */
9509/* Thanks to Paul Eggert for this test.  */
9510$ac_includes_default
9511#include <sys/wait.h>
9512#ifdef HAVE_VFORK_H
9513# include <vfork.h>
9514#endif
9515/* On some sparc systems, changes by the child to local and incoming
9516   argument registers are propagated back to the parent.  The compiler
9517   is told about this with #include <vfork.h>, but some compilers
9518   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9519   static variable whose address is put into a register that is
9520   clobbered by the vfork.  */
9521static void
9522#ifdef __cplusplus
9523sparc_address_test (int arg)
9524# else
9525sparc_address_test (arg) int arg;
9526#endif
9527{
9528  static pid_t child;
9529  if (!child) {
9530    child = vfork ();
9531    if (child < 0) {
9532      perror ("vfork");
9533      _exit(2);
9534    }
9535    if (!child) {
9536      arg = getpid();
9537      write(-1, "", 0);
9538      _exit (arg);
9539    }
9540  }
9541}
9542
9543int
9544main ()
9545{
9546  pid_t parent = getpid ();
9547  pid_t child;
9548
9549  sparc_address_test (0);
9550
9551  child = vfork ();
9552
9553  if (child == 0) {
9554    /* Here is another test for sparc vfork register problems.  This
9555       test uses lots of local variables, at least as many local
9556       variables as main has allocated so far including compiler
9557       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9558       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9559       reuse the register of parent for one of the local variables,
9560       since it will think that parent can't possibly be used any more
9561       in this routine.  Assigning to the local variable will thus
9562       munge parent in the parent process.  */
9563    pid_t
9564      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9565      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9566    /* Convince the compiler that p..p7 are live; otherwise, it might
9567       use the same hardware register for all 8 local variables.  */
9568    if (p != p1 || p != p2 || p != p3 || p != p4
9569	|| p != p5 || p != p6 || p != p7)
9570      _exit(1);
9571
9572    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9573       from child file descriptors.  If the child closes a descriptor
9574       before it execs or exits, this munges the parent's descriptor
9575       as well.  Test for this by closing stdout in the child.  */
9576    _exit(close(fileno(stdout)) != 0);
9577  } else {
9578    int status;
9579    struct stat st;
9580
9581    while (wait(&status) != child)
9582      ;
9583    return (
9584	 /* Was there some problem with vforking?  */
9585	 child < 0
9586
9587	 /* Did the child fail?  (This shouldn't happen.)  */
9588	 || status
9589
9590	 /* Did the vfork/compiler bug occur?  */
9591	 || parent != getpid()
9592
9593	 /* Did the file descriptor bug occur?  */
9594	 || fstat(fileno(stdout), &st) != 0
9595	 );
9596  }
9597}
9598_ACEOF
9599if ac_fn_c_try_run "$LINENO"; then :
9600  ac_cv_func_vfork_works=yes
9601else
9602  ac_cv_func_vfork_works=no
9603fi
9604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9605  conftest.$ac_objext conftest.beam conftest.$ac_ext
9606fi
9607
9608fi
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9610$as_echo "$ac_cv_func_vfork_works" >&6; }
9611
9612fi;
9613if test "x$ac_cv_func_fork_works" = xcross; then
9614  ac_cv_func_vfork_works=$ac_cv_func_vfork
9615  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9616$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9617fi
9618
9619if test "x$ac_cv_func_vfork_works" = xyes; then
9620
9621$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9622
9623else
9624
9625$as_echo "#define vfork fork" >>confdefs.h
9626
9627fi
9628if test "x$ac_cv_func_fork_works" = xyes; then
9629
9630$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9631
9632fi
9633
9634
9635# g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9636# iconv() prototype.
9637ac_ext=cpp
9638ac_cpp='$CXXCPP $CPPFLAGS'
9639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9642
9643
9644      if test "X$prefix" = "XNONE"; then
9645    acl_final_prefix="$ac_default_prefix"
9646  else
9647    acl_final_prefix="$prefix"
9648  fi
9649  if test "X$exec_prefix" = "XNONE"; then
9650    acl_final_exec_prefix='${prefix}'
9651  else
9652    acl_final_exec_prefix="$exec_prefix"
9653  fi
9654  acl_save_prefix="$prefix"
9655  prefix="$acl_final_prefix"
9656  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9657  prefix="$acl_save_prefix"
9658
9659
9660# Check whether --with-gnu-ld was given.
9661if test "${with_gnu_ld+set}" = set; then :
9662  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9663else
9664  with_gnu_ld=no
9665fi
9666
9667# Prepare PATH_SEPARATOR.
9668# The user is always right.
9669if test "${PATH_SEPARATOR+set}" != set; then
9670  echo "#! /bin/sh" >conf$$.sh
9671  echo  "exit 0"   >>conf$$.sh
9672  chmod +x conf$$.sh
9673  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9674    PATH_SEPARATOR=';'
9675  else
9676    PATH_SEPARATOR=:
9677  fi
9678  rm -f conf$$.sh
9679fi
9680ac_prog=ld
9681if test "$GCC" = yes; then
9682  # Check if gcc -print-prog-name=ld gives a path.
9683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9684$as_echo_n "checking for ld used by GCC... " >&6; }
9685  case $host in
9686  *-*-mingw*)
9687    # gcc leaves a trailing carriage return which upsets mingw
9688    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9689  *)
9690    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9691  esac
9692  case $ac_prog in
9693    # Accept absolute paths.
9694    [\\/]* | [A-Za-z]:[\\/]*)
9695      re_direlt='/[^/][^/]*/\.\./'
9696      # Canonicalize the path of ld
9697      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9698      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9699	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9700      done
9701      test -z "$LD" && LD="$ac_prog"
9702      ;;
9703  "")
9704    # If it fails, then pretend we aren't using GCC.
9705    ac_prog=ld
9706    ;;
9707  *)
9708    # If it is relative, then search for the first ld in PATH.
9709    with_gnu_ld=unknown
9710    ;;
9711  esac
9712elif test "$with_gnu_ld" = yes; then
9713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9714$as_echo_n "checking for GNU ld... " >&6; }
9715else
9716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9717$as_echo_n "checking for non-GNU ld... " >&6; }
9718fi
9719if test "${acl_cv_path_LD+set}" = set; then :
9720  $as_echo_n "(cached) " >&6
9721else
9722  if test -z "$LD"; then
9723  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9724  for ac_dir in $PATH; do
9725    test -z "$ac_dir" && ac_dir=.
9726    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9727      acl_cv_path_LD="$ac_dir/$ac_prog"
9728      # Check to see if the program is GNU ld.  I'd rather use --version,
9729      # but apparently some GNU ld's only accept -v.
9730      # Break only if it was the GNU/non-GNU ld that we prefer.
9731      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9732	test "$with_gnu_ld" != no && break
9733      else
9734	test "$with_gnu_ld" != yes && break
9735      fi
9736    fi
9737  done
9738  IFS="$ac_save_ifs"
9739else
9740  acl_cv_path_LD="$LD" # Let the user override the test with a path.
9741fi
9742fi
9743
9744LD="$acl_cv_path_LD"
9745if test -n "$LD"; then
9746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9747$as_echo "$LD" >&6; }
9748else
9749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750$as_echo "no" >&6; }
9751fi
9752test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9754$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9755if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9756  $as_echo_n "(cached) " >&6
9757else
9758  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9759if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9760  acl_cv_prog_gnu_ld=yes
9761else
9762  acl_cv_prog_gnu_ld=no
9763fi
9764fi
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9766$as_echo "$acl_cv_prog_gnu_ld" >&6; }
9767with_gnu_ld=$acl_cv_prog_gnu_ld
9768
9769
9770
9771                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9772$as_echo_n "checking for shared library run path origin... " >&6; }
9773if test "${acl_cv_rpath+set}" = set; then :
9774  $as_echo_n "(cached) " >&6
9775else
9776
9777    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9778    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9779    . ./conftest.sh
9780    rm -f ./conftest.sh
9781    acl_cv_rpath=done
9782
9783fi
9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9785$as_echo "$acl_cv_rpath" >&6; }
9786  wl="$acl_cv_wl"
9787  libext="$acl_cv_libext"
9788  shlibext="$acl_cv_shlibext"
9789  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9790  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9791  hardcode_direct="$acl_cv_hardcode_direct"
9792  hardcode_minus_L="$acl_cv_hardcode_minus_L"
9793    # Check whether --enable-rpath was given.
9794if test "${enable_rpath+set}" = set; then :
9795  enableval=$enable_rpath; :
9796else
9797  enable_rpath=yes
9798fi
9799
9800
9801
9802
9803
9804
9805
9806
9807    use_additional=yes
9808
9809  acl_save_prefix="$prefix"
9810  prefix="$acl_final_prefix"
9811  acl_save_exec_prefix="$exec_prefix"
9812  exec_prefix="$acl_final_exec_prefix"
9813
9814    eval additional_includedir=\"$includedir\"
9815    eval additional_libdir=\"$libdir\"
9816
9817  exec_prefix="$acl_save_exec_prefix"
9818  prefix="$acl_save_prefix"
9819
9820
9821# Check whether --with-libiconv-prefix was given.
9822if test "${with_libiconv_prefix+set}" = set; then :
9823  withval=$with_libiconv_prefix;
9824    if test "X$withval" = "Xno"; then
9825      use_additional=no
9826    else
9827      if test "X$withval" = "X"; then
9828
9829  acl_save_prefix="$prefix"
9830  prefix="$acl_final_prefix"
9831  acl_save_exec_prefix="$exec_prefix"
9832  exec_prefix="$acl_final_exec_prefix"
9833
9834          eval additional_includedir=\"$includedir\"
9835          eval additional_libdir=\"$libdir\"
9836
9837  exec_prefix="$acl_save_exec_prefix"
9838  prefix="$acl_save_prefix"
9839
9840      else
9841        additional_includedir="$withval/include"
9842        additional_libdir="$withval/lib"
9843      fi
9844    fi
9845
9846fi
9847
9848      LIBICONV=
9849  LTLIBICONV=
9850  INCICONV=
9851  rpathdirs=
9852  ltrpathdirs=
9853  names_already_handled=
9854  names_next_round='iconv '
9855  while test -n "$names_next_round"; do
9856    names_this_round="$names_next_round"
9857    names_next_round=
9858    for name in $names_this_round; do
9859      already_handled=
9860      for n in $names_already_handled; do
9861        if test "$n" = "$name"; then
9862          already_handled=yes
9863          break
9864        fi
9865      done
9866      if test -z "$already_handled"; then
9867        names_already_handled="$names_already_handled $name"
9868                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9869        eval value=\"\$HAVE_LIB$uppername\"
9870        if test -n "$value"; then
9871          if test "$value" = yes; then
9872            eval value=\"\$LIB$uppername\"
9873            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9874            eval value=\"\$LTLIB$uppername\"
9875            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9876          else
9877                                    :
9878          fi
9879        else
9880                              found_dir=
9881          found_la=
9882          found_so=
9883          found_a=
9884          if test $use_additional = yes; then
9885            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9886              found_dir="$additional_libdir"
9887              found_so="$additional_libdir/lib$name.$shlibext"
9888              if test -f "$additional_libdir/lib$name.la"; then
9889                found_la="$additional_libdir/lib$name.la"
9890              fi
9891            else
9892              if test -f "$additional_libdir/lib$name.$libext"; then
9893                found_dir="$additional_libdir"
9894                found_a="$additional_libdir/lib$name.$libext"
9895                if test -f "$additional_libdir/lib$name.la"; then
9896                  found_la="$additional_libdir/lib$name.la"
9897                fi
9898              fi
9899            fi
9900          fi
9901          if test "X$found_dir" = "X"; then
9902            for x in $LDFLAGS $LTLIBICONV; do
9903
9904  acl_save_prefix="$prefix"
9905  prefix="$acl_final_prefix"
9906  acl_save_exec_prefix="$exec_prefix"
9907  exec_prefix="$acl_final_exec_prefix"
9908  eval x=\"$x\"
9909  exec_prefix="$acl_save_exec_prefix"
9910  prefix="$acl_save_prefix"
9911
9912              case "$x" in
9913                -L*)
9914                  dir=`echo "X$x" | sed -e 's/^X-L//'`
9915                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9916                    found_dir="$dir"
9917                    found_so="$dir/lib$name.$shlibext"
9918                    if test -f "$dir/lib$name.la"; then
9919                      found_la="$dir/lib$name.la"
9920                    fi
9921                  else
9922                    if test -f "$dir/lib$name.$libext"; then
9923                      found_dir="$dir"
9924                      found_a="$dir/lib$name.$libext"
9925                      if test -f "$dir/lib$name.la"; then
9926                        found_la="$dir/lib$name.la"
9927                      fi
9928                    fi
9929                  fi
9930                  ;;
9931              esac
9932              if test "X$found_dir" != "X"; then
9933                break
9934              fi
9935            done
9936          fi
9937          if test "X$found_dir" != "X"; then
9938                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9939            if test "X$found_so" != "X"; then
9940                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9941                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9942              else
9943                                                                                haveit=
9944                for x in $ltrpathdirs; do
9945                  if test "X$x" = "X$found_dir"; then
9946                    haveit=yes
9947                    break
9948                  fi
9949                done
9950                if test -z "$haveit"; then
9951                  ltrpathdirs="$ltrpathdirs $found_dir"
9952                fi
9953                                if test "$hardcode_direct" = yes; then
9954                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9955                else
9956                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9957                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9958                                                            haveit=
9959                    for x in $rpathdirs; do
9960                      if test "X$x" = "X$found_dir"; then
9961                        haveit=yes
9962                        break
9963                      fi
9964                    done
9965                    if test -z "$haveit"; then
9966                      rpathdirs="$rpathdirs $found_dir"
9967                    fi
9968                  else
9969                                                                                haveit=
9970                    for x in $LDFLAGS $LIBICONV; do
9971
9972  acl_save_prefix="$prefix"
9973  prefix="$acl_final_prefix"
9974  acl_save_exec_prefix="$exec_prefix"
9975  exec_prefix="$acl_final_exec_prefix"
9976  eval x=\"$x\"
9977  exec_prefix="$acl_save_exec_prefix"
9978  prefix="$acl_save_prefix"
9979
9980                      if test "X$x" = "X-L$found_dir"; then
9981                        haveit=yes
9982                        break
9983                      fi
9984                    done
9985                    if test -z "$haveit"; then
9986                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9987                    fi
9988                    if test "$hardcode_minus_L" != no; then
9989                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9990                    else
9991                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9992                    fi
9993                  fi
9994                fi
9995              fi
9996            else
9997              if test "X$found_a" != "X"; then
9998                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9999              else
10000                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10001              fi
10002            fi
10003                        additional_includedir=
10004            case "$found_dir" in
10005              */lib | */lib/)
10006                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10007                additional_includedir="$basedir/include"
10008                ;;
10009            esac
10010            if test "X$additional_includedir" != "X"; then
10011                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10012                haveit=
10013                if test "X$additional_includedir" = "X/usr/local/include"; then
10014                  if test -n "$GCC"; then
10015                    case $host_os in
10016                      linux*) haveit=yes;;
10017                    esac
10018                  fi
10019                fi
10020                if test -z "$haveit"; then
10021                  for x in $CPPFLAGS $INCICONV; do
10022
10023  acl_save_prefix="$prefix"
10024  prefix="$acl_final_prefix"
10025  acl_save_exec_prefix="$exec_prefix"
10026  exec_prefix="$acl_final_exec_prefix"
10027  eval x=\"$x\"
10028  exec_prefix="$acl_save_exec_prefix"
10029  prefix="$acl_save_prefix"
10030
10031                    if test "X$x" = "X-I$additional_includedir"; then
10032                      haveit=yes
10033                      break
10034                    fi
10035                  done
10036                  if test -z "$haveit"; then
10037                    if test -d "$additional_includedir"; then
10038                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10039                    fi
10040                  fi
10041                fi
10042              fi
10043            fi
10044                        if test -n "$found_la"; then
10045                                                        save_libdir="$libdir"
10046              case "$found_la" in
10047                */* | *\\*) . "$found_la" ;;
10048                *) . "./$found_la" ;;
10049              esac
10050              libdir="$save_libdir"
10051                            for dep in $dependency_libs; do
10052                case "$dep" in
10053                  -L*)
10054                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10055                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
10056                      haveit=
10057                      if test "X$additional_libdir" = "X/usr/local/lib"; then
10058                        if test -n "$GCC"; then
10059                          case $host_os in
10060                            linux*) haveit=yes;;
10061                          esac
10062                        fi
10063                      fi
10064                      if test -z "$haveit"; then
10065                        haveit=
10066                        for x in $LDFLAGS $LIBICONV; do
10067
10068  acl_save_prefix="$prefix"
10069  prefix="$acl_final_prefix"
10070  acl_save_exec_prefix="$exec_prefix"
10071  exec_prefix="$acl_final_exec_prefix"
10072  eval x=\"$x\"
10073  exec_prefix="$acl_save_exec_prefix"
10074  prefix="$acl_save_prefix"
10075
10076                          if test "X$x" = "X-L$additional_libdir"; then
10077                            haveit=yes
10078                            break
10079                          fi
10080                        done
10081                        if test -z "$haveit"; then
10082                          if test -d "$additional_libdir"; then
10083                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10084                          fi
10085                        fi
10086                        haveit=
10087                        for x in $LDFLAGS $LTLIBICONV; do
10088
10089  acl_save_prefix="$prefix"
10090  prefix="$acl_final_prefix"
10091  acl_save_exec_prefix="$exec_prefix"
10092  exec_prefix="$acl_final_exec_prefix"
10093  eval x=\"$x\"
10094  exec_prefix="$acl_save_exec_prefix"
10095  prefix="$acl_save_prefix"
10096
10097                          if test "X$x" = "X-L$additional_libdir"; then
10098                            haveit=yes
10099                            break
10100                          fi
10101                        done
10102                        if test -z "$haveit"; then
10103                          if test -d "$additional_libdir"; then
10104                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10105                          fi
10106                        fi
10107                      fi
10108                    fi
10109                    ;;
10110                  -R*)
10111                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10112                    if test "$enable_rpath" != no; then
10113                                                                  haveit=
10114                      for x in $rpathdirs; do
10115                        if test "X$x" = "X$dir"; then
10116                          haveit=yes
10117                          break
10118                        fi
10119                      done
10120                      if test -z "$haveit"; then
10121                        rpathdirs="$rpathdirs $dir"
10122                      fi
10123                                                                  haveit=
10124                      for x in $ltrpathdirs; do
10125                        if test "X$x" = "X$dir"; then
10126                          haveit=yes
10127                          break
10128                        fi
10129                      done
10130                      if test -z "$haveit"; then
10131                        ltrpathdirs="$ltrpathdirs $dir"
10132                      fi
10133                    fi
10134                    ;;
10135                  -l*)
10136                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10137                    ;;
10138                  *.la)
10139                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10140                    ;;
10141                  *)
10142                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10143                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10144                    ;;
10145                esac
10146              done
10147            fi
10148          else
10149                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10150            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10151          fi
10152        fi
10153      fi
10154    done
10155  done
10156  if test "X$rpathdirs" != "X"; then
10157    if test -n "$hardcode_libdir_separator"; then
10158                        alldirs=
10159      for found_dir in $rpathdirs; do
10160        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10161      done
10162            acl_save_libdir="$libdir"
10163      libdir="$alldirs"
10164      eval flag=\"$hardcode_libdir_flag_spec\"
10165      libdir="$acl_save_libdir"
10166      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10167    else
10168            for found_dir in $rpathdirs; do
10169        acl_save_libdir="$libdir"
10170        libdir="$found_dir"
10171        eval flag=\"$hardcode_libdir_flag_spec\"
10172        libdir="$acl_save_libdir"
10173        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10174      done
10175    fi
10176  fi
10177  if test "X$ltrpathdirs" != "X"; then
10178            for found_dir in $ltrpathdirs; do
10179      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10180    done
10181  fi
10182
10183
10184
10185
10186
10187
10188
10189          am_save_CPPFLAGS="$CPPFLAGS"
10190
10191  for element in $INCICONV; do
10192    haveit=
10193    for x in $CPPFLAGS; do
10194
10195  acl_save_prefix="$prefix"
10196  prefix="$acl_final_prefix"
10197  acl_save_exec_prefix="$exec_prefix"
10198  exec_prefix="$acl_final_exec_prefix"
10199  eval x=\"$x\"
10200  exec_prefix="$acl_save_exec_prefix"
10201  prefix="$acl_save_prefix"
10202
10203      if test "X$x" = "X$element"; then
10204        haveit=yes
10205        break
10206      fi
10207    done
10208    if test -z "$haveit"; then
10209      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10210    fi
10211  done
10212
10213
10214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10215$as_echo_n "checking for iconv... " >&6; }
10216if test "${am_cv_func_iconv+set}" = set; then :
10217  $as_echo_n "(cached) " >&6
10218else
10219
10220    am_cv_func_iconv="no, consider installing GNU libiconv"
10221    am_cv_lib_iconv=no
10222    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223/* end confdefs.h.  */
10224#include <stdlib.h>
10225#include <iconv.h>
10226int
10227main ()
10228{
10229iconv_t cd = iconv_open("","");
10230       iconv(cd,NULL,NULL,NULL,NULL);
10231       iconv_close(cd);
10232  ;
10233  return 0;
10234}
10235_ACEOF
10236if ac_fn_cxx_try_link "$LINENO"; then :
10237  am_cv_func_iconv=yes
10238fi
10239rm -f core conftest.err conftest.$ac_objext \
10240    conftest$ac_exeext conftest.$ac_ext
10241    if test "$am_cv_func_iconv" != yes; then
10242      am_save_LIBS="$LIBS"
10243      LIBS="$LIBS $LIBICONV"
10244      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245/* end confdefs.h.  */
10246#include <stdlib.h>
10247#include <iconv.h>
10248int
10249main ()
10250{
10251iconv_t cd = iconv_open("","");
10252         iconv(cd,NULL,NULL,NULL,NULL);
10253         iconv_close(cd);
10254  ;
10255  return 0;
10256}
10257_ACEOF
10258if ac_fn_cxx_try_link "$LINENO"; then :
10259  am_cv_lib_iconv=yes
10260        am_cv_func_iconv=yes
10261fi
10262rm -f core conftest.err conftest.$ac_objext \
10263    conftest$ac_exeext conftest.$ac_ext
10264      LIBS="$am_save_LIBS"
10265    fi
10266
10267fi
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10269$as_echo "$am_cv_func_iconv" >&6; }
10270  if test "$am_cv_func_iconv" = yes; then
10271
10272$as_echo "#define HAVE_ICONV 1" >>confdefs.h
10273
10274  fi
10275  if test "$am_cv_lib_iconv" = yes; then
10276    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10277$as_echo_n "checking how to link with libiconv... " >&6; }
10278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10279$as_echo "$LIBICONV" >&6; }
10280  else
10281            CPPFLAGS="$am_save_CPPFLAGS"
10282    LIBICONV=
10283    LTLIBICONV=
10284  fi
10285
10286
10287
10288  if test "$am_cv_func_iconv" = yes; then
10289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10290$as_echo_n "checking for iconv declaration... " >&6; }
10291    if test "${am_cv_proto_iconv+set}" = set; then :
10292  $as_echo_n "(cached) " >&6
10293else
10294
10295      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296/* end confdefs.h.  */
10297
10298#include <stdlib.h>
10299#include <iconv.h>
10300extern
10301#ifdef __cplusplus
10302"C"
10303#endif
10304#if defined(__STDC__) || defined(__cplusplus)
10305size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10306#else
10307size_t iconv();
10308#endif
10309
10310int
10311main ()
10312{
10313
10314  ;
10315  return 0;
10316}
10317_ACEOF
10318if ac_fn_cxx_try_compile "$LINENO"; then :
10319  am_cv_proto_iconv_arg1=""
10320else
10321  am_cv_proto_iconv_arg1="const"
10322fi
10323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324      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);"
10325fi
10326
10327    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10328    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10329         }$am_cv_proto_iconv" >&5
10330$as_echo "${ac_t:-
10331         }$am_cv_proto_iconv" >&6; }
10332
10333cat >>confdefs.h <<_ACEOF
10334#define ICONV_CONST $am_cv_proto_iconv_arg1
10335_ACEOF
10336
10337  fi
10338
10339ac_ext=c
10340ac_cpp='$CPP $CPPFLAGS'
10341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10343ac_compiler_gnu=$ac_cv_c_compiler_gnu
10344
10345
10346# Until we have in-tree GNU iconv:
10347LIBICONV_DEP=
10348
10349
10350
10351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10352$as_echo_n "checking for LC_MESSAGES... " >&6; }
10353if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10354  $as_echo_n "(cached) " >&6
10355else
10356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357/* end confdefs.h.  */
10358#include <locale.h>
10359int
10360main ()
10361{
10362return LC_MESSAGES
10363  ;
10364  return 0;
10365}
10366_ACEOF
10367if ac_fn_c_try_link "$LINENO"; then :
10368  am_cv_val_LC_MESSAGES=yes
10369else
10370  am_cv_val_LC_MESSAGES=no
10371fi
10372rm -f core conftest.err conftest.$ac_objext \
10373    conftest$ac_exeext conftest.$ac_ext
10374fi
10375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10376$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10377  if test $am_cv_val_LC_MESSAGES = yes; then
10378
10379$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10380
10381  fi
10382
10383
10384
10385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10386$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10387if test "${am_cv_langinfo_codeset+set}" = set; then :
10388  $as_echo_n "(cached) " >&6
10389else
10390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391/* end confdefs.h.  */
10392#include <langinfo.h>
10393int
10394main ()
10395{
10396char* cs = nl_langinfo(CODESET);
10397  ;
10398  return 0;
10399}
10400_ACEOF
10401if ac_fn_c_try_link "$LINENO"; then :
10402  am_cv_langinfo_codeset=yes
10403else
10404  am_cv_langinfo_codeset=no
10405fi
10406rm -f core conftest.err conftest.$ac_objext \
10407    conftest$ac_exeext conftest.$ac_ext
10408
10409fi
10410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10411$as_echo "$am_cv_langinfo_codeset" >&6; }
10412  if test $am_cv_langinfo_codeset = yes; then
10413
10414$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10415
10416  fi
10417
10418
10419# We will need to find libiberty.h and ansidecl.h
10420saved_CFLAGS="$CFLAGS"
10421CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10422saved_CXXFLAGS="$CXXFLAGS"
10423CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10424for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10425	strsignal strstr stpcpy strverscmp \
10426	errno snprintf vsnprintf vasprintf malloc realloc calloc \
10427	free basename 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
10428do
10429  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10431$as_echo_n "checking whether $ac_func is declared... " >&6; }
10432if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10433  $as_echo_n "(cached) " >&6
10434else
10435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h.  */
10437#undef $ac_tr_decl
10438#define $ac_tr_decl 1
10439
10440#include "ansidecl.h"
10441#include "system.h"
10442
10443int
10444main ()
10445{
10446#ifndef $ac_func
10447char *(*pfn) = (char *(*)) $ac_func ;
10448#endif
10449  ;
10450  return 0;
10451}
10452_ACEOF
10453if ac_fn_c_try_compile "$LINENO"; then :
10454  eval "gcc_cv_have_decl_$ac_func=yes"
10455else
10456  eval "gcc_cv_have_decl_$ac_func=no"
10457fi
10458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459fi
10460
10461if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10463$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10464#define $ac_tr_decl 1
10465_ACEOF
10466
10467else
10468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10470#define $ac_tr_decl 0
10471_ACEOF
10472
10473fi
10474
10475done
10476
10477
10478for ac_func in getrlimit setrlimit getrusage
10479do
10480  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10482$as_echo_n "checking whether $ac_func is declared... " >&6; }
10483if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10484  $as_echo_n "(cached) " >&6
10485else
10486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487/* end confdefs.h.  */
10488#undef $ac_tr_decl
10489#define $ac_tr_decl 1
10490
10491#include "ansidecl.h"
10492#include "system.h"
10493#ifdef HAVE_SYS_RESOURCE_H
10494#include <sys/resource.h>
10495#endif
10496
10497
10498int
10499main ()
10500{
10501#ifndef $ac_func
10502char *(*pfn) = (char *(*)) $ac_func ;
10503#endif
10504  ;
10505  return 0;
10506}
10507_ACEOF
10508if ac_fn_c_try_compile "$LINENO"; then :
10509  eval "gcc_cv_have_decl_$ac_func=yes"
10510else
10511  eval "gcc_cv_have_decl_$ac_func=no"
10512fi
10513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514fi
10515
10516if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10518$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10519#define $ac_tr_decl 1
10520_ACEOF
10521
10522else
10523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10525#define $ac_tr_decl 0
10526_ACEOF
10527
10528fi
10529
10530done
10531
10532
10533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534/* end confdefs.h.  */
10535
10536#include "ansidecl.h"
10537#include "system.h"
10538#ifdef HAVE_SYS_RESOURCE_H
10539#include <sys/resource.h>
10540#endif
10541
10542int
10543main ()
10544{
10545rlim_t l = 0;
10546  ;
10547  return 0;
10548}
10549_ACEOF
10550if ac_fn_c_try_compile "$LINENO"; then :
10551
10552else
10553
10554$as_echo "#define rlim_t long" >>confdefs.h
10555
10556fi
10557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10558
10559# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10560# FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10561# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10562# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10563for ac_func in ldgetname
10564do
10565  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10567$as_echo_n "checking whether $ac_func is declared... " >&6; }
10568if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10569  $as_echo_n "(cached) " >&6
10570else
10571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572/* end confdefs.h.  */
10573#undef $ac_tr_decl
10574#define $ac_tr_decl 1
10575
10576#include "ansidecl.h"
10577#include "system.h"
10578#ifdef HAVE_LDFCN_H
10579#undef FREAD
10580#undef FWRITE
10581#include <ldfcn.h>
10582#endif
10583
10584
10585int
10586main ()
10587{
10588#ifndef $ac_func
10589char *(*pfn) = (char *(*)) $ac_func ;
10590#endif
10591  ;
10592  return 0;
10593}
10594_ACEOF
10595if ac_fn_c_try_compile "$LINENO"; then :
10596  eval "gcc_cv_have_decl_$ac_func=yes"
10597else
10598  eval "gcc_cv_have_decl_$ac_func=no"
10599fi
10600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601fi
10602
10603if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10605$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10606#define $ac_tr_decl 1
10607_ACEOF
10608
10609else
10610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10612#define $ac_tr_decl 0
10613_ACEOF
10614
10615fi
10616
10617done
10618
10619
10620for ac_func in times
10621do
10622  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10624$as_echo_n "checking whether $ac_func is declared... " >&6; }
10625if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10626  $as_echo_n "(cached) " >&6
10627else
10628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629/* end confdefs.h.  */
10630#undef $ac_tr_decl
10631#define $ac_tr_decl 1
10632
10633#include "ansidecl.h"
10634#include "system.h"
10635#ifdef HAVE_SYS_TIMES_H
10636#include <sys/times.h>
10637#endif
10638
10639
10640int
10641main ()
10642{
10643#ifndef $ac_func
10644char *(*pfn) = (char *(*)) $ac_func ;
10645#endif
10646  ;
10647  return 0;
10648}
10649_ACEOF
10650if ac_fn_c_try_compile "$LINENO"; then :
10651  eval "gcc_cv_have_decl_$ac_func=yes"
10652else
10653  eval "gcc_cv_have_decl_$ac_func=no"
10654fi
10655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10656fi
10657
10658if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10660$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10661#define $ac_tr_decl 1
10662_ACEOF
10663
10664else
10665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10667#define $ac_tr_decl 0
10668_ACEOF
10669
10670fi
10671
10672done
10673
10674
10675for ac_func in sigaltstack
10676do
10677  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10679$as_echo_n "checking whether $ac_func is declared... " >&6; }
10680if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10681  $as_echo_n "(cached) " >&6
10682else
10683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684/* end confdefs.h.  */
10685#undef $ac_tr_decl
10686#define $ac_tr_decl 1
10687
10688#include "ansidecl.h"
10689#include "system.h"
10690#include <signal.h>
10691
10692
10693int
10694main ()
10695{
10696#ifndef $ac_func
10697char *(*pfn) = (char *(*)) $ac_func ;
10698#endif
10699  ;
10700  return 0;
10701}
10702_ACEOF
10703if ac_fn_c_try_compile "$LINENO"; then :
10704  eval "gcc_cv_have_decl_$ac_func=yes"
10705else
10706  eval "gcc_cv_have_decl_$ac_func=no"
10707fi
10708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10709fi
10710
10711if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10713$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10714#define $ac_tr_decl 1
10715_ACEOF
10716
10717else
10718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10720#define $ac_tr_decl 0
10721_ACEOF
10722
10723fi
10724
10725done
10726
10727
10728# g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10729# prototype.
10730ac_ext=cpp
10731ac_cpp='$CXXCPP $CPPFLAGS'
10732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10735
10736for ac_func in madvise
10737do
10738  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10740$as_echo_n "checking whether $ac_func is declared... " >&6; }
10741if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10742  $as_echo_n "(cached) " >&6
10743else
10744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745/* end confdefs.h.  */
10746#undef $ac_tr_decl
10747#define $ac_tr_decl 1
10748
10749  #include "ansidecl.h"
10750  #include "system.h"
10751
10752
10753int
10754main ()
10755{
10756#ifndef $ac_func
10757char *(*pfn) = (char *(*)) $ac_func ;
10758#endif
10759  ;
10760  return 0;
10761}
10762_ACEOF
10763if ac_fn_cxx_try_compile "$LINENO"; then :
10764  eval "gcc_cv_have_decl_$ac_func=yes"
10765else
10766  eval "gcc_cv_have_decl_$ac_func=no"
10767fi
10768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769fi
10770
10771if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10773$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10774#define $ac_tr_decl 1
10775_ACEOF
10776
10777else
10778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10780#define $ac_tr_decl 0
10781_ACEOF
10782
10783fi
10784
10785done
10786
10787ac_ext=c
10788ac_cpp='$CPP $CPPFLAGS'
10789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10791ac_compiler_gnu=$ac_cv_c_compiler_gnu
10792
10793
10794# More time-related stuff.
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10796$as_echo_n "checking for struct tms... " >&6; }
10797if test "${ac_cv_struct_tms+set}" = set; then :
10798  $as_echo_n "(cached) " >&6
10799else
10800
10801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802/* end confdefs.h.  */
10803
10804#include "ansidecl.h"
10805#include "system.h"
10806#ifdef HAVE_SYS_TIMES_H
10807#include <sys/times.h>
10808#endif
10809
10810int
10811main ()
10812{
10813struct tms tms;
10814  ;
10815  return 0;
10816}
10817_ACEOF
10818if ac_fn_c_try_compile "$LINENO"; then :
10819  ac_cv_struct_tms=yes
10820else
10821  ac_cv_struct_tms=no
10822fi
10823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824fi
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10826$as_echo "$ac_cv_struct_tms" >&6; }
10827if test $ac_cv_struct_tms = yes; then
10828
10829$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10830
10831fi
10832
10833# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10834# revisit after autoconf 2.50.
10835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10836$as_echo_n "checking for clock_t... " >&6; }
10837if test "${gcc_cv_type_clock_t+set}" = set; then :
10838  $as_echo_n "(cached) " >&6
10839else
10840
10841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842/* end confdefs.h.  */
10843
10844#include "ansidecl.h"
10845#include "system.h"
10846
10847int
10848main ()
10849{
10850clock_t x;
10851  ;
10852  return 0;
10853}
10854_ACEOF
10855if ac_fn_c_try_compile "$LINENO"; then :
10856  gcc_cv_type_clock_t=yes
10857else
10858  gcc_cv_type_clock_t=no
10859fi
10860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10861fi
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10863$as_echo "$gcc_cv_type_clock_t" >&6; }
10864if test $gcc_cv_type_clock_t = yes; then
10865
10866$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10867
10868fi
10869
10870# Check if F_SETLKW is supported by fcntl.
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10872$as_echo_n "checking for F_SETLKW... " >&6; }
10873if test "${ac_cv_f_setlkw+set}" = set; then :
10874  $as_echo_n "(cached) " >&6
10875else
10876
10877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878/* end confdefs.h.  */
10879
10880#include <fcntl.h>
10881int
10882main ()
10883{
10884
10885struct flock fl;
10886fl.l_whence = 0;
10887fl.l_start = 0;
10888fl.l_len = 0;
10889fl.l_pid = 0;
10890return fcntl (1, F_SETLKW, &fl);
10891  ;
10892  return 0;
10893}
10894_ACEOF
10895if ac_fn_c_try_compile "$LINENO"; then :
10896  ac_cv_f_setlkw=yes
10897else
10898  ac_cv_f_setlkw=no
10899fi
10900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901fi
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10903$as_echo "$ac_cv_f_setlkw" >&6; }
10904if test $ac_cv_f_setlkw = yes; then
10905
10906$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10907
10908fi
10909
10910# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10911CFLAGS="$saved_CFLAGS"
10912CXXFLAGS="$saved_CXXFLAGS"
10913
10914# mkdir takes a single argument on some systems.
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10916$as_echo_n "checking if mkdir takes one argument... " >&6; }
10917if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10918  $as_echo_n "(cached) " >&6
10919else
10920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921/* end confdefs.h.  */
10922
10923#include <sys/types.h>
10924#ifdef HAVE_SYS_STAT_H
10925# include <sys/stat.h>
10926#endif
10927#ifdef HAVE_UNISTD_H
10928# include <unistd.h>
10929#endif
10930#ifdef HAVE_DIRECT_H
10931# include <direct.h>
10932#endif
10933int
10934main ()
10935{
10936mkdir ("foo", 0);
10937  ;
10938  return 0;
10939}
10940_ACEOF
10941if ac_fn_c_try_compile "$LINENO"; then :
10942  gcc_cv_mkdir_takes_one_arg=no
10943else
10944  gcc_cv_mkdir_takes_one_arg=yes
10945fi
10946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10947fi
10948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10949$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10950if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10951
10952$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10953
10954fi
10955
10956
10957# File extensions
10958manext='.1'
10959objext='.o'
10960
10961
10962
10963# With Setjmp/Longjmp based exception handling.
10964# Check whether --enable-sjlj-exceptions was given.
10965if test "${enable_sjlj_exceptions+set}" = set; then :
10966  enableval=$enable_sjlj_exceptions; case $target in
10967  *-*-hpux10*)
10968    if test $enableval != yes; then
10969      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10970$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10971      enableval=yes
10972    fi
10973    ;;
10974esac
10975force_sjlj_exceptions=yes
10976else
10977  case $target in
10978  *-*-hpux10*)
10979    force_sjlj_exceptions=yes
10980    enableval=yes
10981    ;;
10982  lm32*-*-*)
10983     force_sjlj_exceptions=yes
10984     enableval=yes
10985     ;;
10986  *)
10987    force_sjlj_exceptions=no
10988    ;;
10989esac
10990fi
10991
10992if test $force_sjlj_exceptions = yes; then
10993  sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10994
10995cat >>confdefs.h <<_ACEOF
10996#define CONFIG_SJLJ_EXCEPTIONS $sjlj
10997_ACEOF
10998
10999fi
11000
11001# --------------------------------------------------------
11002# Build, host, and target specific configuration fragments
11003# --------------------------------------------------------
11004
11005# Collect build-machine-specific information.
11006. ${srcdir}/config.build
11007
11008# Collect host-machine-specific information.
11009. ${srcdir}/config.host
11010
11011target_gtfiles=
11012
11013# Collect target-machine-specific information.
11014. ${srcdir}/config.gcc
11015
11016extra_objs="${host_extra_objs} ${extra_objs}"
11017extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11018
11019# Default the target-machine variables that were not explicitly set.
11020if test x"$tm_file" = x
11021then tm_file=$cpu_type/$cpu_type.h; fi
11022
11023if test x"$extra_headers" = x
11024then extra_headers=; fi
11025
11026if test x$md_file = x
11027then md_file=$cpu_type/$cpu_type.md; fi
11028
11029if test x$out_file = x
11030then out_file=$cpu_type/$cpu_type.c; fi
11031
11032if test x"$tmake_file" = x
11033then tmake_file=$cpu_type/t-$cpu_type
11034fi
11035
11036# Support --enable-initfini-array.
11037if test x$enable_initfini_array != xno; then
11038  tm_file="${tm_file} initfini-array.h"
11039fi
11040
11041if test x"$dwarf2" = xyes
11042then tm_file="$tm_file tm-dwarf2.h"
11043fi
11044
11045# Say what files are being used for the output code and MD file.
11046echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11047echo "Using \`$srcdir/config/$md_file' as machine description file."
11048
11049# If any of the xm_file variables contain nonexistent files, warn
11050# about them and drop them.
11051
11052bx=
11053for x in $build_xm_file; do
11054  if    test -f $srcdir/config/$x
11055  then      bx="$bx $x"
11056  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11057$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11058  fi
11059done
11060build_xm_file="$bx"
11061
11062hx=
11063for x in $host_xm_file; do
11064  if    test -f $srcdir/config/$x
11065  then      hx="$hx $x"
11066  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11067$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11068  fi
11069done
11070host_xm_file="$hx"
11071
11072tx=
11073for x in $xm_file; do
11074  if    test -f $srcdir/config/$x
11075  then      tx="$tx $x"
11076  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11077$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11078  fi
11079done
11080xm_file="$tx"
11081
11082count=a
11083for f in $tm_file; do
11084	count=${count}x
11085done
11086if test $count = ax; then
11087	echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11088else
11089	echo "Using the following target machine macro files:"
11090	for f in $tm_file; do
11091		echo "	$srcdir/config/$f"
11092	done
11093fi
11094
11095if test x$need_64bit_hwint = xyes; then
11096
11097$as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11098
11099fi
11100
11101if test x$use_long_long_for_widest_fast_int = xyes; then
11102
11103$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11104
11105fi
11106
11107gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11108
11109cat >>confdefs.h <<_ACEOF
11110#define HAVE_GNU_LD $gnu_ld_bool
11111_ACEOF
11112
11113
11114gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11115
11116cat >>confdefs.h <<_ACEOF
11117#define HAVE_GNU_AS $gnu_as_bool
11118_ACEOF
11119
11120
11121count=a
11122for f in $host_xm_file; do
11123	count=${count}x
11124done
11125if test $count = a; then
11126	:
11127elif test $count = ax; then
11128	echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11129else
11130	echo "Using the following host machine macro files:"
11131	for f in $host_xm_file; do
11132		echo "	$srcdir/config/$f"
11133	done
11134fi
11135echo "Using ${out_host_hook_obj} for host machine hooks."
11136
11137if test "$host_xm_file" != "$build_xm_file"; then
11138	count=a
11139	for f in $build_xm_file; do
11140		count=${count}x
11141	done
11142	if test $count = a; then
11143		:
11144	elif test $count = ax; then
11145		echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11146	else
11147		echo "Using the following build machine macro files:"
11148		for f in $build_xm_file; do
11149			echo "	$srcdir/config/$f"
11150		done
11151	fi
11152fi
11153
11154if test -n "$configured_native_system_header_dir"; then
11155  native_system_header_dir=$configured_native_system_header_dir
11156fi
11157NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11158
11159
11160case ${host} in
11161  powerpc*-*-darwin*)
11162    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11163$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11164if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11165  $as_echo_n "(cached) " >&6
11166else
11167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168/* end confdefs.h.  */
11169
11170#include <sys/cdefs.h>
11171#include <sys/signal.h>
11172#include <ucontext.h>
11173int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11174
11175_ACEOF
11176if ac_fn_c_try_compile "$LINENO"; then :
11177  gcc_cv_mcontext_underscores=no
11178else
11179  gcc_cv_mcontext_underscores=yes
11180fi
11181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11182fi
11183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11184$as_echo "$gcc_cv_mcontext_underscores" >&6; }
11185      if test $gcc_cv_mcontext_underscores = yes; then
11186
11187$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11188
11189      fi
11190    ;;
11191esac
11192
11193# ---------
11194# Threading
11195# ---------
11196
11197# Check if a valid thread package
11198case ${enable_threads} in
11199  "" | no)
11200    # No threads
11201    target_thread_file='single'
11202    ;;
11203  yes)
11204    # default
11205    target_thread_file='single'
11206    ;;
11207  aix | dce | lynx | mipssde | posix | rtems | \
11208  single | tpf | vxworks | win32)
11209    target_thread_file=${enable_threads}
11210    ;;
11211  *)
11212    echo "${enable_threads} is an unknown thread package" 1>&2
11213    exit 1
11214    ;;
11215esac
11216
11217if test x${thread_file} = x; then
11218  # No thread file set by target-specific clauses in config.gcc,
11219  # so use file chosen by default logic above
11220  thread_file=${target_thread_file}
11221fi
11222
11223# --------
11224# UNSORTED
11225# --------
11226
11227use_cxa_atexit=no
11228if test x$enable___cxa_atexit = xyes || \
11229   test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11230  if test x$host = x$target; then
11231    case $host in
11232      # mingw32 doesn't have __cxa_atexit but uses atexit registration
11233      # keyed to flag_use_cxa_atexit
11234      *-*-mingw32*)
11235	use_cxa_atexit=yes
11236	;;
11237      powerpc-ibm-aix*)
11238	use_cxa_atexit=yes
11239	;;
11240      *)
11241	ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11242if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11243  use_cxa_atexit=yes
11244else
11245  echo "__cxa_atexit can't be enabled on this target"
11246fi
11247
11248	;;
11249    esac
11250  else
11251    # We can't check for __cxa_atexit when building a cross, so assume
11252    # it is available
11253    use_cxa_atexit=yes
11254  fi
11255  if test x$use_cxa_atexit = xyes; then
11256
11257$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11258
11259  fi
11260fi
11261
11262# Look for a file containing extra machine modes.
11263if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11264  extra_modes_file='$(srcdir)'/config/${extra_modes}
11265
11266
11267cat >>confdefs.h <<_ACEOF
11268#define EXTRA_MODES_FILE "config/$extra_modes"
11269_ACEOF
11270
11271fi
11272
11273# Convert extra_options into a form suitable for Makefile use.
11274extra_opt_files=
11275all_opt_files=
11276for f in $extra_options; do
11277  extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11278  all_opt_files="$all_opt_files $srcdir/config/$f"
11279done
11280
11281
11282# auto-host.h is the file containing items generated by autoconf and is
11283# the first file included by config.h.
11284# If host=build, it is correct to have bconfig include auto-host.h
11285# as well.  If host!=build, we are in error and need to do more
11286# work to find out the build config parameters.
11287if test x$host = x$build
11288then
11289	build_auto=auto-host.h
11290else
11291	# We create a subdir, then run autoconf in the subdir.
11292	# To prevent recursion we set host and build for the new
11293	# invocation of configure to the build for this invocation
11294	# of configure.
11295	tempdir=build.$$
11296	rm -rf $tempdir
11297	mkdir $tempdir
11298	cd $tempdir
11299	case ${srcdir} in
11300	/* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11301	*) realsrcdir=../${srcdir};;
11302	esac
11303	# Clearing GMPINC is necessary to prevent host headers being
11304	# used by the build compiler.  Defining GENERATOR_FILE stops
11305	# system.h from including gmp.h.
11306	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11307	CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11308	LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11309	GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11310	${realsrcdir}/configure \
11311		--enable-languages=${enable_languages-all} \
11312		--target=$target_alias --host=$build_alias --build=$build_alias
11313
11314	# We just finished tests for the build machine, so rename
11315	# the file auto-build.h in the gcc directory.
11316	mv auto-host.h ../auto-build.h
11317	cd ..
11318	rm -rf $tempdir
11319	build_auto=auto-build.h
11320fi
11321
11322
11323tm_file="${tm_file} defaults.h"
11324tm_p_file="${tm_p_file} tm-preds.h"
11325host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11326build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11327# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11328# put this back in temporarily.
11329xm_file="auto-host.h ansidecl.h ${xm_file}"
11330
11331# --------
11332# UNSORTED
11333# --------
11334
11335# Compile in configure arguments.
11336if test -f configargs.h ; then
11337	# Being re-configured.
11338	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11339	gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11340else
11341	gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11342fi
11343
11344# Double all backslashes and backslash all quotes to turn
11345# gcc_config_arguments into a C string.
11346sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11347$gcc_config_arguments
11348EOF
11349gcc_config_arguments_str=`cat conftest.out`
11350rm -f conftest.out
11351
11352cat > configargs.h <<EOF
11353/* Generated automatically. */
11354static const char configuration_arguments[] = "$gcc_config_arguments_str";
11355static const char thread_model[] = "$thread_file";
11356
11357static const struct {
11358  const char *name, *value;
11359} configure_default_options[] = $configure_default_options;
11360EOF
11361
11362gcc_BASEVER=`cat $srcdir/BASE-VER`
11363gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11364gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11365if test -f $srcdir/REVISION ; then
11366	gcc_REVISION=`cat $srcdir/REVISION`
11367else
11368        gcc_REVISION=""
11369fi
11370cat > plugin-version.h <<EOF
11371#include "configargs.h"
11372
11373#define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11374#define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11375#define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11376#define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11377
11378static char basever[] = "$gcc_BASEVER";
11379static char datestamp[] = "$gcc_DATESTAMP";
11380static char devphase[] = "$gcc_DEVPHASE";
11381static char revision[] = "$gcc_REVISION";
11382
11383/* FIXME plugins: We should make the version information more precise.
11384   One way to do is to add a checksum. */
11385
11386static struct plugin_gcc_version gcc_version = {basever, datestamp,
11387						devphase, revision,
11388						configuration_arguments};
11389EOF
11390
11391# Internationalization
11392# If we haven't got the data from the intl directory,
11393# assume NLS is disabled.
11394USE_NLS=no
11395LIBINTL=
11396LIBINTL_DEP=
11397INCINTL=
11398XGETTEXT=
11399GMSGFMT=
11400POSUB=
11401
11402if test -f  ../intl/config.intl; then
11403  .  ../intl/config.intl
11404fi
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11406$as_echo_n "checking whether NLS is requested... " >&6; }
11407if test x"$USE_NLS" != xyes; then
11408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409$as_echo "no" >&6; }
11410else
11411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11412$as_echo "yes" >&6; }
11413
11414$as_echo "#define ENABLE_NLS 1" >>confdefs.h
11415
11416
11417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11418$as_echo_n "checking for catalogs to be installed... " >&6; }
11419  # Look for .po and .gmo files in the source directory.
11420  CATALOGS=
11421  XLINGUAS=
11422  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11423    # If there aren't any .gmo files the shell will give us the
11424    # literal string "../path/to/srcdir/po/*.gmo" which has to be
11425    # weeded out.
11426    case "$cat" in *\**)
11427      continue;;
11428    esac
11429    # The quadruple backslash is collapsed to a double backslash
11430    # by the backticks, then collapsed again by the double quotes,
11431    # leaving us with one backslash in the sed expression (right
11432    # before the dot that mustn't act as a wildcard).
11433    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11434    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11435    # The user is allowed to set LINGUAS to a list of languages to
11436    # install catalogs for.  If it's empty that means "all of them."
11437    if test "x$LINGUAS" = x; then
11438      CATALOGS="$CATALOGS $cat"
11439      XLINGUAS="$XLINGUAS $lang"
11440    else
11441      case "$LINGUAS" in *$lang*)
11442        CATALOGS="$CATALOGS $cat"
11443        XLINGUAS="$XLINGUAS $lang"
11444        ;;
11445      esac
11446    fi
11447  done
11448  LINGUAS="$XLINGUAS"
11449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11450$as_echo "$LINGUAS" >&6; }
11451
11452
11453    DATADIRNAME=share
11454
11455  INSTOBJEXT=.mo
11456
11457  GENCAT=gencat
11458
11459  CATOBJEXT=.gmo
11460
11461fi
11462
11463# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11464# -liconv on the link line twice.
11465case "$LIBINTL" in *$LIBICONV*)
11466	LIBICONV= ;;
11467esac
11468
11469# Check whether --enable-secureplt was given.
11470if test "${enable_secureplt+set}" = set; then :
11471  enableval=$enable_secureplt;
11472fi
11473
11474
11475# Check whether --enable-leading-mingw64-underscores was given.
11476if test "${enable_leading_mingw64_underscores+set}" = set; then :
11477  enableval=$enable_leading_mingw64_underscores;
11478fi
11479
11480if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11481
11482$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11483
11484fi
11485
11486# Check whether --enable-cld was given.
11487if test "${enable_cld+set}" = set; then :
11488  enableval=$enable_cld;
11489else
11490  enable_cld=no
11491fi
11492
11493
11494# Check whether --enable-frame-pointer was given.
11495if test "${enable_frame_pointer+set}" = set; then :
11496  enableval=$enable_frame_pointer;
11497else
11498
11499case $target_os in
11500linux* | darwin[8912]*)
11501  # Enable -fomit-frame-pointer by default for Linux and Darwin with
11502  # DWARF2.
11503  enable_frame_pointer=no
11504  ;;
11505*)
11506  enable_frame_pointer=yes
11507  ;;
11508esac
11509
11510fi
11511
11512
11513# Windows32 Registry support for specifying GCC installation paths.
11514# Check whether --enable-win32-registry was given.
11515if test "${enable_win32_registry+set}" = set; then :
11516  enableval=$enable_win32_registry;
11517fi
11518
11519
11520case $host_os in
11521  win32 | pe | cygwin* | mingw32* | uwin*)
11522    if test "x$enable_win32_registry" != xno; then
11523      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11524$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11525if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11526  $as_echo_n "(cached) " >&6
11527else
11528  ac_func_search_save_LIBS=$LIBS
11529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530/* end confdefs.h.  */
11531
11532/* Override any GCC internal prototype to avoid an error.
11533   Use char because int might match the return type of a GCC
11534   builtin and then its argument prototype would still apply.  */
11535#ifdef __cplusplus
11536extern "C"
11537#endif
11538char RegOpenKeyExA ();
11539int
11540main ()
11541{
11542return RegOpenKeyExA ();
11543  ;
11544  return 0;
11545}
11546_ACEOF
11547for ac_lib in '' advapi32; do
11548  if test -z "$ac_lib"; then
11549    ac_res="none required"
11550  else
11551    ac_res=-l$ac_lib
11552    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11553  fi
11554  if ac_fn_c_try_link "$LINENO"; then :
11555  ac_cv_search_RegOpenKeyExA=$ac_res
11556fi
11557rm -f core conftest.err conftest.$ac_objext \
11558    conftest$ac_exeext
11559  if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11560  break
11561fi
11562done
11563if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11564
11565else
11566  ac_cv_search_RegOpenKeyExA=no
11567fi
11568rm conftest.$ac_ext
11569LIBS=$ac_func_search_save_LIBS
11570fi
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11572$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11573ac_res=$ac_cv_search_RegOpenKeyExA
11574if test "$ac_res" != no; then :
11575  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11576
11577else
11578  enable_win32_registry=no
11579fi
11580
11581    fi
11582
11583    if test "x$enable_win32_registry" != xno; then
11584
11585$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11586
11587
11588      if test "x$enable_win32_registry" != xyes \
11589         && test "x$enable_win32_registry" != x; then
11590
11591cat >>confdefs.h <<_ACEOF
11592#define WIN32_REGISTRY_KEY "$enable_win32_registry"
11593_ACEOF
11594
11595      fi
11596    fi
11597  ;;
11598esac
11599
11600# Get an absolute path to the GCC top-level source directory
11601holddir=`${PWDCMD-pwd}`
11602cd $srcdir
11603topdir=`${PWDCMD-pwd}`
11604cd $holddir
11605
11606# Conditionalize the makefile for this host machine.
11607xmake_file=
11608for f in ${host_xmake_file}
11609do
11610	if test -f ${srcdir}/config/$f
11611	then
11612		xmake_file="${xmake_file} \$(srcdir)/config/$f"
11613	fi
11614done
11615
11616# Conditionalize the makefile for this target machine.
11617tmake_file_=
11618for f in ${tmake_file}
11619do
11620	if test -f ${srcdir}/config/$f
11621	then
11622		tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11623	fi
11624done
11625tmake_file="${tmake_file_}"
11626
11627out_object_file=`basename $out_file .c`.o
11628common_out_object_file=`basename $common_out_file .c`.o
11629
11630tm_file_list="options.h"
11631tm_include_list="options.h insn-constants.h"
11632for f in $tm_file; do
11633  case $f in
11634    ./* )
11635       f=`echo $f | sed 's/^..//'`
11636       tm_file_list="${tm_file_list} $f"
11637       tm_include_list="${tm_include_list} $f"
11638       ;;
11639    defaults.h )
11640       tm_file_list="${tm_file_list} \$(srcdir)/$f"
11641       tm_include_list="${tm_include_list} $f"
11642       ;;
11643    * )
11644       tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11645       tm_include_list="${tm_include_list} config/$f"
11646       ;;
11647  esac
11648done
11649
11650tm_p_file_list=
11651tm_p_include_list=
11652for f in $tm_p_file; do
11653  case $f in
11654    tm-preds.h )
11655       tm_p_file_list="${tm_p_file_list} $f"
11656       tm_p_include_list="${tm_p_include_list} $f"
11657       ;;
11658    * )
11659       tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11660       tm_p_include_list="${tm_p_include_list} config/$f"
11661  esac
11662done
11663
11664xm_file_list=
11665xm_include_list=
11666for f in $xm_file; do
11667  case $f in
11668    ansidecl.h )
11669       xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11670       xm_include_list="${xm_include_list} $f"
11671       ;;
11672    auto-host.h )
11673       xm_file_list="${xm_file_list} $f"
11674       xm_include_list="${xm_include_list} $f"
11675       ;;
11676    * )
11677       xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11678       xm_include_list="${xm_include_list} config/$f"
11679       ;;
11680  esac
11681done
11682
11683host_xm_file_list=
11684host_xm_include_list=
11685for f in $host_xm_file; do
11686  case $f in
11687    ansidecl.h )
11688       host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11689       host_xm_include_list="${host_xm_include_list} $f"
11690       ;;
11691    auto-host.h )
11692       host_xm_file_list="${host_xm_file_list} $f"
11693       host_xm_include_list="${host_xm_include_list} $f"
11694       ;;
11695    * )
11696       host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11697       host_xm_include_list="${host_xm_include_list} config/$f"
11698       ;;
11699  esac
11700done
11701
11702build_xm_file_list=
11703for f in $build_xm_file; do
11704  case $f in
11705    ansidecl.h )
11706       build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11707       build_xm_include_list="${build_xm_include_list} $f"
11708       ;;
11709    auto-build.h | auto-host.h )
11710       build_xm_file_list="${build_xm_file_list} $f"
11711       build_xm_include_list="${build_xm_include_list} $f"
11712       ;;
11713    * )
11714       build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11715       build_xm_include_list="${build_xm_include_list} config/$f"
11716       ;;
11717  esac
11718done
11719
11720# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11721# cross-compiler which does not use the native headers and libraries.
11722# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11723CROSS=
11724ALL=all.internal
11725SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11726
11727if test "x$with_build_sysroot" != x; then
11728  build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11729else
11730  # This value is used, even on a native system, because
11731  # CROSS_SYSTEM_HEADER_DIR is just
11732  # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11733  build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11734fi
11735
11736if test x$host != x$target
11737then
11738	CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11739	ALL=all.cross
11740	SYSTEM_HEADER_DIR=$build_system_header_dir
11741	case "$host","$target" in
11742	# Darwin crosses can use the host system's libraries and headers,
11743	# because of the fat library support.  Of course, it must be the
11744	# same version of Darwin on both sides.  Allow the user to
11745	# just say --target=foo-darwin without a version number to mean
11746	# "the version on this system".
11747	    *-*-darwin*,*-*-darwin*)
11748		hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11749		targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11750		if test $hostos = $targetos -o $targetos = darwin ; then
11751		    CROSS=
11752		    SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11753		    with_headers=yes
11754		fi
11755		;;
11756
11757	    i?86-*-*,x86_64-*-* \
11758	    | powerpc*-*-*,powerpc64*-*-*)
11759		CROSS="$CROSS -DNATIVE_CROSS" ;;
11760	esac
11761
11762	case $target in
11763		*-*-mingw*)
11764			if test "x$with_headers" = x; then
11765				with_headers=yes
11766			fi
11767			;;
11768		*)
11769			;;
11770	esac
11771elif test "x$TARGET_SYSTEM_ROOT" != x; then
11772        SYSTEM_HEADER_DIR=$build_system_header_dir
11773fi
11774
11775# If this is a cross-compiler that does not
11776# have its own set of headers then define
11777# inhibit_libc
11778
11779# If this is using newlib, without having the headers available now,
11780# then define inhibit_libc in LIBGCC2_CFLAGS.
11781# This prevents libgcc2 from containing any code which requires libc
11782# support.
11783: ${inhibit_libc=false}
11784if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11785       test x$with_newlib = xyes ; } &&
11786     { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11787       inhibit_libc=true
11788fi
11789
11790
11791# When building gcc with a cross-compiler, we need to adjust things so
11792# that the generator programs are still built with the native compiler.
11793# Also, we cannot run fixincludes.
11794
11795# These are the normal (build=host) settings:
11796CC_FOR_BUILD='$(CC)'
11797CXX_FOR_BUILD='$(CXX)'
11798BUILD_CFLAGS='$(ALL_CFLAGS)'
11799BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11800BUILD_LDFLAGS='$(LDFLAGS)'
11801STMP_FIXINC=stmp-fixinc
11802
11803# And these apply if build != host, or we are generating coverage data
11804if test x$build != x$host || test "x$coverage_flags" != x
11805then
11806    BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11807    BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11808    BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11809fi
11810
11811# Expand extra_headers to include complete path.
11812# This substitutes for lots of t-* files.
11813extra_headers_list=
11814# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11815for file in ${extra_headers} ; do
11816  extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11817done
11818
11819# If use_gcc_tgmath is set, append ginclude/tgmath.h.
11820if test x"$use_gcc_tgmath" = xyes
11821then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11822fi
11823
11824# Define collect2 in Makefile.
11825case $host_can_use_collect2 in
11826  no) collect2= ;;
11827  *) collect2='collect2$(exeext)' ;;
11828esac
11829
11830
11831# Add a definition of USE_COLLECT2 if system wants one.
11832case $use_collect2 in
11833  no) use_collect2= ;;
11834  "") ;;
11835  *)
11836    host_xm_defines="${host_xm_defines} USE_COLLECT2"
11837    xm_defines="${xm_defines} USE_COLLECT2"
11838    case $host_can_use_collect2 in
11839      no)
11840        as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11841        ;;
11842    esac
11843    ;;
11844esac
11845
11846
11847cat >>confdefs.h <<_ACEOF
11848#define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11849_ACEOF
11850
11851
11852# ---------------------------
11853# Assembler & linker features
11854# ---------------------------
11855
11856# During stage 2, ld is actually gcc/collect-ld, which is a small script to
11857# discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11858# However when ld-new is first executed from the build tree, libtool will
11859# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11860# to the build tree.  While doing this we need to use the previous-stage
11861# linker, or we have an infinite loop.  The presence of a shell script as
11862# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11863# the gcc/collect-ld script.  So we need to know how libtool works, or
11864# exec-tool will fail.
11865
11866
11867case `pwd` in
11868  *\ * | *\	*)
11869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11870$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11871esac
11872
11873
11874
11875macro_version='2.2.7a'
11876macro_revision='1.3134'
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890ltmain="$ac_aux_dir/ltmain.sh"
11891
11892# Backslashify metacharacters that are still active within
11893# double-quoted strings.
11894sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11895
11896# Same as above, but do not quote variable references.
11897double_quote_subst='s/\(["`\\]\)/\\\1/g'
11898
11899# Sed substitution to delay expansion of an escaped shell variable in a
11900# double_quote_subst'ed string.
11901delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11902
11903# Sed substitution to delay expansion of an escaped single quote.
11904delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11905
11906# Sed substitution to avoid accidental globbing in evaled expressions
11907no_glob_subst='s/\*/\\\*/g'
11908
11909ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11910ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11911ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11912
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11914$as_echo_n "checking how to print strings... " >&6; }
11915# Test print first, because it will be a builtin if present.
11916if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11917   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11918  ECHO='print -r --'
11919elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11920  ECHO='printf %s\n'
11921else
11922  # Use this function as a fallback that always works.
11923  func_fallback_echo ()
11924  {
11925    eval 'cat <<_LTECHO_EOF
11926$1
11927_LTECHO_EOF'
11928  }
11929  ECHO='func_fallback_echo'
11930fi
11931
11932# func_echo_all arg...
11933# Invoke $ECHO with all args, space-separated.
11934func_echo_all ()
11935{
11936    $ECHO ""
11937}
11938
11939case "$ECHO" in
11940  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11941$as_echo "printf" >&6; } ;;
11942  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11943$as_echo "print -r" >&6; } ;;
11944  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11945$as_echo "cat" >&6; } ;;
11946esac
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11962$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11963if test "${ac_cv_path_SED+set}" = set; then :
11964  $as_echo_n "(cached) " >&6
11965else
11966            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11967     for ac_i in 1 2 3 4 5 6 7; do
11968       ac_script="$ac_script$as_nl$ac_script"
11969     done
11970     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11971     { ac_script=; unset ac_script;}
11972     if test -z "$SED"; then
11973  ac_path_SED_found=false
11974  # Loop through the user's path and test for each of PROGNAME-LIST
11975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976for as_dir in $PATH
11977do
11978  IFS=$as_save_IFS
11979  test -z "$as_dir" && as_dir=.
11980    for ac_prog in sed gsed; do
11981    for ac_exec_ext in '' $ac_executable_extensions; do
11982      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11983      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11984# Check for GNU ac_path_SED and select it if it is found.
11985  # Check for GNU $ac_path_SED
11986case `"$ac_path_SED" --version 2>&1` in
11987*GNU*)
11988  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11989*)
11990  ac_count=0
11991  $as_echo_n 0123456789 >"conftest.in"
11992  while :
11993  do
11994    cat "conftest.in" "conftest.in" >"conftest.tmp"
11995    mv "conftest.tmp" "conftest.in"
11996    cp "conftest.in" "conftest.nl"
11997    $as_echo '' >> "conftest.nl"
11998    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11999    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12000    as_fn_arith $ac_count + 1 && ac_count=$as_val
12001    if test $ac_count -gt ${ac_path_SED_max-0}; then
12002      # Best one so far, save it but keep looking for a better one
12003      ac_cv_path_SED="$ac_path_SED"
12004      ac_path_SED_max=$ac_count
12005    fi
12006    # 10*(2^10) chars as input seems more than enough
12007    test $ac_count -gt 10 && break
12008  done
12009  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12010esac
12011
12012      $ac_path_SED_found && break 3
12013    done
12014  done
12015  done
12016IFS=$as_save_IFS
12017  if test -z "$ac_cv_path_SED"; then
12018    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12019  fi
12020else
12021  ac_cv_path_SED=$SED
12022fi
12023
12024fi
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12026$as_echo "$ac_cv_path_SED" >&6; }
12027 SED="$ac_cv_path_SED"
12028  rm -f conftest.sed
12029
12030test -z "$SED" && SED=sed
12031Xsed="$SED -e 1s/^X//"
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12044$as_echo_n "checking for fgrep... " >&6; }
12045if test "${ac_cv_path_FGREP+set}" = set; then :
12046  $as_echo_n "(cached) " >&6
12047else
12048  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12049   then ac_cv_path_FGREP="$GREP -F"
12050   else
12051     if test -z "$FGREP"; then
12052  ac_path_FGREP_found=false
12053  # Loop through the user's path and test for each of PROGNAME-LIST
12054  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12056do
12057  IFS=$as_save_IFS
12058  test -z "$as_dir" && as_dir=.
12059    for ac_prog in fgrep; do
12060    for ac_exec_ext in '' $ac_executable_extensions; do
12061      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12062      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12063# Check for GNU ac_path_FGREP and select it if it is found.
12064  # Check for GNU $ac_path_FGREP
12065case `"$ac_path_FGREP" --version 2>&1` in
12066*GNU*)
12067  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12068*)
12069  ac_count=0
12070  $as_echo_n 0123456789 >"conftest.in"
12071  while :
12072  do
12073    cat "conftest.in" "conftest.in" >"conftest.tmp"
12074    mv "conftest.tmp" "conftest.in"
12075    cp "conftest.in" "conftest.nl"
12076    $as_echo 'FGREP' >> "conftest.nl"
12077    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12078    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12079    as_fn_arith $ac_count + 1 && ac_count=$as_val
12080    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12081      # Best one so far, save it but keep looking for a better one
12082      ac_cv_path_FGREP="$ac_path_FGREP"
12083      ac_path_FGREP_max=$ac_count
12084    fi
12085    # 10*(2^10) chars as input seems more than enough
12086    test $ac_count -gt 10 && break
12087  done
12088  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12089esac
12090
12091      $ac_path_FGREP_found && break 3
12092    done
12093  done
12094  done
12095IFS=$as_save_IFS
12096  if test -z "$ac_cv_path_FGREP"; then
12097    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12098  fi
12099else
12100  ac_cv_path_FGREP=$FGREP
12101fi
12102
12103   fi
12104fi
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12106$as_echo "$ac_cv_path_FGREP" >&6; }
12107 FGREP="$ac_cv_path_FGREP"
12108
12109
12110test -z "$GREP" && GREP=grep
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130# Check whether --with-gnu-ld was given.
12131if test "${with_gnu_ld+set}" = set; then :
12132  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12133else
12134  with_gnu_ld=no
12135fi
12136
12137ac_prog=ld
12138if test "$GCC" = yes; then
12139  # Check if gcc -print-prog-name=ld gives a path.
12140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12141$as_echo_n "checking for ld used by $CC... " >&6; }
12142  case $host in
12143  *-*-mingw*)
12144    # gcc leaves a trailing carriage return which upsets mingw
12145    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12146  *)
12147    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12148  esac
12149  case $ac_prog in
12150    # Accept absolute paths.
12151    [\\/]* | ?:[\\/]*)
12152      re_direlt='/[^/][^/]*/\.\./'
12153      # Canonicalize the pathname of ld
12154      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12155      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12156	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12157      done
12158      test -z "$LD" && LD="$ac_prog"
12159      ;;
12160  "")
12161    # If it fails, then pretend we aren't using GCC.
12162    ac_prog=ld
12163    ;;
12164  *)
12165    # If it is relative, then search for the first ld in PATH.
12166    with_gnu_ld=unknown
12167    ;;
12168  esac
12169elif test "$with_gnu_ld" = yes; then
12170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12171$as_echo_n "checking for GNU ld... " >&6; }
12172else
12173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12174$as_echo_n "checking for non-GNU ld... " >&6; }
12175fi
12176if test "${lt_cv_path_LD+set}" = set; then :
12177  $as_echo_n "(cached) " >&6
12178else
12179  if test -z "$LD"; then
12180  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12181  for ac_dir in $PATH; do
12182    IFS="$lt_save_ifs"
12183    test -z "$ac_dir" && ac_dir=.
12184    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12185      lt_cv_path_LD="$ac_dir/$ac_prog"
12186      # Check to see if the program is GNU ld.  I'd rather use --version,
12187      # but apparently some variants of GNU ld only accept -v.
12188      # Break only if it was the GNU/non-GNU ld that we prefer.
12189      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12190      *GNU* | *'with BFD'*)
12191	test "$with_gnu_ld" != no && break
12192	;;
12193      *)
12194	test "$with_gnu_ld" != yes && break
12195	;;
12196      esac
12197    fi
12198  done
12199  IFS="$lt_save_ifs"
12200else
12201  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12202fi
12203fi
12204
12205LD="$lt_cv_path_LD"
12206if test -n "$LD"; then
12207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12208$as_echo "$LD" >&6; }
12209else
12210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211$as_echo "no" >&6; }
12212fi
12213test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12215$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12216if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12217  $as_echo_n "(cached) " >&6
12218else
12219  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12220case `$LD -v 2>&1 </dev/null` in
12221*GNU* | *'with BFD'*)
12222  lt_cv_prog_gnu_ld=yes
12223  ;;
12224*)
12225  lt_cv_prog_gnu_ld=no
12226  ;;
12227esac
12228fi
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12230$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12231with_gnu_ld=$lt_cv_prog_gnu_ld
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12242$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12243if test "${lt_cv_path_NM+set}" = set; then :
12244  $as_echo_n "(cached) " >&6
12245else
12246  if test -n "$NM"; then
12247  # Let the user override the test.
12248  lt_cv_path_NM="$NM"
12249else
12250  lt_nm_to_check="${ac_tool_prefix}nm"
12251  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12252    lt_nm_to_check="$lt_nm_to_check nm"
12253  fi
12254  for lt_tmp_nm in $lt_nm_to_check; do
12255    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12256    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12257      IFS="$lt_save_ifs"
12258      test -z "$ac_dir" && ac_dir=.
12259      tmp_nm="$ac_dir/$lt_tmp_nm"
12260      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12261	# Check to see if the nm accepts a BSD-compat flag.
12262	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
12263	#   nm: unknown option "B" ignored
12264	# Tru64's nm complains that /dev/null is an invalid object file
12265	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12266	*/dev/null* | *'Invalid file or object type'*)
12267	  lt_cv_path_NM="$tmp_nm -B"
12268	  break
12269	  ;;
12270	*)
12271	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12272	  */dev/null*)
12273	    lt_cv_path_NM="$tmp_nm -p"
12274	    break
12275	    ;;
12276	  *)
12277	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12278	    continue # so that we can try to find one that supports BSD flags
12279	    ;;
12280	  esac
12281	  ;;
12282	esac
12283      fi
12284    done
12285    IFS="$lt_save_ifs"
12286  done
12287  : ${lt_cv_path_NM=no}
12288fi
12289fi
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12291$as_echo "$lt_cv_path_NM" >&6; }
12292if test "$lt_cv_path_NM" != "no"; then
12293  NM="$lt_cv_path_NM"
12294else
12295  # Didn't find any BSD compatible name lister, look for dumpbin.
12296  if test -n "$DUMPBIN"; then :
12297    # Let the user override the test.
12298  else
12299    if test -n "$ac_tool_prefix"; then
12300  for ac_prog in dumpbin "link -dump"
12301  do
12302    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12303set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305$as_echo_n "checking for $ac_word... " >&6; }
12306if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12307  $as_echo_n "(cached) " >&6
12308else
12309  if test -n "$DUMPBIN"; then
12310  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12311else
12312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313for as_dir in $PATH
12314do
12315  IFS=$as_save_IFS
12316  test -z "$as_dir" && as_dir=.
12317    for ac_exec_ext in '' $ac_executable_extensions; do
12318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12319    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321    break 2
12322  fi
12323done
12324  done
12325IFS=$as_save_IFS
12326
12327fi
12328fi
12329DUMPBIN=$ac_cv_prog_DUMPBIN
12330if test -n "$DUMPBIN"; then
12331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12332$as_echo "$DUMPBIN" >&6; }
12333else
12334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335$as_echo "no" >&6; }
12336fi
12337
12338
12339    test -n "$DUMPBIN" && break
12340  done
12341fi
12342if test -z "$DUMPBIN"; then
12343  ac_ct_DUMPBIN=$DUMPBIN
12344  for ac_prog in dumpbin "link -dump"
12345do
12346  # Extract the first word of "$ac_prog", so it can be a program name with args.
12347set dummy $ac_prog; ac_word=$2
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349$as_echo_n "checking for $ac_word... " >&6; }
12350if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12351  $as_echo_n "(cached) " >&6
12352else
12353  if test -n "$ac_ct_DUMPBIN"; then
12354  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12355else
12356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357for as_dir in $PATH
12358do
12359  IFS=$as_save_IFS
12360  test -z "$as_dir" && as_dir=.
12361    for ac_exec_ext in '' $ac_executable_extensions; do
12362  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365    break 2
12366  fi
12367done
12368  done
12369IFS=$as_save_IFS
12370
12371fi
12372fi
12373ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12374if test -n "$ac_ct_DUMPBIN"; then
12375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12376$as_echo "$ac_ct_DUMPBIN" >&6; }
12377else
12378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379$as_echo "no" >&6; }
12380fi
12381
12382
12383  test -n "$ac_ct_DUMPBIN" && break
12384done
12385
12386  if test "x$ac_ct_DUMPBIN" = x; then
12387    DUMPBIN=":"
12388  else
12389    case $cross_compiling:$ac_tool_warned in
12390yes:)
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12393ac_tool_warned=yes ;;
12394esac
12395    DUMPBIN=$ac_ct_DUMPBIN
12396  fi
12397fi
12398
12399    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12400    *COFF*)
12401      DUMPBIN="$DUMPBIN -symbols"
12402      ;;
12403    *)
12404      DUMPBIN=:
12405      ;;
12406    esac
12407  fi
12408
12409  if test "$DUMPBIN" != ":"; then
12410    NM="$DUMPBIN"
12411  fi
12412fi
12413test -z "$NM" && NM=nm
12414
12415
12416
12417
12418
12419
12420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12421$as_echo_n "checking the name lister ($NM) interface... " >&6; }
12422if test "${lt_cv_nm_interface+set}" = set; then :
12423  $as_echo_n "(cached) " >&6
12424else
12425  lt_cv_nm_interface="BSD nm"
12426  echo "int some_variable = 0;" > conftest.$ac_ext
12427  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12428  (eval "$ac_compile" 2>conftest.err)
12429  cat conftest.err >&5
12430  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12431  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12432  cat conftest.err >&5
12433  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12434  cat conftest.out >&5
12435  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12436    lt_cv_nm_interface="MS dumpbin"
12437  fi
12438  rm -f conftest*
12439fi
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12441$as_echo "$lt_cv_nm_interface" >&6; }
12442
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12444$as_echo_n "checking whether ln -s works... " >&6; }
12445LN_S=$as_ln_s
12446if test "$LN_S" = "ln -s"; then
12447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12448$as_echo "yes" >&6; }
12449else
12450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12451$as_echo "no, using $LN_S" >&6; }
12452fi
12453
12454# find the maximum length of command line arguments
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12456$as_echo_n "checking the maximum length of command line arguments... " >&6; }
12457if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12458  $as_echo_n "(cached) " >&6
12459else
12460    i=0
12461  teststring="ABCD"
12462
12463  case $build_os in
12464  msdosdjgpp*)
12465    # On DJGPP, this test can blow up pretty badly due to problems in libc
12466    # (any single argument exceeding 2000 bytes causes a buffer overrun
12467    # during glob expansion).  Even if it were fixed, the result of this
12468    # check would be larger than it should be.
12469    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12470    ;;
12471
12472  gnu*)
12473    # Under GNU Hurd, this test is not required because there is
12474    # no limit to the length of command line arguments.
12475    # Libtool will interpret -1 as no limit whatsoever
12476    lt_cv_sys_max_cmd_len=-1;
12477    ;;
12478
12479  cygwin* | mingw* | cegcc*)
12480    # On Win9x/ME, this test blows up -- it succeeds, but takes
12481    # about 5 minutes as the teststring grows exponentially.
12482    # Worse, since 9x/ME are not pre-emptively multitasking,
12483    # you end up with a "frozen" computer, even though with patience
12484    # the test eventually succeeds (with a max line length of 256k).
12485    # Instead, let's just punt: use the minimum linelength reported by
12486    # all of the supported platforms: 8192 (on NT/2K/XP).
12487    lt_cv_sys_max_cmd_len=8192;
12488    ;;
12489
12490  mint*)
12491    # On MiNT this can take a long time and run out of memory.
12492    lt_cv_sys_max_cmd_len=8192;
12493    ;;
12494
12495  amigaos*)
12496    # On AmigaOS with pdksh, this test takes hours, literally.
12497    # So we just punt and use a minimum line length of 8192.
12498    lt_cv_sys_max_cmd_len=8192;
12499    ;;
12500
12501  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12502    # This has been around since 386BSD, at least.  Likely further.
12503    if test -x /sbin/sysctl; then
12504      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12505    elif test -x /usr/sbin/sysctl; then
12506      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12507    else
12508      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12509    fi
12510    # And add a safety zone
12511    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12512    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12513    ;;
12514
12515  interix*)
12516    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12517    lt_cv_sys_max_cmd_len=196608
12518    ;;
12519
12520  osf*)
12521    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12522    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12523    # nice to cause kernel panics so lets avoid the loop below.
12524    # First set a reasonable default.
12525    lt_cv_sys_max_cmd_len=16384
12526    #
12527    if test -x /sbin/sysconfig; then
12528      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12529        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12530      esac
12531    fi
12532    ;;
12533  sco3.2v5*)
12534    lt_cv_sys_max_cmd_len=102400
12535    ;;
12536  sysv5* | sco5v6* | sysv4.2uw2*)
12537    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12538    if test -n "$kargmax"; then
12539      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
12540    else
12541      lt_cv_sys_max_cmd_len=32768
12542    fi
12543    ;;
12544  *)
12545    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12546    if test -n "$lt_cv_sys_max_cmd_len"; then
12547      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12548      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12549    else
12550      # Make teststring a little bigger before we do anything with it.
12551      # a 1K string should be a reasonable start.
12552      for i in 1 2 3 4 5 6 7 8 ; do
12553        teststring=$teststring$teststring
12554      done
12555      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12556      # If test is not a shell built-in, we'll probably end up computing a
12557      # maximum length that is only half of the actual maximum length, but
12558      # we can't tell.
12559      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12560	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12561	      test $i != 17 # 1/2 MB should be enough
12562      do
12563        i=`expr $i + 1`
12564        teststring=$teststring$teststring
12565      done
12566      # Only check the string length outside the loop.
12567      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12568      teststring=
12569      # Add a significant safety factor because C++ compilers can tack on
12570      # massive amounts of additional arguments before passing them to the
12571      # linker.  It appears as though 1/2 is a usable value.
12572      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12573    fi
12574    ;;
12575  esac
12576
12577fi
12578
12579if test -n $lt_cv_sys_max_cmd_len ; then
12580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12581$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12582else
12583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12584$as_echo "none" >&6; }
12585fi
12586max_cmd_len=$lt_cv_sys_max_cmd_len
12587
12588
12589
12590
12591
12592
12593: ${CP="cp -f"}
12594: ${MV="mv -f"}
12595: ${RM="rm -f"}
12596
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12598$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12599# Try some XSI features
12600xsi_shell=no
12601( _lt_dummy="a/b/c"
12602  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12603      = c,a/b,, \
12604    && eval 'test $(( 1 + 1 )) -eq 2 \
12605    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12606  && xsi_shell=yes
12607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12608$as_echo "$xsi_shell" >&6; }
12609
12610
12611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12612$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12613lt_shell_append=no
12614( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12615    >/dev/null 2>&1 \
12616  && lt_shell_append=yes
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12618$as_echo "$lt_shell_append" >&6; }
12619
12620
12621if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12622  lt_unset=unset
12623else
12624  lt_unset=false
12625fi
12626
12627
12628
12629
12630
12631# test EBCDIC or ASCII
12632case `echo X|tr X '\101'` in
12633 A) # ASCII based system
12634    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12635  lt_SP2NL='tr \040 \012'
12636  lt_NL2SP='tr \015\012 \040\040'
12637  ;;
12638 *) # EBCDIC based system
12639  lt_SP2NL='tr \100 \n'
12640  lt_NL2SP='tr \r\n \100\100'
12641  ;;
12642esac
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12653$as_echo_n "checking for $LD option to reload object files... " >&6; }
12654if test "${lt_cv_ld_reload_flag+set}" = set; then :
12655  $as_echo_n "(cached) " >&6
12656else
12657  lt_cv_ld_reload_flag='-r'
12658fi
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12660$as_echo "$lt_cv_ld_reload_flag" >&6; }
12661reload_flag=$lt_cv_ld_reload_flag
12662case $reload_flag in
12663"" | " "*) ;;
12664*) reload_flag=" $reload_flag" ;;
12665esac
12666reload_cmds='$LD$reload_flag -o $output$reload_objs'
12667case $host_os in
12668  darwin*)
12669    if test "$GCC" = yes; then
12670      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12671    else
12672      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12673    fi
12674    ;;
12675esac
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685if test -n "$ac_tool_prefix"; then
12686  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12687set dummy ${ac_tool_prefix}objdump; ac_word=$2
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689$as_echo_n "checking for $ac_word... " >&6; }
12690if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12691  $as_echo_n "(cached) " >&6
12692else
12693  if test -n "$OBJDUMP"; then
12694  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12695else
12696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697for as_dir in $PATH
12698do
12699  IFS=$as_save_IFS
12700  test -z "$as_dir" && as_dir=.
12701    for ac_exec_ext in '' $ac_executable_extensions; do
12702  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12703    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12705    break 2
12706  fi
12707done
12708  done
12709IFS=$as_save_IFS
12710
12711fi
12712fi
12713OBJDUMP=$ac_cv_prog_OBJDUMP
12714if test -n "$OBJDUMP"; then
12715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12716$as_echo "$OBJDUMP" >&6; }
12717else
12718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719$as_echo "no" >&6; }
12720fi
12721
12722
12723fi
12724if test -z "$ac_cv_prog_OBJDUMP"; then
12725  ac_ct_OBJDUMP=$OBJDUMP
12726  # Extract the first word of "objdump", so it can be a program name with args.
12727set dummy objdump; ac_word=$2
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729$as_echo_n "checking for $ac_word... " >&6; }
12730if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12731  $as_echo_n "(cached) " >&6
12732else
12733  if test -n "$ac_ct_OBJDUMP"; then
12734  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12735else
12736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737for as_dir in $PATH
12738do
12739  IFS=$as_save_IFS
12740  test -z "$as_dir" && as_dir=.
12741    for ac_exec_ext in '' $ac_executable_extensions; do
12742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12743    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745    break 2
12746  fi
12747done
12748  done
12749IFS=$as_save_IFS
12750
12751fi
12752fi
12753ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12754if test -n "$ac_ct_OBJDUMP"; then
12755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12756$as_echo "$ac_ct_OBJDUMP" >&6; }
12757else
12758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759$as_echo "no" >&6; }
12760fi
12761
12762  if test "x$ac_ct_OBJDUMP" = x; then
12763    OBJDUMP="false"
12764  else
12765    case $cross_compiling:$ac_tool_warned in
12766yes:)
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12769ac_tool_warned=yes ;;
12770esac
12771    OBJDUMP=$ac_ct_OBJDUMP
12772  fi
12773else
12774  OBJDUMP="$ac_cv_prog_OBJDUMP"
12775fi
12776
12777test -z "$OBJDUMP" && OBJDUMP=objdump
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12788$as_echo_n "checking how to recognize dependent libraries... " >&6; }
12789if test "${lt_cv_deplibs_check_method+set}" = set; then :
12790  $as_echo_n "(cached) " >&6
12791else
12792  lt_cv_file_magic_cmd='$MAGIC_CMD'
12793lt_cv_file_magic_test_file=
12794lt_cv_deplibs_check_method='unknown'
12795# Need to set the preceding variable on all platforms that support
12796# interlibrary dependencies.
12797# 'none' -- dependencies not supported.
12798# `unknown' -- same as none, but documents that we really don't know.
12799# 'pass_all' -- all dependencies passed with no checks.
12800# 'test_compile' -- check by making test program.
12801# 'file_magic [[regex]]' -- check by looking for files in library path
12802# which responds to the $file_magic_cmd with a given extended regex.
12803# If you have `file' or equivalent on your system and you're not sure
12804# whether `pass_all' will *always* work, you probably want this one.
12805
12806case $host_os in
12807aix[4-9]*)
12808  lt_cv_deplibs_check_method=pass_all
12809  ;;
12810
12811beos*)
12812  lt_cv_deplibs_check_method=pass_all
12813  ;;
12814
12815bsdi[45]*)
12816  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12817  lt_cv_file_magic_cmd='/usr/bin/file -L'
12818  lt_cv_file_magic_test_file=/shlib/libc.so
12819  ;;
12820
12821cygwin*)
12822  # func_win32_libid is a shell function defined in ltmain.sh
12823  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12824  lt_cv_file_magic_cmd='func_win32_libid'
12825  ;;
12826
12827mingw* | pw32*)
12828  # Base MSYS/MinGW do not provide the 'file' command needed by
12829  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12830  # unless we find 'file', for example because we are cross-compiling.
12831  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12832  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12833    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12834    lt_cv_file_magic_cmd='func_win32_libid'
12835  else
12836    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12837    lt_cv_file_magic_cmd='$OBJDUMP -f'
12838  fi
12839  ;;
12840
12841cegcc*)
12842  # use the weaker test based on 'objdump'. See mingw*.
12843  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12844  lt_cv_file_magic_cmd='$OBJDUMP -f'
12845  ;;
12846
12847darwin* | rhapsody*)
12848  lt_cv_deplibs_check_method=pass_all
12849  ;;
12850
12851freebsd* | dragonfly*)
12852  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12853    case $host_cpu in
12854    i*86 )
12855      # Not sure whether the presence of OpenBSD here was a mistake.
12856      # Let's accept both of them until this is cleared up.
12857      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12858      lt_cv_file_magic_cmd=/usr/bin/file
12859      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12860      ;;
12861    esac
12862  else
12863    lt_cv_deplibs_check_method=pass_all
12864  fi
12865  ;;
12866
12867gnu*)
12868  lt_cv_deplibs_check_method=pass_all
12869  ;;
12870
12871haiku*)
12872  lt_cv_deplibs_check_method=pass_all
12873  ;;
12874
12875hpux10.20* | hpux11*)
12876  lt_cv_file_magic_cmd=/usr/bin/file
12877  case $host_cpu in
12878  ia64*)
12879    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12880    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12881    ;;
12882  hppa*64*)
12883    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]'
12884    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12885    ;;
12886  *)
12887    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12888    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12889    ;;
12890  esac
12891  ;;
12892
12893interix[3-9]*)
12894  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12895  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12896  ;;
12897
12898irix5* | irix6* | nonstopux*)
12899  case $LD in
12900  *-32|*"-32 ") libmagic=32-bit;;
12901  *-n32|*"-n32 ") libmagic=N32;;
12902  *-64|*"-64 ") libmagic=64-bit;;
12903  *) libmagic=never-match;;
12904  esac
12905  lt_cv_deplibs_check_method=pass_all
12906  ;;
12907
12908# This must be Linux ELF.
12909linux* | k*bsd*-gnu | kopensolaris*-gnu)
12910  lt_cv_deplibs_check_method=pass_all
12911  ;;
12912
12913netbsd*)
12914  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12915    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12916  else
12917    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12918  fi
12919  ;;
12920
12921newos6*)
12922  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12923  lt_cv_file_magic_cmd=/usr/bin/file
12924  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12925  ;;
12926
12927*nto* | *qnx*)
12928  lt_cv_deplibs_check_method=pass_all
12929  ;;
12930
12931openbsd*)
12932  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12933    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12934  else
12935    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12936  fi
12937  ;;
12938
12939osf3* | osf4* | osf5*)
12940  lt_cv_deplibs_check_method=pass_all
12941  ;;
12942
12943rdos*)
12944  lt_cv_deplibs_check_method=pass_all
12945  ;;
12946
12947solaris*)
12948  lt_cv_deplibs_check_method=pass_all
12949  ;;
12950
12951sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12952  lt_cv_deplibs_check_method=pass_all
12953  ;;
12954
12955sysv4 | sysv4.3*)
12956  case $host_vendor in
12957  motorola)
12958    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]'
12959    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12960    ;;
12961  ncr)
12962    lt_cv_deplibs_check_method=pass_all
12963    ;;
12964  sequent)
12965    lt_cv_file_magic_cmd='/bin/file'
12966    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12967    ;;
12968  sni)
12969    lt_cv_file_magic_cmd='/bin/file'
12970    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12971    lt_cv_file_magic_test_file=/lib/libc.so
12972    ;;
12973  siemens)
12974    lt_cv_deplibs_check_method=pass_all
12975    ;;
12976  pc)
12977    lt_cv_deplibs_check_method=pass_all
12978    ;;
12979  esac
12980  ;;
12981
12982tpf*)
12983  lt_cv_deplibs_check_method=pass_all
12984  ;;
12985esac
12986
12987fi
12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12989$as_echo "$lt_cv_deplibs_check_method" >&6; }
12990file_magic_cmd=$lt_cv_file_magic_cmd
12991deplibs_check_method=$lt_cv_deplibs_check_method
12992test -z "$deplibs_check_method" && deplibs_check_method=unknown
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005if test -n "$ac_tool_prefix"; then
13006  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13007set dummy ${ac_tool_prefix}ar; ac_word=$2
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13009$as_echo_n "checking for $ac_word... " >&6; }
13010if test "${ac_cv_prog_AR+set}" = set; then :
13011  $as_echo_n "(cached) " >&6
13012else
13013  if test -n "$AR"; then
13014  ac_cv_prog_AR="$AR" # Let the user override the test.
13015else
13016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017for as_dir in $PATH
13018do
13019  IFS=$as_save_IFS
13020  test -z "$as_dir" && as_dir=.
13021    for ac_exec_ext in '' $ac_executable_extensions; do
13022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13023    ac_cv_prog_AR="${ac_tool_prefix}ar"
13024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13025    break 2
13026  fi
13027done
13028  done
13029IFS=$as_save_IFS
13030
13031fi
13032fi
13033AR=$ac_cv_prog_AR
13034if test -n "$AR"; then
13035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13036$as_echo "$AR" >&6; }
13037else
13038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039$as_echo "no" >&6; }
13040fi
13041
13042
13043fi
13044if test -z "$ac_cv_prog_AR"; then
13045  ac_ct_AR=$AR
13046  # Extract the first word of "ar", so it can be a program name with args.
13047set dummy ar; ac_word=$2
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049$as_echo_n "checking for $ac_word... " >&6; }
13050if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13051  $as_echo_n "(cached) " >&6
13052else
13053  if test -n "$ac_ct_AR"; then
13054  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13055else
13056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057for as_dir in $PATH
13058do
13059  IFS=$as_save_IFS
13060  test -z "$as_dir" && as_dir=.
13061    for ac_exec_ext in '' $ac_executable_extensions; do
13062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13063    ac_cv_prog_ac_ct_AR="ar"
13064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065    break 2
13066  fi
13067done
13068  done
13069IFS=$as_save_IFS
13070
13071fi
13072fi
13073ac_ct_AR=$ac_cv_prog_ac_ct_AR
13074if test -n "$ac_ct_AR"; then
13075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13076$as_echo "$ac_ct_AR" >&6; }
13077else
13078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079$as_echo "no" >&6; }
13080fi
13081
13082  if test "x$ac_ct_AR" = x; then
13083    AR="false"
13084  else
13085    case $cross_compiling:$ac_tool_warned in
13086yes:)
13087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13089ac_tool_warned=yes ;;
13090esac
13091    AR=$ac_ct_AR
13092  fi
13093else
13094  AR="$ac_cv_prog_AR"
13095fi
13096
13097test -z "$AR" && AR=ar
13098test -z "$AR_FLAGS" && AR_FLAGS=cru
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110if test -n "$ac_tool_prefix"; then
13111  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13112set dummy ${ac_tool_prefix}strip; ac_word=$2
13113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114$as_echo_n "checking for $ac_word... " >&6; }
13115if test "${ac_cv_prog_STRIP+set}" = set; then :
13116  $as_echo_n "(cached) " >&6
13117else
13118  if test -n "$STRIP"; then
13119  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13120else
13121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122for as_dir in $PATH
13123do
13124  IFS=$as_save_IFS
13125  test -z "$as_dir" && as_dir=.
13126    for ac_exec_ext in '' $ac_executable_extensions; do
13127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13128    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13130    break 2
13131  fi
13132done
13133  done
13134IFS=$as_save_IFS
13135
13136fi
13137fi
13138STRIP=$ac_cv_prog_STRIP
13139if test -n "$STRIP"; then
13140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13141$as_echo "$STRIP" >&6; }
13142else
13143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144$as_echo "no" >&6; }
13145fi
13146
13147
13148fi
13149if test -z "$ac_cv_prog_STRIP"; then
13150  ac_ct_STRIP=$STRIP
13151  # Extract the first word of "strip", so it can be a program name with args.
13152set dummy strip; ac_word=$2
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13154$as_echo_n "checking for $ac_word... " >&6; }
13155if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13156  $as_echo_n "(cached) " >&6
13157else
13158  if test -n "$ac_ct_STRIP"; then
13159  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13160else
13161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13162for as_dir in $PATH
13163do
13164  IFS=$as_save_IFS
13165  test -z "$as_dir" && as_dir=.
13166    for ac_exec_ext in '' $ac_executable_extensions; do
13167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13168    ac_cv_prog_ac_ct_STRIP="strip"
13169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13170    break 2
13171  fi
13172done
13173  done
13174IFS=$as_save_IFS
13175
13176fi
13177fi
13178ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13179if test -n "$ac_ct_STRIP"; then
13180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13181$as_echo "$ac_ct_STRIP" >&6; }
13182else
13183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184$as_echo "no" >&6; }
13185fi
13186
13187  if test "x$ac_ct_STRIP" = x; then
13188    STRIP=":"
13189  else
13190    case $cross_compiling:$ac_tool_warned in
13191yes:)
13192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13194ac_tool_warned=yes ;;
13195esac
13196    STRIP=$ac_ct_STRIP
13197  fi
13198else
13199  STRIP="$ac_cv_prog_STRIP"
13200fi
13201
13202test -z "$STRIP" && STRIP=:
13203
13204
13205
13206
13207
13208
13209if test -n "$ac_tool_prefix"; then
13210  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13211set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13213$as_echo_n "checking for $ac_word... " >&6; }
13214if test "${ac_cv_prog_RANLIB+set}" = set; then :
13215  $as_echo_n "(cached) " >&6
13216else
13217  if test -n "$RANLIB"; then
13218  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13219else
13220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221for as_dir in $PATH
13222do
13223  IFS=$as_save_IFS
13224  test -z "$as_dir" && as_dir=.
13225    for ac_exec_ext in '' $ac_executable_extensions; do
13226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13227    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229    break 2
13230  fi
13231done
13232  done
13233IFS=$as_save_IFS
13234
13235fi
13236fi
13237RANLIB=$ac_cv_prog_RANLIB
13238if test -n "$RANLIB"; then
13239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13240$as_echo "$RANLIB" >&6; }
13241else
13242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243$as_echo "no" >&6; }
13244fi
13245
13246
13247fi
13248if test -z "$ac_cv_prog_RANLIB"; then
13249  ac_ct_RANLIB=$RANLIB
13250  # Extract the first word of "ranlib", so it can be a program name with args.
13251set dummy ranlib; ac_word=$2
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253$as_echo_n "checking for $ac_word... " >&6; }
13254if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13255  $as_echo_n "(cached) " >&6
13256else
13257  if test -n "$ac_ct_RANLIB"; then
13258  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13259else
13260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261for as_dir in $PATH
13262do
13263  IFS=$as_save_IFS
13264  test -z "$as_dir" && as_dir=.
13265    for ac_exec_ext in '' $ac_executable_extensions; do
13266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13267    ac_cv_prog_ac_ct_RANLIB="ranlib"
13268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269    break 2
13270  fi
13271done
13272  done
13273IFS=$as_save_IFS
13274
13275fi
13276fi
13277ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13278if test -n "$ac_ct_RANLIB"; then
13279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13280$as_echo "$ac_ct_RANLIB" >&6; }
13281else
13282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283$as_echo "no" >&6; }
13284fi
13285
13286  if test "x$ac_ct_RANLIB" = x; then
13287    RANLIB=":"
13288  else
13289    case $cross_compiling:$ac_tool_warned in
13290yes:)
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13293ac_tool_warned=yes ;;
13294esac
13295    RANLIB=$ac_ct_RANLIB
13296  fi
13297else
13298  RANLIB="$ac_cv_prog_RANLIB"
13299fi
13300
13301test -z "$RANLIB" && RANLIB=:
13302
13303
13304
13305
13306
13307
13308# Determine commands to create old-style static archives.
13309old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13310old_postinstall_cmds='chmod 644 $oldlib'
13311old_postuninstall_cmds=
13312
13313if test -n "$RANLIB"; then
13314  case $host_os in
13315  openbsd*)
13316    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13317    ;;
13318  *)
13319    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13320    ;;
13321  esac
13322  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13323fi
13324
13325case $host_os in
13326  darwin*)
13327    lock_old_archive_extraction=yes ;;
13328  *)
13329    lock_old_archive_extraction=no ;;
13330esac
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370# If no C compiler was specified, use CC.
13371LTCC=${LTCC-"$CC"}
13372
13373# If no C compiler flags were specified, use CFLAGS.
13374LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13375
13376# Allow CC to be a program name with arguments.
13377compiler=$CC
13378
13379
13380# Check for command to grab the raw symbol name followed by C symbol from nm.
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13382$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13383if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13384  $as_echo_n "(cached) " >&6
13385else
13386
13387# These are sane defaults that work on at least a few old systems.
13388# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13389
13390# Character class describing NM global symbol codes.
13391symcode='[BCDEGRST]'
13392
13393# Regexp to match symbols that can be accessed directly from C.
13394sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13395
13396# Define system-specific variables.
13397case $host_os in
13398aix*)
13399  symcode='[BCDT]'
13400  ;;
13401cygwin* | mingw* | pw32* | cegcc*)
13402  symcode='[ABCDGISTW]'
13403  ;;
13404hpux*)
13405  if test "$host_cpu" = ia64; then
13406    symcode='[ABCDEGRST]'
13407  fi
13408  ;;
13409irix* | nonstopux*)
13410  symcode='[BCDEGRST]'
13411  ;;
13412osf*)
13413  symcode='[BCDEGQRST]'
13414  ;;
13415solaris*)
13416  symcode='[BDRT]'
13417  ;;
13418sco3.2v5*)
13419  symcode='[DT]'
13420  ;;
13421sysv4.2uw2*)
13422  symcode='[DT]'
13423  ;;
13424sysv5* | sco5v6* | unixware* | OpenUNIX*)
13425  symcode='[ABDT]'
13426  ;;
13427sysv4)
13428  symcode='[DFNSTU]'
13429  ;;
13430esac
13431
13432# If we're using GNU nm, then use its standard symbol codes.
13433case `$NM -V 2>&1` in
13434*GNU* | *'with BFD'*)
13435  symcode='[ABCDGIRSTW]' ;;
13436esac
13437
13438# Transform an extracted symbol line into a proper C declaration.
13439# Some systems (esp. on ia64) link data and code symbols differently,
13440# so use this general approach.
13441lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13442
13443# Transform an extracted symbol line into symbol name and symbol address
13444lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13445lt_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'"
13446
13447# Handle CRLF in mingw tool chain
13448opt_cr=
13449case $build_os in
13450mingw*)
13451  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13452  ;;
13453esac
13454
13455# Try without a prefix underscore, then with it.
13456for ac_symprfx in "" "_"; do
13457
13458  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13459  symxfrm="\\1 $ac_symprfx\\2 \\2"
13460
13461  # Write the raw and C identifiers.
13462  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13463    # Fake it for dumpbin and say T for any non-static function
13464    # and D for any global variable.
13465    # Also find C++ and __fastcall symbols from MSVC++,
13466    # which start with @ or ?.
13467    lt_cv_sys_global_symbol_pipe="$AWK '"\
13468"     {last_section=section; section=\$ 3};"\
13469"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13470"     \$ 0!~/External *\|/{next};"\
13471"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13472"     {if(hide[section]) next};"\
13473"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13474"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13475"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13476"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13477"     ' prfx=^$ac_symprfx"
13478  else
13479    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13480  fi
13481
13482  # Check to see that the pipe works correctly.
13483  pipe_works=no
13484
13485  rm -f conftest*
13486  cat > conftest.$ac_ext <<_LT_EOF
13487#ifdef __cplusplus
13488extern "C" {
13489#endif
13490char nm_test_var;
13491void nm_test_func(void);
13492void nm_test_func(void){}
13493#ifdef __cplusplus
13494}
13495#endif
13496int main(){nm_test_var='a';nm_test_func();return(0);}
13497_LT_EOF
13498
13499  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13500  (eval $ac_compile) 2>&5
13501  ac_status=$?
13502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13503  test $ac_status = 0; }; then
13504    # Now try to grab the symbols.
13505    nlist=conftest.nm
13506    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13507  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13508  ac_status=$?
13509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13510  test $ac_status = 0; } && test -s "$nlist"; then
13511      # Try sorting and uniquifying the output.
13512      if sort "$nlist" | uniq > "$nlist"T; then
13513	mv -f "$nlist"T "$nlist"
13514      else
13515	rm -f "$nlist"T
13516      fi
13517
13518      # Make sure that we snagged all the symbols we need.
13519      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13520	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13521	  cat <<_LT_EOF > conftest.$ac_ext
13522#ifdef __cplusplus
13523extern "C" {
13524#endif
13525
13526_LT_EOF
13527	  # Now generate the symbol file.
13528	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13529
13530	  cat <<_LT_EOF >> conftest.$ac_ext
13531
13532/* The mapping between symbol names and symbols.  */
13533const struct {
13534  const char *name;
13535  void       *address;
13536}
13537lt__PROGRAM__LTX_preloaded_symbols[] =
13538{
13539  { "@PROGRAM@", (void *) 0 },
13540_LT_EOF
13541	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13542	  cat <<\_LT_EOF >> conftest.$ac_ext
13543  {0, (void *) 0}
13544};
13545
13546/* This works around a problem in FreeBSD linker */
13547#ifdef FREEBSD_WORKAROUND
13548static const void *lt_preloaded_setup() {
13549  return lt__PROGRAM__LTX_preloaded_symbols;
13550}
13551#endif
13552
13553#ifdef __cplusplus
13554}
13555#endif
13556_LT_EOF
13557	  # Now try linking the two files.
13558	  mv conftest.$ac_objext conftstm.$ac_objext
13559	  lt_save_LIBS="$LIBS"
13560	  lt_save_CFLAGS="$CFLAGS"
13561	  LIBS="conftstm.$ac_objext"
13562	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13563	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13564  (eval $ac_link) 2>&5
13565  ac_status=$?
13566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13567  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13568	    pipe_works=yes
13569	  fi
13570	  LIBS="$lt_save_LIBS"
13571	  CFLAGS="$lt_save_CFLAGS"
13572	else
13573	  echo "cannot find nm_test_func in $nlist" >&5
13574	fi
13575      else
13576	echo "cannot find nm_test_var in $nlist" >&5
13577      fi
13578    else
13579      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13580    fi
13581  else
13582    echo "$progname: failed program was:" >&5
13583    cat conftest.$ac_ext >&5
13584  fi
13585  rm -rf conftest* conftst*
13586
13587  # Do not use the global_symbol_pipe unless it works.
13588  if test "$pipe_works" = yes; then
13589    break
13590  else
13591    lt_cv_sys_global_symbol_pipe=
13592  fi
13593done
13594
13595fi
13596
13597if test -z "$lt_cv_sys_global_symbol_pipe"; then
13598  lt_cv_sys_global_symbol_to_cdecl=
13599fi
13600if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13602$as_echo "failed" >&6; }
13603else
13604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13605$as_echo "ok" >&6; }
13606fi
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629# Check whether --enable-libtool-lock was given.
13630if test "${enable_libtool_lock+set}" = set; then :
13631  enableval=$enable_libtool_lock;
13632fi
13633
13634test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13635
13636# Some flags need to be propagated to the compiler or linker for good
13637# libtool support.
13638case $host in
13639ia64-*-hpux*)
13640  # Find out which ABI we are using.
13641  echo 'int i;' > conftest.$ac_ext
13642  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13643  (eval $ac_compile) 2>&5
13644  ac_status=$?
13645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13646  test $ac_status = 0; }; then
13647    case `/usr/bin/file conftest.$ac_objext` in
13648      *ELF-32*)
13649	HPUX_IA64_MODE="32"
13650	;;
13651      *ELF-64*)
13652	HPUX_IA64_MODE="64"
13653	;;
13654    esac
13655  fi
13656  rm -rf conftest*
13657  ;;
13658*-*-irix6*)
13659  # Find out which ABI we are using.
13660  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13661  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13662  (eval $ac_compile) 2>&5
13663  ac_status=$?
13664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13665  test $ac_status = 0; }; then
13666    if test "$lt_cv_prog_gnu_ld" = yes; then
13667      case `/usr/bin/file conftest.$ac_objext` in
13668	*32-bit*)
13669	  LD="${LD-ld} -melf32bsmip"
13670	  ;;
13671	*N32*)
13672	  LD="${LD-ld} -melf32bmipn32"
13673	  ;;
13674	*64-bit*)
13675	  LD="${LD-ld} -melf64bmip"
13676	;;
13677      esac
13678    else
13679      case `/usr/bin/file conftest.$ac_objext` in
13680	*32-bit*)
13681	  LD="${LD-ld} -32"
13682	  ;;
13683	*N32*)
13684	  LD="${LD-ld} -n32"
13685	  ;;
13686	*64-bit*)
13687	  LD="${LD-ld} -64"
13688	  ;;
13689      esac
13690    fi
13691  fi
13692  rm -rf conftest*
13693  ;;
13694
13695x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13696s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13697  # Find out which ABI we are using.
13698  echo 'int i;' > conftest.$ac_ext
13699  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13700  (eval $ac_compile) 2>&5
13701  ac_status=$?
13702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13703  test $ac_status = 0; }; then
13704    case `/usr/bin/file conftest.o` in
13705      *32-bit*)
13706	case $host in
13707	  x86_64-*kfreebsd*-gnu)
13708	    LD="${LD-ld} -m elf_i386_fbsd"
13709	    ;;
13710	  x86_64-*linux*)
13711	    case `/usr/bin/file conftest.o` in
13712	      *x86-64*)
13713		LD="${LD-ld} -m elf32_x86_64"
13714		;;
13715	      *)
13716		LD="${LD-ld} -m elf_i386"
13717		;;
13718	    esac
13719	    ;;
13720	  powerpc64le-*linux*)
13721	    LD="${LD-ld} -m elf32lppclinux"
13722	    ;;
13723	  powerpc64-*linux*)
13724	    LD="${LD-ld} -m elf32ppclinux"
13725	    ;;
13726	  s390x-*linux*)
13727	    LD="${LD-ld} -m elf_s390"
13728	    ;;
13729	  sparc64-*linux*)
13730	    LD="${LD-ld} -m elf32_sparc"
13731	    ;;
13732	esac
13733	;;
13734      *64-bit*)
13735	case $host in
13736	  x86_64-*kfreebsd*-gnu)
13737	    LD="${LD-ld} -m elf_x86_64_fbsd"
13738	    ;;
13739	  x86_64-*linux*)
13740	    LD="${LD-ld} -m elf_x86_64"
13741	    ;;
13742	  powerpcle-*linux*)
13743	    LD="${LD-ld} -m elf64lppc"
13744	    ;;
13745	  powerpc-*linux*)
13746	    LD="${LD-ld} -m elf64ppc"
13747	    ;;
13748	  s390*-*linux*|s390*-*tpf*)
13749	    LD="${LD-ld} -m elf64_s390"
13750	    ;;
13751	  sparc*-*linux*)
13752	    LD="${LD-ld} -m elf64_sparc"
13753	    ;;
13754	esac
13755	;;
13756    esac
13757  fi
13758  rm -rf conftest*
13759  ;;
13760
13761*-*-sco3.2v5*)
13762  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13763  SAVE_CFLAGS="$CFLAGS"
13764  CFLAGS="$CFLAGS -belf"
13765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13766$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13767if test "${lt_cv_cc_needs_belf+set}" = set; then :
13768  $as_echo_n "(cached) " >&6
13769else
13770  ac_ext=c
13771ac_cpp='$CPP $CPPFLAGS'
13772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13774ac_compiler_gnu=$ac_cv_c_compiler_gnu
13775
13776     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777/* end confdefs.h.  */
13778
13779int
13780main ()
13781{
13782
13783  ;
13784  return 0;
13785}
13786_ACEOF
13787if ac_fn_c_try_link "$LINENO"; then :
13788  lt_cv_cc_needs_belf=yes
13789else
13790  lt_cv_cc_needs_belf=no
13791fi
13792rm -f core conftest.err conftest.$ac_objext \
13793    conftest$ac_exeext conftest.$ac_ext
13794     ac_ext=c
13795ac_cpp='$CPP $CPPFLAGS'
13796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13798ac_compiler_gnu=$ac_cv_c_compiler_gnu
13799
13800fi
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13802$as_echo "$lt_cv_cc_needs_belf" >&6; }
13803  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13804    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13805    CFLAGS="$SAVE_CFLAGS"
13806  fi
13807  ;;
13808sparc*-*solaris*)
13809  # Find out which ABI we are using.
13810  echo 'int i;' > conftest.$ac_ext
13811  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13812  (eval $ac_compile) 2>&5
13813  ac_status=$?
13814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13815  test $ac_status = 0; }; then
13816    case `/usr/bin/file conftest.o` in
13817    *64-bit*)
13818      case $lt_cv_prog_gnu_ld in
13819      yes*) LD="${LD-ld} -m elf64_sparc" ;;
13820      *)
13821	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13822	  LD="${LD-ld} -64"
13823	fi
13824	;;
13825      esac
13826      ;;
13827    esac
13828  fi
13829  rm -rf conftest*
13830  ;;
13831esac
13832
13833need_locks="$enable_libtool_lock"
13834
13835
13836  case $host_os in
13837    rhapsody* | darwin*)
13838    if test -n "$ac_tool_prefix"; then
13839  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13840set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13842$as_echo_n "checking for $ac_word... " >&6; }
13843if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13844  $as_echo_n "(cached) " >&6
13845else
13846  if test -n "$DSYMUTIL"; then
13847  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13848else
13849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850for as_dir in $PATH
13851do
13852  IFS=$as_save_IFS
13853  test -z "$as_dir" && as_dir=.
13854    for ac_exec_ext in '' $ac_executable_extensions; do
13855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13856    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13858    break 2
13859  fi
13860done
13861  done
13862IFS=$as_save_IFS
13863
13864fi
13865fi
13866DSYMUTIL=$ac_cv_prog_DSYMUTIL
13867if test -n "$DSYMUTIL"; then
13868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13869$as_echo "$DSYMUTIL" >&6; }
13870else
13871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872$as_echo "no" >&6; }
13873fi
13874
13875
13876fi
13877if test -z "$ac_cv_prog_DSYMUTIL"; then
13878  ac_ct_DSYMUTIL=$DSYMUTIL
13879  # Extract the first word of "dsymutil", so it can be a program name with args.
13880set dummy dsymutil; ac_word=$2
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882$as_echo_n "checking for $ac_word... " >&6; }
13883if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13884  $as_echo_n "(cached) " >&6
13885else
13886  if test -n "$ac_ct_DSYMUTIL"; then
13887  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13888else
13889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890for as_dir in $PATH
13891do
13892  IFS=$as_save_IFS
13893  test -z "$as_dir" && as_dir=.
13894    for ac_exec_ext in '' $ac_executable_extensions; do
13895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13896    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13898    break 2
13899  fi
13900done
13901  done
13902IFS=$as_save_IFS
13903
13904fi
13905fi
13906ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13907if test -n "$ac_ct_DSYMUTIL"; then
13908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13909$as_echo "$ac_ct_DSYMUTIL" >&6; }
13910else
13911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912$as_echo "no" >&6; }
13913fi
13914
13915  if test "x$ac_ct_DSYMUTIL" = x; then
13916    DSYMUTIL=":"
13917  else
13918    case $cross_compiling:$ac_tool_warned in
13919yes:)
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13922ac_tool_warned=yes ;;
13923esac
13924    DSYMUTIL=$ac_ct_DSYMUTIL
13925  fi
13926else
13927  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13928fi
13929
13930    if test -n "$ac_tool_prefix"; then
13931  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13932set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13934$as_echo_n "checking for $ac_word... " >&6; }
13935if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13936  $as_echo_n "(cached) " >&6
13937else
13938  if test -n "$NMEDIT"; then
13939  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13940else
13941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942for as_dir in $PATH
13943do
13944  IFS=$as_save_IFS
13945  test -z "$as_dir" && as_dir=.
13946    for ac_exec_ext in '' $ac_executable_extensions; do
13947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13948    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13950    break 2
13951  fi
13952done
13953  done
13954IFS=$as_save_IFS
13955
13956fi
13957fi
13958NMEDIT=$ac_cv_prog_NMEDIT
13959if test -n "$NMEDIT"; then
13960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13961$as_echo "$NMEDIT" >&6; }
13962else
13963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964$as_echo "no" >&6; }
13965fi
13966
13967
13968fi
13969if test -z "$ac_cv_prog_NMEDIT"; then
13970  ac_ct_NMEDIT=$NMEDIT
13971  # Extract the first word of "nmedit", so it can be a program name with args.
13972set dummy nmedit; ac_word=$2
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13974$as_echo_n "checking for $ac_word... " >&6; }
13975if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13976  $as_echo_n "(cached) " >&6
13977else
13978  if test -n "$ac_ct_NMEDIT"; then
13979  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13980else
13981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982for as_dir in $PATH
13983do
13984  IFS=$as_save_IFS
13985  test -z "$as_dir" && as_dir=.
13986    for ac_exec_ext in '' $ac_executable_extensions; do
13987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13988    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13990    break 2
13991  fi
13992done
13993  done
13994IFS=$as_save_IFS
13995
13996fi
13997fi
13998ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13999if test -n "$ac_ct_NMEDIT"; then
14000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14001$as_echo "$ac_ct_NMEDIT" >&6; }
14002else
14003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004$as_echo "no" >&6; }
14005fi
14006
14007  if test "x$ac_ct_NMEDIT" = x; then
14008    NMEDIT=":"
14009  else
14010    case $cross_compiling:$ac_tool_warned in
14011yes:)
14012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14014ac_tool_warned=yes ;;
14015esac
14016    NMEDIT=$ac_ct_NMEDIT
14017  fi
14018else
14019  NMEDIT="$ac_cv_prog_NMEDIT"
14020fi
14021
14022    if test -n "$ac_tool_prefix"; then
14023  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14024set dummy ${ac_tool_prefix}lipo; ac_word=$2
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14026$as_echo_n "checking for $ac_word... " >&6; }
14027if test "${ac_cv_prog_LIPO+set}" = set; then :
14028  $as_echo_n "(cached) " >&6
14029else
14030  if test -n "$LIPO"; then
14031  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14032else
14033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14034for as_dir in $PATH
14035do
14036  IFS=$as_save_IFS
14037  test -z "$as_dir" && as_dir=.
14038    for ac_exec_ext in '' $ac_executable_extensions; do
14039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14040    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14042    break 2
14043  fi
14044done
14045  done
14046IFS=$as_save_IFS
14047
14048fi
14049fi
14050LIPO=$ac_cv_prog_LIPO
14051if test -n "$LIPO"; then
14052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14053$as_echo "$LIPO" >&6; }
14054else
14055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14056$as_echo "no" >&6; }
14057fi
14058
14059
14060fi
14061if test -z "$ac_cv_prog_LIPO"; then
14062  ac_ct_LIPO=$LIPO
14063  # Extract the first word of "lipo", so it can be a program name with args.
14064set dummy lipo; ac_word=$2
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14066$as_echo_n "checking for $ac_word... " >&6; }
14067if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14068  $as_echo_n "(cached) " >&6
14069else
14070  if test -n "$ac_ct_LIPO"; then
14071  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14072else
14073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14074for as_dir in $PATH
14075do
14076  IFS=$as_save_IFS
14077  test -z "$as_dir" && as_dir=.
14078    for ac_exec_ext in '' $ac_executable_extensions; do
14079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14080    ac_cv_prog_ac_ct_LIPO="lipo"
14081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14082    break 2
14083  fi
14084done
14085  done
14086IFS=$as_save_IFS
14087
14088fi
14089fi
14090ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14091if test -n "$ac_ct_LIPO"; then
14092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14093$as_echo "$ac_ct_LIPO" >&6; }
14094else
14095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14096$as_echo "no" >&6; }
14097fi
14098
14099  if test "x$ac_ct_LIPO" = x; then
14100    LIPO=":"
14101  else
14102    case $cross_compiling:$ac_tool_warned in
14103yes:)
14104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14106ac_tool_warned=yes ;;
14107esac
14108    LIPO=$ac_ct_LIPO
14109  fi
14110else
14111  LIPO="$ac_cv_prog_LIPO"
14112fi
14113
14114    if test -n "$ac_tool_prefix"; then
14115  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14116set dummy ${ac_tool_prefix}otool; ac_word=$2
14117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14118$as_echo_n "checking for $ac_word... " >&6; }
14119if test "${ac_cv_prog_OTOOL+set}" = set; then :
14120  $as_echo_n "(cached) " >&6
14121else
14122  if test -n "$OTOOL"; then
14123  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14124else
14125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126for as_dir in $PATH
14127do
14128  IFS=$as_save_IFS
14129  test -z "$as_dir" && as_dir=.
14130    for ac_exec_ext in '' $ac_executable_extensions; do
14131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14132    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14134    break 2
14135  fi
14136done
14137  done
14138IFS=$as_save_IFS
14139
14140fi
14141fi
14142OTOOL=$ac_cv_prog_OTOOL
14143if test -n "$OTOOL"; then
14144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14145$as_echo "$OTOOL" >&6; }
14146else
14147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148$as_echo "no" >&6; }
14149fi
14150
14151
14152fi
14153if test -z "$ac_cv_prog_OTOOL"; then
14154  ac_ct_OTOOL=$OTOOL
14155  # Extract the first word of "otool", so it can be a program name with args.
14156set dummy otool; ac_word=$2
14157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14158$as_echo_n "checking for $ac_word... " >&6; }
14159if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14160  $as_echo_n "(cached) " >&6
14161else
14162  if test -n "$ac_ct_OTOOL"; then
14163  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14164else
14165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14166for as_dir in $PATH
14167do
14168  IFS=$as_save_IFS
14169  test -z "$as_dir" && as_dir=.
14170    for ac_exec_ext in '' $ac_executable_extensions; do
14171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14172    ac_cv_prog_ac_ct_OTOOL="otool"
14173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14174    break 2
14175  fi
14176done
14177  done
14178IFS=$as_save_IFS
14179
14180fi
14181fi
14182ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14183if test -n "$ac_ct_OTOOL"; then
14184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14185$as_echo "$ac_ct_OTOOL" >&6; }
14186else
14187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188$as_echo "no" >&6; }
14189fi
14190
14191  if test "x$ac_ct_OTOOL" = x; then
14192    OTOOL=":"
14193  else
14194    case $cross_compiling:$ac_tool_warned in
14195yes:)
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14198ac_tool_warned=yes ;;
14199esac
14200    OTOOL=$ac_ct_OTOOL
14201  fi
14202else
14203  OTOOL="$ac_cv_prog_OTOOL"
14204fi
14205
14206    if test -n "$ac_tool_prefix"; then
14207  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14208set dummy ${ac_tool_prefix}otool64; ac_word=$2
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14210$as_echo_n "checking for $ac_word... " >&6; }
14211if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14212  $as_echo_n "(cached) " >&6
14213else
14214  if test -n "$OTOOL64"; then
14215  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14216else
14217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218for as_dir in $PATH
14219do
14220  IFS=$as_save_IFS
14221  test -z "$as_dir" && as_dir=.
14222    for ac_exec_ext in '' $ac_executable_extensions; do
14223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14224    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14226    break 2
14227  fi
14228done
14229  done
14230IFS=$as_save_IFS
14231
14232fi
14233fi
14234OTOOL64=$ac_cv_prog_OTOOL64
14235if test -n "$OTOOL64"; then
14236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14237$as_echo "$OTOOL64" >&6; }
14238else
14239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14240$as_echo "no" >&6; }
14241fi
14242
14243
14244fi
14245if test -z "$ac_cv_prog_OTOOL64"; then
14246  ac_ct_OTOOL64=$OTOOL64
14247  # Extract the first word of "otool64", so it can be a program name with args.
14248set dummy otool64; ac_word=$2
14249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14250$as_echo_n "checking for $ac_word... " >&6; }
14251if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14252  $as_echo_n "(cached) " >&6
14253else
14254  if test -n "$ac_ct_OTOOL64"; then
14255  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14256else
14257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14258for as_dir in $PATH
14259do
14260  IFS=$as_save_IFS
14261  test -z "$as_dir" && as_dir=.
14262    for ac_exec_ext in '' $ac_executable_extensions; do
14263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14264    ac_cv_prog_ac_ct_OTOOL64="otool64"
14265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14266    break 2
14267  fi
14268done
14269  done
14270IFS=$as_save_IFS
14271
14272fi
14273fi
14274ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14275if test -n "$ac_ct_OTOOL64"; then
14276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14277$as_echo "$ac_ct_OTOOL64" >&6; }
14278else
14279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14280$as_echo "no" >&6; }
14281fi
14282
14283  if test "x$ac_ct_OTOOL64" = x; then
14284    OTOOL64=":"
14285  else
14286    case $cross_compiling:$ac_tool_warned in
14287yes:)
14288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14290ac_tool_warned=yes ;;
14291esac
14292    OTOOL64=$ac_ct_OTOOL64
14293  fi
14294else
14295  OTOOL64="$ac_cv_prog_OTOOL64"
14296fi
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14325$as_echo_n "checking for -single_module linker flag... " >&6; }
14326if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14327  $as_echo_n "(cached) " >&6
14328else
14329  lt_cv_apple_cc_single_mod=no
14330      if test -z "${LT_MULTI_MODULE}"; then
14331	# By default we will add the -single_module flag. You can override
14332	# by either setting the environment variable LT_MULTI_MODULE
14333	# non-empty at configure time, or by adding -multi_module to the
14334	# link flags.
14335	rm -rf libconftest.dylib*
14336	echo "int foo(void){return 1;}" > conftest.c
14337	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14338-dynamiclib -Wl,-single_module conftest.c" >&5
14339	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14340	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14341        _lt_result=$?
14342	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14343	  lt_cv_apple_cc_single_mod=yes
14344	else
14345	  cat conftest.err >&5
14346	fi
14347	rm -rf libconftest.dylib*
14348	rm -f conftest.*
14349      fi
14350fi
14351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14352$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14354$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14355if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14356  $as_echo_n "(cached) " >&6
14357else
14358  lt_cv_ld_exported_symbols_list=no
14359      save_LDFLAGS=$LDFLAGS
14360      echo "_main" > conftest.sym
14361      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14362      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363/* end confdefs.h.  */
14364
14365int
14366main ()
14367{
14368
14369  ;
14370  return 0;
14371}
14372_ACEOF
14373if ac_fn_c_try_link "$LINENO"; then :
14374  lt_cv_ld_exported_symbols_list=yes
14375else
14376  lt_cv_ld_exported_symbols_list=no
14377fi
14378rm -f core conftest.err conftest.$ac_objext \
14379    conftest$ac_exeext conftest.$ac_ext
14380	LDFLAGS="$save_LDFLAGS"
14381
14382fi
14383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14384$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14385    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14386$as_echo_n "checking for -force_load linker flag... " >&6; }
14387if test "${lt_cv_ld_force_load+set}" = set; then :
14388  $as_echo_n "(cached) " >&6
14389else
14390  lt_cv_ld_force_load=no
14391      cat > conftest.c << _LT_EOF
14392int forced_loaded() { return 2;}
14393_LT_EOF
14394      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14395      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14396      echo "$AR cru libconftest.a conftest.o" >&5
14397      $AR cru libconftest.a conftest.o 2>&5
14398      cat > conftest.c << _LT_EOF
14399int main() { return 0;}
14400_LT_EOF
14401      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14402      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14403      _lt_result=$?
14404      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14405	lt_cv_ld_force_load=yes
14406      else
14407	cat conftest.err >&5
14408      fi
14409        rm -f conftest.err libconftest.a conftest conftest.c
14410        rm -rf conftest.dSYM
14411
14412fi
14413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14414$as_echo "$lt_cv_ld_force_load" >&6; }
14415    case $host_os in
14416    rhapsody* | darwin1.[012])
14417      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14418    darwin1.*)
14419      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14420    darwin*) # darwin 5.x on
14421      # if running on 10.5 or later, the deployment target defaults
14422      # to the OS version, if on x86, and 10.4, the deployment
14423      # target defaults to 10.4. Don't you love it?
14424      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14425	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14426	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14427	10.[012]*)
14428	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14429	10.*)
14430	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14431      esac
14432    ;;
14433  esac
14434    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14435      _lt_dar_single_mod='$single_module'
14436    fi
14437    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14438      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14439    else
14440      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14441    fi
14442    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14443      _lt_dsymutil='~$DSYMUTIL $lib || :'
14444    else
14445      _lt_dsymutil=
14446    fi
14447    ;;
14448  esac
14449
14450for ac_header in dlfcn.h
14451do :
14452  ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14453if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14454  cat >>confdefs.h <<_ACEOF
14455#define HAVE_DLFCN_H 1
14456_ACEOF
14457
14458fi
14459done
14460
14461
14462
14463
14464
14465# Set options
14466
14467
14468
14469        enable_dlopen=no
14470
14471
14472  enable_win32_dll=no
14473
14474
14475            # Check whether --enable-shared was given.
14476if test "${enable_shared+set}" = set; then :
14477  enableval=$enable_shared; p=${PACKAGE-default}
14478    case $enableval in
14479    yes) enable_shared=yes ;;
14480    no) enable_shared=no ;;
14481    *)
14482      enable_shared=no
14483      # Look at the argument we got.  We use all the common list separators.
14484      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14485      for pkg in $enableval; do
14486	IFS="$lt_save_ifs"
14487	if test "X$pkg" = "X$p"; then
14488	  enable_shared=yes
14489	fi
14490      done
14491      IFS="$lt_save_ifs"
14492      ;;
14493    esac
14494else
14495  enable_shared=yes
14496fi
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506  # Check whether --enable-static was given.
14507if test "${enable_static+set}" = set; then :
14508  enableval=$enable_static; p=${PACKAGE-default}
14509    case $enableval in
14510    yes) enable_static=yes ;;
14511    no) enable_static=no ;;
14512    *)
14513     enable_static=no
14514      # Look at the argument we got.  We use all the common list separators.
14515      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14516      for pkg in $enableval; do
14517	IFS="$lt_save_ifs"
14518	if test "X$pkg" = "X$p"; then
14519	  enable_static=yes
14520	fi
14521      done
14522      IFS="$lt_save_ifs"
14523      ;;
14524    esac
14525else
14526  enable_static=yes
14527fi
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538# Check whether --with-pic was given.
14539if test "${with_pic+set}" = set; then :
14540  withval=$with_pic; pic_mode="$withval"
14541else
14542  pic_mode=default
14543fi
14544
14545
14546test -z "$pic_mode" && pic_mode=default
14547
14548
14549
14550
14551
14552
14553
14554  # Check whether --enable-fast-install was given.
14555if test "${enable_fast_install+set}" = set; then :
14556  enableval=$enable_fast_install; p=${PACKAGE-default}
14557    case $enableval in
14558    yes) enable_fast_install=yes ;;
14559    no) enable_fast_install=no ;;
14560    *)
14561      enable_fast_install=no
14562      # Look at the argument we got.  We use all the common list separators.
14563      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14564      for pkg in $enableval; do
14565	IFS="$lt_save_ifs"
14566	if test "X$pkg" = "X$p"; then
14567	  enable_fast_install=yes
14568	fi
14569      done
14570      IFS="$lt_save_ifs"
14571      ;;
14572    esac
14573else
14574  enable_fast_install=yes
14575fi
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587# This can be used to rebuild libtool when needed
14588LIBTOOL_DEPS="$ltmain"
14589
14590# Always use our own libtool.
14591LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618test -z "$LN_S" && LN_S="ln -s"
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633if test -n "${ZSH_VERSION+set}" ; then
14634   setopt NO_GLOB_SUBST
14635fi
14636
14637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14638$as_echo_n "checking for objdir... " >&6; }
14639if test "${lt_cv_objdir+set}" = set; then :
14640  $as_echo_n "(cached) " >&6
14641else
14642  rm -f .libs 2>/dev/null
14643mkdir .libs 2>/dev/null
14644if test -d .libs; then
14645  lt_cv_objdir=.libs
14646else
14647  # MS-DOS does not allow filenames that begin with a dot.
14648  lt_cv_objdir=_libs
14649fi
14650rmdir .libs 2>/dev/null
14651fi
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14653$as_echo "$lt_cv_objdir" >&6; }
14654objdir=$lt_cv_objdir
14655
14656
14657
14658
14659
14660cat >>confdefs.h <<_ACEOF
14661#define LT_OBJDIR "$lt_cv_objdir/"
14662_ACEOF
14663
14664
14665
14666
14667case $host_os in
14668aix3*)
14669  # AIX sometimes has problems with the GCC collect2 program.  For some
14670  # reason, if we set the COLLECT_NAMES environment variable, the problems
14671  # vanish in a puff of smoke.
14672  if test "X${COLLECT_NAMES+set}" != Xset; then
14673    COLLECT_NAMES=
14674    export COLLECT_NAMES
14675  fi
14676  ;;
14677esac
14678
14679# Global variables:
14680ofile=libtool
14681can_build_shared=yes
14682
14683# All known linkers require a `.a' archive for static linking (except MSVC,
14684# which needs '.lib').
14685libext=a
14686
14687with_gnu_ld="$lt_cv_prog_gnu_ld"
14688
14689old_CC="$CC"
14690old_CFLAGS="$CFLAGS"
14691
14692# Set sane defaults for various variables
14693test -z "$CC" && CC=cc
14694test -z "$LTCC" && LTCC=$CC
14695test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14696test -z "$LD" && LD=ld
14697test -z "$ac_objext" && ac_objext=o
14698
14699for cc_temp in $compiler""; do
14700  case $cc_temp in
14701    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14702    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14703    \-*) ;;
14704    *) break;;
14705  esac
14706done
14707cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14708
14709
14710# Only perform the check for file, if the check method requires it
14711test -z "$MAGIC_CMD" && MAGIC_CMD=file
14712case $deplibs_check_method in
14713file_magic*)
14714  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14715    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14716$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14717if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14718  $as_echo_n "(cached) " >&6
14719else
14720  case $MAGIC_CMD in
14721[\\/*] |  ?:[\\/]*)
14722  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14723  ;;
14724*)
14725  lt_save_MAGIC_CMD="$MAGIC_CMD"
14726  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14727  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14728  for ac_dir in $ac_dummy; do
14729    IFS="$lt_save_ifs"
14730    test -z "$ac_dir" && ac_dir=.
14731    if test -f $ac_dir/${ac_tool_prefix}file; then
14732      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14733      if test -n "$file_magic_test_file"; then
14734	case $deplibs_check_method in
14735	"file_magic "*)
14736	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14737	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14738	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14739	    $EGREP "$file_magic_regex" > /dev/null; then
14740	    :
14741	  else
14742	    cat <<_LT_EOF 1>&2
14743
14744*** Warning: the command libtool uses to detect shared libraries,
14745*** $file_magic_cmd, produces output that libtool cannot recognize.
14746*** The result is that libtool may fail to recognize shared libraries
14747*** as such.  This will affect the creation of libtool libraries that
14748*** depend on shared libraries, but programs linked with such libtool
14749*** libraries will work regardless of this problem.  Nevertheless, you
14750*** may want to report the problem to your system manager and/or to
14751*** bug-libtool@gnu.org
14752
14753_LT_EOF
14754	  fi ;;
14755	esac
14756      fi
14757      break
14758    fi
14759  done
14760  IFS="$lt_save_ifs"
14761  MAGIC_CMD="$lt_save_MAGIC_CMD"
14762  ;;
14763esac
14764fi
14765
14766MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14767if test -n "$MAGIC_CMD"; then
14768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14769$as_echo "$MAGIC_CMD" >&6; }
14770else
14771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772$as_echo "no" >&6; }
14773fi
14774
14775
14776
14777
14778
14779if test -z "$lt_cv_path_MAGIC_CMD"; then
14780  if test -n "$ac_tool_prefix"; then
14781    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14782$as_echo_n "checking for file... " >&6; }
14783if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14784  $as_echo_n "(cached) " >&6
14785else
14786  case $MAGIC_CMD in
14787[\\/*] |  ?:[\\/]*)
14788  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14789  ;;
14790*)
14791  lt_save_MAGIC_CMD="$MAGIC_CMD"
14792  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14793  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14794  for ac_dir in $ac_dummy; do
14795    IFS="$lt_save_ifs"
14796    test -z "$ac_dir" && ac_dir=.
14797    if test -f $ac_dir/file; then
14798      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14799      if test -n "$file_magic_test_file"; then
14800	case $deplibs_check_method in
14801	"file_magic "*)
14802	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14803	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14804	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14805	    $EGREP "$file_magic_regex" > /dev/null; then
14806	    :
14807	  else
14808	    cat <<_LT_EOF 1>&2
14809
14810*** Warning: the command libtool uses to detect shared libraries,
14811*** $file_magic_cmd, produces output that libtool cannot recognize.
14812*** The result is that libtool may fail to recognize shared libraries
14813*** as such.  This will affect the creation of libtool libraries that
14814*** depend on shared libraries, but programs linked with such libtool
14815*** libraries will work regardless of this problem.  Nevertheless, you
14816*** may want to report the problem to your system manager and/or to
14817*** bug-libtool@gnu.org
14818
14819_LT_EOF
14820	  fi ;;
14821	esac
14822      fi
14823      break
14824    fi
14825  done
14826  IFS="$lt_save_ifs"
14827  MAGIC_CMD="$lt_save_MAGIC_CMD"
14828  ;;
14829esac
14830fi
14831
14832MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14833if test -n "$MAGIC_CMD"; then
14834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14835$as_echo "$MAGIC_CMD" >&6; }
14836else
14837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14838$as_echo "no" >&6; }
14839fi
14840
14841
14842  else
14843    MAGIC_CMD=:
14844  fi
14845fi
14846
14847  fi
14848  ;;
14849esac
14850
14851# Use C for the default configuration in the libtool script
14852
14853lt_save_CC="$CC"
14854ac_ext=c
14855ac_cpp='$CPP $CPPFLAGS'
14856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14858ac_compiler_gnu=$ac_cv_c_compiler_gnu
14859
14860
14861# Source file extension for C test sources.
14862ac_ext=c
14863
14864# Object file extension for compiled C test sources.
14865objext=o
14866objext=$objext
14867
14868# Code to be used in simple compile tests
14869lt_simple_compile_test_code="int some_variable = 0;"
14870
14871# Code to be used in simple link tests
14872lt_simple_link_test_code='int main(){return(0);}'
14873
14874
14875
14876
14877
14878
14879
14880# If no C compiler was specified, use CC.
14881LTCC=${LTCC-"$CC"}
14882
14883# If no C compiler flags were specified, use CFLAGS.
14884LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14885
14886# Allow CC to be a program name with arguments.
14887compiler=$CC
14888
14889# Save the default compiler, since it gets overwritten when the other
14890# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14891compiler_DEFAULT=$CC
14892
14893# save warnings/boilerplate of simple test code
14894ac_outfile=conftest.$ac_objext
14895echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14896eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14897_lt_compiler_boilerplate=`cat conftest.err`
14898$RM conftest*
14899
14900ac_outfile=conftest.$ac_objext
14901echo "$lt_simple_link_test_code" >conftest.$ac_ext
14902eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14903_lt_linker_boilerplate=`cat conftest.err`
14904$RM -r conftest*
14905
14906
14907## CAVEAT EMPTOR:
14908## There is no encapsulation within the following macros, do not change
14909## the running order or otherwise move them around unless you know exactly
14910## what you are doing...
14911if test -n "$compiler"; then
14912
14913lt_prog_compiler_no_builtin_flag=
14914
14915if test "$GCC" = yes; then
14916  case $cc_basename in
14917  nvcc*)
14918    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14919  *)
14920    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14921  esac
14922
14923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14924$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14925if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14926  $as_echo_n "(cached) " >&6
14927else
14928  lt_cv_prog_compiler_rtti_exceptions=no
14929   ac_outfile=conftest.$ac_objext
14930   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14931   lt_compiler_flag="-fno-rtti -fno-exceptions"
14932   # Insert the option either (1) after the last *FLAGS variable, or
14933   # (2) before a word containing "conftest.", or (3) at the end.
14934   # Note that $ac_compile itself does not contain backslashes and begins
14935   # with a dollar sign (not a hyphen), so the echo should work correctly.
14936   # The option is referenced via a variable to avoid confusing sed.
14937   lt_compile=`echo "$ac_compile" | $SED \
14938   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14939   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14940   -e 's:$: $lt_compiler_flag:'`
14941   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14942   (eval "$lt_compile" 2>conftest.err)
14943   ac_status=$?
14944   cat conftest.err >&5
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   if (exit $ac_status) && test -s "$ac_outfile"; then
14947     # The compiler can only warn and ignore the option if not recognized
14948     # So say no if there are warnings other than the usual output.
14949     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14950     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14951     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14952       lt_cv_prog_compiler_rtti_exceptions=yes
14953     fi
14954   fi
14955   $RM conftest*
14956
14957fi
14958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14959$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14960
14961if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14962    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14963else
14964    :
14965fi
14966
14967fi
14968
14969
14970
14971
14972
14973
14974  lt_prog_compiler_wl=
14975lt_prog_compiler_pic=
14976lt_prog_compiler_static=
14977
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14979$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14980
14981  if test "$GCC" = yes; then
14982    lt_prog_compiler_wl='-Wl,'
14983    lt_prog_compiler_static='-static'
14984
14985    case $host_os in
14986      aix*)
14987      # All AIX code is PIC.
14988      if test "$host_cpu" = ia64; then
14989	# AIX 5 now supports IA64 processor
14990	lt_prog_compiler_static='-Bstatic'
14991      fi
14992      lt_prog_compiler_pic='-fPIC'
14993      ;;
14994
14995    amigaos*)
14996      case $host_cpu in
14997      powerpc)
14998            # see comment about AmigaOS4 .so support
14999            lt_prog_compiler_pic='-fPIC'
15000        ;;
15001      m68k)
15002            # FIXME: we need at least 68020 code to build shared libraries, but
15003            # adding the `-m68020' flag to GCC prevents building anything better,
15004            # like `-m68040'.
15005            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15006        ;;
15007      esac
15008      ;;
15009
15010    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15011      # PIC is the default for these OSes.
15012      ;;
15013
15014    mingw* | cygwin* | pw32* | os2* | cegcc*)
15015      # This hack is so that the source file can tell whether it is being
15016      # built for inclusion in a dll (and should export symbols for example).
15017      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15018      # (--disable-auto-import) libraries
15019      lt_prog_compiler_pic='-DDLL_EXPORT'
15020      ;;
15021
15022    darwin* | rhapsody*)
15023      # PIC is the default on this platform
15024      # Common symbols not allowed in MH_DYLIB files
15025      lt_prog_compiler_pic='-fno-common'
15026      ;;
15027
15028    haiku*)
15029      # PIC is the default for Haiku.
15030      # The "-static" flag exists, but is broken.
15031      lt_prog_compiler_static=
15032      ;;
15033
15034    hpux*)
15035      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15036      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15037      # sets the default TLS model and affects inlining.
15038      case $host_cpu in
15039      hppa*64*)
15040	# +Z the default
15041	;;
15042      *)
15043	lt_prog_compiler_pic='-fPIC'
15044	;;
15045      esac
15046      ;;
15047
15048    interix[3-9]*)
15049      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15050      # Instead, we relocate shared libraries at runtime.
15051      ;;
15052
15053    msdosdjgpp*)
15054      # Just because we use GCC doesn't mean we suddenly get shared libraries
15055      # on systems that don't support them.
15056      lt_prog_compiler_can_build_shared=no
15057      enable_shared=no
15058      ;;
15059
15060    *nto* | *qnx*)
15061      # QNX uses GNU C++, but need to define -shared option too, otherwise
15062      # it will coredump.
15063      lt_prog_compiler_pic='-fPIC -shared'
15064      ;;
15065
15066    sysv4*MP*)
15067      if test -d /usr/nec; then
15068	lt_prog_compiler_pic=-Kconform_pic
15069      fi
15070      ;;
15071
15072    *)
15073      lt_prog_compiler_pic='-fPIC'
15074      ;;
15075    esac
15076
15077    case $cc_basename in
15078    nvcc*) # Cuda Compiler Driver 2.2
15079      lt_prog_compiler_wl='-Xlinker '
15080      lt_prog_compiler_pic='-Xcompiler -fPIC'
15081      ;;
15082    esac
15083  else
15084    # PORTME Check for flag to pass linker flags through the system compiler.
15085    case $host_os in
15086    aix*)
15087      lt_prog_compiler_wl='-Wl,'
15088      if test "$host_cpu" = ia64; then
15089	# AIX 5 now supports IA64 processor
15090	lt_prog_compiler_static='-Bstatic'
15091      else
15092	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15093      fi
15094      ;;
15095
15096    mingw* | cygwin* | pw32* | os2* | cegcc*)
15097      # This hack is so that the source file can tell whether it is being
15098      # built for inclusion in a dll (and should export symbols for example).
15099      lt_prog_compiler_pic='-DDLL_EXPORT'
15100      ;;
15101
15102    hpux9* | hpux10* | hpux11*)
15103      lt_prog_compiler_wl='-Wl,'
15104      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15105      # not for PA HP-UX.
15106      case $host_cpu in
15107      hppa*64*|ia64*)
15108	# +Z the default
15109	;;
15110      *)
15111	lt_prog_compiler_pic='+Z'
15112	;;
15113      esac
15114      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15115      lt_prog_compiler_static='${wl}-a ${wl}archive'
15116      ;;
15117
15118    irix5* | irix6* | nonstopux*)
15119      lt_prog_compiler_wl='-Wl,'
15120      # PIC (with -KPIC) is the default.
15121      lt_prog_compiler_static='-non_shared'
15122      ;;
15123
15124    linux* | k*bsd*-gnu | kopensolaris*-gnu)
15125      case $cc_basename in
15126      # old Intel for x86_64 which still supported -KPIC.
15127      ecc*)
15128	lt_prog_compiler_wl='-Wl,'
15129	lt_prog_compiler_pic='-KPIC'
15130	lt_prog_compiler_static='-static'
15131        ;;
15132      # icc used to be incompatible with GCC.
15133      # ICC 10 doesn't accept -KPIC any more.
15134      icc* | ifort*)
15135	lt_prog_compiler_wl='-Wl,'
15136	lt_prog_compiler_pic='-fPIC'
15137	lt_prog_compiler_static='-static'
15138        ;;
15139      # Lahey Fortran 8.1.
15140      lf95*)
15141	lt_prog_compiler_wl='-Wl,'
15142	lt_prog_compiler_pic='--shared'
15143	lt_prog_compiler_static='--static'
15144	;;
15145      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15146        # Portland Group compilers (*not* the Pentium gcc compiler,
15147	# which looks to be a dead project)
15148	lt_prog_compiler_wl='-Wl,'
15149	lt_prog_compiler_pic='-fpic'
15150	lt_prog_compiler_static='-Bstatic'
15151        ;;
15152      ccc*)
15153        lt_prog_compiler_wl='-Wl,'
15154        # All Alpha code is PIC.
15155        lt_prog_compiler_static='-non_shared'
15156        ;;
15157      xl* | bgxl* | bgf* | mpixl*)
15158	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15159	lt_prog_compiler_wl='-Wl,'
15160	lt_prog_compiler_pic='-qpic'
15161	lt_prog_compiler_static='-qstaticlink'
15162	;;
15163      *)
15164	case `$CC -V 2>&1 | sed 5q` in
15165	*Sun\ F* | *Sun*Fortran*)
15166	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15167	  lt_prog_compiler_pic='-KPIC'
15168	  lt_prog_compiler_static='-Bstatic'
15169	  lt_prog_compiler_wl=''
15170	  ;;
15171	*Sun\ C*)
15172	  # Sun C 5.9
15173	  lt_prog_compiler_pic='-KPIC'
15174	  lt_prog_compiler_static='-Bstatic'
15175	  lt_prog_compiler_wl='-Wl,'
15176	  ;;
15177	esac
15178	;;
15179      esac
15180      ;;
15181
15182    newsos6)
15183      lt_prog_compiler_pic='-KPIC'
15184      lt_prog_compiler_static='-Bstatic'
15185      ;;
15186
15187    *nto* | *qnx*)
15188      # QNX uses GNU C++, but need to define -shared option too, otherwise
15189      # it will coredump.
15190      lt_prog_compiler_pic='-fPIC -shared'
15191      ;;
15192
15193    osf3* | osf4* | osf5*)
15194      lt_prog_compiler_wl='-Wl,'
15195      # All OSF/1 code is PIC.
15196      lt_prog_compiler_static='-non_shared'
15197      ;;
15198
15199    rdos*)
15200      lt_prog_compiler_static='-non_shared'
15201      ;;
15202
15203    solaris*)
15204      lt_prog_compiler_pic='-KPIC'
15205      lt_prog_compiler_static='-Bstatic'
15206      case $cc_basename in
15207      f77* | f90* | f95*)
15208	lt_prog_compiler_wl='-Qoption ld ';;
15209      *)
15210	lt_prog_compiler_wl='-Wl,';;
15211      esac
15212      ;;
15213
15214    sunos4*)
15215      lt_prog_compiler_wl='-Qoption ld '
15216      lt_prog_compiler_pic='-PIC'
15217      lt_prog_compiler_static='-Bstatic'
15218      ;;
15219
15220    sysv4 | sysv4.2uw2* | sysv4.3*)
15221      lt_prog_compiler_wl='-Wl,'
15222      lt_prog_compiler_pic='-KPIC'
15223      lt_prog_compiler_static='-Bstatic'
15224      ;;
15225
15226    sysv4*MP*)
15227      if test -d /usr/nec ;then
15228	lt_prog_compiler_pic='-Kconform_pic'
15229	lt_prog_compiler_static='-Bstatic'
15230      fi
15231      ;;
15232
15233    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15234      lt_prog_compiler_wl='-Wl,'
15235      lt_prog_compiler_pic='-KPIC'
15236      lt_prog_compiler_static='-Bstatic'
15237      ;;
15238
15239    unicos*)
15240      lt_prog_compiler_wl='-Wl,'
15241      lt_prog_compiler_can_build_shared=no
15242      ;;
15243
15244    uts4*)
15245      lt_prog_compiler_pic='-pic'
15246      lt_prog_compiler_static='-Bstatic'
15247      ;;
15248
15249    *)
15250      lt_prog_compiler_can_build_shared=no
15251      ;;
15252    esac
15253  fi
15254
15255case $host_os in
15256  # For platforms which do not support PIC, -DPIC is meaningless:
15257  *djgpp*)
15258    lt_prog_compiler_pic=
15259    ;;
15260  *)
15261    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15262    ;;
15263esac
15264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15265$as_echo "$lt_prog_compiler_pic" >&6; }
15266
15267
15268
15269
15270
15271
15272#
15273# Check to make sure the PIC flag actually works.
15274#
15275if test -n "$lt_prog_compiler_pic"; then
15276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15277$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15278if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15279  $as_echo_n "(cached) " >&6
15280else
15281  lt_cv_prog_compiler_pic_works=no
15282   ac_outfile=conftest.$ac_objext
15283   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15284   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15285   # Insert the option either (1) after the last *FLAGS variable, or
15286   # (2) before a word containing "conftest.", or (3) at the end.
15287   # Note that $ac_compile itself does not contain backslashes and begins
15288   # with a dollar sign (not a hyphen), so the echo should work correctly.
15289   # The option is referenced via a variable to avoid confusing sed.
15290   lt_compile=`echo "$ac_compile" | $SED \
15291   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15292   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15293   -e 's:$: $lt_compiler_flag:'`
15294   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15295   (eval "$lt_compile" 2>conftest.err)
15296   ac_status=$?
15297   cat conftest.err >&5
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   if (exit $ac_status) && test -s "$ac_outfile"; then
15300     # The compiler can only warn and ignore the option if not recognized
15301     # So say no if there are warnings other than the usual output.
15302     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15303     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15304     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15305       lt_cv_prog_compiler_pic_works=yes
15306     fi
15307   fi
15308   $RM conftest*
15309
15310fi
15311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15312$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15313
15314if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15315    case $lt_prog_compiler_pic in
15316     "" | " "*) ;;
15317     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15318     esac
15319else
15320    lt_prog_compiler_pic=
15321     lt_prog_compiler_can_build_shared=no
15322fi
15323
15324fi
15325
15326
15327
15328
15329
15330
15331#
15332# Check to make sure the static flag actually works.
15333#
15334wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15336$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15337if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15338  $as_echo_n "(cached) " >&6
15339else
15340  lt_cv_prog_compiler_static_works=no
15341   save_LDFLAGS="$LDFLAGS"
15342   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15343   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15344   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15345     # The linker can only warn and ignore the option if not recognized
15346     # So say no if there are warnings
15347     if test -s conftest.err; then
15348       # Append any errors to the config.log.
15349       cat conftest.err 1>&5
15350       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15351       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15352       if diff conftest.exp conftest.er2 >/dev/null; then
15353         lt_cv_prog_compiler_static_works=yes
15354       fi
15355     else
15356       lt_cv_prog_compiler_static_works=yes
15357     fi
15358   fi
15359   $RM -r conftest*
15360   LDFLAGS="$save_LDFLAGS"
15361
15362fi
15363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15364$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15365
15366if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15367    :
15368else
15369    lt_prog_compiler_static=
15370fi
15371
15372
15373
15374
15375
15376
15377
15378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15379$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15380if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15381  $as_echo_n "(cached) " >&6
15382else
15383  lt_cv_prog_compiler_c_o=no
15384   $RM -r conftest 2>/dev/null
15385   mkdir conftest
15386   cd conftest
15387   mkdir out
15388   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15389
15390   lt_compiler_flag="-o out/conftest2.$ac_objext"
15391   # Insert the option either (1) after the last *FLAGS variable, or
15392   # (2) before a word containing "conftest.", or (3) at the end.
15393   # Note that $ac_compile itself does not contain backslashes and begins
15394   # with a dollar sign (not a hyphen), so the echo should work correctly.
15395   lt_compile=`echo "$ac_compile" | $SED \
15396   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15397   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15398   -e 's:$: $lt_compiler_flag:'`
15399   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15400   (eval "$lt_compile" 2>out/conftest.err)
15401   ac_status=$?
15402   cat out/conftest.err >&5
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15405   then
15406     # The compiler can only warn and ignore the option if not recognized
15407     # So say no if there are warnings
15408     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15409     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15410     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15411       lt_cv_prog_compiler_c_o=yes
15412     fi
15413   fi
15414   chmod u+w . 2>&5
15415   $RM conftest*
15416   # SGI C++ compiler will create directory out/ii_files/ for
15417   # template instantiation
15418   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15419   $RM out/* && rmdir out
15420   cd ..
15421   $RM -r conftest
15422   $RM conftest*
15423
15424fi
15425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15426$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15427
15428
15429
15430
15431
15432
15433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15434$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15435if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15436  $as_echo_n "(cached) " >&6
15437else
15438  lt_cv_prog_compiler_c_o=no
15439   $RM -r conftest 2>/dev/null
15440   mkdir conftest
15441   cd conftest
15442   mkdir out
15443   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15444
15445   lt_compiler_flag="-o out/conftest2.$ac_objext"
15446   # Insert the option either (1) after the last *FLAGS variable, or
15447   # (2) before a word containing "conftest.", or (3) at the end.
15448   # Note that $ac_compile itself does not contain backslashes and begins
15449   # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
15456   ac_status=$?
15457   cat out/conftest.err >&5
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15460   then
15461     # The compiler can only warn and ignore the option if not recognized
15462     # So say no if there are warnings
15463     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15464     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15465     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15466       lt_cv_prog_compiler_c_o=yes
15467     fi
15468   fi
15469   chmod u+w . 2>&5
15470   $RM conftest*
15471   # SGI C++ compiler will create directory out/ii_files/ for
15472   # template instantiation
15473   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15474   $RM out/* && rmdir out
15475   cd ..
15476   $RM -r conftest
15477   $RM conftest*
15478
15479fi
15480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15481$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15482
15483
15484
15485
15486hard_links="nottested"
15487if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15488  # do not overwrite the value of need_locks provided by the user
15489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15490$as_echo_n "checking if we can lock with hard links... " >&6; }
15491  hard_links=yes
15492  $RM conftest*
15493  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15494  touch conftest.a
15495  ln conftest.a conftest.b 2>&5 || hard_links=no
15496  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15498$as_echo "$hard_links" >&6; }
15499  if test "$hard_links" = no; then
15500    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15501$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15502    need_locks=warn
15503  fi
15504else
15505  need_locks=no
15506fi
15507
15508
15509
15510
15511
15512
15513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15514$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15515
15516  runpath_var=
15517  allow_undefined_flag=
15518  always_export_symbols=no
15519  archive_cmds=
15520  archive_expsym_cmds=
15521  compiler_needs_object=no
15522  enable_shared_with_static_runtimes=no
15523  export_dynamic_flag_spec=
15524  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15525  hardcode_automatic=no
15526  hardcode_direct=no
15527  hardcode_direct_absolute=no
15528  hardcode_libdir_flag_spec=
15529  hardcode_libdir_flag_spec_ld=
15530  hardcode_libdir_separator=
15531  hardcode_minus_L=no
15532  hardcode_shlibpath_var=unsupported
15533  inherit_rpath=no
15534  link_all_deplibs=unknown
15535  module_cmds=
15536  module_expsym_cmds=
15537  old_archive_from_new_cmds=
15538  old_archive_from_expsyms_cmds=
15539  thread_safe_flag_spec=
15540  whole_archive_flag_spec=
15541  # include_expsyms should be a list of space-separated symbols to be *always*
15542  # included in the symbol list
15543  include_expsyms=
15544  # exclude_expsyms can be an extended regexp of symbols to exclude
15545  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15546  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15547  # as well as any symbol that contains `d'.
15548  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15549  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15550  # platforms (ab)use it in PIC code, but their linkers get confused if
15551  # the symbol is explicitly referenced.  Since portable code cannot
15552  # rely on this symbol name, it's probably fine to never include it in
15553  # preloaded symbol tables.
15554  # Exclude shared library initialization/finalization symbols.
15555  extract_expsyms_cmds=
15556
15557  case $host_os in
15558  cygwin* | mingw* | pw32* | cegcc*)
15559    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15560    # When not using gcc, we currently assume that we are using
15561    # Microsoft Visual C++.
15562    if test "$GCC" != yes; then
15563      with_gnu_ld=no
15564    fi
15565    ;;
15566  interix*)
15567    # we just hope/assume this is gcc and not c89 (= MSVC++)
15568    with_gnu_ld=yes
15569    ;;
15570  openbsd*)
15571    with_gnu_ld=no
15572    ;;
15573  esac
15574
15575  ld_shlibs=yes
15576
15577  # On some targets, GNU ld is compatible enough with the native linker
15578  # that we're better off using the native interface for both.
15579  lt_use_gnu_ld_interface=no
15580  if test "$with_gnu_ld" = yes; then
15581    case $host_os in
15582      aix*)
15583	# The AIX port of GNU ld has always aspired to compatibility
15584	# with the native linker.  However, as the warning in the GNU ld
15585	# block says, versions before 2.19.5* couldn't really create working
15586	# shared libraries, regardless of the interface used.
15587	case `$LD -v 2>&1` in
15588	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15589	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15590	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15591	  *)
15592	    lt_use_gnu_ld_interface=yes
15593	    ;;
15594	esac
15595	;;
15596      *)
15597	lt_use_gnu_ld_interface=yes
15598	;;
15599    esac
15600  fi
15601
15602  if test "$lt_use_gnu_ld_interface" = yes; then
15603    # If archive_cmds runs LD, not CC, wlarc should be empty
15604    wlarc='${wl}'
15605
15606    # Set some defaults for GNU ld with shared library support. These
15607    # are reset later if shared libraries are not supported. Putting them
15608    # here allows them to be overridden if necessary.
15609    runpath_var=LD_RUN_PATH
15610    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15611    export_dynamic_flag_spec='${wl}--export-dynamic'
15612    # ancient GNU ld didn't support --whole-archive et. al.
15613    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15614      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15615    else
15616      whole_archive_flag_spec=
15617    fi
15618    supports_anon_versioning=no
15619    case `$LD -v 2>&1` in
15620      *GNU\ gold*) supports_anon_versioning=yes ;;
15621      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15622      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15623      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15624      *\ 2.11.*) ;; # other 2.11 versions
15625      *) supports_anon_versioning=yes ;;
15626    esac
15627
15628    # See if GNU ld supports shared libraries.
15629    case $host_os in
15630    aix[3-9]*)
15631      # On AIX/PPC, the GNU linker is very broken
15632      if test "$host_cpu" != ia64; then
15633	ld_shlibs=no
15634	cat <<_LT_EOF 1>&2
15635
15636*** Warning: the GNU linker, at least up to release 2.19, is reported
15637*** to be unable to reliably create shared libraries on AIX.
15638*** Therefore, libtool is disabling shared libraries support.  If you
15639*** really care for shared libraries, you may want to install binutils
15640*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15641*** You will then need to restart the configuration process.
15642
15643_LT_EOF
15644      fi
15645      ;;
15646
15647    amigaos*)
15648      case $host_cpu in
15649      powerpc)
15650            # see comment about AmigaOS4 .so support
15651            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15652            archive_expsym_cmds=''
15653        ;;
15654      m68k)
15655            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)'
15656            hardcode_libdir_flag_spec='-L$libdir'
15657            hardcode_minus_L=yes
15658        ;;
15659      esac
15660      ;;
15661
15662    beos*)
15663      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15664	allow_undefined_flag=unsupported
15665	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15666	# support --undefined.  This deserves some investigation.  FIXME
15667	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15668      else
15669	ld_shlibs=no
15670      fi
15671      ;;
15672
15673    cygwin* | mingw* | pw32* | cegcc*)
15674      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15675      # as there is no search path for DLLs.
15676      hardcode_libdir_flag_spec='-L$libdir'
15677      export_dynamic_flag_spec='${wl}--export-all-symbols'
15678      allow_undefined_flag=unsupported
15679      always_export_symbols=no
15680      enable_shared_with_static_runtimes=yes
15681      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15682
15683      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15684        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15685	# If the export-symbols file already is a .def file (1st line
15686	# is EXPORTS), use it as is; otherwise, prepend...
15687	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15688	  cp $export_symbols $output_objdir/$soname.def;
15689	else
15690	  echo EXPORTS > $output_objdir/$soname.def;
15691	  cat $export_symbols >> $output_objdir/$soname.def;
15692	fi~
15693	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15694      else
15695	ld_shlibs=no
15696      fi
15697      ;;
15698
15699    haiku*)
15700      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15701      link_all_deplibs=yes
15702      ;;
15703
15704    interix[3-9]*)
15705      hardcode_direct=no
15706      hardcode_shlibpath_var=no
15707      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15708      export_dynamic_flag_spec='${wl}-E'
15709      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15710      # Instead, shared libraries are loaded at an image base (0x10000000 by
15711      # default) and relocated if they conflict, which is a slow very memory
15712      # consuming and fragmenting process.  To avoid this, we pick a random,
15713      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15714      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15715      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15716      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'
15717      ;;
15718
15719    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15720      tmp_diet=no
15721      if test "$host_os" = linux-dietlibc; then
15722	case $cc_basename in
15723	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15724	esac
15725      fi
15726      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15727	 && test "$tmp_diet" = no
15728      then
15729	tmp_addflag=
15730	tmp_sharedflag='-shared'
15731	case $cc_basename,$host_cpu in
15732        pgcc*)				# Portland Group C compiler
15733	  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'
15734	  tmp_addflag=' $pic_flag'
15735	  ;;
15736	pgf77* | pgf90* | pgf95* | pgfortran*)
15737					# Portland Group f77 and f90 compilers
15738	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15739	  tmp_addflag=' $pic_flag -Mnomain' ;;
15740	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15741	  tmp_addflag=' -i_dynamic' ;;
15742	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15743	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15744	ifc* | ifort*)			# Intel Fortran compiler
15745	  tmp_addflag=' -nofor_main' ;;
15746	lf95*)				# Lahey Fortran 8.1
15747	  whole_archive_flag_spec=
15748	  tmp_sharedflag='--shared' ;;
15749	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15750	  tmp_sharedflag='-qmkshrobj'
15751	  tmp_addflag= ;;
15752	nvcc*)	# Cuda Compiler Driver 2.2
15753	  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'
15754	  compiler_needs_object=yes
15755	  ;;
15756	esac
15757	case `$CC -V 2>&1 | sed 5q` in
15758	*Sun\ C*)			# Sun C 5.9
15759	  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'
15760	  compiler_needs_object=yes
15761	  tmp_sharedflag='-G' ;;
15762	*Sun\ F*)			# Sun Fortran 8.3
15763	  tmp_sharedflag='-G' ;;
15764	esac
15765	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15766
15767        if test "x$supports_anon_versioning" = xyes; then
15768          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15769	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15770	    echo "local: *; };" >> $output_objdir/$libname.ver~
15771	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15772        fi
15773
15774	case $cc_basename in
15775	xlf* | bgf* | bgxlf* | mpixlf*)
15776	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15777	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15778	  hardcode_libdir_flag_spec=
15779	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
15780	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15781	  if test "x$supports_anon_versioning" = xyes; then
15782	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15783	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15784	      echo "local: *; };" >> $output_objdir/$libname.ver~
15785	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15786	  fi
15787	  ;;
15788	esac
15789      else
15790        ld_shlibs=no
15791      fi
15792      ;;
15793
15794    netbsd*)
15795      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15796	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15797	wlarc=
15798      else
15799	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15800	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15801      fi
15802      ;;
15803
15804    solaris*)
15805      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15806	ld_shlibs=no
15807	cat <<_LT_EOF 1>&2
15808
15809*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15810*** create shared libraries on Solaris systems.  Therefore, libtool
15811*** is disabling shared libraries support.  We urge you to upgrade GNU
15812*** binutils to release 2.9.1 or newer.  Another option is to modify
15813*** your PATH or compiler configuration so that the native linker is
15814*** used, and then restart.
15815
15816_LT_EOF
15817      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15818	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15819	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15820      else
15821	ld_shlibs=no
15822      fi
15823      ;;
15824
15825    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15826      case `$LD -v 2>&1` in
15827        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15828	ld_shlibs=no
15829	cat <<_LT_EOF 1>&2
15830
15831*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15832*** reliably create shared libraries on SCO systems.  Therefore, libtool
15833*** is disabling shared libraries support.  We urge you to upgrade GNU
15834*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15835*** your PATH or compiler configuration so that the native linker is
15836*** used, and then restart.
15837
15838_LT_EOF
15839	;;
15840	*)
15841	  # For security reasons, it is highly recommended that you always
15842	  # use absolute paths for naming shared libraries, and exclude the
15843	  # DT_RUNPATH tag from executables and libraries.  But doing so
15844	  # requires that you compile everything twice, which is a pain.
15845	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15846	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15847	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15848	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15849	  else
15850	    ld_shlibs=no
15851	  fi
15852	;;
15853      esac
15854      ;;
15855
15856    sunos4*)
15857      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15858      wlarc=
15859      hardcode_direct=yes
15860      hardcode_shlibpath_var=no
15861      ;;
15862
15863    *)
15864      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15865	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15866	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15867      else
15868	ld_shlibs=no
15869      fi
15870      ;;
15871    esac
15872
15873    if test "$ld_shlibs" = no; then
15874      runpath_var=
15875      hardcode_libdir_flag_spec=
15876      export_dynamic_flag_spec=
15877      whole_archive_flag_spec=
15878    fi
15879  else
15880    # PORTME fill in a description of your system's linker (not GNU ld)
15881    case $host_os in
15882    aix3*)
15883      allow_undefined_flag=unsupported
15884      always_export_symbols=yes
15885      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'
15886      # Note: this linker hardcodes the directories in LIBPATH if there
15887      # are no directories specified by -L.
15888      hardcode_minus_L=yes
15889      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15890	# Neither direct hardcoding nor static linking is supported with a
15891	# broken collect2.
15892	hardcode_direct=unsupported
15893      fi
15894      ;;
15895
15896    aix[4-9]*)
15897      if test "$host_cpu" = ia64; then
15898	# On IA64, the linker does run time linking by default, so we don't
15899	# have to do anything special.
15900	aix_use_runtimelinking=no
15901	exp_sym_flag='-Bexport'
15902	no_entry_flag=""
15903      else
15904	# If we're using GNU nm, then we don't want the "-C" option.
15905	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15906	# Also, AIX nm treats weak defined symbols like other global
15907	# defined symbols, whereas GNU nm marks them as "W".
15908	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15909	  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'
15910	else
15911	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15912	fi
15913	aix_use_runtimelinking=no
15914
15915	# Test if we are trying to use run time linking or normal
15916	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15917	# need to do runtime linking.
15918	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15919	  for ld_flag in $LDFLAGS; do
15920	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15921	    aix_use_runtimelinking=yes
15922	    break
15923	  fi
15924	  done
15925	  ;;
15926	esac
15927
15928	exp_sym_flag='-bexport'
15929	no_entry_flag='-bnoentry'
15930      fi
15931
15932      # When large executables or shared objects are built, AIX ld can
15933      # have problems creating the table of contents.  If linking a library
15934      # or program results in "error TOC overflow" add -mminimal-toc to
15935      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15936      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15937
15938      archive_cmds=''
15939      hardcode_direct=yes
15940      hardcode_direct_absolute=yes
15941      hardcode_libdir_separator=':'
15942      link_all_deplibs=yes
15943      file_list_spec='${wl}-f,'
15944
15945      if test "$GCC" = yes; then
15946	case $host_os in aix4.[012]|aix4.[012].*)
15947	# We only want to do this on AIX 4.2 and lower, the check
15948	# below for broken collect2 doesn't work under 4.3+
15949	  collect2name=`${CC} -print-prog-name=collect2`
15950	  if test -f "$collect2name" &&
15951	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15952	  then
15953	  # We have reworked collect2
15954	  :
15955	  else
15956	  # We have old collect2
15957	  hardcode_direct=unsupported
15958	  # It fails to find uninstalled libraries when the uninstalled
15959	  # path is not listed in the libpath.  Setting hardcode_minus_L
15960	  # to unsupported forces relinking
15961	  hardcode_minus_L=yes
15962	  hardcode_libdir_flag_spec='-L$libdir'
15963	  hardcode_libdir_separator=
15964	  fi
15965	  ;;
15966	esac
15967	shared_flag='-shared'
15968	if test "$aix_use_runtimelinking" = yes; then
15969	  shared_flag="$shared_flag "'${wl}-G'
15970	fi
15971      else
15972	# not using gcc
15973	if test "$host_cpu" = ia64; then
15974	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15975	# chokes on -Wl,-G. The following line is correct:
15976	  shared_flag='-G'
15977	else
15978	  if test "$aix_use_runtimelinking" = yes; then
15979	    shared_flag='${wl}-G'
15980	  else
15981	    shared_flag='${wl}-bM:SRE'
15982	  fi
15983	fi
15984      fi
15985
15986      export_dynamic_flag_spec='${wl}-bexpall'
15987      # It seems that -bexpall does not export symbols beginning with
15988      # underscore (_), so it is better to generate a list of symbols to export.
15989      always_export_symbols=yes
15990      if test "$aix_use_runtimelinking" = yes; then
15991	# Warning - without using the other runtime loading flags (-brtl),
15992	# -berok will link without error, but may produce a broken library.
15993	allow_undefined_flag='-berok'
15994        # Determine the default libpath from the value encoded in an
15995        # empty executable.
15996        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997/* end confdefs.h.  */
15998
15999int
16000main ()
16001{
16002
16003  ;
16004  return 0;
16005}
16006_ACEOF
16007if ac_fn_c_try_link "$LINENO"; then :
16008
16009lt_aix_libpath_sed='
16010    /Import File Strings/,/^$/ {
16011	/^0/ {
16012	    s/^0  *\(.*\)$/\1/
16013	    p
16014	}
16015    }'
16016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16017# Check for a 64-bit object if we didn't find anything.
16018if test -z "$aix_libpath"; then
16019  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16020fi
16021fi
16022rm -f core conftest.err conftest.$ac_objext \
16023    conftest$ac_exeext conftest.$ac_ext
16024if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16025
16026        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16027        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"
16028      else
16029	if test "$host_cpu" = ia64; then
16030	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16031	  allow_undefined_flag="-z nodefs"
16032	  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"
16033	else
16034	 # Determine the default libpath from the value encoded in an
16035	 # empty executable.
16036	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037/* end confdefs.h.  */
16038
16039int
16040main ()
16041{
16042
16043  ;
16044  return 0;
16045}
16046_ACEOF
16047if ac_fn_c_try_link "$LINENO"; then :
16048
16049lt_aix_libpath_sed='
16050    /Import File Strings/,/^$/ {
16051	/^0/ {
16052	    s/^0  *\(.*\)$/\1/
16053	    p
16054	}
16055    }'
16056aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16057# Check for a 64-bit object if we didn't find anything.
16058if test -z "$aix_libpath"; then
16059  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16060fi
16061fi
16062rm -f core conftest.err conftest.$ac_objext \
16063    conftest$ac_exeext conftest.$ac_ext
16064if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16065
16066	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16067	  # Warning - without using the other run time loading flags,
16068	  # -berok will link without error, but may produce a broken library.
16069	  no_undefined_flag=' ${wl}-bernotok'
16070	  allow_undefined_flag=' ${wl}-berok'
16071	  if test "$with_gnu_ld" = yes; then
16072	    # We only use this code for GNU lds that support --whole-archive.
16073	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16074	  else
16075	    # Exported symbols can be pulled into shared objects from archives
16076	    whole_archive_flag_spec='$convenience'
16077	  fi
16078	  archive_cmds_need_lc=yes
16079	  # This is similar to how AIX traditionally builds its shared libraries.
16080	  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'
16081	fi
16082      fi
16083      ;;
16084
16085    amigaos*)
16086      case $host_cpu in
16087      powerpc)
16088            # see comment about AmigaOS4 .so support
16089            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16090            archive_expsym_cmds=''
16091        ;;
16092      m68k)
16093            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)'
16094            hardcode_libdir_flag_spec='-L$libdir'
16095            hardcode_minus_L=yes
16096        ;;
16097      esac
16098      ;;
16099
16100    bsdi[45]*)
16101      export_dynamic_flag_spec=-rdynamic
16102      ;;
16103
16104    cygwin* | mingw* | pw32* | cegcc*)
16105      # When not using gcc, we currently assume that we are using
16106      # Microsoft Visual C++.
16107      # hardcode_libdir_flag_spec is actually meaningless, as there is
16108      # no search path for DLLs.
16109      hardcode_libdir_flag_spec=' '
16110      allow_undefined_flag=unsupported
16111      # Tell ltmain to make .lib files, not .a files.
16112      libext=lib
16113      # Tell ltmain to make .dll files, not .so files.
16114      shrext_cmds=".dll"
16115      # FIXME: Setting linknames here is a bad hack.
16116      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16117      # The linker will automatically build a .lib file if we build a DLL.
16118      old_archive_from_new_cmds='true'
16119      # FIXME: Should let the user specify the lib program.
16120      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16121      fix_srcfile_path='`cygpath -w "$srcfile"`'
16122      enable_shared_with_static_runtimes=yes
16123      ;;
16124
16125    darwin* | rhapsody*)
16126
16127
16128  archive_cmds_need_lc=no
16129  hardcode_direct=no
16130  hardcode_automatic=yes
16131  hardcode_shlibpath_var=unsupported
16132  if test "$lt_cv_ld_force_load" = "yes"; then
16133    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\"`'
16134  else
16135    whole_archive_flag_spec=''
16136  fi
16137  link_all_deplibs=yes
16138  allow_undefined_flag="$_lt_dar_allow_undefined"
16139  case $cc_basename in
16140     ifort*) _lt_dar_can_shared=yes ;;
16141     *) _lt_dar_can_shared=$GCC ;;
16142  esac
16143  if test "$_lt_dar_can_shared" = "yes"; then
16144    output_verbose_link_cmd=func_echo_all
16145    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16146    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16147    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}"
16148    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}"
16149
16150  else
16151  ld_shlibs=no
16152  fi
16153
16154      ;;
16155
16156    dgux*)
16157      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16158      hardcode_libdir_flag_spec='-L$libdir'
16159      hardcode_shlibpath_var=no
16160      ;;
16161
16162    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16163    # support.  Future versions do this automatically, but an explicit c++rt0.o
16164    # does not break anything, and helps significantly (at the cost of a little
16165    # extra space).
16166    freebsd2.2*)
16167      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16168      hardcode_libdir_flag_spec='-R$libdir'
16169      hardcode_direct=yes
16170      hardcode_shlibpath_var=no
16171      ;;
16172
16173    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16174    freebsd2.*)
16175      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16176      hardcode_direct=yes
16177      hardcode_minus_L=yes
16178      hardcode_shlibpath_var=no
16179      ;;
16180
16181    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16182    freebsd* | dragonfly*)
16183      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16184      hardcode_libdir_flag_spec='-R$libdir'
16185      hardcode_direct=yes
16186      hardcode_shlibpath_var=no
16187      ;;
16188
16189    hpux9*)
16190      if test "$GCC" = yes; then
16191	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'
16192      else
16193	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'
16194      fi
16195      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16196      hardcode_libdir_separator=:
16197      hardcode_direct=yes
16198
16199      # hardcode_minus_L: Not really in the search PATH,
16200      # but as the default location of the library.
16201      hardcode_minus_L=yes
16202      export_dynamic_flag_spec='${wl}-E'
16203      ;;
16204
16205    hpux10*)
16206      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16207	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16208      else
16209	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16210      fi
16211      if test "$with_gnu_ld" = no; then
16212	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16213	hardcode_libdir_flag_spec_ld='+b $libdir'
16214	hardcode_libdir_separator=:
16215	hardcode_direct=yes
16216	hardcode_direct_absolute=yes
16217	export_dynamic_flag_spec='${wl}-E'
16218	# hardcode_minus_L: Not really in the search PATH,
16219	# but as the default location of the library.
16220	hardcode_minus_L=yes
16221      fi
16222      ;;
16223
16224    hpux11*)
16225      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16226	case $host_cpu in
16227	hppa*64*)
16228	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16229	  ;;
16230	ia64*)
16231	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16232	  ;;
16233	*)
16234	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16235	  ;;
16236	esac
16237      else
16238	case $host_cpu in
16239	hppa*64*)
16240	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16241	  ;;
16242	ia64*)
16243	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16244	  ;;
16245	*)
16246
16247	  # Older versions of the 11.00 compiler do not understand -b yet
16248	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16249	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16250$as_echo_n "checking if $CC understands -b... " >&6; }
16251if test "${lt_cv_prog_compiler__b+set}" = set; then :
16252  $as_echo_n "(cached) " >&6
16253else
16254  lt_cv_prog_compiler__b=no
16255   save_LDFLAGS="$LDFLAGS"
16256   LDFLAGS="$LDFLAGS -b"
16257   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16258   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16259     # The linker can only warn and ignore the option if not recognized
16260     # So say no if there are warnings
16261     if test -s conftest.err; then
16262       # Append any errors to the config.log.
16263       cat conftest.err 1>&5
16264       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16265       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16266       if diff conftest.exp conftest.er2 >/dev/null; then
16267         lt_cv_prog_compiler__b=yes
16268       fi
16269     else
16270       lt_cv_prog_compiler__b=yes
16271     fi
16272   fi
16273   $RM -r conftest*
16274   LDFLAGS="$save_LDFLAGS"
16275
16276fi
16277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16278$as_echo "$lt_cv_prog_compiler__b" >&6; }
16279
16280if test x"$lt_cv_prog_compiler__b" = xyes; then
16281    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16282else
16283    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16284fi
16285
16286	  ;;
16287	esac
16288      fi
16289      if test "$with_gnu_ld" = no; then
16290	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16291	hardcode_libdir_separator=:
16292
16293	case $host_cpu in
16294	hppa*64*|ia64*)
16295	  hardcode_direct=no
16296	  hardcode_shlibpath_var=no
16297	  ;;
16298	*)
16299	  hardcode_direct=yes
16300	  hardcode_direct_absolute=yes
16301	  export_dynamic_flag_spec='${wl}-E'
16302
16303	  # hardcode_minus_L: Not really in the search PATH,
16304	  # but as the default location of the library.
16305	  hardcode_minus_L=yes
16306	  ;;
16307	esac
16308      fi
16309      ;;
16310
16311    irix5* | irix6* | nonstopux*)
16312      if test "$GCC" = yes; then
16313	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'
16314	# Try to use the -exported_symbol ld option, if it does not
16315	# work, assume that -exports_file does not work either and
16316	# implicitly export all symbols.
16317        save_LDFLAGS="$LDFLAGS"
16318        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16319        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320/* end confdefs.h.  */
16321int foo(void) {}
16322_ACEOF
16323if ac_fn_c_try_link "$LINENO"; then :
16324  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'
16325
16326fi
16327rm -f core conftest.err conftest.$ac_objext \
16328    conftest$ac_exeext conftest.$ac_ext
16329        LDFLAGS="$save_LDFLAGS"
16330      else
16331	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'
16332	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'
16333      fi
16334      archive_cmds_need_lc='no'
16335      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16336      hardcode_libdir_separator=:
16337      inherit_rpath=yes
16338      link_all_deplibs=yes
16339      ;;
16340
16341    netbsd*)
16342      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16343	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16344      else
16345	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16346      fi
16347      hardcode_libdir_flag_spec='-R$libdir'
16348      hardcode_direct=yes
16349      hardcode_shlibpath_var=no
16350      ;;
16351
16352    newsos6)
16353      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16354      hardcode_direct=yes
16355      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16356      hardcode_libdir_separator=:
16357      hardcode_shlibpath_var=no
16358      ;;
16359
16360    *nto* | *qnx*)
16361      ;;
16362
16363    openbsd*)
16364      if test -f /usr/libexec/ld.so; then
16365	hardcode_direct=yes
16366	hardcode_shlibpath_var=no
16367	hardcode_direct_absolute=yes
16368	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16369	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16370	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16371	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16372	  export_dynamic_flag_spec='${wl}-E'
16373	else
16374	  case $host_os in
16375	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16376	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16377	     hardcode_libdir_flag_spec='-R$libdir'
16378	     ;;
16379	   *)
16380	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16381	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16382	     ;;
16383	  esac
16384	fi
16385      else
16386	ld_shlibs=no
16387      fi
16388      ;;
16389
16390    os2*)
16391      hardcode_libdir_flag_spec='-L$libdir'
16392      hardcode_minus_L=yes
16393      allow_undefined_flag=unsupported
16394      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'
16395      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16396      ;;
16397
16398    osf3*)
16399      if test "$GCC" = yes; then
16400	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16401	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'
16402      else
16403	allow_undefined_flag=' -expect_unresolved \*'
16404	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'
16405      fi
16406      archive_cmds_need_lc='no'
16407      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16408      hardcode_libdir_separator=:
16409      ;;
16410
16411    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16412      if test "$GCC" = yes; then
16413	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16414	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'
16415	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16416      else
16417	allow_undefined_flag=' -expect_unresolved \*'
16418	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'
16419	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~
16420	$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'
16421
16422	# Both c and cxx compiler support -rpath directly
16423	hardcode_libdir_flag_spec='-rpath $libdir'
16424      fi
16425      archive_cmds_need_lc='no'
16426      hardcode_libdir_separator=:
16427      ;;
16428
16429    solaris*)
16430      no_undefined_flag=' -z defs'
16431      if test "$GCC" = yes; then
16432	wlarc='${wl}'
16433	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16434	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16435	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16436      else
16437	case `$CC -V 2>&1` in
16438	*"Compilers 5.0"*)
16439	  wlarc=''
16440	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16441	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16442	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16443	  ;;
16444	*)
16445	  wlarc='${wl}'
16446	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16447	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16448	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16449	  ;;
16450	esac
16451      fi
16452      hardcode_libdir_flag_spec='-R$libdir'
16453      hardcode_shlibpath_var=no
16454      case $host_os in
16455      solaris2.[0-5] | solaris2.[0-5].*) ;;
16456      *)
16457	# The compiler driver will combine and reorder linker options,
16458	# but understands `-z linker_flag'.  GCC discards it without `$wl',
16459	# but is careful enough not to reorder.
16460	# Supported since Solaris 2.6 (maybe 2.5.1?)
16461	if test "$GCC" = yes; then
16462	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16463	else
16464	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16465	fi
16466	;;
16467      esac
16468      link_all_deplibs=yes
16469      ;;
16470
16471    sunos4*)
16472      if test "x$host_vendor" = xsequent; then
16473	# Use $CC to link under sequent, because it throws in some extra .o
16474	# files that make .init and .fini sections work.
16475	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16476      else
16477	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16478      fi
16479      hardcode_libdir_flag_spec='-L$libdir'
16480      hardcode_direct=yes
16481      hardcode_minus_L=yes
16482      hardcode_shlibpath_var=no
16483      ;;
16484
16485    sysv4)
16486      case $host_vendor in
16487	sni)
16488	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16489	  hardcode_direct=yes # is this really true???
16490	;;
16491	siemens)
16492	  ## LD is ld it makes a PLAMLIB
16493	  ## CC just makes a GrossModule.
16494	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16495	  reload_cmds='$CC -r -o $output$reload_objs'
16496	  hardcode_direct=no
16497        ;;
16498	motorola)
16499	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16500	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16501	;;
16502      esac
16503      runpath_var='LD_RUN_PATH'
16504      hardcode_shlibpath_var=no
16505      ;;
16506
16507    sysv4.3*)
16508      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16509      hardcode_shlibpath_var=no
16510      export_dynamic_flag_spec='-Bexport'
16511      ;;
16512
16513    sysv4*MP*)
16514      if test -d /usr/nec; then
16515	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16516	hardcode_shlibpath_var=no
16517	runpath_var=LD_RUN_PATH
16518	hardcode_runpath_var=yes
16519	ld_shlibs=yes
16520      fi
16521      ;;
16522
16523    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16524      no_undefined_flag='${wl}-z,text'
16525      archive_cmds_need_lc=no
16526      hardcode_shlibpath_var=no
16527      runpath_var='LD_RUN_PATH'
16528
16529      if test "$GCC" = yes; then
16530	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16531	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16532      else
16533	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16534	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16535      fi
16536      ;;
16537
16538    sysv5* | sco3.2v5* | sco5v6*)
16539      # Note: We can NOT use -z defs as we might desire, because we do not
16540      # link with -lc, and that would cause any symbols used from libc to
16541      # always be unresolved, which means just about no library would
16542      # ever link correctly.  If we're not using GNU ld we use -z text
16543      # though, which does catch some bad symbols but isn't as heavy-handed
16544      # as -z defs.
16545      no_undefined_flag='${wl}-z,text'
16546      allow_undefined_flag='${wl}-z,nodefs'
16547      archive_cmds_need_lc=no
16548      hardcode_shlibpath_var=no
16549      hardcode_libdir_flag_spec='${wl}-R,$libdir'
16550      hardcode_libdir_separator=':'
16551      link_all_deplibs=yes
16552      export_dynamic_flag_spec='${wl}-Bexport'
16553      runpath_var='LD_RUN_PATH'
16554
16555      if test "$GCC" = yes; then
16556	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16557	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16558      else
16559	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16560	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16561      fi
16562      ;;
16563
16564    uts4*)
16565      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566      hardcode_libdir_flag_spec='-L$libdir'
16567      hardcode_shlibpath_var=no
16568      ;;
16569
16570    *)
16571      ld_shlibs=no
16572      ;;
16573    esac
16574
16575    if test x$host_vendor = xsni; then
16576      case $host in
16577      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16578	export_dynamic_flag_spec='${wl}-Blargedynsym'
16579	;;
16580      esac
16581    fi
16582  fi
16583
16584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16585$as_echo "$ld_shlibs" >&6; }
16586test "$ld_shlibs" = no && can_build_shared=no
16587
16588with_gnu_ld=$with_gnu_ld
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604#
16605# Do we need to explicitly link libc?
16606#
16607case "x$archive_cmds_need_lc" in
16608x|xyes)
16609  # Assume -lc should be added
16610  archive_cmds_need_lc=yes
16611
16612  if test "$enable_shared" = yes && test "$GCC" = yes; then
16613    case $archive_cmds in
16614    *'~'*)
16615      # FIXME: we may have to deal with multi-command sequences.
16616      ;;
16617    '$CC '*)
16618      # Test whether the compiler implicitly links with -lc since on some
16619      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16620      # to ld, don't add -lc before -lgcc.
16621      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16622$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16623if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16624  $as_echo_n "(cached) " >&6
16625else
16626  $RM conftest*
16627	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16628
16629	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16630  (eval $ac_compile) 2>&5
16631  ac_status=$?
16632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16633  test $ac_status = 0; } 2>conftest.err; then
16634	  soname=conftest
16635	  lib=conftest
16636	  libobjs=conftest.$ac_objext
16637	  deplibs=
16638	  wl=$lt_prog_compiler_wl
16639	  pic_flag=$lt_prog_compiler_pic
16640	  compiler_flags=-v
16641	  linker_flags=-v
16642	  verstring=
16643	  output_objdir=.
16644	  libname=conftest
16645	  lt_save_allow_undefined_flag=$allow_undefined_flag
16646	  allow_undefined_flag=
16647	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16648  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16649  ac_status=$?
16650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16651  test $ac_status = 0; }
16652	  then
16653	    lt_cv_archive_cmds_need_lc=no
16654	  else
16655	    lt_cv_archive_cmds_need_lc=yes
16656	  fi
16657	  allow_undefined_flag=$lt_save_allow_undefined_flag
16658	else
16659	  cat conftest.err 1>&5
16660	fi
16661	$RM conftest*
16662
16663fi
16664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16665$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16666      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16667      ;;
16668    esac
16669  fi
16670  ;;
16671esac
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16830$as_echo_n "checking dynamic linker characteristics... " >&6; }
16831
16832if test "$GCC" = yes; then
16833  case $host_os in
16834    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16835    *) lt_awk_arg="/^libraries:/" ;;
16836  esac
16837  case $host_os in
16838    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16839    *) lt_sed_strip_eq="s,=/,/,g" ;;
16840  esac
16841  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16842  case $lt_search_path_spec in
16843  *\;*)
16844    # if the path contains ";" then we assume it to be the separator
16845    # otherwise default to the standard path separator (i.e. ":") - it is
16846    # assumed that no part of a normal pathname contains ";" but that should
16847    # okay in the real world where ";" in dirpaths is itself problematic.
16848    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16849    ;;
16850  *)
16851    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16852    ;;
16853  esac
16854  # Ok, now we have the path, separated by spaces, we can step through it
16855  # and add multilib dir if necessary.
16856  lt_tmp_lt_search_path_spec=
16857  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16858  for lt_sys_path in $lt_search_path_spec; do
16859    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16860      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16861    else
16862      test -d "$lt_sys_path" && \
16863	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16864    fi
16865  done
16866  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16867BEGIN {RS=" "; FS="/|\n";} {
16868  lt_foo="";
16869  lt_count=0;
16870  for (lt_i = NF; lt_i > 0; lt_i--) {
16871    if ($lt_i != "" && $lt_i != ".") {
16872      if ($lt_i == "..") {
16873        lt_count++;
16874      } else {
16875        if (lt_count == 0) {
16876          lt_foo="/" $lt_i lt_foo;
16877        } else {
16878          lt_count--;
16879        }
16880      }
16881    }
16882  }
16883  if (lt_foo != "") { lt_freq[lt_foo]++; }
16884  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16885}'`
16886  # AWK program above erroneously prepends '/' to C:/dos/paths
16887  # for these hosts.
16888  case $host_os in
16889    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16890      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16891  esac
16892  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16893else
16894  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16895fi
16896library_names_spec=
16897libname_spec='lib$name'
16898soname_spec=
16899shrext_cmds=".so"
16900postinstall_cmds=
16901postuninstall_cmds=
16902finish_cmds=
16903finish_eval=
16904shlibpath_var=
16905shlibpath_overrides_runpath=unknown
16906version_type=none
16907dynamic_linker="$host_os ld.so"
16908sys_lib_dlsearch_path_spec="/lib /usr/lib"
16909need_lib_prefix=unknown
16910hardcode_into_libs=no
16911
16912# when you set need_version to no, make sure it does not cause -set_version
16913# flags to be left without arguments
16914need_version=unknown
16915
16916case $host_os in
16917aix3*)
16918  version_type=linux
16919  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16920  shlibpath_var=LIBPATH
16921
16922  # AIX 3 has no versioning support, so we append a major version to the name.
16923  soname_spec='${libname}${release}${shared_ext}$major'
16924  ;;
16925
16926aix[4-9]*)
16927  version_type=linux
16928  need_lib_prefix=no
16929  need_version=no
16930  hardcode_into_libs=yes
16931  if test "$host_cpu" = ia64; then
16932    # AIX 5 supports IA64
16933    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16934    shlibpath_var=LD_LIBRARY_PATH
16935  else
16936    # With GCC up to 2.95.x, collect2 would create an import file
16937    # for dependence libraries.  The import file would start with
16938    # the line `#! .'.  This would cause the generated library to
16939    # depend on `.', always an invalid library.  This was fixed in
16940    # development snapshots of GCC prior to 3.0.
16941    case $host_os in
16942      aix4 | aix4.[01] | aix4.[01].*)
16943      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16944	   echo ' yes '
16945	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16946	:
16947      else
16948	can_build_shared=no
16949      fi
16950      ;;
16951    esac
16952    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16953    # soname into executable. Probably we can add versioning support to
16954    # collect2, so additional links can be useful in future.
16955    if test "$aix_use_runtimelinking" = yes; then
16956      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16957      # instead of lib<name>.a to let people know that these are not
16958      # typical AIX shared libraries.
16959      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16960    else
16961      # We preserve .a as extension for shared libraries through AIX4.2
16962      # and later when we are not doing run time linking.
16963      library_names_spec='${libname}${release}.a $libname.a'
16964      soname_spec='${libname}${release}${shared_ext}$major'
16965    fi
16966    shlibpath_var=LIBPATH
16967  fi
16968  ;;
16969
16970amigaos*)
16971  case $host_cpu in
16972  powerpc)
16973    # Since July 2007 AmigaOS4 officially supports .so libraries.
16974    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16975    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976    ;;
16977  m68k)
16978    library_names_spec='$libname.ixlibrary $libname.a'
16979    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16980    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'
16981    ;;
16982  esac
16983  ;;
16984
16985beos*)
16986  library_names_spec='${libname}${shared_ext}'
16987  dynamic_linker="$host_os ld.so"
16988  shlibpath_var=LIBRARY_PATH
16989  ;;
16990
16991bsdi[45]*)
16992  version_type=linux
16993  need_version=no
16994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995  soname_spec='${libname}${release}${shared_ext}$major'
16996  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16997  shlibpath_var=LD_LIBRARY_PATH
16998  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16999  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17000  # the default ld.so.conf also contains /usr/contrib/lib and
17001  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17002  # libtool to hard-code these into programs
17003  ;;
17004
17005cygwin* | mingw* | pw32* | cegcc*)
17006  version_type=windows
17007  shrext_cmds=".dll"
17008  need_version=no
17009  need_lib_prefix=no
17010
17011  case $GCC,$host_os in
17012  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17013    library_names_spec='$libname.dll.a'
17014    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17015    postinstall_cmds='base_file=`basename \${file}`~
17016      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17017      dldir=$destdir/`dirname \$dlpath`~
17018      test -d \$dldir || mkdir -p \$dldir~
17019      $install_prog $dir/$dlname \$dldir/$dlname~
17020      chmod a+x \$dldir/$dlname~
17021      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17022        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17023      fi'
17024    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17025      dlpath=$dir/\$dldll~
17026       $RM \$dlpath'
17027    shlibpath_overrides_runpath=yes
17028
17029    case $host_os in
17030    cygwin*)
17031      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17032      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17033
17034      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17035      ;;
17036    mingw* | cegcc*)
17037      # MinGW DLLs use traditional 'lib' prefix
17038      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17039      ;;
17040    pw32*)
17041      # pw32 DLLs use 'pw' prefix rather than 'lib'
17042      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17043      ;;
17044    esac
17045    ;;
17046
17047  *)
17048    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17049    ;;
17050  esac
17051  dynamic_linker='Win32 ld.exe'
17052  # FIXME: first we should search . and the directory the executable is in
17053  shlibpath_var=PATH
17054  ;;
17055
17056darwin* | rhapsody*)
17057  dynamic_linker="$host_os dyld"
17058  version_type=darwin
17059  need_lib_prefix=no
17060  need_version=no
17061  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17062  soname_spec='${libname}${release}${major}$shared_ext'
17063  shlibpath_overrides_runpath=yes
17064  shlibpath_var=DYLD_LIBRARY_PATH
17065  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17066
17067  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17068  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17069  ;;
17070
17071dgux*)
17072  version_type=linux
17073  need_lib_prefix=no
17074  need_version=no
17075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17076  soname_spec='${libname}${release}${shared_ext}$major'
17077  shlibpath_var=LD_LIBRARY_PATH
17078  ;;
17079
17080freebsd* | dragonfly*)
17081  # DragonFly does not have aout.  When/if they implement a new
17082  # versioning mechanism, adjust this.
17083  if test -x /usr/bin/objformat; then
17084    objformat=`/usr/bin/objformat`
17085  else
17086    case $host_os in
17087    freebsd[23].*) objformat=aout ;;
17088    *) objformat=elf ;;
17089    esac
17090  fi
17091  version_type=freebsd-$objformat
17092  case $version_type in
17093    freebsd-elf*)
17094      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17095      need_version=no
17096      need_lib_prefix=no
17097      ;;
17098    freebsd-*)
17099      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17100      need_version=yes
17101      ;;
17102  esac
17103  shlibpath_var=LD_LIBRARY_PATH
17104  case $host_os in
17105  freebsd2.*)
17106    shlibpath_overrides_runpath=yes
17107    ;;
17108  freebsd3.[01]* | freebsdelf3.[01]*)
17109    shlibpath_overrides_runpath=yes
17110    hardcode_into_libs=yes
17111    ;;
17112  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17113  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17114    shlibpath_overrides_runpath=no
17115    hardcode_into_libs=yes
17116    ;;
17117  *) # from 4.6 on, and DragonFly
17118    shlibpath_overrides_runpath=yes
17119    hardcode_into_libs=yes
17120    ;;
17121  esac
17122  ;;
17123
17124gnu*)
17125  version_type=linux
17126  need_lib_prefix=no
17127  need_version=no
17128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17129  soname_spec='${libname}${release}${shared_ext}$major'
17130  shlibpath_var=LD_LIBRARY_PATH
17131  hardcode_into_libs=yes
17132  ;;
17133
17134haiku*)
17135  version_type=linux
17136  need_lib_prefix=no
17137  need_version=no
17138  dynamic_linker="$host_os runtime_loader"
17139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17140  soname_spec='${libname}${release}${shared_ext}$major'
17141  shlibpath_var=LIBRARY_PATH
17142  shlibpath_overrides_runpath=yes
17143  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17144  hardcode_into_libs=yes
17145  ;;
17146
17147hpux9* | hpux10* | hpux11*)
17148  # Give a soname corresponding to the major version so that dld.sl refuses to
17149  # link against other versions.
17150  version_type=sunos
17151  need_lib_prefix=no
17152  need_version=no
17153  case $host_cpu in
17154  ia64*)
17155    shrext_cmds='.so'
17156    hardcode_into_libs=yes
17157    dynamic_linker="$host_os dld.so"
17158    shlibpath_var=LD_LIBRARY_PATH
17159    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17160    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161    soname_spec='${libname}${release}${shared_ext}$major'
17162    if test "X$HPUX_IA64_MODE" = X32; then
17163      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17164    else
17165      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17166    fi
17167    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17168    ;;
17169  hppa*64*)
17170    shrext_cmds='.sl'
17171    hardcode_into_libs=yes
17172    dynamic_linker="$host_os dld.sl"
17173    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17174    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17175    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176    soname_spec='${libname}${release}${shared_ext}$major'
17177    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17178    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17179    ;;
17180  *)
17181    shrext_cmds='.sl'
17182    dynamic_linker="$host_os dld.sl"
17183    shlibpath_var=SHLIB_PATH
17184    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17185    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186    soname_spec='${libname}${release}${shared_ext}$major'
17187    ;;
17188  esac
17189  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17190  postinstall_cmds='chmod 555 $lib'
17191  # or fails outright, so override atomically:
17192  install_override_mode=555
17193  ;;
17194
17195interix[3-9]*)
17196  version_type=linux
17197  need_lib_prefix=no
17198  need_version=no
17199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200  soname_spec='${libname}${release}${shared_ext}$major'
17201  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17202  shlibpath_var=LD_LIBRARY_PATH
17203  shlibpath_overrides_runpath=no
17204  hardcode_into_libs=yes
17205  ;;
17206
17207irix5* | irix6* | nonstopux*)
17208  case $host_os in
17209    nonstopux*) version_type=nonstopux ;;
17210    *)
17211	if test "$lt_cv_prog_gnu_ld" = yes; then
17212		version_type=linux
17213	else
17214		version_type=irix
17215	fi ;;
17216  esac
17217  need_lib_prefix=no
17218  need_version=no
17219  soname_spec='${libname}${release}${shared_ext}$major'
17220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17221  case $host_os in
17222  irix5* | nonstopux*)
17223    libsuff= shlibsuff=
17224    ;;
17225  *)
17226    case $LD in # libtool.m4 will add one of these switches to LD
17227    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17228      libsuff= shlibsuff= libmagic=32-bit;;
17229    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17230      libsuff=32 shlibsuff=N32 libmagic=N32;;
17231    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17232      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17233    *) libsuff= shlibsuff= libmagic=never-match;;
17234    esac
17235    ;;
17236  esac
17237  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17238  shlibpath_overrides_runpath=no
17239  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17240  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17241  hardcode_into_libs=yes
17242  ;;
17243
17244# No shared lib support for Linux oldld, aout, or coff.
17245linux*oldld* | linux*aout* | linux*coff*)
17246  dynamic_linker=no
17247  ;;
17248
17249# This must be Linux ELF.
17250linux* | k*bsd*-gnu | kopensolaris*-gnu)
17251  version_type=linux
17252  need_lib_prefix=no
17253  need_version=no
17254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255  soname_spec='${libname}${release}${shared_ext}$major'
17256  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17257  shlibpath_var=LD_LIBRARY_PATH
17258  shlibpath_overrides_runpath=no
17259
17260  # Some binutils ld are patched to set DT_RUNPATH
17261  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17262  $as_echo_n "(cached) " >&6
17263else
17264  lt_cv_shlibpath_overrides_runpath=no
17265    save_LDFLAGS=$LDFLAGS
17266    save_libdir=$libdir
17267    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17268	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17269    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270/* end confdefs.h.  */
17271
17272int
17273main ()
17274{
17275
17276  ;
17277  return 0;
17278}
17279_ACEOF
17280if ac_fn_c_try_link "$LINENO"; then :
17281  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17282  lt_cv_shlibpath_overrides_runpath=yes
17283fi
17284fi
17285rm -f core conftest.err conftest.$ac_objext \
17286    conftest$ac_exeext conftest.$ac_ext
17287    LDFLAGS=$save_LDFLAGS
17288    libdir=$save_libdir
17289
17290fi
17291
17292  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17293
17294  # This implies no fast_install, which is unacceptable.
17295  # Some rework will be needed to allow for fast_install
17296  # before this can be enabled.
17297  hardcode_into_libs=yes
17298
17299  # Append ld.so.conf contents to the search path
17300  if test -f /etc/ld.so.conf; then
17301    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' ' '`
17302    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17303  fi
17304
17305  # We used to test for /lib/ld.so.1 and disable shared libraries on
17306  # powerpc, because MkLinux only supported shared libraries with the
17307  # GNU dynamic linker.  Since this was broken with cross compilers,
17308  # most powerpc-linux boxes support dynamic linking these days and
17309  # people can always --disable-shared, the test was removed, and we
17310  # assume the GNU/Linux dynamic linker is in use.
17311  dynamic_linker='GNU/Linux ld.so'
17312  ;;
17313
17314netbsd*)
17315  version_type=sunos
17316  need_lib_prefix=no
17317  need_version=no
17318  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17319    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17320    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17321    dynamic_linker='NetBSD (a.out) ld.so'
17322  else
17323    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17324    soname_spec='${libname}${release}${shared_ext}$major'
17325    dynamic_linker='NetBSD ld.elf_so'
17326  fi
17327  shlibpath_var=LD_LIBRARY_PATH
17328  shlibpath_overrides_runpath=yes
17329  hardcode_into_libs=yes
17330  ;;
17331
17332newsos6)
17333  version_type=linux
17334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335  shlibpath_var=LD_LIBRARY_PATH
17336  shlibpath_overrides_runpath=yes
17337  ;;
17338
17339*nto* | *qnx*)
17340  version_type=qnx
17341  need_lib_prefix=no
17342  need_version=no
17343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344  soname_spec='${libname}${release}${shared_ext}$major'
17345  shlibpath_var=LD_LIBRARY_PATH
17346  shlibpath_overrides_runpath=no
17347  hardcode_into_libs=yes
17348  dynamic_linker='ldqnx.so'
17349  ;;
17350
17351openbsd*)
17352  version_type=sunos
17353  sys_lib_dlsearch_path_spec="/usr/lib"
17354  need_lib_prefix=no
17355  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17356  case $host_os in
17357    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17358    *)				need_version=no  ;;
17359  esac
17360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17361  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17362  shlibpath_var=LD_LIBRARY_PATH
17363  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17364    case $host_os in
17365      openbsd2.[89] | openbsd2.[89].*)
17366	shlibpath_overrides_runpath=no
17367	;;
17368      *)
17369	shlibpath_overrides_runpath=yes
17370	;;
17371      esac
17372  else
17373    shlibpath_overrides_runpath=yes
17374  fi
17375  ;;
17376
17377os2*)
17378  libname_spec='$name'
17379  shrext_cmds=".dll"
17380  need_lib_prefix=no
17381  library_names_spec='$libname${shared_ext} $libname.a'
17382  dynamic_linker='OS/2 ld.exe'
17383  shlibpath_var=LIBPATH
17384  ;;
17385
17386osf3* | osf4* | osf5*)
17387  version_type=osf
17388  need_lib_prefix=no
17389  need_version=no
17390  soname_spec='${libname}${release}${shared_ext}$major'
17391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17392  shlibpath_var=LD_LIBRARY_PATH
17393  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17394  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17395  ;;
17396
17397rdos*)
17398  dynamic_linker=no
17399  ;;
17400
17401solaris*)
17402  version_type=linux
17403  need_lib_prefix=no
17404  need_version=no
17405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406  soname_spec='${libname}${release}${shared_ext}$major'
17407  shlibpath_var=LD_LIBRARY_PATH
17408  shlibpath_overrides_runpath=yes
17409  hardcode_into_libs=yes
17410  # ldd complains unless libraries are executable
17411  postinstall_cmds='chmod +x $lib'
17412  ;;
17413
17414sunos4*)
17415  version_type=sunos
17416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17417  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17418  shlibpath_var=LD_LIBRARY_PATH
17419  shlibpath_overrides_runpath=yes
17420  if test "$with_gnu_ld" = yes; then
17421    need_lib_prefix=no
17422  fi
17423  need_version=yes
17424  ;;
17425
17426sysv4 | sysv4.3*)
17427  version_type=linux
17428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429  soname_spec='${libname}${release}${shared_ext}$major'
17430  shlibpath_var=LD_LIBRARY_PATH
17431  case $host_vendor in
17432    sni)
17433      shlibpath_overrides_runpath=no
17434      need_lib_prefix=no
17435      runpath_var=LD_RUN_PATH
17436      ;;
17437    siemens)
17438      need_lib_prefix=no
17439      ;;
17440    motorola)
17441      need_lib_prefix=no
17442      need_version=no
17443      shlibpath_overrides_runpath=no
17444      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17445      ;;
17446  esac
17447  ;;
17448
17449sysv4*MP*)
17450  if test -d /usr/nec ;then
17451    version_type=linux
17452    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17453    soname_spec='$libname${shared_ext}.$major'
17454    shlibpath_var=LD_LIBRARY_PATH
17455  fi
17456  ;;
17457
17458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17459  version_type=freebsd-elf
17460  need_lib_prefix=no
17461  need_version=no
17462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17463  soname_spec='${libname}${release}${shared_ext}$major'
17464  shlibpath_var=LD_LIBRARY_PATH
17465  shlibpath_overrides_runpath=yes
17466  hardcode_into_libs=yes
17467  if test "$with_gnu_ld" = yes; then
17468    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17469  else
17470    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17471    case $host_os in
17472      sco3.2v5*)
17473        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17474	;;
17475    esac
17476  fi
17477  sys_lib_dlsearch_path_spec='/usr/lib'
17478  ;;
17479
17480tpf*)
17481  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17482  version_type=linux
17483  need_lib_prefix=no
17484  need_version=no
17485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486  shlibpath_var=LD_LIBRARY_PATH
17487  shlibpath_overrides_runpath=no
17488  hardcode_into_libs=yes
17489  ;;
17490
17491uts4*)
17492  version_type=linux
17493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494  soname_spec='${libname}${release}${shared_ext}$major'
17495  shlibpath_var=LD_LIBRARY_PATH
17496  ;;
17497
17498*)
17499  dynamic_linker=no
17500  ;;
17501esac
17502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17503$as_echo "$dynamic_linker" >&6; }
17504test "$dynamic_linker" = no && can_build_shared=no
17505
17506variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17507if test "$GCC" = yes; then
17508  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17509fi
17510
17511if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17512  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17513fi
17514if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17515  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17516fi
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17610$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17611hardcode_action=
17612if test -n "$hardcode_libdir_flag_spec" ||
17613   test -n "$runpath_var" ||
17614   test "X$hardcode_automatic" = "Xyes" ; then
17615
17616  # We can hardcode non-existent directories.
17617  if test "$hardcode_direct" != no &&
17618     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17619     # have to relink, otherwise we might link with an installed library
17620     # when we should be linking with a yet-to-be-installed one
17621     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17622     test "$hardcode_minus_L" != no; then
17623    # Linking always hardcodes the temporary library directory.
17624    hardcode_action=relink
17625  else
17626    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17627    hardcode_action=immediate
17628  fi
17629else
17630  # We cannot hardcode anything, or else we can only hardcode existing
17631  # directories.
17632  hardcode_action=unsupported
17633fi
17634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17635$as_echo "$hardcode_action" >&6; }
17636
17637if test "$hardcode_action" = relink ||
17638   test "$inherit_rpath" = yes; then
17639  # Fast installation is not supported
17640  enable_fast_install=no
17641elif test "$shlibpath_overrides_runpath" = yes ||
17642     test "$enable_shared" = no; then
17643  # Fast installation is not necessary
17644  enable_fast_install=needless
17645fi
17646
17647
17648
17649
17650
17651
17652  if test "x$enable_dlopen" != xyes; then
17653  enable_dlopen=unknown
17654  enable_dlopen_self=unknown
17655  enable_dlopen_self_static=unknown
17656else
17657  lt_cv_dlopen=no
17658  lt_cv_dlopen_libs=
17659
17660  case $host_os in
17661  beos*)
17662    lt_cv_dlopen="load_add_on"
17663    lt_cv_dlopen_libs=
17664    lt_cv_dlopen_self=yes
17665    ;;
17666
17667  mingw* | pw32* | cegcc*)
17668    lt_cv_dlopen="LoadLibrary"
17669    lt_cv_dlopen_libs=
17670    ;;
17671
17672  cygwin*)
17673    lt_cv_dlopen="dlopen"
17674    lt_cv_dlopen_libs=
17675    ;;
17676
17677  darwin*)
17678  # if libdl is installed we need to link against it
17679    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17680$as_echo_n "checking for dlopen in -ldl... " >&6; }
17681if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17682  $as_echo_n "(cached) " >&6
17683else
17684  ac_check_lib_save_LIBS=$LIBS
17685LIBS="-ldl  $LIBS"
17686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17687/* end confdefs.h.  */
17688
17689/* Override any GCC internal prototype to avoid an error.
17690   Use char because int might match the return type of a GCC
17691   builtin and then its argument prototype would still apply.  */
17692#ifdef __cplusplus
17693extern "C"
17694#endif
17695char dlopen ();
17696int
17697main ()
17698{
17699return dlopen ();
17700  ;
17701  return 0;
17702}
17703_ACEOF
17704if ac_fn_c_try_link "$LINENO"; then :
17705  ac_cv_lib_dl_dlopen=yes
17706else
17707  ac_cv_lib_dl_dlopen=no
17708fi
17709rm -f core conftest.err conftest.$ac_objext \
17710    conftest$ac_exeext conftest.$ac_ext
17711LIBS=$ac_check_lib_save_LIBS
17712fi
17713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17714$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17715if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17716  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17717else
17718
17719    lt_cv_dlopen="dyld"
17720    lt_cv_dlopen_libs=
17721    lt_cv_dlopen_self=yes
17722
17723fi
17724
17725    ;;
17726
17727  *)
17728    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17729if test "x$ac_cv_func_shl_load" = x""yes; then :
17730  lt_cv_dlopen="shl_load"
17731else
17732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17733$as_echo_n "checking for shl_load in -ldld... " >&6; }
17734if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17735  $as_echo_n "(cached) " >&6
17736else
17737  ac_check_lib_save_LIBS=$LIBS
17738LIBS="-ldld  $LIBS"
17739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740/* end confdefs.h.  */
17741
17742/* Override any GCC internal prototype to avoid an error.
17743   Use char because int might match the return type of a GCC
17744   builtin and then its argument prototype would still apply.  */
17745#ifdef __cplusplus
17746extern "C"
17747#endif
17748char shl_load ();
17749int
17750main ()
17751{
17752return shl_load ();
17753  ;
17754  return 0;
17755}
17756_ACEOF
17757if ac_fn_c_try_link "$LINENO"; then :
17758  ac_cv_lib_dld_shl_load=yes
17759else
17760  ac_cv_lib_dld_shl_load=no
17761fi
17762rm -f core conftest.err conftest.$ac_objext \
17763    conftest$ac_exeext conftest.$ac_ext
17764LIBS=$ac_check_lib_save_LIBS
17765fi
17766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17767$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17768if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17769  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17770else
17771  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17772if test "x$ac_cv_func_dlopen" = x""yes; then :
17773  lt_cv_dlopen="dlopen"
17774else
17775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17776$as_echo_n "checking for dlopen in -ldl... " >&6; }
17777if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17778  $as_echo_n "(cached) " >&6
17779else
17780  ac_check_lib_save_LIBS=$LIBS
17781LIBS="-ldl  $LIBS"
17782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783/* end confdefs.h.  */
17784
17785/* Override any GCC internal prototype to avoid an error.
17786   Use char because int might match the return type of a GCC
17787   builtin and then its argument prototype would still apply.  */
17788#ifdef __cplusplus
17789extern "C"
17790#endif
17791char dlopen ();
17792int
17793main ()
17794{
17795return dlopen ();
17796  ;
17797  return 0;
17798}
17799_ACEOF
17800if ac_fn_c_try_link "$LINENO"; then :
17801  ac_cv_lib_dl_dlopen=yes
17802else
17803  ac_cv_lib_dl_dlopen=no
17804fi
17805rm -f core conftest.err conftest.$ac_objext \
17806    conftest$ac_exeext conftest.$ac_ext
17807LIBS=$ac_check_lib_save_LIBS
17808fi
17809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17810$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17811if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17812  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17813else
17814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17815$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17816if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17817  $as_echo_n "(cached) " >&6
17818else
17819  ac_check_lib_save_LIBS=$LIBS
17820LIBS="-lsvld  $LIBS"
17821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822/* end confdefs.h.  */
17823
17824/* Override any GCC internal prototype to avoid an error.
17825   Use char because int might match the return type of a GCC
17826   builtin and then its argument prototype would still apply.  */
17827#ifdef __cplusplus
17828extern "C"
17829#endif
17830char dlopen ();
17831int
17832main ()
17833{
17834return dlopen ();
17835  ;
17836  return 0;
17837}
17838_ACEOF
17839if ac_fn_c_try_link "$LINENO"; then :
17840  ac_cv_lib_svld_dlopen=yes
17841else
17842  ac_cv_lib_svld_dlopen=no
17843fi
17844rm -f core conftest.err conftest.$ac_objext \
17845    conftest$ac_exeext conftest.$ac_ext
17846LIBS=$ac_check_lib_save_LIBS
17847fi
17848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17849$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17850if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17851  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17852else
17853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17854$as_echo_n "checking for dld_link in -ldld... " >&6; }
17855if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17856  $as_echo_n "(cached) " >&6
17857else
17858  ac_check_lib_save_LIBS=$LIBS
17859LIBS="-ldld  $LIBS"
17860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861/* end confdefs.h.  */
17862
17863/* Override any GCC internal prototype to avoid an error.
17864   Use char because int might match the return type of a GCC
17865   builtin and then its argument prototype would still apply.  */
17866#ifdef __cplusplus
17867extern "C"
17868#endif
17869char dld_link ();
17870int
17871main ()
17872{
17873return dld_link ();
17874  ;
17875  return 0;
17876}
17877_ACEOF
17878if ac_fn_c_try_link "$LINENO"; then :
17879  ac_cv_lib_dld_dld_link=yes
17880else
17881  ac_cv_lib_dld_dld_link=no
17882fi
17883rm -f core conftest.err conftest.$ac_objext \
17884    conftest$ac_exeext conftest.$ac_ext
17885LIBS=$ac_check_lib_save_LIBS
17886fi
17887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17888$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17889if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17890  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17891fi
17892
17893
17894fi
17895
17896
17897fi
17898
17899
17900fi
17901
17902
17903fi
17904
17905
17906fi
17907
17908    ;;
17909  esac
17910
17911  if test "x$lt_cv_dlopen" != xno; then
17912    enable_dlopen=yes
17913  else
17914    enable_dlopen=no
17915  fi
17916
17917  case $lt_cv_dlopen in
17918  dlopen)
17919    save_CPPFLAGS="$CPPFLAGS"
17920    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17921
17922    save_LDFLAGS="$LDFLAGS"
17923    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17924
17925    save_LIBS="$LIBS"
17926    LIBS="$lt_cv_dlopen_libs $LIBS"
17927
17928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17929$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17930if test "${lt_cv_dlopen_self+set}" = set; then :
17931  $as_echo_n "(cached) " >&6
17932else
17933  	  if test "$cross_compiling" = yes; then :
17934  lt_cv_dlopen_self=cross
17935else
17936  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17937  lt_status=$lt_dlunknown
17938  cat > conftest.$ac_ext <<_LT_EOF
17939#line 17939 "configure"
17940#include "confdefs.h"
17941
17942#if HAVE_DLFCN_H
17943#include <dlfcn.h>
17944#endif
17945
17946#include <stdio.h>
17947
17948#ifdef RTLD_GLOBAL
17949#  define LT_DLGLOBAL		RTLD_GLOBAL
17950#else
17951#  ifdef DL_GLOBAL
17952#    define LT_DLGLOBAL		DL_GLOBAL
17953#  else
17954#    define LT_DLGLOBAL		0
17955#  endif
17956#endif
17957
17958/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17959   find out it does not work in some platform. */
17960#ifndef LT_DLLAZY_OR_NOW
17961#  ifdef RTLD_LAZY
17962#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17963#  else
17964#    ifdef DL_LAZY
17965#      define LT_DLLAZY_OR_NOW		DL_LAZY
17966#    else
17967#      ifdef RTLD_NOW
17968#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17969#      else
17970#        ifdef DL_NOW
17971#          define LT_DLLAZY_OR_NOW	DL_NOW
17972#        else
17973#          define LT_DLLAZY_OR_NOW	0
17974#        endif
17975#      endif
17976#    endif
17977#  endif
17978#endif
17979
17980/* When -fvisbility=hidden is used, assume the code has been annotated
17981   correspondingly for the symbols needed.  */
17982#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17983void fnord () __attribute__((visibility("default")));
17984#endif
17985
17986void fnord () { int i=42; }
17987int main ()
17988{
17989  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17990  int status = $lt_dlunknown;
17991
17992  if (self)
17993    {
17994      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17995      else
17996        {
17997	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17998          else puts (dlerror ());
17999	}
18000      /* dlclose (self); */
18001    }
18002  else
18003    puts (dlerror ());
18004
18005  return status;
18006}
18007_LT_EOF
18008  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18009  (eval $ac_link) 2>&5
18010  ac_status=$?
18011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18012  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18013    (./conftest; exit; ) >&5 2>/dev/null
18014    lt_status=$?
18015    case x$lt_status in
18016      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18017      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18018      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18019    esac
18020  else :
18021    # compilation failed
18022    lt_cv_dlopen_self=no
18023  fi
18024fi
18025rm -fr conftest*
18026
18027
18028fi
18029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18030$as_echo "$lt_cv_dlopen_self" >&6; }
18031
18032    if test "x$lt_cv_dlopen_self" = xyes; then
18033      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18034      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18035$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18036if test "${lt_cv_dlopen_self_static+set}" = set; then :
18037  $as_echo_n "(cached) " >&6
18038else
18039  	  if test "$cross_compiling" = yes; then :
18040  lt_cv_dlopen_self_static=cross
18041else
18042  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18043  lt_status=$lt_dlunknown
18044  cat > conftest.$ac_ext <<_LT_EOF
18045#line 18045 "configure"
18046#include "confdefs.h"
18047
18048#if HAVE_DLFCN_H
18049#include <dlfcn.h>
18050#endif
18051
18052#include <stdio.h>
18053
18054#ifdef RTLD_GLOBAL
18055#  define LT_DLGLOBAL		RTLD_GLOBAL
18056#else
18057#  ifdef DL_GLOBAL
18058#    define LT_DLGLOBAL		DL_GLOBAL
18059#  else
18060#    define LT_DLGLOBAL		0
18061#  endif
18062#endif
18063
18064/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18065   find out it does not work in some platform. */
18066#ifndef LT_DLLAZY_OR_NOW
18067#  ifdef RTLD_LAZY
18068#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18069#  else
18070#    ifdef DL_LAZY
18071#      define LT_DLLAZY_OR_NOW		DL_LAZY
18072#    else
18073#      ifdef RTLD_NOW
18074#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18075#      else
18076#        ifdef DL_NOW
18077#          define LT_DLLAZY_OR_NOW	DL_NOW
18078#        else
18079#          define LT_DLLAZY_OR_NOW	0
18080#        endif
18081#      endif
18082#    endif
18083#  endif
18084#endif
18085
18086/* When -fvisbility=hidden is used, assume the code has been annotated
18087   correspondingly for the symbols needed.  */
18088#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18089void fnord () __attribute__((visibility("default")));
18090#endif
18091
18092void fnord () { int i=42; }
18093int main ()
18094{
18095  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18096  int status = $lt_dlunknown;
18097
18098  if (self)
18099    {
18100      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18101      else
18102        {
18103	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18104          else puts (dlerror ());
18105	}
18106      /* dlclose (self); */
18107    }
18108  else
18109    puts (dlerror ());
18110
18111  return status;
18112}
18113_LT_EOF
18114  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18115  (eval $ac_link) 2>&5
18116  ac_status=$?
18117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18118  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18119    (./conftest; exit; ) >&5 2>/dev/null
18120    lt_status=$?
18121    case x$lt_status in
18122      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18123      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18124      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18125    esac
18126  else :
18127    # compilation failed
18128    lt_cv_dlopen_self_static=no
18129  fi
18130fi
18131rm -fr conftest*
18132
18133
18134fi
18135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18136$as_echo "$lt_cv_dlopen_self_static" >&6; }
18137    fi
18138
18139    CPPFLAGS="$save_CPPFLAGS"
18140    LDFLAGS="$save_LDFLAGS"
18141    LIBS="$save_LIBS"
18142    ;;
18143  esac
18144
18145  case $lt_cv_dlopen_self in
18146  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18147  *) enable_dlopen_self=unknown ;;
18148  esac
18149
18150  case $lt_cv_dlopen_self_static in
18151  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18152  *) enable_dlopen_self_static=unknown ;;
18153  esac
18154fi
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172striplib=
18173old_striplib=
18174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18175$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18176if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18177  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18178  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18180$as_echo "yes" >&6; }
18181else
18182# FIXME - insert some real tests, host_os isn't really good enough
18183  case $host_os in
18184  darwin*)
18185    if test -n "$STRIP" ; then
18186      striplib="$STRIP -x"
18187      old_striplib="$STRIP -S"
18188      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18189$as_echo "yes" >&6; }
18190    else
18191      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18192$as_echo "no" >&6; }
18193    fi
18194    ;;
18195  *)
18196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18197$as_echo "no" >&6; }
18198    ;;
18199  esac
18200fi
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213  # Report which library types will actually be built
18214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18215$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18217$as_echo "$can_build_shared" >&6; }
18218
18219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18220$as_echo_n "checking whether to build shared libraries... " >&6; }
18221  test "$can_build_shared" = "no" && enable_shared=no
18222
18223  # On AIX, shared libraries and static libraries use the same namespace, and
18224  # are all built from PIC.
18225  case $host_os in
18226  aix3*)
18227    test "$enable_shared" = yes && enable_static=no
18228    if test -n "$RANLIB"; then
18229      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18230      postinstall_cmds='$RANLIB $lib'
18231    fi
18232    ;;
18233
18234  aix[4-9]*)
18235    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18236      test "$enable_shared" = yes && enable_static=no
18237    fi
18238    ;;
18239  esac
18240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18241$as_echo "$enable_shared" >&6; }
18242
18243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18244$as_echo_n "checking whether to build static libraries... " >&6; }
18245  # Make sure either enable_shared or enable_static is yes.
18246  test "$enable_shared" = yes || enable_static=yes
18247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18248$as_echo "$enable_static" >&6; }
18249
18250
18251
18252
18253fi
18254ac_ext=c
18255ac_cpp='$CPP $CPPFLAGS'
18256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18258ac_compiler_gnu=$ac_cv_c_compiler_gnu
18259
18260CC="$lt_save_CC"
18261
18262      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18263    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18264    (test "X$CXX" != "Xg++"))) ; then
18265  ac_ext=cpp
18266ac_cpp='$CXXCPP $CPPFLAGS'
18267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18271$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18272if test -z "$CXXCPP"; then
18273  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18274  $as_echo_n "(cached) " >&6
18275else
18276      # Double quotes because CXXCPP needs to be expanded
18277    for CXXCPP in "$CXX -E" "/lib/cpp"
18278    do
18279      ac_preproc_ok=false
18280for ac_cxx_preproc_warn_flag in '' yes
18281do
18282  # Use a header file that comes with gcc, so configuring glibc
18283  # with a fresh cross-compiler works.
18284  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18285  # <limits.h> exists even on freestanding compilers.
18286  # On the NeXT, cc -E runs the code through the compiler's parser,
18287  # not just through cpp. "Syntax error" is here to catch this case.
18288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289/* end confdefs.h.  */
18290#ifdef __STDC__
18291# include <limits.h>
18292#else
18293# include <assert.h>
18294#endif
18295		     Syntax error
18296_ACEOF
18297if ac_fn_cxx_try_cpp "$LINENO"; then :
18298
18299else
18300  # Broken: fails on valid input.
18301continue
18302fi
18303rm -f conftest.err conftest.$ac_ext
18304
18305  # OK, works on sane cases.  Now check whether nonexistent headers
18306  # can be detected and how.
18307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308/* end confdefs.h.  */
18309#include <ac_nonexistent.h>
18310_ACEOF
18311if ac_fn_cxx_try_cpp "$LINENO"; then :
18312  # Broken: success on invalid input.
18313continue
18314else
18315  # Passes both tests.
18316ac_preproc_ok=:
18317break
18318fi
18319rm -f conftest.err conftest.$ac_ext
18320
18321done
18322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18323rm -f conftest.err conftest.$ac_ext
18324if $ac_preproc_ok; then :
18325  break
18326fi
18327
18328    done
18329    ac_cv_prog_CXXCPP=$CXXCPP
18330
18331fi
18332  CXXCPP=$ac_cv_prog_CXXCPP
18333else
18334  ac_cv_prog_CXXCPP=$CXXCPP
18335fi
18336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18337$as_echo "$CXXCPP" >&6; }
18338ac_preproc_ok=false
18339for ac_cxx_preproc_warn_flag in '' yes
18340do
18341  # Use a header file that comes with gcc, so configuring glibc
18342  # with a fresh cross-compiler works.
18343  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18344  # <limits.h> exists even on freestanding compilers.
18345  # On the NeXT, cc -E runs the code through the compiler's parser,
18346  # not just through cpp. "Syntax error" is here to catch this case.
18347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348/* end confdefs.h.  */
18349#ifdef __STDC__
18350# include <limits.h>
18351#else
18352# include <assert.h>
18353#endif
18354		     Syntax error
18355_ACEOF
18356if ac_fn_cxx_try_cpp "$LINENO"; then :
18357
18358else
18359  # Broken: fails on valid input.
18360continue
18361fi
18362rm -f conftest.err conftest.$ac_ext
18363
18364  # OK, works on sane cases.  Now check whether nonexistent headers
18365  # can be detected and how.
18366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367/* end confdefs.h.  */
18368#include <ac_nonexistent.h>
18369_ACEOF
18370if ac_fn_cxx_try_cpp "$LINENO"; then :
18371  # Broken: success on invalid input.
18372continue
18373else
18374  # Passes both tests.
18375ac_preproc_ok=:
18376break
18377fi
18378rm -f conftest.err conftest.$ac_ext
18379
18380done
18381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18382rm -f conftest.err conftest.$ac_ext
18383if $ac_preproc_ok; then :
18384
18385else
18386  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18388as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18389See \`config.log' for more details." "$LINENO" 5; }
18390fi
18391
18392ac_ext=c
18393ac_cpp='$CPP $CPPFLAGS'
18394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18396ac_compiler_gnu=$ac_cv_c_compiler_gnu
18397
18398else
18399  _lt_caught_CXX_error=yes
18400fi
18401
18402ac_ext=cpp
18403ac_cpp='$CXXCPP $CPPFLAGS'
18404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18407
18408archive_cmds_need_lc_CXX=no
18409allow_undefined_flag_CXX=
18410always_export_symbols_CXX=no
18411archive_expsym_cmds_CXX=
18412compiler_needs_object_CXX=no
18413export_dynamic_flag_spec_CXX=
18414hardcode_direct_CXX=no
18415hardcode_direct_absolute_CXX=no
18416hardcode_libdir_flag_spec_CXX=
18417hardcode_libdir_flag_spec_ld_CXX=
18418hardcode_libdir_separator_CXX=
18419hardcode_minus_L_CXX=no
18420hardcode_shlibpath_var_CXX=unsupported
18421hardcode_automatic_CXX=no
18422inherit_rpath_CXX=no
18423module_cmds_CXX=
18424module_expsym_cmds_CXX=
18425link_all_deplibs_CXX=unknown
18426old_archive_cmds_CXX=$old_archive_cmds
18427reload_flag_CXX=$reload_flag
18428reload_cmds_CXX=$reload_cmds
18429no_undefined_flag_CXX=
18430whole_archive_flag_spec_CXX=
18431enable_shared_with_static_runtimes_CXX=no
18432
18433# Source file extension for C++ test sources.
18434ac_ext=cpp
18435
18436# Object file extension for compiled C++ test sources.
18437objext=o
18438objext_CXX=$objext
18439
18440# No sense in running all these tests if we already determined that
18441# the CXX compiler isn't working.  Some variables (like enable_shared)
18442# are currently assumed to apply to all compilers on this platform,
18443# and will be corrupted by setting them based on a non-working compiler.
18444if test "$_lt_caught_CXX_error" != yes; then
18445  # Code to be used in simple compile tests
18446  lt_simple_compile_test_code="int some_variable = 0;"
18447
18448  # Code to be used in simple link tests
18449  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18450
18451  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18452
18453
18454
18455
18456
18457
18458# If no C compiler was specified, use CC.
18459LTCC=${LTCC-"$CC"}
18460
18461# If no C compiler flags were specified, use CFLAGS.
18462LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18463
18464# Allow CC to be a program name with arguments.
18465compiler=$CC
18466
18467
18468  # save warnings/boilerplate of simple test code
18469  ac_outfile=conftest.$ac_objext
18470echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18471eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18472_lt_compiler_boilerplate=`cat conftest.err`
18473$RM conftest*
18474
18475  ac_outfile=conftest.$ac_objext
18476echo "$lt_simple_link_test_code" >conftest.$ac_ext
18477eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18478_lt_linker_boilerplate=`cat conftest.err`
18479$RM -r conftest*
18480
18481
18482  # Allow CC to be a program name with arguments.
18483  lt_save_CC=$CC
18484  lt_save_LD=$LD
18485  lt_save_GCC=$GCC
18486  GCC=$GXX
18487  lt_save_with_gnu_ld=$with_gnu_ld
18488  lt_save_path_LD=$lt_cv_path_LD
18489  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18490    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18491  else
18492    $as_unset lt_cv_prog_gnu_ld
18493  fi
18494  if test -n "${lt_cv_path_LDCXX+set}"; then
18495    lt_cv_path_LD=$lt_cv_path_LDCXX
18496  else
18497    $as_unset lt_cv_path_LD
18498  fi
18499  test -z "${LDCXX+set}" || LD=$LDCXX
18500  CC=${CXX-"c++"}
18501  compiler=$CC
18502  compiler_CXX=$CC
18503  for cc_temp in $compiler""; do
18504  case $cc_temp in
18505    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18506    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18507    \-*) ;;
18508    *) break;;
18509  esac
18510done
18511cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18512
18513
18514  if test -n "$compiler"; then
18515    # We don't want -fno-exception when compiling C++ code, so set the
18516    # no_builtin_flag separately
18517    if test "$GXX" = yes; then
18518      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18519    else
18520      lt_prog_compiler_no_builtin_flag_CXX=
18521    fi
18522
18523    if test "$GXX" = yes; then
18524      # Set up default GNU C++ configuration
18525
18526
18527
18528# Check whether --with-gnu-ld was given.
18529if test "${with_gnu_ld+set}" = set; then :
18530  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18531else
18532  with_gnu_ld=no
18533fi
18534
18535ac_prog=ld
18536if test "$GCC" = yes; then
18537  # Check if gcc -print-prog-name=ld gives a path.
18538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18539$as_echo_n "checking for ld used by $CC... " >&6; }
18540  case $host in
18541  *-*-mingw*)
18542    # gcc leaves a trailing carriage return which upsets mingw
18543    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18544  *)
18545    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18546  esac
18547  case $ac_prog in
18548    # Accept absolute paths.
18549    [\\/]* | ?:[\\/]*)
18550      re_direlt='/[^/][^/]*/\.\./'
18551      # Canonicalize the pathname of ld
18552      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18553      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18554	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18555      done
18556      test -z "$LD" && LD="$ac_prog"
18557      ;;
18558  "")
18559    # If it fails, then pretend we aren't using GCC.
18560    ac_prog=ld
18561    ;;
18562  *)
18563    # If it is relative, then search for the first ld in PATH.
18564    with_gnu_ld=unknown
18565    ;;
18566  esac
18567elif test "$with_gnu_ld" = yes; then
18568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18569$as_echo_n "checking for GNU ld... " >&6; }
18570else
18571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18572$as_echo_n "checking for non-GNU ld... " >&6; }
18573fi
18574if test "${lt_cv_path_LD+set}" = set; then :
18575  $as_echo_n "(cached) " >&6
18576else
18577  if test -z "$LD"; then
18578  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18579  for ac_dir in $PATH; do
18580    IFS="$lt_save_ifs"
18581    test -z "$ac_dir" && ac_dir=.
18582    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18583      lt_cv_path_LD="$ac_dir/$ac_prog"
18584      # Check to see if the program is GNU ld.  I'd rather use --version,
18585      # but apparently some variants of GNU ld only accept -v.
18586      # Break only if it was the GNU/non-GNU ld that we prefer.
18587      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18588      *GNU* | *'with BFD'*)
18589	test "$with_gnu_ld" != no && break
18590	;;
18591      *)
18592	test "$with_gnu_ld" != yes && break
18593	;;
18594      esac
18595    fi
18596  done
18597  IFS="$lt_save_ifs"
18598else
18599  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18600fi
18601fi
18602
18603LD="$lt_cv_path_LD"
18604if test -n "$LD"; then
18605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18606$as_echo "$LD" >&6; }
18607else
18608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18609$as_echo "no" >&6; }
18610fi
18611test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18613$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18614if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18615  $as_echo_n "(cached) " >&6
18616else
18617  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18618case `$LD -v 2>&1 </dev/null` in
18619*GNU* | *'with BFD'*)
18620  lt_cv_prog_gnu_ld=yes
18621  ;;
18622*)
18623  lt_cv_prog_gnu_ld=no
18624  ;;
18625esac
18626fi
18627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18628$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18629with_gnu_ld=$lt_cv_prog_gnu_ld
18630
18631
18632
18633
18634
18635
18636
18637      # Check if GNU C++ uses GNU ld as the underlying linker, since the
18638      # archiving commands below assume that GNU ld is being used.
18639      if test "$with_gnu_ld" = yes; then
18640        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18641        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18642
18643        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18644        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18645
18646        # If archive_cmds runs LD, not CC, wlarc should be empty
18647        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18648        #     investigate it a little bit more. (MM)
18649        wlarc='${wl}'
18650
18651        # ancient GNU ld didn't support --whole-archive et. al.
18652        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18653	  $GREP 'no-whole-archive' > /dev/null; then
18654          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18655        else
18656          whole_archive_flag_spec_CXX=
18657        fi
18658      else
18659        with_gnu_ld=no
18660        wlarc=
18661
18662        # A generic and very simple default shared library creation
18663        # command for GNU C++ for the case where it uses the native
18664        # linker, instead of GNU ld.  If possible, this setting should
18665        # overridden to take advantage of the native linker features on
18666        # the platform it is being used on.
18667        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18668      fi
18669
18670      # Commands to make compiler produce verbose output that lists
18671      # what "hidden" libraries, object files and flags are used when
18672      # linking a shared library.
18673      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18674
18675    else
18676      GXX=no
18677      with_gnu_ld=no
18678      wlarc=
18679    fi
18680
18681    # PORTME: fill in a description of your system's C++ link characteristics
18682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18683$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18684    ld_shlibs_CXX=yes
18685    case $host_os in
18686      aix3*)
18687        # FIXME: insert proper C++ library support
18688        ld_shlibs_CXX=no
18689        ;;
18690      aix[4-9]*)
18691        if test "$host_cpu" = ia64; then
18692          # On IA64, the linker does run time linking by default, so we don't
18693          # have to do anything special.
18694          aix_use_runtimelinking=no
18695          exp_sym_flag='-Bexport'
18696          no_entry_flag=""
18697        else
18698          aix_use_runtimelinking=no
18699
18700          # Test if we are trying to use run time linking or normal
18701          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18702          # need to do runtime linking.
18703          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18704	    for ld_flag in $LDFLAGS; do
18705	      case $ld_flag in
18706	      *-brtl*)
18707	        aix_use_runtimelinking=yes
18708	        break
18709	        ;;
18710	      esac
18711	    done
18712	    ;;
18713          esac
18714
18715          exp_sym_flag='-bexport'
18716          no_entry_flag='-bnoentry'
18717        fi
18718
18719        # When large executables or shared objects are built, AIX ld can
18720        # have problems creating the table of contents.  If linking a library
18721        # or program results in "error TOC overflow" add -mminimal-toc to
18722        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18723        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18724
18725        archive_cmds_CXX=''
18726        hardcode_direct_CXX=yes
18727        hardcode_direct_absolute_CXX=yes
18728        hardcode_libdir_separator_CXX=':'
18729        link_all_deplibs_CXX=yes
18730        file_list_spec_CXX='${wl}-f,'
18731
18732        if test "$GXX" = yes; then
18733          case $host_os in aix4.[012]|aix4.[012].*)
18734          # We only want to do this on AIX 4.2 and lower, the check
18735          # below for broken collect2 doesn't work under 4.3+
18736	  collect2name=`${CC} -print-prog-name=collect2`
18737	  if test -f "$collect2name" &&
18738	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18739	  then
18740	    # We have reworked collect2
18741	    :
18742	  else
18743	    # We have old collect2
18744	    hardcode_direct_CXX=unsupported
18745	    # It fails to find uninstalled libraries when the uninstalled
18746	    # path is not listed in the libpath.  Setting hardcode_minus_L
18747	    # to unsupported forces relinking
18748	    hardcode_minus_L_CXX=yes
18749	    hardcode_libdir_flag_spec_CXX='-L$libdir'
18750	    hardcode_libdir_separator_CXX=
18751	  fi
18752          esac
18753          shared_flag='-shared'
18754	  if test "$aix_use_runtimelinking" = yes; then
18755	    shared_flag="$shared_flag "'${wl}-G'
18756	  fi
18757        else
18758          # not using gcc
18759          if test "$host_cpu" = ia64; then
18760	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18761	  # chokes on -Wl,-G. The following line is correct:
18762	  shared_flag='-G'
18763          else
18764	    if test "$aix_use_runtimelinking" = yes; then
18765	      shared_flag='${wl}-G'
18766	    else
18767	      shared_flag='${wl}-bM:SRE'
18768	    fi
18769          fi
18770        fi
18771
18772        export_dynamic_flag_spec_CXX='${wl}-bexpall'
18773        # It seems that -bexpall does not export symbols beginning with
18774        # underscore (_), so it is better to generate a list of symbols to
18775	# export.
18776        always_export_symbols_CXX=yes
18777        if test "$aix_use_runtimelinking" = yes; then
18778          # Warning - without using the other runtime loading flags (-brtl),
18779          # -berok will link without error, but may produce a broken library.
18780          allow_undefined_flag_CXX='-berok'
18781          # Determine the default libpath from the value encoded in an empty
18782          # executable.
18783          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784/* end confdefs.h.  */
18785
18786int
18787main ()
18788{
18789
18790  ;
18791  return 0;
18792}
18793_ACEOF
18794if ac_fn_cxx_try_link "$LINENO"; then :
18795
18796lt_aix_libpath_sed='
18797    /Import File Strings/,/^$/ {
18798	/^0/ {
18799	    s/^0  *\(.*\)$/\1/
18800	    p
18801	}
18802    }'
18803aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18804# Check for a 64-bit object if we didn't find anything.
18805if test -z "$aix_libpath"; then
18806  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18807fi
18808fi
18809rm -f core conftest.err conftest.$ac_objext \
18810    conftest$ac_exeext conftest.$ac_ext
18811if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18812
18813          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18814
18815          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"
18816        else
18817          if test "$host_cpu" = ia64; then
18818	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18819	    allow_undefined_flag_CXX="-z nodefs"
18820	    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"
18821          else
18822	    # Determine the default libpath from the value encoded in an
18823	    # empty executable.
18824	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825/* end confdefs.h.  */
18826
18827int
18828main ()
18829{
18830
18831  ;
18832  return 0;
18833}
18834_ACEOF
18835if ac_fn_cxx_try_link "$LINENO"; then :
18836
18837lt_aix_libpath_sed='
18838    /Import File Strings/,/^$/ {
18839	/^0/ {
18840	    s/^0  *\(.*\)$/\1/
18841	    p
18842	}
18843    }'
18844aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18845# Check for a 64-bit object if we didn't find anything.
18846if test -z "$aix_libpath"; then
18847  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18848fi
18849fi
18850rm -f core conftest.err conftest.$ac_objext \
18851    conftest$ac_exeext conftest.$ac_ext
18852if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18853
18854	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18855	    # Warning - without using the other run time loading flags,
18856	    # -berok will link without error, but may produce a broken library.
18857	    no_undefined_flag_CXX=' ${wl}-bernotok'
18858	    allow_undefined_flag_CXX=' ${wl}-berok'
18859	    if test "$with_gnu_ld" = yes; then
18860	      # We only use this code for GNU lds that support --whole-archive.
18861	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18862	    else
18863	      # Exported symbols can be pulled into shared objects from archives
18864	      whole_archive_flag_spec_CXX='$convenience'
18865	    fi
18866	    archive_cmds_need_lc_CXX=yes
18867	    # This is similar to how AIX traditionally builds its shared
18868	    # libraries.
18869	    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'
18870          fi
18871        fi
18872        ;;
18873
18874      beos*)
18875	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18876	  allow_undefined_flag_CXX=unsupported
18877	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18878	  # support --undefined.  This deserves some investigation.  FIXME
18879	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18880	else
18881	  ld_shlibs_CXX=no
18882	fi
18883	;;
18884
18885      chorus*)
18886        case $cc_basename in
18887          *)
18888	  # FIXME: insert proper C++ library support
18889	  ld_shlibs_CXX=no
18890	  ;;
18891        esac
18892        ;;
18893
18894      cygwin* | mingw* | pw32* | cegcc*)
18895        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18896        # as there is no search path for DLLs.
18897        hardcode_libdir_flag_spec_CXX='-L$libdir'
18898        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18899        allow_undefined_flag_CXX=unsupported
18900        always_export_symbols_CXX=no
18901        enable_shared_with_static_runtimes_CXX=yes
18902
18903        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18904          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'
18905          # If the export-symbols file already is a .def file (1st line
18906          # is EXPORTS), use it as is; otherwise, prepend...
18907          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18908	    cp $export_symbols $output_objdir/$soname.def;
18909          else
18910	    echo EXPORTS > $output_objdir/$soname.def;
18911	    cat $export_symbols >> $output_objdir/$soname.def;
18912          fi~
18913          $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'
18914        else
18915          ld_shlibs_CXX=no
18916        fi
18917        ;;
18918      darwin* | rhapsody*)
18919
18920
18921  archive_cmds_need_lc_CXX=no
18922  hardcode_direct_CXX=no
18923  hardcode_automatic_CXX=yes
18924  hardcode_shlibpath_var_CXX=unsupported
18925  if test "$lt_cv_ld_force_load" = "yes"; then
18926    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\"`'
18927  else
18928    whole_archive_flag_spec_CXX=''
18929  fi
18930  link_all_deplibs_CXX=yes
18931  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18932  case $cc_basename in
18933     ifort*) _lt_dar_can_shared=yes ;;
18934     *) _lt_dar_can_shared=$GCC ;;
18935  esac
18936  if test "$_lt_dar_can_shared" = "yes"; then
18937    output_verbose_link_cmd=func_echo_all
18938    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}"
18939    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18940    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}"
18941    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}"
18942       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18943      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}"
18944      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}"
18945    fi
18946
18947  else
18948  ld_shlibs_CXX=no
18949  fi
18950
18951	;;
18952
18953      dgux*)
18954        case $cc_basename in
18955          ec++*)
18956	    # FIXME: insert proper C++ library support
18957	    ld_shlibs_CXX=no
18958	    ;;
18959          ghcx*)
18960	    # Green Hills C++ Compiler
18961	    # FIXME: insert proper C++ library support
18962	    ld_shlibs_CXX=no
18963	    ;;
18964          *)
18965	    # FIXME: insert proper C++ library support
18966	    ld_shlibs_CXX=no
18967	    ;;
18968        esac
18969        ;;
18970
18971      freebsd2.*)
18972        # C++ shared libraries reported to be fairly broken before
18973	# switch to ELF
18974        ld_shlibs_CXX=no
18975        ;;
18976
18977      freebsd-elf*)
18978        archive_cmds_need_lc_CXX=no
18979        ;;
18980
18981      freebsd* | dragonfly*)
18982        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18983        # conventions
18984        ld_shlibs_CXX=yes
18985        ;;
18986
18987      gnu*)
18988        ;;
18989
18990      haiku*)
18991        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18992        link_all_deplibs_CXX=yes
18993        ;;
18994
18995      hpux9*)
18996        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18997        hardcode_libdir_separator_CXX=:
18998        export_dynamic_flag_spec_CXX='${wl}-E'
18999        hardcode_direct_CXX=yes
19000        hardcode_minus_L_CXX=yes # Not in the search PATH,
19001				             # but as the default
19002				             # location of the library.
19003
19004        case $cc_basename in
19005          CC*)
19006            # FIXME: insert proper C++ library support
19007            ld_shlibs_CXX=no
19008            ;;
19009          aCC*)
19010            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'
19011            # Commands to make compiler produce verbose output that lists
19012            # what "hidden" libraries, object files and flags are used when
19013            # linking a shared library.
19014            #
19015            # There doesn't appear to be a way to prevent this compiler from
19016            # explicitly linking system object files so we need to strip them
19017            # from the output so that they don't get included in the library
19018            # dependencies.
19019            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"'
19020            ;;
19021          *)
19022            if test "$GXX" = yes; then
19023              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'
19024            else
19025              # FIXME: insert proper C++ library support
19026              ld_shlibs_CXX=no
19027            fi
19028            ;;
19029        esac
19030        ;;
19031
19032      hpux10*|hpux11*)
19033        if test $with_gnu_ld = no; then
19034	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19035	  hardcode_libdir_separator_CXX=:
19036
19037          case $host_cpu in
19038            hppa*64*|ia64*)
19039              ;;
19040            *)
19041	      export_dynamic_flag_spec_CXX='${wl}-E'
19042              ;;
19043          esac
19044        fi
19045        case $host_cpu in
19046          hppa*64*|ia64*)
19047            hardcode_direct_CXX=no
19048            hardcode_shlibpath_var_CXX=no
19049            ;;
19050          *)
19051            hardcode_direct_CXX=yes
19052            hardcode_direct_absolute_CXX=yes
19053            hardcode_minus_L_CXX=yes # Not in the search PATH,
19054					         # but as the default
19055					         # location of the library.
19056            ;;
19057        esac
19058
19059        case $cc_basename in
19060          CC*)
19061	    # FIXME: insert proper C++ library support
19062	    ld_shlibs_CXX=no
19063	    ;;
19064          aCC*)
19065	    case $host_cpu in
19066	      hppa*64*)
19067	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19068	        ;;
19069	      ia64*)
19070	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19071	        ;;
19072	      *)
19073	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074	        ;;
19075	    esac
19076	    # Commands to make compiler produce verbose output that lists
19077	    # what "hidden" libraries, object files and flags are used when
19078	    # linking a shared library.
19079	    #
19080	    # There doesn't appear to be a way to prevent this compiler from
19081	    # explicitly linking system object files so we need to strip them
19082	    # from the output so that they don't get included in the library
19083	    # dependencies.
19084	    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"'
19085	    ;;
19086          *)
19087	    if test "$GXX" = yes; then
19088	      if test $with_gnu_ld = no; then
19089	        case $host_cpu in
19090	          hppa*64*)
19091	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19092	            ;;
19093	          ia64*)
19094	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19095	            ;;
19096	          *)
19097	            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'
19098	            ;;
19099	        esac
19100	      fi
19101	    else
19102	      # FIXME: insert proper C++ library support
19103	      ld_shlibs_CXX=no
19104	    fi
19105	    ;;
19106        esac
19107        ;;
19108
19109      interix[3-9]*)
19110	hardcode_direct_CXX=no
19111	hardcode_shlibpath_var_CXX=no
19112	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19113	export_dynamic_flag_spec_CXX='${wl}-E'
19114	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19115	# Instead, shared libraries are loaded at an image base (0x10000000 by
19116	# default) and relocated if they conflict, which is a slow very memory
19117	# consuming and fragmenting process.  To avoid this, we pick a random,
19118	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19119	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19120	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'
19121	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'
19122	;;
19123      irix5* | irix6*)
19124        case $cc_basename in
19125          CC*)
19126	    # SGI C++
19127	    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'
19128
19129	    # Archives containing C++ object files must be created using
19130	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19131	    # necessary to make sure instantiated templates are included
19132	    # in the archive.
19133	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19134	    ;;
19135          *)
19136	    if test "$GXX" = yes; then
19137	      if test "$with_gnu_ld" = no; then
19138	        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'
19139	      else
19140	        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'
19141	      fi
19142	    fi
19143	    link_all_deplibs_CXX=yes
19144	    ;;
19145        esac
19146        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19147        hardcode_libdir_separator_CXX=:
19148        inherit_rpath_CXX=yes
19149        ;;
19150
19151      linux* | k*bsd*-gnu | kopensolaris*-gnu)
19152        case $cc_basename in
19153          KCC*)
19154	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19155
19156	    # KCC will only create a shared library if the output file
19157	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19158	    # to its proper name (with version) after linking.
19159	    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'
19160	    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'
19161	    # Commands to make compiler produce verbose output that lists
19162	    # what "hidden" libraries, object files and flags are used when
19163	    # linking a shared library.
19164	    #
19165	    # There doesn't appear to be a way to prevent this compiler from
19166	    # explicitly linking system object files so we need to strip them
19167	    # from the output so that they don't get included in the library
19168	    # dependencies.
19169	    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"'
19170
19171	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19172	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19173
19174	    # Archives containing C++ object files must be created using
19175	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19176	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19177	    ;;
19178	  icpc* | ecpc* )
19179	    # Intel C++
19180	    with_gnu_ld=yes
19181	    # version 8.0 and above of icpc choke on multiply defined symbols
19182	    # if we add $predep_objects and $postdep_objects, however 7.1 and
19183	    # earlier do not add the objects themselves.
19184	    case `$CC -V 2>&1` in
19185	      *"Version 7."*)
19186	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19187		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'
19188		;;
19189	      *)  # Version 8.0 or newer
19190	        tmp_idyn=
19191	        case $host_cpu in
19192		  ia64*) tmp_idyn=' -i_dynamic';;
19193		esac
19194	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19195		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'
19196		;;
19197	    esac
19198	    archive_cmds_need_lc_CXX=no
19199	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19200	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19201	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19202	    ;;
19203          pgCC* | pgcpp*)
19204            # Portland Group C++ compiler
19205	    case `$CC -V` in
19206	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19207	      prelink_cmds_CXX='tpldir=Template.dir~
19208		rm -rf $tpldir~
19209		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19210		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19211	      old_archive_cmds_CXX='tpldir=Template.dir~
19212		rm -rf $tpldir~
19213		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19214		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19215		$RANLIB $oldlib'
19216	      archive_cmds_CXX='tpldir=Template.dir~
19217		rm -rf $tpldir~
19218		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19219		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19220	      archive_expsym_cmds_CXX='tpldir=Template.dir~
19221		rm -rf $tpldir~
19222		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19223		$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'
19224	      ;;
19225	    *) # Version 6 and above use weak symbols
19226	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19227	      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'
19228	      ;;
19229	    esac
19230
19231	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19232	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19233	    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'
19234            ;;
19235	  cxx*)
19236	    # Compaq C++
19237	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19238	    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'
19239
19240	    runpath_var=LD_RUN_PATH
19241	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19242	    hardcode_libdir_separator_CXX=:
19243
19244	    # Commands to make compiler produce verbose output that lists
19245	    # what "hidden" libraries, object files and flags are used when
19246	    # linking a shared library.
19247	    #
19248	    # There doesn't appear to be a way to prevent this compiler from
19249	    # explicitly linking system object files so we need to strip them
19250	    # from the output so that they don't get included in the library
19251	    # dependencies.
19252	    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'
19253	    ;;
19254	  xl* | mpixl* | bgxl*)
19255	    # IBM XL 8.0 on PPC, with GNU ld
19256	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19257	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19258	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19259	    if test "x$supports_anon_versioning" = xyes; then
19260	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19261		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19262		echo "local: *; };" >> $output_objdir/$libname.ver~
19263		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19264	    fi
19265	    ;;
19266	  *)
19267	    case `$CC -V 2>&1 | sed 5q` in
19268	    *Sun\ C*)
19269	      # Sun C++ 5.9
19270	      no_undefined_flag_CXX=' -zdefs'
19271	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19272	      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'
19273	      hardcode_libdir_flag_spec_CXX='-R$libdir'
19274	      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'
19275	      compiler_needs_object_CXX=yes
19276
19277	      # Not sure whether something based on
19278	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19279	      # would be better.
19280	      output_verbose_link_cmd='func_echo_all'
19281
19282	      # Archives containing C++ object files must be created using
19283	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19284	      # necessary to make sure instantiated templates are included
19285	      # in the archive.
19286	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19287	      ;;
19288	    esac
19289	    ;;
19290	esac
19291	;;
19292
19293      lynxos*)
19294        # FIXME: insert proper C++ library support
19295	ld_shlibs_CXX=no
19296	;;
19297
19298      m88k*)
19299        # FIXME: insert proper C++ library support
19300        ld_shlibs_CXX=no
19301	;;
19302
19303      mvs*)
19304        case $cc_basename in
19305          cxx*)
19306	    # FIXME: insert proper C++ library support
19307	    ld_shlibs_CXX=no
19308	    ;;
19309	  *)
19310	    # FIXME: insert proper C++ library support
19311	    ld_shlibs_CXX=no
19312	    ;;
19313	esac
19314	;;
19315
19316      netbsd*)
19317        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19318	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19319	  wlarc=
19320	  hardcode_libdir_flag_spec_CXX='-R$libdir'
19321	  hardcode_direct_CXX=yes
19322	  hardcode_shlibpath_var_CXX=no
19323	fi
19324	# Workaround some broken pre-1.5 toolchains
19325	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19326	;;
19327
19328      *nto* | *qnx*)
19329        ld_shlibs_CXX=yes
19330	;;
19331
19332      openbsd2*)
19333        # C++ shared libraries are fairly broken
19334	ld_shlibs_CXX=no
19335	;;
19336
19337      openbsd*)
19338	if test -f /usr/libexec/ld.so; then
19339	  hardcode_direct_CXX=yes
19340	  hardcode_shlibpath_var_CXX=no
19341	  hardcode_direct_absolute_CXX=yes
19342	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19343	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19344	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19345	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19346	    export_dynamic_flag_spec_CXX='${wl}-E'
19347	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19348	  fi
19349	  output_verbose_link_cmd=func_echo_all
19350	else
19351	  ld_shlibs_CXX=no
19352	fi
19353	;;
19354
19355      osf3* | osf4* | osf5*)
19356        case $cc_basename in
19357          KCC*)
19358	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19359
19360	    # KCC will only create a shared library if the output file
19361	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19362	    # to its proper name (with version) after linking.
19363	    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'
19364
19365	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19366	    hardcode_libdir_separator_CXX=:
19367
19368	    # Archives containing C++ object files must be created using
19369	    # the KAI C++ compiler.
19370	    case $host in
19371	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19372	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19373	    esac
19374	    ;;
19375          RCC*)
19376	    # Rational C++ 2.4.1
19377	    # FIXME: insert proper C++ library support
19378	    ld_shlibs_CXX=no
19379	    ;;
19380          cxx*)
19381	    case $host in
19382	      osf3*)
19383	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19384	        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'
19385	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19386		;;
19387	      *)
19388	        allow_undefined_flag_CXX=' -expect_unresolved \*'
19389	        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'
19390	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19391	          echo "-hidden">> $lib.exp~
19392	          $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~
19393	          $RM $lib.exp'
19394	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19395		;;
19396	    esac
19397
19398	    hardcode_libdir_separator_CXX=:
19399
19400	    # Commands to make compiler produce verbose output that lists
19401	    # what "hidden" libraries, object files and flags are used when
19402	    # linking a shared library.
19403	    #
19404	    # There doesn't appear to be a way to prevent this compiler from
19405	    # explicitly linking system object files so we need to strip them
19406	    # from the output so that they don't get included in the library
19407	    # dependencies.
19408	    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"'
19409	    ;;
19410	  *)
19411	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19412	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19413	      case $host in
19414	        osf3*)
19415	          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'
19416		  ;;
19417	        *)
19418	          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'
19419		  ;;
19420	      esac
19421
19422	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19423	      hardcode_libdir_separator_CXX=:
19424
19425	      # Commands to make compiler produce verbose output that lists
19426	      # what "hidden" libraries, object files and flags are used when
19427	      # linking a shared library.
19428	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19429
19430	    else
19431	      # FIXME: insert proper C++ library support
19432	      ld_shlibs_CXX=no
19433	    fi
19434	    ;;
19435        esac
19436        ;;
19437
19438      psos*)
19439        # FIXME: insert proper C++ library support
19440        ld_shlibs_CXX=no
19441        ;;
19442
19443      sunos4*)
19444        case $cc_basename in
19445          CC*)
19446	    # Sun C++ 4.x
19447	    # FIXME: insert proper C++ library support
19448	    ld_shlibs_CXX=no
19449	    ;;
19450          lcc*)
19451	    # Lucid
19452	    # FIXME: insert proper C++ library support
19453	    ld_shlibs_CXX=no
19454	    ;;
19455          *)
19456	    # FIXME: insert proper C++ library support
19457	    ld_shlibs_CXX=no
19458	    ;;
19459        esac
19460        ;;
19461
19462      solaris*)
19463        case $cc_basename in
19464          CC*)
19465	    # Sun C++ 4.2, 5.x and Centerline C++
19466            archive_cmds_need_lc_CXX=yes
19467	    no_undefined_flag_CXX=' -zdefs'
19468	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19469	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19470	      $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'
19471
19472	    hardcode_libdir_flag_spec_CXX='-R$libdir'
19473	    hardcode_shlibpath_var_CXX=no
19474	    case $host_os in
19475	      solaris2.[0-5] | solaris2.[0-5].*) ;;
19476	      *)
19477		# The compiler driver will combine and reorder linker options,
19478		# but understands `-z linker_flag'.
19479	        # Supported since Solaris 2.6 (maybe 2.5.1?)
19480		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19481	        ;;
19482	    esac
19483	    link_all_deplibs_CXX=yes
19484
19485	    output_verbose_link_cmd='func_echo_all'
19486
19487	    # Archives containing C++ object files must be created using
19488	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19489	    # necessary to make sure instantiated templates are included
19490	    # in the archive.
19491	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19492	    ;;
19493          gcx*)
19494	    # Green Hills C++ Compiler
19495	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19496
19497	    # The C++ compiler must be used to create the archive.
19498	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19499	    ;;
19500          *)
19501	    # GNU C++ compiler with Solaris linker
19502	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19503	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19504	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19505	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19506	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19507		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19508
19509	        # Commands to make compiler produce verbose output that lists
19510	        # what "hidden" libraries, object files and flags are used when
19511	        # linking a shared library.
19512	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19513	      else
19514	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
19515	        # platform.
19516	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19517	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19518		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19519
19520	        # Commands to make compiler produce verbose output that lists
19521	        # what "hidden" libraries, object files and flags are used when
19522	        # linking a shared library.
19523	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19524	      fi
19525
19526	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19527	      case $host_os in
19528		solaris2.[0-5] | solaris2.[0-5].*) ;;
19529		*)
19530		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19531		  ;;
19532	      esac
19533	    fi
19534	    ;;
19535        esac
19536        ;;
19537
19538    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19539      no_undefined_flag_CXX='${wl}-z,text'
19540      archive_cmds_need_lc_CXX=no
19541      hardcode_shlibpath_var_CXX=no
19542      runpath_var='LD_RUN_PATH'
19543
19544      case $cc_basename in
19545        CC*)
19546	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19547	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19548	  ;;
19549	*)
19550	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19551	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19552	  ;;
19553      esac
19554      ;;
19555
19556      sysv5* | sco3.2v5* | sco5v6*)
19557	# Note: We can NOT use -z defs as we might desire, because we do not
19558	# link with -lc, and that would cause any symbols used from libc to
19559	# always be unresolved, which means just about no library would
19560	# ever link correctly.  If we're not using GNU ld we use -z text
19561	# though, which does catch some bad symbols but isn't as heavy-handed
19562	# as -z defs.
19563	no_undefined_flag_CXX='${wl}-z,text'
19564	allow_undefined_flag_CXX='${wl}-z,nodefs'
19565	archive_cmds_need_lc_CXX=no
19566	hardcode_shlibpath_var_CXX=no
19567	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19568	hardcode_libdir_separator_CXX=':'
19569	link_all_deplibs_CXX=yes
19570	export_dynamic_flag_spec_CXX='${wl}-Bexport'
19571	runpath_var='LD_RUN_PATH'
19572
19573	case $cc_basename in
19574          CC*)
19575	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19576	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19577	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19578	      '"$old_archive_cmds_CXX"
19579	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19580	      '"$reload_cmds_CXX"
19581	    ;;
19582	  *)
19583	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19584	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19585	    ;;
19586	esac
19587      ;;
19588
19589      tandem*)
19590        case $cc_basename in
19591          NCC*)
19592	    # NonStop-UX NCC 3.20
19593	    # FIXME: insert proper C++ library support
19594	    ld_shlibs_CXX=no
19595	    ;;
19596          *)
19597	    # FIXME: insert proper C++ library support
19598	    ld_shlibs_CXX=no
19599	    ;;
19600        esac
19601        ;;
19602
19603      vxworks*)
19604        # FIXME: insert proper C++ library support
19605        ld_shlibs_CXX=no
19606        ;;
19607
19608      *)
19609        # FIXME: insert proper C++ library support
19610        ld_shlibs_CXX=no
19611        ;;
19612    esac
19613
19614    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19615$as_echo "$ld_shlibs_CXX" >&6; }
19616    test "$ld_shlibs_CXX" = no && can_build_shared=no
19617
19618    GCC_CXX="$GXX"
19619    LD_CXX="$LD"
19620
19621    ## CAVEAT EMPTOR:
19622    ## There is no encapsulation within the following macros, do not change
19623    ## the running order or otherwise move them around unless you know exactly
19624    ## what you are doing...
19625    # Dependencies to place before and after the object being linked:
19626predep_objects_CXX=
19627postdep_objects_CXX=
19628predeps_CXX=
19629postdeps_CXX=
19630compiler_lib_search_path_CXX=
19631
19632cat > conftest.$ac_ext <<_LT_EOF
19633class Foo
19634{
19635public:
19636  Foo (void) { a = 0; }
19637private:
19638  int a;
19639};
19640_LT_EOF
19641
19642if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19643  (eval $ac_compile) 2>&5
19644  ac_status=$?
19645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19646  test $ac_status = 0; }; then
19647  # Parse the compiler output and extract the necessary
19648  # objects, libraries and library flags.
19649
19650  # Sentinel used to keep track of whether or not we are before
19651  # the conftest object file.
19652  pre_test_object_deps_done=no
19653
19654  for p in `eval "$output_verbose_link_cmd"`; do
19655    case $p in
19656
19657    -L* | -R* | -l*)
19658       # Some compilers place space between "-{L,R}" and the path.
19659       # Remove the space.
19660       if test $p = "-L" ||
19661          test $p = "-R"; then
19662	 prev=$p
19663	 continue
19664       else
19665	 prev=
19666       fi
19667
19668       if test "$pre_test_object_deps_done" = no; then
19669	 case $p in
19670	 -L* | -R*)
19671	   # Internal compiler library paths should come after those
19672	   # provided the user.  The postdeps already come after the
19673	   # user supplied libs so there is no need to process them.
19674	   if test -z "$compiler_lib_search_path_CXX"; then
19675	     compiler_lib_search_path_CXX="${prev}${p}"
19676	   else
19677	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19678	   fi
19679	   ;;
19680	 # The "-l" case would never come before the object being
19681	 # linked, so don't bother handling this case.
19682	 esac
19683       else
19684	 if test -z "$postdeps_CXX"; then
19685	   postdeps_CXX="${prev}${p}"
19686	 else
19687	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19688	 fi
19689       fi
19690       ;;
19691
19692    *.$objext)
19693       # This assumes that the test object file only shows up
19694       # once in the compiler output.
19695       if test "$p" = "conftest.$objext"; then
19696	 pre_test_object_deps_done=yes
19697	 continue
19698       fi
19699
19700       if test "$pre_test_object_deps_done" = no; then
19701	 if test -z "$predep_objects_CXX"; then
19702	   predep_objects_CXX="$p"
19703	 else
19704	   predep_objects_CXX="$predep_objects_CXX $p"
19705	 fi
19706       else
19707	 if test -z "$postdep_objects_CXX"; then
19708	   postdep_objects_CXX="$p"
19709	 else
19710	   postdep_objects_CXX="$postdep_objects_CXX $p"
19711	 fi
19712       fi
19713       ;;
19714
19715    *) ;; # Ignore the rest.
19716
19717    esac
19718  done
19719
19720  # Clean up.
19721  rm -f a.out a.exe
19722else
19723  echo "libtool.m4: error: problem compiling CXX test program"
19724fi
19725
19726$RM -f confest.$objext
19727
19728# PORTME: override above test on systems where it is broken
19729case $host_os in
19730interix[3-9]*)
19731  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19732  # hack all around it, let's just trust "g++" to DTRT.
19733  predep_objects_CXX=
19734  postdep_objects_CXX=
19735  postdeps_CXX=
19736  ;;
19737
19738linux*)
19739  case `$CC -V 2>&1 | sed 5q` in
19740  *Sun\ C*)
19741    # Sun C++ 5.9
19742
19743    # The more standards-conforming stlport4 library is
19744    # incompatible with the Cstd library. Avoid specifying
19745    # it if it's in CXXFLAGS. Ignore libCrun as
19746    # -library=stlport4 depends on it.
19747    case " $CXX $CXXFLAGS " in
19748    *" -library=stlport4 "*)
19749      solaris_use_stlport4=yes
19750      ;;
19751    esac
19752
19753    if test "$solaris_use_stlport4" != yes; then
19754      postdeps_CXX='-library=Cstd -library=Crun'
19755    fi
19756    ;;
19757  esac
19758  ;;
19759
19760solaris*)
19761  case $cc_basename in
19762  CC*)
19763    # The more standards-conforming stlport4 library is
19764    # incompatible with the Cstd library. Avoid specifying
19765    # it if it's in CXXFLAGS. Ignore libCrun as
19766    # -library=stlport4 depends on it.
19767    case " $CXX $CXXFLAGS " in
19768    *" -library=stlport4 "*)
19769      solaris_use_stlport4=yes
19770      ;;
19771    esac
19772
19773    # Adding this requires a known-good setup of shared libraries for
19774    # Sun compiler versions before 5.6, else PIC objects from an old
19775    # archive will be linked into the output, leading to subtle bugs.
19776    if test "$solaris_use_stlport4" != yes; then
19777      postdeps_CXX='-library=Cstd -library=Crun'
19778    fi
19779    ;;
19780  esac
19781  ;;
19782esac
19783
19784
19785case " $postdeps_CXX " in
19786*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19787esac
19788 compiler_lib_search_dirs_CXX=
19789if test -n "${compiler_lib_search_path_CXX}"; then
19790 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19791fi
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823    lt_prog_compiler_wl_CXX=
19824lt_prog_compiler_pic_CXX=
19825lt_prog_compiler_static_CXX=
19826
19827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19828$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19829
19830  # C++ specific cases for pic, static, wl, etc.
19831  if test "$GXX" = yes; then
19832    lt_prog_compiler_wl_CXX='-Wl,'
19833    lt_prog_compiler_static_CXX='-static'
19834
19835    case $host_os in
19836    aix*)
19837      # All AIX code is PIC.
19838      if test "$host_cpu" = ia64; then
19839	# AIX 5 now supports IA64 processor
19840	lt_prog_compiler_static_CXX='-Bstatic'
19841      fi
19842      lt_prog_compiler_pic_CXX='-fPIC'
19843      ;;
19844
19845    amigaos*)
19846      case $host_cpu in
19847      powerpc)
19848            # see comment about AmigaOS4 .so support
19849            lt_prog_compiler_pic_CXX='-fPIC'
19850        ;;
19851      m68k)
19852            # FIXME: we need at least 68020 code to build shared libraries, but
19853            # adding the `-m68020' flag to GCC prevents building anything better,
19854            # like `-m68040'.
19855            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19856        ;;
19857      esac
19858      ;;
19859
19860    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19861      # PIC is the default for these OSes.
19862      ;;
19863    mingw* | cygwin* | os2* | pw32* | cegcc*)
19864      # This hack is so that the source file can tell whether it is being
19865      # built for inclusion in a dll (and should export symbols for example).
19866      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19867      # (--disable-auto-import) libraries
19868      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19869      ;;
19870    darwin* | rhapsody*)
19871      # PIC is the default on this platform
19872      # Common symbols not allowed in MH_DYLIB files
19873      lt_prog_compiler_pic_CXX='-fno-common'
19874      ;;
19875    *djgpp*)
19876      # DJGPP does not support shared libraries at all
19877      lt_prog_compiler_pic_CXX=
19878      ;;
19879    haiku*)
19880      # PIC is the default for Haiku.
19881      # The "-static" flag exists, but is broken.
19882      lt_prog_compiler_static_CXX=
19883      ;;
19884    interix[3-9]*)
19885      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19886      # Instead, we relocate shared libraries at runtime.
19887      ;;
19888    sysv4*MP*)
19889      if test -d /usr/nec; then
19890	lt_prog_compiler_pic_CXX=-Kconform_pic
19891      fi
19892      ;;
19893    hpux*)
19894      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19895      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19896      # sets the default TLS model and affects inlining.
19897      case $host_cpu in
19898      hppa*64*)
19899	;;
19900      *)
19901	lt_prog_compiler_pic_CXX='-fPIC'
19902	;;
19903      esac
19904      ;;
19905    *qnx* | *nto*)
19906      # QNX uses GNU C++, but need to define -shared option too, otherwise
19907      # it will coredump.
19908      lt_prog_compiler_pic_CXX='-fPIC -shared'
19909      ;;
19910    *)
19911      lt_prog_compiler_pic_CXX='-fPIC'
19912      ;;
19913    esac
19914  else
19915    case $host_os in
19916      aix[4-9]*)
19917	# All AIX code is PIC.
19918	if test "$host_cpu" = ia64; then
19919	  # AIX 5 now supports IA64 processor
19920	  lt_prog_compiler_static_CXX='-Bstatic'
19921	else
19922	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19923	fi
19924	;;
19925      chorus*)
19926	case $cc_basename in
19927	cxch68*)
19928	  # Green Hills C++ Compiler
19929	  # _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"
19930	  ;;
19931	esac
19932	;;
19933      dgux*)
19934	case $cc_basename in
19935	  ec++*)
19936	    lt_prog_compiler_pic_CXX='-KPIC'
19937	    ;;
19938	  ghcx*)
19939	    # Green Hills C++ Compiler
19940	    lt_prog_compiler_pic_CXX='-pic'
19941	    ;;
19942	  *)
19943	    ;;
19944	esac
19945	;;
19946      freebsd* | dragonfly*)
19947	# FreeBSD uses GNU C++
19948	;;
19949      hpux9* | hpux10* | hpux11*)
19950	case $cc_basename in
19951	  CC*)
19952	    lt_prog_compiler_wl_CXX='-Wl,'
19953	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19954	    if test "$host_cpu" != ia64; then
19955	      lt_prog_compiler_pic_CXX='+Z'
19956	    fi
19957	    ;;
19958	  aCC*)
19959	    lt_prog_compiler_wl_CXX='-Wl,'
19960	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19961	    case $host_cpu in
19962	    hppa*64*|ia64*)
19963	      # +Z the default
19964	      ;;
19965	    *)
19966	      lt_prog_compiler_pic_CXX='+Z'
19967	      ;;
19968	    esac
19969	    ;;
19970	  *)
19971	    ;;
19972	esac
19973	;;
19974      interix*)
19975	# This is c89, which is MS Visual C++ (no shared libs)
19976	# Anyone wants to do a port?
19977	;;
19978      irix5* | irix6* | nonstopux*)
19979	case $cc_basename in
19980	  CC*)
19981	    lt_prog_compiler_wl_CXX='-Wl,'
19982	    lt_prog_compiler_static_CXX='-non_shared'
19983	    # CC pic flag -KPIC is the default.
19984	    ;;
19985	  *)
19986	    ;;
19987	esac
19988	;;
19989      linux* | k*bsd*-gnu | kopensolaris*-gnu)
19990	case $cc_basename in
19991	  KCC*)
19992	    # KAI C++ Compiler
19993	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19994	    lt_prog_compiler_pic_CXX='-fPIC'
19995	    ;;
19996	  ecpc* )
19997	    # old Intel C++ for x86_64 which still supported -KPIC.
19998	    lt_prog_compiler_wl_CXX='-Wl,'
19999	    lt_prog_compiler_pic_CXX='-KPIC'
20000	    lt_prog_compiler_static_CXX='-static'
20001	    ;;
20002	  icpc* )
20003	    # Intel C++, used to be incompatible with GCC.
20004	    # ICC 10 doesn't accept -KPIC any more.
20005	    lt_prog_compiler_wl_CXX='-Wl,'
20006	    lt_prog_compiler_pic_CXX='-fPIC'
20007	    lt_prog_compiler_static_CXX='-static'
20008	    ;;
20009	  pgCC* | pgcpp*)
20010	    # Portland Group C++ compiler
20011	    lt_prog_compiler_wl_CXX='-Wl,'
20012	    lt_prog_compiler_pic_CXX='-fpic'
20013	    lt_prog_compiler_static_CXX='-Bstatic'
20014	    ;;
20015	  cxx*)
20016	    # Compaq C++
20017	    # Make sure the PIC flag is empty.  It appears that all Alpha
20018	    # Linux and Compaq Tru64 Unix objects are PIC.
20019	    lt_prog_compiler_pic_CXX=
20020	    lt_prog_compiler_static_CXX='-non_shared'
20021	    ;;
20022	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20023	    # IBM XL 8.0, 9.0 on PPC and BlueGene
20024	    lt_prog_compiler_wl_CXX='-Wl,'
20025	    lt_prog_compiler_pic_CXX='-qpic'
20026	    lt_prog_compiler_static_CXX='-qstaticlink'
20027	    ;;
20028	  *)
20029	    case `$CC -V 2>&1 | sed 5q` in
20030	    *Sun\ C*)
20031	      # Sun C++ 5.9
20032	      lt_prog_compiler_pic_CXX='-KPIC'
20033	      lt_prog_compiler_static_CXX='-Bstatic'
20034	      lt_prog_compiler_wl_CXX='-Qoption ld '
20035	      ;;
20036	    esac
20037	    ;;
20038	esac
20039	;;
20040      lynxos*)
20041	;;
20042      m88k*)
20043	;;
20044      mvs*)
20045	case $cc_basename in
20046	  cxx*)
20047	    lt_prog_compiler_pic_CXX='-W c,exportall'
20048	    ;;
20049	  *)
20050	    ;;
20051	esac
20052	;;
20053      netbsd*)
20054	;;
20055      *qnx* | *nto*)
20056        # QNX uses GNU C++, but need to define -shared option too, otherwise
20057        # it will coredump.
20058        lt_prog_compiler_pic_CXX='-fPIC -shared'
20059        ;;
20060      osf3* | osf4* | osf5*)
20061	case $cc_basename in
20062	  KCC*)
20063	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20064	    ;;
20065	  RCC*)
20066	    # Rational C++ 2.4.1
20067	    lt_prog_compiler_pic_CXX='-pic'
20068	    ;;
20069	  cxx*)
20070	    # Digital/Compaq C++
20071	    lt_prog_compiler_wl_CXX='-Wl,'
20072	    # Make sure the PIC flag is empty.  It appears that all Alpha
20073	    # Linux and Compaq Tru64 Unix objects are PIC.
20074	    lt_prog_compiler_pic_CXX=
20075	    lt_prog_compiler_static_CXX='-non_shared'
20076	    ;;
20077	  *)
20078	    ;;
20079	esac
20080	;;
20081      psos*)
20082	;;
20083      solaris*)
20084	case $cc_basename in
20085	  CC*)
20086	    # Sun C++ 4.2, 5.x and Centerline C++
20087	    lt_prog_compiler_pic_CXX='-KPIC'
20088	    lt_prog_compiler_static_CXX='-Bstatic'
20089	    lt_prog_compiler_wl_CXX='-Qoption ld '
20090	    ;;
20091	  gcx*)
20092	    # Green Hills C++ Compiler
20093	    lt_prog_compiler_pic_CXX='-PIC'
20094	    ;;
20095	  *)
20096	    ;;
20097	esac
20098	;;
20099      sunos4*)
20100	case $cc_basename in
20101	  CC*)
20102	    # Sun C++ 4.x
20103	    lt_prog_compiler_pic_CXX='-pic'
20104	    lt_prog_compiler_static_CXX='-Bstatic'
20105	    ;;
20106	  lcc*)
20107	    # Lucid
20108	    lt_prog_compiler_pic_CXX='-pic'
20109	    ;;
20110	  *)
20111	    ;;
20112	esac
20113	;;
20114      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20115	case $cc_basename in
20116	  CC*)
20117	    lt_prog_compiler_wl_CXX='-Wl,'
20118	    lt_prog_compiler_pic_CXX='-KPIC'
20119	    lt_prog_compiler_static_CXX='-Bstatic'
20120	    ;;
20121	esac
20122	;;
20123      tandem*)
20124	case $cc_basename in
20125	  NCC*)
20126	    # NonStop-UX NCC 3.20
20127	    lt_prog_compiler_pic_CXX='-KPIC'
20128	    ;;
20129	  *)
20130	    ;;
20131	esac
20132	;;
20133      vxworks*)
20134	;;
20135      *)
20136	lt_prog_compiler_can_build_shared_CXX=no
20137	;;
20138    esac
20139  fi
20140
20141case $host_os in
20142  # For platforms which do not support PIC, -DPIC is meaningless:
20143  *djgpp*)
20144    lt_prog_compiler_pic_CXX=
20145    ;;
20146  *)
20147    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20148    ;;
20149esac
20150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20151$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20152
20153
20154
20155#
20156# Check to make sure the PIC flag actually works.
20157#
20158if test -n "$lt_prog_compiler_pic_CXX"; then
20159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20160$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20161if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20162  $as_echo_n "(cached) " >&6
20163else
20164  lt_cv_prog_compiler_pic_works_CXX=no
20165   ac_outfile=conftest.$ac_objext
20166   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20167   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20168   # Insert the option either (1) after the last *FLAGS variable, or
20169   # (2) before a word containing "conftest.", or (3) at the end.
20170   # Note that $ac_compile itself does not contain backslashes and begins
20171   # with a dollar sign (not a hyphen), so the echo should work correctly.
20172   # The option is referenced via a variable to avoid confusing sed.
20173   lt_compile=`echo "$ac_compile" | $SED \
20174   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20175   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20176   -e 's:$: $lt_compiler_flag:'`
20177   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20178   (eval "$lt_compile" 2>conftest.err)
20179   ac_status=$?
20180   cat conftest.err >&5
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   if (exit $ac_status) && test -s "$ac_outfile"; then
20183     # The compiler can only warn and ignore the option if not recognized
20184     # So say no if there are warnings other than the usual output.
20185     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20186     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20187     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20188       lt_cv_prog_compiler_pic_works_CXX=yes
20189     fi
20190   fi
20191   $RM conftest*
20192
20193fi
20194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20195$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20196
20197if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20198    case $lt_prog_compiler_pic_CXX in
20199     "" | " "*) ;;
20200     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20201     esac
20202else
20203    lt_prog_compiler_pic_CXX=
20204     lt_prog_compiler_can_build_shared_CXX=no
20205fi
20206
20207fi
20208
20209
20210
20211#
20212# Check to make sure the static flag actually works.
20213#
20214wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20216$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20217if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20218  $as_echo_n "(cached) " >&6
20219else
20220  lt_cv_prog_compiler_static_works_CXX=no
20221   save_LDFLAGS="$LDFLAGS"
20222   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20223   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20224   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20225     # The linker can only warn and ignore the option if not recognized
20226     # So say no if there are warnings
20227     if test -s conftest.err; then
20228       # Append any errors to the config.log.
20229       cat conftest.err 1>&5
20230       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20231       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20232       if diff conftest.exp conftest.er2 >/dev/null; then
20233         lt_cv_prog_compiler_static_works_CXX=yes
20234       fi
20235     else
20236       lt_cv_prog_compiler_static_works_CXX=yes
20237     fi
20238   fi
20239   $RM -r conftest*
20240   LDFLAGS="$save_LDFLAGS"
20241
20242fi
20243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20244$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20245
20246if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20247    :
20248else
20249    lt_prog_compiler_static_CXX=
20250fi
20251
20252
20253
20254
20255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20256$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20257if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20258  $as_echo_n "(cached) " >&6
20259else
20260  lt_cv_prog_compiler_c_o_CXX=no
20261   $RM -r conftest 2>/dev/null
20262   mkdir conftest
20263   cd conftest
20264   mkdir out
20265   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20266
20267   lt_compiler_flag="-o out/conftest2.$ac_objext"
20268   # Insert the option either (1) after the last *FLAGS variable, or
20269   # (2) before a word containing "conftest.", or (3) at the end.
20270   # Note that $ac_compile itself does not contain backslashes and begins
20271   # with a dollar sign (not a hyphen), so the echo should work correctly.
20272   lt_compile=`echo "$ac_compile" | $SED \
20273   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20274   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20275   -e 's:$: $lt_compiler_flag:'`
20276   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20277   (eval "$lt_compile" 2>out/conftest.err)
20278   ac_status=$?
20279   cat out/conftest.err >&5
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20282   then
20283     # The compiler can only warn and ignore the option if not recognized
20284     # So say no if there are warnings
20285     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20286     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20287     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20288       lt_cv_prog_compiler_c_o_CXX=yes
20289     fi
20290   fi
20291   chmod u+w . 2>&5
20292   $RM conftest*
20293   # SGI C++ compiler will create directory out/ii_files/ for
20294   # template instantiation
20295   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20296   $RM out/* && rmdir out
20297   cd ..
20298   $RM -r conftest
20299   $RM conftest*
20300
20301fi
20302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20303$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20304
20305
20306
20307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20308$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20309if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20310  $as_echo_n "(cached) " >&6
20311else
20312  lt_cv_prog_compiler_c_o_CXX=no
20313   $RM -r conftest 2>/dev/null
20314   mkdir conftest
20315   cd conftest
20316   mkdir out
20317   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20318
20319   lt_compiler_flag="-o out/conftest2.$ac_objext"
20320   # Insert the option either (1) after the last *FLAGS variable, or
20321   # (2) before a word containing "conftest.", or (3) at the end.
20322   # Note that $ac_compile itself does not contain backslashes and begins
20323   # with a dollar sign (not a hyphen), so the echo should work correctly.
20324   lt_compile=`echo "$ac_compile" | $SED \
20325   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20326   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20327   -e 's:$: $lt_compiler_flag:'`
20328   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20329   (eval "$lt_compile" 2>out/conftest.err)
20330   ac_status=$?
20331   cat out/conftest.err >&5
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20334   then
20335     # The compiler can only warn and ignore the option if not recognized
20336     # So say no if there are warnings
20337     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20338     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20339     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20340       lt_cv_prog_compiler_c_o_CXX=yes
20341     fi
20342   fi
20343   chmod u+w . 2>&5
20344   $RM conftest*
20345   # SGI C++ compiler will create directory out/ii_files/ for
20346   # template instantiation
20347   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20348   $RM out/* && rmdir out
20349   cd ..
20350   $RM -r conftest
20351   $RM conftest*
20352
20353fi
20354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20355$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20356
20357
20358
20359
20360hard_links="nottested"
20361if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20362  # do not overwrite the value of need_locks provided by the user
20363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20364$as_echo_n "checking if we can lock with hard links... " >&6; }
20365  hard_links=yes
20366  $RM conftest*
20367  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20368  touch conftest.a
20369  ln conftest.a conftest.b 2>&5 || hard_links=no
20370  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20372$as_echo "$hard_links" >&6; }
20373  if test "$hard_links" = no; then
20374    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20375$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20376    need_locks=warn
20377  fi
20378else
20379  need_locks=no
20380fi
20381
20382
20383
20384    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20385$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20386
20387  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20388  case $host_os in
20389  aix[4-9]*)
20390    # If we're using GNU nm, then we don't want the "-C" option.
20391    # -C means demangle to AIX nm, but means don't demangle with GNU nm
20392    # Also, AIX nm treats weak defined symbols like other global defined
20393    # symbols, whereas GNU nm marks them as "W".
20394    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20395      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'
20396    else
20397      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20398    fi
20399    ;;
20400  pw32*)
20401    export_symbols_cmds_CXX="$ltdll_cmds"
20402  ;;
20403  cygwin* | mingw* | cegcc*)
20404    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'
20405  ;;
20406  *)
20407    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20408  ;;
20409  esac
20410  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20411
20412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20413$as_echo "$ld_shlibs_CXX" >&6; }
20414test "$ld_shlibs_CXX" = no && can_build_shared=no
20415
20416with_gnu_ld_CXX=$with_gnu_ld
20417
20418
20419
20420
20421
20422
20423#
20424# Do we need to explicitly link libc?
20425#
20426case "x$archive_cmds_need_lc_CXX" in
20427x|xyes)
20428  # Assume -lc should be added
20429  archive_cmds_need_lc_CXX=yes
20430
20431  if test "$enable_shared" = yes && test "$GCC" = yes; then
20432    case $archive_cmds_CXX in
20433    *'~'*)
20434      # FIXME: we may have to deal with multi-command sequences.
20435      ;;
20436    '$CC '*)
20437      # Test whether the compiler implicitly links with -lc since on some
20438      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20439      # to ld, don't add -lc before -lgcc.
20440      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20441$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20442if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20443  $as_echo_n "(cached) " >&6
20444else
20445  $RM conftest*
20446	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20447
20448	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20449  (eval $ac_compile) 2>&5
20450  ac_status=$?
20451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20452  test $ac_status = 0; } 2>conftest.err; then
20453	  soname=conftest
20454	  lib=conftest
20455	  libobjs=conftest.$ac_objext
20456	  deplibs=
20457	  wl=$lt_prog_compiler_wl_CXX
20458	  pic_flag=$lt_prog_compiler_pic_CXX
20459	  compiler_flags=-v
20460	  linker_flags=-v
20461	  verstring=
20462	  output_objdir=.
20463	  libname=conftest
20464	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20465	  allow_undefined_flag_CXX=
20466	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20467  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20468  ac_status=$?
20469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20470  test $ac_status = 0; }
20471	  then
20472	    lt_cv_archive_cmds_need_lc_CXX=no
20473	  else
20474	    lt_cv_archive_cmds_need_lc_CXX=yes
20475	  fi
20476	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20477	else
20478	  cat conftest.err 1>&5
20479	fi
20480	$RM conftest*
20481
20482fi
20483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20484$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20485      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20486      ;;
20487    esac
20488  fi
20489  ;;
20490esac
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20556$as_echo_n "checking dynamic linker characteristics... " >&6; }
20557
20558library_names_spec=
20559libname_spec='lib$name'
20560soname_spec=
20561shrext_cmds=".so"
20562postinstall_cmds=
20563postuninstall_cmds=
20564finish_cmds=
20565finish_eval=
20566shlibpath_var=
20567shlibpath_overrides_runpath=unknown
20568version_type=none
20569dynamic_linker="$host_os ld.so"
20570sys_lib_dlsearch_path_spec="/lib /usr/lib"
20571need_lib_prefix=unknown
20572hardcode_into_libs=no
20573
20574# when you set need_version to no, make sure it does not cause -set_version
20575# flags to be left without arguments
20576need_version=unknown
20577
20578case $host_os in
20579aix3*)
20580  version_type=linux
20581  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20582  shlibpath_var=LIBPATH
20583
20584  # AIX 3 has no versioning support, so we append a major version to the name.
20585  soname_spec='${libname}${release}${shared_ext}$major'
20586  ;;
20587
20588aix[4-9]*)
20589  version_type=linux
20590  need_lib_prefix=no
20591  need_version=no
20592  hardcode_into_libs=yes
20593  if test "$host_cpu" = ia64; then
20594    # AIX 5 supports IA64
20595    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20596    shlibpath_var=LD_LIBRARY_PATH
20597  else
20598    # With GCC up to 2.95.x, collect2 would create an import file
20599    # for dependence libraries.  The import file would start with
20600    # the line `#! .'.  This would cause the generated library to
20601    # depend on `.', always an invalid library.  This was fixed in
20602    # development snapshots of GCC prior to 3.0.
20603    case $host_os in
20604      aix4 | aix4.[01] | aix4.[01].*)
20605      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20606	   echo ' yes '
20607	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20608	:
20609      else
20610	can_build_shared=no
20611      fi
20612      ;;
20613    esac
20614    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20615    # soname into executable. Probably we can add versioning support to
20616    # collect2, so additional links can be useful in future.
20617    if test "$aix_use_runtimelinking" = yes; then
20618      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20619      # instead of lib<name>.a to let people know that these are not
20620      # typical AIX shared libraries.
20621      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20622    else
20623      # We preserve .a as extension for shared libraries through AIX4.2
20624      # and later when we are not doing run time linking.
20625      library_names_spec='${libname}${release}.a $libname.a'
20626      soname_spec='${libname}${release}${shared_ext}$major'
20627    fi
20628    shlibpath_var=LIBPATH
20629  fi
20630  ;;
20631
20632amigaos*)
20633  case $host_cpu in
20634  powerpc)
20635    # Since July 2007 AmigaOS4 officially supports .so libraries.
20636    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20637    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20638    ;;
20639  m68k)
20640    library_names_spec='$libname.ixlibrary $libname.a'
20641    # Create ${libname}_ixlibrary.a entries in /sys/libs.
20642    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'
20643    ;;
20644  esac
20645  ;;
20646
20647beos*)
20648  library_names_spec='${libname}${shared_ext}'
20649  dynamic_linker="$host_os ld.so"
20650  shlibpath_var=LIBRARY_PATH
20651  ;;
20652
20653bsdi[45]*)
20654  version_type=linux
20655  need_version=no
20656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20657  soname_spec='${libname}${release}${shared_ext}$major'
20658  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20659  shlibpath_var=LD_LIBRARY_PATH
20660  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20661  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20662  # the default ld.so.conf also contains /usr/contrib/lib and
20663  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20664  # libtool to hard-code these into programs
20665  ;;
20666
20667cygwin* | mingw* | pw32* | cegcc*)
20668  version_type=windows
20669  shrext_cmds=".dll"
20670  need_version=no
20671  need_lib_prefix=no
20672
20673  case $GCC,$host_os in
20674  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20675    library_names_spec='$libname.dll.a'
20676    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20677    postinstall_cmds='base_file=`basename \${file}`~
20678      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20679      dldir=$destdir/`dirname \$dlpath`~
20680      test -d \$dldir || mkdir -p \$dldir~
20681      $install_prog $dir/$dlname \$dldir/$dlname~
20682      chmod a+x \$dldir/$dlname~
20683      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20684        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20685      fi'
20686    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20687      dlpath=$dir/\$dldll~
20688       $RM \$dlpath'
20689    shlibpath_overrides_runpath=yes
20690
20691    case $host_os in
20692    cygwin*)
20693      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20694      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20695
20696      ;;
20697    mingw* | cegcc*)
20698      # MinGW DLLs use traditional 'lib' prefix
20699      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20700      ;;
20701    pw32*)
20702      # pw32 DLLs use 'pw' prefix rather than 'lib'
20703      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20704      ;;
20705    esac
20706    ;;
20707
20708  *)
20709    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20710    ;;
20711  esac
20712  dynamic_linker='Win32 ld.exe'
20713  # FIXME: first we should search . and the directory the executable is in
20714  shlibpath_var=PATH
20715  ;;
20716
20717darwin* | rhapsody*)
20718  dynamic_linker="$host_os dyld"
20719  version_type=darwin
20720  need_lib_prefix=no
20721  need_version=no
20722  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20723  soname_spec='${libname}${release}${major}$shared_ext'
20724  shlibpath_overrides_runpath=yes
20725  shlibpath_var=DYLD_LIBRARY_PATH
20726  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20727
20728  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20729  ;;
20730
20731dgux*)
20732  version_type=linux
20733  need_lib_prefix=no
20734  need_version=no
20735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20736  soname_spec='${libname}${release}${shared_ext}$major'
20737  shlibpath_var=LD_LIBRARY_PATH
20738  ;;
20739
20740freebsd* | dragonfly*)
20741  # DragonFly does not have aout.  When/if they implement a new
20742  # versioning mechanism, adjust this.
20743  if test -x /usr/bin/objformat; then
20744    objformat=`/usr/bin/objformat`
20745  else
20746    case $host_os in
20747    freebsd[23].*) objformat=aout ;;
20748    *) objformat=elf ;;
20749    esac
20750  fi
20751  version_type=freebsd-$objformat
20752  case $version_type in
20753    freebsd-elf*)
20754      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20755      need_version=no
20756      need_lib_prefix=no
20757      ;;
20758    freebsd-*)
20759      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20760      need_version=yes
20761      ;;
20762  esac
20763  shlibpath_var=LD_LIBRARY_PATH
20764  case $host_os in
20765  freebsd2.*)
20766    shlibpath_overrides_runpath=yes
20767    ;;
20768  freebsd3.[01]* | freebsdelf3.[01]*)
20769    shlibpath_overrides_runpath=yes
20770    hardcode_into_libs=yes
20771    ;;
20772  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20773  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20774    shlibpath_overrides_runpath=no
20775    hardcode_into_libs=yes
20776    ;;
20777  *) # from 4.6 on, and DragonFly
20778    shlibpath_overrides_runpath=yes
20779    hardcode_into_libs=yes
20780    ;;
20781  esac
20782  ;;
20783
20784gnu*)
20785  version_type=linux
20786  need_lib_prefix=no
20787  need_version=no
20788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20789  soname_spec='${libname}${release}${shared_ext}$major'
20790  shlibpath_var=LD_LIBRARY_PATH
20791  hardcode_into_libs=yes
20792  ;;
20793
20794haiku*)
20795  version_type=linux
20796  need_lib_prefix=no
20797  need_version=no
20798  dynamic_linker="$host_os runtime_loader"
20799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20800  soname_spec='${libname}${release}${shared_ext}$major'
20801  shlibpath_var=LIBRARY_PATH
20802  shlibpath_overrides_runpath=yes
20803  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20804  hardcode_into_libs=yes
20805  ;;
20806
20807hpux9* | hpux10* | hpux11*)
20808  # Give a soname corresponding to the major version so that dld.sl refuses to
20809  # link against other versions.
20810  version_type=sunos
20811  need_lib_prefix=no
20812  need_version=no
20813  case $host_cpu in
20814  ia64*)
20815    shrext_cmds='.so'
20816    hardcode_into_libs=yes
20817    dynamic_linker="$host_os dld.so"
20818    shlibpath_var=LD_LIBRARY_PATH
20819    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20820    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20821    soname_spec='${libname}${release}${shared_ext}$major'
20822    if test "X$HPUX_IA64_MODE" = X32; then
20823      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20824    else
20825      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20826    fi
20827    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20828    ;;
20829  hppa*64*)
20830    shrext_cmds='.sl'
20831    hardcode_into_libs=yes
20832    dynamic_linker="$host_os dld.sl"
20833    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20834    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20835    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20836    soname_spec='${libname}${release}${shared_ext}$major'
20837    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20838    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20839    ;;
20840  *)
20841    shrext_cmds='.sl'
20842    dynamic_linker="$host_os dld.sl"
20843    shlibpath_var=SHLIB_PATH
20844    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20845    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20846    soname_spec='${libname}${release}${shared_ext}$major'
20847    ;;
20848  esac
20849  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20850  postinstall_cmds='chmod 555 $lib'
20851  # or fails outright, so override atomically:
20852  install_override_mode=555
20853  ;;
20854
20855interix[3-9]*)
20856  version_type=linux
20857  need_lib_prefix=no
20858  need_version=no
20859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20860  soname_spec='${libname}${release}${shared_ext}$major'
20861  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20862  shlibpath_var=LD_LIBRARY_PATH
20863  shlibpath_overrides_runpath=no
20864  hardcode_into_libs=yes
20865  ;;
20866
20867irix5* | irix6* | nonstopux*)
20868  case $host_os in
20869    nonstopux*) version_type=nonstopux ;;
20870    *)
20871	if test "$lt_cv_prog_gnu_ld" = yes; then
20872		version_type=linux
20873	else
20874		version_type=irix
20875	fi ;;
20876  esac
20877  need_lib_prefix=no
20878  need_version=no
20879  soname_spec='${libname}${release}${shared_ext}$major'
20880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20881  case $host_os in
20882  irix5* | nonstopux*)
20883    libsuff= shlibsuff=
20884    ;;
20885  *)
20886    case $LD in # libtool.m4 will add one of these switches to LD
20887    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20888      libsuff= shlibsuff= libmagic=32-bit;;
20889    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20890      libsuff=32 shlibsuff=N32 libmagic=N32;;
20891    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20892      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20893    *) libsuff= shlibsuff= libmagic=never-match;;
20894    esac
20895    ;;
20896  esac
20897  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20898  shlibpath_overrides_runpath=no
20899  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20900  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20901  hardcode_into_libs=yes
20902  ;;
20903
20904# No shared lib support for Linux oldld, aout, or coff.
20905linux*oldld* | linux*aout* | linux*coff*)
20906  dynamic_linker=no
20907  ;;
20908
20909# This must be Linux ELF.
20910linux* | k*bsd*-gnu | kopensolaris*-gnu)
20911  version_type=linux
20912  need_lib_prefix=no
20913  need_version=no
20914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20915  soname_spec='${libname}${release}${shared_ext}$major'
20916  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20917  shlibpath_var=LD_LIBRARY_PATH
20918  shlibpath_overrides_runpath=no
20919
20920  # Some binutils ld are patched to set DT_RUNPATH
20921  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20922  $as_echo_n "(cached) " >&6
20923else
20924  lt_cv_shlibpath_overrides_runpath=no
20925    save_LDFLAGS=$LDFLAGS
20926    save_libdir=$libdir
20927    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20928	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20929    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20930/* end confdefs.h.  */
20931
20932int
20933main ()
20934{
20935
20936  ;
20937  return 0;
20938}
20939_ACEOF
20940if ac_fn_cxx_try_link "$LINENO"; then :
20941  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20942  lt_cv_shlibpath_overrides_runpath=yes
20943fi
20944fi
20945rm -f core conftest.err conftest.$ac_objext \
20946    conftest$ac_exeext conftest.$ac_ext
20947    LDFLAGS=$save_LDFLAGS
20948    libdir=$save_libdir
20949
20950fi
20951
20952  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20953
20954  # This implies no fast_install, which is unacceptable.
20955  # Some rework will be needed to allow for fast_install
20956  # before this can be enabled.
20957  hardcode_into_libs=yes
20958
20959  # Append ld.so.conf contents to the search path
20960  if test -f /etc/ld.so.conf; then
20961    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' ' '`
20962    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20963  fi
20964
20965  # We used to test for /lib/ld.so.1 and disable shared libraries on
20966  # powerpc, because MkLinux only supported shared libraries with the
20967  # GNU dynamic linker.  Since this was broken with cross compilers,
20968  # most powerpc-linux boxes support dynamic linking these days and
20969  # people can always --disable-shared, the test was removed, and we
20970  # assume the GNU/Linux dynamic linker is in use.
20971  dynamic_linker='GNU/Linux ld.so'
20972  ;;
20973
20974netbsd*)
20975  version_type=sunos
20976  need_lib_prefix=no
20977  need_version=no
20978  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20979    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20980    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20981    dynamic_linker='NetBSD (a.out) ld.so'
20982  else
20983    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20984    soname_spec='${libname}${release}${shared_ext}$major'
20985    dynamic_linker='NetBSD ld.elf_so'
20986  fi
20987  shlibpath_var=LD_LIBRARY_PATH
20988  shlibpath_overrides_runpath=yes
20989  hardcode_into_libs=yes
20990  ;;
20991
20992newsos6)
20993  version_type=linux
20994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20995  shlibpath_var=LD_LIBRARY_PATH
20996  shlibpath_overrides_runpath=yes
20997  ;;
20998
20999*nto* | *qnx*)
21000  version_type=qnx
21001  need_lib_prefix=no
21002  need_version=no
21003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21004  soname_spec='${libname}${release}${shared_ext}$major'
21005  shlibpath_var=LD_LIBRARY_PATH
21006  shlibpath_overrides_runpath=no
21007  hardcode_into_libs=yes
21008  dynamic_linker='ldqnx.so'
21009  ;;
21010
21011openbsd*)
21012  version_type=sunos
21013  sys_lib_dlsearch_path_spec="/usr/lib"
21014  need_lib_prefix=no
21015  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21016  case $host_os in
21017    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
21018    *)				need_version=no  ;;
21019  esac
21020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21021  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21022  shlibpath_var=LD_LIBRARY_PATH
21023  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21024    case $host_os in
21025      openbsd2.[89] | openbsd2.[89].*)
21026	shlibpath_overrides_runpath=no
21027	;;
21028      *)
21029	shlibpath_overrides_runpath=yes
21030	;;
21031      esac
21032  else
21033    shlibpath_overrides_runpath=yes
21034  fi
21035  ;;
21036
21037os2*)
21038  libname_spec='$name'
21039  shrext_cmds=".dll"
21040  need_lib_prefix=no
21041  library_names_spec='$libname${shared_ext} $libname.a'
21042  dynamic_linker='OS/2 ld.exe'
21043  shlibpath_var=LIBPATH
21044  ;;
21045
21046osf3* | osf4* | osf5*)
21047  version_type=osf
21048  need_lib_prefix=no
21049  need_version=no
21050  soname_spec='${libname}${release}${shared_ext}$major'
21051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21052  shlibpath_var=LD_LIBRARY_PATH
21053  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21054  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21055  ;;
21056
21057rdos*)
21058  dynamic_linker=no
21059  ;;
21060
21061solaris*)
21062  version_type=linux
21063  need_lib_prefix=no
21064  need_version=no
21065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21066  soname_spec='${libname}${release}${shared_ext}$major'
21067  shlibpath_var=LD_LIBRARY_PATH
21068  shlibpath_overrides_runpath=yes
21069  hardcode_into_libs=yes
21070  # ldd complains unless libraries are executable
21071  postinstall_cmds='chmod +x $lib'
21072  ;;
21073
21074sunos4*)
21075  version_type=sunos
21076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21077  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21078  shlibpath_var=LD_LIBRARY_PATH
21079  shlibpath_overrides_runpath=yes
21080  if test "$with_gnu_ld" = yes; then
21081    need_lib_prefix=no
21082  fi
21083  need_version=yes
21084  ;;
21085
21086sysv4 | sysv4.3*)
21087  version_type=linux
21088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21089  soname_spec='${libname}${release}${shared_ext}$major'
21090  shlibpath_var=LD_LIBRARY_PATH
21091  case $host_vendor in
21092    sni)
21093      shlibpath_overrides_runpath=no
21094      need_lib_prefix=no
21095      runpath_var=LD_RUN_PATH
21096      ;;
21097    siemens)
21098      need_lib_prefix=no
21099      ;;
21100    motorola)
21101      need_lib_prefix=no
21102      need_version=no
21103      shlibpath_overrides_runpath=no
21104      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21105      ;;
21106  esac
21107  ;;
21108
21109sysv4*MP*)
21110  if test -d /usr/nec ;then
21111    version_type=linux
21112    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21113    soname_spec='$libname${shared_ext}.$major'
21114    shlibpath_var=LD_LIBRARY_PATH
21115  fi
21116  ;;
21117
21118sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21119  version_type=freebsd-elf
21120  need_lib_prefix=no
21121  need_version=no
21122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21123  soname_spec='${libname}${release}${shared_ext}$major'
21124  shlibpath_var=LD_LIBRARY_PATH
21125  shlibpath_overrides_runpath=yes
21126  hardcode_into_libs=yes
21127  if test "$with_gnu_ld" = yes; then
21128    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21129  else
21130    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21131    case $host_os in
21132      sco3.2v5*)
21133        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21134	;;
21135    esac
21136  fi
21137  sys_lib_dlsearch_path_spec='/usr/lib'
21138  ;;
21139
21140tpf*)
21141  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21142  version_type=linux
21143  need_lib_prefix=no
21144  need_version=no
21145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21146  shlibpath_var=LD_LIBRARY_PATH
21147  shlibpath_overrides_runpath=no
21148  hardcode_into_libs=yes
21149  ;;
21150
21151uts4*)
21152  version_type=linux
21153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21154  soname_spec='${libname}${release}${shared_ext}$major'
21155  shlibpath_var=LD_LIBRARY_PATH
21156  ;;
21157
21158*)
21159  dynamic_linker=no
21160  ;;
21161esac
21162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21163$as_echo "$dynamic_linker" >&6; }
21164test "$dynamic_linker" = no && can_build_shared=no
21165
21166variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21167if test "$GCC" = yes; then
21168  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21169fi
21170
21171if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21172  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21173fi
21174if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21175  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21176fi
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21216$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21217hardcode_action_CXX=
21218if test -n "$hardcode_libdir_flag_spec_CXX" ||
21219   test -n "$runpath_var_CXX" ||
21220   test "X$hardcode_automatic_CXX" = "Xyes" ; then
21221
21222  # We can hardcode non-existent directories.
21223  if test "$hardcode_direct_CXX" != no &&
21224     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21225     # have to relink, otherwise we might link with an installed library
21226     # when we should be linking with a yet-to-be-installed one
21227     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21228     test "$hardcode_minus_L_CXX" != no; then
21229    # Linking always hardcodes the temporary library directory.
21230    hardcode_action_CXX=relink
21231  else
21232    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21233    hardcode_action_CXX=immediate
21234  fi
21235else
21236  # We cannot hardcode anything, or else we can only hardcode existing
21237  # directories.
21238  hardcode_action_CXX=unsupported
21239fi
21240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21241$as_echo "$hardcode_action_CXX" >&6; }
21242
21243if test "$hardcode_action_CXX" = relink ||
21244   test "$inherit_rpath_CXX" = yes; then
21245  # Fast installation is not supported
21246  enable_fast_install=no
21247elif test "$shlibpath_overrides_runpath" = yes ||
21248     test "$enable_shared" = no; then
21249  # Fast installation is not necessary
21250  enable_fast_install=needless
21251fi
21252
21253
21254
21255
21256
21257
21258
21259  fi # test -n "$compiler"
21260
21261  CC=$lt_save_CC
21262  LDCXX=$LD
21263  LD=$lt_save_LD
21264  GCC=$lt_save_GCC
21265  with_gnu_ld=$lt_save_with_gnu_ld
21266  lt_cv_path_LDCXX=$lt_cv_path_LD
21267  lt_cv_path_LD=$lt_save_path_LD
21268  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21269  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21270fi # test "$_lt_caught_CXX_error" != yes
21271
21272ac_ext=c
21273ac_cpp='$CPP $CPPFLAGS'
21274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21276ac_compiler_gnu=$ac_cv_c_compiler_gnu
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293# Only expand once:
21294
21295
21296
21297
21298
21299# Identify the assembler which will work hand-in-glove with the newly
21300# built GCC, so that we can examine its features.  This is the assembler
21301# which will be driven by the driver program.
21302#
21303# If build != host, and we aren't building gas in-tree, we identify a
21304# build->target assembler and hope that it will have the same features
21305# as the host->target assembler we'll be using.
21306gcc_cv_gas_major_version=
21307gcc_cv_gas_minor_version=
21308gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21309
21310if test "${gcc_cv_as+set}" = set; then :
21311
21312else
21313
21314if test -x "$DEFAULT_ASSEMBLER"; then
21315	gcc_cv_as="$DEFAULT_ASSEMBLER"
21316elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21317     && test -f ../gas/Makefile \
21318     && test x$build = x$host; then
21319	gcc_cv_as=../gas/as-new$build_exeext
21320elif test -x as$build_exeext; then
21321	# Build using assembler in the current directory.
21322	gcc_cv_as=./as$build_exeext
21323elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21324        gcc_cv_as="$AS_FOR_TARGET"
21325else
21326        # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21327set dummy $AS_FOR_TARGET; ac_word=$2
21328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21329$as_echo_n "checking for $ac_word... " >&6; }
21330if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21331  $as_echo_n "(cached) " >&6
21332else
21333  case $gcc_cv_as in
21334  [\\/]* | ?:[\\/]*)
21335  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21336  ;;
21337  *)
21338  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21339for as_dir in $PATH
21340do
21341  IFS=$as_save_IFS
21342  test -z "$as_dir" && as_dir=.
21343    for ac_exec_ext in '' $ac_executable_extensions; do
21344  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21345    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21347    break 2
21348  fi
21349done
21350  done
21351IFS=$as_save_IFS
21352
21353  ;;
21354esac
21355fi
21356gcc_cv_as=$ac_cv_path_gcc_cv_as
21357if test -n "$gcc_cv_as"; then
21358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21359$as_echo "$gcc_cv_as" >&6; }
21360else
21361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21362$as_echo "no" >&6; }
21363fi
21364
21365
21366fi
21367fi
21368
21369ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21370
21371case "$ORIGINAL_AS_FOR_TARGET" in
21372  ./as | ./as$build_exeext) ;;
21373  *) ac_config_files="$ac_config_files as:exec-tool.in"
21374 ;;
21375esac
21376
21377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21378$as_echo_n "checking what assembler to use... " >&6; }
21379if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21380  # Single tree build which includes gas.  We want to prefer it
21381  # over whatever linker top-level may have detected, since
21382  # we'll use what we're building after installation anyway.
21383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21384$as_echo "newly built gas" >&6; }
21385  in_tree_gas=yes
21386  gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21387for f in $gcc_cv_as_bfd_srcdir/configure \
21388         $gcc_cv_as_gas_srcdir/configure \
21389         $gcc_cv_as_gas_srcdir/configure.in \
21390         $gcc_cv_as_gas_srcdir/Makefile.in ; do
21391  gcc_cv_gas_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21392  if test x$gcc_cv_gas_version != x; then
21393    break
21394  fi
21395done
21396case $gcc_cv_gas_version in
21397  VERSION=[0-9]*) ;;
21398  *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21399esac
21400gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21401gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21402gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21403case $gcc_cv_gas_patch_version in
21404  "") gcc_cv_gas_patch_version="0" ;;
21405esac
21406gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21407			    + $gcc_cv_gas_minor_version \) \* 1000 \
21408			    + $gcc_cv_gas_patch_version`
21409
21410  in_tree_gas_is_elf=no
21411  if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21412     || (grep 'obj_format = multi' ../gas/Makefile \
21413         && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21414  then
21415    in_tree_gas_is_elf=yes
21416  fi
21417else
21418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21419$as_echo "$gcc_cv_as" >&6; }
21420  in_tree_gas=no
21421fi
21422
21423default_ld=
21424# Check whether --enable-ld was given.
21425if test "${enable_ld+set}" = set; then :
21426  enableval=$enable_ld; case "${enableval}" in
21427 no)
21428   default_ld=ld.gold
21429   ;;
21430 esac
21431fi
21432
21433
21434# Check whether --enable-gold was given.
21435if test "${enable_gold+set}" = set; then :
21436  enableval=$enable_gold; case "${enableval}" in
21437 default)
21438   install_gold_as_default=yes
21439   ;;
21440 yes)
21441   if test x${default_ld} != x; then
21442     install_gold_as_default=yes
21443   fi
21444   ;;
21445 no)
21446   ;;
21447 *)
21448   as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21449   ;;
21450 esac
21451else
21452  install_gold_as_default=no
21453fi
21454
21455
21456# Identify the linker which will work hand-in-glove with the newly
21457# built GCC, so that we can examine its features.  This is the linker
21458# which will be driven by the driver program.
21459#
21460# If build != host, and we aren't building gas in-tree, we identify a
21461# build->target linker and hope that it will have the same features
21462# as the host->target linker we'll be using.
21463gcc_cv_gld_major_version=
21464gcc_cv_gld_minor_version=
21465gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21466gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21467gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21468
21469if test "${gcc_cv_ld+set}" = set; then :
21470
21471else
21472
21473if test -x "$DEFAULT_LINKER"; then
21474	gcc_cv_ld="$DEFAULT_LINKER"
21475elif test $install_gold_as_default = yes \
21476     && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21477     && test -f ../gold/Makefile \
21478     && test x$build = x$host; then
21479	gcc_cv_ld=../gold/ld-new$build_exeext
21480elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21481     && test -f ../ld/Makefile \
21482     && test x$build = x$host; then
21483	gcc_cv_ld=../ld/ld-new$build_exeext
21484elif test -x collect-ld$build_exeext; then
21485	# Build using linker in the current directory.
21486	gcc_cv_ld=./collect-ld$build_exeext
21487elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21488        gcc_cv_ld="$LD_FOR_TARGET"
21489else
21490        # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21491set dummy $LD_FOR_TARGET; ac_word=$2
21492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21493$as_echo_n "checking for $ac_word... " >&6; }
21494if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21495  $as_echo_n "(cached) " >&6
21496else
21497  case $gcc_cv_ld in
21498  [\\/]* | ?:[\\/]*)
21499  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21500  ;;
21501  *)
21502  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21503for as_dir in $PATH
21504do
21505  IFS=$as_save_IFS
21506  test -z "$as_dir" && as_dir=.
21507    for ac_exec_ext in '' $ac_executable_extensions; do
21508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21509    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21511    break 2
21512  fi
21513done
21514  done
21515IFS=$as_save_IFS
21516
21517  ;;
21518esac
21519fi
21520gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21521if test -n "$gcc_cv_ld"; then
21522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21523$as_echo "$gcc_cv_ld" >&6; }
21524else
21525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21526$as_echo "no" >&6; }
21527fi
21528
21529
21530fi
21531fi
21532
21533ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21534PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21535# if the PLUGIN_LD is set ld-new, just have it as ld
21536# as that is the installed named.
21537if test x$PLUGIN_LD_SUFFIX = xld-new \
21538   || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21539  PLUGIN_LD_SUFFIX=ld
21540fi
21541
21542# Check whether --with-plugin-ld was given.
21543if test "${with_plugin_ld+set}" = set; then :
21544  withval=$with_plugin_ld; if test x"$withval" != x; then
21545   ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21546   PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21547 fi
21548fi
21549
21550
21551
21552cat >>confdefs.h <<_ACEOF
21553#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21554_ACEOF
21555
21556
21557# Check to see if we are using gold instead of ld
21558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21559$as_echo_n "checking whether we are using gold... " >&6; }
21560ld_is_gold=no
21561if test x$gcc_cv_ld != x; then
21562  if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21563     | grep "GNU gold" > /dev/null; then
21564    ld_is_gold=yes
21565  fi
21566fi
21567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21568$as_echo "$ld_is_gold" >&6; }
21569
21570ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21571
21572case "$ORIGINAL_LD_FOR_TARGET" in
21573  ./collect-ld | ./collect-ld$build_exeext) ;;
21574  *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21575 ;;
21576esac
21577
21578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21579$as_echo_n "checking what linker to use... " >&6; }
21580if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21581   || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21582	# Single tree build which includes ld.  We want to prefer it
21583	# over whatever linker top-level may have detected, since
21584	# we'll use what we're building after installation anyway.
21585	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21586$as_echo "newly built ld" >&6; }
21587	in_tree_ld=yes
21588	in_tree_ld_is_elf=no
21589	if (grep 'EMUL = .*elf' ../ld/Makefile \
21590	    || grep 'EMUL = .*linux' ../ld/Makefile \
21591	    || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21592	  in_tree_ld_is_elf=yes
21593	elif test "$ld_is_gold" = yes; then
21594	  in_tree_ld_is_elf=yes
21595	fi
21596	for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21597	do
21598		gcc_cv_gld_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21599		if test x$gcc_cv_gld_version != x; then
21600			break
21601		fi
21602	done
21603	case $gcc_cv_gld_version in
21604	  VERSION=[0-9]*) ;;
21605	  *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21606	esac
21607	gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21608	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21609	ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21610	ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21611else
21612	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21613$as_echo "$gcc_cv_ld" >&6; }
21614	in_tree_ld=no
21615	gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21616	ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21617	ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21618fi
21619
21620
21621
21622
21623# Figure out what nm we will be using.
21624gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21625if test "${gcc_cv_nm+set}" = set; then :
21626
21627else
21628
21629if test -f $gcc_cv_binutils_srcdir/configure.in \
21630     && test -f ../binutils/Makefile \
21631     && test x$build = x$host; then
21632	gcc_cv_nm=../binutils/nm-new$build_exeext
21633elif test -x nm$build_exeext; then
21634	gcc_cv_nm=./nm$build_exeext
21635elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21636        gcc_cv_nm="$NM_FOR_TARGET"
21637else
21638        # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21639set dummy $NM_FOR_TARGET; ac_word=$2
21640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21641$as_echo_n "checking for $ac_word... " >&6; }
21642if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21643  $as_echo_n "(cached) " >&6
21644else
21645  case $gcc_cv_nm in
21646  [\\/]* | ?:[\\/]*)
21647  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21648  ;;
21649  *)
21650  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21651for as_dir in $PATH
21652do
21653  IFS=$as_save_IFS
21654  test -z "$as_dir" && as_dir=.
21655    for ac_exec_ext in '' $ac_executable_extensions; do
21656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21657    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21659    break 2
21660  fi
21661done
21662  done
21663IFS=$as_save_IFS
21664
21665  ;;
21666esac
21667fi
21668gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21669if test -n "$gcc_cv_nm"; then
21670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21671$as_echo "$gcc_cv_nm" >&6; }
21672else
21673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21674$as_echo "no" >&6; }
21675fi
21676
21677
21678fi
21679fi
21680
21681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21682$as_echo_n "checking what nm to use... " >&6; }
21683if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21684	# Single tree build which includes binutils.
21685	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21686$as_echo "newly built nm" >&6; }
21687	in_tree_nm=yes
21688else
21689	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21690$as_echo "$gcc_cv_nm" >&6; }
21691	in_tree_nm=no
21692fi
21693
21694ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21695
21696case "$ORIGINAL_NM_FOR_TARGET" in
21697  ./nm | ./nm$build_exeext) ;;
21698  *) ac_config_files="$ac_config_files nm:exec-tool.in"
21699 ;;
21700esac
21701
21702
21703# Figure out what objdump we will be using.
21704if test "${gcc_cv_objdump+set}" = set; then :
21705
21706else
21707
21708if test -f $gcc_cv_binutils_srcdir/configure.in \
21709     && test -f ../binutils/Makefile \
21710     && test x$build = x$host; then
21711	# Single tree build which includes binutils.
21712	gcc_cv_objdump=../binutils/objdump$build_exeext
21713elif test -x objdump$build_exeext; then
21714	gcc_cv_objdump=./objdump$build_exeext
21715elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21716        gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21717else
21718        # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21719set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21721$as_echo_n "checking for $ac_word... " >&6; }
21722if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21723  $as_echo_n "(cached) " >&6
21724else
21725  case $gcc_cv_objdump in
21726  [\\/]* | ?:[\\/]*)
21727  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21728  ;;
21729  *)
21730  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21731for as_dir in $PATH
21732do
21733  IFS=$as_save_IFS
21734  test -z "$as_dir" && as_dir=.
21735    for ac_exec_ext in '' $ac_executable_extensions; do
21736  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21737    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21739    break 2
21740  fi
21741done
21742  done
21743IFS=$as_save_IFS
21744
21745  ;;
21746esac
21747fi
21748gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21749if test -n "$gcc_cv_objdump"; then
21750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21751$as_echo "$gcc_cv_objdump" >&6; }
21752else
21753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21754$as_echo "no" >&6; }
21755fi
21756
21757
21758fi
21759fi
21760
21761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21762$as_echo_n "checking what objdump to use... " >&6; }
21763if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21764	# Single tree build which includes binutils.
21765	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21766$as_echo "newly built objdump" >&6; }
21767elif test x$gcc_cv_objdump = x; then
21768	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21769$as_echo "not found" >&6; }
21770else
21771	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21772$as_echo "$gcc_cv_objdump" >&6; }
21773fi
21774
21775# Figure out what readelf we will be using.
21776if test "${gcc_cv_readelf+set}" = set; then :
21777
21778else
21779
21780if test -f $gcc_cv_binutils_srcdir/configure.in \
21781     && test -f ../binutils/Makefile \
21782     && test x$build = x$host; then
21783	# Single tree build which includes binutils.
21784	gcc_cv_readelf=../binutils/readelf$build_exeext
21785elif test -x readelf$build_exeext; then
21786	gcc_cv_readelf=./readelf$build_exeext
21787else
21788        # Extract the first word of "readelf", so it can be a program name with args.
21789set dummy readelf; ac_word=$2
21790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21791$as_echo_n "checking for $ac_word... " >&6; }
21792if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21793  $as_echo_n "(cached) " >&6
21794else
21795  case $gcc_cv_readelf in
21796  [\\/]* | ?:[\\/]*)
21797  ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21798  ;;
21799  *)
21800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21801for as_dir in $PATH
21802do
21803  IFS=$as_save_IFS
21804  test -z "$as_dir" && as_dir=.
21805    for ac_exec_ext in '' $ac_executable_extensions; do
21806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21807    ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21809    break 2
21810  fi
21811done
21812  done
21813IFS=$as_save_IFS
21814
21815  ;;
21816esac
21817fi
21818gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21819if test -n "$gcc_cv_readelf"; then
21820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21821$as_echo "$gcc_cv_readelf" >&6; }
21822else
21823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21824$as_echo "no" >&6; }
21825fi
21826
21827
21828fi
21829fi
21830
21831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21832$as_echo_n "checking what readelf to use... " >&6; }
21833if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21834	# Single tree build which includes binutils.
21835	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21836$as_echo "newly built readelf" >&6; }
21837elif test x$gcc_cv_readelf = x; then
21838	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21839$as_echo "not found" >&6; }
21840else
21841	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21842$as_echo "$gcc_cv_readelf" >&6; }
21843fi
21844
21845# Figure out what assembler alignment features are present.
21846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21847$as_echo_n "checking assembler flags... " >&6; }
21848if test "${gcc_cv_as_flags+set}" = set; then :
21849  $as_echo_n "(cached) " >&6
21850else
21851   case "$target" in
21852  i[34567]86-*-linux*)
21853        gcc_cv_as_flags=--32
21854    ;;
21855  x86_64-*-linux-gnux32)
21856        gcc_cv_as_flags=--x32
21857    ;;
21858  x86_64-*-linux*)
21859        gcc_cv_as_flags=--64
21860    ;;
21861  powerpc*-*-darwin*)
21862        gcc_cv_as_flags="-arch ppc"
21863    ;;
21864  *)
21865    gcc_cv_as_flags=" "
21866    ;;
21867  esac
21868fi
21869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21870$as_echo "$gcc_cv_as_flags" >&6; }
21871
21872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21873$as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21874if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21875  $as_echo_n "(cached) " >&6
21876else
21877  gcc_cv_as_balign_and_p2align=no
21878    if test $in_tree_gas = yes; then
21879    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21880  then gcc_cv_as_balign_and_p2align=yes
21881fi
21882  elif test x$gcc_cv_as != x; then
21883    $as_echo '.balign 4
21884.p2align 2' > conftest.s
21885    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21886  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21887  (eval $ac_try) 2>&5
21888  ac_status=$?
21889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21890  test $ac_status = 0; }; }
21891    then
21892	gcc_cv_as_balign_and_p2align=yes
21893    else
21894      echo "configure: failed program was" >&5
21895      cat conftest.s >&5
21896    fi
21897    rm -f conftest.o conftest.s
21898  fi
21899fi
21900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21901$as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21902if test $gcc_cv_as_balign_and_p2align = yes; then
21903
21904$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21905
21906fi
21907
21908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21909$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21910if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21911  $as_echo_n "(cached) " >&6
21912else
21913  gcc_cv_as_max_skip_p2align=no
21914    if test $in_tree_gas = yes; then
21915    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21916  then gcc_cv_as_max_skip_p2align=yes
21917fi
21918  elif test x$gcc_cv_as != x; then
21919    $as_echo '.p2align 4,,7' > conftest.s
21920    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21921  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21922  (eval $ac_try) 2>&5
21923  ac_status=$?
21924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21925  test $ac_status = 0; }; }
21926    then
21927	gcc_cv_as_max_skip_p2align=yes
21928    else
21929      echo "configure: failed program was" >&5
21930      cat conftest.s >&5
21931    fi
21932    rm -f conftest.o conftest.s
21933  fi
21934fi
21935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21936$as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21937if test $gcc_cv_as_max_skip_p2align = yes; then
21938
21939$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21940
21941fi
21942
21943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21944$as_echo_n "checking assembler for .literal16... " >&6; }
21945if test "${gcc_cv_as_literal16+set}" = set; then :
21946  $as_echo_n "(cached) " >&6
21947else
21948  gcc_cv_as_literal16=no
21949    if test $in_tree_gas = yes; then
21950    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21951  then gcc_cv_as_literal16=yes
21952fi
21953  elif test x$gcc_cv_as != x; then
21954    $as_echo '.literal16' > conftest.s
21955    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21956  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21957  (eval $ac_try) 2>&5
21958  ac_status=$?
21959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21960  test $ac_status = 0; }; }
21961    then
21962	gcc_cv_as_literal16=yes
21963    else
21964      echo "configure: failed program was" >&5
21965      cat conftest.s >&5
21966    fi
21967    rm -f conftest.o conftest.s
21968  fi
21969fi
21970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21971$as_echo "$gcc_cv_as_literal16" >&6; }
21972if test $gcc_cv_as_literal16 = yes; then
21973
21974$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21975
21976fi
21977
21978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21979$as_echo_n "checking assembler for working .subsection -1... " >&6; }
21980if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21981  $as_echo_n "(cached) " >&6
21982else
21983  gcc_cv_as_subsection_m1=no
21984    if test $in_tree_gas = yes; then
21985    if test $in_tree_gas_is_elf = yes \
21986  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21987  then gcc_cv_as_subsection_m1=yes
21988fi
21989  elif test x$gcc_cv_as != x; then
21990    $as_echo 'conftest_label1: .word 0
21991.subsection -1
21992conftest_label2: .word 0
21993.previous' > conftest.s
21994    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21995  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21996  (eval $ac_try) 2>&5
21997  ac_status=$?
21998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21999  test $ac_status = 0; }; }
22000    then
22001	if test x$gcc_cv_nm != x; then
22002    $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22003    $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22004    if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22005    then :
22006    else gcc_cv_as_subsection_m1=yes
22007    fi
22008    rm -f conftest.nm1 conftest.nm2
22009  fi
22010    else
22011      echo "configure: failed program was" >&5
22012      cat conftest.s >&5
22013    fi
22014    rm -f conftest.o conftest.s
22015  fi
22016fi
22017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22018$as_echo "$gcc_cv_as_subsection_m1" >&6; }
22019if test $gcc_cv_as_subsection_m1 = yes; then
22020
22021$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22022
22023fi
22024
22025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22026$as_echo_n "checking assembler for .weak... " >&6; }
22027if test "${gcc_cv_as_weak+set}" = set; then :
22028  $as_echo_n "(cached) " >&6
22029else
22030  gcc_cv_as_weak=no
22031    if test $in_tree_gas = yes; then
22032    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22033  then gcc_cv_as_weak=yes
22034fi
22035  elif test x$gcc_cv_as != x; then
22036    $as_echo '	.weak foobar' > conftest.s
22037    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22038  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22039  (eval $ac_try) 2>&5
22040  ac_status=$?
22041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22042  test $ac_status = 0; }; }
22043    then
22044	gcc_cv_as_weak=yes
22045    else
22046      echo "configure: failed program was" >&5
22047      cat conftest.s >&5
22048    fi
22049    rm -f conftest.o conftest.s
22050  fi
22051fi
22052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22053$as_echo "$gcc_cv_as_weak" >&6; }
22054if test $gcc_cv_as_weak = yes; then
22055
22056$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22057
22058fi
22059
22060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22061$as_echo_n "checking assembler for .weakref... " >&6; }
22062if test "${gcc_cv_as_weakref+set}" = set; then :
22063  $as_echo_n "(cached) " >&6
22064else
22065  gcc_cv_as_weakref=no
22066    if test $in_tree_gas = yes; then
22067    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22068  then gcc_cv_as_weakref=yes
22069fi
22070  elif test x$gcc_cv_as != x; then
22071    $as_echo '	.weakref foobar, barfnot' > conftest.s
22072    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22073  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22074  (eval $ac_try) 2>&5
22075  ac_status=$?
22076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22077  test $ac_status = 0; }; }
22078    then
22079	gcc_cv_as_weakref=yes
22080    else
22081      echo "configure: failed program was" >&5
22082      cat conftest.s >&5
22083    fi
22084    rm -f conftest.o conftest.s
22085  fi
22086fi
22087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22088$as_echo "$gcc_cv_as_weakref" >&6; }
22089if test $gcc_cv_as_weakref = yes; then
22090
22091$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22092
22093fi
22094
22095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22096$as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22097if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22098  $as_echo_n "(cached) " >&6
22099else
22100  gcc_cv_as_nsubspa_comdat=no
22101    if test $in_tree_gas = yes; then
22102    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22103  then gcc_cv_as_nsubspa_comdat=yes
22104fi
22105  elif test x$gcc_cv_as != x; then
22106    $as_echo '	.SPACE $TEXT$
22107	.NSUBSPA $CODE$,COMDAT' > conftest.s
22108    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22109  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22110  (eval $ac_try) 2>&5
22111  ac_status=$?
22112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22113  test $ac_status = 0; }; }
22114    then
22115	gcc_cv_as_nsubspa_comdat=yes
22116    else
22117      echo "configure: failed program was" >&5
22118      cat conftest.s >&5
22119    fi
22120    rm -f conftest.o conftest.s
22121  fi
22122fi
22123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22124$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22125if test $gcc_cv_as_nsubspa_comdat = yes; then
22126
22127$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22128
22129fi
22130
22131# .hidden needs to be supported in both the assembler and the linker,
22132# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22133# This is irritatingly difficult to feature test for; we have to check the
22134# date string after the version number.  If we've got an in-tree
22135# ld, we don't know its patchlevel version, so we set the baseline at 2.13
22136# to be safe.
22137# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22139$as_echo_n "checking assembler for .hidden... " >&6; }
22140if test "${gcc_cv_as_hidden+set}" = set; then :
22141  $as_echo_n "(cached) " >&6
22142else
22143  gcc_cv_as_hidden=no
22144    if test $in_tree_gas = yes; then
22145    if test $in_tree_gas_is_elf = yes \
22146  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22147  then gcc_cv_as_hidden=yes
22148fi
22149  elif test x$gcc_cv_as != x; then
22150    $as_echo '	.hidden foobar
22151foobar:' > conftest.s
22152    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22153  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22154  (eval $ac_try) 2>&5
22155  ac_status=$?
22156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22157  test $ac_status = 0; }; }
22158    then
22159
22160# Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22161# STV_HIDDEN, so disable .hidden support if so.
22162case "${target}" in
22163  i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22164    if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22165      cat > conftest.s <<EOF
22166.globl hidden
22167        .hidden hidden
22168hidden:
22169.globl default
22170        .set    default,hidden
22171EOF
22172      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22173        && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22174        grep '\.hidden default' > /dev/null; then
22175        gcc_cv_as_hidden=no
22176      else
22177        gcc_cv_as_hidden=yes
22178      fi
22179    else
22180      # Assume bug is present if objdump is missing.
22181      gcc_cv_as_hidden=no
22182    fi
22183    ;;
22184  *)
22185    gcc_cv_as_hidden=yes
22186    ;;
22187esac
22188    else
22189      echo "configure: failed program was" >&5
22190      cat conftest.s >&5
22191    fi
22192    rm -f conftest.o conftest.s
22193  fi
22194fi
22195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22196$as_echo "$gcc_cv_as_hidden" >&6; }
22197
22198case "${target}" in
22199  *-*-darwin*)
22200    # Darwin as has some visibility support, though with a different syntax.
22201    gcc_cv_as_hidden=yes
22202    ;;
22203esac
22204
22205# gnu_indirect_function type is an extension proposed at
22206# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22207# selection of function implementation
22208# Check whether --enable-gnu-indirect-function was given.
22209if test "${enable_gnu_indirect_function+set}" = set; then :
22210  enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22211    yes | no) ;;
22212    *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22213Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22214  esac
22215else
22216  enable_gnu_indirect_function="$default_gnu_indirect_function"
22217fi
22218
22219
22220gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22221
22222cat >>confdefs.h <<_ACEOF
22223#define HAVE_GNU_INDIRECT_FUNCTION $gif
22224_ACEOF
22225
22226
22227
22228if test $in_tree_ld != yes ; then
22229  ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22230  if echo "$ld_ver" | grep GNU > /dev/null; then
22231    if test x"$ld_is_gold" = xyes; then
22232      # GNU gold --version looks like this:
22233      #
22234      # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22235      #
22236      # We extract the binutils version which is more familiar and specific
22237      # than the gold version.
22238      ld_vers=`echo $ld_ver | sed -n \
22239	  -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22240    else
22241      # GNU ld --version looks like this:
22242      #
22243      # GNU ld (GNU Binutils) 2.21.51.20110225
22244      ld_vers=`echo $ld_ver | sed -n \
22245	  -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22246    fi
22247    ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
22248    ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22249    ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22250    ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22251  else
22252    case "${target}" in
22253      *-*-solaris2*)
22254	# See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22255	# format.
22256	#
22257	# Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22258	# /usr/ccs/bin/ld has been configured.
22259	ld_ver=`$gcc_cv_ld -V 2>&1`
22260	if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22261	  ld_vers=`echo $ld_ver | sed -n \
22262	    -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22263	  ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22264	  ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22265	fi
22266	;;
22267    esac
22268  fi
22269fi
22270
22271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22272$as_echo_n "checking linker for .hidden support... " >&6; }
22273if test "${gcc_cv_ld_hidden+set}" = set; then :
22274  $as_echo_n "(cached) " >&6
22275else
22276  if test $in_tree_ld = yes ; then
22277  gcc_cv_ld_hidden=no
22278  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 \
22279     && test $in_tree_ld_is_elf = yes; then
22280     gcc_cv_ld_hidden=yes
22281  fi
22282else
22283  gcc_cv_ld_hidden=yes
22284  if test x"$ld_is_gold" = xyes; then
22285    :
22286  elif echo "$ld_ver" | grep GNU > /dev/null; then
22287    case "${target}" in
22288      mmix-knuth-mmixware)
22289        # The linker emits by default mmo, not ELF, so "no" is appropriate.
22290	gcc_cv_ld_hidden=no
22291	;;
22292    esac
22293    if test 0"$ld_date" -lt 20020404; then
22294      if test -n "$ld_date"; then
22295	# If there was date string, but was earlier than 2002-04-04, fail
22296	gcc_cv_ld_hidden=no
22297      elif test -z "$ld_vers"; then
22298	# If there was no date string nor ld version number, something is wrong
22299	gcc_cv_ld_hidden=no
22300      else
22301	test -z "$ld_vers_patch" && ld_vers_patch=0
22302	if test "$ld_vers_major" -lt 2; then
22303	  gcc_cv_ld_hidden=no
22304	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22305	  gcc_cv_ld_hidden="no"
22306	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22307	  gcc_cv_ld_hidden=no
22308	fi
22309      fi
22310    fi
22311  else
22312    case "${target}" in
22313      *-*-darwin*)
22314	# Darwin ld has some visibility support.
22315	gcc_cv_ld_hidden=yes
22316        ;;
22317      hppa64*-*-hpux* | ia64*-*-hpux*)
22318	gcc_cv_ld_hidden=yes
22319	;;
22320      *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22321	# Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22322	# .symbolic was only added in Solaris 9 12/02.
22323        gcc_cv_ld_hidden=yes
22324	;;
22325      *)
22326	gcc_cv_ld_hidden=no
22327	;;
22328    esac
22329  fi
22330fi
22331fi
22332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22333$as_echo "$gcc_cv_ld_hidden" >&6; }
22334libgcc_visibility=no
22335
22336
22337if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22338  libgcc_visibility=yes
22339
22340$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22341
22342fi
22343
22344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22345$as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22346gcc_cv_ld_ro_rw_mix=unknown
22347if test $in_tree_ld = yes ; then
22348  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 \
22349     && test $in_tree_ld_is_elf = yes; then
22350    gcc_cv_ld_ro_rw_mix=read-write
22351  fi
22352elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22353  echo '.section myfoosect, "a"' > conftest1.s
22354  echo '.section myfoosect, "aw"' > conftest2.s
22355  echo '.byte 1' >> conftest2.s
22356  echo '.section myfoosect, "a"' > conftest3.s
22357  echo '.byte 0' >> conftest3.s
22358  if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22359     && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22360     && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22361     && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22362	conftest2.o conftest3.o > /dev/null 2>&1; then
22363    gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22364			 | sed -e '/myfoosect/!d' -e N`
22365    if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22366      if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22367	gcc_cv_ld_ro_rw_mix=read-only
22368      else
22369	gcc_cv_ld_ro_rw_mix=read-write
22370      fi
22371    fi
22372  fi
22373  rm -f conftest.* conftest[123].*
22374fi
22375if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22376
22377$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22378
22379fi
22380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22381$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22382
22383if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22384  case "${target}" in
22385    *-*-solaris2*)
22386      #
22387      # Solaris 2 ld -V output looks like this for a regular version:
22388      #
22389      # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22390      #
22391      # but test versions add stuff at the end:
22392      #
22393      # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22394      #
22395      gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22396      if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22397	gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22398	  -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22399	gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22400	gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22401      fi
22402      ;;
22403  esac
22404fi
22405
22406# Check whether --enable-initfini-array was given.
22407if test "${enable_initfini_array+set}" = set; then :
22408  enableval=$enable_initfini_array;
22409else
22410
22411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22412$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22413if test "${gcc_cv_initfini_array+set}" = set; then :
22414  $as_echo_n "(cached) " >&6
22415else
22416    if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22417    case "${target}" in
22418      ia64-*)
22419	if test "$cross_compiling" = yes; then :
22420  gcc_cv_initfini_array=no
22421else
22422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22423/* end confdefs.h.  */
22424
22425#ifndef __ELF__
22426#error Not an ELF OS
22427#endif
22428/* We turn on .preinit_array/.init_array/.fini_array support for ia64
22429   if it can be used.  */
22430static int x = -1;
22431int main (void) { return x; }
22432int foo (void) { x = 0; }
22433int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22434
22435_ACEOF
22436if ac_fn_c_try_run "$LINENO"; then :
22437  gcc_cv_initfini_array=yes
22438else
22439  gcc_cv_initfini_array=no
22440fi
22441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22442  conftest.$ac_objext conftest.beam conftest.$ac_ext
22443fi
22444;;
22445      *)
22446	gcc_cv_initfini_array=no
22447	if test $in_tree_ld = yes ; then
22448	  if test "$gcc_cv_gld_major_version" -eq 2 \
22449	     -a "$gcc_cv_gld_minor_version" -ge 22 \
22450	     -o "$gcc_cv_gld_major_version" -gt 2 \
22451	     && test $in_tree_ld_is_elf = yes; then
22452	    gcc_cv_initfini_array=yes
22453	  fi
22454	elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22455	  cat > conftest.s <<\EOF
22456.section .dtors,"a",%progbits
22457.balign 4
22458.byte 'A', 'A', 'A', 'A'
22459.section .ctors,"a",%progbits
22460.balign 4
22461.byte 'B', 'B', 'B', 'B'
22462.section .fini_array.65530,"a",%progbits
22463.balign 4
22464.byte 'C', 'C', 'C', 'C'
22465.section .init_array.65530,"a",%progbits
22466.balign 4
22467.byte 'D', 'D', 'D', 'D'
22468.section .dtors.64528,"a",%progbits
22469.balign 4
22470.byte 'E', 'E', 'E', 'E'
22471.section .ctors.64528,"a",%progbits
22472.balign 4
22473.byte 'F', 'F', 'F', 'F'
22474.section .fini_array.01005,"a",%progbits
22475.balign 4
22476.byte 'G', 'G', 'G', 'G'
22477.section .init_array.01005,"a",%progbits
22478.balign 4
22479.byte 'H', 'H', 'H', 'H'
22480.text
22481.globl _start
22482_start:
22483EOF
22484	  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22485	     && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22486	     && $gcc_cv_objdump -s -j .init_array conftest \
22487		| grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22488	     && $gcc_cv_objdump -s -j .fini_array conftest \
22489		| grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22490	    gcc_cv_initfini_array=yes
22491	  fi
22492	  rm -f conftest conftest.*
22493	fi
22494	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22495/* end confdefs.h.  */
22496
22497#ifndef __ELF__
22498# error Not an ELF OS
22499#endif
22500#include <stdlib.h>
22501#if defined __GLIBC_PREREQ
22502# if __GLIBC_PREREQ (2, 4)
22503# else
22504#  error GLIBC 2.4 required
22505# endif
22506#else
22507# if defined __sun__ && defined __svr4__
22508   /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
22509# else
22510#  error The C library not known to support .init_array/.fini_array
22511# endif
22512#endif
22513
22514_ACEOF
22515if ac_fn_c_try_cpp "$LINENO"; then :
22516
22517else
22518  gcc_cv_initfini_array=no
22519fi
22520rm -f conftest.err conftest.$ac_ext;;
22521    esac
22522  else
22523    { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22524$as_echo_n "checking cross compile... guessing... " >&6; }
22525    gcc_cv_initfini_array=no
22526  fi
22527fi
22528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22529$as_echo "$gcc_cv_initfini_array" >&6; }
22530  enable_initfini_array=$gcc_cv_initfini_array
22531
22532fi
22533
22534if test $enable_initfini_array = yes; then
22535
22536$as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22537
22538fi
22539
22540# Check if we have .[us]leb128, and support symbol arithmetic with it.
22541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22542$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22543if test "${gcc_cv_as_leb128+set}" = set; then :
22544  $as_echo_n "(cached) " >&6
22545else
22546  gcc_cv_as_leb128=no
22547    if test $in_tree_gas = yes; then
22548    if test $in_tree_gas_is_elf = yes \
22549  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22550  then gcc_cv_as_leb128=yes
22551fi
22552  elif test x$gcc_cv_as != x; then
22553    $as_echo '	.data
22554	.uleb128 L2 - L1
22555L1:
22556	.uleb128 1280
22557	.sleb128 -1010
22558L2:' > conftest.s
22559    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22560  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22561  (eval $ac_try) 2>&5
22562  ac_status=$?
22563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22564  test $ac_status = 0; }; }
22565    then
22566	# GAS versions before 2.11 do not support uleb128,
22567  # despite appearing to.
22568  # ??? There exists an elf-specific test that will crash
22569  # the assembler.  Perhaps it's better to figure out whether
22570  # arbitrary sections are supported and try the test.
22571  as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22572  if echo "$as_ver" | grep GNU > /dev/null; then
22573    as_vers=`echo $as_ver | sed -n \
22574	-e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22575    as_major=`expr "$as_vers" : '\([0-9]*\)'`
22576    as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22577    if test $as_major -eq 2 && test $as_minor -lt 11
22578    then :
22579    else gcc_cv_as_leb128=yes
22580    fi
22581  fi
22582    else
22583      echo "configure: failed program was" >&5
22584      cat conftest.s >&5
22585    fi
22586    rm -f conftest.o conftest.s
22587  fi
22588fi
22589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22590$as_echo "$gcc_cv_as_leb128" >&6; }
22591if test $gcc_cv_as_leb128 = yes; then
22592
22593$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22594
22595fi
22596
22597# Check if we have assembler support for unwind directives.
22598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22599$as_echo_n "checking assembler for cfi directives... " >&6; }
22600if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22601  $as_echo_n "(cached) " >&6
22602else
22603  gcc_cv_as_cfi_directive=no
22604  if test x$gcc_cv_as != x; then
22605    $as_echo '	.text
22606	.cfi_startproc
22607	.cfi_offset 0, 0
22608	.cfi_same_value 1
22609	.cfi_def_cfa 1, 2
22610	.cfi_escape 1, 2, 3, 4, 5
22611	.cfi_endproc' > conftest.s
22612    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22613  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22614  (eval $ac_try) 2>&5
22615  ac_status=$?
22616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22617  test $ac_status = 0; }; }
22618    then
22619	case "$target" in
22620  *-*-solaris*)
22621    # If the linker used on Solaris (like Sun ld) isn't capable of merging
22622    # read-only and read-write sections, we need to make sure that the
22623    # assembler used emits read-write .eh_frame sections.
22624    if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22625      if test "x$gcc_cv_objdump" != x; then
22626	if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22627		sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22628	  gcc_cv_as_cfi_directive=no
22629	else
22630	  case "$target" in
22631	    i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22632	      # On Solaris/x86, make sure that GCC and gas agree on using
22633	      # read-only .eh_frame sections for 64-bit.
22634	      if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22635		$gcc_cv_objdump -h conftest.o 2>/dev/null | \
22636			sed -e /.eh_frame/!d -e N | \
22637			grep READONLY > /dev/null; then
22638		gcc_cv_as_cfi_directive=yes
22639	      else
22640		gcc_cv_as_cfi_directive=no
22641	      fi
22642	      ;;
22643	    *)
22644	      gcc_cv_as_cfi_directive=yes
22645	      ;;
22646	  esac
22647	fi
22648      else
22649        # no objdump, err on the side of caution
22650	gcc_cv_as_cfi_directive=no
22651      fi
22652    else
22653      gcc_cv_as_cfi_directive=yes
22654    fi
22655    ;;
22656  *-*-*)
22657    gcc_cv_as_cfi_directive=yes
22658    ;;
22659esac
22660    else
22661      echo "configure: failed program was" >&5
22662      cat conftest.s >&5
22663    fi
22664    rm -f conftest.o conftest.s
22665  fi
22666fi
22667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22668$as_echo "$gcc_cv_as_cfi_directive" >&6; }
22669
22670if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22672$as_echo_n "checking assembler for working cfi advance... " >&6; }
22673if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22674  $as_echo_n "(cached) " >&6
22675else
22676  gcc_cv_as_cfi_advance_working=no
22677  if test x$gcc_cv_as != x; then
22678    $as_echo '	.text
22679	.cfi_startproc
22680	.cfi_adjust_cfa_offset 64
22681	.skip 75040, 0
22682	.cfi_adjust_cfa_offset 128
22683	.cfi_endproc' > conftest.s
22684    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22685  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22686  (eval $ac_try) 2>&5
22687  ac_status=$?
22688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22689  test $ac_status = 0; }; }
22690    then
22691
22692if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22693    | grep 'DW_CFA_advance_loc[24]:[ 	][ 	]*75040[ 	]' >/dev/null; then
22694   gcc_cv_as_cfi_advance_working=yes
22695fi
22696
22697    else
22698      echo "configure: failed program was" >&5
22699      cat conftest.s >&5
22700    fi
22701    rm -f conftest.o conftest.s
22702  fi
22703fi
22704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22705$as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22706
22707else
22708  # no objdump, err on the side of caution
22709  gcc_cv_as_cfi_advance_working=no
22710fi
22711
22712
22713cat >>confdefs.h <<_ACEOF
22714#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22715       && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22716_ACEOF
22717
22718
22719
22720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22721$as_echo_n "checking assembler for cfi personality directive... " >&6; }
22722if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22723  $as_echo_n "(cached) " >&6
22724else
22725  gcc_cv_as_cfi_personality_directive=no
22726  if test x$gcc_cv_as != x; then
22727    $as_echo '	.text
22728	.cfi_startproc
22729	.cfi_personality 0, symbol
22730	.cfi_endproc' > conftest.s
22731    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22732  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22733  (eval $ac_try) 2>&5
22734  ac_status=$?
22735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22736  test $ac_status = 0; }; }
22737    then
22738	gcc_cv_as_cfi_personality_directive=yes
22739    else
22740      echo "configure: failed program was" >&5
22741      cat conftest.s >&5
22742    fi
22743    rm -f conftest.o conftest.s
22744  fi
22745fi
22746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22747$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22748
22749
22750cat >>confdefs.h <<_ACEOF
22751#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22752    then echo 1; else echo 0; fi`
22753_ACEOF
22754
22755
22756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22757$as_echo_n "checking assembler for cfi sections directive... " >&6; }
22758if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22759  $as_echo_n "(cached) " >&6
22760else
22761  gcc_cv_as_cfi_sections_directive=no
22762  if test x$gcc_cv_as != x; then
22763    $as_echo '	.text
22764	.cfi_sections .debug_frame, .eh_frame
22765	.cfi_startproc
22766	.cfi_endproc' > conftest.s
22767    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22768  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22769  (eval $ac_try) 2>&5
22770  ac_status=$?
22771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22772  test $ac_status = 0; }; }
22773    then
22774	case $target_os in
22775  win32 | pe | cygwin* | mingw32* | uwin*)
22776    # Need to check that we generated the correct relocation for the
22777    # .debug_frame section.  This was fixed for binutils 2.21.
22778    gcc_cv_as_cfi_sections_directive=no
22779    if test "x$gcc_cv_objdump" != x; then
22780     if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22781	grep secrel > /dev/null; then
22782      gcc_cv_as_cfi_sections_directive=yes
22783     fi
22784    fi
22785    ;;
22786  *)
22787    gcc_cv_as_cfi_sections_directive=yes
22788    ;;
22789esac
22790    else
22791      echo "configure: failed program was" >&5
22792      cat conftest.s >&5
22793    fi
22794    rm -f conftest.o conftest.s
22795  fi
22796fi
22797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22798$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22799
22800
22801
22802cat >>confdefs.h <<_ACEOF
22803#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22804    then echo 1; else echo 0; fi`
22805_ACEOF
22806
22807
22808# GAS versions up to and including 2.11.0 may mis-optimize
22809# .eh_frame data.
22810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22811$as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22812if test "${gcc_cv_as_eh_frame+set}" = set; then :
22813  $as_echo_n "(cached) " >&6
22814else
22815  gcc_cv_as_eh_frame=no
22816    if test $in_tree_gas = yes; then
22817    if test $in_tree_gas_is_elf = yes \
22818  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22819  then gcc_cv_as_eh_frame=yes
22820fi
22821  elif test x$gcc_cv_as != x; then
22822    $as_echo '	.text
22823.LFB1:
22824	.4byte	0
22825.L1:
22826	.4byte	0
22827.LFE1:
22828	.section	.eh_frame,"aw",@progbits
22829__FRAME_BEGIN__:
22830	.4byte	.LECIE1-.LSCIE1
22831.LSCIE1:
22832	.4byte	0x0
22833	.byte	0x1
22834	.ascii "z\0"
22835	.byte	0x1
22836	.byte	0x78
22837	.byte	0x1a
22838	.byte	0x0
22839	.byte	0x4
22840	.4byte	1
22841	.p2align 1
22842.LECIE1:
22843.LSFDE1:
22844	.4byte	.LEFDE1-.LASFDE1
22845.LASFDE1:
22846	.4byte	.LASFDE1-__FRAME_BEGIN__
22847	.4byte	.LFB1
22848	.4byte	.LFE1-.LFB1
22849	.byte	0x4
22850	.4byte	.LFE1-.LFB1
22851	.byte	0x4
22852	.4byte	.L1-.LFB1
22853.LEFDE1:' > conftest.s
22854    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22855  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22856  (eval $ac_try) 2>&5
22857  ac_status=$?
22858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859  test $ac_status = 0; }; }
22860    then
22861	  cat > conftest.lit <<EOF
22862 0000 10000000 00000000 017a0001 781a0004  .........z..x...
22863 0010 01000000 12000000 18000000 00000000  ................
22864 0020 08000000 04080000 0044               .........D      
22865EOF
22866cat > conftest.big <<EOF
22867 0000 00000010 00000000 017a0001 781a0004  .........z..x...
22868 0010 00000001 00000012 00000018 00000000  ................
22869 0020 00000008 04000000 0844               .........D      
22870EOF
22871  # If the assembler didn't choke, and we can objdump,
22872  # and we got the correct data, then succeed.
22873  # The text in the here-document typically retains its unix-style line
22874  # endings, while the output of objdump will use host line endings.
22875  # Therefore, use diff -b for the comparisons.
22876  if test x$gcc_cv_objdump != x \
22877  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22878     | tail -3 > conftest.got \
22879  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22880    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22881  then
22882    gcc_cv_as_eh_frame=yes
22883  elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22884  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22885  (eval $ac_try) 2>&5
22886  ac_status=$?
22887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22888  test $ac_status = 0; }; }; then
22889    gcc_cv_as_eh_frame=buggy
22890  else
22891    # Uh oh, what do we do now?
22892    gcc_cv_as_eh_frame=no
22893  fi
22894    else
22895      echo "configure: failed program was" >&5
22896      cat conftest.s >&5
22897    fi
22898    rm -f conftest.o conftest.s
22899  fi
22900fi
22901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22902$as_echo "$gcc_cv_as_eh_frame" >&6; }
22903
22904
22905if test $gcc_cv_as_eh_frame = buggy; then
22906
22907$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22908
22909fi
22910
22911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22912$as_echo_n "checking assembler for section merging support... " >&6; }
22913if test "${gcc_cv_as_shf_merge+set}" = set; then :
22914  $as_echo_n "(cached) " >&6
22915else
22916  gcc_cv_as_shf_merge=no
22917    if test $in_tree_gas = yes; then
22918    if test $in_tree_gas_is_elf = yes \
22919  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22920  then gcc_cv_as_shf_merge=yes
22921fi
22922  elif test x$gcc_cv_as != x; then
22923    $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22924    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22925  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22926  (eval $ac_try) 2>&5
22927  ac_status=$?
22928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22929  test $ac_status = 0; }; }
22930    then
22931	gcc_cv_as_shf_merge=yes
22932    else
22933      echo "configure: failed program was" >&5
22934      cat conftest.s >&5
22935    fi
22936    rm -f conftest.o conftest.s
22937  fi
22938fi
22939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22940$as_echo "$gcc_cv_as_shf_merge" >&6; }
22941
22942if test $gcc_cv_as_shf_merge = no; then
22943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22944$as_echo_n "checking assembler for section merging support... " >&6; }
22945if test "${gcc_cv_as_shf_merge+set}" = set; then :
22946  $as_echo_n "(cached) " >&6
22947else
22948  gcc_cv_as_shf_merge=no
22949    if test $in_tree_gas = yes; then
22950    if test $in_tree_gas_is_elf = yes \
22951  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22952  then gcc_cv_as_shf_merge=yes
22953fi
22954  elif test x$gcc_cv_as != x; then
22955    $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22956    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22957  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22958  (eval $ac_try) 2>&5
22959  ac_status=$?
22960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22961  test $ac_status = 0; }; }
22962    then
22963	gcc_cv_as_shf_merge=yes
22964    else
22965      echo "configure: failed program was" >&5
22966      cat conftest.s >&5
22967    fi
22968    rm -f conftest.o conftest.s
22969  fi
22970fi
22971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22972$as_echo "$gcc_cv_as_shf_merge" >&6; }
22973
22974fi
22975
22976cat >>confdefs.h <<_ACEOF
22977#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22978_ACEOF
22979
22980
22981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22982$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22983if test "${gcc_cv_as_comdat_group+set}" = set; then :
22984  $as_echo_n "(cached) " >&6
22985else
22986  gcc_cv_as_comdat_group=no
22987    if test $in_tree_gas = yes; then
22988    if test $in_tree_gas_is_elf = yes \
22989  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22990  then gcc_cv_as_comdat_group=yes
22991fi
22992  elif test x$gcc_cv_as != x; then
22993    $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22994    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22995  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22996  (eval $ac_try) 2>&5
22997  ac_status=$?
22998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22999  test $ac_status = 0; }; }
23000    then
23001	gcc_cv_as_comdat_group=yes
23002    else
23003      echo "configure: failed program was" >&5
23004      cat conftest.s >&5
23005    fi
23006    rm -f conftest.o conftest.s
23007  fi
23008fi
23009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23010$as_echo "$gcc_cv_as_comdat_group" >&6; }
23011
23012if test $gcc_cv_as_comdat_group = yes; then
23013  gcc_cv_as_comdat_group_percent=no
23014  gcc_cv_as_comdat_group_group=no
23015else
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23017$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23018if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23019  $as_echo_n "(cached) " >&6
23020else
23021  gcc_cv_as_comdat_group_percent=no
23022    if test $in_tree_gas = yes; then
23023    if test $in_tree_gas_is_elf = yes \
23024  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23025  then gcc_cv_as_comdat_group_percent=yes
23026fi
23027  elif test x$gcc_cv_as != x; then
23028    $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23029    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23030  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23031  (eval $ac_try) 2>&5
23032  ac_status=$?
23033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23034  test $ac_status = 0; }; }
23035    then
23036	gcc_cv_as_comdat_group_percent=yes
23037    else
23038      echo "configure: failed program was" >&5
23039      cat conftest.s >&5
23040    fi
23041    rm -f conftest.o conftest.s
23042  fi
23043fi
23044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23045$as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23046
23047 if test $gcc_cv_as_comdat_group_percent = yes; then
23048   gcc_cv_as_comdat_group_group=no
23049 else
23050   if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23051     gcc_cv_as_comdat_group_group=no
23052   fi
23053   case "${target}" in
23054     # Sun as uses a completely different syntax.
23055     *-*-solaris2*)
23056       case "${target}" in
23057         sparc*-*-solaris2*)
23058           conftest_s='
23059               .group foo,".text%foo",#comdat
23060               .section ".text%foo", #alloc,#execinstr,#progbits
23061               .globl foo
23062             foo:
23063	     '
23064           ;;
23065         i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23066	   conftest_s='
23067               .group foo,.text%foo,#comdat
23068               .section .text%foo, "ax", @progbits
23069               .globl  foo
23070             foo:
23071	     '
23072	   ;;
23073       esac
23074       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23075$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23076if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23077  $as_echo_n "(cached) " >&6
23078else
23079  gcc_cv_as_comdat_group_group=no
23080  if test x$gcc_cv_as != x; then
23081    $as_echo "$conftest_s" > conftest.s
23082    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23083  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23084  (eval $ac_try) 2>&5
23085  ac_status=$?
23086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23087  test $ac_status = 0; }; }
23088    then
23089	gcc_cv_as_comdat_group_group=yes
23090    else
23091      echo "configure: failed program was" >&5
23092      cat conftest.s >&5
23093    fi
23094    rm -f conftest.o conftest.s
23095  fi
23096fi
23097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23098$as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23099
23100       ;;
23101   esac
23102 fi
23103fi
23104if test x"$ld_is_gold" = xyes; then
23105  comdat_group=yes
23106elif test $in_tree_ld = yes ; then
23107  comdat_group=no
23108  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 \
23109     && test $in_tree_ld_is_elf = yes; then
23110     comdat_group=yes
23111  fi
23112elif echo "$ld_ver" | grep GNU > /dev/null; then
23113  comdat_group=yes
23114  if test 0"$ld_date" -lt 20050308; then
23115    if test -n "$ld_date"; then
23116      # If there was date string, but was earlier than 2005-03-08, fail
23117      comdat_group=no
23118    elif test "$ld_vers_major" -lt 2; then
23119      comdat_group=no
23120    elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23121      comdat_group=no
23122    fi
23123  fi
23124else
23125  case "${target}" in
23126    *-*-solaris2.1[1-9]*)
23127      comdat_group=no
23128      # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23129      # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23130      # version 1.688.
23131      #
23132      # If using Sun as for COMDAT group as emitted by GCC, one needs at
23133      # least ld version 1.2267.
23134      if test "$ld_vers_major" -gt 1; then
23135        comdat_group=yes
23136      elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23137	comdat_group=yes
23138      elif test "$ld_vers_minor" -ge 2267; then
23139	comdat_group=yes
23140      fi
23141      ;;
23142    *)
23143      # Assume linkers other than GNU ld don't support COMDAT group.
23144      comdat_group=no
23145      ;;
23146  esac
23147fi
23148# Allow overriding the automatic COMDAT group tests above.
23149# Check whether --enable-comdat was given.
23150if test "${enable_comdat+set}" = set; then :
23151  enableval=$enable_comdat; comdat_group="$enable_comdat"
23152fi
23153
23154if test $comdat_group = no; then
23155  gcc_cv_as_comdat_group=no
23156  gcc_cv_as_comdat_group_percent=no
23157  gcc_cv_as_comdat_group_group=no
23158fi
23159
23160cat >>confdefs.h <<_ACEOF
23161#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23162    || test $gcc_cv_as_comdat_group_percent = yes \
23163    || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23164_ACEOF
23165
23166
23167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23168$as_echo_n "checking assembler for line table discriminator support... " >&6; }
23169if test "${gcc_cv_as_discriminator+set}" = set; then :
23170  $as_echo_n "(cached) " >&6
23171else
23172  gcc_cv_as_discriminator=no
23173    if test $in_tree_gas = yes; then
23174    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23175  then gcc_cv_as_discriminator=yes
23176fi
23177  elif test x$gcc_cv_as != x; then
23178    $as_echo '	.text
23179	.file 1 "conf.c"
23180	.loc 1 1 0 discriminator 1' > conftest.s
23181    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23182  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23183  (eval $ac_try) 2>&5
23184  ac_status=$?
23185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23186  test $ac_status = 0; }; }
23187    then
23188	gcc_cv_as_discriminator=yes
23189    else
23190      echo "configure: failed program was" >&5
23191      cat conftest.s >&5
23192    fi
23193    rm -f conftest.o conftest.s
23194  fi
23195fi
23196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23197$as_echo "$gcc_cv_as_discriminator" >&6; }
23198if test $gcc_cv_as_discriminator = yes; then
23199
23200$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23201
23202fi
23203
23204# Thread-local storage - the check is heavily parameterized.
23205conftest_s=
23206tls_first_major=
23207tls_first_minor=
23208tls_as_opt=
23209case "$target" in
23210  alpha*-*-*)
23211    conftest_s='
23212	.section ".tdata","awT",@progbits
23213foo:	.long	25
23214	.text
23215	ldq	$27,__tls_get_addr($29)		!literal!1
23216	lda	$16,foo($29)			!tlsgd!1
23217	jsr	$26,($27),__tls_get_addr	!lituse_tlsgd!1
23218	ldq	$27,__tls_get_addr($29)		!literal!2
23219	lda	$16,foo($29)			!tlsldm!2
23220	jsr	$26,($27),__tls_get_addr	!lituse_tlsldm!2
23221	ldq	$1,foo($29)			!gotdtprel
23222	ldah	$2,foo($29)			!dtprelhi
23223	lda	$3,foo($2)			!dtprello
23224	lda	$4,foo($29)			!dtprel
23225	ldq	$1,foo($29)			!gottprel
23226	ldah	$2,foo($29)			!tprelhi
23227	lda	$3,foo($2)			!tprello
23228	lda	$4,foo($29)			!tprel'
23229	tls_first_major=2
23230	tls_first_minor=13
23231	tls_as_opt=--fatal-warnings
23232	;;
23233  cris-*-*|crisv32-*-*)
23234    conftest_s='
23235	.section ".tdata","awT",@progbits
23236x:      .long   25
23237        .text
23238	move.d x:IE,$r10
23239	nop'
23240	tls_first_major=2
23241	tls_first_minor=20
23242	tls_as_opt=--fatal-warnings
23243	;;
23244  frv*-*-*)
23245    conftest_s='
23246	.section ".tdata","awT",@progbits
23247x:      .long   25
23248        .text
23249        call    #gettlsoff(x)'
23250	tls_first_major=2
23251	tls_first_minor=14
23252	;;
23253  hppa*-*-linux*)
23254    conftest_s='
23255t1:	.reg	%r20
23256t2:	.reg	%r21
23257gp:	.reg	%r19
23258	.section ".tdata","awT",@progbits
23259foo:	.long	25
23260	.text
23261	.align	4
23262	addil LT%foo-$tls_gdidx$,gp
23263	ldo RT%foo-$tls_gdidx$(%r1),%arg0
23264	b __tls_get_addr
23265	nop
23266	addil LT%foo-$tls_ldidx$,gp
23267	b __tls_get_addr
23268	ldo RT%foo-$tls_ldidx$(%r1),%arg0
23269	addil LR%foo-$tls_dtpoff$,%ret0
23270	ldo RR%foo-$tls_dtpoff$(%r1),%t1
23271	mfctl %cr27,%t1
23272	addil LT%foo-$tls_ieoff$,gp
23273	ldw RT%foo-$tls_ieoff$(%r1),%t2
23274	add %t1,%t2,%t3
23275	mfctl %cr27,%t1
23276	addil LR%foo-$tls_leoff$,%t1
23277	ldo RR%foo-$tls_leoff$(%r1),%t2'
23278	tls_first_major=2
23279	tls_first_minor=15
23280	tls_as_opt=--fatal-warnings
23281	;;
23282  arm*-*-*)
23283    conftest_s='
23284	.section ".tdata","awT",%progbits
23285foo:	.long	25
23286	.text
23287.word foo(gottpoff)
23288.word foo(tpoff)
23289.word foo(tlsgd)
23290.word foo(tlsldm)
23291.word foo(tlsldo)'
23292	tls_first_major=2
23293	tls_first_minor=17
23294	;;
23295  i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23296    case "$target" in
23297      i[34567]86-*-solaris2.*)
23298	on_solaris=yes
23299	tga_func=___tls_get_addr
23300	;;
23301      x86_64-*-solaris2.1[0-9]*)
23302	on_solaris=yes
23303	tga_func=__tls_get_addr
23304        ;;
23305      *)
23306	on_solaris=no
23307	;;
23308    esac
23309    if test x$on_solaris = xyes && test x$gas_flag = xno; then
23310      conftest_s='
23311	.section .tdata,"awt",@progbits'
23312      tls_first_major=0
23313      tls_first_minor=0
23314      tls_section_flag=t
23315
23316$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23317
23318    else
23319      conftest_s='
23320	.section ".tdata","awT",@progbits'
23321      tls_first_major=2
23322      tls_first_minor=14
23323      tls_section_flag=T
23324      tls_as_opt="--fatal-warnings"
23325    fi
23326    conftest_s="$conftest_s
23327foo:	.long	25
23328	.text
23329	movl	%gs:0, %eax
23330	leal	foo@tlsgd(,%ebx,1), %eax
23331	leal	foo@tlsldm(%ebx), %eax
23332	leal	foo@dtpoff(%eax), %edx
23333	movl	foo@gottpoff(%ebx), %eax
23334	subl	foo@gottpoff(%ebx), %eax
23335	addl	foo@gotntpoff(%ebx), %eax
23336	movl	foo@indntpoff, %eax
23337	movl	\$foo@tpoff, %eax
23338	subl	\$foo@tpoff, %eax
23339	leal	foo@ntpoff(%ecx), %eax"
23340    ;;
23341  x86_64-*-*)
23342    conftest_s='
23343	.section ".tdata","awT",@progbits
23344foo:	.long	25
23345	.text
23346	movq	%fs:0, %rax
23347	leaq	foo@TLSGD(%rip), %rdi
23348	leaq	foo@TLSLD(%rip), %rdi
23349	leaq	foo@DTPOFF(%rax), %rdx
23350	movq	foo@GOTTPOFF(%rip), %rax
23351	movq	$foo@TPOFF, %rax'
23352	tls_first_major=2
23353	tls_first_minor=14
23354	tls_section_flag=T
23355	tls_as_opt=--fatal-warnings
23356	;;
23357  ia64-*-*)
23358    conftest_s='
23359	.section ".tdata","awT",@progbits
23360foo:	data8	25
23361	.text
23362	addl	r16 = @ltoff(@dtpmod(foo#)), gp
23363	addl	r17 = @ltoff(@dtprel(foo#)), gp
23364	addl	r18 = @ltoff(@tprel(foo#)), gp
23365	addl	r19 = @dtprel(foo#), gp
23366	adds	r21 = @dtprel(foo#), r13
23367	movl	r23 = @dtprel(foo#)
23368	addl	r20 = @tprel(foo#), gp
23369	adds	r22 = @tprel(foo#), r13
23370	movl	r24 = @tprel(foo#)'
23371	tls_first_major=2
23372	tls_first_minor=13
23373	tls_as_opt=--fatal-warnings
23374	;;
23375  microblaze*-*-*)
23376    conftest_s='
23377	.section .tdata,"awT",@progbits
23378x:
23379	.word 2
23380	.text
23381	addik r5,r20,x@TLSGD
23382	addik r5,r20,x@TLSLDM'
23383	tls_first_major=2
23384	tls_first_minor=20
23385	tls_as_opt='--fatal-warnings'
23386	;;
23387  mips*-*-*)
23388    conftest_s='
23389	.section .tdata,"awT",@progbits
23390x:
23391	.word 2
23392	.text
23393	addiu $4, $28, %tlsgd(x)
23394	addiu $4, $28, %tlsldm(x)
23395	lui $4, %dtprel_hi(x)
23396	addiu $4, $4, %dtprel_lo(x)
23397	lw $4, %gottprel(x)($28)
23398	lui $4, %tprel_hi(x)
23399	addiu $4, $4, %tprel_lo(x)'
23400	tls_first_major=2
23401	tls_first_minor=16
23402	tls_as_opt='-32 --fatal-warnings'
23403	;;
23404  m68k-*-*)
23405    conftest_s='
23406	.section .tdata,"awT",@progbits
23407x:
23408	.word 2
23409	.text
23410foo:
23411	move.l x@TLSGD(%a5),%a0
23412	move.l x@TLSLDM(%a5),%a0
23413	move.l x@TLSLDO(%a5),%a0
23414	move.l x@TLSIE(%a5),%a0
23415	move.l x@TLSLE(%a5),%a0'
23416	tls_first_major=2
23417	tls_first_minor=19
23418	tls_as_opt='--fatal-warnings'
23419	;;
23420  nios2-*-*)
23421      conftest_s='
23422	.section ".tdata","awT",@progbits'
23423	tls_first_major=2
23424	tls_first_minor=23
23425	tls_as_opt="--fatal-warnings"
23426	;;
23427  aarch64*-*-*)
23428    conftest_s='
23429	.section ".tdata","awT",%progbits
23430foo:	.long	25
23431	.text
23432	adrp  x0, :tlsgd:x
23433	add   x0, x0, #:tlsgd_lo12:x
23434        bl    __tls_get_addr
23435	nop'
23436	tls_first_major=2
23437	tls_first_minor=20
23438	tls_as_opt='--fatal-warnings'
23439	;;
23440  powerpc-ibm-aix*)
23441    conftest_s='
23442	.extern __get_tpointer
23443	.toc
23444LC..1:
23445	.tc a[TC],a[TL]@le
23446	.csect .text[PR]
23447.tlstest:
23448	lwz 9,LC..1(2)
23449	bla __get_tpointer
23450	lwzx 3,9,3
23451	.globl a
23452	.csect a[TL],4
23453a:
23454	.space 4'
23455	tls_first_major=0
23456	tls_first_minor=0
23457	;;
23458  powerpc64*-*-*)
23459    conftest_s='
23460	.section ".tdata","awT",@progbits
23461	.align 3
23462ld0:	.space 8
23463ld1:	.space 8
23464x1:	.space 8
23465x2:	.space 8
23466x3:	.space 8
23467	.text
23468	addi 3,2,ld0@got@tlsgd
23469	bl .__tls_get_addr
23470	nop
23471	addi 3,2,ld1@toc
23472	bl .__tls_get_addr
23473	nop
23474	addi 3,2,x1@got@tlsld
23475	bl .__tls_get_addr
23476	nop
23477	addi 9,3,x1@dtprel
23478	bl .__tls_get_addr
23479	nop
23480	addis 9,3,x2@dtprel@ha
23481	addi 9,9,x2@dtprel@l
23482	bl .__tls_get_addr
23483	nop
23484	ld 9,x3@got@dtprel(2)
23485	add 9,9,3
23486	bl .__tls_get_addr
23487	nop'
23488	tls_first_major=2
23489	tls_first_minor=14
23490	tls_as_opt="-a64 --fatal-warnings"
23491	;;
23492  powerpc*-*-*)
23493    conftest_s='
23494	.section ".tdata","awT",@progbits
23495	.align 2
23496ld0:	.space 4
23497ld1:	.space 4
23498x1:	.space 4
23499x2:	.space 4
23500x3:	.space 4
23501	.text
23502	addi 3,31,ld0@got@tlsgd
23503	bl __tls_get_addr
23504	addi 3,31,x1@got@tlsld
23505	bl __tls_get_addr
23506	addi 9,3,x1@dtprel
23507	addis 9,3,x2@dtprel@ha
23508	addi 9,9,x2@dtprel@l
23509	lwz 9,x3@got@tprel(31)
23510	add 9,9,x@tls
23511	addi 9,2,x1@tprel
23512	addis 9,2,x2@tprel@ha
23513	addi 9,9,x2@tprel@l'
23514	tls_first_major=2
23515	tls_first_minor=14
23516	tls_as_opt="-a32 --fatal-warnings"
23517	;;
23518  s390-*-*)
23519    conftest_s='
23520	.section ".tdata","awT",@progbits
23521foo:	.long	25
23522	.text
23523	.long	foo@TLSGD
23524	.long	foo@TLSLDM
23525	.long	foo@DTPOFF
23526	.long	foo@NTPOFF
23527	.long	foo@GOTNTPOFF
23528	.long	foo@INDNTPOFF
23529	l	%r1,foo@GOTNTPOFF(%r12)
23530	l	%r1,0(%r1):tls_load:foo
23531	bas	%r14,0(%r1,%r13):tls_gdcall:foo
23532	bas	%r14,0(%r1,%r13):tls_ldcall:foo'
23533	tls_first_major=2
23534	tls_first_minor=14
23535	tls_as_opt="-m31 --fatal-warnings"
23536	;;
23537  s390x-*-*)
23538    conftest_s='
23539	.section ".tdata","awT",@progbits
23540foo:	.long	25
23541	.text
23542	.quad	foo@TLSGD
23543	.quad	foo@TLSLDM
23544	.quad	foo@DTPOFF
23545	.quad	foo@NTPOFF
23546	.quad	foo@GOTNTPOFF
23547	lg	%r1,foo@GOTNTPOFF(%r12)
23548	larl	%r1,foo@INDNTPOFF
23549	brasl	%r14,__tls_get_offset@PLT:tls_gdcall:foo
23550	brasl	%r14,__tls_get_offset@PLT:tls_ldcall:foo'
23551	tls_first_major=2
23552	tls_first_minor=14
23553	tls_as_opt="-m64 -Aesame --fatal-warnings"
23554	;;
23555  sh-*-* | sh[34]-*-*)
23556    conftest_s='
23557	.section ".tdata","awT",@progbits
23558foo:	.long	25
23559	.text
23560	.long	foo@TLSGD
23561	.long	foo@TLSLDM
23562	.long	foo@DTPOFF
23563	.long	foo@GOTTPOFF
23564	.long	foo@TPOFF'
23565	tls_first_major=2
23566	tls_first_minor=13
23567	tls_as_opt=--fatal-warnings
23568	;;
23569  sparc*-*-*)
23570    case "$target" in
23571      sparc*-sun-solaris2.*)
23572	on_solaris=yes
23573	tga_func=__tls_get_addr
23574	;;
23575      *)
23576	on_solaris=no
23577	;;
23578    esac
23579    if test x$on_solaris = xyes && test x$gas_flag = xno; then
23580      conftest_s='
23581	.section ".tdata",#alloc,#write,#tls'
23582	tls_first_major=0
23583	tls_first_minor=0
23584    else
23585      conftest_s='
23586	.section ".tdata","awT",@progbits'
23587	tls_first_major=2
23588	tls_first_minor=14
23589	tls_as_opt="-32 --fatal-warnings"
23590    fi
23591    conftest_s="$conftest_s
23592foo:	.long	25
23593	.text
23594	sethi	%tgd_hi22(foo), %o0
23595	add	%o0, %tgd_lo10(foo), %o1
23596	add	%l7, %o1, %o0, %tgd_add(foo)
23597	call	__tls_get_addr, %tgd_call(foo)
23598	sethi	%tldm_hi22(foo), %l1
23599	add	%l1, %tldm_lo10(foo), %l2
23600	add	%l7, %l2, %o0, %tldm_add(foo)
23601	call	__tls_get_addr, %tldm_call(foo)
23602	sethi	%tldo_hix22(foo), %l3
23603	xor	%l3, %tldo_lox10(foo), %l4
23604	add	%o0, %l4, %l5, %tldo_add(foo)
23605	sethi	%tie_hi22(foo), %o3
23606	add	%o3, %tie_lo10(foo), %o3
23607	ld	[%l7 + %o3], %o2, %tie_ld(foo)
23608	add	%g7, %o2, %o4, %tie_add(foo)
23609	sethi	%tle_hix22(foo), %l1
23610	xor	%l1, %tle_lox10(foo), %o5
23611	ld	[%g7 + %o5], %o1"
23612	;;
23613  tilepro*-*-*)
23614      conftest_s='
23615	.section ".tdata","awT",@progbits
23616foo:	.long	25
23617	.text
23618	addli	r0, zero, tls_gd(foo)
23619	auli	r0, zero, tls_gd_ha16(foo)
23620	addli	r0, r0, tls_gd_lo16(foo)
23621	jal	__tls_get_addr
23622	addli	r0, zero, tls_ie(foo)
23623	auli	r0, r0, tls_ie_ha16(foo)
23624	addli	r0, r0, tls_ie_lo16(foo)'
23625	tls_first_major=2
23626	tls_first_minor=22
23627	tls_as_opt="--fatal-warnings"
23628	;;
23629  tilegx*-*-*)
23630      conftest_s='
23631	.section ".tdata","awT",@progbits
23632foo:	.long	25
23633	.text
23634	shl16insli r0, zero, hw0_last_tls_gd(foo)
23635	shl16insli r0, zero, hw1_last_tls_gd(foo)
23636	shl16insli r0, r0,   hw0_tls_gd(foo)
23637	jal	   __tls_get_addr
23638	shl16insli r0, zero, hw1_last_tls_ie(foo)
23639	shl16insli r0, r0,   hw0_tls_ie(foo)'
23640	tls_first_major=2
23641	tls_first_minor=22
23642	tls_as_opt="--fatal-warnings"
23643	;;
23644  xtensa*-*-*)
23645    conftest_s='
23646	.section ".tdata","awT",@progbits
23647foo:	.long	25
23648	.text
23649	movi	a8, foo@TLSFUNC
23650	movi	a10, foo@TLSARG
23651	callx8.tls a8, foo@TLSCALL'
23652	tls_first_major=2
23653	tls_first_minor=19
23654	;;
23655esac
23656set_have_as_tls=no
23657if test "x$enable_tls" = xno ; then
23658  : # TLS explicitly disabled.
23659elif test "x$enable_tls" = xyes ; then
23660  set_have_as_tls=yes # TLS explicitly enabled.
23661elif test -z "$tls_first_major"; then
23662  : # If we don't have a check, assume no support.
23663else
23664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23665$as_echo_n "checking assembler for thread-local storage support... " >&6; }
23666if test "${gcc_cv_as_tls+set}" = set; then :
23667  $as_echo_n "(cached) " >&6
23668else
23669  gcc_cv_as_tls=no
23670    if test $in_tree_gas = yes; then
23671    if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23672  then gcc_cv_as_tls=yes
23673fi
23674  elif test x$gcc_cv_as != x; then
23675    $as_echo "$conftest_s" > conftest.s
23676    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23677  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23678  (eval $ac_try) 2>&5
23679  ac_status=$?
23680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23681  test $ac_status = 0; }; }
23682    then
23683	gcc_cv_as_tls=yes
23684    else
23685      echo "configure: failed program was" >&5
23686      cat conftest.s >&5
23687    fi
23688    rm -f conftest.o conftest.s
23689  fi
23690fi
23691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23692$as_echo "$gcc_cv_as_tls" >&6; }
23693if test $gcc_cv_as_tls = yes; then
23694  set_have_as_tls=yes
23695fi
23696fi
23697case "$target" in
23698  # TLS was introduced in the Solaris 9 FCS release.  Support for GNU-style
23699  # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23700  # Sun style that Sun ld and GCC don't support any longer.
23701  *-*-solaris2.*)
23702    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23703$as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23704    ld_tls_support=no
23705    # Check ld and ld.so.1 TLS support.
23706    if echo "$ld_ver" | grep GNU > /dev/null; then
23707      # Assume all interesting versions of GNU ld have TLS support.
23708      # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23709      ld_tls_support=yes
23710    else
23711      case "$target" in
23712	# Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23713        i?86-*-solaris2.9)
23714          min_tls_ld_vers_minor=374
23715          ;;
23716	# Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23717        sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23718	  min_tls_ld_vers_minor=343
23719          ;;
23720      esac
23721      if test "$ld_vers_major" -gt 1 || \
23722        test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23723 	ld_tls_support=yes
23724      else
23725        set_have_as_tls=no
23726      fi
23727    fi
23728    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23729$as_echo "$ld_tls_support" >&6; }
23730
23731    save_LIBS="$LIBS"
23732    save_LDFLAGS="$LDFLAGS"
23733    LIBS=
23734    LDFLAGS=
23735
23736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23737$as_echo_n "checking library containing $tga_func... " >&6; }
23738    # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23739    # (32-bit x86) only lived in libthread, so check for that.  Keep
23740    # set_have_as_tls if found, disable if not.
23741    as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23743$as_echo_n "checking for library containing $tga_func... " >&6; }
23744if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23745  $as_echo_n "(cached) " >&6
23746else
23747  ac_func_search_save_LIBS=$LIBS
23748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23749/* end confdefs.h.  */
23750
23751/* Override any GCC internal prototype to avoid an error.
23752   Use char because int might match the return type of a GCC
23753   builtin and then its argument prototype would still apply.  */
23754#ifdef __cplusplus
23755extern "C"
23756#endif
23757char $tga_func ();
23758int
23759main ()
23760{
23761return $tga_func ();
23762  ;
23763  return 0;
23764}
23765_ACEOF
23766for ac_lib in '' thread; do
23767  if test -z "$ac_lib"; then
23768    ac_res="none required"
23769  else
23770    ac_res=-l$ac_lib
23771    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23772  fi
23773  if ac_fn_c_try_link "$LINENO"; then :
23774  eval "$as_ac_Search=\$ac_res"
23775fi
23776rm -f core conftest.err conftest.$ac_objext \
23777    conftest$ac_exeext
23778  if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23779  break
23780fi
23781done
23782if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23783
23784else
23785  eval "$as_ac_Search=no"
23786fi
23787rm conftest.$ac_ext
23788LIBS=$ac_func_search_save_LIBS
23789fi
23790eval ac_res=\$$as_ac_Search
23791	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23792$as_echo "$ac_res" >&6; }
23793eval ac_res=\$$as_ac_Search
23794if test "$ac_res" != no; then :
23795  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23796
23797else
23798  set_have_as_tls=no
23799fi
23800
23801    ld_tls_libs="$LIBS"
23802    # Clear LIBS if we cannot support TLS.
23803    if test $set_have_as_tls = no; then
23804      LIBS=
23805    fi
23806    # Always define LIB_TLS_SPEC, even without TLS support.
23807
23808cat >>confdefs.h <<_ACEOF
23809#define LIB_TLS_SPEC "$LIBS"
23810_ACEOF
23811
23812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23813$as_echo "$LIBS" >&6; }
23814
23815    LIBS="$save_LIBS"
23816    LDFLAGS="$save_LDFLAGS"
23817    ;;
23818esac
23819if test $set_have_as_tls = yes ; then
23820
23821$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23822
23823fi
23824
23825# Target-specific assembler checks.
23826
23827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23828$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23829gcc_cv_ld_static_dynamic=no
23830gcc_cv_ld_static_option='-Bstatic'
23831gcc_cv_ld_dynamic_option='-Bdynamic'
23832if test $in_tree_ld = yes ; then
23833  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
23834    gcc_cv_ld_static_dynamic=yes
23835  fi
23836elif test x$gcc_cv_ld != x; then
23837  # Check if linker supports -Bstatic/-Bdynamic option
23838  if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23839     && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23840      gcc_cv_ld_static_dynamic=yes
23841  else
23842    case "$target" in
23843      # AIX ld uses -b flags
23844      *-*-aix4.[23]* | *-*-aix[5-9]*)
23845	gcc_cv_ld_static_dynamic=yes
23846	gcc_cv_ld_static_option="-bstatic"
23847	gcc_cv_ld_dynamic_option="-bdynamic"
23848	;;
23849      # HP-UX ld uses -a flags to select between shared and archive.
23850      *-*-hpux*)
23851	if test x"$gnu_ld" = xno; then
23852	  gcc_cv_ld_static_dynamic=yes
23853	  gcc_cv_ld_static_option="-aarchive_shared"
23854	  gcc_cv_ld_dynamic_option="-adefault"
23855	fi
23856	;;
23857      # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23858      *-*-solaris2*)
23859        gcc_cv_ld_static_dynamic=yes
23860        ;;
23861    esac
23862  fi
23863fi
23864if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23865
23866$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23867
23868
23869cat >>confdefs.h <<_ACEOF
23870#define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23871_ACEOF
23872
23873
23874cat >>confdefs.h <<_ACEOF
23875#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23876_ACEOF
23877
23878fi
23879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23880$as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23881
23882if test x"$demangler_in_ld" = xyes; then
23883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23884$as_echo_n "checking linker --demangle support... " >&6; }
23885  gcc_cv_ld_demangle=no
23886  if test $in_tree_ld = yes; then
23887    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 \
23888      gcc_cv_ld_demangle=yes
23889    fi
23890  elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23891    # Check if the GNU linker supports --demangle option
23892    if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23893      gcc_cv_ld_demangle=yes
23894    fi
23895  fi
23896  if test x"$gcc_cv_ld_demangle" = xyes; then
23897
23898$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23899
23900  fi
23901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23902$as_echo "$gcc_cv_ld_demangle" >&6; }
23903fi
23904
23905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23906$as_echo_n "checking linker plugin support... " >&6; }
23907gcc_cv_lto_plugin=0
23908if test -f liblto_plugin.la; then
23909  save_ld_ver="$ld_ver"
23910  save_ld_vers_major="$ld_vers_major"
23911  save_ld_vers_minor="$ld_vers_minor"
23912  save_ld_is_gold="$ld_is_gold"
23913
23914  ld_is_gold=no
23915
23916  if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23917    ld_ver="GNU ld"
23918    # FIXME: ld_is_gold?
23919    ld_vers_major="$gcc_cv_gld_major_version"
23920    ld_vers_minor="$gcc_cv_gld_minor_version"
23921  else
23922    # Determine plugin linker version.
23923    # FIXME: Partial duplicate from above, generalize.
23924    ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23925    if echo "$ld_ver" | grep GNU > /dev/null; then
23926      if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23927        ld_is_gold=yes
23928        ld_vers=`echo $ld_ver | sed -n \
23929    	    -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23930      else
23931        ld_vers=`echo $ld_ver | sed -n \
23932    	    -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23933      fi
23934      ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23935      ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23936    fi
23937  fi
23938
23939  # Determine plugin support.
23940  if echo "$ld_ver" | grep GNU > /dev/null; then
23941    # Require GNU ld or gold 2.21+ for plugin support by default.
23942    if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23943      gcc_cv_lto_plugin=2
23944    # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23945    elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23946      gcc_cv_lto_plugin=1
23947    fi
23948  fi
23949
23950  ld_ver="$save_ld_ver"
23951  ld_vers_major="$save_ld_vers_major"
23952  ld_vers_minor="$save_ld_vers_minor"
23953  ld_is_gold="$save_ld_is_gold"
23954fi
23955
23956cat >>confdefs.h <<_ACEOF
23957#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23958_ACEOF
23959
23960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23961$as_echo "$gcc_cv_lto_plugin" >&6; }
23962
23963case "$target" in
23964  aarch64*-*-*)
23965    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23966$as_echo_n "checking assembler for -mabi option... " >&6; }
23967if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23968  $as_echo_n "(cached) " >&6
23969else
23970  gcc_cv_as_aarch64_mabi=no
23971  if test x$gcc_cv_as != x; then
23972    $as_echo '.text' > conftest.s
23973    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23974  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23975  (eval $ac_try) 2>&5
23976  ac_status=$?
23977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23978  test $ac_status = 0; }; }
23979    then
23980	gcc_cv_as_aarch64_mabi=yes
23981    else
23982      echo "configure: failed program was" >&5
23983      cat conftest.s >&5
23984    fi
23985    rm -f conftest.o conftest.s
23986  fi
23987fi
23988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23989$as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23990
23991    if test x$gcc_cv_as_aarch64_mabi = xyes; then
23992
23993$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23994
23995    else
23996      if test x$with_abi = xilp32; then
23997        as_fn_error "Assembler does not support -mabi=ilp32.\
23998                     Upgrade the Assembler." "$LINENO" 5
23999      fi
24000      if test x"$with_multilib_list" = xdefault; then
24001        TM_MULTILIB_CONFIG=lp64
24002      else
24003        aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24004        for aarch64_multilib in ${aarch64_multilibs}; do
24005          case ${aarch64_multilib} in
24006            ilp32)
24007              as_fn_error "Assembler does not support -mabi=ilp32.\
24008                            Upgrade the Assembler." "$LINENO" 5
24009              ;;
24010            *)
24011              ;;
24012          esac
24013        done
24014      fi
24015    fi
24016    # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24017    # Check whether --enable-fix-cortex-a53-835769 was given.
24018if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24019  enableval=$enable_fix_cortex_a53_835769;
24020        case $enableval in
24021          yes)
24022            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24023            ;;
24024          no)
24025            ;;
24026          *)
24027            as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24028  Valid choices are 'yes' and 'no'." "$LINENO" 5
24029            ;;
24030
24031        esac
24032
24033fi
24034
24035    ;;
24036
24037  # All TARGET_ABI_OSF targets.
24038  alpha*-*-linux* | alpha*-*-*bsd*)
24039    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24040$as_echo_n "checking assembler for explicit relocation support... " >&6; }
24041if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24042  $as_echo_n "(cached) " >&6
24043else
24044  gcc_cv_as_alpha_explicit_relocs=no
24045    if test $in_tree_gas = yes; then
24046    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24047  then gcc_cv_as_alpha_explicit_relocs=yes
24048fi
24049  elif test x$gcc_cv_as != x; then
24050    $as_echo '	.set nomacro
24051	.text
24052	extbl	$3, $2, $3	!lituse_bytoff!1
24053	ldq	$2, a($29)	!literal!1
24054	ldq	$4, b($29)	!literal!2
24055	ldq_u	$3, 0($2)	!lituse_base!1
24056	ldq	$27, f($29)	!literal!5
24057	jsr	$26, ($27), f	!lituse_jsr!5
24058	ldah	$29, 0($26)	!gpdisp!3
24059	lda	$0, c($29)	!gprel
24060	ldah	$1, d($29)	!gprelhigh
24061	lda	$1, d($1)	!gprellow
24062	lda	$29, 0($29)	!gpdisp!3' > conftest.s
24063    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24064  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24065  (eval $ac_try) 2>&5
24066  ac_status=$?
24067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24068  test $ac_status = 0; }; }
24069    then
24070	gcc_cv_as_alpha_explicit_relocs=yes
24071    else
24072      echo "configure: failed program was" >&5
24073      cat conftest.s >&5
24074    fi
24075    rm -f conftest.o conftest.s
24076  fi
24077fi
24078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24079$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24080if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24081
24082$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24083
24084fi
24085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24086$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24087if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24088  $as_echo_n "(cached) " >&6
24089else
24090  gcc_cv_as_alpha_jsrdirect_relocs=no
24091    if test $in_tree_gas = yes; then
24092    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24093  then gcc_cv_as_alpha_jsrdirect_relocs=yes
24094fi
24095  elif test x$gcc_cv_as != x; then
24096    $as_echo '	.set nomacro
24097	.text
24098	ldq	$27, a($29)	!literal!1
24099	jsr	$26, ($27), a	!lituse_jsrdirect!1' > conftest.s
24100    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24101  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24102  (eval $ac_try) 2>&5
24103  ac_status=$?
24104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24105  test $ac_status = 0; }; }
24106    then
24107	gcc_cv_as_alpha_jsrdirect_relocs=yes
24108    else
24109      echo "configure: failed program was" >&5
24110      cat conftest.s >&5
24111    fi
24112    rm -f conftest.o conftest.s
24113  fi
24114fi
24115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24116$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24117if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24118
24119$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24120
24121fi
24122    ;;
24123
24124  cris-*-*)
24125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24126$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24127if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24128  $as_echo_n "(cached) " >&6
24129else
24130  gcc_cv_as_cris_no_mul_bug=no
24131    if test $in_tree_gas = yes; then
24132    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24133  then gcc_cv_as_cris_no_mul_bug=yes
24134fi
24135  elif test x$gcc_cv_as != x; then
24136    $as_echo '.text' > conftest.s
24137    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24138  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24139  (eval $ac_try) 2>&5
24140  ac_status=$?
24141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24142  test $ac_status = 0; }; }
24143    then
24144	gcc_cv_as_cris_no_mul_bug=yes
24145    else
24146      echo "configure: failed program was" >&5
24147      cat conftest.s >&5
24148    fi
24149    rm -f conftest.o conftest.s
24150  fi
24151fi
24152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24153$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24154if test $gcc_cv_as_cris_no_mul_bug = yes; then
24155
24156$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24157
24158fi
24159    ;;
24160
24161  sparc*-*-*)
24162    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24163$as_echo_n "checking assembler for .register... " >&6; }
24164if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24165  $as_echo_n "(cached) " >&6
24166else
24167  gcc_cv_as_sparc_register_op=no
24168  if test x$gcc_cv_as != x; then
24169    $as_echo '.register %g2, #scratch' > conftest.s
24170    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24171  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24172  (eval $ac_try) 2>&5
24173  ac_status=$?
24174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24175  test $ac_status = 0; }; }
24176    then
24177	gcc_cv_as_sparc_register_op=yes
24178    else
24179      echo "configure: failed program was" >&5
24180      cat conftest.s >&5
24181    fi
24182    rm -f conftest.o conftest.s
24183  fi
24184fi
24185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24186$as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24187if test $gcc_cv_as_sparc_register_op = yes; then
24188
24189$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24190
24191fi
24192
24193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24194$as_echo_n "checking assembler for #nobits... " >&6; }
24195if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24196  $as_echo_n "(cached) " >&6
24197else
24198  gcc_cv_as_sparc_nobits=no
24199  if test x$gcc_cv_as != x; then
24200    $as_echo '.section "nobits",#alloc,#write,#nobits
24201       .section "progbits",#alloc,#write,#progbits' > conftest.s
24202    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24203  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24204  (eval $ac_try) 2>&5
24205  ac_status=$?
24206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24207  test $ac_status = 0; }; }
24208    then
24209	gcc_cv_as_sparc_nobits=yes
24210    else
24211      echo "configure: failed program was" >&5
24212      cat conftest.s >&5
24213    fi
24214    rm -f conftest.o conftest.s
24215  fi
24216fi
24217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24218$as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24219
24220
24221cat >>confdefs.h <<_ACEOF
24222#define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24223_ACEOF
24224
24225
24226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24227$as_echo_n "checking assembler for -relax option... " >&6; }
24228if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24229  $as_echo_n "(cached) " >&6
24230else
24231  gcc_cv_as_sparc_relax=no
24232  if test x$gcc_cv_as != x; then
24233    $as_echo '.text' > conftest.s
24234    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24235  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236  (eval $ac_try) 2>&5
24237  ac_status=$?
24238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239  test $ac_status = 0; }; }
24240    then
24241	gcc_cv_as_sparc_relax=yes
24242    else
24243      echo "configure: failed program was" >&5
24244      cat conftest.s >&5
24245    fi
24246    rm -f conftest.o conftest.s
24247  fi
24248fi
24249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24250$as_echo "$gcc_cv_as_sparc_relax" >&6; }
24251if test $gcc_cv_as_sparc_relax = yes; then
24252
24253$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24254
24255fi
24256
24257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24258$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24259if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24260  $as_echo_n "(cached) " >&6
24261else
24262  gcc_cv_as_sparc_gotdata_op=no
24263  if test x$gcc_cv_as != x; then
24264    $as_echo '.text
24265.align 4
24266foo:
24267	nop
24268bar:
24269	sethi %gdop_hix22(foo), %g1
24270	xor    %g1, %gdop_lox10(foo), %g1
24271	ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24272    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24273  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24274  (eval $ac_try) 2>&5
24275  ac_status=$?
24276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24277  test $ac_status = 0; }; }
24278    then
24279	if test x$gcc_cv_ld != x \
24280       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24281         if test x$gcc_cv_objdump != x; then
24282           if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24283              | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24284	       gcc_cv_as_sparc_gotdata_op=no
24285           else
24286	       gcc_cv_as_sparc_gotdata_op=yes
24287           fi
24288         fi
24289       fi
24290       rm -f conftest
24291    else
24292      echo "configure: failed program was" >&5
24293      cat conftest.s >&5
24294    fi
24295    rm -f conftest.o conftest.s
24296  fi
24297fi
24298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24299$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24300if test $gcc_cv_as_sparc_gotdata_op = yes; then
24301
24302$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24303
24304fi
24305
24306    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24307$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24308if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24309  $as_echo_n "(cached) " >&6
24310else
24311  gcc_cv_as_sparc_ua_pcrel=no
24312  if test x$gcc_cv_as != x; then
24313    $as_echo '.text
24314foo:
24315	nop
24316.data
24317.align 4
24318.byte 0
24319.uaword %r_disp32(foo)' > conftest.s
24320    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24321  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24322  (eval $ac_try) 2>&5
24323  ac_status=$?
24324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24325  test $ac_status = 0; }; }
24326    then
24327	if test x$gcc_cv_ld != x \
24328       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24329	 gcc_cv_as_sparc_ua_pcrel=yes
24330       fi
24331       rm -f conftest
24332    else
24333      echo "configure: failed program was" >&5
24334      cat conftest.s >&5
24335    fi
24336    rm -f conftest.o conftest.s
24337  fi
24338fi
24339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24340$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24341if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24342
24343$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24344
24345
24346      { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24347$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24348if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24349  $as_echo_n "(cached) " >&6
24350else
24351  gcc_cv_as_sparc_ua_pcrel_hidden=no
24352  if test x$gcc_cv_as != x; then
24353    $as_echo '.data
24354.align 4
24355.byte 0x31
24356.uaword %r_disp32(foo)
24357.byte 0x32, 0x33, 0x34
24358.global foo
24359.hidden foo
24360foo:
24361.skip 4' > conftest.s
24362    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24363  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24364  (eval $ac_try) 2>&5
24365  ac_status=$?
24366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24367  test $ac_status = 0; }; }
24368    then
24369	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24370	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24371	 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24372	    | grep ' 31000000 07323334' > /dev/null 2>&1; then
24373	    if $gcc_cv_objdump -R conftest 2> /dev/null \
24374	       | grep 'DISP32' > /dev/null 2>&1; then
24375		:
24376	    else
24377		gcc_cv_as_sparc_ua_pcrel_hidden=yes
24378	    fi
24379	 fi
24380	 rm -f conftest
24381    else
24382      echo "configure: failed program was" >&5
24383      cat conftest.s >&5
24384    fi
24385    rm -f conftest.o conftest.s
24386  fi
24387fi
24388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24389$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24390if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24391
24392$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24393
24394fi
24395
24396fi # unaligned pcrel relocs
24397
24398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24399$as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24400if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24401  $as_echo_n "(cached) " >&6
24402else
24403  gcc_cv_as_sparc_offsetable_lo10=no
24404  if test x$gcc_cv_as != x; then
24405    $as_echo '.text
24406	or %g1, %lo(ab) + 12, %g1
24407	or %g1, %lo(ab + 12), %g1' > conftest.s
24408    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24409  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24410  (eval $ac_try) 2>&5
24411  ac_status=$?
24412  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24413  test $ac_status = 0; }; }
24414    then
24415	if test x$gcc_cv_objdump != x \
24416       && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24417          | grep ' 82106000 82106000' > /dev/null 2>&1; then
24418	 gcc_cv_as_sparc_offsetable_lo10=yes
24419       fi
24420    else
24421      echo "configure: failed program was" >&5
24422      cat conftest.s >&5
24423    fi
24424    rm -f conftest.o conftest.s
24425  fi
24426fi
24427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24428$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24429if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24430
24431$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24432
24433fi
24434
24435    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24436$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24437if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24438  $as_echo_n "(cached) " >&6
24439else
24440  gcc_cv_as_sparc_fmaf=no
24441  if test x$gcc_cv_as != x; then
24442    $as_echo '.text
24443       .register %g2, #scratch
24444       .register %g3, #scratch
24445       .align 4
24446       fmaddd %f0, %f2, %f4, %f6
24447       addxccc %g1, %g2, %g3
24448       fsrl32 %f2, %f4, %f8
24449       fnaddd %f10, %f12, %f14' > conftest.s
24450    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24451  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24452  (eval $ac_try) 2>&5
24453  ac_status=$?
24454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455  test $ac_status = 0; }; }
24456    then
24457	gcc_cv_as_sparc_fmaf=yes
24458    else
24459      echo "configure: failed program was" >&5
24460      cat conftest.s >&5
24461    fi
24462    rm -f conftest.o conftest.s
24463  fi
24464fi
24465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24466$as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24467if test $gcc_cv_as_sparc_fmaf = yes; then
24468
24469$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24470
24471fi
24472
24473    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24474$as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24475if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24476  $as_echo_n "(cached) " >&6
24477else
24478  gcc_cv_as_sparc_sparc4=no
24479  if test x$gcc_cv_as != x; then
24480    $as_echo '.text
24481       .register %g2, #scratch
24482       .register %g3, #scratch
24483       .align 4
24484       cxbe %g2, %g3, 1f
244851:     cwbneg %g2, %g3, 1f
244861:     sha1
24487       md5
24488       aes_kexpand0 %f4, %f6, %f8
24489       des_round %f38, %f40, %f42, %f44
24490       camellia_f %f54, %f56, %f58, %f60
24491       kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24492    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24493  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24494  (eval $ac_try) 2>&5
24495  ac_status=$?
24496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24497  test $ac_status = 0; }; }
24498    then
24499	gcc_cv_as_sparc_sparc4=yes
24500    else
24501      echo "configure: failed program was" >&5
24502      cat conftest.s >&5
24503    fi
24504    rm -f conftest.o conftest.s
24505  fi
24506fi
24507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24508$as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24509if test $gcc_cv_as_sparc_sparc4 = yes; then
24510
24511$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24512
24513fi
24514
24515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24516$as_echo_n "checking assembler for LEON instructions... " >&6; }
24517if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24518  $as_echo_n "(cached) " >&6
24519else
24520  gcc_cv_as_sparc_leon=no
24521  if test x$gcc_cv_as != x; then
24522    $as_echo '.text
24523       .register %g2, #scratch
24524       .register %g3, #scratch
24525       .align 4
24526       smac %g2, %g3, %g1
24527       umac %g2, %g3, %g1
24528       casa [%g2] 0xb, %g3, %g1' > conftest.s
24529    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24530  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24531  (eval $ac_try) 2>&5
24532  ac_status=$?
24533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24534  test $ac_status = 0; }; }
24535    then
24536	gcc_cv_as_sparc_leon=yes
24537    else
24538      echo "configure: failed program was" >&5
24539      cat conftest.s >&5
24540    fi
24541    rm -f conftest.o conftest.s
24542  fi
24543fi
24544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24545$as_echo "$gcc_cv_as_sparc_leon" >&6; }
24546if test $gcc_cv_as_sparc_leon = yes; then
24547
24548$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24549
24550fi
24551    ;;
24552
24553  i[34567]86-*-* | x86_64-*-*)
24554    case $target_os in
24555      cygwin*)
24556	# Full C++ conformance when using a shared libstdc++-v3 requires some
24557	# support from the Cygwin DLL, which in more recent versions exports
24558	# wrappers to aid in interposing and redirecting operators new, delete,
24559	# etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24560	# are configuring for a version of Cygwin that exports the wrappers.
24561	if test x$host = x$target && test x$host_cpu = xi686; then
24562	  ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24563if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24564  gcc_ac_cygwin_dll_wrappers=yes
24565else
24566  gcc_ac_cygwin_dll_wrappers=no
24567fi
24568
24569	else
24570	  # Can't check presence of libc functions during cross-compile, so
24571	  # we just have to assume we're building for an up-to-date target.
24572	  gcc_ac_cygwin_dll_wrappers=yes
24573	fi
24574
24575cat >>confdefs.h <<_ACEOF
24576#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24577_ACEOF
24578
24579    esac
24580    case $target_os in
24581      cygwin* | pe | mingw32* | interix*)
24582	# Recent binutils allows the three-operand form of ".comm" on PE.  This
24583	# definition is used unconditionally to initialise the default state of
24584	# the target option variable that governs usage of the feature.
24585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24586$as_echo_n "checking assembler for .comm with alignment... " >&6; }
24587if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24588  $as_echo_n "(cached) " >&6
24589else
24590  gcc_cv_as_comm_has_align=no
24591    if test $in_tree_gas = yes; then
24592    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24593  then gcc_cv_as_comm_has_align=yes
24594fi
24595  elif test x$gcc_cv_as != x; then
24596    $as_echo '.comm foo,1,32' > conftest.s
24597    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24598  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24599  (eval $ac_try) 2>&5
24600  ac_status=$?
24601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24602  test $ac_status = 0; }; }
24603    then
24604	gcc_cv_as_comm_has_align=yes
24605    else
24606      echo "configure: failed program was" >&5
24607      cat conftest.s >&5
24608    fi
24609    rm -f conftest.o conftest.s
24610  fi
24611fi
24612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24613$as_echo "$gcc_cv_as_comm_has_align" >&6; }
24614
24615
24616cat >>confdefs.h <<_ACEOF
24617#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24618_ACEOF
24619
24620	# Used for DWARF 2 in PE
24621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24622$as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24623if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24624  $as_echo_n "(cached) " >&6
24625else
24626  gcc_cv_as_ix86_pe_secrel32=no
24627    if test $in_tree_gas = yes; then
24628    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24629  then gcc_cv_as_ix86_pe_secrel32=yes
24630fi
24631  elif test x$gcc_cv_as != x; then
24632    $as_echo '.text
24633foo:	nop
24634.data
24635	.secrel32 foo' > conftest.s
24636    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24637  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24638  (eval $ac_try) 2>&5
24639  ac_status=$?
24640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24641  test $ac_status = 0; }; }
24642    then
24643	if test x$gcc_cv_ld != x \
24644	   && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24645	     gcc_cv_as_ix86_pe_secrel32=yes
24646	   fi
24647	   rm -f conftest
24648    else
24649      echo "configure: failed program was" >&5
24650      cat conftest.s >&5
24651    fi
24652    rm -f conftest.o conftest.s
24653  fi
24654fi
24655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24656$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24657if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24658
24659$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24660
24661fi
24662	# Test if the assembler supports the extended form of the .section
24663	# directive that specifies section alignment.  LTO support uses this,
24664	# but normally only after installation, so we warn but don't fail the
24665	# configure if LTO is enabled but the assembler does not support it.
24666	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24667$as_echo_n "checking assembler for .section with alignment... " >&6; }
24668if test "${gcc_cv_as_section_has_align+set}" = set; then :
24669  $as_echo_n "(cached) " >&6
24670else
24671  gcc_cv_as_section_has_align=no
24672    if test $in_tree_gas = yes; then
24673    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24674  then gcc_cv_as_section_has_align=yes
24675fi
24676  elif test x$gcc_cv_as != x; then
24677    $as_echo '.section lto_test,"dr0"' > conftest.s
24678    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24679  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24680  (eval $ac_try) 2>&5
24681  ac_status=$?
24682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24683  test $ac_status = 0; }; }
24684    then
24685	gcc_cv_as_section_has_align=yes
24686    else
24687      echo "configure: failed program was" >&5
24688      cat conftest.s >&5
24689    fi
24690    rm -f conftest.o conftest.s
24691  fi
24692fi
24693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24694$as_echo "$gcc_cv_as_section_has_align" >&6; }
24695
24696	if test x$gcc_cv_as_section_has_align != xyes; then
24697	  case ",$enable_languages," in
24698	    *,lto,*)
24699	      { $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
24700$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;}
24701	      ;;
24702	  esac
24703	fi
24704	# Test if the assembler supports the section flag 'e' for specifying
24705	# an excluded section.
24706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24707$as_echo_n "checking assembler for .section with e... " >&6; }
24708if test "${gcc_cv_as_section_has_e+set}" = set; then :
24709  $as_echo_n "(cached) " >&6
24710else
24711  gcc_cv_as_section_has_e=no
24712    if test $in_tree_gas = yes; then
24713    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24714  then gcc_cv_as_section_has_e=yes
24715fi
24716  elif test x$gcc_cv_as != x; then
24717    $as_echo '.section foo1,"e"
24718.byte 0,0,0,0' > conftest.s
24719    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24720  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24721  (eval $ac_try) 2>&5
24722  ac_status=$?
24723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24724  test $ac_status = 0; }; }
24725    then
24726	gcc_cv_as_section_has_e=yes
24727    else
24728      echo "configure: failed program was" >&5
24729      cat conftest.s >&5
24730    fi
24731    rm -f conftest.o conftest.s
24732  fi
24733fi
24734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24735$as_echo "$gcc_cv_as_section_has_e" >&6; }
24736
24737
24738cat >>confdefs.h <<_ACEOF
24739#define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24740_ACEOF
24741
24742	;;
24743    esac
24744
24745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24746$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24747if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24748  $as_echo_n "(cached) " >&6
24749else
24750  gcc_cv_as_ix86_filds=no
24751  if test x$gcc_cv_as != x; then
24752    $as_echo 'filds mem; fists mem' > conftest.s
24753    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24754  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24755  (eval $ac_try) 2>&5
24756  ac_status=$?
24757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24758  test $ac_status = 0; }; }
24759    then
24760	gcc_cv_as_ix86_filds=yes
24761    else
24762      echo "configure: failed program was" >&5
24763      cat conftest.s >&5
24764    fi
24765    rm -f conftest.o conftest.s
24766  fi
24767fi
24768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24769$as_echo "$gcc_cv_as_ix86_filds" >&6; }
24770if test $gcc_cv_as_ix86_filds = yes; then
24771
24772$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24773
24774fi
24775
24776    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24777$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24778if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24779  $as_echo_n "(cached) " >&6
24780else
24781  gcc_cv_as_ix86_fildq=no
24782  if test x$gcc_cv_as != x; then
24783    $as_echo 'fildq mem; fistpq mem' > conftest.s
24784    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24785  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24786  (eval $ac_try) 2>&5
24787  ac_status=$?
24788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24789  test $ac_status = 0; }; }
24790    then
24791	gcc_cv_as_ix86_fildq=yes
24792    else
24793      echo "configure: failed program was" >&5
24794      cat conftest.s >&5
24795    fi
24796    rm -f conftest.o conftest.s
24797  fi
24798fi
24799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24800$as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24801if test $gcc_cv_as_ix86_fildq = yes; then
24802
24803$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24804
24805fi
24806
24807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24808$as_echo_n "checking assembler for cmov syntax... " >&6; }
24809if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24810  $as_echo_n "(cached) " >&6
24811else
24812  gcc_cv_as_ix86_cmov_sun_syntax=no
24813  if test x$gcc_cv_as != x; then
24814    $as_echo 'cmovl.l %edx, %eax' > conftest.s
24815    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24816  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24817  (eval $ac_try) 2>&5
24818  ac_status=$?
24819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820  test $ac_status = 0; }; }
24821    then
24822	gcc_cv_as_ix86_cmov_sun_syntax=yes
24823    else
24824      echo "configure: failed program was" >&5
24825      cat conftest.s >&5
24826    fi
24827    rm -f conftest.o conftest.s
24828  fi
24829fi
24830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24831$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24832if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24833
24834$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24835
24836fi
24837
24838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24839$as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24840if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24841  $as_echo_n "(cached) " >&6
24842else
24843  gcc_cv_as_ix86_ffreep=no
24844  if test x$gcc_cv_as != x; then
24845    $as_echo 'ffreep %st(1)' > conftest.s
24846    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24847  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24848  (eval $ac_try) 2>&5
24849  ac_status=$?
24850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24851  test $ac_status = 0; }; }
24852    then
24853	gcc_cv_as_ix86_ffreep=yes
24854    else
24855      echo "configure: failed program was" >&5
24856      cat conftest.s >&5
24857    fi
24858    rm -f conftest.o conftest.s
24859  fi
24860fi
24861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24862$as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24863if test $gcc_cv_as_ix86_ffreep = yes; then
24864
24865$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24866
24867fi
24868
24869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24870$as_echo_n "checking assembler for .quad directive... " >&6; }
24871if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24872  $as_echo_n "(cached) " >&6
24873else
24874  gcc_cv_as_ix86_quad=no
24875  if test x$gcc_cv_as != x; then
24876    $as_echo '.quad 0' > conftest.s
24877    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24878  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24879  (eval $ac_try) 2>&5
24880  ac_status=$?
24881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24882  test $ac_status = 0; }; }
24883    then
24884	gcc_cv_as_ix86_quad=yes
24885    else
24886      echo "configure: failed program was" >&5
24887      cat conftest.s >&5
24888    fi
24889    rm -f conftest.o conftest.s
24890  fi
24891fi
24892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24893$as_echo "$gcc_cv_as_ix86_quad" >&6; }
24894if test $gcc_cv_as_ix86_quad = yes; then
24895
24896$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24897
24898fi
24899
24900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24901$as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24902if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24903  $as_echo_n "(cached) " >&6
24904else
24905  gcc_cv_as_ix86_sahf=no
24906  if test x$gcc_cv_as != x; then
24907    $as_echo '.code64
24908       sahf' > conftest.s
24909    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24910  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24911  (eval $ac_try) 2>&5
24912  ac_status=$?
24913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24914  test $ac_status = 0; }; }
24915    then
24916	gcc_cv_as_ix86_sahf=yes
24917    else
24918      echo "configure: failed program was" >&5
24919      cat conftest.s >&5
24920    fi
24921    rm -f conftest.o conftest.s
24922  fi
24923fi
24924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24925$as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24926if test $gcc_cv_as_ix86_sahf = yes; then
24927
24928$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24929
24930fi
24931
24932    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24933$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24934if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24935  $as_echo_n "(cached) " >&6
24936else
24937  gcc_cv_as_ix86_interunit_movq=no
24938  if test x$gcc_cv_as != x; then
24939    $as_echo '.code64
24940       movq %mm0, %rax
24941       movq %rax, %xmm0' > conftest.s
24942    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24943  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24944  (eval $ac_try) 2>&5
24945  ac_status=$?
24946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947  test $ac_status = 0; }; }
24948    then
24949	gcc_cv_as_ix86_interunit_movq=yes
24950    else
24951      echo "configure: failed program was" >&5
24952      cat conftest.s >&5
24953    fi
24954    rm -f conftest.o conftest.s
24955  fi
24956fi
24957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24958$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24959
24960
24961cat >>confdefs.h <<_ACEOF
24962#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24963_ACEOF
24964
24965
24966    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24967$as_echo_n "checking assembler for hle prefixes... " >&6; }
24968if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24969  $as_echo_n "(cached) " >&6
24970else
24971  gcc_cv_as_ix86_hle=no
24972  if test x$gcc_cv_as != x; then
24973    $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24974    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24975  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24976  (eval $ac_try) 2>&5
24977  ac_status=$?
24978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24979  test $ac_status = 0; }; }
24980    then
24981	gcc_cv_as_ix86_hle=yes
24982    else
24983      echo "configure: failed program was" >&5
24984      cat conftest.s >&5
24985    fi
24986    rm -f conftest.o conftest.s
24987  fi
24988fi
24989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24990$as_echo "$gcc_cv_as_ix86_hle" >&6; }
24991if test $gcc_cv_as_ix86_hle = yes; then
24992
24993$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24994
24995fi
24996
24997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24998$as_echo_n "checking assembler for swap suffix... " >&6; }
24999if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25000  $as_echo_n "(cached) " >&6
25001else
25002  gcc_cv_as_ix86_swap=no
25003  if test x$gcc_cv_as != x; then
25004    $as_echo 'movl.s %esp, %ebp' > conftest.s
25005    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25006  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25007  (eval $ac_try) 2>&5
25008  ac_status=$?
25009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25010  test $ac_status = 0; }; }
25011    then
25012	gcc_cv_as_ix86_swap=yes
25013    else
25014      echo "configure: failed program was" >&5
25015      cat conftest.s >&5
25016    fi
25017    rm -f conftest.o conftest.s
25018  fi
25019fi
25020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25021$as_echo "$gcc_cv_as_ix86_swap" >&6; }
25022if test $gcc_cv_as_ix86_swap = yes; then
25023
25024$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25025
25026fi
25027
25028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25029$as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25030if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25031  $as_echo_n "(cached) " >&6
25032else
25033  gcc_cv_as_ix86_diff_sect_delta=no
25034  if test x$gcc_cv_as != x; then
25035    $as_echo '.section .rodata
25036.L1:
25037        .long .L2-.L1
25038        .long .L3-.L1
25039        .text
25040.L3:    nop
25041.L2:    nop' > conftest.s
25042    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25043  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25044  (eval $ac_try) 2>&5
25045  ac_status=$?
25046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25047  test $ac_status = 0; }; }
25048    then
25049	gcc_cv_as_ix86_diff_sect_delta=yes
25050    else
25051      echo "configure: failed program was" >&5
25052      cat conftest.s >&5
25053    fi
25054    rm -f conftest.o conftest.s
25055  fi
25056fi
25057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25058$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25059if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25060
25061$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25062
25063fi
25064
25065    # These two are used unconditionally by i386.[ch]; it is to be defined
25066    # to 1 if the feature is present, 0 otherwise.
25067    as_ix86_gotoff_in_data_opt=
25068    if test x$gas = xyes; then
25069      as_ix86_gotoff_in_data_opt="--32"
25070    fi
25071    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25072$as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25073if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25074  $as_echo_n "(cached) " >&6
25075else
25076  gcc_cv_as_ix86_gotoff_in_data=no
25077    if test $in_tree_gas = yes; then
25078    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25079  then gcc_cv_as_ix86_gotoff_in_data=yes
25080fi
25081  elif test x$gcc_cv_as != x; then
25082    $as_echo '	.text
25083.L0:
25084	nop
25085	.data
25086	.long .L0@GOTOFF' > conftest.s
25087    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25088  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25089  (eval $ac_try) 2>&5
25090  ac_status=$?
25091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25092  test $ac_status = 0; }; }
25093    then
25094	gcc_cv_as_ix86_gotoff_in_data=yes
25095    else
25096      echo "configure: failed program was" >&5
25097      cat conftest.s >&5
25098    fi
25099    rm -f conftest.o conftest.s
25100  fi
25101fi
25102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25103$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25104
25105
25106cat >>confdefs.h <<_ACEOF
25107#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25108_ACEOF
25109
25110
25111    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25112$as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25113if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25114  $as_echo_n "(cached) " >&6
25115else
25116  gcc_cv_as_ix86_rep_lock_prefix=no
25117  if test x$gcc_cv_as != x; then
25118    $as_echo 'rep movsl
25119	 rep ret
25120	 rep nop
25121	 rep bsf %ecx, %eax
25122	 rep bsr %ecx, %eax
25123	 lock addl %edi, (%eax,%esi)
25124	 lock orl $0, (%esp)' > conftest.s
25125    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25126  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25127  (eval $ac_try) 2>&5
25128  ac_status=$?
25129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25130  test $ac_status = 0; }; }
25131    then
25132	gcc_cv_as_ix86_rep_lock_prefix=yes
25133    else
25134      echo "configure: failed program was" >&5
25135      cat conftest.s >&5
25136    fi
25137    rm -f conftest.o conftest.s
25138  fi
25139fi
25140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25141$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25142if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25143
25144$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25145
25146fi
25147
25148    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25149$as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25150if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25151  $as_echo_n "(cached) " >&6
25152else
25153  gcc_cv_as_ix86_ud2=no
25154  if test x$gcc_cv_as != x; then
25155    $as_echo 'ud2' > conftest.s
25156    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25157  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25158  (eval $ac_try) 2>&5
25159  ac_status=$?
25160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25161  test $ac_status = 0; }; }
25162    then
25163	gcc_cv_as_ix86_ud2=yes
25164    else
25165      echo "configure: failed program was" >&5
25166      cat conftest.s >&5
25167    fi
25168    rm -f conftest.o conftest.s
25169  fi
25170fi
25171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25172$as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25173if test $gcc_cv_as_ix86_ud2 = yes; then
25174
25175$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25176
25177fi
25178
25179    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25180$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25181if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25182  $as_echo_n "(cached) " >&6
25183else
25184  gcc_cv_as_ix86_tlsgdplt=no
25185  if test x$gcc_cv_as != x; then
25186    $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
25187    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25188  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25189  (eval $ac_try) 2>&5
25190  ac_status=$?
25191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25192  test $ac_status = 0; }; }
25193    then
25194	if test x$gcc_cv_ld != x \
25195	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25196	   gcc_cv_as_ix86_tlsgdplt=yes
25197	 fi
25198	 rm -f conftest
25199    else
25200      echo "configure: failed program was" >&5
25201      cat conftest.s >&5
25202    fi
25203    rm -f conftest.o conftest.s
25204  fi
25205fi
25206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25207$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25208if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25209
25210$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25211
25212fi
25213
25214    conftest_s='
25215	.section .tdata,"aw'$tls_section_flag'",@progbits
25216tls_ld:
25217	.section .text,"ax",@progbits
25218	 call    tls_ld@tlsldmplt'
25219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25220$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25221if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25222  $as_echo_n "(cached) " >&6
25223else
25224  gcc_cv_as_ix86_tlsldmplt=no
25225  if test x$gcc_cv_as != x; then
25226    $as_echo "$conftest_s" > conftest.s
25227    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25228  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25229  (eval $ac_try) 2>&5
25230  ac_status=$?
25231  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25232  test $ac_status = 0; }; }
25233    then
25234	if test x$gcc_cv_ld != x \
25235	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25236	   gcc_cv_as_ix86_tlsldmplt=yes
25237	 fi
25238	 rm -f conftest
25239    else
25240      echo "configure: failed program was" >&5
25241      cat conftest.s >&5
25242    fi
25243    rm -f conftest.o conftest.s
25244  fi
25245fi
25246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25247$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25248
25249
25250cat >>confdefs.h <<_ACEOF
25251#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25252_ACEOF
25253
25254
25255    # Enforce 32-bit output with gas and gld.
25256    if test x$gas = xyes; then
25257      as_ix86_tls_ldm_opt="--32"
25258    fi
25259    if echo "$ld_ver" | grep GNU > /dev/null; then
25260      if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25261        ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25262      else
25263        ld_ix86_tls_ldm_opt="-melf_i386"
25264      fi
25265    fi
25266    conftest_s='
25267	.section .text,"ax",@progbits
25268        .globl  _start
25269        .type   _start, @function
25270_start:
25271	leal	value@tlsldm(%ebx), %eax
25272	call	___tls_get_addr@plt
25273
25274        .section .tdata,"aw'$tls_section_flag'",@progbits
25275        .type	value, @object
25276value:'
25277    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25278$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25279if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25280  $as_echo_n "(cached) " >&6
25281else
25282  gcc_cv_as_ix86_tlsldm=no
25283  if test x$gcc_cv_as != x; then
25284    $as_echo "$conftest_s" > conftest.s
25285    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25286  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25287  (eval $ac_try) 2>&5
25288  ac_status=$?
25289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25290  test $ac_status = 0; }; }
25291    then
25292	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25293	    && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25294	   if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25295	      || dis conftest 2>/dev/null | grep nop > /dev/null; then
25296	     gcc_cv_as_ix86_tlsldm=yes
25297	   fi
25298	 fi
25299	 rm -f conftest
25300    else
25301      echo "configure: failed program was" >&5
25302      cat conftest.s >&5
25303    fi
25304    rm -f conftest.o conftest.s
25305  fi
25306fi
25307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25308$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25309
25310
25311cat >>confdefs.h <<_ACEOF
25312#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25313_ACEOF
25314
25315
25316    ;;
25317
25318  ia64*-*-*)
25319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25320$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25321if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25322  $as_echo_n "(cached) " >&6
25323else
25324  gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25325    if test $in_tree_gas = yes; then
25326    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25327  then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25328fi
25329  elif test x$gcc_cv_as != x; then
25330    $as_echo '	.text
25331	addl r15 = @ltoffx(x#), gp
25332	;;
25333	ld8.mov r16 = [r15], x#' > conftest.s
25334    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25335  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25336  (eval $ac_try) 2>&5
25337  ac_status=$?
25338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25339  test $ac_status = 0; }; }
25340    then
25341	gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25342    else
25343      echo "configure: failed program was" >&5
25344      cat conftest.s >&5
25345    fi
25346    rm -f conftest.o conftest.s
25347  fi
25348fi
25349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25350$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25351if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25352
25353$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25354
25355fi
25356
25357    ;;
25358
25359  powerpc*-*-*)
25360    case $target in
25361      *-*-aix*) conftest_s='	.machine "pwr5"
25362	.csect .text[PR]
25363	mfcr 3,128';;
25364      *-*-darwin*)
25365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25366$as_echo_n "checking assembler for .machine directive support... " >&6; }
25367if test "${gcc_cv_as_machine_directive+set}" = set; then :
25368  $as_echo_n "(cached) " >&6
25369else
25370  gcc_cv_as_machine_directive=no
25371  if test x$gcc_cv_as != x; then
25372    $as_echo '	.machine ppc7400' > conftest.s
25373    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25374  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25375  (eval $ac_try) 2>&5
25376  ac_status=$?
25377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25378  test $ac_status = 0; }; }
25379    then
25380	gcc_cv_as_machine_directive=yes
25381    else
25382      echo "configure: failed program was" >&5
25383      cat conftest.s >&5
25384    fi
25385    rm -f conftest.o conftest.s
25386  fi
25387fi
25388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25389$as_echo "$gcc_cv_as_machine_directive" >&6; }
25390
25391	if test x$gcc_cv_as_machine_directive != xyes; then
25392	  echo "*** This target requires an assembler supporting \".machine\"" >&2
25393	  echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25394	  test x$build = x$target && exit 1
25395	fi
25396	conftest_s='	.text
25397	mfcr r3,128';;
25398      *) conftest_s='	.machine power4
25399	.text
25400	mfcr 3,128';;
25401    esac
25402
25403    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25404$as_echo_n "checking assembler for mfcr field support... " >&6; }
25405if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25406  $as_echo_n "(cached) " >&6
25407else
25408  gcc_cv_as_powerpc_mfcrf=no
25409    if test $in_tree_gas = yes; then
25410    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25411  then gcc_cv_as_powerpc_mfcrf=yes
25412fi
25413  elif test x$gcc_cv_as != x; then
25414    $as_echo "$conftest_s" > conftest.s
25415    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25416  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25417  (eval $ac_try) 2>&5
25418  ac_status=$?
25419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25420  test $ac_status = 0; }; }
25421    then
25422	gcc_cv_as_powerpc_mfcrf=yes
25423    else
25424      echo "configure: failed program was" >&5
25425      cat conftest.s >&5
25426    fi
25427    rm -f conftest.o conftest.s
25428  fi
25429fi
25430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25431$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25432if test $gcc_cv_as_powerpc_mfcrf = yes; then
25433
25434$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25435
25436fi
25437
25438    case $target in
25439      *-*-aix*) conftest_s='	.machine "pwr5"
25440	.csect .text[PR]
25441	popcntb 3,3';;
25442      *) conftest_s='	.machine power5
25443	.text
25444	popcntb 3,3';;
25445    esac
25446
25447    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25448$as_echo_n "checking assembler for popcntb support... " >&6; }
25449if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25450  $as_echo_n "(cached) " >&6
25451else
25452  gcc_cv_as_powerpc_popcntb=no
25453    if test $in_tree_gas = yes; then
25454    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25455  then gcc_cv_as_powerpc_popcntb=yes
25456fi
25457  elif test x$gcc_cv_as != x; then
25458    $as_echo "$conftest_s" > conftest.s
25459    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25460  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25461  (eval $ac_try) 2>&5
25462  ac_status=$?
25463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25464  test $ac_status = 0; }; }
25465    then
25466	gcc_cv_as_powerpc_popcntb=yes
25467    else
25468      echo "configure: failed program was" >&5
25469      cat conftest.s >&5
25470    fi
25471    rm -f conftest.o conftest.s
25472  fi
25473fi
25474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25475$as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25476if test $gcc_cv_as_powerpc_popcntb = yes; then
25477
25478$as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25479
25480fi
25481
25482    case $target in
25483      *-*-aix*) conftest_s='	.machine "pwr5x"
25484	.csect .text[PR]
25485	frin 1,1';;
25486      *) conftest_s='	.machine power5
25487	.text
25488	frin 1,1';;
25489    esac
25490
25491    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25492$as_echo_n "checking assembler for fp round support... " >&6; }
25493if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25494  $as_echo_n "(cached) " >&6
25495else
25496  gcc_cv_as_powerpc_fprnd=no
25497    if test $in_tree_gas = yes; then
25498    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25499  then gcc_cv_as_powerpc_fprnd=yes
25500fi
25501  elif test x$gcc_cv_as != x; then
25502    $as_echo "$conftest_s" > conftest.s
25503    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25504  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25505  (eval $ac_try) 2>&5
25506  ac_status=$?
25507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25508  test $ac_status = 0; }; }
25509    then
25510	gcc_cv_as_powerpc_fprnd=yes
25511    else
25512      echo "configure: failed program was" >&5
25513      cat conftest.s >&5
25514    fi
25515    rm -f conftest.o conftest.s
25516  fi
25517fi
25518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25519$as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25520if test $gcc_cv_as_powerpc_fprnd = yes; then
25521
25522$as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25523
25524fi
25525
25526    case $target in
25527      *-*-aix*) conftest_s='	.machine "pwr6"
25528	.csect .text[PR]
25529	mffgpr 1,3';;
25530      *) conftest_s='	.machine power6
25531	.text
25532	mffgpr 1,3';;
25533    esac
25534
25535    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25536$as_echo_n "checking assembler for move fp gpr support... " >&6; }
25537if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25538  $as_echo_n "(cached) " >&6
25539else
25540  gcc_cv_as_powerpc_mfpgpr=no
25541    if test $in_tree_gas = yes; then
25542    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25543  then gcc_cv_as_powerpc_mfpgpr=yes
25544fi
25545  elif test x$gcc_cv_as != x; then
25546    $as_echo "$conftest_s" > conftest.s
25547    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25548  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25549  (eval $ac_try) 2>&5
25550  ac_status=$?
25551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25552  test $ac_status = 0; }; }
25553    then
25554	gcc_cv_as_powerpc_mfpgpr=yes
25555    else
25556      echo "configure: failed program was" >&5
25557      cat conftest.s >&5
25558    fi
25559    rm -f conftest.o conftest.s
25560  fi
25561fi
25562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25563$as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25564if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25565
25566$as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25567
25568fi
25569
25570    case $target in
25571      *-*-aix*) conftest_s='	.csect .text[PR]
25572LCF..0:
25573	addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25574      *-*-darwin*)
25575	conftest_s='	.text
25576LCF0:
25577	addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25578      *) conftest_s='	.text
25579.LCF0:
25580	addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25581    esac
25582
25583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25584$as_echo_n "checking assembler for rel16 relocs... " >&6; }
25585if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25586  $as_echo_n "(cached) " >&6
25587else
25588  gcc_cv_as_powerpc_rel16=no
25589    if test $in_tree_gas = yes; then
25590    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25591  then gcc_cv_as_powerpc_rel16=yes
25592fi
25593  elif test x$gcc_cv_as != x; then
25594    $as_echo "$conftest_s" > conftest.s
25595    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25596  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25597  (eval $ac_try) 2>&5
25598  ac_status=$?
25599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25600  test $ac_status = 0; }; }
25601    then
25602	gcc_cv_as_powerpc_rel16=yes
25603    else
25604      echo "configure: failed program was" >&5
25605      cat conftest.s >&5
25606    fi
25607    rm -f conftest.o conftest.s
25608  fi
25609fi
25610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25611$as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25612if test $gcc_cv_as_powerpc_rel16 = yes; then
25613
25614$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25615
25616fi
25617
25618    case $target in
25619      *-*-aix*) conftest_s='	.machine "pwr6"
25620	.csect .text[PR]
25621	cmpb 3,4,5';;
25622      *) conftest_s='	.machine power6
25623	.text
25624	cmpb 3,4,5';;
25625    esac
25626
25627    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25628$as_echo_n "checking assembler for compare bytes support... " >&6; }
25629if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25630  $as_echo_n "(cached) " >&6
25631else
25632  gcc_cv_as_powerpc_cmpb=no
25633    if test $in_tree_gas = yes; then
25634    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25635  then gcc_cv_as_powerpc_cmpb=yes
25636fi
25637  elif test x$gcc_cv_as != x; then
25638    $as_echo "$conftest_s" > conftest.s
25639    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25640  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25641  (eval $ac_try) 2>&5
25642  ac_status=$?
25643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25644  test $ac_status = 0; }; }
25645    then
25646	gcc_cv_as_powerpc_cmpb=yes
25647    else
25648      echo "configure: failed program was" >&5
25649      cat conftest.s >&5
25650    fi
25651    rm -f conftest.o conftest.s
25652  fi
25653fi
25654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25655$as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25656if test $gcc_cv_as_powerpc_cmpb = yes; then
25657
25658$as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25659
25660fi
25661
25662    case $target in
25663      *-*-aix*) conftest_s='	.machine "pwr6"
25664	.csect .text[PR]
25665	dadd 1,2,3';;
25666      *) conftest_s='	.machine power6
25667	.text
25668	dadd 1,2,3';;
25669    esac
25670
25671    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25672$as_echo_n "checking assembler for decimal float support... " >&6; }
25673if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25674  $as_echo_n "(cached) " >&6
25675else
25676  gcc_cv_as_powerpc_dfp=no
25677    if test $in_tree_gas = yes; then
25678    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25679  then gcc_cv_as_powerpc_dfp=yes
25680fi
25681  elif test x$gcc_cv_as != x; then
25682    $as_echo "$conftest_s" > conftest.s
25683    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25684  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25685  (eval $ac_try) 2>&5
25686  ac_status=$?
25687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25688  test $ac_status = 0; }; }
25689    then
25690	gcc_cv_as_powerpc_dfp=yes
25691    else
25692      echo "configure: failed program was" >&5
25693      cat conftest.s >&5
25694    fi
25695    rm -f conftest.o conftest.s
25696  fi
25697fi
25698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25699$as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25700if test $gcc_cv_as_powerpc_dfp = yes; then
25701
25702$as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25703
25704fi
25705
25706    case $target in
25707      *-*-aix*) conftest_s='	.machine "pwr7"
25708	.csect .text[PR]
25709	lxvd2x 1,2,3';;
25710      *) conftest_s='	.machine power7
25711	.text
25712	lxvd2x 1,2,3';;
25713    esac
25714
25715    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25716$as_echo_n "checking assembler for vector-scalar support... " >&6; }
25717if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25718  $as_echo_n "(cached) " >&6
25719else
25720  gcc_cv_as_powerpc_vsx=no
25721    if test $in_tree_gas = yes; then
25722    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25723  then gcc_cv_as_powerpc_vsx=yes
25724fi
25725  elif test x$gcc_cv_as != x; then
25726    $as_echo "$conftest_s" > conftest.s
25727    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25728  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25729  (eval $ac_try) 2>&5
25730  ac_status=$?
25731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25732  test $ac_status = 0; }; }
25733    then
25734	gcc_cv_as_powerpc_vsx=yes
25735    else
25736      echo "configure: failed program was" >&5
25737      cat conftest.s >&5
25738    fi
25739    rm -f conftest.o conftest.s
25740  fi
25741fi
25742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25743$as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25744if test $gcc_cv_as_powerpc_vsx = yes; then
25745
25746$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25747
25748fi
25749
25750    case $target in
25751      *-*-aix*) conftest_s='	.machine "pwr7"
25752	.csect .text[PR]
25753	popcntd 3,3';;
25754      *) conftest_s='	.machine power7
25755	.text
25756	popcntd 3,3';;
25757    esac
25758
25759    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25760$as_echo_n "checking assembler for popcntd support... " >&6; }
25761if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25762  $as_echo_n "(cached) " >&6
25763else
25764  gcc_cv_as_powerpc_popcntd=no
25765    if test $in_tree_gas = yes; then
25766    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25767  then gcc_cv_as_powerpc_popcntd=yes
25768fi
25769  elif test x$gcc_cv_as != x; then
25770    $as_echo "$conftest_s" > conftest.s
25771    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25772  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25773  (eval $ac_try) 2>&5
25774  ac_status=$?
25775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25776  test $ac_status = 0; }; }
25777    then
25778	gcc_cv_as_powerpc_popcntd=yes
25779    else
25780      echo "configure: failed program was" >&5
25781      cat conftest.s >&5
25782    fi
25783    rm -f conftest.o conftest.s
25784  fi
25785fi
25786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25787$as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25788if test $gcc_cv_as_powerpc_popcntd = yes; then
25789
25790$as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25791
25792fi
25793
25794    case $target in
25795      *-*-aix*) conftest_s='	.machine "pwr8"
25796	.csect .text[PR]';;
25797      *) conftest_s='	.machine power8
25798	.text';;
25799    esac
25800
25801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25802$as_echo_n "checking assembler for power8 support... " >&6; }
25803if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25804  $as_echo_n "(cached) " >&6
25805else
25806  gcc_cv_as_powerpc_power8=no
25807    if test $in_tree_gas = yes; then
25808    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25809  then gcc_cv_as_powerpc_power8=yes
25810fi
25811  elif test x$gcc_cv_as != x; then
25812    $as_echo "$conftest_s" > conftest.s
25813    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25814  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25815  (eval $ac_try) 2>&5
25816  ac_status=$?
25817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25818  test $ac_status = 0; }; }
25819    then
25820	gcc_cv_as_powerpc_power8=yes
25821    else
25822      echo "configure: failed program was" >&5
25823      cat conftest.s >&5
25824    fi
25825    rm -f conftest.o conftest.s
25826  fi
25827fi
25828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25829$as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25830if test $gcc_cv_as_powerpc_power8 = yes; then
25831
25832$as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25833
25834fi
25835
25836    case $target in
25837      *-*-aix*) conftest_s='	.csect .text[PR]
25838	lwsync';;
25839      *) conftest_s='	.text
25840	lwsync';;
25841    esac
25842
25843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25844$as_echo_n "checking assembler for lwsync support... " >&6; }
25845if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25846  $as_echo_n "(cached) " >&6
25847else
25848  gcc_cv_as_powerpc_lwsync=no
25849    if test $in_tree_gas = yes; then
25850    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25851  then gcc_cv_as_powerpc_lwsync=yes
25852fi
25853  elif test x$gcc_cv_as != x; then
25854    $as_echo "$conftest_s" > conftest.s
25855    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25856  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25857  (eval $ac_try) 2>&5
25858  ac_status=$?
25859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25860  test $ac_status = 0; }; }
25861    then
25862	gcc_cv_as_powerpc_lwsync=yes
25863    else
25864      echo "configure: failed program was" >&5
25865      cat conftest.s >&5
25866    fi
25867    rm -f conftest.o conftest.s
25868  fi
25869fi
25870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25871$as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25872if test $gcc_cv_as_powerpc_lwsync = yes; then
25873
25874$as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25875
25876fi
25877
25878    case $target in
25879      *-*-aix*) conftest_s='	.machine "476"
25880	.csect .text[PR]
25881	dci 0';;
25882      *) conftest_s='	.machine "476"
25883	.text
25884	dci 0';;
25885    esac
25886
25887    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25888$as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25889if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25890  $as_echo_n "(cached) " >&6
25891else
25892  gcc_cv_as_powerpc_dci=no
25893    if test $in_tree_gas = yes; then
25894    if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25895  then gcc_cv_as_powerpc_dci=yes
25896fi
25897  elif test x$gcc_cv_as != x; then
25898    $as_echo "$conftest_s" > conftest.s
25899    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25900  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25901  (eval $ac_try) 2>&5
25902  ac_status=$?
25903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25904  test $ac_status = 0; }; }
25905    then
25906	gcc_cv_as_powerpc_dci=yes
25907    else
25908      echo "configure: failed program was" >&5
25909      cat conftest.s >&5
25910    fi
25911    rm -f conftest.o conftest.s
25912  fi
25913fi
25914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25915$as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25916if test $gcc_cv_as_powerpc_dci = yes; then
25917
25918$as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25919
25920fi
25921
25922    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25923$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25924if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25925  $as_echo_n "(cached) " >&6
25926else
25927  gcc_cv_as_powerpc_gnu_attribute=no
25928    if test $in_tree_gas = yes; then
25929    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25930  then gcc_cv_as_powerpc_gnu_attribute=yes
25931fi
25932  elif test x$gcc_cv_as != x; then
25933    $as_echo '.gnu_attribute 4,1' > conftest.s
25934    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25935  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25936  (eval $ac_try) 2>&5
25937  ac_status=$?
25938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25939  test $ac_status = 0; }; }
25940    then
25941	gcc_cv_as_powerpc_gnu_attribute=yes
25942    else
25943      echo "configure: failed program was" >&5
25944      cat conftest.s >&5
25945    fi
25946    rm -f conftest.o conftest.s
25947  fi
25948fi
25949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25950$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25951if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25952
25953$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25954
25955fi
25956
25957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25958$as_echo_n "checking assembler for tls marker support... " >&6; }
25959if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25960  $as_echo_n "(cached) " >&6
25961else
25962  gcc_cv_as_powerpc_tls_markers=no
25963    if test $in_tree_gas = yes; then
25964    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25965  then gcc_cv_as_powerpc_tls_markers=yes
25966fi
25967  elif test x$gcc_cv_as != x; then
25968    $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25969    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25970  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25971  (eval $ac_try) 2>&5
25972  ac_status=$?
25973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25974  test $ac_status = 0; }; }
25975    then
25976	gcc_cv_as_powerpc_tls_markers=yes
25977    else
25978      echo "configure: failed program was" >&5
25979      cat conftest.s >&5
25980    fi
25981    rm -f conftest.o conftest.s
25982  fi
25983fi
25984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25985$as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25986if test $gcc_cv_as_powerpc_tls_markers = yes; then
25987
25988$as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25989
25990fi
25991
25992    case $target in
25993      *-*-aix*)
25994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25995$as_echo_n "checking assembler for .ref support... " >&6; }
25996if test "${gcc_cv_as_aix_ref+set}" = set; then :
25997  $as_echo_n "(cached) " >&6
25998else
25999  gcc_cv_as_aix_ref=no
26000    if test $in_tree_gas = yes; then
26001    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26002  then gcc_cv_as_aix_ref=yes
26003fi
26004  elif test x$gcc_cv_as != x; then
26005    $as_echo '	.csect stuff[rw]
26006	     stuff:
26007		.long 1
26008		.extern sym
26009		.ref sym
26010	  ' > conftest.s
26011    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26012  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26013  (eval $ac_try) 2>&5
26014  ac_status=$?
26015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26016  test $ac_status = 0; }; }
26017    then
26018	gcc_cv_as_aix_ref=yes
26019    else
26020      echo "configure: failed program was" >&5
26021      cat conftest.s >&5
26022    fi
26023    rm -f conftest.o conftest.s
26024  fi
26025fi
26026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26027$as_echo "$gcc_cv_as_aix_ref" >&6; }
26028if test $gcc_cv_as_aix_ref = yes; then
26029
26030$as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26031
26032fi
26033	;;
26034    esac
26035    ;;
26036
26037  mips*-*-*)
26038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26039$as_echo_n "checking assembler for explicit relocation support... " >&6; }
26040if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26041  $as_echo_n "(cached) " >&6
26042else
26043  gcc_cv_as_mips_explicit_relocs=no
26044    if test $in_tree_gas = yes; then
26045    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26046  then gcc_cv_as_mips_explicit_relocs=yes
26047fi
26048  elif test x$gcc_cv_as != x; then
26049    $as_echo '	lw $4,%gp_rel(foo)($4)' > conftest.s
26050    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26051  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26052  (eval $ac_try) 2>&5
26053  ac_status=$?
26054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26055  test $ac_status = 0; }; }
26056    then
26057	gcc_cv_as_mips_explicit_relocs=yes
26058    else
26059      echo "configure: failed program was" >&5
26060      cat conftest.s >&5
26061    fi
26062    rm -f conftest.o conftest.s
26063  fi
26064fi
26065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26066$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26067if test $gcc_cv_as_mips_explicit_relocs = yes; then
26068  if test x$target_cpu_default = x
26069       then target_cpu_default=MASK_EXPLICIT_RELOCS
26070       else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26071       fi
26072fi
26073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26074$as_echo_n "checking assembler for -mno-shared support... " >&6; }
26075if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26076  $as_echo_n "(cached) " >&6
26077else
26078  gcc_cv_as_mips_no_shared=no
26079    if test $in_tree_gas = yes; then
26080    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26081  then gcc_cv_as_mips_no_shared=yes
26082fi
26083  elif test x$gcc_cv_as != x; then
26084    $as_echo 'nop' > conftest.s
26085    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26086  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26087  (eval $ac_try) 2>&5
26088  ac_status=$?
26089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26090  test $ac_status = 0; }; }
26091    then
26092	gcc_cv_as_mips_no_shared=yes
26093    else
26094      echo "configure: failed program was" >&5
26095      cat conftest.s >&5
26096    fi
26097    rm -f conftest.o conftest.s
26098  fi
26099fi
26100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26101$as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26102if test $gcc_cv_as_mips_no_shared = yes; then
26103
26104$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26105
26106fi
26107
26108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26109$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26110if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26111  $as_echo_n "(cached) " >&6
26112else
26113  gcc_cv_as_mips_gnu_attribute=no
26114    if test $in_tree_gas = yes; then
26115    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26116  then gcc_cv_as_mips_gnu_attribute=yes
26117fi
26118  elif test x$gcc_cv_as != x; then
26119    $as_echo '.gnu_attribute 4,1' > conftest.s
26120    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26121  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26122  (eval $ac_try) 2>&5
26123  ac_status=$?
26124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26125  test $ac_status = 0; }; }
26126    then
26127	gcc_cv_as_mips_gnu_attribute=yes
26128    else
26129      echo "configure: failed program was" >&5
26130      cat conftest.s >&5
26131    fi
26132    rm -f conftest.o conftest.s
26133  fi
26134fi
26135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26136$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26137if test $gcc_cv_as_mips_gnu_attribute = yes; then
26138
26139$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26140
26141fi
26142
26143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26144$as_echo_n "checking assembler for .micromips support... " >&6; }
26145if test "${gcc_cv_as_micromips_support+set}" = set; then :
26146  $as_echo_n "(cached) " >&6
26147else
26148  gcc_cv_as_micromips_support=no
26149  if test x$gcc_cv_as != x; then
26150    $as_echo '.set micromips' > conftest.s
26151    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26152  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26153  (eval $ac_try) 2>&5
26154  ac_status=$?
26155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26156  test $ac_status = 0; }; }
26157    then
26158	gcc_cv_as_micromips_support=yes
26159    else
26160      echo "configure: failed program was" >&5
26161      cat conftest.s >&5
26162    fi
26163    rm -f conftest.o conftest.s
26164  fi
26165fi
26166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26167$as_echo "$gcc_cv_as_micromips_support" >&6; }
26168if test $gcc_cv_as_micromips_support = yes; then
26169
26170$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26171
26172fi
26173
26174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26175$as_echo_n "checking assembler for .dtprelword support... " >&6; }
26176if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26177  $as_echo_n "(cached) " >&6
26178else
26179  gcc_cv_as_mips_dtprelword=no
26180    if test $in_tree_gas = yes; then
26181    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26182  then gcc_cv_as_mips_dtprelword=yes
26183fi
26184  elif test x$gcc_cv_as != x; then
26185    $as_echo '.section .tdata,"awT",@progbits
26186x:
26187	.word 2
26188	.text
26189	.dtprelword x+0x8000' > conftest.s
26190    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26191  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26192  (eval $ac_try) 2>&5
26193  ac_status=$?
26194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26195  test $ac_status = 0; }; }
26196    then
26197	gcc_cv_as_mips_dtprelword=yes
26198    else
26199      echo "configure: failed program was" >&5
26200      cat conftest.s >&5
26201    fi
26202    rm -f conftest.o conftest.s
26203  fi
26204fi
26205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26206$as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26207if test $gcc_cv_as_mips_dtprelword = yes; then
26208
26209$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26210
26211fi
26212
26213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26214$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26215if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26216  $as_echo_n "(cached) " >&6
26217else
26218  gcc_cv_as_mips_dspr1_mult=no
26219  if test x$gcc_cv_as != x; then
26220    $as_echo '	.set	mips32r2
26221	.set	nodspr2
26222	.set	dsp
26223	madd	$ac3,$4,$5
26224	maddu	$ac3,$4,$5
26225	msub	$ac3,$4,$5
26226	msubu	$ac3,$4,$5
26227	mult	$ac3,$4,$5
26228	multu	$ac3,$4,$5' > conftest.s
26229    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26230  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26231  (eval $ac_try) 2>&5
26232  ac_status=$?
26233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26234  test $ac_status = 0; }; }
26235    then
26236	gcc_cv_as_mips_dspr1_mult=yes
26237    else
26238      echo "configure: failed program was" >&5
26239      cat conftest.s >&5
26240    fi
26241    rm -f conftest.o conftest.s
26242  fi
26243fi
26244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26245$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26246if test $gcc_cv_as_mips_dspr1_mult = yes; then
26247
26248$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26249
26250fi
26251
26252    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26253$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26254    gcc_cv_as_ld_jalr_reloc=no
26255    if test $gcc_cv_as_mips_explicit_relocs = yes; then
26256      if test $in_tree_ld = yes ; then
26257        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 \
26258           && test $in_tree_ld_is_elf = yes; then
26259          gcc_cv_as_ld_jalr_reloc=yes
26260        fi
26261      elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26262        echo '	.ent x' > conftest.s
26263        echo 'x:	ld $2,%got_disp(y)($3)' >> conftest.s
26264        echo '	ld $25,%call16(y)($28)' >> conftest.s
26265        echo '	.reloc	1f,R_MIPS_JALR,y' >> conftest.s
26266        echo '1:	jalr $25' >> conftest.s
26267        echo '	.reloc	1f,R_MIPS_JALR,x' >> conftest.s
26268        echo '1:	jalr $25' >> conftest.s
26269        echo '	.end x' >> conftest.s
26270        if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26271           && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26272	  if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26273	     && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26274            gcc_cv_as_ld_jalr_reloc=yes
26275	  fi
26276        fi
26277        rm -f conftest.*
26278      fi
26279    fi
26280    if test $gcc_cv_as_ld_jalr_reloc = yes; then
26281      if test x$target_cpu_default = x; then
26282        target_cpu_default=MASK_RELAX_PIC_CALLS
26283      else
26284        target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26285      fi
26286    fi
26287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26288$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26289
26290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26291$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26292if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26293  $as_echo_n "(cached) " >&6
26294else
26295  gcc_cv_ld_mips_personality_relaxation=no
26296       if test $in_tree_ld = yes ; then
26297	 if test "$gcc_cv_gld_major_version" -eq 2 \
26298		 -a "$gcc_cv_gld_minor_version" -ge 21 \
26299		 -o "$gcc_cv_gld_major_version" -gt 2; then
26300	   gcc_cv_ld_mips_personality_relaxation=yes
26301	 fi
26302       elif test x$gcc_cv_as != x \
26303       	    	 -a x$gcc_cv_ld != x \
26304		 -a x$gcc_cv_readelf != x ; then
26305	 cat > conftest.s <<EOF
26306	.cfi_startproc
26307	.cfi_personality 0x80,indirect_ptr
26308	.ent test
26309test:
26310	nop
26311	.end test
26312	.cfi_endproc
26313
26314	.section .data,"aw",@progbits
26315indirect_ptr:
26316	.dc.a personality
26317EOF
26318	 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26319	    && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26320	   if $gcc_cv_readelf -d conftest 2>&1 \
26321	      | grep TEXTREL > /dev/null 2>&1; then
26322	     :
26323	   elif $gcc_cv_readelf --relocs conftest 2>&1 \
26324	        | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26325	     :
26326	   else
26327	     gcc_cv_ld_mips_personality_relaxation=yes
26328	   fi
26329	 fi
26330       fi
26331       rm -f conftest.s conftest.o conftest
26332fi
26333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26334$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26335    if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26336
26337$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26338
26339    fi
26340
26341    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26342$as_echo_n "checking assembler for -mnan= support... " >&6; }
26343if test "${gcc_cv_as_mips_nan+set}" = set; then :
26344  $as_echo_n "(cached) " >&6
26345else
26346  gcc_cv_as_mips_nan=no
26347  if test x$gcc_cv_as != x; then
26348    $as_echo '' > conftest.s
26349    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26350  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26351  (eval $ac_try) 2>&5
26352  ac_status=$?
26353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26354  test $ac_status = 0; }; }
26355    then
26356	gcc_cv_as_mips_nan=yes
26357    else
26358      echo "configure: failed program was" >&5
26359      cat conftest.s >&5
26360    fi
26361    rm -f conftest.o conftest.s
26362  fi
26363fi
26364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26365$as_echo "$gcc_cv_as_mips_nan" >&6; }
26366if test $gcc_cv_as_mips_nan = yes; then
26367
26368$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26369
26370fi
26371    if test x$gcc_cv_as_mips_nan = xno \
26372       && test x$with_nan != x; then
26373      as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26374    fi
26375    ;;
26376esac
26377
26378# Mips and HP-UX need the GNU assembler.
26379# Linux on IA64 might be able to use the Intel assembler.
26380
26381case "$target" in
26382  mips*-*-* | *-*-hpux* )
26383    if test x$gas_flag = xyes \
26384       || test x"$host" != x"$build" \
26385       || test ! -x "$gcc_cv_as" \
26386       || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26387      :
26388    else
26389      echo "*** This configuration requires the GNU assembler" >&2
26390      exit 1
26391    fi
26392    ;;
26393esac
26394
26395# ??? Not all targets support dwarf2 debug_line, even within a version
26396# of gas.  Moreover, we need to emit a valid instruction to trigger any
26397# info to the output file.  So, as supported targets are added to gas 2.11,
26398# add some instruction here to (also) show we expect this might work.
26399# ??? Once 2.11 is released, probably need to add first known working
26400# version to the per-target configury.
26401case "$cpu_type" in
26402  aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26403  | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26404  | xstormy16 | xtensa)
26405    insn="nop"
26406    ;;
26407  ia64 | s390)
26408    insn="nop 0"
26409    ;;
26410  mmix)
26411    insn="swym 0"
26412    ;;
26413esac
26414if test x"$insn" != x; then
26415 conftest_s="\
26416	.file 1 \"conftest.s\"
26417	.loc 1 3 0
26418	$insn"
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26420$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26421if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26422  $as_echo_n "(cached) " >&6
26423else
26424  gcc_cv_as_dwarf2_debug_line=no
26425    if test $in_tree_gas = yes; then
26426    if test $in_tree_gas_is_elf = yes \
26427  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26428  then gcc_cv_as_dwarf2_debug_line=yes
26429fi
26430  elif test x$gcc_cv_as != x; then
26431    $as_echo "$conftest_s" > conftest.s
26432    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26433  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26434  (eval $ac_try) 2>&5
26435  ac_status=$?
26436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26437  test $ac_status = 0; }; }
26438    then
26439	if test x$gcc_cv_objdump != x \
26440   && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26441      | grep debug_line > /dev/null 2>&1; then
26442     gcc_cv_as_dwarf2_debug_line=yes
26443   fi
26444    else
26445      echo "configure: failed program was" >&5
26446      cat conftest.s >&5
26447    fi
26448    rm -f conftest.o conftest.s
26449  fi
26450fi
26451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26452$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26453
26454
26455# The .debug_line file table must be in the exact order that
26456# we specified the files, since these indices are also used
26457# by DW_AT_decl_file.  Approximate this test by testing if
26458# the assembler bitches if the same index is assigned twice.
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26460$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26461if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26462  $as_echo_n "(cached) " >&6
26463else
26464  gcc_cv_as_dwarf2_file_buggy=no
26465  if test x$gcc_cv_as != x; then
26466    $as_echo '	.file 1 "foo.s"
26467	.file 1 "bar.s"' > conftest.s
26468    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26469  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26470  (eval $ac_try) 2>&5
26471  ac_status=$?
26472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26473  test $ac_status = 0; }; }
26474    then
26475	gcc_cv_as_dwarf2_file_buggy=yes
26476    else
26477      echo "configure: failed program was" >&5
26478      cat conftest.s >&5
26479    fi
26480    rm -f conftest.o conftest.s
26481  fi
26482fi
26483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26484$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26485
26486
26487 if test $gcc_cv_as_dwarf2_debug_line = yes \
26488 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26489
26490$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26491
26492 fi
26493
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26495$as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26496if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26497  $as_echo_n "(cached) " >&6
26498else
26499  gcc_cv_as_gdwarf2_flag=no
26500    if test $in_tree_gas = yes; then
26501    if test $in_tree_gas_is_elf = yes \
26502  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26503  then gcc_cv_as_gdwarf2_flag=yes
26504fi
26505  elif test x$gcc_cv_as != x; then
26506    $as_echo "$insn" > conftest.s
26507    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26508  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26509  (eval $ac_try) 2>&5
26510  ac_status=$?
26511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26512  test $ac_status = 0; }; }
26513    then
26514	gcc_cv_as_gdwarf2_flag=yes
26515    else
26516      echo "configure: failed program was" >&5
26517      cat conftest.s >&5
26518    fi
26519    rm -f conftest.o conftest.s
26520  fi
26521fi
26522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26523$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26524if test $gcc_cv_as_gdwarf2_flag = yes; then
26525
26526$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26527
26528fi
26529
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26531$as_echo_n "checking assembler for --gstabs option... " >&6; }
26532if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26533  $as_echo_n "(cached) " >&6
26534else
26535  gcc_cv_as_gstabs_flag=no
26536    if test $in_tree_gas = yes; then
26537    if test $in_tree_gas_is_elf = yes \
26538  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26539  then gcc_cv_as_gstabs_flag=yes
26540fi
26541  elif test x$gcc_cv_as != x; then
26542    $as_echo "$insn" > conftest.s
26543    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26544  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26545  (eval $ac_try) 2>&5
26546  ac_status=$?
26547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26548  test $ac_status = 0; }; }
26549    then
26550	# The native Solaris 9/Intel assembler doesn't understand --gstabs
26551   # and warns about it, but still exits successfully.  So check for
26552   # this.
26553   if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
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   else gcc_cv_as_gstabs_flag=yes
26561   fi
26562    else
26563      echo "configure: failed program was" >&5
26564      cat conftest.s >&5
26565    fi
26566    rm -f conftest.o conftest.s
26567  fi
26568fi
26569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26570$as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26571if test $gcc_cv_as_gstabs_flag = yes; then
26572
26573$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26574
26575fi
26576
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26578$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26579if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26580  $as_echo_n "(cached) " >&6
26581else
26582  gcc_cv_as_debug_prefix_map_flag=no
26583    if test $in_tree_gas = yes; then
26584    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26585  then gcc_cv_as_debug_prefix_map_flag=yes
26586fi
26587  elif test x$gcc_cv_as != x; then
26588    $as_echo "$insn" > conftest.s
26589    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26590  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26591  (eval $ac_try) 2>&5
26592  ac_status=$?
26593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26594  test $ac_status = 0; }; }
26595    then
26596	gcc_cv_as_debug_prefix_map_flag=yes
26597    else
26598      echo "configure: failed program was" >&5
26599      cat conftest.s >&5
26600    fi
26601    rm -f conftest.o conftest.s
26602  fi
26603fi
26604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26605$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26606if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26607
26608$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26609
26610fi
26611fi
26612
26613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26614$as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26615if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26616  $as_echo_n "(cached) " >&6
26617else
26618  gcc_cv_as_lcomm_with_alignment=no
26619  if test x$gcc_cv_as != x; then
26620    $as_echo '.lcomm bar,4,16' > conftest.s
26621    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26622  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26623  (eval $ac_try) 2>&5
26624  ac_status=$?
26625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26626  test $ac_status = 0; }; }
26627    then
26628	gcc_cv_as_lcomm_with_alignment=yes
26629    else
26630      echo "configure: failed program was" >&5
26631      cat conftest.s >&5
26632    fi
26633    rm -f conftest.o conftest.s
26634  fi
26635fi
26636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26637$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26638if test $gcc_cv_as_lcomm_with_alignment = yes; then
26639
26640$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26641
26642fi
26643
26644if test x$with_sysroot = x && test x$host = x$target \
26645   && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26646   && test "$prefix" != "NONE"; then
26647
26648cat >>confdefs.h <<_ACEOF
26649#define PREFIX_INCLUDE_DIR "$prefix/include"
26650_ACEOF
26651
26652fi
26653
26654if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26655  if test "x$with_headers" != x; then
26656    target_header_dir=$with_headers
26657  elif test "x$with_sysroot" = x; then
26658    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26659  elif test "x$with_build_sysroot" != "x"; then
26660    target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26661  elif test "x$with_sysroot" = xyes; then
26662    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26663  else
26664    target_header_dir="${with_sysroot}${native_system_header_dir}"
26665  fi
26666else
26667  target_header_dir=${native_system_header_dir}
26668fi
26669
26670# Determine the version of glibc, if any, used on the target.
26671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26672$as_echo_n "checking for target glibc version... " >&6; }
26673
26674# Check whether --with-glibc-version was given.
26675if test "${with_glibc_version+set}" = set; then :
26676  withval=$with_glibc_version;
26677if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26678  glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26679  glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26680else
26681  as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26682fi
26683else
26684
26685glibc_version_major=0
26686glibc_version_minor=0
26687if test -f $target_header_dir/features.h \
26688  && glibc_version_major_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+[0-9]' $target_header_dir/features.h` \
26689  && glibc_version_minor_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC_MINOR__[ 	]+[0-9]' $target_header_dir/features.h`; then
26690  glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ 	]*//'`
26691  glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ 	]*//'`
26692fi
26693fi
26694
26695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26696$as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26697
26698# Check whether --enable-gnu-unique-object was given.
26699if test "${enable_gnu_unique_object+set}" = set; then :
26700  enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26701    yes | no) ;;
26702    *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26703Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26704  esac
26705else
26706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26707$as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26708if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26709  $as_echo_n "(cached) " >&6
26710else
26711  gcc_cv_as_gnu_unique_object=no
26712    if test $in_tree_gas = yes; then
26713    if test $in_tree_gas_is_elf = yes \
26714  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26715  then gcc_cv_as_gnu_unique_object=yes
26716fi
26717  elif test x$gcc_cv_as != x; then
26718    $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26719    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26720  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26721  (eval $ac_try) 2>&5
26722  ac_status=$?
26723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26724  test $ac_status = 0; }; }
26725    then
26726	gcc_cv_as_gnu_unique_object=yes
26727    else
26728      echo "configure: failed program was" >&5
26729      cat conftest.s >&5
26730    fi
26731    rm -f conftest.o conftest.s
26732  fi
26733fi
26734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26735$as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26736if test $gcc_cv_as_gnu_unique_object = yes; then
26737  # We need to unquote above to to use the definition from config.gcc.
26738# Also check for ld.so support, i.e. glibc 2.11 or higher.
26739
26740if test $glibc_version_major -gt 2 \
26741  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26742  enable_gnu_unique_object=yes
26743fi
26744
26745fi
26746fi
26747
26748if test x$enable_gnu_unique_object = xyes; then
26749
26750$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26751
26752fi
26753
26754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26755$as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26756if test "${gcc_cv_as_line_zero+set}" = set; then :
26757  $as_echo_n "(cached) " >&6
26758else
26759  gcc_cv_as_line_zero=no
26760  if test $in_tree_gas = yes; then
26761    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26762  then gcc_cv_as_line_zero=yes
26763fi
26764  elif test "x$gcc_cv_as" != x; then
26765    { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26766    if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26767  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26768  (eval $ac_try) 2>&5
26769  ac_status=$?
26770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26771  test $ac_status = 0; }; } &&
26772       test "x`cat conftest.out`" = x
26773    then
26774      gcc_cv_as_line_zero=yes
26775    else
26776      echo "configure: failed program was" >&5
26777      cat conftest.s >&5
26778      echo "configure: error output was" >&5
26779      cat conftest.out >&5
26780    fi
26781    rm -f conftest.o conftest.s conftest.out
26782  fi
26783fi
26784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26785$as_echo "$gcc_cv_as_line_zero" >&6; }
26786if test "x$gcc_cv_as_line_zero" = xyes; then
26787
26788$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26789
26790fi
26791
26792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26793$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26794gcc_cv_ld_eh_frame_hdr=no
26795if test $in_tree_ld = yes ; then
26796  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 \
26797     && test $in_tree_ld_is_elf = yes; then
26798    gcc_cv_ld_eh_frame_hdr=yes
26799  fi
26800elif test x$gcc_cv_ld != x; then
26801  if echo "$ld_ver" | grep GNU > /dev/null; then
26802    # Check if linker supports --eh-frame-hdr option
26803    if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26804      gcc_cv_ld_eh_frame_hdr=yes
26805    fi
26806  else
26807    case "$target" in
26808      *-*-solaris2*)
26809        # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26810        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26811          gcc_cv_ld_eh_frame_hdr=yes
26812        fi
26813        ;;
26814    esac
26815  fi
26816fi
26817
26818if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26819
26820$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26821
26822fi
26823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26824$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26825
26826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26827$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26828gcc_cv_ld_eh_frame_ciev3=no
26829if test $in_tree_ld = yes ; then
26830  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 \
26831     && test $in_tree_ld_is_elf = yes; then
26832    gcc_cv_ld_eh_frame_ciev3=yes
26833  fi
26834elif test x$gcc_cv_ld != x; then
26835  if echo "$ld_ver" | grep GNU > /dev/null; then
26836    gcc_cv_ld_eh_frame_ciev3=yes
26837    if test 0"$ld_date" -lt 20040513; then
26838      if test -n "$ld_date"; then
26839	# If there was date string, but was earlier than 2004-05-13, fail
26840	gcc_cv_ld_eh_frame_ciev3=no
26841      elif test "$ld_vers_major" -lt 2; then
26842	gcc_cv_ld_eh_frame_ciev3=no
26843      elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26844	gcc_cv_ld_eh_frame_ciev3=no
26845      fi
26846    fi
26847  else
26848    case "$target" in
26849      *-*-solaris2*)
26850        # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26851        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26852          gcc_cv_ld_eh_frame_ciev3=yes
26853        fi
26854        ;;
26855    esac
26856  fi
26857fi
26858
26859cat >>confdefs.h <<_ACEOF
26860#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26861_ACEOF
26862
26863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26864$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26865
26866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26867$as_echo_n "checking linker position independent executable support... " >&6; }
26868gcc_cv_ld_pie=no
26869if test $in_tree_ld = yes ; then
26870  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26871     && test $in_tree_ld_is_elf = yes; then
26872    gcc_cv_ld_pie=yes
26873  fi
26874elif test x$gcc_cv_ld != x; then
26875	# Check if linker supports -pie option
26876	if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26877		gcc_cv_ld_pie=yes
26878	fi
26879fi
26880if test x"$gcc_cv_ld_pie" = xyes; then
26881
26882$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26883
26884fi
26885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26886$as_echo "$gcc_cv_ld_pie" >&6; }
26887
26888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26889$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26890gcc_cv_ld_eh_gc_sections=no
26891if test $in_tree_ld = yes ; then
26892  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 \
26893     && test $in_tree_ld_is_elf = yes; then
26894    gcc_cv_ld_eh_gc_sections=yes
26895  fi
26896elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26897  cat > conftest.s <<EOF
26898	.section	.text
26899.globl _start
26900        .type _start, @function
26901_start:
26902	.long foo
26903	.size _start, .-_start
26904	.section	.text.foo,"ax",@progbits
26905	.type foo, @function
26906foo:
26907	.long 0
26908	.size foo, .-foo
26909	.section	.gcc_except_table.foo,"a",@progbits
26910.L0:
26911	.long 0
26912	.section	.eh_frame,"a",@progbits
26913	.long .L0
26914EOF
26915  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26916    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26917	 | grep "gc-sections option ignored" > /dev/null; then
26918      gcc_cv_ld_eh_gc_sections=no
26919    elif $gcc_cv_objdump -h conftest 2> /dev/null \
26920         | grep gcc_except_table > /dev/null; then
26921      gcc_cv_ld_eh_gc_sections=yes
26922      # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26923      if test x$gcc_cv_as_comdat_group != xyes; then
26924	gcc_cv_ld_eh_gc_sections=no
26925	cat > conftest.s <<EOF
26926	.section	.text
26927.globl _start
26928        .type _start, @function
26929_start:
26930	.long foo
26931	.size _start, .-_start
26932	.section	.gnu.linkonce.t.foo,"ax",@progbits
26933	.type foo, @function
26934foo:
26935	.long 0
26936	.size foo, .-foo
26937	.section	.gcc_except_table.foo,"a",@progbits
26938.L0:
26939	.long 0
26940	.section	.eh_frame,"a",@progbits
26941	.long .L0
26942EOF
26943	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26944	  if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26945	       | grep "gc-sections option ignored" > /dev/null; then
26946	    gcc_cv_ld_eh_gc_sections=no
26947	  elif $gcc_cv_objdump -h conftest 2> /dev/null \
26948	       | grep gcc_except_table > /dev/null; then
26949	    gcc_cv_ld_eh_gc_sections=yes
26950	  fi
26951	fi
26952      fi
26953    fi
26954  fi
26955  rm -f conftest.s conftest.o conftest
26956fi
26957case "$target" in
26958  hppa*-*-linux*)
26959    # ??? This apparently exposes a binutils bug with PC-relative relocations.
26960    gcc_cv_ld_eh_gc_sections=no
26961    ;;
26962esac
26963if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26964
26965$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26966
26967fi
26968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26969$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26970
26971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26972$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26973gcc_cv_ld_eh_gc_sections_bug=no
26974if test $in_tree_ld = yes ; then
26975  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 \
26976     && test $in_tree_ld_is_elf = yes; then
26977    gcc_cv_ld_eh_gc_sections_bug=yes
26978  fi
26979elif 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
26980  gcc_cv_ld_eh_gc_sections_bug=yes
26981  cat > conftest.s <<EOF
26982	.section	.text
26983.globl _start
26984	.type _start, @function
26985_start:
26986	.long foo
26987	.size _start, .-_start
26988	.section	.text.startup.foo,"ax",@progbits
26989	.type foo, @function
26990foo:
26991	.long 0
26992	.size foo, .-foo
26993	.section	.gcc_except_table.foo,"a",@progbits
26994.L0:
26995	.long 0
26996	.section	.eh_frame,"a",@progbits
26997	.long .L0
26998EOF
26999  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27000    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27001	 | grep "gc-sections option ignored" > /dev/null; then
27002      :
27003    elif $gcc_cv_objdump -h conftest 2> /dev/null \
27004	 | grep gcc_except_table > /dev/null; then
27005      gcc_cv_ld_eh_gc_sections_bug=no
27006    fi
27007  fi
27008  rm -f conftest.s conftest.o conftest
27009fi
27010if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27011
27012$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27013
27014fi
27015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27016$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27017
27018# --------
27019# UNSORTED
27020# --------
27021
27022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27023$as_echo_n "checking linker --as-needed support... " >&6; }
27024if test "${gcc_cv_ld_as_needed+set}" = set; then :
27025  $as_echo_n "(cached) " >&6
27026else
27027  gcc_cv_ld_as_needed=no
27028gcc_cv_ld_as_needed_option='--as-needed'
27029gcc_cv_ld_no_as_needed_option='--no-as-needed'
27030if test $in_tree_ld = yes ; then
27031  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 \
27032     && test $in_tree_ld_is_elf = yes; then
27033    gcc_cv_ld_as_needed=yes
27034  fi
27035elif test x$gcc_cv_ld != x; then
27036	# Check if linker supports --as-needed and --no-as-needed options
27037	if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27038		gcc_cv_ld_as_needed=yes
27039	else
27040	  case "$target" in
27041	    # Solaris 2 ld always supports -z ignore/-z record.
27042	    *-*-solaris2*)
27043	      gcc_cv_ld_as_needed=yes
27044	      gcc_cv_ld_as_needed_option="-z ignore"
27045	      gcc_cv_ld_no_as_needed_option="-z record"
27046	      ;;
27047	  esac
27048	fi
27049fi
27050# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27051# dl_iterate_phdr, i.e. since Solaris 11.
27052case "$target" in
27053  *-*-solaris2.1[1-9]*)
27054    case "$target" in
27055    i?86-*-* | x86_64-*-*)
27056      if echo "$ld_ver" | grep GNU > /dev/null; then
27057        # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27058        gcc_cv_ld_as_needed=no
27059      fi
27060      ;;
27061    esac
27062    ;;
27063  *-*-solaris2*)
27064    gcc_cv_ld_as_needed=no
27065    ;;
27066esac
27067
27068fi
27069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27070$as_echo "$gcc_cv_ld_as_needed" >&6; }
27071if test x"$gcc_cv_ld_as_needed" = xyes; then
27072
27073$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27074
27075
27076cat >>confdefs.h <<_ACEOF
27077#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27078_ACEOF
27079
27080
27081cat >>confdefs.h <<_ACEOF
27082#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27083_ACEOF
27084
27085fi
27086
27087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27088$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27089saved_LDFLAGS="$LDFLAGS"
27090for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27091  LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27093/* end confdefs.h.  */
27094int main(void) {return 0;}
27095_ACEOF
27096if ac_fn_c_try_link "$LINENO"; then :
27097  gcc_cv_ld_clearcap=yes; break
27098else
27099  gcc_cv_ld_clearcap=no
27100fi
27101rm -f core conftest.err conftest.$ac_objext \
27102    conftest$ac_exeext conftest.$ac_ext
27103done
27104LDFLAGS="$saved_LDFLAGS"
27105if test "x$gcc_cv_ld_clearcap" = xyes; then
27106
27107$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27108
27109  ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27110
27111fi
27112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27113$as_echo "$gcc_cv_ld_clearcap" >&6; }
27114
27115case "$target:$tm_file" in
27116  powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27117  case "$target" in
27118     *le-*-linux*)
27119     emul_name="-melf64lppc"
27120      ;;
27121     *-*-linux*)
27122     emul_name="-melf64ppc"
27123      ;;
27124     *-*-freebsd*)
27125     emul_name="-melf64ppc_fbsd"
27126      ;;
27127  esac
27128    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27129$as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27130if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27131  $as_echo_n "(cached) " >&6
27132else
27133  gcc_cv_ld_no_dot_syms=no
27134    if test x"$ld_is_gold" = xyes; then
27135      gcc_cv_ld_no_dot_syms=yes
27136    elif test $in_tree_ld = yes ; then
27137      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
27138        gcc_cv_ld_no_dot_syms=yes
27139      fi
27140    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27141      cat > conftest1.s <<EOF
27142	.text
27143	bl .foo
27144EOF
27145      cat > conftest2.s <<EOF
27146	.section ".opd","aw"
27147	.align 3
27148	.globl foo
27149	.type foo,@function
27150foo:
27151	.quad .LEfoo,.TOC.@tocbase,0
27152	.text
27153.LEfoo:
27154	blr
27155	.size foo,.-.LEfoo
27156EOF
27157      if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27158         && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27159         && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27160        gcc_cv_ld_no_dot_syms=yes
27161      fi
27162      rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27163    fi
27164
27165fi
27166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27167$as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27168    if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27169
27170$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27171
27172    fi
27173
27174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27175$as_echo_n "checking linker large toc support... " >&6; }
27176if test "${gcc_cv_ld_large_toc+set}" = set; then :
27177  $as_echo_n "(cached) " >&6
27178else
27179  gcc_cv_ld_large_toc=no
27180    if test x"$ld_is_gold" = xyes; then
27181      gcc_cv_ld_large_toc=yes
27182    elif test $in_tree_ld = yes ; then
27183      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
27184        gcc_cv_ld_large_toc=yes
27185      fi
27186    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27187      cat > conftest.s <<EOF
27188	.section ".tbss","awT",@nobits
27189	.align 3
27190ie0:	.space 8
27191	.global _start
27192	.text
27193_start:
27194	addis 9,13,ie0@got@tprel@ha
27195	ld 9,ie0@got@tprel@l(9)
27196EOF
27197      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27198         && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27199        gcc_cv_ld_large_toc=yes
27200      fi
27201      rm -f conftest conftest.o conftest.s
27202    fi
27203
27204fi
27205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27206$as_echo "$gcc_cv_ld_large_toc" >&6; }
27207    if test x"$gcc_cv_ld_large_toc" = xyes; then
27208
27209$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27210
27211    fi
27212    ;;
27213esac
27214
27215case "$target" in
27216  *-*-aix*)
27217    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27218$as_echo_n "checking linker large toc support... " >&6; }
27219if test "${gcc_cv_ld_large_toc+set}" = set; then :
27220  $as_echo_n "(cached) " >&6
27221else
27222  gcc_cv_ld_large_toc=no
27223    if test x$gcc_cv_as != x ; then
27224      cat > conftest.s <<EOF
27225	.toc
27226LC..1:
27227	.tc a[TC],a[RW]
27228	.extern a[RW]
27229	.csect .text[PR]
27230.largetoctest:
27231	addis 9,LC..1@u(2)
27232	ld 3,LC..1@l(9)
27233EOF
27234      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27235        gcc_cv_ld_large_toc=yes
27236      fi
27237      rm -f conftest conftest.o conftest.s
27238    fi
27239
27240fi
27241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27242$as_echo "$gcc_cv_ld_large_toc" >&6; }
27243    if test x"$gcc_cv_ld_large_toc" = xyes; then
27244
27245$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27246
27247    fi
27248    ;;
27249esac
27250
27251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27252$as_echo_n "checking linker --build-id support... " >&6; }
27253if test "${gcc_cv_ld_buildid+set}" = set; then :
27254  $as_echo_n "(cached) " >&6
27255else
27256  gcc_cv_ld_buildid=no
27257  if test $in_tree_ld = yes ; then
27258    if test "$gcc_cv_gld_major_version" -eq 2 -a \
27259       "$gcc_cv_gld_minor_version" -ge 18 -o \
27260       "$gcc_cv_gld_major_version" -gt 2 \
27261       && test $in_tree_ld_is_elf = yes; then
27262      gcc_cv_ld_buildid=yes
27263    fi
27264  elif test x$gcc_cv_ld != x; then
27265    if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27266      gcc_cv_ld_buildid=yes
27267    fi
27268  fi
27269fi
27270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27271$as_echo "$gcc_cv_ld_buildid" >&6; }
27272if test x"$gcc_cv_ld_buildid" = xyes; then
27273
27274$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27275
27276fi
27277
27278# Check whether --enable-linker-build-id was given.
27279if test "${enable_linker_build_id+set}" = set; then :
27280  enableval=$enable_linker_build_id;
27281else
27282  enable_linker_build_id=no
27283fi
27284
27285
27286if test x"$enable_linker_build_id" = xyes; then
27287  if test x"$gcc_cv_ld_buildid" = xyes; then
27288
27289$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27290
27291  else
27292    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27293$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27294  fi
27295fi
27296
27297# In binutils 2.21, GNU ld gained support for new emulations fully
27298# supporting the Solaris 2 ABI.  Detect their presence in the linker used.
27299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27300$as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27301if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27302  $as_echo_n "(cached) " >&6
27303else
27304  gcc_cv_ld_sol2_emulation=no
27305  if test $in_tree_ld = yes ; then
27306    if test "$gcc_cv_gld_major_version" -eq 2 -a \
27307       "$gcc_cv_gld_minor_version" -ge 21 -o \
27308       "$gcc_cv_gld_major_version" -gt 2 \
27309       && test $in_tree_ld_is_elf = yes; then
27310      gcc_cv_ld_sol2_emulation=yes
27311    fi
27312  elif test x$gcc_cv_ld != x; then
27313    if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27314       grep _sol2 > /dev/null; then
27315      gcc_cv_ld_sol2_emulation=yes
27316    fi
27317  fi
27318fi
27319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27320$as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27321if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27322
27323$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27324
27325fi
27326
27327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27328$as_echo_n "checking linker --sysroot support... " >&6; }
27329if test "${gcc_cv_ld_sysroot+set}" = set; then :
27330  $as_echo_n "(cached) " >&6
27331else
27332  gcc_cv_ld_sysroot=no
27333  if test $in_tree_ld = yes ; then
27334      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
27335        gcc_cv_ld_sysroot=yes
27336      fi
27337  elif test x$gcc_cv_ld != x; then
27338    if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27339      gcc_cv_ld_sysroot=yes
27340    fi
27341  fi
27342fi
27343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27344$as_echo "$gcc_cv_ld_sysroot" >&6; }
27345if test x"$gcc_cv_ld_sysroot" = xyes; then
27346
27347$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27348
27349fi
27350
27351# Test for stack protector support in target C library.
27352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27353$as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27354if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27355  $as_echo_n "(cached) " >&6
27356else
27357  gcc_cv_libc_provides_ssp=no
27358    case "$target" in
27359       *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27360      # glibc 2.4 and later provides __stack_chk_fail and
27361      # either __stack_chk_guard, or TLS access to stack guard canary.
27362
27363if test $glibc_version_major -gt 2 \
27364  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27365  gcc_cv_libc_provides_ssp=yes
27366else
27367
27368      if test -f $target_header_dir/features.h \
27369	 && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GNU_LIBRARY__[ 	]+([1-9][0-9]|[6-9])' \
27370	    $target_header_dir/features.h > /dev/null; then
27371	if $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC__[ 	]+1' \
27372	     $target_header_dir/features.h > /dev/null && \
27373	     test -f $target_header_dir/bits/uClibc_config.h && \
27374	     $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC_HAS_SSP__[ 	]+1' \
27375	     $target_header_dir/bits/uClibc_config.h > /dev/null; then
27376	  gcc_cv_libc_provides_ssp=yes
27377	fi
27378      # all versions of Bionic support stack protector
27379      elif test -f $target_header_dir/sys/cdefs.h \
27380        && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
27381           $target_header_dir/sys/cdefs.h > /dev/null; then
27382         gcc_cv_libc_provides_ssp=yes
27383      fi
27384fi
27385	;;
27386       *-*-gnu*)
27387	 # Avoid complicated tests (see
27388	 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27389	 # simply assert that glibc does provide this, which is true for all
27390	 # realistically usable GNU/Hurd configurations.
27391	 gcc_cv_libc_provides_ssp=yes;;
27392       *-*-darwin* | *-*-freebsd*)
27393	 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27394if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27395  gcc_cv_libc_provides_ssp=yes
27396else
27397  echo "no __stack_chk_fail on this target"
27398fi
27399
27400        ;;
27401  *) gcc_cv_libc_provides_ssp=no ;;
27402    esac
27403fi
27404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27405$as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27406
27407if test x$gcc_cv_libc_provides_ssp = xyes; then
27408
27409$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27410
27411fi
27412
27413# Test for <sys/sdt.h> on the target.
27414
27415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27416$as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27417have_sys_sdt_h=no
27418if test -f $target_header_dir/sys/sdt.h; then
27419  have_sys_sdt_h=yes
27420
27421$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27422
27423fi
27424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27425$as_echo "$have_sys_sdt_h" >&6; }
27426
27427# Check if TFmode long double should be used by default or not.
27428# Some glibc targets used DFmode long double, but with glibc 2.4
27429# and later they can use TFmode.
27430case "$target" in
27431  powerpc*-*-linux* | \
27432  sparc*-*-linux* | \
27433  s390*-*-linux* | \
27434  alpha*-*-linux*)
27435
27436# Check whether --with-long-double-128 was given.
27437if test "${with_long_double_128+set}" = set; then :
27438  withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27439else
27440
27441if test $glibc_version_major -gt 2 \
27442  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27443  gcc_cv_target_ldbl128=yes
27444else
27445
27446      gcc_cv_target_ldbl128=no
27447      grep '^[ 	]*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
27448        $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27449      && gcc_cv_target_ldbl128=yes
27450
27451fi
27452fi
27453
27454    ;;
27455esac
27456if test x$gcc_cv_target_ldbl128 = xyes; then
27457
27458$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27459
27460fi
27461
27462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27463$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27464gcc_cv_target_dl_iterate_phdr=unknown
27465case "$target" in
27466  # Restrict to Solaris 11+.  While most of the Solaris 11 linker changes
27467  # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27468  # libdl there, both complicating its use and breaking compatibility
27469  # between Solaris 10 updates.
27470  *-*-solaris2.1[1-9]*)
27471    # <link.h> needs both a dl_iterate_phdr declaration and support for
27472    # compilation with largefile support.
27473    if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27474      && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27475      gcc_cv_target_dl_iterate_phdr=yes
27476    else
27477      gcc_cv_target_dl_iterate_phdr=no
27478    fi
27479    ;;
27480esac
27481
27482if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27483
27484$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27485
27486fi
27487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27488$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27489
27490# We no longer support different GC mechanisms.  Emit an error if
27491# the user configures with --with-gc.
27492
27493# Check whether --with-gc was given.
27494if test "${with_gc+set}" = set; then :
27495  withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27496fi
27497
27498
27499# Libraries to use on the host.  This will normally be set by the top
27500# level Makefile.  Here we simply capture the value for our Makefile.
27501if test -z "${HOST_LIBS+set}"; then
27502  HOST_LIBS=
27503fi
27504
27505
27506# Use the system's zlib library.
27507zlibdir=-L../zlib
27508zlibinc="-I\$(srcdir)/../zlib"
27509
27510# Check whether --with-system-zlib was given.
27511if test "${with_system_zlib+set}" = set; then :
27512  withval=$with_system_zlib; zlibdir=
27513zlibinc=
27514
27515fi
27516
27517
27518
27519
27520
27521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27522$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27523    # Check whether --enable-maintainer-mode was given.
27524if test "${enable_maintainer_mode+set}" = set; then :
27525  enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27526else
27527  maintainer_mode=no
27528fi
27529
27530
27531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27532$as_echo "$maintainer_mode" >&6; }
27533
27534if test "$maintainer_mode" = "yes"; then
27535  MAINT=''
27536else
27537  MAINT='#'
27538fi
27539
27540
27541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27542$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27543  # Check whether --enable-link-mutex was given.
27544if test "${enable_link_mutex+set}" = set; then :
27545  enableval=$enable_link_mutex; do_link_mutex=$enableval
27546else
27547  do_link_mutex=no
27548fi
27549
27550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27551$as_echo "$do_link_mutex" >&6; }
27552
27553if test "$do_link_mutex" = "yes"; then
27554   DO_LINK_MUTEX=true
27555else
27556   DO_LINK_MUTEX=false
27557fi
27558
27559
27560# --------------
27561# Language hooks
27562# --------------
27563
27564# Make empty files to contain the specs and options for each language.
27565# Then add #include lines to for a compiler that has specs and/or options.
27566
27567subdirs=
27568lang_opt_files=
27569lang_specs_files=
27570lang_tree_files=
27571# These (without "all_") are set in each config-lang.in.
27572# `language' must be a single word so is spelled singularly.
27573all_languages=
27574all_compilers=
27575all_outputs='Makefile'
27576# List of language makefile fragments.
27577all_lang_makefrags=
27578# Additional files for gengtype
27579all_gtfiles="$target_gtfiles"
27580
27581# These are the languages that are set in --enable-languages,
27582# and are available in the GCC tree.
27583all_selected_languages=
27584
27585# Add the language fragments.
27586# Languages are added via two mechanisms.  Some information must be
27587# recorded in makefile variables, these are defined in config-lang.in.
27588# We accumulate them and plug them into the main Makefile.
27589# The other mechanism is a set of hooks for each of the main targets
27590# like `clean', `install', etc.
27591
27592language_hooks="Make-hooks"
27593
27594for lang in ${srcdir}/*/config-lang.in
27595do
27596	test "$lang" = "${srcdir}/*/config-lang.in" && continue
27597
27598        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
27599        if test "x$lang_alias" = x
27600        then
27601              echo "$lang doesn't set \$language." 1>&2
27602              exit 1
27603        fi
27604        subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27605        subdirs="$subdirs $subdir"
27606
27607	# $gcc_subdir is where the gcc integration files are to be found
27608	# for a language, both for internal compiler purposes (compiler
27609	# sources implementing front-end to GCC tree converters), and for
27610	# build infrastructure purposes (Make-lang.in, etc.)
27611	#
27612	# This will be <subdir> (relative to $srcdir) if a line like
27613	# gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27614	# is found in <langdir>/config-lang.in, and will remain <langdir>
27615	# otherwise.
27616	#
27617	# Except for the language alias (fetched above), the regular
27618	# "config-lang.in" contents are always retrieved from $gcc_subdir,
27619	# so a <langdir>/config-lang.in setting gcc_subdir typically sets
27620	# only this and the language alias.
27621
27622        gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
27623        if [ "$gcc_subdir" = "" ]; then
27624           gcc_subdir="$subdir"
27625        fi
27626
27627        case ",$enable_languages," in
27628        *,$lang_alias,*)
27629            all_selected_languages="$all_selected_languages $lang_alias"
27630            if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27631                lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27632	    fi
27633	    ;;
27634        esac
27635
27636	language=
27637	boot_language=
27638	compilers=
27639	outputs=
27640	gtfiles=
27641	subdir_requires=
27642	. ${srcdir}/$gcc_subdir/config-lang.in
27643	if test "x$language" = x
27644	then
27645		echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27646		exit 1
27647	fi
27648
27649	ok=:
27650        case ",$enable_languages," in
27651        	*,$lang_alias,*) ;;
27652		*)
27653			for i in $subdir_requires; do
27654				test -f "${srcdir}/$i/config-lang.in" && continue
27655				ok=false
27656				break
27657			done
27658		;;
27659	esac
27660	$ok || continue
27661
27662	all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27663	if test -f $srcdir/$gcc_subdir/lang.opt; then
27664	    lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27665	    all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27666	fi
27667	if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27668	    lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27669	fi
27670	all_languages="$all_languages $language"
27671	all_compilers="$all_compilers $compilers"
27672	all_outputs="$all_outputs $outputs"
27673	all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27674        case ",$enable_languages," in
27675        	*,lto,*)
27676
27677$as_echo "#define ENABLE_LTO 1" >>confdefs.h
27678
27679		    enable_lto=yes
27680
27681		    ;;
27682		*) ;;
27683	esac
27684done
27685
27686check_languages=
27687for language in $all_selected_languages
27688do
27689	check_languages="$check_languages check-$language"
27690done
27691
27692# We link each language in with a set of hooks, reached indirectly via
27693# lang.${target}.  Only do so for selected languages.
27694
27695rm -f Make-hooks
27696touch Make-hooks
27697target_list="all.cross start.encap rest.encap tags \
27698	install-common install-man install-info install-pdf install-html dvi \
27699	pdf html uninstall info man srcextra srcman srcinfo \
27700	mostlyclean clean distclean maintainer-clean install-plugin"
27701
27702for t in $target_list
27703do
27704	x=
27705	for lang in $all_selected_languages
27706	do
27707		x="$x $lang.$t"
27708	done
27709	echo "lang.$t: $x" >> Make-hooks
27710done
27711
27712# --------
27713# Option include files
27714# --------
27715
27716${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27717option_includes="option-includes.mk"
27718
27719
27720# --------
27721# UNSORTED
27722# --------
27723
27724# Create .gdbinit.
27725
27726echo "dir ." > .gdbinit
27727echo "dir ${srcdir}" >> .gdbinit
27728if test x$gdb_needs_out_file_path = xyes
27729then
27730	echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27731fi
27732if test "x$subdirs" != x; then
27733	for s in $subdirs
27734	do
27735		echo "dir ${srcdir}/$s" >> .gdbinit
27736	done
27737fi
27738echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27739echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27740
27741# Put a breakpoint on __asan_report_error to help with debugging buffer
27742# overflow.
27743case "$CFLAGS" in
27744*-fsanitize=address*)
27745  echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27746  ;;
27747esac
27748
27749gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27750
27751
27752
27753# Find a directory in which to install a shared libgcc.
27754
27755# Check whether --enable-version-specific-runtime-libs was given.
27756if test "${enable_version_specific_runtime_libs+set}" = set; then :
27757  enableval=$enable_version_specific_runtime_libs;
27758fi
27759
27760
27761# Substitute configuration variables
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824# Echo link setup.
27825if test x${build} = x${host} ; then
27826  if test x${host} = x${target} ; then
27827    echo "Links are now set up to build a native compiler for ${target}." 1>&2
27828  else
27829    echo "Links are now set up to build a cross-compiler" 1>&2
27830    echo " from ${host} to ${target}." 1>&2
27831  fi
27832else
27833  if test x${host} = x${target} ; then
27834    echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27835    echo " for ${target}." 1>&2
27836  else
27837    echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27838    echo " from ${host} to ${target}." 1>&2
27839  fi
27840fi
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850if test "x${CLOOGLIBS}" != "x" ; then
27851
27852$as_echo "#define HAVE_cloog 1" >>confdefs.h
27853
27854fi
27855
27856# Check for plugin support
27857# Check whether --enable-plugin was given.
27858if test "${enable_plugin+set}" = set; then :
27859  enableval=$enable_plugin; enable_plugin=$enableval
27860else
27861  enable_plugin=yes; default_plugin=yes
27862fi
27863
27864
27865pluginlibs=
27866
27867case "${host}" in
27868  *-*-darwin*)
27869    if test x$build = x$host; then
27870      export_sym_check="nm${exeext} -g"
27871    elif test x$host = x$target; then
27872      export_sym_check="$gcc_cv_nm -g"
27873    else
27874      export_sym_check=
27875    fi
27876  ;;
27877  *)
27878    if test x$build = x$host; then
27879      export_sym_check="objdump${exeext} -T"
27880    elif test x$host = x$target; then
27881      export_sym_check="$gcc_cv_objdump -T"
27882    else
27883      export_sym_check=
27884    fi
27885  ;;
27886esac
27887
27888if test x"$enable_plugin" = x"yes"; then
27889
27890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27891$as_echo_n "checking for exported symbols... " >&6; }
27892  if test "x$export_sym_check" != x; then
27893    echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27894    ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27895    if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27896      : # No need to use a flag
27897      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27898$as_echo "yes" >&6; }
27899    else
27900      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27901$as_echo "yes" >&6; }
27902      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27903$as_echo_n "checking for -rdynamic... " >&6; }
27904      ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27905      if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27906        plugin_rdynamic=yes
27907        pluginlibs="-rdynamic"
27908      else
27909        plugin_rdynamic=no
27910        enable_plugin=no
27911      fi
27912      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27913$as_echo "$plugin_rdynamic" >&6; }
27914    fi
27915  else
27916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27917$as_echo "unable to check" >&6; }
27918  fi
27919
27920  # Check -ldl
27921  saved_LIBS="$LIBS"
27922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27923$as_echo_n "checking for library containing dlopen... " >&6; }
27924if test "${ac_cv_search_dlopen+set}" = set; then :
27925  $as_echo_n "(cached) " >&6
27926else
27927  ac_func_search_save_LIBS=$LIBS
27928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27929/* end confdefs.h.  */
27930
27931/* Override any GCC internal prototype to avoid an error.
27932   Use char because int might match the return type of a GCC
27933   builtin and then its argument prototype would still apply.  */
27934#ifdef __cplusplus
27935extern "C"
27936#endif
27937char dlopen ();
27938int
27939main ()
27940{
27941return dlopen ();
27942  ;
27943  return 0;
27944}
27945_ACEOF
27946for ac_lib in '' dl; do
27947  if test -z "$ac_lib"; then
27948    ac_res="none required"
27949  else
27950    ac_res=-l$ac_lib
27951    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27952  fi
27953  if ac_fn_c_try_link "$LINENO"; then :
27954  ac_cv_search_dlopen=$ac_res
27955fi
27956rm -f core conftest.err conftest.$ac_objext \
27957    conftest$ac_exeext
27958  if test "${ac_cv_search_dlopen+set}" = set; then :
27959  break
27960fi
27961done
27962if test "${ac_cv_search_dlopen+set}" = set; then :
27963
27964else
27965  ac_cv_search_dlopen=no
27966fi
27967rm conftest.$ac_ext
27968LIBS=$ac_func_search_save_LIBS
27969fi
27970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27971$as_echo "$ac_cv_search_dlopen" >&6; }
27972ac_res=$ac_cv_search_dlopen
27973if test "$ac_res" != no; then :
27974  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27975
27976fi
27977
27978  if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27979    pluginlibs="$pluginlibs -ldl"
27980  fi
27981  LIBS="$saved_LIBS"
27982
27983  # Check that we can build shared objects with -fPIC -shared
27984  saved_LDFLAGS="$LDFLAGS"
27985  saved_CFLAGS="$CFLAGS"
27986  case "${host}" in
27987    *-*-darwin*)
27988      CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27989      CFLAGS="$CFLAGS -fPIC"
27990      LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27991    ;;
27992    *)
27993      CFLAGS="$CFLAGS -fPIC"
27994      LDFLAGS="$LDFLAGS -fPIC -shared"
27995    ;;
27996  esac
27997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27998$as_echo_n "checking for -fPIC -shared... " >&6; }
27999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28000/* end confdefs.h.  */
28001extern int X;
28002int
28003main ()
28004{
28005return X == 0;
28006  ;
28007  return 0;
28008}
28009_ACEOF
28010if ac_fn_c_try_link "$LINENO"; then :
28011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28012$as_echo "yes" >&6; }; have_pic_shared=yes
28013else
28014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28015$as_echo "no" >&6; }; have_pic_shared=no
28016fi
28017rm -f core conftest.err conftest.$ac_objext \
28018    conftest$ac_exeext conftest.$ac_ext
28019  if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28020    pluginlibs=
28021    enable_plugin=no
28022  fi
28023  LDFLAGS="$saved_LDFLAGS"
28024  CFLAGS="$saved_CFLAGS"
28025
28026  # If plugin support had been requested but not available, fail.
28027  if test x"$enable_plugin" = x"no" ; then
28028    if test x"$default_plugin" != x"yes"; then
28029      as_fn_error "
28030Building GCC with plugin support requires a host that supports
28031-fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28032    fi
28033  fi
28034fi
28035
28036
28037
28038if test x"$enable_plugin" = x"yes"; then
28039
28040$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28041
28042fi
28043
28044
28045# Enable --enable-host-shared
28046# Check whether --enable-host-shared was given.
28047if test "${enable_host_shared+set}" = set; then :
28048  enableval=$enable_host_shared; PICFLAG=-fPIC
28049else
28050  PICFLAG=
28051fi
28052
28053
28054
28055
28056
28057# Check whether --enable-libquadmath-support was given.
28058if test "${enable_libquadmath_support+set}" = set; then :
28059  enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28060else
28061  ENABLE_LIBQUADMATH_SUPPORT=yes
28062fi
28063
28064if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28065
28066$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28067
28068fi
28069
28070
28071# Specify what hash style to use by default.
28072
28073# Check whether --with-linker-hash-style was given.
28074if test "${with_linker_hash_style+set}" = set; then :
28075  withval=$with_linker_hash_style; case x"$withval" in
28076   xsysv)
28077     LINKER_HASH_STYLE=sysv
28078     ;;
28079   xgnu)
28080     LINKER_HASH_STYLE=gnu
28081     ;;
28082   xboth)
28083     LINKER_HASH_STYLE=both
28084     ;;
28085   *)
28086     as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28087     ;;
28088 esac
28089else
28090  LINKER_HASH_STYLE=''
28091fi
28092
28093if test x"${LINKER_HASH_STYLE}" != x; then
28094
28095cat >>confdefs.h <<_ACEOF
28096#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28097_ACEOF
28098
28099fi
28100
28101# Configure the subdirectories
28102# AC_CONFIG_SUBDIRS($subdirs)
28103
28104# Create the Makefile
28105# and configure language subdirectories
28106ac_config_files="$ac_config_files $all_outputs"
28107
28108
28109ac_config_commands="$ac_config_commands default"
28110
28111cat >confcache <<\_ACEOF
28112# This file is a shell script that caches the results of configure
28113# tests run on this system so they can be shared between configure
28114# scripts and configure runs, see configure's option --config-cache.
28115# It is not useful on other systems.  If it contains results you don't
28116# want to keep, you may remove or edit it.
28117#
28118# config.status only pays attention to the cache file if you give it
28119# the --recheck option to rerun configure.
28120#
28121# `ac_cv_env_foo' variables (set or unset) will be overridden when
28122# loading this file, other *unset* `ac_cv_foo' will be assigned the
28123# following values.
28124
28125_ACEOF
28126
28127# The following way of writing the cache mishandles newlines in values,
28128# but we know of no workaround that is simple, portable, and efficient.
28129# So, we kill variables containing newlines.
28130# Ultrix sh set writes to stderr and can't be redirected directly,
28131# and sets the high bit in the cache file unless we assign to the vars.
28132(
28133  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28134    eval ac_val=\$$ac_var
28135    case $ac_val in #(
28136    *${as_nl}*)
28137      case $ac_var in #(
28138      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28139$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28140      esac
28141      case $ac_var in #(
28142      _ | IFS | as_nl) ;; #(
28143      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28144      *) { eval $ac_var=; unset $ac_var;} ;;
28145      esac ;;
28146    esac
28147  done
28148
28149  (set) 2>&1 |
28150    case $as_nl`(ac_space=' '; set) 2>&1` in #(
28151    *${as_nl}ac_space=\ *)
28152      # `set' does not quote correctly, so add quotes: double-quote
28153      # substitution turns \\\\ into \\, and sed turns \\ into \.
28154      sed -n \
28155	"s/'/'\\\\''/g;
28156	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28157      ;; #(
28158    *)
28159      # `set' quotes correctly as required by POSIX, so do not add quotes.
28160      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28161      ;;
28162    esac |
28163    sort
28164) |
28165  sed '
28166     /^ac_cv_env_/b end
28167     t clear
28168     :clear
28169     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28170     t end
28171     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28172     :end' >>confcache
28173if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28174  if test -w "$cache_file"; then
28175    test "x$cache_file" != "x/dev/null" &&
28176      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28177$as_echo "$as_me: updating cache $cache_file" >&6;}
28178    cat confcache >$cache_file
28179  else
28180    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28181$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28182  fi
28183fi
28184rm -f confcache
28185
28186test "x$prefix" = xNONE && prefix=$ac_default_prefix
28187# Let make expand exec_prefix.
28188test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28189
28190DEFS=-DHAVE_CONFIG_H
28191
28192ac_libobjs=
28193ac_ltlibobjs=
28194for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28195  # 1. Remove the extension, and $U if already installed.
28196  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28197  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28198  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28199  #    will be set to the directory where LIBOBJS objects are built.
28200  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28201  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28202done
28203LIBOBJS=$ac_libobjs
28204
28205LTLIBOBJS=$ac_ltlibobjs
28206
28207
28208
28209
28210: ${CONFIG_STATUS=./config.status}
28211ac_write_fail=0
28212ac_clean_files_save=$ac_clean_files
28213ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28214{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28215$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28216as_write_fail=0
28217cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28218#! $SHELL
28219# Generated by $as_me.
28220# Run this file to recreate the current configuration.
28221# Compiler output produced by configure, useful for debugging
28222# configure, is in config.log if it exists.
28223
28224debug=false
28225ac_cs_recheck=false
28226ac_cs_silent=false
28227
28228SHELL=\${CONFIG_SHELL-$SHELL}
28229export SHELL
28230_ASEOF
28231cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28232## -------------------- ##
28233## M4sh Initialization. ##
28234## -------------------- ##
28235
28236# Be more Bourne compatible
28237DUALCASE=1; export DUALCASE # for MKS sh
28238if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28239  emulate sh
28240  NULLCMD=:
28241  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28242  # is contrary to our usage.  Disable this feature.
28243  alias -g '${1+"$@"}'='"$@"'
28244  setopt NO_GLOB_SUBST
28245else
28246  case `(set -o) 2>/dev/null` in #(
28247  *posix*) :
28248    set -o posix ;; #(
28249  *) :
28250     ;;
28251esac
28252fi
28253
28254
28255as_nl='
28256'
28257export as_nl
28258# Printing a long string crashes Solaris 7 /usr/bin/printf.
28259as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28260as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28261as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28262# Prefer a ksh shell builtin over an external printf program on Solaris,
28263# but without wasting forks for bash or zsh.
28264if test -z "$BASH_VERSION$ZSH_VERSION" \
28265    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28266  as_echo='print -r --'
28267  as_echo_n='print -rn --'
28268elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28269  as_echo='printf %s\n'
28270  as_echo_n='printf %s'
28271else
28272  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28273    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28274    as_echo_n='/usr/ucb/echo -n'
28275  else
28276    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28277    as_echo_n_body='eval
28278      arg=$1;
28279      case $arg in #(
28280      *"$as_nl"*)
28281	expr "X$arg" : "X\\(.*\\)$as_nl";
28282	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28283      esac;
28284      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28285    '
28286    export as_echo_n_body
28287    as_echo_n='sh -c $as_echo_n_body as_echo'
28288  fi
28289  export as_echo_body
28290  as_echo='sh -c $as_echo_body as_echo'
28291fi
28292
28293# The user is always right.
28294if test "${PATH_SEPARATOR+set}" != set; then
28295  PATH_SEPARATOR=:
28296  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28297    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28298      PATH_SEPARATOR=';'
28299  }
28300fi
28301
28302
28303# IFS
28304# We need space, tab and new line, in precisely that order.  Quoting is
28305# there to prevent editors from complaining about space-tab.
28306# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28307# splitting by setting IFS to empty value.)
28308IFS=" ""	$as_nl"
28309
28310# Find who we are.  Look in the path if we contain no directory separator.
28311case $0 in #((
28312  *[\\/]* ) as_myself=$0 ;;
28313  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28314for as_dir in $PATH
28315do
28316  IFS=$as_save_IFS
28317  test -z "$as_dir" && as_dir=.
28318    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28319  done
28320IFS=$as_save_IFS
28321
28322     ;;
28323esac
28324# We did not find ourselves, most probably we were run as `sh COMMAND'
28325# in which case we are not to be found in the path.
28326if test "x$as_myself" = x; then
28327  as_myself=$0
28328fi
28329if test ! -f "$as_myself"; then
28330  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28331  exit 1
28332fi
28333
28334# Unset variables that we do not need and which cause bugs (e.g. in
28335# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28336# suppresses any "Segmentation fault" message there.  '((' could
28337# trigger a bug in pdksh 5.2.14.
28338for as_var in BASH_ENV ENV MAIL MAILPATH
28339do eval test x\${$as_var+set} = xset \
28340  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28341done
28342PS1='$ '
28343PS2='> '
28344PS4='+ '
28345
28346# NLS nuisances.
28347LC_ALL=C
28348export LC_ALL
28349LANGUAGE=C
28350export LANGUAGE
28351
28352# CDPATH.
28353(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28354
28355
28356# as_fn_error ERROR [LINENO LOG_FD]
28357# ---------------------------------
28358# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28359# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28360# script with status $?, using 1 if that was 0.
28361as_fn_error ()
28362{
28363  as_status=$?; test $as_status -eq 0 && as_status=1
28364  if test "$3"; then
28365    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28366    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28367  fi
28368  $as_echo "$as_me: error: $1" >&2
28369  as_fn_exit $as_status
28370} # as_fn_error
28371
28372
28373# as_fn_set_status STATUS
28374# -----------------------
28375# Set $? to STATUS, without forking.
28376as_fn_set_status ()
28377{
28378  return $1
28379} # as_fn_set_status
28380
28381# as_fn_exit STATUS
28382# -----------------
28383# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28384as_fn_exit ()
28385{
28386  set +e
28387  as_fn_set_status $1
28388  exit $1
28389} # as_fn_exit
28390
28391# as_fn_unset VAR
28392# ---------------
28393# Portably unset VAR.
28394as_fn_unset ()
28395{
28396  { eval $1=; unset $1;}
28397}
28398as_unset=as_fn_unset
28399# as_fn_append VAR VALUE
28400# ----------------------
28401# Append the text in VALUE to the end of the definition contained in VAR. Take
28402# advantage of any shell optimizations that allow amortized linear growth over
28403# repeated appends, instead of the typical quadratic growth present in naive
28404# implementations.
28405if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28406  eval 'as_fn_append ()
28407  {
28408    eval $1+=\$2
28409  }'
28410else
28411  as_fn_append ()
28412  {
28413    eval $1=\$$1\$2
28414  }
28415fi # as_fn_append
28416
28417# as_fn_arith ARG...
28418# ------------------
28419# Perform arithmetic evaluation on the ARGs, and store the result in the
28420# global $as_val. Take advantage of shells that can avoid forks. The arguments
28421# must be portable across $(()) and expr.
28422if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28423  eval 'as_fn_arith ()
28424  {
28425    as_val=$(( $* ))
28426  }'
28427else
28428  as_fn_arith ()
28429  {
28430    as_val=`expr "$@" || test $? -eq 1`
28431  }
28432fi # as_fn_arith
28433
28434
28435if expr a : '\(a\)' >/dev/null 2>&1 &&
28436   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28437  as_expr=expr
28438else
28439  as_expr=false
28440fi
28441
28442if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28443  as_basename=basename
28444else
28445  as_basename=false
28446fi
28447
28448if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28449  as_dirname=dirname
28450else
28451  as_dirname=false
28452fi
28453
28454as_me=`$as_basename -- "$0" ||
28455$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28456	 X"$0" : 'X\(//\)$' \| \
28457	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28458$as_echo X/"$0" |
28459    sed '/^.*\/\([^/][^/]*\)\/*$/{
28460	    s//\1/
28461	    q
28462	  }
28463	  /^X\/\(\/\/\)$/{
28464	    s//\1/
28465	    q
28466	  }
28467	  /^X\/\(\/\).*/{
28468	    s//\1/
28469	    q
28470	  }
28471	  s/.*/./; q'`
28472
28473# Avoid depending upon Character Ranges.
28474as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28475as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28476as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28477as_cr_digits='0123456789'
28478as_cr_alnum=$as_cr_Letters$as_cr_digits
28479
28480ECHO_C= ECHO_N= ECHO_T=
28481case `echo -n x` in #(((((
28482-n*)
28483  case `echo 'xy\c'` in
28484  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
28485  xy)  ECHO_C='\c';;
28486  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28487       ECHO_T='	';;
28488  esac;;
28489*)
28490  ECHO_N='-n';;
28491esac
28492
28493rm -f conf$$ conf$$.exe conf$$.file
28494if test -d conf$$.dir; then
28495  rm -f conf$$.dir/conf$$.file
28496else
28497  rm -f conf$$.dir
28498  mkdir conf$$.dir 2>/dev/null
28499fi
28500if (echo >conf$$.file) 2>/dev/null; then
28501  if ln -s conf$$.file conf$$ 2>/dev/null; then
28502    as_ln_s='ln -s'
28503    # ... but there are two gotchas:
28504    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28505    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28506    # In both cases, we have to default to `cp -p'.
28507    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28508      as_ln_s='cp -p'
28509  elif ln conf$$.file conf$$ 2>/dev/null; then
28510    as_ln_s=ln
28511  else
28512    as_ln_s='cp -p'
28513  fi
28514else
28515  as_ln_s='cp -p'
28516fi
28517rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28518rmdir conf$$.dir 2>/dev/null
28519
28520
28521# as_fn_mkdir_p
28522# -------------
28523# Create "$as_dir" as a directory, including parents if necessary.
28524as_fn_mkdir_p ()
28525{
28526
28527  case $as_dir in #(
28528  -*) as_dir=./$as_dir;;
28529  esac
28530  test -d "$as_dir" || eval $as_mkdir_p || {
28531    as_dirs=
28532    while :; do
28533      case $as_dir in #(
28534      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28535      *) as_qdir=$as_dir;;
28536      esac
28537      as_dirs="'$as_qdir' $as_dirs"
28538      as_dir=`$as_dirname -- "$as_dir" ||
28539$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28540	 X"$as_dir" : 'X\(//\)[^/]' \| \
28541	 X"$as_dir" : 'X\(//\)$' \| \
28542	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28543$as_echo X"$as_dir" |
28544    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28545	    s//\1/
28546	    q
28547	  }
28548	  /^X\(\/\/\)[^/].*/{
28549	    s//\1/
28550	    q
28551	  }
28552	  /^X\(\/\/\)$/{
28553	    s//\1/
28554	    q
28555	  }
28556	  /^X\(\/\).*/{
28557	    s//\1/
28558	    q
28559	  }
28560	  s/.*/./; q'`
28561      test -d "$as_dir" && break
28562    done
28563    test -z "$as_dirs" || eval "mkdir $as_dirs"
28564  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28565
28566
28567} # as_fn_mkdir_p
28568if mkdir -p . 2>/dev/null; then
28569  as_mkdir_p='mkdir -p "$as_dir"'
28570else
28571  test -d ./-p && rmdir ./-p
28572  as_mkdir_p=false
28573fi
28574
28575if test -x / >/dev/null 2>&1; then
28576  as_test_x='test -x'
28577else
28578  if ls -dL / >/dev/null 2>&1; then
28579    as_ls_L_option=L
28580  else
28581    as_ls_L_option=
28582  fi
28583  as_test_x='
28584    eval sh -c '\''
28585      if test -d "$1"; then
28586	test -d "$1/.";
28587      else
28588	case $1 in #(
28589	-*)set "./$1";;
28590	esac;
28591	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28592	???[sx]*):;;*)false;;esac;fi
28593    '\'' sh
28594  '
28595fi
28596as_executable_p=$as_test_x
28597
28598# Sed expression to map a string onto a valid CPP name.
28599as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28600
28601# Sed expression to map a string onto a valid variable name.
28602as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28603
28604
28605exec 6>&1
28606## ----------------------------------- ##
28607## Main body of $CONFIG_STATUS script. ##
28608## ----------------------------------- ##
28609_ASEOF
28610test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28611
28612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28613# Save the log message, to keep $0 and so on meaningful, and to
28614# report actual input values of CONFIG_FILES etc. instead of their
28615# values after options handling.
28616ac_log="
28617This file was extended by $as_me, which was
28618generated by GNU Autoconf 2.64.  Invocation command line was
28619
28620  CONFIG_FILES    = $CONFIG_FILES
28621  CONFIG_HEADERS  = $CONFIG_HEADERS
28622  CONFIG_LINKS    = $CONFIG_LINKS
28623  CONFIG_COMMANDS = $CONFIG_COMMANDS
28624  $ $0 $@
28625
28626on `(hostname || uname -n) 2>/dev/null | sed 1q`
28627"
28628
28629_ACEOF
28630
28631case $ac_config_files in *"
28632"*) set x $ac_config_files; shift; ac_config_files=$*;;
28633esac
28634
28635case $ac_config_headers in *"
28636"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28637esac
28638
28639
28640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28641# Files that config.status was made for.
28642config_files="$ac_config_files"
28643config_headers="$ac_config_headers"
28644config_links="$ac_config_links"
28645config_commands="$ac_config_commands"
28646
28647_ACEOF
28648
28649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28650ac_cs_usage="\
28651\`$as_me' instantiates files and other configuration actions
28652from templates according to the current configuration.  Unless the files
28653and actions are specified as TAGs, all are instantiated by default.
28654
28655Usage: $0 [OPTION]... [TAG]...
28656
28657  -h, --help       print this help, then exit
28658  -V, --version    print version number and configuration settings, then exit
28659  -q, --quiet, --silent
28660                   do not print progress messages
28661  -d, --debug      don't remove temporary files
28662      --recheck    update $as_me by reconfiguring in the same conditions
28663      --file=FILE[:TEMPLATE]
28664                   instantiate the configuration file FILE
28665      --header=FILE[:TEMPLATE]
28666                   instantiate the configuration header FILE
28667
28668Configuration files:
28669$config_files
28670
28671Configuration headers:
28672$config_headers
28673
28674Configuration links:
28675$config_links
28676
28677Configuration commands:
28678$config_commands
28679
28680Report bugs to the package provider."
28681
28682_ACEOF
28683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28684ac_cs_version="\\
28685config.status
28686configured by $0, generated by GNU Autoconf 2.64,
28687  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28688
28689Copyright (C) 2009 Free Software Foundation, Inc.
28690This config.status script is free software; the Free Software Foundation
28691gives unlimited permission to copy, distribute and modify it."
28692
28693ac_pwd='$ac_pwd'
28694srcdir='$srcdir'
28695AWK='$AWK'
28696test -n "\$AWK" || AWK=awk
28697_ACEOF
28698
28699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28700# The default lists apply if the user does not specify any file.
28701ac_need_defaults=:
28702while test $# != 0
28703do
28704  case $1 in
28705  --*=*)
28706    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28707    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28708    ac_shift=:
28709    ;;
28710  *)
28711    ac_option=$1
28712    ac_optarg=$2
28713    ac_shift=shift
28714    ;;
28715  esac
28716
28717  case $ac_option in
28718  # Handling of the options.
28719  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28720    ac_cs_recheck=: ;;
28721  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28722    $as_echo "$ac_cs_version"; exit ;;
28723  --debug | --debu | --deb | --de | --d | -d )
28724    debug=: ;;
28725  --file | --fil | --fi | --f )
28726    $ac_shift
28727    case $ac_optarg in
28728    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28729    esac
28730    as_fn_append CONFIG_FILES " '$ac_optarg'"
28731    ac_need_defaults=false;;
28732  --header | --heade | --head | --hea )
28733    $ac_shift
28734    case $ac_optarg in
28735    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28736    esac
28737    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28738    ac_need_defaults=false;;
28739  --he | --h)
28740    # Conflict between --help and --header
28741    as_fn_error "ambiguous option: \`$1'
28742Try \`$0 --help' for more information.";;
28743  --help | --hel | -h )
28744    $as_echo "$ac_cs_usage"; exit ;;
28745  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28746  | -silent | --silent | --silen | --sile | --sil | --si | --s)
28747    ac_cs_silent=: ;;
28748
28749  # This is an error.
28750  -*) as_fn_error "unrecognized option: \`$1'
28751Try \`$0 --help' for more information." ;;
28752
28753  *) as_fn_append ac_config_targets " $1"
28754     ac_need_defaults=false ;;
28755
28756  esac
28757  shift
28758done
28759
28760ac_configure_extra_args=
28761
28762if $ac_cs_silent; then
28763  exec 6>/dev/null
28764  ac_configure_extra_args="$ac_configure_extra_args --silent"
28765fi
28766
28767_ACEOF
28768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28769if \$ac_cs_recheck; then
28770  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28771  shift
28772  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28773  CONFIG_SHELL='$SHELL'
28774  export CONFIG_SHELL
28775  exec "\$@"
28776fi
28777
28778_ACEOF
28779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28780exec 5>>config.log
28781{
28782  echo
28783  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28784## Running $as_me. ##
28785_ASBOX
28786  $as_echo "$ac_log"
28787} >&5
28788
28789_ACEOF
28790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28791#
28792# INIT-COMMANDS
28793#
28794ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28795subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28796subdirs='$subdirs'
28797
28798_ACEOF
28799
28800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28801
28802# Handling of arguments.
28803for ac_config_target in $ac_config_targets
28804do
28805  case $ac_config_target in
28806    "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28807    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28808    "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28809    "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28810    "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28811    "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28812    "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
28813    "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28814    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28815
28816  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28817  esac
28818done
28819
28820
28821# If the user did not use the arguments to specify the items to instantiate,
28822# then the envvar interface is used.  Set only those that are not.
28823# We use the long form for the default assignment because of an extremely
28824# bizarre bug on SunOS 4.1.3.
28825if $ac_need_defaults; then
28826  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28827  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28828  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28829  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28830fi
28831
28832# Have a temporary directory for convenience.  Make it in the build tree
28833# simply because there is no reason against having it here, and in addition,
28834# creating and moving files from /tmp can sometimes cause problems.
28835# Hook for its removal unless debugging.
28836# Note that there is a small window in which the directory will not be cleaned:
28837# after its creation but before its name has been assigned to `$tmp'.
28838$debug ||
28839{
28840  tmp=
28841  trap 'exit_status=$?
28842  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28843' 0
28844  trap 'as_fn_exit 1' 1 2 13 15
28845}
28846# Create a (secure) tmp directory for tmp files.
28847
28848{
28849  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28850  test -n "$tmp" && test -d "$tmp"
28851}  ||
28852{
28853  tmp=./conf$$-$RANDOM
28854  (umask 077 && mkdir "$tmp")
28855} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28856
28857# Set up the scripts for CONFIG_FILES section.
28858# No need to generate them if there are no CONFIG_FILES.
28859# This happens for instance with `./config.status config.h'.
28860if test -n "$CONFIG_FILES"; then
28861
28862if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28863  ac_cs_awk_getline=:
28864  ac_cs_awk_pipe_init=
28865  ac_cs_awk_read_file='
28866      while ((getline aline < (F[key])) > 0)
28867	print(aline)
28868      close(F[key])'
28869  ac_cs_awk_pipe_fini=
28870else
28871  ac_cs_awk_getline=false
28872  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28873  ac_cs_awk_read_file='
28874      print "|#_!!_#|"
28875      print "cat " F[key] " &&"
28876      '$ac_cs_awk_pipe_init
28877  # The final `:' finishes the AND list.
28878  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28879fi
28880ac_cr=`echo X | tr X '\015'`
28881# On cygwin, bash can eat \r inside `` if the user requested igncr.
28882# But we know of no other shell where ac_cr would be empty at this
28883# point, so we can use a bashism as a fallback.
28884if test "x$ac_cr" = x; then
28885  eval ac_cr=\$\'\\r\'
28886fi
28887ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28888if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28889  ac_cs_awk_cr='\r'
28890else
28891  ac_cs_awk_cr=$ac_cr
28892fi
28893
28894echo 'BEGIN {' >"$tmp/subs1.awk" &&
28895_ACEOF
28896
28897# Create commands to substitute file output variables.
28898{
28899  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28900  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28901  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28902  echo "_ACAWK" &&
28903  echo "_ACEOF"
28904} >conf$$files.sh &&
28905. ./conf$$files.sh ||
28906  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28907rm -f conf$$files.sh
28908
28909{
28910  echo "cat >conf$$subs.awk <<_ACEOF" &&
28911  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28912  echo "_ACEOF"
28913} >conf$$subs.sh ||
28914  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28915ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28916ac_delim='%!_!# '
28917for ac_last_try in false false false false false :; do
28918  . ./conf$$subs.sh ||
28919    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28920
28921  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28922  if test $ac_delim_n = $ac_delim_num; then
28923    break
28924  elif $ac_last_try; then
28925    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28926  else
28927    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28928  fi
28929done
28930rm -f conf$$subs.sh
28931
28932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28933cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28934_ACEOF
28935sed -n '
28936h
28937s/^/S["/; s/!.*/"]=/
28938p
28939g
28940s/^[^!]*!//
28941:repl
28942t repl
28943s/'"$ac_delim"'$//
28944t delim
28945:nl
28946h
28947s/\(.\{148\}\).*/\1/
28948t more1
28949s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28950p
28951n
28952b repl
28953:more1
28954s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28955p
28956g
28957s/.\{148\}//
28958t nl
28959:delim
28960h
28961s/\(.\{148\}\).*/\1/
28962t more2
28963s/["\\]/\\&/g; s/^/"/; s/$/"/
28964p
28965b
28966:more2
28967s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28968p
28969g
28970s/.\{148\}//
28971t delim
28972' <conf$$subs.awk | sed '
28973/^[^""]/{
28974  N
28975  s/\n//
28976}
28977' >>$CONFIG_STATUS || ac_write_fail=1
28978rm -f conf$$subs.awk
28979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28980_ACAWK
28981cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28982  for (key in S) S_is_set[key] = 1
28983  FS = ""
28984  \$ac_cs_awk_pipe_init
28985}
28986{
28987  line = $ 0
28988  nfields = split(line, field, "@")
28989  substed = 0
28990  len = length(field[1])
28991  for (i = 2; i < nfields; i++) {
28992    key = field[i]
28993    keylen = length(key)
28994    if (S_is_set[key]) {
28995      value = S[key]
28996      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28997      len += length(value) + length(field[++i])
28998      substed = 1
28999    } else
29000      len += 1 + keylen
29001  }
29002  if (nfields == 3 && !substed) {
29003    key = field[2]
29004    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
29005      \$ac_cs_awk_read_file
29006      next
29007    }
29008  }
29009  print line
29010}
29011\$ac_cs_awk_pipe_fini
29012_ACAWK
29013_ACEOF
29014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29015if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29016  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29017else
29018  cat
29019fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29020  || as_fn_error "could not setup config files machinery" "$LINENO" 5
29021_ACEOF
29022
29023# VPATH may cause trouble with some makes, so we remove $(srcdir),
29024# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29025# trailing colons and then remove the whole line if VPATH becomes empty
29026# (actually we leave an empty line to preserve line numbers).
29027if test "x$srcdir" = x.; then
29028  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
29029s/:*\$(srcdir):*/:/
29030s/:*\${srcdir}:*/:/
29031s/:*@srcdir@:*/:/
29032s/^\([^=]*=[	 ]*\):*/\1/
29033s/:*$//
29034s/^[^=]*=[	 ]*$//
29035}'
29036fi
29037
29038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29039fi # test -n "$CONFIG_FILES"
29040
29041# Set up the scripts for CONFIG_HEADERS section.
29042# No need to generate them if there are no CONFIG_HEADERS.
29043# This happens for instance with `./config.status Makefile'.
29044if test -n "$CONFIG_HEADERS"; then
29045cat >"$tmp/defines.awk" <<\_ACAWK ||
29046BEGIN {
29047_ACEOF
29048
29049# Transform confdefs.h into an awk script `defines.awk', embedded as
29050# here-document in config.status, that substitutes the proper values into
29051# config.h.in to produce config.h.
29052
29053# Create a delimiter string that does not exist in confdefs.h, to ease
29054# handling of long lines.
29055ac_delim='%!_!# '
29056for ac_last_try in false false :; do
29057  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29058  if test -z "$ac_t"; then
29059    break
29060  elif $ac_last_try; then
29061    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29062  else
29063    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29064  fi
29065done
29066
29067# For the awk script, D is an array of macro values keyed by name,
29068# likewise P contains macro parameters if any.  Preserve backslash
29069# newline sequences.
29070
29071ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29072sed -n '
29073s/.\{148\}/&'"$ac_delim"'/g
29074t rset
29075:rset
29076s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
29077t def
29078d
29079:def
29080s/\\$//
29081t bsnl
29082s/["\\]/\\&/g
29083s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29084D["\1"]=" \3"/p
29085s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29086d
29087:bsnl
29088s/["\\]/\\&/g
29089s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29090D["\1"]=" \3\\\\\\n"\\/p
29091t cont
29092s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29093t cont
29094d
29095:cont
29096n
29097s/.\{148\}/&'"$ac_delim"'/g
29098t clear
29099:clear
29100s/\\$//
29101t bsnlc
29102s/["\\]/\\&/g; s/^/"/; s/$/"/p
29103d
29104:bsnlc
29105s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29106b cont
29107' <confdefs.h | sed '
29108s/'"$ac_delim"'/"\\\
29109"/g' >>$CONFIG_STATUS || ac_write_fail=1
29110
29111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29112  for (key in D) D_is_set[key] = 1
29113  FS = ""
29114}
29115/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29116  line = \$ 0
29117  split(line, arg, " ")
29118  if (arg[1] == "#") {
29119    defundef = arg[2]
29120    mac1 = arg[3]
29121  } else {
29122    defundef = substr(arg[1], 2)
29123    mac1 = arg[2]
29124  }
29125  split(mac1, mac2, "(") #)
29126  macro = mac2[1]
29127  prefix = substr(line, 1, index(line, defundef) - 1)
29128  if (D_is_set[macro]) {
29129    # Preserve the white space surrounding the "#".
29130    print prefix "define", macro P[macro] D[macro]
29131    next
29132  } else {
29133    # Replace #undef with comments.  This is necessary, for example,
29134    # in the case of _POSIX_SOURCE, which is predefined and required
29135    # on some systems where configure will not decide to define it.
29136    if (defundef == "undef") {
29137      print "/*", prefix defundef, macro, "*/"
29138      next
29139    }
29140  }
29141}
29142{ print }
29143_ACAWK
29144_ACEOF
29145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29146  as_fn_error "could not setup config headers machinery" "$LINENO" 5
29147fi # test -n "$CONFIG_HEADERS"
29148
29149
29150eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
29151shift
29152for ac_tag
29153do
29154  case $ac_tag in
29155  :[FHLC]) ac_mode=$ac_tag; continue;;
29156  esac
29157  case $ac_mode$ac_tag in
29158  :[FHL]*:*);;
29159  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29160  :[FH]-) ac_tag=-:-;;
29161  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29162  esac
29163  ac_save_IFS=$IFS
29164  IFS=:
29165  set x $ac_tag
29166  IFS=$ac_save_IFS
29167  shift
29168  ac_file=$1
29169  shift
29170
29171  case $ac_mode in
29172  :L) ac_source=$1;;
29173  :[FH])
29174    ac_file_inputs=
29175    for ac_f
29176    do
29177      case $ac_f in
29178      -) ac_f="$tmp/stdin";;
29179      *) # Look for the file first in the build tree, then in the source tree
29180	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29181	 # because $ac_f cannot contain `:'.
29182	 test -f "$ac_f" ||
29183	   case $ac_f in
29184	   [\\/$]*) false;;
29185	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29186	   esac ||
29187	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29188      esac
29189      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29190      as_fn_append ac_file_inputs " '$ac_f'"
29191    done
29192
29193    # Let's still pretend it is `configure' which instantiates (i.e., don't
29194    # use $as_me), people would be surprised to read:
29195    #    /* config.h.  Generated by config.status.  */
29196    configure_input='Generated from '`
29197	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29198	`' by configure.'
29199    if test x"$ac_file" != x-; then
29200      configure_input="$ac_file.  $configure_input"
29201      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29202$as_echo "$as_me: creating $ac_file" >&6;}
29203    fi
29204    # Neutralize special characters interpreted by sed in replacement strings.
29205    case $configure_input in #(
29206    *\&* | *\|* | *\\* )
29207       ac_sed_conf_input=`$as_echo "$configure_input" |
29208       sed 's/[\\\\&|]/\\\\&/g'`;; #(
29209    *) ac_sed_conf_input=$configure_input;;
29210    esac
29211
29212    case $ac_tag in
29213    *:-:* | *:-) cat >"$tmp/stdin" \
29214      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29215    esac
29216    ;;
29217  esac
29218
29219  ac_dir=`$as_dirname -- "$ac_file" ||
29220$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29221	 X"$ac_file" : 'X\(//\)[^/]' \| \
29222	 X"$ac_file" : 'X\(//\)$' \| \
29223	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29224$as_echo X"$ac_file" |
29225    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29226	    s//\1/
29227	    q
29228	  }
29229	  /^X\(\/\/\)[^/].*/{
29230	    s//\1/
29231	    q
29232	  }
29233	  /^X\(\/\/\)$/{
29234	    s//\1/
29235	    q
29236	  }
29237	  /^X\(\/\).*/{
29238	    s//\1/
29239	    q
29240	  }
29241	  s/.*/./; q'`
29242  as_dir="$ac_dir"; as_fn_mkdir_p
29243  ac_builddir=.
29244
29245case "$ac_dir" in
29246.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29247*)
29248  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29249  # A ".." for each directory in $ac_dir_suffix.
29250  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29251  case $ac_top_builddir_sub in
29252  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29253  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29254  esac ;;
29255esac
29256ac_abs_top_builddir=$ac_pwd
29257ac_abs_builddir=$ac_pwd$ac_dir_suffix
29258# for backward compatibility:
29259ac_top_builddir=$ac_top_build_prefix
29260
29261case $srcdir in
29262  .)  # We are building in place.
29263    ac_srcdir=.
29264    ac_top_srcdir=$ac_top_builddir_sub
29265    ac_abs_top_srcdir=$ac_pwd ;;
29266  [\\/]* | ?:[\\/]* )  # Absolute name.
29267    ac_srcdir=$srcdir$ac_dir_suffix;
29268    ac_top_srcdir=$srcdir
29269    ac_abs_top_srcdir=$srcdir ;;
29270  *) # Relative name.
29271    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29272    ac_top_srcdir=$ac_top_build_prefix$srcdir
29273    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29274esac
29275ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29276
29277
29278  case $ac_mode in
29279  :F)
29280  #
29281  # CONFIG_FILE
29282  #
29283
29284_ACEOF
29285
29286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29287# If the template does not know about datarootdir, expand it.
29288# FIXME: This hack should be removed a few years after 2.60.
29289ac_datarootdir_hack=; ac_datarootdir_seen=
29290ac_sed_dataroot='
29291/datarootdir/ {
29292  p
29293  q
29294}
29295/@datadir@/p
29296/@docdir@/p
29297/@infodir@/p
29298/@localedir@/p
29299/@mandir@/p'
29300case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29301*datarootdir*) ac_datarootdir_seen=yes;;
29302*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29303  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29304$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29305_ACEOF
29306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29307  ac_datarootdir_hack='
29308  s&@datadir@&$datadir&g
29309  s&@docdir@&$docdir&g
29310  s&@infodir@&$infodir&g
29311  s&@localedir@&$localedir&g
29312  s&@mandir@&$mandir&g
29313  s&\\\${datarootdir}&$datarootdir&g' ;;
29314esac
29315_ACEOF
29316
29317# Neutralize VPATH when `$srcdir' = `.'.
29318# Shell code in configure.ac might set extrasub.
29319# FIXME: do we really want to maintain this feature?
29320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29321ac_sed_extra="$ac_vpsub
29322$extrasub
29323_ACEOF
29324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29325:t
29326/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29327s|@configure_input@|$ac_sed_conf_input|;t t
29328s&@top_builddir@&$ac_top_builddir_sub&;t t
29329s&@top_build_prefix@&$ac_top_build_prefix&;t t
29330s&@srcdir@&$ac_srcdir&;t t
29331s&@abs_srcdir@&$ac_abs_srcdir&;t t
29332s&@top_srcdir@&$ac_top_srcdir&;t t
29333s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29334s&@builddir@&$ac_builddir&;t t
29335s&@abs_builddir@&$ac_abs_builddir&;t t
29336s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29337$ac_datarootdir_hack
29338"
29339eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29340if $ac_cs_awk_getline; then
29341  $AWK -f "$tmp/subs.awk"
29342else
29343  $AWK -f "$tmp/subs.awk" | $SHELL
29344fi >$tmp/out \
29345  || as_fn_error "could not create $ac_file" "$LINENO" 5
29346
29347test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29348  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29349  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29350  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29351which seems to be undefined.  Please make sure it is defined." >&5
29352$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29353which seems to be undefined.  Please make sure it is defined." >&2;}
29354
29355  rm -f "$tmp/stdin"
29356  case $ac_file in
29357  -) cat "$tmp/out" && rm -f "$tmp/out";;
29358  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29359  esac \
29360  || as_fn_error "could not create $ac_file" "$LINENO" 5
29361 ;;
29362  :H)
29363  #
29364  # CONFIG_HEADER
29365  #
29366  if test x"$ac_file" != x-; then
29367    {
29368      $as_echo "/* $configure_input  */" \
29369      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29370    } >"$tmp/config.h" \
29371      || as_fn_error "could not create $ac_file" "$LINENO" 5
29372    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29373      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29374$as_echo "$as_me: $ac_file is unchanged" >&6;}
29375    else
29376      rm -f "$ac_file"
29377      mv "$tmp/config.h" "$ac_file" \
29378	|| as_fn_error "could not create $ac_file" "$LINENO" 5
29379    fi
29380  else
29381    $as_echo "/* $configure_input  */" \
29382      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29383      || as_fn_error "could not create -" "$LINENO" 5
29384  fi
29385 ;;
29386  :L)
29387  #
29388  # CONFIG_LINK
29389  #
29390
29391  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29392    :
29393  else
29394    # Prefer the file from the source tree if names are identical.
29395    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29396      ac_source=$srcdir/$ac_source
29397    fi
29398
29399    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29400$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29401
29402    if test ! -r "$ac_source"; then
29403      as_fn_error "$ac_source: file not found" "$LINENO" 5
29404    fi
29405    rm -f "$ac_file"
29406
29407    # Try a relative symlink, then a hard link, then a copy.
29408    case $srcdir in
29409    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29410	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29411    esac
29412    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29413      ln "$ac_source" "$ac_file" 2>/dev/null ||
29414      cp -p "$ac_source" "$ac_file" ||
29415      as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29416  fi
29417 ;;
29418  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29419$as_echo "$as_me: executing $ac_file commands" >&6;}
29420 ;;
29421  esac
29422
29423
29424  case $ac_file$ac_mode in
29425    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29426    "gccdepdir":C)
29427  ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29428  for lang in $subdirs c-family common
29429  do
29430      ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29431  done ;;
29432    "as":F) chmod +x as ;;
29433    "collect-ld":F) chmod +x collect-ld ;;
29434    "nm":F) chmod +x nm ;;
29435    "default":C)
29436case ${CONFIG_HEADERS} in
29437  *auto-host.h:config.in*)
29438  echo > cstamp-h ;;
29439esac
29440# Make sure all the subdirs exist.
29441for d in $subdirs doc build common c-family
29442do
29443    test -d $d || mkdir $d
29444done
29445 ;;
29446
29447  esac
29448done # for ac_tag
29449
29450
29451as_fn_exit 0
29452_ACEOF
29453ac_clean_files=$ac_clean_files_save
29454
29455test $ac_write_fail = 0 ||
29456  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29457
29458
29459# configure is writing to config.log, and then calls config.status.
29460# config.status does its own redirection, appending to config.log.
29461# Unfortunately, on DOS this fails, as config.log is still kept open
29462# by configure, so config.status won't be able to write to it; its
29463# output is simply discarded.  So we exec the FD to /dev/null,
29464# effectively closing config.log, so it can be properly (re)opened and
29465# appended to by config.status.  When coming back to configure, we
29466# need to make the FD available again.
29467if test "$no_create" != yes; then
29468  ac_cs_success=:
29469  ac_config_status_args=
29470  test "$silent" = yes &&
29471    ac_config_status_args="$ac_config_status_args --quiet"
29472  exec 5>/dev/null
29473  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29474  exec 5>>config.log
29475  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29476  # would make configure fail if this is the last instruction.
29477  $ac_cs_success || as_fn_exit $?
29478fi
29479if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29480  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29481$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29482fi
29483
29484
29485