1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
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.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="tree.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
634CET_HOST_FLAGS
635NO_PIE_FLAG
636NO_PIE_CFLAGS
637enable_default_pie
638PICFLAG
639enable_host_shared
640enable_plugin
641pluginlibs
642ISLINC
643ISLLIBS
644GMPINC
645GMPLIBS
646target_cpu_default
647d_target_objs
648fortran_target_objs
649cxx_target_objs
650c_target_objs
651use_gcc_stdint
652xm_defines
653xm_include_list
654xm_file_list
655tm_d_include_list
656tm_d_file_list
657tm_p_include_list
658tm_p_file_list
659tm_defines
660tm_include_list
661tm_file_list
662common_out_object_file
663common_out_file
664out_object_file
665out_file
666objc_boehm_gc
667md_file
668local_prefix
669lang_tree_files
670lang_specs_files
671lang_opt_files
672install
673out_host_hook_obj
674host_xm_defines
675host_xm_include_list
676host_xm_file_list
677host_exeext
678gcc_gxx_libcxx_include_dir_add_sysroot
679gcc_gxx_libcxx_include_dir
680gcc_gxx_include_dir_add_sysroot
681gcc_gxx_include_dir
682gcc_config_arguments
683float_h_file
684extra_programs
685extra_objs
686extra_headers_list
687user_headers_inc_next_post
688user_headers_inc_next_pre
689extra_gcc_objs
690TM_MULTILIB_EXCEPTIONS_CONFIG
691TM_MULTILIB_CONFIG
692TM_ENDIAN_CONFIG
693tmake_file
694xmake_file
695cpp_install_dir
696selftest_languages
697check_languages
698build_file_translate
699build_xm_defines
700build_xm_include_list
701build_xm_file_list
702build_install_headers_dir
703build_exeext
704all_selected_languages
705all_languages
706all_lang_makefrags
707all_lang_configurefrags
708all_gtfiles
709all_compilers
710srcdir
711subdirs
712dollar
713gcc_tooldir
714enable_lto
715DO_LINK_SERIALIZATION
716DO_LINK_MUTEX
717MAINT
718zlibinc
719zlibdir
720HOST_LIBS
721enable_default_ssp
722thin_archive_support
723ld_soname_option
724ld_version_script_option
725libgcc_visibility
726gcc_cv_otool
727gcc_cv_readelf
728gcc_cv_objdump
729ORIGINAL_NM_FOR_TARGET
730gcc_cv_nm
731ORIGINAL_LD_GOLD_FOR_TARGET
732ORIGINAL_LD_BFD_FOR_TARGET
733ORIGINAL_LD_FOR_TARGET
734ORIGINAL_PLUGIN_LD_FOR_TARGET
735gcc_cv_ld
736ORIGINAL_AS_FOR_TARGET
737gcc_cv_as
738enable_fast_install
739objdir
740OTOOL64
741OTOOL
742LIPO
743NMEDIT
744DSYMUTIL
745STRIP
746OBJDUMP
747ac_ct_DUMPBIN
748DUMPBIN
749LD
750FGREP
751SED
752LIBTOOL
753collect2
754NO_PIE_FLAG_FOR_BUILD
755NO_PIE_CFLAGS_FOR_BUILD
756BUILD_NO_PIE_FLAG
757BUILD_NO_PIE_CFLAGS
758STMP_FIXINC
759BUILD_LDFLAGS
760BUILD_CXXFLAGS
761BUILD_CFLAGS
762CXX_FOR_BUILD
763CC_FOR_BUILD
764inhibit_libc
765BUILD_SYSTEM_HEADER_DIR
766SYSTEM_HEADER_DIR
767ALL
768CROSS
769CATOBJEXT
770GENCAT
771INSTOBJEXT
772DATADIRNAME
773CATALOGS
774POSUB
775GMSGFMT
776XGETTEXT
777INCINTL
778LIBINTL_DEP
779LIBINTL
780USE_NLS
781get_gcc_base_ver
782HAVE_AUTO_BUILD
783extra_opt_files
784extra_modes_file
785NATIVE_SYSTEM_HEADER_DIR
786objext
787manext
788LIBICONV_DEP
789LTLIBICONV
790LIBICONV
791ZSTD_LDFLAGS
792ZSTD_CPPFLAGS
793ZSTD_LIB
794ZSTD_INCLUDE
795DL_LIB
796LDEXP_LIB
797NETLIBS
798EXTRA_GCC_LIBS
799GNAT_LIBEXC
800COLLECT2_LIBS
801CXXDEPMODE
802DEPDIR
803am__leading_dot
804doc_build_sys
805AR
806NM
807BISON
808FLEX
809GENERATED_MANPAGES
810BUILD_INFO
811MAKEINFO
812have_mktemp_command
813make_compare_target
814INSTALL_DATA
815INSTALL_PROGRAM
816INSTALL
817ranlib_flags
818RANLIB
819LN
820LN_S
821AWK
822SET_MAKE
823omp_device_property_deps
824omp_device_properties
825accel_dir_suffix
826real_target_noncanonical
827enable_as_accelerator
828gnat_install_lib
829REPORT_BUGS_TEXI
830REPORT_BUGS_TO
831PKGVERSION
832CONFIGURE_SPECS
833enable_gcov
834enable_shared
835enable_fixed_point
836enable_decimal_float
837with_float
838with_cpu
839enable_multiarch
840enable_multilib
841coverage_flags
842valgrind_command
843valgrind_path_defines
844valgrind_path
845TREECHECKING
846nocommon_flag
847noexception_flags
848warn_cxxflags
849warn_cflags
850c_strict_warn
851strict_warn
852c_loose_warn
853loose_warn
854aliasing_flags
855CPP
856EGREP
857GREP
858CXXCPP
859PICFLAG_FOR_TARGET
860GNATMAKE
861GNATBIND
862ac_ct_CXX
863CXXFLAGS
864CXX
865OBJEXT
866EXEEXT
867ac_ct_CC
868CPPFLAGS
869LDFLAGS
870CFLAGS
871CC
872GENINSRC
873CROSS_SYSTEM_HEADER_DIR
874TARGET_SYSTEM_ROOT_DEFINE
875TARGET_SYSTEM_ROOT
876SYSROOT_CFLAGS_FOR_TARGET
877target_subdir
878host_subdir
879build_subdir
880build_libsubdir
881target_noncanonical
882host_noncanonical
883target_os
884target_vendor
885target_cpu
886target
887host_os
888host_vendor
889host_cpu
890host
891build_os
892build_vendor
893build_cpu
894build
895target_alias
896host_alias
897build_alias
898LIBS
899ECHO_T
900ECHO_N
901ECHO_C
902DEFS
903mandir
904localedir
905libdir
906psdir
907pdfdir
908dvidir
909htmldir
910infodir
911docdir
912oldincludedir
913includedir
914localstatedir
915sharedstatedir
916sysconfdir
917datadir
918datarootdir
919libexecdir
920sbindir
921bindir
922program_transform_name
923prefix
924exec_prefix
925PACKAGE_URL
926PACKAGE_BUGREPORT
927PACKAGE_STRING
928PACKAGE_VERSION
929PACKAGE_TARNAME
930PACKAGE_NAME
931PATH_SEPARATOR
932SHELL'
933ac_subst_files='option_includes
934language_hooks'
935ac_user_opts='
936enable_option_checking
937with_build_libsubdir
938with_local_prefix
939with_native_system_header_dir
940with_build_sysroot
941with_sysroot
942with_gxx_include_dir
943with_gxx_libcxx_include_dir
944with_cpp_install_dir
945enable_generated_files_in_srcdir
946with_gnu_ld
947with_ld
948with_demangler_in_ld
949with_gnu_as
950with_as
951enable_largefile
952enable_build_format_warnings
953enable_werror_always
954enable_checking
955enable_coverage
956enable_gather_detailed_mem_stats
957enable_valgrind_annotations
958with_stabs
959enable_multilib
960enable_multiarch
961with_stack_clash_protection_guard_size
962enable___cxa_atexit
963enable_decimal_float
964enable_fixed_point
965enable_threads
966enable_tls
967enable_vtable_verify
968enable_analyzer
969enable_objc_gc
970with_dwarf2
971enable_shared
972enable_gcov
973with_specs
974with_pkgversion
975with_bugurl
976with_documentation_root_url
977with_changes_root_url
978enable_languages
979with_multilib_list
980with_multilib_generator
981with_zstd
982with_zstd_include
983with_zstd_lib
984enable_rpath
985with_libiconv_prefix
986with_libiconv_type
987enable_sjlj_exceptions
988with_gcc_major_version_only
989enable_secureplt
990enable_mingw_wildcard
991enable_large_address_aware
992enable_leading_mingw64_underscores
993enable_cld
994enable_frame_pointer
995enable_win32_registry
996enable_static
997with_pic
998enable_fast_install
999enable_libtool_lock
1000enable_ld
1001enable_gold
1002with_plugin_ld
1003enable_gnu_indirect_function
1004enable_initfini_array
1005enable_comdat
1006enable_newlib_nano_formatted_io
1007enable_standard_branch_protection
1008enable_fix_cortex_a53_835769
1009enable_fix_cortex_a53_843419
1010with_glibc_version
1011enable_gnu_unique_object
1012enable_linker_build_id
1013enable_libssp
1014enable_default_ssp
1015with_long_double_128
1016with_long_double_format
1017with_gc
1018with_system_zlib
1019enable_maintainer_mode
1020enable_link_mutex
1021enable_link_serialization
1022enable_version_specific_runtime_libs
1023enable_plugin
1024enable_host_shared
1025enable_libquadmath_support
1026with_linker_hash_style
1027with_diagnostics_color
1028with_diagnostics_urls
1029enable_default_pie
1030enable_cet
1031enable_s390_excess_float_precision
1032'
1033      ac_precious_vars='build_alias
1034host_alias
1035target_alias
1036CC
1037CFLAGS
1038LDFLAGS
1039LIBS
1040CPPFLAGS
1041CXX
1042CXXFLAGS
1043CCC
1044CXXCPP
1045CPP
1046GMPLIBS
1047GMPINC
1048ISLLIBS
1049ISLINC'
1050
1051
1052# Initialize some variables set by options.
1053ac_init_help=
1054ac_init_version=false
1055ac_unrecognized_opts=
1056ac_unrecognized_sep=
1057# The variables have the same names as the options, with
1058# dashes changed to underlines.
1059cache_file=/dev/null
1060exec_prefix=NONE
1061no_create=
1062no_recursion=
1063prefix=NONE
1064program_prefix=NONE
1065program_suffix=NONE
1066program_transform_name=s,x,x,
1067silent=
1068site=
1069srcdir=
1070verbose=
1071x_includes=NONE
1072x_libraries=NONE
1073
1074# Installation directory options.
1075# These are left unexpanded so users can "make install exec_prefix=/foo"
1076# and all the variables that are supposed to be based on exec_prefix
1077# by default will actually change.
1078# Use braces instead of parens because sh, perl, etc. also accept them.
1079# (The list follows the same order as the GNU Coding Standards.)
1080bindir='${exec_prefix}/bin'
1081sbindir='${exec_prefix}/sbin'
1082libexecdir='${exec_prefix}/libexec'
1083datarootdir='${prefix}/share'
1084datadir='${datarootdir}'
1085sysconfdir='${prefix}/etc'
1086sharedstatedir='${prefix}/com'
1087localstatedir='${prefix}/var'
1088includedir='${prefix}/include'
1089oldincludedir='/usr/include'
1090docdir='${datarootdir}/doc/${PACKAGE}'
1091infodir='${datarootdir}/info'
1092htmldir='${docdir}'
1093dvidir='${docdir}'
1094pdfdir='${docdir}'
1095psdir='${docdir}'
1096libdir='${exec_prefix}/lib'
1097localedir='${datarootdir}/locale'
1098mandir='${datarootdir}/man'
1099
1100ac_prev=
1101ac_dashdash=
1102for ac_option
1103do
1104  # If the previous option needs an argument, assign it.
1105  if test -n "$ac_prev"; then
1106    eval $ac_prev=\$ac_option
1107    ac_prev=
1108    continue
1109  fi
1110
1111  case $ac_option in
1112  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1113  *=)   ac_optarg= ;;
1114  *)    ac_optarg=yes ;;
1115  esac
1116
1117  # Accept the important Cygnus configure options, so we can diagnose typos.
1118
1119  case $ac_dashdash$ac_option in
1120  --)
1121    ac_dashdash=yes ;;
1122
1123  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1124    ac_prev=bindir ;;
1125  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1126    bindir=$ac_optarg ;;
1127
1128  -build | --build | --buil | --bui | --bu)
1129    ac_prev=build_alias ;;
1130  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1131    build_alias=$ac_optarg ;;
1132
1133  -cache-file | --cache-file | --cache-fil | --cache-fi \
1134  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1135    ac_prev=cache_file ;;
1136  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1137  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1138    cache_file=$ac_optarg ;;
1139
1140  --config-cache | -C)
1141    cache_file=config.cache ;;
1142
1143  -datadir | --datadir | --datadi | --datad)
1144    ac_prev=datadir ;;
1145  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1146    datadir=$ac_optarg ;;
1147
1148  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1149  | --dataroo | --dataro | --datar)
1150    ac_prev=datarootdir ;;
1151  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1152  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1153    datarootdir=$ac_optarg ;;
1154
1155  -disable-* | --disable-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid feature name: $ac_useropt"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"enable_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval enable_$ac_useropt=no ;;
1170
1171  -docdir | --docdir | --docdi | --doc | --do)
1172    ac_prev=docdir ;;
1173  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1174    docdir=$ac_optarg ;;
1175
1176  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1177    ac_prev=dvidir ;;
1178  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1179    dvidir=$ac_optarg ;;
1180
1181  -enable-* | --enable-*)
1182    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1183    # Reject names that are not valid shell variable names.
1184    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185      as_fn_error $? "invalid feature name: $ac_useropt"
1186    ac_useropt_orig=$ac_useropt
1187    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188    case $ac_user_opts in
1189      *"
1190"enable_$ac_useropt"
1191"*) ;;
1192      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1193	 ac_unrecognized_sep=', ';;
1194    esac
1195    eval enable_$ac_useropt=\$ac_optarg ;;
1196
1197  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1198  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1199  | --exec | --exe | --ex)
1200    ac_prev=exec_prefix ;;
1201  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1202  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1203  | --exec=* | --exe=* | --ex=*)
1204    exec_prefix=$ac_optarg ;;
1205
1206  -gas | --gas | --ga | --g)
1207    # Obsolete; use --with-gas.
1208    with_gas=yes ;;
1209
1210  -help | --help | --hel | --he | -h)
1211    ac_init_help=long ;;
1212  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1213    ac_init_help=recursive ;;
1214  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1215    ac_init_help=short ;;
1216
1217  -host | --host | --hos | --ho)
1218    ac_prev=host_alias ;;
1219  -host=* | --host=* | --hos=* | --ho=*)
1220    host_alias=$ac_optarg ;;
1221
1222  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1223    ac_prev=htmldir ;;
1224  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1225  | --ht=*)
1226    htmldir=$ac_optarg ;;
1227
1228  -includedir | --includedir | --includedi | --included | --include \
1229  | --includ | --inclu | --incl | --inc)
1230    ac_prev=includedir ;;
1231  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1232  | --includ=* | --inclu=* | --incl=* | --inc=*)
1233    includedir=$ac_optarg ;;
1234
1235  -infodir | --infodir | --infodi | --infod | --info | --inf)
1236    ac_prev=infodir ;;
1237  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1238    infodir=$ac_optarg ;;
1239
1240  -libdir | --libdir | --libdi | --libd)
1241    ac_prev=libdir ;;
1242  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1243    libdir=$ac_optarg ;;
1244
1245  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1246  | --libexe | --libex | --libe)
1247    ac_prev=libexecdir ;;
1248  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1249  | --libexe=* | --libex=* | --libe=*)
1250    libexecdir=$ac_optarg ;;
1251
1252  -localedir | --localedir | --localedi | --localed | --locale)
1253    ac_prev=localedir ;;
1254  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1255    localedir=$ac_optarg ;;
1256
1257  -localstatedir | --localstatedir | --localstatedi | --localstated \
1258  | --localstate | --localstat | --localsta | --localst | --locals)
1259    ac_prev=localstatedir ;;
1260  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1261  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1262    localstatedir=$ac_optarg ;;
1263
1264  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1265    ac_prev=mandir ;;
1266  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1267    mandir=$ac_optarg ;;
1268
1269  -nfp | --nfp | --nf)
1270    # Obsolete; use --without-fp.
1271    with_fp=no ;;
1272
1273  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1274  | --no-cr | --no-c | -n)
1275    no_create=yes ;;
1276
1277  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1278  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1279    no_recursion=yes ;;
1280
1281  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1282  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1283  | --oldin | --oldi | --old | --ol | --o)
1284    ac_prev=oldincludedir ;;
1285  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1286  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1287  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1288    oldincludedir=$ac_optarg ;;
1289
1290  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1291    ac_prev=prefix ;;
1292  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1293    prefix=$ac_optarg ;;
1294
1295  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1296  | --program-pre | --program-pr | --program-p)
1297    ac_prev=program_prefix ;;
1298  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1299  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1300    program_prefix=$ac_optarg ;;
1301
1302  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1303  | --program-suf | --program-su | --program-s)
1304    ac_prev=program_suffix ;;
1305  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1306  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1307    program_suffix=$ac_optarg ;;
1308
1309  -program-transform-name | --program-transform-name \
1310  | --program-transform-nam | --program-transform-na \
1311  | --program-transform-n | --program-transform- \
1312  | --program-transform | --program-transfor \
1313  | --program-transfo | --program-transf \
1314  | --program-trans | --program-tran \
1315  | --progr-tra | --program-tr | --program-t)
1316    ac_prev=program_transform_name ;;
1317  -program-transform-name=* | --program-transform-name=* \
1318  | --program-transform-nam=* | --program-transform-na=* \
1319  | --program-transform-n=* | --program-transform-=* \
1320  | --program-transform=* | --program-transfor=* \
1321  | --program-transfo=* | --program-transf=* \
1322  | --program-trans=* | --program-tran=* \
1323  | --progr-tra=* | --program-tr=* | --program-t=*)
1324    program_transform_name=$ac_optarg ;;
1325
1326  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1327    ac_prev=pdfdir ;;
1328  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1329    pdfdir=$ac_optarg ;;
1330
1331  -psdir | --psdir | --psdi | --psd | --ps)
1332    ac_prev=psdir ;;
1333  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1334    psdir=$ac_optarg ;;
1335
1336  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1337  | -silent | --silent | --silen | --sile | --sil)
1338    silent=yes ;;
1339
1340  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1341    ac_prev=sbindir ;;
1342  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1343  | --sbi=* | --sb=*)
1344    sbindir=$ac_optarg ;;
1345
1346  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1347  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1348  | --sharedst | --shareds | --shared | --share | --shar \
1349  | --sha | --sh)
1350    ac_prev=sharedstatedir ;;
1351  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1352  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1353  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1354  | --sha=* | --sh=*)
1355    sharedstatedir=$ac_optarg ;;
1356
1357  -site | --site | --sit)
1358    ac_prev=site ;;
1359  -site=* | --site=* | --sit=*)
1360    site=$ac_optarg ;;
1361
1362  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1363    ac_prev=srcdir ;;
1364  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1365    srcdir=$ac_optarg ;;
1366
1367  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1368  | --syscon | --sysco | --sysc | --sys | --sy)
1369    ac_prev=sysconfdir ;;
1370  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1371  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1372    sysconfdir=$ac_optarg ;;
1373
1374  -target | --target | --targe | --targ | --tar | --ta | --t)
1375    ac_prev=target_alias ;;
1376  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1377    target_alias=$ac_optarg ;;
1378
1379  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1380    verbose=yes ;;
1381
1382  -version | --version | --versio | --versi | --vers | -V)
1383    ac_init_version=: ;;
1384
1385  -with-* | --with-*)
1386    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1387    # Reject names that are not valid shell variable names.
1388    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1389      as_fn_error $? "invalid package name: $ac_useropt"
1390    ac_useropt_orig=$ac_useropt
1391    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1392    case $ac_user_opts in
1393      *"
1394"with_$ac_useropt"
1395"*) ;;
1396      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1397	 ac_unrecognized_sep=', ';;
1398    esac
1399    eval with_$ac_useropt=\$ac_optarg ;;
1400
1401  -without-* | --without-*)
1402    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1403    # Reject names that are not valid shell variable names.
1404    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1405      as_fn_error $? "invalid package name: $ac_useropt"
1406    ac_useropt_orig=$ac_useropt
1407    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1408    case $ac_user_opts in
1409      *"
1410"with_$ac_useropt"
1411"*) ;;
1412      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1413	 ac_unrecognized_sep=', ';;
1414    esac
1415    eval with_$ac_useropt=no ;;
1416
1417  --x)
1418    # Obsolete; use --with-x.
1419    with_x=yes ;;
1420
1421  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1422  | --x-incl | --x-inc | --x-in | --x-i)
1423    ac_prev=x_includes ;;
1424  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1425  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1426    x_includes=$ac_optarg ;;
1427
1428  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1429  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1430    ac_prev=x_libraries ;;
1431  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1432  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1433    x_libraries=$ac_optarg ;;
1434
1435  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1436Try \`$0 --help' for more information"
1437    ;;
1438
1439  *=*)
1440    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1441    # Reject names that are not valid shell variable names.
1442    case $ac_envvar in #(
1443      '' | [0-9]* | *[!_$as_cr_alnum]* )
1444      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1445    esac
1446    eval $ac_envvar=\$ac_optarg
1447    export $ac_envvar ;;
1448
1449  *)
1450    # FIXME: should be removed in autoconf 3.0.
1451    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1452    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1453      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1454    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1455    ;;
1456
1457  esac
1458done
1459
1460if test -n "$ac_prev"; then
1461  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1462  as_fn_error $? "missing argument to $ac_option"
1463fi
1464
1465if test -n "$ac_unrecognized_opts"; then
1466  case $enable_option_checking in
1467    no) ;;
1468    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1469    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1470  esac
1471fi
1472
1473# Check all directory arguments for consistency.
1474for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1475		datadir sysconfdir sharedstatedir localstatedir includedir \
1476		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1477		libdir localedir mandir
1478do
1479  eval ac_val=\$$ac_var
1480  # Remove trailing slashes.
1481  case $ac_val in
1482    */ )
1483      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1484      eval $ac_var=\$ac_val;;
1485  esac
1486  # Be sure to have absolute directory names.
1487  case $ac_val in
1488    [\\/$]* | ?:[\\/]* )  continue;;
1489    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1490  esac
1491  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1492done
1493
1494# There might be people who depend on the old broken behavior: `$host'
1495# used to hold the argument of --host etc.
1496# FIXME: To remove some day.
1497build=$build_alias
1498host=$host_alias
1499target=$target_alias
1500
1501# FIXME: To remove some day.
1502if test "x$host_alias" != x; then
1503  if test "x$build_alias" = x; then
1504    cross_compiling=maybe
1505  elif test "x$build_alias" != "x$host_alias"; then
1506    cross_compiling=yes
1507  fi
1508fi
1509
1510ac_tool_prefix=
1511test -n "$host_alias" && ac_tool_prefix=$host_alias-
1512
1513test "$silent" = yes && exec 6>/dev/null
1514
1515
1516ac_pwd=`pwd` && test -n "$ac_pwd" &&
1517ac_ls_di=`ls -di .` &&
1518ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1519  as_fn_error $? "working directory cannot be determined"
1520test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1521  as_fn_error $? "pwd does not report name of working directory"
1522
1523
1524# Find the source files, if location was not specified.
1525if test -z "$srcdir"; then
1526  ac_srcdir_defaulted=yes
1527  # Try the directory containing this script, then the parent directory.
1528  ac_confdir=`$as_dirname -- "$as_myself" ||
1529$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1530	 X"$as_myself" : 'X\(//\)[^/]' \| \
1531	 X"$as_myself" : 'X\(//\)$' \| \
1532	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1533$as_echo X"$as_myself" |
1534    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1535	    s//\1/
1536	    q
1537	  }
1538	  /^X\(\/\/\)[^/].*/{
1539	    s//\1/
1540	    q
1541	  }
1542	  /^X\(\/\/\)$/{
1543	    s//\1/
1544	    q
1545	  }
1546	  /^X\(\/\).*/{
1547	    s//\1/
1548	    q
1549	  }
1550	  s/.*/./; q'`
1551  srcdir=$ac_confdir
1552  if test ! -r "$srcdir/$ac_unique_file"; then
1553    srcdir=..
1554  fi
1555else
1556  ac_srcdir_defaulted=no
1557fi
1558if test ! -r "$srcdir/$ac_unique_file"; then
1559  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1560  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1561fi
1562ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1563ac_abs_confdir=`(
1564	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1565	pwd)`
1566# When building in place, set srcdir=.
1567if test "$ac_abs_confdir" = "$ac_pwd"; then
1568  srcdir=.
1569fi
1570# Remove unnecessary trailing slashes from srcdir.
1571# Double slashes in file names in object file debugging info
1572# mess up M-x gdb in Emacs.
1573case $srcdir in
1574*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1575esac
1576for ac_var in $ac_precious_vars; do
1577  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1578  eval ac_env_${ac_var}_value=\$${ac_var}
1579  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1580  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1581done
1582
1583#
1584# Report the --help message.
1585#
1586if test "$ac_init_help" = "long"; then
1587  # Omit some internal or obsolete options to make the list less imposing.
1588  # This message is too long to be a string in the A/UX 3.1 sh.
1589  cat <<_ACEOF
1590\`configure' configures this package to adapt to many kinds of systems.
1591
1592Usage: $0 [OPTION]... [VAR=VALUE]...
1593
1594To assign environment variables (e.g., CC, CFLAGS...), specify them as
1595VAR=VALUE.  See below for descriptions of some of the useful variables.
1596
1597Defaults for the options are specified in brackets.
1598
1599Configuration:
1600  -h, --help              display this help and exit
1601      --help=short        display options specific to this package
1602      --help=recursive    display the short help of all the included packages
1603  -V, --version           display version information and exit
1604  -q, --quiet, --silent   do not print \`checking ...' messages
1605      --cache-file=FILE   cache test results in FILE [disabled]
1606  -C, --config-cache      alias for \`--cache-file=config.cache'
1607  -n, --no-create         do not create output files
1608      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1609
1610Installation directories:
1611  --prefix=PREFIX         install architecture-independent files in PREFIX
1612                          [$ac_default_prefix]
1613  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1614                          [PREFIX]
1615
1616By default, \`make install' will install all the files in
1617\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1618an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1619for instance \`--prefix=\$HOME'.
1620
1621For better control, use the options below.
1622
1623Fine tuning of the installation directories:
1624  --bindir=DIR            user executables [EPREFIX/bin]
1625  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1626  --libexecdir=DIR        program executables [EPREFIX/libexec]
1627  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1628  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1629  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1630  --libdir=DIR            object code libraries [EPREFIX/lib]
1631  --includedir=DIR        C header files [PREFIX/include]
1632  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1633  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1634  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1635  --infodir=DIR           info documentation [DATAROOTDIR/info]
1636  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1637  --mandir=DIR            man documentation [DATAROOTDIR/man]
1638  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1639  --htmldir=DIR           html documentation [DOCDIR]
1640  --dvidir=DIR            dvi documentation [DOCDIR]
1641  --pdfdir=DIR            pdf documentation [DOCDIR]
1642  --psdir=DIR             ps documentation [DOCDIR]
1643_ACEOF
1644
1645  cat <<\_ACEOF
1646
1647Program names:
1648  --program-prefix=PREFIX            prepend PREFIX to installed program names
1649  --program-suffix=SUFFIX            append SUFFIX to installed program names
1650  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1651
1652System types:
1653  --build=BUILD     configure for building on BUILD [guessed]
1654  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1655  --target=TARGET   configure for building compilers for TARGET [HOST]
1656_ACEOF
1657fi
1658
1659if test -n "$ac_init_help"; then
1660
1661  cat <<\_ACEOF
1662
1663Optional Features:
1664  --disable-option-checking  ignore unrecognized --enable/--with options
1665  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1666  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1667  --enable-generated-files-in-srcdir
1668                          put copies of generated files in source dir intended
1669                          for creating source tarballs for users without
1670                          texinfo bison or flex
1671  --disable-largefile     omit support for large files
1672  --disable-build-format-warnings
1673                          don't use -Wformat while building GCC
1674  --enable-werror-always  enable -Werror despite compiler version
1675  --enable-checking[=LIST]
1676                          enable expensive run-time checks. With LIST, enable
1677                          only specific categories of checks. Categories are:
1678                          yes,no,all,none,release. Flags are:
1679                          assert,df,extra,fold,gc,gcac,gimple,misc,
1680                          rtlflag,rtl,runtime,tree,valgrind,types
1681  --enable-coverage[=LEVEL]
1682                          enable compiler's code coverage collection. Use to
1683                          measure compiler performance and locate unused parts
1684                          of the compiler. With LEVEL, specify optimization.
1685                          Values are opt, noopt, default is noopt
1686  --enable-gather-detailed-mem-stats
1687                          enable detailed memory allocation stats gathering
1688  --enable-valgrind-annotations
1689                          enable valgrind runtime interaction
1690  --enable-multilib       enable library support for multiple ABIs
1691  --enable-multiarch      enable support for multiarch paths
1692  --enable-__cxa_atexit   enable __cxa_atexit for C++
1693  --enable-decimal-float={no,yes,bid,dpd}
1694			enable decimal float extension to C.  Selecting 'bid'
1695			or 'dpd' choses which decimal floating point format
1696			to use
1697  --enable-fixed-point    enable fixed-point arithmetic extension to C
1698  --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1699                          package
1700  --enable-tls            enable or disable generation of tls code overriding
1701                          the assembler check for tls support
1702  --enable-vtable-verify  enable vtable verification feature
1703  --disable-analyzer      disable -fanalyzer static analyzer
1704  --enable-objc-gc        enable the use of Boehm's garbage collector with the
1705                          GNU Objective-C runtime
1706  --disable-shared        don't provide a shared libgcc
1707  --disable-gcov          don't provide libgcov and related host tools
1708  --enable-languages=LIST specify which front-ends to build
1709  --disable-rpath         do not hardcode runtime library paths
1710  --enable-sjlj-exceptions
1711                          arrange to use setjmp/longjmp exception handling
1712  --enable-secureplt      enable -msecure-plt by default for PowerPC
1713  --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1714                          Default to platform configuration
1715  --enable-large-address-aware
1716                          Link mingw executables with --large-address-aware
1717  --enable-leading-mingw64-underscores
1718                          enable leading underscores on 64 bit mingw targets
1719  --enable-cld            enable -mcld by default for 32bit x86
1720  --enable-frame-pointer  enable -fno-omit-frame-pointer by default for x86
1721  --disable-win32-registry
1722                          disable lookup of installation paths in the Registry
1723                          on Windows hosts
1724  --enable-win32-registry enable registry lookup (default)
1725  --enable-win32-registry=KEY
1726                          use KEY instead of GCC version as the last portion
1727                          of the registry key
1728  --enable-shared[=PKGS]  build shared libraries [default=yes]
1729  --enable-static[=PKGS]  build static libraries [default=yes]
1730  --enable-fast-install[=PKGS]
1731                          optimize for fast installation [default=yes]
1732  --disable-libtool-lock  avoid locking (might break parallel builds)
1733  --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1734  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1735  --enable-gnu-indirect-function
1736                          enable the use of the @gnu_indirect_function to
1737                          glibc systems
1738  --enable-initfini-array	use .init_array/.fini_array sections
1739  --enable-comdat         enable COMDAT group support
1740  --enable-newlib-nano-formatted-io
1741                          Use nano version formatted IO
1742
1743  --enable-standard-branch-protection
1744                          enable Branch Target Identification Mechanism and
1745                          Return Address Signing by default for AArch64
1746  --disable-standard-branch-protection
1747                          disable Branch Target Identification Mechanism and
1748                          Return Address Signing by default for AArch64
1749
1750
1751  --enable-fix-cortex-a53-835769
1752                          enable workaround for AArch64 Cortex-A53 erratum
1753                          835769 by default
1754  --disable-fix-cortex-a53-835769
1755                          disable workaround for AArch64 Cortex-A53 erratum
1756                          835769 by default
1757
1758
1759  --enable-fix-cortex-a53-843419
1760                          enable workaround for AArch64 Cortex-A53 erratum
1761                          843419 by default
1762  --disable-fix-cortex-a53-843419
1763                          disable workaround for AArch64 Cortex-A53 erratum
1764                          843419 by default
1765
1766  --enable-gnu-unique-object
1767                          enable the use of the @gnu_unique_object ELF
1768                          extension on glibc systems
1769  --enable-linker-build-id
1770                          compiler will always pass --build-id to linker
1771  --enable-libssp         enable linking against libssp
1772  --enable-default-ssp    enable Stack Smashing Protection as default
1773  --enable-maintainer-mode
1774                          enable make rules and dependencies not useful (and
1775                          sometimes confusing) to the casual installer
1776  --enable-link-mutex     avoid linking multiple front-ends at once to avoid
1777                          thrashing on the build machine
1778  --enable-link-serialization
1779                          avoid linking multiple GCC front-ends at once using
1780                          make dependencies to avoid thrashing on the build
1781                          machine
1782  --enable-version-specific-runtime-libs
1783                          specify that runtime libraries should be installed
1784                          in a compiler-specific directory
1785  --enable-plugin         enable plugin support
1786  --enable-host-shared    build host code as shared libraries
1787  --disable-libquadmath-support
1788                          disable libquadmath support for Fortran
1789  --enable-default-pie    enable Position Independent Executable as default
1790  --enable-cet            enable Intel CET in host libraries [default=auto]
1791  --enable-s390-excess-float-precision
1792                          on s390 targets, evaluate float with double
1793                          precision when in standards-conforming mode
1794
1795Optional Packages:
1796  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1797  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1798  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1799  --with-local-prefix=DIR specifies directory to put local include
1800  --with-native-system-header-dir=dir
1801                          use dir as the directory to look for standard
1802                          system header files in.  Defaults to /usr/include.
1803  --with-build-sysroot=sysroot
1804                          use sysroot as the system root during the build
1805  --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1806  --with-gxx-include-dir=DIR
1807                          specifies directory to put g++ header files
1808  --with-gxx-libcxx-include-dir=DIR
1809                          specifies directory to find libc++ header files
1810  --with-cpp-install-dir=DIR
1811                          install the user visible C preprocessor in DIR
1812                          (relative to PREFIX) as well as PREFIX/bin
1813  --with-gnu-ld           arrange to work with GNU ld
1814  --with-ld               arrange to use the specified ld (full pathname)
1815  --with-demangler-in-ld  try to use demangler in GNU ld
1816  --with-gnu-as           arrange to work with GNU as
1817  --with-as               arrange to use the specified as (full pathname)
1818  --with-stabs            arrange to use stabs instead of host debug format
1819  --with-stack-clash-protection-guard-size=size
1820                          Set the default stack clash protection guard size
1821                          for specific targets as a power of two in bytes.
1822  --with-dwarf2           force the default debug format to be DWARF 2
1823  --with-specs=SPECS      add SPECS to driver command-line processing
1824  --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1825  --with-bugurl=URL       Direct users to URL to report a bug
1826  --with-documentation-root-url=URL
1827                          Root for documentation URLs
1828  --with-changes-root-url=URL
1829                          Root for GCC changes URLs
1830  --with-multilib-list    select multilibs (AArch64, SH and x86-64 only)
1831  --with-multilib-generator
1832                          Multi-libs configuration string (RISC-V only)
1833  --with-zstd=PATH        specify prefix directory for installed zstd library.
1834                          Equivalent to --with-zstd-include=PATH/include plus
1835                          --with-zstd-lib=PATH/lib
1836  --with-zstd-include=PATH
1837                          specify directory for installed zstd include files
1838  --with-zstd-lib=PATH    specify directory for the installed zstd library
1839  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1840  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1841  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1842  --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
1843  --with-gcc-major-version-only
1844                          use only GCC major number in filesystem paths
1845  --with-pic              try to use only PIC/non-PIC objects [default=use
1846                          both]
1847  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1848  --with-plugin-ld=[ARG]  specify the plugin linker
1849  --with-glibc-version=M.N
1850                          assume GCC used with glibc version M.N or later
1851  --with-long-double-128  use 128-bit long double by default
1852  --with-long-double-format={ieee,ibm}
1853		  Specify whether PowerPC long double uses IEEE or IBM format
1854
1855  --with-gc={page,zone}   this option is not supported anymore. It used to
1856                          choose the garbage collection mechanism to use with
1857                          the compiler
1858  --with-system-zlib      use installed libz
1859  --with-linker-hash-style={sysv,gnu,both}
1860                          specify the linker hash style
1861  --with-diagnostics-color={never,auto,auto-if-env,always}
1862                          specify the default of -fdiagnostics-color option
1863                          auto-if-env stands for -fdiagnostics-color=auto if
1864                          GCC_COLOR environment variable is present and
1865                          -fdiagnostics-color=never otherwise
1866  --with-diagnostics-urls={never,auto,auto-if-env,always}
1867                          specify the default of -fdiagnostics-urls option
1868                          auto-if-env stands for -fdiagnostics-urls=auto if
1869                          GCC_URLS or TERM_URLS environment variable is
1870                          present and -fdiagnostics-urls=never otherwise
1871
1872Some influential environment variables:
1873  CC          C compiler command
1874  CFLAGS      C compiler flags
1875  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1876              nonstandard directory <lib dir>
1877  LIBS        libraries to pass to the linker, e.g. -l<library>
1878  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1879              you have headers in a nonstandard directory <include dir>
1880  CXX         C++ compiler command
1881  CXXFLAGS    C++ compiler flags
1882  CXXCPP      C++ preprocessor
1883  CPP         C preprocessor
1884  GMPLIBS     How to link GMP
1885  GMPINC      How to find GMP include files
1886  ISLLIBS     How to link isl
1887  ISLINC      How to find isl include files
1888
1889Use these variables to override the choices made by `configure' or to help
1890it to find libraries and programs with nonstandard names/locations.
1891
1892Report bugs to the package provider.
1893_ACEOF
1894ac_status=$?
1895fi
1896
1897if test "$ac_init_help" = "recursive"; then
1898  # If there are subdirs, report their specific --help.
1899  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1900    test -d "$ac_dir" ||
1901      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1902      continue
1903    ac_builddir=.
1904
1905case "$ac_dir" in
1906.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1907*)
1908  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1909  # A ".." for each directory in $ac_dir_suffix.
1910  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1911  case $ac_top_builddir_sub in
1912  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1914  esac ;;
1915esac
1916ac_abs_top_builddir=$ac_pwd
1917ac_abs_builddir=$ac_pwd$ac_dir_suffix
1918# for backward compatibility:
1919ac_top_builddir=$ac_top_build_prefix
1920
1921case $srcdir in
1922  .)  # We are building in place.
1923    ac_srcdir=.
1924    ac_top_srcdir=$ac_top_builddir_sub
1925    ac_abs_top_srcdir=$ac_pwd ;;
1926  [\\/]* | ?:[\\/]* )  # Absolute name.
1927    ac_srcdir=$srcdir$ac_dir_suffix;
1928    ac_top_srcdir=$srcdir
1929    ac_abs_top_srcdir=$srcdir ;;
1930  *) # Relative name.
1931    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1932    ac_top_srcdir=$ac_top_build_prefix$srcdir
1933    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1934esac
1935ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1936
1937    cd "$ac_dir" || { ac_status=$?; continue; }
1938    # Check for guested configure.
1939    if test -f "$ac_srcdir/configure.gnu"; then
1940      echo &&
1941      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1942    elif test -f "$ac_srcdir/configure"; then
1943      echo &&
1944      $SHELL "$ac_srcdir/configure" --help=recursive
1945    else
1946      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1947    fi || ac_status=$?
1948    cd "$ac_pwd" || { ac_status=$?; break; }
1949  done
1950fi
1951
1952test -n "$ac_init_help" && exit $ac_status
1953if $ac_init_version; then
1954  cat <<\_ACEOF
1955configure
1956generated by GNU Autoconf 2.69
1957
1958Copyright (C) 2012 Free Software Foundation, Inc.
1959This configure script is free software; the Free Software Foundation
1960gives unlimited permission to copy, distribute and modify it.
1961_ACEOF
1962  exit
1963fi
1964
1965## ------------------------ ##
1966## Autoconf initialization. ##
1967## ------------------------ ##
1968
1969# ac_fn_c_try_compile LINENO
1970# --------------------------
1971# Try to compile conftest.$ac_ext, and return whether this succeeded.
1972ac_fn_c_try_compile ()
1973{
1974  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975  rm -f conftest.$ac_objext
1976  if { { ac_try="$ac_compile"
1977case "(($ac_try" in
1978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979  *) ac_try_echo=$ac_try;;
1980esac
1981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982$as_echo "$ac_try_echo"; } >&5
1983  (eval "$ac_compile") 2>conftest.err
1984  ac_status=$?
1985  if test -s conftest.err; then
1986    grep -v '^ *+' conftest.err >conftest.er1
1987    cat conftest.er1 >&5
1988    mv -f conftest.er1 conftest.err
1989  fi
1990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991  test $ac_status = 0; } && {
1992	 test -z "$ac_c_werror_flag" ||
1993	 test ! -s conftest.err
1994       } && test -s conftest.$ac_objext; then :
1995  ac_retval=0
1996else
1997  $as_echo "$as_me: failed program was:" >&5
1998sed 's/^/| /' conftest.$ac_ext >&5
1999
2000	ac_retval=1
2001fi
2002  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003  as_fn_set_status $ac_retval
2004
2005} # ac_fn_c_try_compile
2006
2007# ac_fn_cxx_try_compile LINENO
2008# ----------------------------
2009# Try to compile conftest.$ac_ext, and return whether this succeeded.
2010ac_fn_cxx_try_compile ()
2011{
2012  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013  rm -f conftest.$ac_objext
2014  if { { ac_try="$ac_compile"
2015case "(($ac_try" in
2016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017  *) ac_try_echo=$ac_try;;
2018esac
2019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020$as_echo "$ac_try_echo"; } >&5
2021  (eval "$ac_compile") 2>conftest.err
2022  ac_status=$?
2023  if test -s conftest.err; then
2024    grep -v '^ *+' conftest.err >conftest.er1
2025    cat conftest.er1 >&5
2026    mv -f conftest.er1 conftest.err
2027  fi
2028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029  test $ac_status = 0; } && {
2030	 test -z "$ac_cxx_werror_flag" ||
2031	 test ! -s conftest.err
2032       } && test -s conftest.$ac_objext; then :
2033  ac_retval=0
2034else
2035  $as_echo "$as_me: failed program was:" >&5
2036sed 's/^/| /' conftest.$ac_ext >&5
2037
2038	ac_retval=1
2039fi
2040  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041  as_fn_set_status $ac_retval
2042
2043} # ac_fn_cxx_try_compile
2044
2045# ac_fn_cxx_try_cpp LINENO
2046# ------------------------
2047# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2048ac_fn_cxx_try_cpp ()
2049{
2050  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051  if { { ac_try="$ac_cpp conftest.$ac_ext"
2052case "(($ac_try" in
2053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054  *) ac_try_echo=$ac_try;;
2055esac
2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057$as_echo "$ac_try_echo"; } >&5
2058  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2059  ac_status=$?
2060  if test -s conftest.err; then
2061    grep -v '^ *+' conftest.err >conftest.er1
2062    cat conftest.er1 >&5
2063    mv -f conftest.er1 conftest.err
2064  fi
2065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066  test $ac_status = 0; } > conftest.i && {
2067	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2068	 test ! -s conftest.err
2069       }; then :
2070  ac_retval=0
2071else
2072  $as_echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075    ac_retval=1
2076fi
2077  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078  as_fn_set_status $ac_retval
2079
2080} # ac_fn_cxx_try_cpp
2081
2082# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2083# ---------------------------------------------------------
2084# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2085# the include files in INCLUDES and setting the cache variable VAR
2086# accordingly.
2087ac_fn_cxx_check_header_mongrel ()
2088{
2089  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090  if eval \${$3+:} false; then :
2091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092$as_echo_n "checking for $2... " >&6; }
2093if eval \${$3+:} false; then :
2094  $as_echo_n "(cached) " >&6
2095fi
2096eval ac_res=\$$3
2097	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098$as_echo "$ac_res" >&6; }
2099else
2100  # Is the header compilable?
2101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2102$as_echo_n "checking $2 usability... " >&6; }
2103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h.  */
2105$4
2106#include <$2>
2107_ACEOF
2108if ac_fn_cxx_try_compile "$LINENO"; then :
2109  ac_header_compiler=yes
2110else
2111  ac_header_compiler=no
2112fi
2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2115$as_echo "$ac_header_compiler" >&6; }
2116
2117# Is the header present?
2118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2119$as_echo_n "checking $2 presence... " >&6; }
2120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h.  */
2122#include <$2>
2123_ACEOF
2124if ac_fn_cxx_try_cpp "$LINENO"; then :
2125  ac_header_preproc=yes
2126else
2127  ac_header_preproc=no
2128fi
2129rm -f conftest.err conftest.i conftest.$ac_ext
2130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2131$as_echo "$ac_header_preproc" >&6; }
2132
2133# So?  What about this header?
2134case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2135  yes:no: )
2136    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2137$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2138    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2139$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2140    ;;
2141  no:yes:* )
2142    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2143$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2144    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2145$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2146    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2147$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2148    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2149$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2150    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152    ;;
2153esac
2154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155$as_echo_n "checking for $2... " >&6; }
2156if eval \${$3+:} false; then :
2157  $as_echo_n "(cached) " >&6
2158else
2159  eval "$3=\$ac_header_compiler"
2160fi
2161eval ac_res=\$$3
2162	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163$as_echo "$ac_res" >&6; }
2164fi
2165  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167} # ac_fn_cxx_check_header_mongrel
2168
2169# ac_fn_cxx_try_run LINENO
2170# ------------------------
2171# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2172# that executables *can* be run.
2173ac_fn_cxx_try_run ()
2174{
2175  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176  if { { ac_try="$ac_link"
2177case "(($ac_try" in
2178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179  *) ac_try_echo=$ac_try;;
2180esac
2181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182$as_echo "$ac_try_echo"; } >&5
2183  (eval "$ac_link") 2>&5
2184  ac_status=$?
2185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2187  { { case "(($ac_try" in
2188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189  *) ac_try_echo=$ac_try;;
2190esac
2191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192$as_echo "$ac_try_echo"; } >&5
2193  (eval "$ac_try") 2>&5
2194  ac_status=$?
2195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196  test $ac_status = 0; }; }; then :
2197  ac_retval=0
2198else
2199  $as_echo "$as_me: program exited with status $ac_status" >&5
2200       $as_echo "$as_me: failed program was:" >&5
2201sed 's/^/| /' conftest.$ac_ext >&5
2202
2203       ac_retval=$ac_status
2204fi
2205  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2206  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207  as_fn_set_status $ac_retval
2208
2209} # ac_fn_cxx_try_run
2210
2211# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2212# ---------------------------------------------------------
2213# Tests whether HEADER exists and can be compiled using the include files in
2214# INCLUDES, setting the cache variable VAR accordingly.
2215ac_fn_cxx_check_header_compile ()
2216{
2217  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219$as_echo_n "checking for $2... " >&6; }
2220if eval \${$3+:} false; then :
2221  $as_echo_n "(cached) " >&6
2222else
2223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h.  */
2225$4
2226#include <$2>
2227_ACEOF
2228if ac_fn_cxx_try_compile "$LINENO"; then :
2229  eval "$3=yes"
2230else
2231  eval "$3=no"
2232fi
2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234fi
2235eval ac_res=\$$3
2236	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237$as_echo "$ac_res" >&6; }
2238  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239
2240} # ac_fn_cxx_check_header_compile
2241
2242# ac_fn_c_try_cpp LINENO
2243# ----------------------
2244# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2245ac_fn_c_try_cpp ()
2246{
2247  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248  if { { ac_try="$ac_cpp conftest.$ac_ext"
2249case "(($ac_try" in
2250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251  *) ac_try_echo=$ac_try;;
2252esac
2253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254$as_echo "$ac_try_echo"; } >&5
2255  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2256  ac_status=$?
2257  if test -s conftest.err; then
2258    grep -v '^ *+' conftest.err >conftest.er1
2259    cat conftest.er1 >&5
2260    mv -f conftest.er1 conftest.err
2261  fi
2262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263  test $ac_status = 0; } > conftest.i && {
2264	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2265	 test ! -s conftest.err
2266       }; then :
2267  ac_retval=0
2268else
2269  $as_echo "$as_me: failed program was:" >&5
2270sed 's/^/| /' conftest.$ac_ext >&5
2271
2272    ac_retval=1
2273fi
2274  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275  as_fn_set_status $ac_retval
2276
2277} # ac_fn_c_try_cpp
2278
2279# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2280# ----------------------------------------------
2281# Tries to find the compile-time value of EXPR in a program that includes
2282# INCLUDES, setting VAR accordingly. Returns whether the value could be
2283# computed
2284ac_fn_cxx_compute_int ()
2285{
2286  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287  if test "$cross_compiling" = yes; then
2288    # Depending upon the size, compute the lo and hi bounds.
2289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290/* end confdefs.h.  */
2291$4
2292int
2293main ()
2294{
2295static int test_array [1 - 2 * !(($2) >= 0)];
2296test_array [0] = 0;
2297return test_array [0];
2298
2299  ;
2300  return 0;
2301}
2302_ACEOF
2303if ac_fn_cxx_try_compile "$LINENO"; then :
2304  ac_lo=0 ac_mid=0
2305  while :; do
2306    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307/* end confdefs.h.  */
2308$4
2309int
2310main ()
2311{
2312static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2313test_array [0] = 0;
2314return test_array [0];
2315
2316  ;
2317  return 0;
2318}
2319_ACEOF
2320if ac_fn_cxx_try_compile "$LINENO"; then :
2321  ac_hi=$ac_mid; break
2322else
2323  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2324			if test $ac_lo -le $ac_mid; then
2325			  ac_lo= ac_hi=
2326			  break
2327			fi
2328			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2329fi
2330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331  done
2332else
2333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334/* end confdefs.h.  */
2335$4
2336int
2337main ()
2338{
2339static int test_array [1 - 2 * !(($2) < 0)];
2340test_array [0] = 0;
2341return test_array [0];
2342
2343  ;
2344  return 0;
2345}
2346_ACEOF
2347if ac_fn_cxx_try_compile "$LINENO"; then :
2348  ac_hi=-1 ac_mid=-1
2349  while :; do
2350    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351/* end confdefs.h.  */
2352$4
2353int
2354main ()
2355{
2356static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2357test_array [0] = 0;
2358return test_array [0];
2359
2360  ;
2361  return 0;
2362}
2363_ACEOF
2364if ac_fn_cxx_try_compile "$LINENO"; then :
2365  ac_lo=$ac_mid; break
2366else
2367  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2368			if test $ac_mid -le $ac_hi; then
2369			  ac_lo= ac_hi=
2370			  break
2371			fi
2372			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2373fi
2374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375  done
2376else
2377  ac_lo= ac_hi=
2378fi
2379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380fi
2381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382# Binary search between lo and hi bounds.
2383while test "x$ac_lo" != "x$ac_hi"; do
2384  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386/* end confdefs.h.  */
2387$4
2388int
2389main ()
2390{
2391static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2392test_array [0] = 0;
2393return test_array [0];
2394
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399if ac_fn_cxx_try_compile "$LINENO"; then :
2400  ac_hi=$ac_mid
2401else
2402  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2403fi
2404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405done
2406case $ac_lo in #((
2407?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2408'') ac_retval=1 ;;
2409esac
2410  else
2411    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412/* end confdefs.h.  */
2413$4
2414static long int longval () { return $2; }
2415static unsigned long int ulongval () { return $2; }
2416#include <stdio.h>
2417#include <stdlib.h>
2418int
2419main ()
2420{
2421
2422  FILE *f = fopen ("conftest.val", "w");
2423  if (! f)
2424    return 1;
2425  if (($2) < 0)
2426    {
2427      long int i = longval ();
2428      if (i != ($2))
2429	return 1;
2430      fprintf (f, "%ld", i);
2431    }
2432  else
2433    {
2434      unsigned long int i = ulongval ();
2435      if (i != ($2))
2436	return 1;
2437      fprintf (f, "%lu", i);
2438    }
2439  /* Do not output a trailing newline, as this causes \r\n confusion
2440     on some platforms.  */
2441  return ferror (f) || fclose (f) != 0;
2442
2443  ;
2444  return 0;
2445}
2446_ACEOF
2447if ac_fn_cxx_try_run "$LINENO"; then :
2448  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2449else
2450  ac_retval=1
2451fi
2452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2453  conftest.$ac_objext conftest.beam conftest.$ac_ext
2454rm -f conftest.val
2455
2456  fi
2457  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458  as_fn_set_status $ac_retval
2459
2460} # ac_fn_cxx_compute_int
2461
2462# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2463# ---------------------------------------------
2464# Tests whether TYPE exists after having included INCLUDES, setting cache
2465# variable VAR accordingly.
2466ac_fn_cxx_check_type ()
2467{
2468  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2470$as_echo_n "checking for $2... " >&6; }
2471if eval \${$3+:} false; then :
2472  $as_echo_n "(cached) " >&6
2473else
2474  eval "$3=no"
2475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476/* end confdefs.h.  */
2477$4
2478int
2479main ()
2480{
2481if (sizeof ($2))
2482	 return 0;
2483  ;
2484  return 0;
2485}
2486_ACEOF
2487if ac_fn_cxx_try_compile "$LINENO"; then :
2488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489/* end confdefs.h.  */
2490$4
2491int
2492main ()
2493{
2494if (sizeof (($2)))
2495	    return 0;
2496  ;
2497  return 0;
2498}
2499_ACEOF
2500if ac_fn_cxx_try_compile "$LINENO"; then :
2501
2502else
2503  eval "$3=yes"
2504fi
2505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506fi
2507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508fi
2509eval ac_res=\$$3
2510	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2511$as_echo "$ac_res" >&6; }
2512  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2513
2514} # ac_fn_cxx_check_type
2515
2516# ac_fn_c_find_intX_t LINENO BITS VAR
2517# -----------------------------------
2518# Finds a signed integer type with width BITS, setting cache variable VAR
2519# accordingly.
2520ac_fn_c_find_intX_t ()
2521{
2522  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2524$as_echo_n "checking for int$2_t... " >&6; }
2525if eval \${$3+:} false; then :
2526  $as_echo_n "(cached) " >&6
2527else
2528  eval "$3=no"
2529     # Order is important - never check a type that is potentially smaller
2530     # than half of the expected target width.
2531     for ac_type in int$2_t 'int' 'long int' \
2532	 'long long int' 'short int' 'signed char'; do
2533       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534/* end confdefs.h.  */
2535$ac_includes_default
2536	     enum { N = $2 / 2 - 1 };
2537int
2538main ()
2539{
2540static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2541test_array [0] = 0;
2542return test_array [0];
2543
2544  ;
2545  return 0;
2546}
2547_ACEOF
2548if ac_fn_cxx_try_compile "$LINENO"; then :
2549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550/* end confdefs.h.  */
2551$ac_includes_default
2552	        enum { N = $2 / 2 - 1 };
2553int
2554main ()
2555{
2556static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2557		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2558test_array [0] = 0;
2559return test_array [0];
2560
2561  ;
2562  return 0;
2563}
2564_ACEOF
2565if ac_fn_cxx_try_compile "$LINENO"; then :
2566
2567else
2568  case $ac_type in #(
2569  int$2_t) :
2570    eval "$3=yes" ;; #(
2571  *) :
2572    eval "$3=\$ac_type" ;;
2573esac
2574fi
2575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576fi
2577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578       if eval test \"x\$"$3"\" = x"no"; then :
2579
2580else
2581  break
2582fi
2583     done
2584fi
2585eval ac_res=\$$3
2586	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587$as_echo "$ac_res" >&6; }
2588  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2589
2590} # ac_fn_c_find_intX_t
2591
2592# ac_fn_cxx_try_link LINENO
2593# -------------------------
2594# Try to link conftest.$ac_ext, and return whether this succeeded.
2595ac_fn_cxx_try_link ()
2596{
2597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598  rm -f conftest.$ac_objext conftest$ac_exeext
2599  if { { ac_try="$ac_link"
2600case "(($ac_try" in
2601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602  *) ac_try_echo=$ac_try;;
2603esac
2604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2605$as_echo "$ac_try_echo"; } >&5
2606  (eval "$ac_link") 2>conftest.err
2607  ac_status=$?
2608  if test -s conftest.err; then
2609    grep -v '^ *+' conftest.err >conftest.er1
2610    cat conftest.er1 >&5
2611    mv -f conftest.er1 conftest.err
2612  fi
2613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2614  test $ac_status = 0; } && {
2615	 test -z "$ac_cxx_werror_flag" ||
2616	 test ! -s conftest.err
2617       } && test -s conftest$ac_exeext && {
2618	 test "$cross_compiling" = yes ||
2619	 test -x conftest$ac_exeext
2620       }; then :
2621  ac_retval=0
2622else
2623  $as_echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626	ac_retval=1
2627fi
2628  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2629  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2630  # interfere with the next link command; also delete a directory that is
2631  # left behind by Apple's compiler.  We do this before executing the actions.
2632  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2633  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2634  as_fn_set_status $ac_retval
2635
2636} # ac_fn_cxx_try_link
2637
2638# ac_fn_c_find_uintX_t LINENO BITS VAR
2639# ------------------------------------
2640# Finds an unsigned integer type with width BITS, setting cache variable VAR
2641# accordingly.
2642ac_fn_c_find_uintX_t ()
2643{
2644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2646$as_echo_n "checking for uint$2_t... " >&6; }
2647if eval \${$3+:} false; then :
2648  $as_echo_n "(cached) " >&6
2649else
2650  eval "$3=no"
2651     # Order is important - never check a type that is potentially smaller
2652     # than half of the expected target width.
2653     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2654	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2655       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656/* end confdefs.h.  */
2657$ac_includes_default
2658int
2659main ()
2660{
2661static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2662test_array [0] = 0;
2663return test_array [0];
2664
2665  ;
2666  return 0;
2667}
2668_ACEOF
2669if ac_fn_cxx_try_compile "$LINENO"; then :
2670  case $ac_type in #(
2671  uint$2_t) :
2672    eval "$3=yes" ;; #(
2673  *) :
2674    eval "$3=\$ac_type" ;;
2675esac
2676fi
2677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678       if eval test \"x\$"$3"\" = x"no"; then :
2679
2680else
2681  break
2682fi
2683     done
2684fi
2685eval ac_res=\$$3
2686	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687$as_echo "$ac_res" >&6; }
2688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2689
2690} # ac_fn_c_find_uintX_t
2691
2692# ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2693# ------------------------------------------------
2694# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2695ac_fn_cxx_check_header_preproc ()
2696{
2697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2699$as_echo_n "checking for $2... " >&6; }
2700if eval \${$3+:} false; then :
2701  $as_echo_n "(cached) " >&6
2702else
2703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704/* end confdefs.h.  */
2705#include <$2>
2706_ACEOF
2707if ac_fn_cxx_try_cpp "$LINENO"; then :
2708  eval "$3=yes"
2709else
2710  eval "$3=no"
2711fi
2712rm -f conftest.err conftest.i conftest.$ac_ext
2713fi
2714eval ac_res=\$$3
2715	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716$as_echo "$ac_res" >&6; }
2717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2718
2719} # ac_fn_cxx_check_header_preproc
2720
2721# ac_fn_cxx_check_func LINENO FUNC VAR
2722# ------------------------------------
2723# Tests whether FUNC exists, setting the cache variable VAR accordingly
2724ac_fn_cxx_check_func ()
2725{
2726  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2728$as_echo_n "checking for $2... " >&6; }
2729if eval \${$3+:} false; then :
2730  $as_echo_n "(cached) " >&6
2731else
2732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733/* end confdefs.h.  */
2734/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2735   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2736#define $2 innocuous_$2
2737
2738/* System header to define __stub macros and hopefully few prototypes,
2739    which can conflict with char $2 (); below.
2740    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2741    <limits.h> exists even on freestanding compilers.  */
2742
2743#ifdef __STDC__
2744# include <limits.h>
2745#else
2746# include <assert.h>
2747#endif
2748
2749#undef $2
2750
2751/* Override any GCC internal prototype to avoid an error.
2752   Use char because int might match the return type of a GCC
2753   builtin and then its argument prototype would still apply.  */
2754#ifdef __cplusplus
2755extern "C"
2756#endif
2757char $2 ();
2758/* The GNU C library defines this for functions which it implements
2759    to always fail with ENOSYS.  Some functions are actually named
2760    something starting with __ and the normal name is an alias.  */
2761#if defined __stub_$2 || defined __stub___$2
2762choke me
2763#endif
2764
2765int
2766main ()
2767{
2768return $2 ();
2769  ;
2770  return 0;
2771}
2772_ACEOF
2773if ac_fn_cxx_try_link "$LINENO"; then :
2774  eval "$3=yes"
2775else
2776  eval "$3=no"
2777fi
2778rm -f core conftest.err conftest.$ac_objext \
2779    conftest$ac_exeext conftest.$ac_ext
2780fi
2781eval ac_res=\$$3
2782	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2783$as_echo "$ac_res" >&6; }
2784  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2785
2786} # ac_fn_cxx_check_func
2787
2788# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2789# -----------------------------------------------
2790# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2791# accordingly.
2792ac_fn_cxx_check_decl ()
2793{
2794  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2795  as_decl_name=`echo $2|sed 's/ *(.*//'`
2796  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2798$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2799if eval \${$3+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h.  */
2804$4
2805int
2806main ()
2807{
2808#ifndef $as_decl_name
2809#ifdef __cplusplus
2810  (void) $as_decl_use;
2811#else
2812  (void) $as_decl_name;
2813#endif
2814#endif
2815
2816  ;
2817  return 0;
2818}
2819_ACEOF
2820if ac_fn_cxx_try_compile "$LINENO"; then :
2821  eval "$3=yes"
2822else
2823  eval "$3=no"
2824fi
2825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826fi
2827eval ac_res=\$$3
2828	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829$as_echo "$ac_res" >&6; }
2830  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2831
2832} # ac_fn_cxx_check_decl
2833
2834# ac_fn_c_try_link LINENO
2835# -----------------------
2836# Try to link conftest.$ac_ext, and return whether this succeeded.
2837ac_fn_c_try_link ()
2838{
2839  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2840  rm -f conftest.$ac_objext conftest$ac_exeext
2841  if { { ac_try="$ac_link"
2842case "(($ac_try" in
2843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844  *) ac_try_echo=$ac_try;;
2845esac
2846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847$as_echo "$ac_try_echo"; } >&5
2848  (eval "$ac_link") 2>conftest.err
2849  ac_status=$?
2850  if test -s conftest.err; then
2851    grep -v '^ *+' conftest.err >conftest.er1
2852    cat conftest.er1 >&5
2853    mv -f conftest.er1 conftest.err
2854  fi
2855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856  test $ac_status = 0; } && {
2857	 test -z "$ac_c_werror_flag" ||
2858	 test ! -s conftest.err
2859       } && test -s conftest$ac_exeext && {
2860	 test "$cross_compiling" = yes ||
2861	 test -x conftest$ac_exeext
2862       }; then :
2863  ac_retval=0
2864else
2865  $as_echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868	ac_retval=1
2869fi
2870  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2871  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2872  # interfere with the next link command; also delete a directory that is
2873  # left behind by Apple's compiler.  We do this before executing the actions.
2874  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2875  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2876  as_fn_set_status $ac_retval
2877
2878} # ac_fn_c_try_link
2879
2880# ac_fn_c_check_header_preproc LINENO HEADER VAR
2881# ----------------------------------------------
2882# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2883ac_fn_c_check_header_preproc ()
2884{
2885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2887$as_echo_n "checking for $2... " >&6; }
2888if eval \${$3+:} false; then :
2889  $as_echo_n "(cached) " >&6
2890else
2891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892/* end confdefs.h.  */
2893#include <$2>
2894_ACEOF
2895if ac_fn_c_try_cpp "$LINENO"; then :
2896  eval "$3=yes"
2897else
2898  eval "$3=no"
2899fi
2900rm -f conftest.err conftest.i conftest.$ac_ext
2901fi
2902eval ac_res=\$$3
2903	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2904$as_echo "$ac_res" >&6; }
2905  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2906
2907} # ac_fn_c_check_header_preproc
2908
2909# ac_fn_c_check_func LINENO FUNC VAR
2910# ----------------------------------
2911# Tests whether FUNC exists, setting the cache variable VAR accordingly
2912ac_fn_c_check_func ()
2913{
2914  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2916$as_echo_n "checking for $2... " >&6; }
2917if eval \${$3+:} false; then :
2918  $as_echo_n "(cached) " >&6
2919else
2920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921/* end confdefs.h.  */
2922/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2923   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2924#define $2 innocuous_$2
2925
2926/* System header to define __stub macros and hopefully few prototypes,
2927    which can conflict with char $2 (); below.
2928    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929    <limits.h> exists even on freestanding compilers.  */
2930
2931#ifdef __STDC__
2932# include <limits.h>
2933#else
2934# include <assert.h>
2935#endif
2936
2937#undef $2
2938
2939/* Override any GCC internal prototype to avoid an error.
2940   Use char because int might match the return type of a GCC
2941   builtin and then its argument prototype would still apply.  */
2942#ifdef __cplusplus
2943extern "C"
2944#endif
2945char $2 ();
2946/* The GNU C library defines this for functions which it implements
2947    to always fail with ENOSYS.  Some functions are actually named
2948    something starting with __ and the normal name is an alias.  */
2949#if defined __stub_$2 || defined __stub___$2
2950choke me
2951#endif
2952
2953int
2954main ()
2955{
2956return $2 ();
2957  ;
2958  return 0;
2959}
2960_ACEOF
2961if ac_fn_c_try_link "$LINENO"; then :
2962  eval "$3=yes"
2963else
2964  eval "$3=no"
2965fi
2966rm -f core conftest.err conftest.$ac_objext \
2967    conftest$ac_exeext conftest.$ac_ext
2968fi
2969eval ac_res=\$$3
2970	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2971$as_echo "$ac_res" >&6; }
2972  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2973
2974} # ac_fn_c_check_func
2975cat >config.log <<_ACEOF
2976This file contains any messages produced by compilers while
2977running configure, to aid debugging if configure makes a mistake.
2978
2979It was created by $as_me, which was
2980generated by GNU Autoconf 2.69.  Invocation command line was
2981
2982  $ $0 $@
2983
2984_ACEOF
2985exec 5>>config.log
2986{
2987cat <<_ASUNAME
2988## --------- ##
2989## Platform. ##
2990## --------- ##
2991
2992hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2993uname -m = `(uname -m) 2>/dev/null || echo unknown`
2994uname -r = `(uname -r) 2>/dev/null || echo unknown`
2995uname -s = `(uname -s) 2>/dev/null || echo unknown`
2996uname -v = `(uname -v) 2>/dev/null || echo unknown`
2997
2998/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2999/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3000
3001/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3002/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3003/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3004/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3005/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3006/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3007/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3008
3009_ASUNAME
3010
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014  IFS=$as_save_IFS
3015  test -z "$as_dir" && as_dir=.
3016    $as_echo "PATH: $as_dir"
3017  done
3018IFS=$as_save_IFS
3019
3020} >&5
3021
3022cat >&5 <<_ACEOF
3023
3024
3025## ----------- ##
3026## Core tests. ##
3027## ----------- ##
3028
3029_ACEOF
3030
3031
3032# Keep a trace of the command line.
3033# Strip out --no-create and --no-recursion so they do not pile up.
3034# Strip out --silent because we don't want to record it for future runs.
3035# Also quote any args containing shell meta-characters.
3036# Make two passes to allow for proper duplicate-argument suppression.
3037ac_configure_args=
3038ac_configure_args0=
3039ac_configure_args1=
3040ac_must_keep_next=false
3041for ac_pass in 1 2
3042do
3043  for ac_arg
3044  do
3045    case $ac_arg in
3046    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3047    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3048    | -silent | --silent | --silen | --sile | --sil)
3049      continue ;;
3050    *\'*)
3051      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3052    esac
3053    case $ac_pass in
3054    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3055    2)
3056      as_fn_append ac_configure_args1 " '$ac_arg'"
3057      if test $ac_must_keep_next = true; then
3058	ac_must_keep_next=false # Got value, back to normal.
3059      else
3060	case $ac_arg in
3061	  *=* | --config-cache | -C | -disable-* | --disable-* \
3062	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3063	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3064	  | -with-* | --with-* | -without-* | --without-* | --x)
3065	    case "$ac_configure_args0 " in
3066	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3067	    esac
3068	    ;;
3069	  -* ) ac_must_keep_next=true ;;
3070	esac
3071      fi
3072      as_fn_append ac_configure_args " '$ac_arg'"
3073      ;;
3074    esac
3075  done
3076done
3077{ ac_configure_args0=; unset ac_configure_args0;}
3078{ ac_configure_args1=; unset ac_configure_args1;}
3079
3080# When interrupted or exit'd, cleanup temporary files, and complete
3081# config.log.  We remove comments because anyway the quotes in there
3082# would cause problems or look ugly.
3083# WARNING: Use '\'' to represent an apostrophe within the trap.
3084# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3085trap 'exit_status=$?
3086  # Save into config.log some information that might help in debugging.
3087  {
3088    echo
3089
3090    $as_echo "## ---------------- ##
3091## Cache variables. ##
3092## ---------------- ##"
3093    echo
3094    # The following way of writing the cache mishandles newlines in values,
3095(
3096  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3097    eval ac_val=\$$ac_var
3098    case $ac_val in #(
3099    *${as_nl}*)
3100      case $ac_var in #(
3101      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3102$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3103      esac
3104      case $ac_var in #(
3105      _ | IFS | as_nl) ;; #(
3106      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3107      *) { eval $ac_var=; unset $ac_var;} ;;
3108      esac ;;
3109    esac
3110  done
3111  (set) 2>&1 |
3112    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3113    *${as_nl}ac_space=\ *)
3114      sed -n \
3115	"s/'\''/'\''\\\\'\'''\''/g;
3116	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3117      ;; #(
3118    *)
3119      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3120      ;;
3121    esac |
3122    sort
3123)
3124    echo
3125
3126    $as_echo "## ----------------- ##
3127## Output variables. ##
3128## ----------------- ##"
3129    echo
3130    for ac_var in $ac_subst_vars
3131    do
3132      eval ac_val=\$$ac_var
3133      case $ac_val in
3134      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3135      esac
3136      $as_echo "$ac_var='\''$ac_val'\''"
3137    done | sort
3138    echo
3139
3140    if test -n "$ac_subst_files"; then
3141      $as_echo "## ------------------- ##
3142## File substitutions. ##
3143## ------------------- ##"
3144      echo
3145      for ac_var in $ac_subst_files
3146      do
3147	eval ac_val=\$$ac_var
3148	case $ac_val in
3149	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3150	esac
3151	$as_echo "$ac_var='\''$ac_val'\''"
3152      done | sort
3153      echo
3154    fi
3155
3156    if test -s confdefs.h; then
3157      $as_echo "## ----------- ##
3158## confdefs.h. ##
3159## ----------- ##"
3160      echo
3161      cat confdefs.h
3162      echo
3163    fi
3164    test "$ac_signal" != 0 &&
3165      $as_echo "$as_me: caught signal $ac_signal"
3166    $as_echo "$as_me: exit $exit_status"
3167  } >&5
3168  rm -f core *.core core.conftest.* &&
3169    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3170    exit $exit_status
3171' 0
3172for ac_signal in 1 2 13 15; do
3173  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3174done
3175ac_signal=0
3176
3177# confdefs.h avoids OS command line length limits that DEFS can exceed.
3178rm -f -r conftest* confdefs.h
3179
3180$as_echo "/* confdefs.h */" > confdefs.h
3181
3182# Predefined preprocessor variables.
3183
3184cat >>confdefs.h <<_ACEOF
3185#define PACKAGE_NAME "$PACKAGE_NAME"
3186_ACEOF
3187
3188cat >>confdefs.h <<_ACEOF
3189#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3190_ACEOF
3191
3192cat >>confdefs.h <<_ACEOF
3193#define PACKAGE_VERSION "$PACKAGE_VERSION"
3194_ACEOF
3195
3196cat >>confdefs.h <<_ACEOF
3197#define PACKAGE_STRING "$PACKAGE_STRING"
3198_ACEOF
3199
3200cat >>confdefs.h <<_ACEOF
3201#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3202_ACEOF
3203
3204cat >>confdefs.h <<_ACEOF
3205#define PACKAGE_URL "$PACKAGE_URL"
3206_ACEOF
3207
3208
3209# Let the site file select an alternate cache file if it wants to.
3210# Prefer an explicitly selected file to automatically selected ones.
3211ac_site_file1=NONE
3212ac_site_file2=NONE
3213if test -n "$CONFIG_SITE"; then
3214  # We do not want a PATH search for config.site.
3215  case $CONFIG_SITE in #((
3216    -*)  ac_site_file1=./$CONFIG_SITE;;
3217    */*) ac_site_file1=$CONFIG_SITE;;
3218    *)   ac_site_file1=./$CONFIG_SITE;;
3219  esac
3220elif test "x$prefix" != xNONE; then
3221  ac_site_file1=$prefix/share/config.site
3222  ac_site_file2=$prefix/etc/config.site
3223else
3224  ac_site_file1=$ac_default_prefix/share/config.site
3225  ac_site_file2=$ac_default_prefix/etc/config.site
3226fi
3227for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3228do
3229  test "x$ac_site_file" = xNONE && continue
3230  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3231    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3232$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3233    sed 's/^/| /' "$ac_site_file" >&5
3234    . "$ac_site_file" \
3235      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237as_fn_error $? "failed to load site script $ac_site_file
3238See \`config.log' for more details" "$LINENO" 5; }
3239  fi
3240done
3241
3242if test -r "$cache_file"; then
3243  # Some versions of bash will fail to source /dev/null (special files
3244  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3245  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3246    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3247$as_echo "$as_me: loading cache $cache_file" >&6;}
3248    case $cache_file in
3249      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3250      *)                      . "./$cache_file";;
3251    esac
3252  fi
3253else
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3255$as_echo "$as_me: creating cache $cache_file" >&6;}
3256  >$cache_file
3257fi
3258
3259# Check that the precious variables saved in the cache have kept the same
3260# value.
3261ac_cache_corrupted=false
3262for ac_var in $ac_precious_vars; do
3263  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3264  eval ac_new_set=\$ac_env_${ac_var}_set
3265  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3266  eval ac_new_val=\$ac_env_${ac_var}_value
3267  case $ac_old_set,$ac_new_set in
3268    set,)
3269      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3270$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3271      ac_cache_corrupted=: ;;
3272    ,set)
3273      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3274$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3275      ac_cache_corrupted=: ;;
3276    ,);;
3277    *)
3278      if test "x$ac_old_val" != "x$ac_new_val"; then
3279	# differences in whitespace do not lead to failure.
3280	ac_old_val_w=`echo x $ac_old_val`
3281	ac_new_val_w=`echo x $ac_new_val`
3282	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3283	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3284$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3285	  ac_cache_corrupted=:
3286	else
3287	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3288$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3289	  eval $ac_var=\$ac_old_val
3290	fi
3291	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3292$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3293	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3294$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3295      fi;;
3296  esac
3297  # Pass precious variables to config.status.
3298  if test "$ac_new_set" = set; then
3299    case $ac_new_val in
3300    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3301    *) ac_arg=$ac_var=$ac_new_val ;;
3302    esac
3303    case " $ac_configure_args " in
3304      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3305      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3306    esac
3307  fi
3308done
3309if $ac_cache_corrupted; then
3310  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3313$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3314  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3315fi
3316## -------------------- ##
3317## Main body of script. ##
3318## -------------------- ##
3319
3320ac_ext=c
3321ac_cpp='$CPP $CPPFLAGS'
3322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325
3326
3327
3328
3329
3330
3331ac_config_headers="$ac_config_headers auto-host.h:config.in"
3332
3333
3334gcc_version=`cat $srcdir/BASE-VER`
3335
3336# Determine the host, build, and target systems
3337ac_aux_dir=
3338for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3339  if test -f "$ac_dir/install-sh"; then
3340    ac_aux_dir=$ac_dir
3341    ac_install_sh="$ac_aux_dir/install-sh -c"
3342    break
3343  elif test -f "$ac_dir/install.sh"; then
3344    ac_aux_dir=$ac_dir
3345    ac_install_sh="$ac_aux_dir/install.sh -c"
3346    break
3347  elif test -f "$ac_dir/shtool"; then
3348    ac_aux_dir=$ac_dir
3349    ac_install_sh="$ac_aux_dir/shtool install -c"
3350    break
3351  fi
3352done
3353if test -z "$ac_aux_dir"; then
3354  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3355fi
3356
3357# These three variables are undocumented and unsupported,
3358# and are intended to be withdrawn in a future Autoconf release.
3359# They can cause serious problems if a builder's source tree is in a directory
3360# whose full name contains unusual characters.
3361ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3362ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3363ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3364
3365
3366# Make sure we can run config.sub.
3367$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3368  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3369
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3371$as_echo_n "checking build system type... " >&6; }
3372if ${ac_cv_build+:} false; then :
3373  $as_echo_n "(cached) " >&6
3374else
3375  ac_build_alias=$build_alias
3376test "x$ac_build_alias" = x &&
3377  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3378test "x$ac_build_alias" = x &&
3379  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3380ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3381  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3382
3383fi
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3385$as_echo "$ac_cv_build" >&6; }
3386case $ac_cv_build in
3387*-*-*) ;;
3388*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3389esac
3390build=$ac_cv_build
3391ac_save_IFS=$IFS; IFS='-'
3392set x $ac_cv_build
3393shift
3394build_cpu=$1
3395build_vendor=$2
3396shift; shift
3397# Remember, the first character of IFS is used to create $*,
3398# except with old shells:
3399build_os=$*
3400IFS=$ac_save_IFS
3401case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3402
3403
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3405$as_echo_n "checking host system type... " >&6; }
3406if ${ac_cv_host+:} false; then :
3407  $as_echo_n "(cached) " >&6
3408else
3409  if test "x$host_alias" = x; then
3410  ac_cv_host=$ac_cv_build
3411else
3412  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3413    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3414fi
3415
3416fi
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3418$as_echo "$ac_cv_host" >&6; }
3419case $ac_cv_host in
3420*-*-*) ;;
3421*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3422esac
3423host=$ac_cv_host
3424ac_save_IFS=$IFS; IFS='-'
3425set x $ac_cv_host
3426shift
3427host_cpu=$1
3428host_vendor=$2
3429shift; shift
3430# Remember, the first character of IFS is used to create $*,
3431# except with old shells:
3432host_os=$*
3433IFS=$ac_save_IFS
3434case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3435
3436
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3438$as_echo_n "checking target system type... " >&6; }
3439if ${ac_cv_target+:} false; then :
3440  $as_echo_n "(cached) " >&6
3441else
3442  if test "x$target_alias" = x; then
3443  ac_cv_target=$ac_cv_host
3444else
3445  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3446    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3447fi
3448
3449fi
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3451$as_echo "$ac_cv_target" >&6; }
3452case $ac_cv_target in
3453*-*-*) ;;
3454*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3455esac
3456target=$ac_cv_target
3457ac_save_IFS=$IFS; IFS='-'
3458set x $ac_cv_target
3459shift
3460target_cpu=$1
3461target_vendor=$2
3462shift; shift
3463# Remember, the first character of IFS is used to create $*,
3464# except with old shells:
3465target_os=$*
3466IFS=$ac_save_IFS
3467case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3468
3469
3470# The aliases save the names the user supplied, while $host etc.
3471# will get canonicalized.
3472test -n "$target_alias" &&
3473  test "$program_prefix$program_suffix$program_transform_name" = \
3474    NONENONEs,x,x, &&
3475  program_prefix=${target_alias}-
3476
3477# Determine the noncanonical host name, for Ada.
3478 case ${build_alias} in
3479  "") build_noncanonical=${build} ;;
3480  *) build_noncanonical=${build_alias} ;;
3481esac
3482
3483 case ${host_alias} in
3484  "") host_noncanonical=${build_noncanonical} ;;
3485  *) host_noncanonical=${host_alias} ;;
3486esac
3487
3488
3489
3490
3491# Determine the noncanonical target name, for directory use.
3492 case ${target_alias} in
3493  "") target_noncanonical=${host_noncanonical} ;;
3494  *) target_noncanonical=${target_alias} ;;
3495esac
3496
3497
3498
3499
3500# Used for constructing correct paths for offload compilers.
3501real_target_noncanonical=${target_noncanonical}
3502accel_dir_suffix=
3503
3504# Determine the target- and build-specific subdirectories
3505
3506# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3507# have matching libraries, they should use host libraries: Makefile.tpl
3508# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3509# However, they still use the build modules, because the corresponding
3510# host modules (e.g. bison) are only built for the host when bootstrap
3511# finishes. So:
3512# - build_subdir is where we find build modules, and never changes.
3513# - build_libsubdir is where we find build libraries, and can be overridden.
3514
3515# Prefix 'build-' so this never conflicts with target_subdir.
3516build_subdir="build-${build_noncanonical}"
3517
3518# Check whether --with-build-libsubdir was given.
3519if test "${with_build_libsubdir+set}" = set; then :
3520  withval=$with_build_libsubdir; build_libsubdir="$withval"
3521else
3522  build_libsubdir="$build_subdir"
3523fi
3524
3525# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3526if ( test $srcdir = . && test -d gcc ) \
3527   || test -d $srcdir/../host-${host_noncanonical}; then
3528  host_subdir="host-${host_noncanonical}"
3529else
3530  host_subdir=.
3531fi
3532# No prefix.
3533target_subdir=${target_noncanonical}
3534
3535
3536# Set program_transform_name
3537test "$program_prefix" != NONE &&
3538  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3539# Use a double $ so make ignores it.
3540test "$program_suffix" != NONE &&
3541  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3542# Double any \ or $.
3543# By default was `s,x,x', remove it if useless.
3544ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3545program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3546
3547
3548# Check for bogus environment variables.
3549# Test if LIBRARY_PATH contains the notation for the current directory
3550# since this would lead to problems installing/building glibc.
3551# LIBRARY_PATH contains the current directory if one of the following
3552# is true:
3553# - one of the terminals (":" and ";") is the first or last sign
3554# - two terminals occur directly after each other
3555# - the path contains an element with a dot in it
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3557$as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3558case ${LIBRARY_PATH} in
3559  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3560    library_path_setting="contains current directory"
3561    ;;
3562  *)
3563    library_path_setting="ok"
3564    ;;
3565esac
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3567$as_echo "$library_path_setting" >&6; }
3568if test "$library_path_setting" != "ok"; then
3569as_fn_error $? "
3570*** LIBRARY_PATH shouldn't contain the current directory when
3571*** building gcc. Please change the environment variable
3572*** and run configure again." "$LINENO" 5
3573fi
3574
3575# Test if GCC_EXEC_PREFIX contains the notation for the current directory
3576# since this would lead to problems installing/building glibc.
3577# GCC_EXEC_PREFIX contains the current directory if one of the following
3578# is true:
3579# - one of the terminals (":" and ";") is the first or last sign
3580# - two terminals occur directly after each other
3581# - the path contains an element with a dot in it
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3583$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3584case ${GCC_EXEC_PREFIX} in
3585  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3586    gcc_exec_prefix_setting="contains current directory"
3587    ;;
3588  *)
3589    gcc_exec_prefix_setting="ok"
3590    ;;
3591esac
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3593$as_echo "$gcc_exec_prefix_setting" >&6; }
3594if test "$gcc_exec_prefix_setting" != "ok"; then
3595as_fn_error $? "
3596*** GCC_EXEC_PREFIX shouldn't contain the current directory when
3597*** building gcc. Please change the environment variable
3598*** and run configure again." "$LINENO" 5
3599fi
3600
3601# -----------
3602# Directories
3603# -----------
3604
3605# Specify the local prefix
3606local_prefix=
3607
3608# Check whether --with-local-prefix was given.
3609if test "${with_local_prefix+set}" = set; then :
3610  withval=$with_local_prefix; case "${withval}" in
3611yes)	as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3612no)	;;
3613*)	local_prefix=$with_local_prefix ;;
3614esac
3615fi
3616
3617
3618# Default local prefix if it is empty
3619if test x$local_prefix = x; then
3620	local_prefix=/usr/local
3621fi
3622
3623
3624# Check whether --with-native-system-header-dir was given.
3625if test "${with_native_system_header_dir+set}" = set; then :
3626  withval=$with_native_system_header_dir;
3627 case ${with_native_system_header_dir} in
3628 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3629 /* | [A-Za-z]:[\\/]*) ;;
3630 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3631 esac
3632 configured_native_system_header_dir="${withval}"
3633
3634else
3635  configured_native_system_header_dir=
3636fi
3637
3638
3639
3640# Check whether --with-build-sysroot was given.
3641if test "${with_build_sysroot+set}" = set; then :
3642  withval=$with_build_sysroot; if test x"$withval" != x ; then
3643     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3644   fi
3645else
3646  SYSROOT_CFLAGS_FOR_TARGET=
3647fi
3648
3649
3650
3651if test "x$prefix" = xNONE; then
3652 test_prefix=/usr/local
3653else
3654 test_prefix=$prefix
3655fi
3656if test "x$exec_prefix" = xNONE; then
3657 test_exec_prefix=$test_prefix
3658else
3659 test_exec_prefix=$exec_prefix
3660fi
3661
3662
3663# Check whether --with-sysroot was given.
3664if test "${with_sysroot+set}" = set; then :
3665  withval=$with_sysroot;
3666 case ${with_sysroot} in
3667 /) ;;
3668 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3669 esac
3670 case ${with_sysroot} in
3671 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3672 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3673 esac
3674
3675 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3676 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3677
3678 case ${TARGET_SYSTEM_ROOT} in
3679 "${test_prefix}"|"${test_prefix}/"*|\
3680 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3681 '${prefix}'|'${prefix}/'*|\
3682 '${exec_prefix}'|'${exec_prefix}/'*)
3683   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3684   TARGET_SYSTEM_ROOT_DEFINE="$t"
3685   ;;
3686 esac
3687
3688else
3689
3690 TARGET_SYSTEM_ROOT=
3691 TARGET_SYSTEM_ROOT_DEFINE=
3692 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3693
3694fi
3695
3696
3697
3698
3699
3700# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3701# passed in by the toplevel make and thus we'd get different behavior
3702# depending on where we built the sources.
3703gcc_gxx_include_dir=
3704# Specify the g++ header file directory
3705
3706# Check whether --with-gxx-include-dir was given.
3707if test "${with_gxx_include_dir+set}" = set; then :
3708  withval=$with_gxx_include_dir; case "${withval}" in
3709yes)	as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3710no)	;;
3711*)	gcc_gxx_include_dir=$with_gxx_include_dir ;;
3712esac
3713fi
3714
3715
3716# If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3717# the former in the latter and, upon success, compute gcc_gxx_include_dir as
3718# relative to the sysroot.
3719gcc_gxx_include_dir_add_sysroot=0
3720
3721# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3722if test x${gcc_gxx_include_dir} = x; then
3723  if test x${enable_version_specific_runtime_libs} = xyes; then
3724    gcc_gxx_include_dir='${libsubdir}/include/c++'
3725  else
3726    libstdcxx_incdir='include/c++/$(version)'
3727    if test x$host != x$target; then
3728       libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3729    fi
3730    gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3731  fi
3732elif test "${with_sysroot+set}" = set; then
3733  gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3734  if test "${gcc_gxx_without_sysroot}"; then
3735    gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3736    gcc_gxx_include_dir_add_sysroot=1
3737  fi
3738fi
3739
3740# Configuration for an alternate set of C++ headers.
3741gcc_gxx_libcxx_include_dir=
3742# Specify the alternate g++ header file directory
3743
3744# Check whether --with-gxx-libcxx-include-dir was given.
3745if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3746  withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3747yes)	as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3748no)	;;
3749*)	gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3750esac
3751fi
3752
3753
3754# If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3755# check to see if the latter starts with the former and, upon success, compute
3756# gcc_gxx_libcxx_include_dir as relative to the sysroot.
3757gcc_gxx_libcxx_include_dir_add_sysroot=0
3758
3759if test x${gcc_gxx_libcxx_include_dir} != x; then
3760
3761$as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3762
3763else
3764  $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3765
3766fi
3767# ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3768if test x${gcc_gxx_libcxx_include_dir} = x; then
3769  if test x${enable_version_specific_runtime_libs} = xyes; then
3770    gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3771  else
3772    libcxx_incdir='libc++_include/c++/$(version)/v1'
3773    if test x$host != x$target; then
3774       libcxx_incdir="$target_alias/$libcxx_incdir"
3775    fi
3776    gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3777  fi
3778elif test "${with_sysroot+set}" = set; then
3779  gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3780  if test "${gcc_gxx_libcxx_without_sysroot}"; then
3781    gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3782    gcc_gxx_libcxx_include_dir_add_sysroot=1
3783  fi
3784fi
3785
3786
3787# Check whether --with-cpp_install_dir was given.
3788if test "${with_cpp_install_dir+set}" = set; then :
3789  withval=$with_cpp_install_dir; if test x$withval = xyes; then
3790  as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3791elif test x$withval != xno; then
3792  cpp_install_dir=$withval
3793fi
3794fi
3795
3796
3797# We would like to our source tree to be readonly.  However when releases or
3798# pre-releases are generated, the flex/bison generated files as well as the
3799# various formats of manuals need to be included along with the rest of the
3800# sources.  Therefore we have --enable-generated-files-in-srcdir to do
3801# just that.
3802
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3804$as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3805    # Check whether --enable-generated-files-in-srcdir was given.
3806if test "${enable_generated_files_in_srcdir+set}" = set; then :
3807  enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3808else
3809  generated_files_in_srcdir=no
3810fi
3811
3812
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3814$as_echo "$generated_files_in_srcdir" >&6; }
3815
3816if test "$generated_files_in_srcdir" = "yes"; then
3817  GENINSRC=''
3818else
3819  GENINSRC='#'
3820fi
3821
3822
3823# -------------------
3824# Find default linker
3825# -------------------
3826
3827# With GNU ld
3828
3829# Check whether --with-gnu-ld was given.
3830if test "${with_gnu_ld+set}" = set; then :
3831  withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3832else
3833  gnu_ld_flag=no
3834fi
3835
3836
3837case $target in
3838    *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3839    *) ld64_flag=no;;
3840esac
3841
3842# With pre-defined ld
3843
3844# Check whether --with-ld was given.
3845if test "${with_ld+set}" = set; then :
3846  withval=$with_ld; DEFAULT_LINKER="$with_ld"
3847fi
3848
3849if test x"${DEFAULT_LINKER+set}" = x"set"; then
3850  if test ! -x "$DEFAULT_LINKER"; then
3851    as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3852  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3853    gnu_ld_flag=yes
3854  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3855    ld64_flag=yes
3856  fi
3857
3858cat >>confdefs.h <<_ACEOF
3859#define DEFAULT_LINKER "$DEFAULT_LINKER"
3860_ACEOF
3861
3862fi
3863
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3865$as_echo_n "checking whether a default linker was specified... " >&6; }
3866if test x"${DEFAULT_LINKER+set}" = x"set"; then
3867  if test x"$gnu_ld_flag" = x"no"; then
3868    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3869$as_echo "yes ($DEFAULT_LINKER)" >&6; }
3870  else
3871    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3872$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3873  fi
3874else
3875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876$as_echo "no" >&6; }
3877fi
3878
3879# With demangler in GNU ld
3880
3881# Check whether --with-demangler-in-ld was given.
3882if test "${with_demangler_in_ld+set}" = set; then :
3883  withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3884else
3885  demangler_in_ld=yes
3886fi
3887
3888
3889# ----------------------
3890# Find default assembler
3891# ----------------------
3892
3893# With GNU as
3894
3895# Check whether --with-gnu-as was given.
3896if test "${with_gnu_as+set}" = set; then :
3897  withval=$with_gnu_as; gas_flag="$with_gnu_as"
3898else
3899  gas_flag=no
3900fi
3901
3902
3903
3904# Check whether --with-as was given.
3905if test "${with_as+set}" = set; then :
3906  withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3907fi
3908
3909if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3910  if test ! -x "$DEFAULT_ASSEMBLER"; then
3911    as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3912  elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3913    gas_flag=yes
3914  fi
3915
3916cat >>confdefs.h <<_ACEOF
3917#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3918_ACEOF
3919
3920fi
3921
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3923$as_echo_n "checking whether a default assembler was specified... " >&6; }
3924if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3925  if test x"$gas_flag" = x"no"; then
3926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3927$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3928  else
3929    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3930$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3931  fi
3932else
3933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
3935fi
3936
3937# ---------------
3938# Find C compiler
3939# ---------------
3940
3941# If a non-executable a.out is present (e.g. created by GNU as above even if
3942# invoked with -v only), the IRIX 6 native ld just overwrites the existing
3943# file, even when creating an executable, so an execution test fails.
3944# Remove possible default executable files to avoid this.
3945#
3946# FIXME: This really belongs into AC_PROG_CC and can be removed once
3947# Autoconf includes it.
3948rm -f a.out a.exe b.out
3949
3950# Find the native compiler
3951ac_ext=c
3952ac_cpp='$CPP $CPPFLAGS'
3953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956if test -n "$ac_tool_prefix"; then
3957  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3958set dummy ${ac_tool_prefix}gcc; ac_word=$2
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960$as_echo_n "checking for $ac_word... " >&6; }
3961if ${ac_cv_prog_CC+:} false; then :
3962  $as_echo_n "(cached) " >&6
3963else
3964  if test -n "$CC"; then
3965  ac_cv_prog_CC="$CC" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970  IFS=$as_save_IFS
3971  test -z "$as_dir" && as_dir=.
3972    for ac_exec_ext in '' $ac_executable_extensions; do
3973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976    break 2
3977  fi
3978done
3979  done
3980IFS=$as_save_IFS
3981
3982fi
3983fi
3984CC=$ac_cv_prog_CC
3985if test -n "$CC"; then
3986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3987$as_echo "$CC" >&6; }
3988else
3989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990$as_echo "no" >&6; }
3991fi
3992
3993
3994fi
3995if test -z "$ac_cv_prog_CC"; then
3996  ac_ct_CC=$CC
3997  # Extract the first word of "gcc", so it can be a program name with args.
3998set dummy gcc; ac_word=$2
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000$as_echo_n "checking for $ac_word... " >&6; }
4001if ${ac_cv_prog_ac_ct_CC+:} false; then :
4002  $as_echo_n "(cached) " >&6
4003else
4004  if test -n "$ac_ct_CC"; then
4005  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4006else
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010  IFS=$as_save_IFS
4011  test -z "$as_dir" && as_dir=.
4012    for ac_exec_ext in '' $ac_executable_extensions; do
4013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014    ac_cv_prog_ac_ct_CC="gcc"
4015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016    break 2
4017  fi
4018done
4019  done
4020IFS=$as_save_IFS
4021
4022fi
4023fi
4024ac_ct_CC=$ac_cv_prog_ac_ct_CC
4025if test -n "$ac_ct_CC"; then
4026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4027$as_echo "$ac_ct_CC" >&6; }
4028else
4029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030$as_echo "no" >&6; }
4031fi
4032
4033  if test "x$ac_ct_CC" = x; then
4034    CC=""
4035  else
4036    case $cross_compiling:$ac_tool_warned in
4037yes:)
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4040ac_tool_warned=yes ;;
4041esac
4042    CC=$ac_ct_CC
4043  fi
4044else
4045  CC="$ac_cv_prog_CC"
4046fi
4047
4048if test -z "$CC"; then
4049          if test -n "$ac_tool_prefix"; then
4050    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4051set dummy ${ac_tool_prefix}cc; ac_word=$2
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053$as_echo_n "checking for $ac_word... " >&6; }
4054if ${ac_cv_prog_CC+:} false; then :
4055  $as_echo_n "(cached) " >&6
4056else
4057  if test -n "$CC"; then
4058  ac_cv_prog_CC="$CC" # Let the user override the test.
4059else
4060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH
4062do
4063  IFS=$as_save_IFS
4064  test -z "$as_dir" && as_dir=.
4065    for ac_exec_ext in '' $ac_executable_extensions; do
4066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4067    ac_cv_prog_CC="${ac_tool_prefix}cc"
4068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069    break 2
4070  fi
4071done
4072  done
4073IFS=$as_save_IFS
4074
4075fi
4076fi
4077CC=$ac_cv_prog_CC
4078if test -n "$CC"; then
4079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4080$as_echo "$CC" >&6; }
4081else
4082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083$as_echo "no" >&6; }
4084fi
4085
4086
4087  fi
4088fi
4089if test -z "$CC"; then
4090  # Extract the first word of "cc", so it can be a program name with args.
4091set dummy cc; ac_word=$2
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093$as_echo_n "checking for $ac_word... " >&6; }
4094if ${ac_cv_prog_CC+:} false; then :
4095  $as_echo_n "(cached) " >&6
4096else
4097  if test -n "$CC"; then
4098  ac_cv_prog_CC="$CC" # Let the user override the test.
4099else
4100  ac_prog_rejected=no
4101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH
4103do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106    for ac_exec_ext in '' $ac_executable_extensions; do
4107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4109       ac_prog_rejected=yes
4110       continue
4111     fi
4112    ac_cv_prog_CC="cc"
4113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114    break 2
4115  fi
4116done
4117  done
4118IFS=$as_save_IFS
4119
4120if test $ac_prog_rejected = yes; then
4121  # We found a bogon in the path, so make sure we never use it.
4122  set dummy $ac_cv_prog_CC
4123  shift
4124  if test $# != 0; then
4125    # We chose a different compiler from the bogus one.
4126    # However, it has the same basename, so the bogon will be chosen
4127    # first if we set CC to just the basename; use the full file name.
4128    shift
4129    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4130  fi
4131fi
4132fi
4133fi
4134CC=$ac_cv_prog_CC
4135if test -n "$CC"; then
4136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4137$as_echo "$CC" >&6; }
4138else
4139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140$as_echo "no" >&6; }
4141fi
4142
4143
4144fi
4145if test -z "$CC"; then
4146  if test -n "$ac_tool_prefix"; then
4147  for ac_prog in cl.exe
4148  do
4149    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4150set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152$as_echo_n "checking for $ac_word... " >&6; }
4153if ${ac_cv_prog_CC+:} false; then :
4154  $as_echo_n "(cached) " >&6
4155else
4156  if test -n "$CC"; then
4157  ac_cv_prog_CC="$CC" # Let the user override the test.
4158else
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162  IFS=$as_save_IFS
4163  test -z "$as_dir" && as_dir=.
4164    for ac_exec_ext in '' $ac_executable_extensions; do
4165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168    break 2
4169  fi
4170done
4171  done
4172IFS=$as_save_IFS
4173
4174fi
4175fi
4176CC=$ac_cv_prog_CC
4177if test -n "$CC"; then
4178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4179$as_echo "$CC" >&6; }
4180else
4181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; }
4183fi
4184
4185
4186    test -n "$CC" && break
4187  done
4188fi
4189if test -z "$CC"; then
4190  ac_ct_CC=$CC
4191  for ac_prog in cl.exe
4192do
4193  # Extract the first word of "$ac_prog", so it can be a program name with args.
4194set dummy $ac_prog; ac_word=$2
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196$as_echo_n "checking for $ac_word... " >&6; }
4197if ${ac_cv_prog_ac_ct_CC+:} false; then :
4198  $as_echo_n "(cached) " >&6
4199else
4200  if test -n "$ac_ct_CC"; then
4201  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4202else
4203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH
4205do
4206  IFS=$as_save_IFS
4207  test -z "$as_dir" && as_dir=.
4208    for ac_exec_ext in '' $ac_executable_extensions; do
4209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210    ac_cv_prog_ac_ct_CC="$ac_prog"
4211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212    break 2
4213  fi
4214done
4215  done
4216IFS=$as_save_IFS
4217
4218fi
4219fi
4220ac_ct_CC=$ac_cv_prog_ac_ct_CC
4221if test -n "$ac_ct_CC"; then
4222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4223$as_echo "$ac_ct_CC" >&6; }
4224else
4225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226$as_echo "no" >&6; }
4227fi
4228
4229
4230  test -n "$ac_ct_CC" && break
4231done
4232
4233  if test "x$ac_ct_CC" = x; then
4234    CC=""
4235  else
4236    case $cross_compiling:$ac_tool_warned in
4237yes:)
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4240ac_tool_warned=yes ;;
4241esac
4242    CC=$ac_ct_CC
4243  fi
4244fi
4245
4246fi
4247
4248
4249test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4251as_fn_error $? "no acceptable C compiler found in \$PATH
4252See \`config.log' for more details" "$LINENO" 5; }
4253
4254# Provide some information about the compiler.
4255$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4256set X $ac_compile
4257ac_compiler=$2
4258for ac_option in --version -v -V -qversion; do
4259  { { ac_try="$ac_compiler $ac_option >&5"
4260case "(($ac_try" in
4261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262  *) ac_try_echo=$ac_try;;
4263esac
4264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4265$as_echo "$ac_try_echo"; } >&5
4266  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4267  ac_status=$?
4268  if test -s conftest.err; then
4269    sed '10a\
4270... rest of stderr output deleted ...
4271         10q' conftest.err >conftest.er1
4272    cat conftest.er1 >&5
4273  fi
4274  rm -f conftest.er1 conftest.err
4275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4276  test $ac_status = 0; }
4277done
4278
4279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280/* end confdefs.h.  */
4281
4282int
4283main ()
4284{
4285
4286  ;
4287  return 0;
4288}
4289_ACEOF
4290ac_clean_files_save=$ac_clean_files
4291ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4292# Try to create an executable without -o first, disregard a.out.
4293# It will help us diagnose broken compilers, and finding out an intuition
4294# of exeext.
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4296$as_echo_n "checking whether the C compiler works... " >&6; }
4297ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4298
4299# The possible output files:
4300ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4301
4302ac_rmfiles=
4303for ac_file in $ac_files
4304do
4305  case $ac_file in
4306    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4307    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4308  esac
4309done
4310rm -f $ac_rmfiles
4311
4312if { { ac_try="$ac_link_default"
4313case "(($ac_try" in
4314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315  *) ac_try_echo=$ac_try;;
4316esac
4317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318$as_echo "$ac_try_echo"; } >&5
4319  (eval "$ac_link_default") 2>&5
4320  ac_status=$?
4321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322  test $ac_status = 0; }; then :
4323  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4324# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4325# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4326# so that the user can short-circuit this test for compilers unknown to
4327# Autoconf.
4328for ac_file in $ac_files ''
4329do
4330  test -f "$ac_file" || continue
4331  case $ac_file in
4332    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4333	;;
4334    [ab].out )
4335	# We found the default executable, but exeext='' is most
4336	# certainly right.
4337	break;;
4338    *.* )
4339	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4340	then :; else
4341	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4342	fi
4343	# We set ac_cv_exeext here because the later test for it is not
4344	# safe: cross compilers may not add the suffix if given an `-o'
4345	# argument, so we may need to know it at that point already.
4346	# Even if this section looks crufty: it has the advantage of
4347	# actually working.
4348	break;;
4349    * )
4350	break;;
4351  esac
4352done
4353test "$ac_cv_exeext" = no && ac_cv_exeext=
4354
4355else
4356  ac_file=''
4357fi
4358if test -z "$ac_file"; then :
4359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360$as_echo "no" >&6; }
4361$as_echo "$as_me: failed program was:" >&5
4362sed 's/^/| /' conftest.$ac_ext >&5
4363
4364{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4366as_fn_error 77 "C compiler cannot create executables
4367See \`config.log' for more details" "$LINENO" 5; }
4368else
4369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4370$as_echo "yes" >&6; }
4371fi
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4373$as_echo_n "checking for C compiler default output file name... " >&6; }
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4375$as_echo "$ac_file" >&6; }
4376ac_exeext=$ac_cv_exeext
4377
4378rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4379ac_clean_files=$ac_clean_files_save
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4381$as_echo_n "checking for suffix of executables... " >&6; }
4382if { { ac_try="$ac_link"
4383case "(($ac_try" in
4384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385  *) ac_try_echo=$ac_try;;
4386esac
4387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388$as_echo "$ac_try_echo"; } >&5
4389  (eval "$ac_link") 2>&5
4390  ac_status=$?
4391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392  test $ac_status = 0; }; then :
4393  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4394# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4395# work properly (i.e., refer to `conftest.exe'), while it won't with
4396# `rm'.
4397for ac_file in conftest.exe conftest conftest.*; do
4398  test -f "$ac_file" || continue
4399  case $ac_file in
4400    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4401    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4402	  break;;
4403    * ) break;;
4404  esac
4405done
4406else
4407  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4409as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4410See \`config.log' for more details" "$LINENO" 5; }
4411fi
4412rm -f conftest conftest$ac_cv_exeext
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4414$as_echo "$ac_cv_exeext" >&6; }
4415
4416rm -f conftest.$ac_ext
4417EXEEXT=$ac_cv_exeext
4418ac_exeext=$EXEEXT
4419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h.  */
4421#include <stdio.h>
4422int
4423main ()
4424{
4425FILE *f = fopen ("conftest.out", "w");
4426 return ferror (f) || fclose (f) != 0;
4427
4428  ;
4429  return 0;
4430}
4431_ACEOF
4432ac_clean_files="$ac_clean_files conftest.out"
4433# Check that the compiler produces executables we can run.  If not, either
4434# the compiler is broken, or we cross compile.
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4436$as_echo_n "checking whether we are cross compiling... " >&6; }
4437if test "$cross_compiling" != yes; then
4438  { { ac_try="$ac_link"
4439case "(($ac_try" in
4440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441  *) ac_try_echo=$ac_try;;
4442esac
4443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444$as_echo "$ac_try_echo"; } >&5
4445  (eval "$ac_link") 2>&5
4446  ac_status=$?
4447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448  test $ac_status = 0; }
4449  if { ac_try='./conftest$ac_cv_exeext'
4450  { { case "(($ac_try" in
4451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452  *) ac_try_echo=$ac_try;;
4453esac
4454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455$as_echo "$ac_try_echo"; } >&5
4456  (eval "$ac_try") 2>&5
4457  ac_status=$?
4458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459  test $ac_status = 0; }; }; then
4460    cross_compiling=no
4461  else
4462    if test "$cross_compiling" = maybe; then
4463	cross_compiling=yes
4464    else
4465	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4467as_fn_error $? "cannot run C compiled programs.
4468If you meant to cross compile, use \`--host'.
4469See \`config.log' for more details" "$LINENO" 5; }
4470    fi
4471  fi
4472fi
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4474$as_echo "$cross_compiling" >&6; }
4475
4476rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4477ac_clean_files=$ac_clean_files_save
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4479$as_echo_n "checking for suffix of object files... " >&6; }
4480if ${ac_cv_objext+:} false; then :
4481  $as_echo_n "(cached) " >&6
4482else
4483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484/* end confdefs.h.  */
4485
4486int
4487main ()
4488{
4489
4490  ;
4491  return 0;
4492}
4493_ACEOF
4494rm -f conftest.o conftest.obj
4495if { { ac_try="$ac_compile"
4496case "(($ac_try" in
4497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498  *) ac_try_echo=$ac_try;;
4499esac
4500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501$as_echo "$ac_try_echo"; } >&5
4502  (eval "$ac_compile") 2>&5
4503  ac_status=$?
4504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505  test $ac_status = 0; }; then :
4506  for ac_file in conftest.o conftest.obj conftest.*; do
4507  test -f "$ac_file" || continue;
4508  case $ac_file in
4509    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4510    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4511       break;;
4512  esac
4513done
4514else
4515  $as_echo "$as_me: failed program was:" >&5
4516sed 's/^/| /' conftest.$ac_ext >&5
4517
4518{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4520as_fn_error $? "cannot compute suffix of object files: cannot compile
4521See \`config.log' for more details" "$LINENO" 5; }
4522fi
4523rm -f conftest.$ac_cv_objext conftest.$ac_ext
4524fi
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4526$as_echo "$ac_cv_objext" >&6; }
4527OBJEXT=$ac_cv_objext
4528ac_objext=$OBJEXT
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4530$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4531if ${ac_cv_c_compiler_gnu+:} false; then :
4532  $as_echo_n "(cached) " >&6
4533else
4534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h.  */
4536
4537int
4538main ()
4539{
4540#ifndef __GNUC__
4541       choke me
4542#endif
4543
4544  ;
4545  return 0;
4546}
4547_ACEOF
4548if ac_fn_c_try_compile "$LINENO"; then :
4549  ac_compiler_gnu=yes
4550else
4551  ac_compiler_gnu=no
4552fi
4553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554ac_cv_c_compiler_gnu=$ac_compiler_gnu
4555
4556fi
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4558$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4559if test $ac_compiler_gnu = yes; then
4560  GCC=yes
4561else
4562  GCC=
4563fi
4564ac_test_CFLAGS=${CFLAGS+set}
4565ac_save_CFLAGS=$CFLAGS
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4567$as_echo_n "checking whether $CC accepts -g... " >&6; }
4568if ${ac_cv_prog_cc_g+:} false; then :
4569  $as_echo_n "(cached) " >&6
4570else
4571  ac_save_c_werror_flag=$ac_c_werror_flag
4572   ac_c_werror_flag=yes
4573   ac_cv_prog_cc_g=no
4574   CFLAGS="-g"
4575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576/* end confdefs.h.  */
4577
4578int
4579main ()
4580{
4581
4582  ;
4583  return 0;
4584}
4585_ACEOF
4586if ac_fn_c_try_compile "$LINENO"; then :
4587  ac_cv_prog_cc_g=yes
4588else
4589  CFLAGS=""
4590      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591/* end confdefs.h.  */
4592
4593int
4594main ()
4595{
4596
4597  ;
4598  return 0;
4599}
4600_ACEOF
4601if ac_fn_c_try_compile "$LINENO"; then :
4602
4603else
4604  ac_c_werror_flag=$ac_save_c_werror_flag
4605	 CFLAGS="-g"
4606	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607/* end confdefs.h.  */
4608
4609int
4610main ()
4611{
4612
4613  ;
4614  return 0;
4615}
4616_ACEOF
4617if ac_fn_c_try_compile "$LINENO"; then :
4618  ac_cv_prog_cc_g=yes
4619fi
4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621fi
4622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623fi
4624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625   ac_c_werror_flag=$ac_save_c_werror_flag
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4628$as_echo "$ac_cv_prog_cc_g" >&6; }
4629if test "$ac_test_CFLAGS" = set; then
4630  CFLAGS=$ac_save_CFLAGS
4631elif test $ac_cv_prog_cc_g = yes; then
4632  if test "$GCC" = yes; then
4633    CFLAGS="-g -O2"
4634  else
4635    CFLAGS="-g"
4636  fi
4637else
4638  if test "$GCC" = yes; then
4639    CFLAGS="-O2"
4640  else
4641    CFLAGS=
4642  fi
4643fi
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4645$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4646if ${ac_cv_prog_cc_c89+:} false; then :
4647  $as_echo_n "(cached) " >&6
4648else
4649  ac_cv_prog_cc_c89=no
4650ac_save_CC=$CC
4651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652/* end confdefs.h.  */
4653#include <stdarg.h>
4654#include <stdio.h>
4655struct stat;
4656/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4657struct buf { int x; };
4658FILE * (*rcsopen) (struct buf *, struct stat *, int);
4659static char *e (p, i)
4660     char **p;
4661     int i;
4662{
4663  return p[i];
4664}
4665static char *f (char * (*g) (char **, int), char **p, ...)
4666{
4667  char *s;
4668  va_list v;
4669  va_start (v,p);
4670  s = g (p, va_arg (v,int));
4671  va_end (v);
4672  return s;
4673}
4674
4675/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4676   function prototypes and stuff, but not '\xHH' hex character constants.
4677   These don't provoke an error unfortunately, instead are silently treated
4678   as 'x'.  The following induces an error, until -std is added to get
4679   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4680   array size at least.  It's necessary to write '\x00'==0 to get something
4681   that's true only with -std.  */
4682int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4683
4684/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4685   inside strings and character constants.  */
4686#define FOO(x) 'x'
4687int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4688
4689int test (int i, double x);
4690struct s1 {int (*f) (int a);};
4691struct s2 {int (*f) (double a);};
4692int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4693int argc;
4694char **argv;
4695int
4696main ()
4697{
4698return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4699  ;
4700  return 0;
4701}
4702_ACEOF
4703for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4704	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4705do
4706  CC="$ac_save_CC $ac_arg"
4707  if ac_fn_c_try_compile "$LINENO"; then :
4708  ac_cv_prog_cc_c89=$ac_arg
4709fi
4710rm -f core conftest.err conftest.$ac_objext
4711  test "x$ac_cv_prog_cc_c89" != "xno" && break
4712done
4713rm -f conftest.$ac_ext
4714CC=$ac_save_CC
4715
4716fi
4717# AC_CACHE_VAL
4718case "x$ac_cv_prog_cc_c89" in
4719  x)
4720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4721$as_echo "none needed" >&6; } ;;
4722  xno)
4723    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4724$as_echo "unsupported" >&6; } ;;
4725  *)
4726    CC="$CC $ac_cv_prog_cc_c89"
4727    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4728$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4729esac
4730if test "x$ac_cv_prog_cc_c89" != xno; then :
4731
4732fi
4733
4734ac_ext=c
4735ac_cpp='$CPP $CPPFLAGS'
4736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739
4740ac_ext=cpp
4741ac_cpp='$CXXCPP $CPPFLAGS'
4742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4745if test -z "$CXX"; then
4746  if test -n "$CCC"; then
4747    CXX=$CCC
4748  else
4749    if test -n "$ac_tool_prefix"; then
4750  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4751  do
4752    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755$as_echo_n "checking for $ac_word... " >&6; }
4756if ${ac_cv_prog_CXX+:} false; then :
4757  $as_echo_n "(cached) " >&6
4758else
4759  if test -n "$CXX"; then
4760  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4761else
4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
4764do
4765  IFS=$as_save_IFS
4766  test -z "$as_dir" && as_dir=.
4767    for ac_exec_ext in '' $ac_executable_extensions; do
4768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771    break 2
4772  fi
4773done
4774  done
4775IFS=$as_save_IFS
4776
4777fi
4778fi
4779CXX=$ac_cv_prog_CXX
4780if test -n "$CXX"; then
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4782$as_echo "$CXX" >&6; }
4783else
4784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785$as_echo "no" >&6; }
4786fi
4787
4788
4789    test -n "$CXX" && break
4790  done
4791fi
4792if test -z "$CXX"; then
4793  ac_ct_CXX=$CXX
4794  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4795do
4796  # Extract the first word of "$ac_prog", so it can be a program name with args.
4797set dummy $ac_prog; ac_word=$2
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799$as_echo_n "checking for $ac_word... " >&6; }
4800if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4801  $as_echo_n "(cached) " >&6
4802else
4803  if test -n "$ac_ct_CXX"; then
4804  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4805else
4806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807for as_dir in $PATH
4808do
4809  IFS=$as_save_IFS
4810  test -z "$as_dir" && as_dir=.
4811    for ac_exec_ext in '' $ac_executable_extensions; do
4812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813    ac_cv_prog_ac_ct_CXX="$ac_prog"
4814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815    break 2
4816  fi
4817done
4818  done
4819IFS=$as_save_IFS
4820
4821fi
4822fi
4823ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4824if test -n "$ac_ct_CXX"; then
4825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4826$as_echo "$ac_ct_CXX" >&6; }
4827else
4828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829$as_echo "no" >&6; }
4830fi
4831
4832
4833  test -n "$ac_ct_CXX" && break
4834done
4835
4836  if test "x$ac_ct_CXX" = x; then
4837    CXX="g++"
4838  else
4839    case $cross_compiling:$ac_tool_warned in
4840yes:)
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843ac_tool_warned=yes ;;
4844esac
4845    CXX=$ac_ct_CXX
4846  fi
4847fi
4848
4849  fi
4850fi
4851# Provide some information about the compiler.
4852$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4853set X $ac_compile
4854ac_compiler=$2
4855for ac_option in --version -v -V -qversion; do
4856  { { ac_try="$ac_compiler $ac_option >&5"
4857case "(($ac_try" in
4858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859  *) ac_try_echo=$ac_try;;
4860esac
4861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4862$as_echo "$ac_try_echo"; } >&5
4863  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4864  ac_status=$?
4865  if test -s conftest.err; then
4866    sed '10a\
4867... rest of stderr output deleted ...
4868         10q' conftest.err >conftest.er1
4869    cat conftest.er1 >&5
4870  fi
4871  rm -f conftest.er1 conftest.err
4872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4873  test $ac_status = 0; }
4874done
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4877$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4878if ${ac_cv_cxx_compiler_gnu+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882/* end confdefs.h.  */
4883
4884int
4885main ()
4886{
4887#ifndef __GNUC__
4888       choke me
4889#endif
4890
4891  ;
4892  return 0;
4893}
4894_ACEOF
4895if ac_fn_cxx_try_compile "$LINENO"; then :
4896  ac_compiler_gnu=yes
4897else
4898  ac_compiler_gnu=no
4899fi
4900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4902
4903fi
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4905$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4906if test $ac_compiler_gnu = yes; then
4907  GXX=yes
4908else
4909  GXX=
4910fi
4911ac_test_CXXFLAGS=${CXXFLAGS+set}
4912ac_save_CXXFLAGS=$CXXFLAGS
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4914$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4915if ${ac_cv_prog_cxx_g+:} false; then :
4916  $as_echo_n "(cached) " >&6
4917else
4918  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4919   ac_cxx_werror_flag=yes
4920   ac_cv_prog_cxx_g=no
4921   CXXFLAGS="-g"
4922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923/* end confdefs.h.  */
4924
4925int
4926main ()
4927{
4928
4929  ;
4930  return 0;
4931}
4932_ACEOF
4933if ac_fn_cxx_try_compile "$LINENO"; then :
4934  ac_cv_prog_cxx_g=yes
4935else
4936  CXXFLAGS=""
4937      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938/* end confdefs.h.  */
4939
4940int
4941main ()
4942{
4943
4944  ;
4945  return 0;
4946}
4947_ACEOF
4948if ac_fn_cxx_try_compile "$LINENO"; then :
4949
4950else
4951  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4952	 CXXFLAGS="-g"
4953	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954/* end confdefs.h.  */
4955
4956int
4957main ()
4958{
4959
4960  ;
4961  return 0;
4962}
4963_ACEOF
4964if ac_fn_cxx_try_compile "$LINENO"; then :
4965  ac_cv_prog_cxx_g=yes
4966fi
4967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968fi
4969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970fi
4971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4973fi
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4975$as_echo "$ac_cv_prog_cxx_g" >&6; }
4976if test "$ac_test_CXXFLAGS" = set; then
4977  CXXFLAGS=$ac_save_CXXFLAGS
4978elif test $ac_cv_prog_cxx_g = yes; then
4979  if test "$GXX" = yes; then
4980    CXXFLAGS="-g -O2"
4981  else
4982    CXXFLAGS="-g"
4983  fi
4984else
4985  if test "$GXX" = yes; then
4986    CXXFLAGS="-O2"
4987  else
4988    CXXFLAGS=
4989  fi
4990fi
4991ac_ext=c
4992ac_cpp='$CPP $CPPFLAGS'
4993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996
4997
4998
4999
5000if test -n "$ac_tool_prefix"; then
5001  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5002set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004$as_echo_n "checking for $ac_word... " >&6; }
5005if ${ac_cv_prog_GNATBIND+:} false; then :
5006  $as_echo_n "(cached) " >&6
5007else
5008  if test -n "$GNATBIND"; then
5009  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5010else
5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014  IFS=$as_save_IFS
5015  test -z "$as_dir" && as_dir=.
5016    for ac_exec_ext in '' $ac_executable_extensions; do
5017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020    break 2
5021  fi
5022done
5023  done
5024IFS=$as_save_IFS
5025
5026fi
5027fi
5028GNATBIND=$ac_cv_prog_GNATBIND
5029if test -n "$GNATBIND"; then
5030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5031$as_echo "$GNATBIND" >&6; }
5032else
5033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034$as_echo "no" >&6; }
5035fi
5036
5037
5038fi
5039if test -z "$ac_cv_prog_GNATBIND"; then
5040  ac_ct_GNATBIND=$GNATBIND
5041  # Extract the first word of "gnatbind", so it can be a program name with args.
5042set dummy gnatbind; ac_word=$2
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044$as_echo_n "checking for $ac_word... " >&6; }
5045if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5046  $as_echo_n "(cached) " >&6
5047else
5048  if test -n "$ac_ct_GNATBIND"; then
5049  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5050else
5051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052for as_dir in $PATH
5053do
5054  IFS=$as_save_IFS
5055  test -z "$as_dir" && as_dir=.
5056    for ac_exec_ext in '' $ac_executable_extensions; do
5057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060    break 2
5061  fi
5062done
5063  done
5064IFS=$as_save_IFS
5065
5066fi
5067fi
5068ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5069if test -n "$ac_ct_GNATBIND"; then
5070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5071$as_echo "$ac_ct_GNATBIND" >&6; }
5072else
5073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074$as_echo "no" >&6; }
5075fi
5076
5077  if test "x$ac_ct_GNATBIND" = x; then
5078    GNATBIND="no"
5079  else
5080    case $cross_compiling:$ac_tool_warned in
5081yes:)
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5084ac_tool_warned=yes ;;
5085esac
5086    GNATBIND=$ac_ct_GNATBIND
5087  fi
5088else
5089  GNATBIND="$ac_cv_prog_GNATBIND"
5090fi
5091
5092if test -n "$ac_tool_prefix"; then
5093  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5094set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096$as_echo_n "checking for $ac_word... " >&6; }
5097if ${ac_cv_prog_GNATMAKE+:} false; then :
5098  $as_echo_n "(cached) " >&6
5099else
5100  if test -n "$GNATMAKE"; then
5101  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106  IFS=$as_save_IFS
5107  test -z "$as_dir" && as_dir=.
5108    for ac_exec_ext in '' $ac_executable_extensions; do
5109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112    break 2
5113  fi
5114done
5115  done
5116IFS=$as_save_IFS
5117
5118fi
5119fi
5120GNATMAKE=$ac_cv_prog_GNATMAKE
5121if test -n "$GNATMAKE"; then
5122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5123$as_echo "$GNATMAKE" >&6; }
5124else
5125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126$as_echo "no" >&6; }
5127fi
5128
5129
5130fi
5131if test -z "$ac_cv_prog_GNATMAKE"; then
5132  ac_ct_GNATMAKE=$GNATMAKE
5133  # Extract the first word of "gnatmake", so it can be a program name with args.
5134set dummy gnatmake; ac_word=$2
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136$as_echo_n "checking for $ac_word... " >&6; }
5137if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5138  $as_echo_n "(cached) " >&6
5139else
5140  if test -n "$ac_ct_GNATMAKE"; then
5141  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146  IFS=$as_save_IFS
5147  test -z "$as_dir" && as_dir=.
5148    for ac_exec_ext in '' $ac_executable_extensions; do
5149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152    break 2
5153  fi
5154done
5155  done
5156IFS=$as_save_IFS
5157
5158fi
5159fi
5160ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5161if test -n "$ac_ct_GNATMAKE"; then
5162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5163$as_echo "$ac_ct_GNATMAKE" >&6; }
5164else
5165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166$as_echo "no" >&6; }
5167fi
5168
5169  if test "x$ac_ct_GNATMAKE" = x; then
5170    GNATMAKE="no"
5171  else
5172    case $cross_compiling:$ac_tool_warned in
5173yes:)
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176ac_tool_warned=yes ;;
5177esac
5178    GNATMAKE=$ac_ct_GNATMAKE
5179  fi
5180else
5181  GNATMAKE="$ac_cv_prog_GNATMAKE"
5182fi
5183
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5185$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5186if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5187  $as_echo_n "(cached) " >&6
5188else
5189  cat >conftest.adb <<EOF
5190procedure conftest is begin null; end conftest;
5191EOF
5192acx_cv_cc_gcc_supports_ada=no
5193# There is a bug in old released versions of GCC which causes the
5194# driver to exit successfully when the appropriate language module
5195# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5196# Therefore we must check for the error message as well as an
5197# unsuccessful exit.
5198# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5199# given a .adb file, but produce no object file.  So we must check
5200# if an object file was really produced to guard against this.
5201errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5202if test x"$errors" = x && test -f conftest.$ac_objext; then
5203  acx_cv_cc_gcc_supports_ada=yes
5204fi
5205rm -f conftest.*
5206fi
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5208$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5209
5210if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5211  have_gnat=yes
5212else
5213  have_gnat=no
5214fi
5215
5216
5217# Do configure tests with the C++ compiler, since that's what we build with.
5218ac_ext=cpp
5219ac_cpp='$CXXCPP $CPPFLAGS'
5220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5223
5224
5225# Remove the -O2: for historical reasons, unless bootstrapping we prefer
5226# optimizations to be activated explicitly by the toplevel.
5227case "$CC" in
5228  */prev-gcc/xgcc*) ;;
5229  *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" `
5230     CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" ` ;;
5231esac
5232
5233
5234
5235# Determine PICFLAG for target gnatlib.
5236
5237
5238
5239
5240case "${target}" in
5241    # PIC is the default on some targets or must not be used.
5242    *-*-darwin*)
5243	# For darwin, common symbols are not allowed in MH_DYLIB files
5244	case "${CFLAGS}" in
5245	  # If we are using a compiler supporting mdynamic-no-pic
5246	  # and the option has been tested as safe to add, then cancel
5247	  # it here, since the code generated is incompatible with shared
5248	  # libs.
5249	  *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5250	  *) PICFLAG_FOR_TARGET=-fno-common ;;
5251	esac
5252	;;
5253    alpha*-dec-osf5*)
5254	# PIC is the default.
5255	;;
5256    hppa*64*-*-hpux*)
5257	# PIC is the default for 64-bit PA HP-UX.
5258	;;
5259    i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5260	;;
5261    i[34567]86-*-mingw* | x86_64-*-mingw*)
5262	;;
5263    i[34567]86-*-interix[3-9]*)
5264	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5265	# Instead, we relocate shared libraries at runtime.
5266	;;
5267    i[34567]86-*-nto-qnx*)
5268	# QNX uses GNU C++, but need to define -shared option too, otherwise
5269	# it will coredump.
5270	PICFLAG_FOR_TARGET='-fPIC -shared'
5271	;;
5272    i[34567]86-pc-msdosdjgpp*)
5273	# DJGPP does not support shared libraries at all.
5274	;;
5275    ia64*-*-hpux*)
5276	# On IA64 HP-UX, PIC is the default but the pic flag
5277	# sets the default TLS model and affects inlining.
5278	PICFLAG_FOR_TARGET=-fPIC
5279	;;
5280    mips-sgi-irix6*)
5281	# PIC is the default.
5282	;;
5283    rs6000-ibm-aix* | powerpc-ibm-aix*)
5284	# All AIX code is PIC.
5285	;;
5286
5287    # Some targets support both -fPIC and -fpic, but prefer the latter.
5288    # FIXME: Why?
5289    i[34567]86-*-* | x86_64-*-*)
5290	PICFLAG_FOR_TARGET=-fpic
5291	;;
5292    # FIXME: Override -fPIC default in libgcc only?
5293    sh-*-linux* | sh[2346lbe]*-*-linux*)
5294	PICFLAG_FOR_TARGET=-fpic
5295	;;
5296    # FIXME: Simplify to sh*-*-netbsd*?
5297    sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5298      sh64-*-netbsd* | sh64l*-*-netbsd*)
5299	PICFLAG_FOR_TARGET=-fpic
5300	;;
5301    # Default to -fPIC unless specified otherwise.
5302    *)
5303	PICFLAG_FOR_TARGET=-fPIC
5304	;;
5305esac
5306
5307# If the user explicitly uses -fpic/-fPIC, keep that.
5308case "${CFLAGS_FOR_TARGET}" in
5309    *-fpic*)
5310	PICFLAG_FOR_TARGET=-fpic
5311	;;
5312    *-fPIC*)
5313	PICFLAG_FOR_TARGET=-fPIC
5314	;;
5315esac
5316
5317
5318
5319# -------------------------
5320# Check C compiler features
5321# -------------------------
5322
5323
5324ac_ext=cpp
5325ac_cpp='$CXXCPP $CPPFLAGS'
5326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5330$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5331if test -z "$CXXCPP"; then
5332  if ${ac_cv_prog_CXXCPP+:} false; then :
5333  $as_echo_n "(cached) " >&6
5334else
5335      # Double quotes because CXXCPP needs to be expanded
5336    for CXXCPP in "$CXX -E" "/lib/cpp"
5337    do
5338      ac_preproc_ok=false
5339for ac_cxx_preproc_warn_flag in '' yes
5340do
5341  # Use a header file that comes with gcc, so configuring glibc
5342  # with a fresh cross-compiler works.
5343  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344  # <limits.h> exists even on freestanding compilers.
5345  # On the NeXT, cc -E runs the code through the compiler's parser,
5346  # not just through cpp. "Syntax error" is here to catch this case.
5347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348/* end confdefs.h.  */
5349#ifdef __STDC__
5350# include <limits.h>
5351#else
5352# include <assert.h>
5353#endif
5354		     Syntax error
5355_ACEOF
5356if ac_fn_cxx_try_cpp "$LINENO"; then :
5357
5358else
5359  # Broken: fails on valid input.
5360continue
5361fi
5362rm -f conftest.err conftest.i conftest.$ac_ext
5363
5364  # OK, works on sane cases.  Now check whether nonexistent headers
5365  # can be detected and how.
5366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367/* end confdefs.h.  */
5368#include <ac_nonexistent.h>
5369_ACEOF
5370if ac_fn_cxx_try_cpp "$LINENO"; then :
5371  # Broken: success on invalid input.
5372continue
5373else
5374  # Passes both tests.
5375ac_preproc_ok=:
5376break
5377fi
5378rm -f conftest.err conftest.i conftest.$ac_ext
5379
5380done
5381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5382rm -f conftest.i conftest.err conftest.$ac_ext
5383if $ac_preproc_ok; then :
5384  break
5385fi
5386
5387    done
5388    ac_cv_prog_CXXCPP=$CXXCPP
5389
5390fi
5391  CXXCPP=$ac_cv_prog_CXXCPP
5392else
5393  ac_cv_prog_CXXCPP=$CXXCPP
5394fi
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5396$as_echo "$CXXCPP" >&6; }
5397ac_preproc_ok=false
5398for ac_cxx_preproc_warn_flag in '' yes
5399do
5400  # Use a header file that comes with gcc, so configuring glibc
5401  # with a fresh cross-compiler works.
5402  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5403  # <limits.h> exists even on freestanding compilers.
5404  # On the NeXT, cc -E runs the code through the compiler's parser,
5405  # not just through cpp. "Syntax error" is here to catch this case.
5406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h.  */
5408#ifdef __STDC__
5409# include <limits.h>
5410#else
5411# include <assert.h>
5412#endif
5413		     Syntax error
5414_ACEOF
5415if ac_fn_cxx_try_cpp "$LINENO"; then :
5416
5417else
5418  # Broken: fails on valid input.
5419continue
5420fi
5421rm -f conftest.err conftest.i conftest.$ac_ext
5422
5423  # OK, works on sane cases.  Now check whether nonexistent headers
5424  # can be detected and how.
5425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426/* end confdefs.h.  */
5427#include <ac_nonexistent.h>
5428_ACEOF
5429if ac_fn_cxx_try_cpp "$LINENO"; then :
5430  # Broken: success on invalid input.
5431continue
5432else
5433  # Passes both tests.
5434ac_preproc_ok=:
5435break
5436fi
5437rm -f conftest.err conftest.i conftest.$ac_ext
5438
5439done
5440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5441rm -f conftest.i conftest.err conftest.$ac_ext
5442if $ac_preproc_ok; then :
5443
5444else
5445  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5447as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5448See \`config.log' for more details" "$LINENO" 5; }
5449fi
5450
5451ac_ext=cpp
5452ac_cpp='$CXXCPP $CPPFLAGS'
5453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5456
5457
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5459$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5460if ${ac_cv_path_GREP+:} false; then :
5461  $as_echo_n "(cached) " >&6
5462else
5463  if test -z "$GREP"; then
5464  ac_path_GREP_found=false
5465  # Loop through the user's path and test for each of PROGNAME-LIST
5466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5468do
5469  IFS=$as_save_IFS
5470  test -z "$as_dir" && as_dir=.
5471    for ac_prog in grep ggrep; do
5472    for ac_exec_ext in '' $ac_executable_extensions; do
5473      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5474      as_fn_executable_p "$ac_path_GREP" || continue
5475# Check for GNU ac_path_GREP and select it if it is found.
5476  # Check for GNU $ac_path_GREP
5477case `"$ac_path_GREP" --version 2>&1` in
5478*GNU*)
5479  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5480*)
5481  ac_count=0
5482  $as_echo_n 0123456789 >"conftest.in"
5483  while :
5484  do
5485    cat "conftest.in" "conftest.in" >"conftest.tmp"
5486    mv "conftest.tmp" "conftest.in"
5487    cp "conftest.in" "conftest.nl"
5488    $as_echo 'GREP' >> "conftest.nl"
5489    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5490    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5491    as_fn_arith $ac_count + 1 && ac_count=$as_val
5492    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5493      # Best one so far, save it but keep looking for a better one
5494      ac_cv_path_GREP="$ac_path_GREP"
5495      ac_path_GREP_max=$ac_count
5496    fi
5497    # 10*(2^10) chars as input seems more than enough
5498    test $ac_count -gt 10 && break
5499  done
5500  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5501esac
5502
5503      $ac_path_GREP_found && break 3
5504    done
5505  done
5506  done
5507IFS=$as_save_IFS
5508  if test -z "$ac_cv_path_GREP"; then
5509    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5510  fi
5511else
5512  ac_cv_path_GREP=$GREP
5513fi
5514
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5517$as_echo "$ac_cv_path_GREP" >&6; }
5518 GREP="$ac_cv_path_GREP"
5519
5520
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5522$as_echo_n "checking for egrep... " >&6; }
5523if ${ac_cv_path_EGREP+:} false; then :
5524  $as_echo_n "(cached) " >&6
5525else
5526  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5527   then ac_cv_path_EGREP="$GREP -E"
5528   else
5529     if test -z "$EGREP"; then
5530  ac_path_EGREP_found=false
5531  # Loop through the user's path and test for each of PROGNAME-LIST
5532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5534do
5535  IFS=$as_save_IFS
5536  test -z "$as_dir" && as_dir=.
5537    for ac_prog in egrep; do
5538    for ac_exec_ext in '' $ac_executable_extensions; do
5539      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5540      as_fn_executable_p "$ac_path_EGREP" || continue
5541# Check for GNU ac_path_EGREP and select it if it is found.
5542  # Check for GNU $ac_path_EGREP
5543case `"$ac_path_EGREP" --version 2>&1` in
5544*GNU*)
5545  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5546*)
5547  ac_count=0
5548  $as_echo_n 0123456789 >"conftest.in"
5549  while :
5550  do
5551    cat "conftest.in" "conftest.in" >"conftest.tmp"
5552    mv "conftest.tmp" "conftest.in"
5553    cp "conftest.in" "conftest.nl"
5554    $as_echo 'EGREP' >> "conftest.nl"
5555    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5556    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5557    as_fn_arith $ac_count + 1 && ac_count=$as_val
5558    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5559      # Best one so far, save it but keep looking for a better one
5560      ac_cv_path_EGREP="$ac_path_EGREP"
5561      ac_path_EGREP_max=$ac_count
5562    fi
5563    # 10*(2^10) chars as input seems more than enough
5564    test $ac_count -gt 10 && break
5565  done
5566  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5567esac
5568
5569      $ac_path_EGREP_found && break 3
5570    done
5571  done
5572  done
5573IFS=$as_save_IFS
5574  if test -z "$ac_cv_path_EGREP"; then
5575    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5576  fi
5577else
5578  ac_cv_path_EGREP=$EGREP
5579fi
5580
5581   fi
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5584$as_echo "$ac_cv_path_EGREP" >&6; }
5585 EGREP="$ac_cv_path_EGREP"
5586
5587
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5589$as_echo_n "checking for ANSI C header files... " >&6; }
5590if ${ac_cv_header_stdc+:} false; then :
5591  $as_echo_n "(cached) " >&6
5592else
5593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h.  */
5595#include <stdlib.h>
5596#include <stdarg.h>
5597#include <string.h>
5598#include <float.h>
5599
5600int
5601main ()
5602{
5603
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608if ac_fn_cxx_try_compile "$LINENO"; then :
5609  ac_cv_header_stdc=yes
5610else
5611  ac_cv_header_stdc=no
5612fi
5613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614
5615if test $ac_cv_header_stdc = yes; then
5616  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h.  */
5619#include <string.h>
5620
5621_ACEOF
5622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5623  $EGREP "memchr" >/dev/null 2>&1; then :
5624
5625else
5626  ac_cv_header_stdc=no
5627fi
5628rm -f conftest*
5629
5630fi
5631
5632if test $ac_cv_header_stdc = yes; then
5633  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h.  */
5636#include <stdlib.h>
5637
5638_ACEOF
5639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5640  $EGREP "free" >/dev/null 2>&1; then :
5641
5642else
5643  ac_cv_header_stdc=no
5644fi
5645rm -f conftest*
5646
5647fi
5648
5649if test $ac_cv_header_stdc = yes; then
5650  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5651  if test "$cross_compiling" = yes; then :
5652  :
5653else
5654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h.  */
5656#include <ctype.h>
5657#include <stdlib.h>
5658#if ((' ' & 0x0FF) == 0x020)
5659# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5660# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5661#else
5662# define ISLOWER(c) \
5663		   (('a' <= (c) && (c) <= 'i') \
5664		     || ('j' <= (c) && (c) <= 'r') \
5665		     || ('s' <= (c) && (c) <= 'z'))
5666# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5667#endif
5668
5669#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5670int
5671main ()
5672{
5673  int i;
5674  for (i = 0; i < 256; i++)
5675    if (XOR (islower (i), ISLOWER (i))
5676	|| toupper (i) != TOUPPER (i))
5677      return 2;
5678  return 0;
5679}
5680_ACEOF
5681if ac_fn_cxx_try_run "$LINENO"; then :
5682
5683else
5684  ac_cv_header_stdc=no
5685fi
5686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5687  conftest.$ac_objext conftest.beam conftest.$ac_ext
5688fi
5689
5690fi
5691fi
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5693$as_echo "$ac_cv_header_stdc" >&6; }
5694if test $ac_cv_header_stdc = yes; then
5695
5696$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5697
5698fi
5699
5700# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5701for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5702		  inttypes.h stdint.h unistd.h
5703do :
5704  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5705ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5706"
5707if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5708  cat >>confdefs.h <<_ACEOF
5709#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5710_ACEOF
5711
5712fi
5713
5714done
5715
5716
5717
5718  ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5719if test "x$ac_cv_header_minix_config_h" = xyes; then :
5720  MINIX=yes
5721else
5722  MINIX=
5723fi
5724
5725
5726  if test "$MINIX" = yes; then
5727
5728$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5729
5730
5731$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5732
5733
5734$as_echo "#define _MINIX 1" >>confdefs.h
5735
5736  fi
5737
5738
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5740$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5741if ${ac_cv_safe_to_define___extensions__+:} false; then :
5742  $as_echo_n "(cached) " >&6
5743else
5744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745/* end confdefs.h.  */
5746
5747#         define __EXTENSIONS__ 1
5748          $ac_includes_default
5749int
5750main ()
5751{
5752
5753  ;
5754  return 0;
5755}
5756_ACEOF
5757if ac_fn_cxx_try_compile "$LINENO"; then :
5758  ac_cv_safe_to_define___extensions__=yes
5759else
5760  ac_cv_safe_to_define___extensions__=no
5761fi
5762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763fi
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5765$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5766  test $ac_cv_safe_to_define___extensions__ = yes &&
5767    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5768
5769  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5770
5771  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5772
5773  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5774
5775  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5776
5777
5778
5779ac_ext=c
5780ac_cpp='$CPP $CPPFLAGS'
5781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5785$as_echo_n "checking how to run the C preprocessor... " >&6; }
5786# On Suns, sometimes $CPP names a directory.
5787if test -n "$CPP" && test -d "$CPP"; then
5788  CPP=
5789fi
5790if test -z "$CPP"; then
5791  if ${ac_cv_prog_CPP+:} false; then :
5792  $as_echo_n "(cached) " >&6
5793else
5794      # Double quotes because CPP needs to be expanded
5795    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5796    do
5797      ac_preproc_ok=false
5798for ac_c_preproc_warn_flag in '' yes
5799do
5800  # Use a header file that comes with gcc, so configuring glibc
5801  # with a fresh cross-compiler works.
5802  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5803  # <limits.h> exists even on freestanding compilers.
5804  # On the NeXT, cc -E runs the code through the compiler's parser,
5805  # not just through cpp. "Syntax error" is here to catch this case.
5806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807/* end confdefs.h.  */
5808#ifdef __STDC__
5809# include <limits.h>
5810#else
5811# include <assert.h>
5812#endif
5813		     Syntax error
5814_ACEOF
5815if ac_fn_c_try_cpp "$LINENO"; then :
5816
5817else
5818  # Broken: fails on valid input.
5819continue
5820fi
5821rm -f conftest.err conftest.i conftest.$ac_ext
5822
5823  # OK, works on sane cases.  Now check whether nonexistent headers
5824  # can be detected and how.
5825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h.  */
5827#include <ac_nonexistent.h>
5828_ACEOF
5829if ac_fn_c_try_cpp "$LINENO"; then :
5830  # Broken: success on invalid input.
5831continue
5832else
5833  # Passes both tests.
5834ac_preproc_ok=:
5835break
5836fi
5837rm -f conftest.err conftest.i conftest.$ac_ext
5838
5839done
5840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5841rm -f conftest.i conftest.err conftest.$ac_ext
5842if $ac_preproc_ok; then :
5843  break
5844fi
5845
5846    done
5847    ac_cv_prog_CPP=$CPP
5848
5849fi
5850  CPP=$ac_cv_prog_CPP
5851else
5852  ac_cv_prog_CPP=$CPP
5853fi
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5855$as_echo "$CPP" >&6; }
5856ac_preproc_ok=false
5857for ac_c_preproc_warn_flag in '' yes
5858do
5859  # Use a header file that comes with gcc, so configuring glibc
5860  # with a fresh cross-compiler works.
5861  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5862  # <limits.h> exists even on freestanding compilers.
5863  # On the NeXT, cc -E runs the code through the compiler's parser,
5864  # not just through cpp. "Syntax error" is here to catch this case.
5865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h.  */
5867#ifdef __STDC__
5868# include <limits.h>
5869#else
5870# include <assert.h>
5871#endif
5872		     Syntax error
5873_ACEOF
5874if ac_fn_c_try_cpp "$LINENO"; then :
5875
5876else
5877  # Broken: fails on valid input.
5878continue
5879fi
5880rm -f conftest.err conftest.i conftest.$ac_ext
5881
5882  # OK, works on sane cases.  Now check whether nonexistent headers
5883  # can be detected and how.
5884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885/* end confdefs.h.  */
5886#include <ac_nonexistent.h>
5887_ACEOF
5888if ac_fn_c_try_cpp "$LINENO"; then :
5889  # Broken: success on invalid input.
5890continue
5891else
5892  # Passes both tests.
5893ac_preproc_ok=:
5894break
5895fi
5896rm -f conftest.err conftest.i conftest.$ac_ext
5897
5898done
5899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5900rm -f conftest.i conftest.err conftest.$ac_ext
5901if $ac_preproc_ok; then :
5902
5903else
5904  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5906as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5907See \`config.log' for more details" "$LINENO" 5; }
5908fi
5909
5910ac_ext=cpp
5911ac_cpp='$CXXCPP $CPPFLAGS'
5912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5915
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5917$as_echo_n "checking for inline... " >&6; }
5918if ${ac_cv_c_inline+:} false; then :
5919  $as_echo_n "(cached) " >&6
5920else
5921  ac_cv_c_inline=no
5922for ac_kw in inline __inline__ __inline; do
5923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h.  */
5925#ifndef __cplusplus
5926typedef int foo_t;
5927static $ac_kw foo_t static_foo () {return 0; }
5928$ac_kw foo_t foo () {return 0; }
5929#endif
5930
5931_ACEOF
5932if ac_fn_cxx_try_compile "$LINENO"; then :
5933  ac_cv_c_inline=$ac_kw
5934fi
5935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936  test "$ac_cv_c_inline" != no && break
5937done
5938
5939fi
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5941$as_echo "$ac_cv_c_inline" >&6; }
5942
5943case $ac_cv_c_inline in
5944  inline | yes) ;;
5945  *)
5946    case $ac_cv_c_inline in
5947      no) ac_val=;;
5948      *) ac_val=$ac_cv_c_inline;;
5949    esac
5950    cat >>confdefs.h <<_ACEOF
5951#ifndef __cplusplus
5952#define inline $ac_val
5953#endif
5954_ACEOF
5955    ;;
5956esac
5957
5958
5959# Check whether --enable-largefile was given.
5960if test "${enable_largefile+set}" = set; then :
5961  enableval=$enable_largefile;
5962fi
5963
5964if test "$enable_largefile" != no; then
5965
5966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5967$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5968if ${ac_cv_sys_largefile_CC+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  ac_cv_sys_largefile_CC=no
5972     if test "$GCC" != yes; then
5973       ac_save_CC=$CC
5974       while :; do
5975	 # IRIX 6.2 and later do not support large files by default,
5976	 # so use the C compiler's -n32 option if that helps.
5977	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978/* end confdefs.h.  */
5979#include <sys/types.h>
5980 /* Check that off_t can represent 2**63 - 1 correctly.
5981    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5982    since some C++ compilers masquerading as C compilers
5983    incorrectly reject 9223372036854775807.  */
5984#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5985  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5986		       && LARGE_OFF_T % 2147483647 == 1)
5987		      ? 1 : -1];
5988int
5989main ()
5990{
5991
5992  ;
5993  return 0;
5994}
5995_ACEOF
5996	 if ac_fn_cxx_try_compile "$LINENO"; then :
5997  break
5998fi
5999rm -f core conftest.err conftest.$ac_objext
6000	 CC="$CC -n32"
6001	 if ac_fn_cxx_try_compile "$LINENO"; then :
6002  ac_cv_sys_largefile_CC=' -n32'; break
6003fi
6004rm -f core conftest.err conftest.$ac_objext
6005	 break
6006       done
6007       CC=$ac_save_CC
6008       rm -f conftest.$ac_ext
6009    fi
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6012$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6013  if test "$ac_cv_sys_largefile_CC" != no; then
6014    CC=$CC$ac_cv_sys_largefile_CC
6015  fi
6016
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6018$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6019if ${ac_cv_sys_file_offset_bits+:} false; then :
6020  $as_echo_n "(cached) " >&6
6021else
6022  while :; do
6023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024/* end confdefs.h.  */
6025#include <sys/types.h>
6026 /* Check that off_t can represent 2**63 - 1 correctly.
6027    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6028    since some C++ compilers masquerading as C compilers
6029    incorrectly reject 9223372036854775807.  */
6030#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6031  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6032		       && LARGE_OFF_T % 2147483647 == 1)
6033		      ? 1 : -1];
6034int
6035main ()
6036{
6037
6038  ;
6039  return 0;
6040}
6041_ACEOF
6042if ac_fn_cxx_try_compile "$LINENO"; then :
6043  ac_cv_sys_file_offset_bits=no; break
6044fi
6045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h.  */
6048#define _FILE_OFFSET_BITS 64
6049#include <sys/types.h>
6050 /* Check that off_t can represent 2**63 - 1 correctly.
6051    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6052    since some C++ compilers masquerading as C compilers
6053    incorrectly reject 9223372036854775807.  */
6054#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6055  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6056		       && LARGE_OFF_T % 2147483647 == 1)
6057		      ? 1 : -1];
6058int
6059main ()
6060{
6061
6062  ;
6063  return 0;
6064}
6065_ACEOF
6066if ac_fn_cxx_try_compile "$LINENO"; then :
6067  ac_cv_sys_file_offset_bits=64; break
6068fi
6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070  ac_cv_sys_file_offset_bits=unknown
6071  break
6072done
6073fi
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6075$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6076case $ac_cv_sys_file_offset_bits in #(
6077  no | unknown) ;;
6078  *)
6079cat >>confdefs.h <<_ACEOF
6080#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6081_ACEOF
6082;;
6083esac
6084rm -rf conftest*
6085  if test $ac_cv_sys_file_offset_bits = unknown; then
6086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6087$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6088if ${ac_cv_sys_large_files+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  while :; do
6092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093/* end confdefs.h.  */
6094#include <sys/types.h>
6095 /* Check that off_t can represent 2**63 - 1 correctly.
6096    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6097    since some C++ compilers masquerading as C compilers
6098    incorrectly reject 9223372036854775807.  */
6099#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6100  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6101		       && LARGE_OFF_T % 2147483647 == 1)
6102		      ? 1 : -1];
6103int
6104main ()
6105{
6106
6107  ;
6108  return 0;
6109}
6110_ACEOF
6111if ac_fn_cxx_try_compile "$LINENO"; then :
6112  ac_cv_sys_large_files=no; break
6113fi
6114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h.  */
6117#define _LARGE_FILES 1
6118#include <sys/types.h>
6119 /* Check that off_t can represent 2**63 - 1 correctly.
6120    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6121    since some C++ compilers masquerading as C compilers
6122    incorrectly reject 9223372036854775807.  */
6123#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6124  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6125		       && LARGE_OFF_T % 2147483647 == 1)
6126		      ? 1 : -1];
6127int
6128main ()
6129{
6130
6131  ;
6132  return 0;
6133}
6134_ACEOF
6135if ac_fn_cxx_try_compile "$LINENO"; then :
6136  ac_cv_sys_large_files=1; break
6137fi
6138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139  ac_cv_sys_large_files=unknown
6140  break
6141done
6142fi
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6144$as_echo "$ac_cv_sys_large_files" >&6; }
6145case $ac_cv_sys_large_files in #(
6146  no | unknown) ;;
6147  *)
6148cat >>confdefs.h <<_ACEOF
6149#define _LARGE_FILES $ac_cv_sys_large_files
6150_ACEOF
6151;;
6152esac
6153rm -rf conftest*
6154  fi
6155
6156
6157fi
6158
6159
6160# sizeof(char) is 1 by definition.
6161# The cast to long int works around a bug in the HP C Compiler
6162# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6163# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6164# This bug is HP SR number 8606223364.
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6166$as_echo_n "checking size of void *... " >&6; }
6167if ${ac_cv_sizeof_void_p+:} false; then :
6168  $as_echo_n "(cached) " >&6
6169else
6170  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
6171
6172else
6173  if test "$ac_cv_type_void_p" = yes; then
6174     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6176as_fn_error 77 "cannot compute sizeof (void *)
6177See \`config.log' for more details" "$LINENO" 5; }
6178   else
6179     ac_cv_sizeof_void_p=0
6180   fi
6181fi
6182
6183fi
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6185$as_echo "$ac_cv_sizeof_void_p" >&6; }
6186
6187
6188
6189cat >>confdefs.h <<_ACEOF
6190#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6191_ACEOF
6192
6193
6194# The cast to long int works around a bug in the HP C Compiler
6195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6197# This bug is HP SR number 8606223364.
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6199$as_echo_n "checking size of short... " >&6; }
6200if ${ac_cv_sizeof_short+:} false; then :
6201  $as_echo_n "(cached) " >&6
6202else
6203  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
6204
6205else
6206  if test "$ac_cv_type_short" = yes; then
6207     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6209as_fn_error 77 "cannot compute sizeof (short)
6210See \`config.log' for more details" "$LINENO" 5; }
6211   else
6212     ac_cv_sizeof_short=0
6213   fi
6214fi
6215
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6218$as_echo "$ac_cv_sizeof_short" >&6; }
6219
6220
6221
6222cat >>confdefs.h <<_ACEOF
6223#define SIZEOF_SHORT $ac_cv_sizeof_short
6224_ACEOF
6225
6226
6227# The cast to long int works around a bug in the HP C Compiler
6228# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6229# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6230# This bug is HP SR number 8606223364.
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6232$as_echo_n "checking size of int... " >&6; }
6233if ${ac_cv_sizeof_int+:} false; then :
6234  $as_echo_n "(cached) " >&6
6235else
6236  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6237
6238else
6239  if test "$ac_cv_type_int" = yes; then
6240     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6242as_fn_error 77 "cannot compute sizeof (int)
6243See \`config.log' for more details" "$LINENO" 5; }
6244   else
6245     ac_cv_sizeof_int=0
6246   fi
6247fi
6248
6249fi
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6251$as_echo "$ac_cv_sizeof_int" >&6; }
6252
6253
6254
6255cat >>confdefs.h <<_ACEOF
6256#define SIZEOF_INT $ac_cv_sizeof_int
6257_ACEOF
6258
6259
6260# The cast to long int works around a bug in the HP C Compiler
6261# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6262# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6263# This bug is HP SR number 8606223364.
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6265$as_echo_n "checking size of long... " >&6; }
6266if ${ac_cv_sizeof_long+:} false; then :
6267  $as_echo_n "(cached) " >&6
6268else
6269  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6270
6271else
6272  if test "$ac_cv_type_long" = yes; then
6273     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6275as_fn_error 77 "cannot compute sizeof (long)
6276See \`config.log' for more details" "$LINENO" 5; }
6277   else
6278     ac_cv_sizeof_long=0
6279   fi
6280fi
6281
6282fi
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6284$as_echo "$ac_cv_sizeof_long" >&6; }
6285
6286
6287
6288cat >>confdefs.h <<_ACEOF
6289#define SIZEOF_LONG $ac_cv_sizeof_long
6290_ACEOF
6291
6292
6293ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6294if test "x$ac_cv_type_long_long" = xyes; then :
6295
6296cat >>confdefs.h <<_ACEOF
6297#define HAVE_LONG_LONG 1
6298_ACEOF
6299
6300# The cast to long int works around a bug in the HP C Compiler
6301# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6302# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6303# This bug is HP SR number 8606223364.
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6305$as_echo_n "checking size of long long... " >&6; }
6306if ${ac_cv_sizeof_long_long+:} false; then :
6307  $as_echo_n "(cached) " >&6
6308else
6309  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6310
6311else
6312  if test "$ac_cv_type_long_long" = yes; then
6313     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6315as_fn_error 77 "cannot compute sizeof (long long)
6316See \`config.log' for more details" "$LINENO" 5; }
6317   else
6318     ac_cv_sizeof_long_long=0
6319   fi
6320fi
6321
6322fi
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6324$as_echo "$ac_cv_sizeof_long_long" >&6; }
6325
6326
6327
6328cat >>confdefs.h <<_ACEOF
6329#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6330_ACEOF
6331
6332
6333fi
6334
6335ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6336case $ac_cv_c_int8_t in #(
6337  no|yes) ;; #(
6338  *)
6339
6340cat >>confdefs.h <<_ACEOF
6341#define int8_t $ac_cv_c_int8_t
6342_ACEOF
6343;;
6344esac
6345
6346ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6347case $ac_cv_c_int16_t in #(
6348  no|yes) ;; #(
6349  *)
6350
6351cat >>confdefs.h <<_ACEOF
6352#define int16_t $ac_cv_c_int16_t
6353_ACEOF
6354;;
6355esac
6356
6357ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6358case $ac_cv_c_int32_t in #(
6359  no|yes) ;; #(
6360  *)
6361
6362cat >>confdefs.h <<_ACEOF
6363#define int32_t $ac_cv_c_int32_t
6364_ACEOF
6365;;
6366esac
6367
6368ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6369case $ac_cv_c_int64_t in #(
6370  no|yes) ;; #(
6371  *)
6372
6373cat >>confdefs.h <<_ACEOF
6374#define int64_t $ac_cv_c_int64_t
6375_ACEOF
6376;;
6377esac
6378
6379
6380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6381$as_echo_n "checking for unsigned long long int... " >&6; }
6382if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  ac_cv_type_unsigned_long_long_int=yes
6386     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6387       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388/* end confdefs.h.  */
6389
6390  /* For now, do not test the preprocessor; as of 2007 there are too many
6391	 implementations with broken preprocessors.  Perhaps this can
6392	 be revisited in 2012.  In the meantime, code should not expect
6393	 #if to work with literals wider than 32 bits.  */
6394      /* Test literals.  */
6395      long long int ll = 9223372036854775807ll;
6396      long long int nll = -9223372036854775807LL;
6397      unsigned long long int ull = 18446744073709551615ULL;
6398      /* Test constant expressions.   */
6399      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6400		     ? 1 : -1)];
6401      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6402		     ? 1 : -1)];
6403      int i = 63;
6404int
6405main ()
6406{
6407/* Test availability of runtime routines for shift and division.  */
6408      long long int llmax = 9223372036854775807ll;
6409      unsigned long long int ullmax = 18446744073709551615ull;
6410      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6411	      | (llmax / ll) | (llmax % ll)
6412	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6413	      | (ullmax / ull) | (ullmax % ull));
6414  ;
6415  return 0;
6416}
6417
6418_ACEOF
6419if ac_fn_cxx_try_link "$LINENO"; then :
6420
6421else
6422  ac_cv_type_unsigned_long_long_int=no
6423fi
6424rm -f core conftest.err conftest.$ac_objext \
6425    conftest$ac_exeext conftest.$ac_ext
6426     fi
6427fi
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6429$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6430  if test $ac_cv_type_unsigned_long_long_int = yes; then
6431
6432$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6433
6434  fi
6435
6436
6437
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6439$as_echo_n "checking for long long int... " >&6; }
6440if ${ac_cv_type_long_long_int+:} false; then :
6441  $as_echo_n "(cached) " >&6
6442else
6443  ac_cv_type_long_long_int=yes
6444      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6445	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6446	if test $ac_cv_type_long_long_int = yes; then
6447	  	  	  	  if test "$cross_compiling" = yes; then :
6448  :
6449else
6450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451/* end confdefs.h.  */
6452#include <limits.h>
6453		 #ifndef LLONG_MAX
6454		 # define HALF \
6455			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6456		 # define LLONG_MAX (HALF - 1 + HALF)
6457		 #endif
6458int
6459main ()
6460{
6461long long int n = 1;
6462		 int i;
6463		 for (i = 0; ; i++)
6464		   {
6465		     long long int m = n << i;
6466		     if (m >> i != n)
6467		       return 1;
6468		     if (LLONG_MAX / 2 < m)
6469		       break;
6470		   }
6471		 return 0;
6472  ;
6473  return 0;
6474}
6475_ACEOF
6476if ac_fn_cxx_try_run "$LINENO"; then :
6477
6478else
6479  ac_cv_type_long_long_int=no
6480fi
6481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6482  conftest.$ac_objext conftest.beam conftest.$ac_ext
6483fi
6484
6485	fi
6486      fi
6487fi
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6489$as_echo "$ac_cv_type_long_long_int" >&6; }
6490  if test $ac_cv_type_long_long_int = yes; then
6491
6492$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6493
6494  fi
6495
6496
6497
6498  ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6499if test "x$ac_cv_type_intmax_t" = xyes; then :
6500
6501$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6502
6503else
6504  test $ac_cv_type_long_long_int = yes \
6505       && ac_type='long long int' \
6506       || ac_type='long int'
6507
6508cat >>confdefs.h <<_ACEOF
6509#define intmax_t $ac_type
6510_ACEOF
6511
6512fi
6513
6514
6515
6516  ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6517if test "x$ac_cv_type_intptr_t" = xyes; then :
6518
6519$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6520
6521else
6522  for ac_type in 'int' 'long int' 'long long int'; do
6523       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524/* end confdefs.h.  */
6525$ac_includes_default
6526int
6527main ()
6528{
6529static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6530test_array [0] = 0;
6531return test_array [0];
6532
6533  ;
6534  return 0;
6535}
6536_ACEOF
6537if ac_fn_cxx_try_compile "$LINENO"; then :
6538
6539cat >>confdefs.h <<_ACEOF
6540#define intptr_t $ac_type
6541_ACEOF
6542
6543	  ac_type=
6544fi
6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546       test -z "$ac_type" && break
6547     done
6548fi
6549
6550
6551ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6552case $ac_cv_c_uint8_t in #(
6553  no|yes) ;; #(
6554  *)
6555
6556$as_echo "#define _UINT8_T 1" >>confdefs.h
6557
6558
6559cat >>confdefs.h <<_ACEOF
6560#define uint8_t $ac_cv_c_uint8_t
6561_ACEOF
6562;;
6563  esac
6564
6565ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6566case $ac_cv_c_uint16_t in #(
6567  no|yes) ;; #(
6568  *)
6569
6570
6571cat >>confdefs.h <<_ACEOF
6572#define uint16_t $ac_cv_c_uint16_t
6573_ACEOF
6574;;
6575  esac
6576
6577ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6578case $ac_cv_c_uint32_t in #(
6579  no|yes) ;; #(
6580  *)
6581
6582$as_echo "#define _UINT32_T 1" >>confdefs.h
6583
6584
6585cat >>confdefs.h <<_ACEOF
6586#define uint32_t $ac_cv_c_uint32_t
6587_ACEOF
6588;;
6589  esac
6590
6591ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6592case $ac_cv_c_uint64_t in #(
6593  no|yes) ;; #(
6594  *)
6595
6596$as_echo "#define _UINT64_T 1" >>confdefs.h
6597
6598
6599cat >>confdefs.h <<_ACEOF
6600#define uint64_t $ac_cv_c_uint64_t
6601_ACEOF
6602;;
6603  esac
6604
6605
6606
6607  ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6608if test "x$ac_cv_type_uintmax_t" = xyes; then :
6609
6610$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6611
6612else
6613  test $ac_cv_type_unsigned_long_long_int = yes \
6614       && ac_type='unsigned long long int' \
6615       || ac_type='unsigned long int'
6616
6617cat >>confdefs.h <<_ACEOF
6618#define uintmax_t $ac_type
6619_ACEOF
6620
6621fi
6622
6623
6624
6625  ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6626if test "x$ac_cv_type_uintptr_t" = xyes; then :
6627
6628$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6629
6630else
6631  for ac_type in 'unsigned int' 'unsigned long int' \
6632	'unsigned long long int'; do
6633       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h.  */
6635$ac_includes_default
6636int
6637main ()
6638{
6639static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6640test_array [0] = 0;
6641return test_array [0];
6642
6643  ;
6644  return 0;
6645}
6646_ACEOF
6647if ac_fn_cxx_try_compile "$LINENO"; then :
6648
6649cat >>confdefs.h <<_ACEOF
6650#define uintptr_t $ac_type
6651_ACEOF
6652
6653	  ac_type=
6654fi
6655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656       test -z "$ac_type" && break
6657     done
6658fi
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6674  as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6675fi
6676
6677# check what underlying integer type int64_t uses
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6679$as_echo_n "checking for int64_t underlying type... " >&6; }
6680if ${ac_cv_int64_t_type+:} false; then :
6681  $as_echo_n "(cached) " >&6
6682else
6683
6684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685/* end confdefs.h.  */
6686
6687#ifdef HAVE_STDINT_H
6688#include <stdint.h>
6689#endif
6690template <typename T> struct X { };
6691template <>
6692struct X<long> { typedef long t; };
6693
6694int
6695main ()
6696{
6697X<int64_t>::t x;
6698  ;
6699  return 0;
6700}
6701_ACEOF
6702if ac_fn_cxx_try_compile "$LINENO"; then :
6703  ac_cv_int64_t_type=long
6704else
6705  ac_cv_int64_t_type="long long"
6706fi
6707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708fi
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6710$as_echo "$ac_cv_int64_t_type" >&6; }
6711if test "$ac_cv_int64_t_type" = "long"; then
6712
6713$as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6714
6715else
6716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717/* end confdefs.h.  */
6718
6719#ifdef HAVE_STDINT_H
6720#include <stdint.h>
6721#endif
6722template <typename T> struct X { };
6723template <>
6724struct X<long long> { typedef long long t; };
6725
6726int
6727main ()
6728{
6729X<int64_t>::t x;
6730  ;
6731  return 0;
6732}
6733_ACEOF
6734if ac_fn_cxx_try_compile "$LINENO"; then :
6735
6736else
6737  as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6738fi
6739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740fi
6741
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6743$as_echo_n "checking for std::swap in <utility>... " >&6; }
6744if ${ac_cv_std_swap_in_utility+:} false; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747
6748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750
6751#include <utility>
6752
6753int
6754main ()
6755{
6756int a, b; std::swap(a,b);
6757  ;
6758  return 0;
6759}
6760_ACEOF
6761if ac_fn_cxx_try_compile "$LINENO"; then :
6762  ac_cv_std_swap_in_utility=yes
6763else
6764  ac_cv_std_swap_in_utility=no
6765fi
6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767fi
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6769$as_echo "$ac_cv_std_swap_in_utility" >&6; }
6770if test $ac_cv_std_swap_in_utility = yes; then
6771
6772$as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6773
6774fi
6775
6776# Check whether compiler is affected by placement new aliasing bug (PR 29286).
6777# If the host compiler is affected by the bug, and we build with optimization
6778# enabled (which happens e.g. when cross-compiling), the pool allocator may
6779# get miscompiled.  Use -fno-strict-aliasing to work around this problem.
6780# Since there is no reliable feature check for the presence of this bug,
6781# we simply use a GCC version number check.  (This should never trigger for
6782# stages 2 or 3 of a native bootstrap.)
6783aliasing_flags=
6784if test "$GCC" = yes; then
6785  saved_CXXFLAGS="$CXXFLAGS"
6786
6787  # The following test compilation will succeed if and only if $CXX accepts
6788  # -fno-strict-aliasing *and* is older than GCC 4.3.
6789  CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6791$as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793/* end confdefs.h.  */
6794
6795#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6796#error compiler not affected by placement new aliasing bug
6797#endif
6798
6799_ACEOF
6800if ac_fn_cxx_try_compile "$LINENO"; then :
6801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6802$as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6803else
6804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805$as_echo "no" >&6; }
6806fi
6807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808
6809  CXXFLAGS="$saved_CXXFLAGS"
6810fi
6811
6812
6813
6814
6815# ---------------------
6816# Warnings and checking
6817# ---------------------
6818
6819# Check $CC warning features (if it's GCC).
6820# We want to use -pedantic, but we don't want warnings about
6821# * 'long long'
6822# * variadic macros
6823# * overlong strings
6824# * C++11 narrowing conversions in { }
6825# So, we only use -pedantic if we can disable those warnings.
6826
6827# In stage 1, disable -Wformat warnings from old GCCs about new % codes
6828# Check whether --enable-build-format-warnings was given.
6829if test "${enable_build_format_warnings+set}" = set; then :
6830  enableval=$enable_build_format_warnings;
6831else
6832  enable_build_format_warnings=yes
6833fi
6834
6835if test $enable_build_format_warnings = no; then :
6836  wf_opt=-Wno-format
6837else
6838  wf_opt=
6839fi
6840ac_ext=cpp
6841ac_cpp='$CXXCPP $CPPFLAGS'
6842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6845
6846loose_warn=
6847save_CXXFLAGS="$CXXFLAGS"
6848for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6849  # Do the check with the no- prefix removed since gcc silently
6850  # accepts any -Wno-* option on purpose
6851  case $real_option in
6852    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6853    *) option=$real_option ;;
6854  esac
6855  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6856
6857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6858$as_echo_n "checking whether $CXX supports $option... " >&6; }
6859if eval \${$as_acx_Woption+:} false; then :
6860  $as_echo_n "(cached) " >&6
6861else
6862  CXXFLAGS="$option"
6863    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864/* end confdefs.h.  */
6865
6866int
6867main ()
6868{
6869
6870  ;
6871  return 0;
6872}
6873_ACEOF
6874if ac_fn_cxx_try_compile "$LINENO"; then :
6875  eval "$as_acx_Woption=yes"
6876else
6877  eval "$as_acx_Woption=no"
6878fi
6879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880
6881fi
6882eval ac_res=\$$as_acx_Woption
6883	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6884$as_echo "$ac_res" >&6; }
6885  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6886  loose_warn="$loose_warn${loose_warn:+ }$real_option"
6887fi
6888  done
6889CXXFLAGS="$save_CXXFLAGS"
6890ac_ext=cpp
6891ac_cpp='$CXXCPP $CPPFLAGS'
6892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6895
6896
6897
6898ac_ext=c
6899ac_cpp='$CPP $CPPFLAGS'
6900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902ac_compiler_gnu=$ac_cv_c_compiler_gnu
6903
6904c_loose_warn=
6905save_CFLAGS="$CFLAGS"
6906for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6907  # Do the check with the no- prefix removed since gcc silently
6908  # accepts any -Wno-* option on purpose
6909  case $real_option in
6910    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6911    *) option=$real_option ;;
6912  esac
6913  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6914
6915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6916$as_echo_n "checking whether $CC supports $option... " >&6; }
6917if eval \${$as_acx_Woption+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  CFLAGS="$option"
6921    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922/* end confdefs.h.  */
6923
6924int
6925main ()
6926{
6927
6928  ;
6929  return 0;
6930}
6931_ACEOF
6932if ac_fn_c_try_compile "$LINENO"; then :
6933  eval "$as_acx_Woption=yes"
6934else
6935  eval "$as_acx_Woption=no"
6936fi
6937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938
6939fi
6940eval ac_res=\$$as_acx_Woption
6941	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6942$as_echo "$ac_res" >&6; }
6943  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6944  c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6945fi
6946  done
6947CFLAGS="$save_CFLAGS"
6948ac_ext=cpp
6949ac_cpp='$CXXCPP $CPPFLAGS'
6950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6953
6954
6955ac_ext=cpp
6956ac_cpp='$CXXCPP $CPPFLAGS'
6957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6960
6961strict_warn=
6962save_CXXFLAGS="$CXXFLAGS"
6963for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6964  # Do the check with the no- prefix removed since gcc silently
6965  # accepts any -Wno-* option on purpose
6966  case $real_option in
6967    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6968    *) option=$real_option ;;
6969  esac
6970  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6971
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6973$as_echo_n "checking whether $CXX supports $option... " >&6; }
6974if eval \${$as_acx_Woption+:} false; then :
6975  $as_echo_n "(cached) " >&6
6976else
6977  CXXFLAGS="$option"
6978    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979/* end confdefs.h.  */
6980
6981int
6982main ()
6983{
6984
6985  ;
6986  return 0;
6987}
6988_ACEOF
6989if ac_fn_cxx_try_compile "$LINENO"; then :
6990  eval "$as_acx_Woption=yes"
6991else
6992  eval "$as_acx_Woption=no"
6993fi
6994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995
6996fi
6997eval ac_res=\$$as_acx_Woption
6998	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6999$as_echo "$ac_res" >&6; }
7000  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7001  strict_warn="$strict_warn${strict_warn:+ }$real_option"
7002fi
7003  done
7004CXXFLAGS="$save_CXXFLAGS"
7005ac_ext=cpp
7006ac_cpp='$CXXCPP $CPPFLAGS'
7007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7010
7011
7012ac_ext=c
7013ac_cpp='$CPP $CPPFLAGS'
7014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017
7018c_strict_warn=
7019save_CFLAGS="$CFLAGS"
7020for real_option in -Wold-style-definition -Wc++-compat; do
7021  # Do the check with the no- prefix removed since gcc silently
7022  # accepts any -Wno-* option on purpose
7023  case $real_option in
7024    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7025    *) option=$real_option ;;
7026  esac
7027  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7028
7029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7030$as_echo_n "checking whether $CC supports $option... " >&6; }
7031if eval \${$as_acx_Woption+:} false; then :
7032  $as_echo_n "(cached) " >&6
7033else
7034  CFLAGS="$option"
7035    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036/* end confdefs.h.  */
7037
7038int
7039main ()
7040{
7041
7042  ;
7043  return 0;
7044}
7045_ACEOF
7046if ac_fn_c_try_compile "$LINENO"; then :
7047  eval "$as_acx_Woption=yes"
7048else
7049  eval "$as_acx_Woption=no"
7050fi
7051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052
7053fi
7054eval ac_res=\$$as_acx_Woption
7055	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7056$as_echo "$ac_res" >&6; }
7057  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7058  c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7059fi
7060  done
7061CFLAGS="$save_CFLAGS"
7062ac_ext=cpp
7063ac_cpp='$CXXCPP $CPPFLAGS'
7064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7067
7068
7069ac_ext=cpp
7070ac_cpp='$CXXCPP $CPPFLAGS'
7071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7074
7075# Do the check with the no- prefix removed from the warning options
7076# since gcc silently accepts any -Wno-* option on purpose
7077if test "$GXX" = yes; then :
7078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7079$as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7080if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7081  $as_echo_n "(cached) " >&6
7082else
7083  save_CXXFLAGS="$CXXFLAGS"
7084CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086/* end confdefs.h.  */
7087
7088int
7089main ()
7090{
7091
7092  ;
7093  return 0;
7094}
7095_ACEOF
7096if ac_fn_cxx_try_compile "$LINENO"; then :
7097  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7098else
7099  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7100fi
7101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102CXXFLAGS="$save_CXXFLAGS"
7103fi
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7105$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7106if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7107  strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7108fi
7109
7110fi
7111ac_ext=cpp
7112ac_cpp='$CXXCPP $CPPFLAGS'
7113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7116
7117
7118ac_ext=cpp
7119ac_cpp='$CXXCPP $CPPFLAGS'
7120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7123
7124# Check whether --enable-werror-always was given.
7125if test "${enable_werror_always+set}" = set; then :
7126  enableval=$enable_werror_always;
7127else
7128  enable_werror_always=no
7129fi
7130
7131if test $enable_werror_always = yes; then :
7132  strict_warn="$strict_warn${strict_warn:+ }-Werror"
7133fi
7134
7135ac_ext=cpp
7136ac_cpp='$CXXCPP $CPPFLAGS'
7137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7140
7141
7142
7143# The above macros do nothing if the compiler is not GCC.  However, the
7144# Makefile has more goo to add other flags, so these variables are used
7145# to enable warnings only for GCC.
7146warn_cflags=
7147warn_cxxflags=
7148if test "x$GCC" = "xyes"; then
7149  warn_cflags='$(GCC_WARN_CFLAGS)'
7150  warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7151fi
7152
7153
7154
7155# Disable exceptions and RTTI if building with g++
7156ac_ext=c
7157ac_cpp='$CPP $CPPFLAGS'
7158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7160ac_compiler_gnu=$ac_cv_c_compiler_gnu
7161
7162noexception_flags=
7163save_CFLAGS="$CFLAGS"
7164for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7165  # Do the check with the no- prefix removed since gcc silently
7166  # accepts any -Wno-* option on purpose
7167  case $real_option in
7168    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7169    *) option=$real_option ;;
7170  esac
7171  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7172
7173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7174$as_echo_n "checking whether $CC supports $option... " >&6; }
7175if eval \${$as_acx_Woption+:} false; then :
7176  $as_echo_n "(cached) " >&6
7177else
7178  CFLAGS="$option"
7179    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h.  */
7181
7182int
7183main ()
7184{
7185
7186  ;
7187  return 0;
7188}
7189_ACEOF
7190if ac_fn_c_try_compile "$LINENO"; then :
7191  eval "$as_acx_Woption=yes"
7192else
7193  eval "$as_acx_Woption=no"
7194fi
7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196
7197fi
7198eval ac_res=\$$as_acx_Woption
7199	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7200$as_echo "$ac_res" >&6; }
7201  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7202  noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7203fi
7204  done
7205CFLAGS="$save_CFLAGS"
7206ac_ext=cpp
7207ac_cpp='$CXXCPP $CPPFLAGS'
7208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7211
7212
7213
7214# Enable expensive internal checks
7215is_release=
7216if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7217  is_release=yes
7218fi
7219
7220# Check whether --enable-checking was given.
7221if test "${enable_checking+set}" = set; then :
7222  enableval=$enable_checking; ac_checking_flags="${enableval}"
7223else
7224
7225# Determine the default checks.
7226if test x$is_release = x ; then
7227  ac_checking_flags=yes,extra
7228else
7229  ac_checking_flags=release
7230fi
7231fi
7232
7233IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
7234for check in release $ac_checking_flags
7235do
7236	case $check in
7237	# these set all the flags to specific states
7238	yes)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7239			ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7240			ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7241			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7242			ac_tree_checking=1 ; ac_valgrind_checking= ;
7243			ac_types_checking=1 ;;
7244	no|none)	ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7245			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7246			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7247			ac_rtlflag_checking= ; ac_runtime_checking= ;
7248			ac_tree_checking= ; ac_valgrind_checking= ;
7249			ac_types_checking= ;;
7250	all)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7251			ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7252			ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7253			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7254			ac_tree_checking=1 ; ac_valgrind_checking= ;
7255			ac_types_checking=1 ;;
7256	release)	ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7257			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7258			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7259			ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7260			ac_tree_checking= ; ac_valgrind_checking= ;
7261			ac_types_checking= ;;
7262	# these enable particular checks
7263	assert) 	ac_assert_checking=1 ;;
7264	df)		ac_df_checking=1 ;;
7265	extra)		ac_extra_checking=1 ;;
7266	fold)		ac_fold_checking=1 ;;
7267	gc)		ac_gc_checking=1 ;;
7268	gcac)		ac_gc_always_collect=1 ;;
7269	gimple)		ac_gimple_checking=1 ;;
7270	misc)		ac_checking=1 ;;
7271	rtl)		ac_rtl_checking=1 ;;
7272	rtlflag)	ac_rtlflag_checking=1 ;;
7273	runtime)	ac_runtime_checking=1 ;;
7274	tree)		ac_tree_checking=1 ;;
7275	types)		ac_types_checking=1 ;;
7276	valgrind)	ac_valgrind_checking=1 ;;
7277	*)	as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7278	esac
7279done
7280IFS="$ac_save_IFS"
7281
7282nocommon_flag=""
7283if test x$ac_checking != x ; then
7284
7285$as_echo "#define CHECKING_P 1" >>confdefs.h
7286
7287  nocommon_flag=-fno-common
7288else
7289  $as_echo "#define CHECKING_P 0" >>confdefs.h
7290
7291fi
7292
7293if test x$ac_extra_checking != x ; then
7294
7295$as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7296
7297else
7298  $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7299
7300fi
7301if test x$ac_df_checking != x ; then
7302
7303$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7304
7305fi
7306if test x$ac_assert_checking != x ; then
7307
7308$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7309
7310fi
7311if test x$ac_gimple_checking != x ; then
7312
7313$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7314
7315fi
7316
7317if test x$ac_runtime_checking != x ; then
7318
7319$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7320
7321fi
7322if test x$ac_tree_checking != x ; then
7323
7324$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7325
7326  TREECHECKING=yes
7327fi
7328if test x$ac_types_checking != x ; then
7329
7330$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7331
7332fi
7333
7334if test x$ac_rtl_checking != x ; then
7335
7336$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7337
7338fi
7339if test x$ac_rtlflag_checking != x ; then
7340
7341$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7342
7343fi
7344if test x$ac_gc_checking != x ; then
7345
7346$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7347
7348fi
7349if test x$ac_gc_always_collect != x ; then
7350
7351$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7352
7353fi
7354if test x$ac_fold_checking != x ; then
7355
7356$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7357
7358fi
7359valgrind_path_defines=
7360valgrind_command=
7361
7362ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7363if test "x$ac_cv_header_valgrind_h" = xyes; then :
7364  have_valgrind_h=yes
7365else
7366  have_valgrind_h=no
7367fi
7368
7369
7370
7371# It is certainly possible that there's valgrind but no valgrind.h.
7372# GCC relies on making annotations so we must have both.
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7374$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376/* end confdefs.h.  */
7377#include <valgrind/memcheck.h>
7378#ifndef VALGRIND_DISCARD
7379#error VALGRIND_DISCARD not defined
7380#endif
7381_ACEOF
7382if ac_fn_cxx_try_cpp "$LINENO"; then :
7383  gcc_cv_header_valgrind_memcheck_h=yes
7384else
7385  gcc_cv_header_valgrind_memcheck_h=no
7386fi
7387rm -f conftest.err conftest.i conftest.$ac_ext
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7389$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7391$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393/* end confdefs.h.  */
7394#include <memcheck.h>
7395#ifndef VALGRIND_DISCARD
7396#error VALGRIND_DISCARD not defined
7397#endif
7398_ACEOF
7399if ac_fn_cxx_try_cpp "$LINENO"; then :
7400  gcc_cv_header_memcheck_h=yes
7401else
7402  gcc_cv_header_memcheck_h=no
7403fi
7404rm -f conftest.err conftest.i conftest.$ac_ext
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7406$as_echo "$gcc_cv_header_memcheck_h" >&6; }
7407if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7408
7409$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7410
7411fi
7412if test $gcc_cv_header_memcheck_h = yes; then
7413
7414$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7415
7416fi
7417
7418if test x$ac_valgrind_checking != x ; then
7419
7420# Prepare PATH_SEPARATOR.
7421# The user is always right.
7422if test "${PATH_SEPARATOR+set}" != set; then
7423  echo "#! /bin/sh" >conf$$.sh
7424  echo  "exit 0"   >>conf$$.sh
7425  chmod +x conf$$.sh
7426  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7427    PATH_SEPARATOR=';'
7428  else
7429    PATH_SEPARATOR=:
7430  fi
7431  rm -f conf$$.sh
7432fi
7433
7434# Find out how to test for executable files. Don't use a zero-byte file,
7435# as systems may use methods other than mode bits to determine executability.
7436cat >conf$$.file <<_ASEOF
7437#! /bin/sh
7438exit 0
7439_ASEOF
7440chmod +x conf$$.file
7441if test -x conf$$.file >/dev/null 2>&1; then
7442  ac_executable_p="test -x"
7443else
7444  ac_executable_p="test -f"
7445fi
7446rm -f conf$$.file
7447
7448# Extract the first word of "valgrind", so it can be a program name with args.
7449set dummy valgrind; ac_word=$2
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451$as_echo_n "checking for $ac_word... " >&6; }
7452if ${ac_cv_path_valgrind_path+:} false; then :
7453  $as_echo_n "(cached) " >&6
7454else
7455  case "$valgrind_path" in
7456  [\\/]* | ?:[\\/]*)
7457    ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7458    ;;
7459  *)
7460    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7461    for ac_dir in $PATH; do
7462      IFS="$ac_save_IFS"
7463      test -z "$ac_dir" && ac_dir=.
7464      for ac_exec_ext in '' $ac_executable_extensions; do
7465        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7466          if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7467            ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7468            break 2
7469          fi
7470        fi
7471      done
7472    done
7473    IFS="$ac_save_IFS"
7474    ;;
7475esac
7476fi
7477valgrind_path="$ac_cv_path_valgrind_path"
7478if test -n "$valgrind_path"; then
7479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7480$as_echo "$valgrind_path" >&6; }
7481else
7482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483$as_echo "no" >&6; }
7484fi
7485
7486  if test "x$valgrind_path" = "x" \
7487    || (test $have_valgrind_h = no \
7488	&& test $gcc_cv_header_memcheck_h = no \
7489	&& test $gcc_cv_header_valgrind_memcheck_h = no); then
7490	as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7491  fi
7492  valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7493  valgrind_command="$valgrind_path -q"
7494
7495$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7496
7497fi
7498
7499
7500
7501# Enable code coverage collection
7502# Check whether --enable-coverage was given.
7503if test "${enable_coverage+set}" = set; then :
7504  enableval=$enable_coverage; case "${enableval}" in
7505  yes|noopt)
7506    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7507    ;;
7508  opt)
7509    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7510    ;;
7511  no)
7512    # a.k.a. --disable-coverage
7513    coverage_flags=""
7514    ;;
7515  *)
7516    as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7517    ;;
7518esac
7519else
7520  coverage_flags=""
7521fi
7522
7523
7524
7525# Check whether --enable-gather-detailed-mem-stats was given.
7526if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7527  enableval=$enable_gather_detailed_mem_stats;
7528else
7529  enable_gather_detailed_mem_stats=no
7530fi
7531
7532gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7533
7534cat >>confdefs.h <<_ACEOF
7535#define GATHER_STATISTICS $gather_stats
7536_ACEOF
7537
7538
7539# Check whether --enable-valgrind-annotations was given.
7540if test "${enable_valgrind_annotations+set}" = set; then :
7541  enableval=$enable_valgrind_annotations;
7542else
7543  enable_valgrind_annotations=no
7544fi
7545
7546if test x$enable_valgrind_annotations != xno \
7547    || test x$ac_valgrind_checking != x; then
7548  if (test $have_valgrind_h = no \
7549      && test $gcc_cv_header_memcheck_h = no \
7550      && test $gcc_cv_header_valgrind_memcheck_h = no); then
7551    as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7552  fi
7553
7554$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7555
7556fi
7557
7558# -------------------------------
7559# Miscenalleous configure options
7560# -------------------------------
7561
7562# With stabs
7563
7564# Check whether --with-stabs was given.
7565if test "${with_stabs+set}" = set; then :
7566  withval=$with_stabs; stabs="$with_stabs"
7567else
7568  stabs=no
7569fi
7570
7571
7572# Determine whether or not multilibs are enabled.
7573# Check whether --enable-multilib was given.
7574if test "${enable_multilib+set}" = set; then :
7575  enableval=$enable_multilib;
7576else
7577  enable_multilib=yes
7578fi
7579
7580
7581
7582# Determine whether or not multiarch is enabled.
7583# Check whether --enable-multiarch was given.
7584if test "${enable_multiarch+set}" = set; then :
7585  enableval=$enable_multiarch; case "${enableval}" in
7586yes|no|auto) enable_multiarch=$enableval;;
7587*) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7588esac
7589else
7590  enable_multiarch=auto
7591fi
7592
7593if test x${enable_multiarch} = xauto; then
7594  if test x${with_native_system_header_dir} != x; then
7595    ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7596    enable_multiarch=no
7597  fi
7598  if test x$host != x$target && test "x$with_sysroot" = x; then
7599    ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7600    enable_multiarch=no
7601  fi
7602fi
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7604$as_echo_n "checking for multiarch configuration... " >&6; }
7605
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7607$as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7608
7609# needed for setting the multiarch name for soft-float/hard-float ABIs
7610
7611
7612
7613# default stack clash protection guard size as power of twos in bytes.
7614# Please keep these in sync with params.def.
7615stk_clash_min=12
7616stk_clash_max=30
7617
7618# Keep the default value when the option is not used to 0, this allows us to
7619# distinguish between the cases where the user specifially set a value via
7620# configure and when the normal default value is used.
7621
7622# Check whether --with-stack-clash-protection-guard-size was given.
7623if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7624  withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7625else
7626  DEFAULT_STK_CLASH_GUARD_SIZE=0
7627fi
7628
7629if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7630     && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7631	 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7632  as_fn_error $? "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7633fi
7634
7635
7636cat >>confdefs.h <<_ACEOF
7637#define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7638_ACEOF
7639
7640
7641# Enable __cxa_atexit for C++.
7642# Check whether --enable-__cxa_atexit was given.
7643if test "${enable___cxa_atexit+set}" = set; then :
7644  enableval=$enable___cxa_atexit;
7645fi
7646
7647
7648# Enable C extension for decimal float if target supports it.
7649
7650# Check whether --enable-decimal-float was given.
7651if test "${enable_decimal_float+set}" = set; then :
7652  enableval=$enable_decimal_float;
7653  case $enable_decimal_float in
7654    yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7655    *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7656Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7657  esac
7658
7659else
7660
7661  case $target in
7662    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7663    i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7664    i?86*-*-mingw* | x86_64*-*-mingw* | \
7665    i?86*-*-cygwin* | x86_64*-*-cygwin*)
7666      enable_decimal_float=yes
7667      ;;
7668    *)
7669      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7670$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7671      enable_decimal_float=no
7672      ;;
7673  esac
7674
7675fi
7676
7677
7678# x86's use BID format instead of DPD
7679case x$enable_decimal_float in
7680  xyes)
7681    case $target in
7682      i?86*-*-* | x86_64*-*-*)
7683	enable_decimal_float=bid
7684	;;
7685      *)
7686	enable_decimal_float=dpd
7687	;;
7688    esac
7689    default_decimal_float=$enable_decimal_float
7690    ;;
7691  xno)
7692    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7693    # dependency on libdecnumber.
7694    default_decimal_float=dpd
7695    ;;
7696esac
7697
7698
7699
7700
7701dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7702
7703cat >>confdefs.h <<_ACEOF
7704#define ENABLE_DECIMAL_FLOAT $dfp
7705_ACEOF
7706
7707
7708# Use default_decimal_float for dependency.
7709enable_decimal_float=$default_decimal_float
7710
7711bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7712
7713cat >>confdefs.h <<_ACEOF
7714#define ENABLE_DECIMAL_BID_FORMAT $bid
7715_ACEOF
7716
7717
7718# Enable C extension for fixed-point arithmetic.
7719# Check whether --enable-fixed-point was given.
7720if test "${enable_fixed_point+set}" = set; then :
7721  enableval=$enable_fixed_point;
7722else
7723
7724  case $target in
7725    arm*)
7726      enable_fixed_point=yes
7727      ;;
7728
7729    mips*-*-*)
7730      enable_fixed_point=yes
7731      ;;
7732    *)
7733      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7734$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7735      enable_fixed_point=no
7736      ;;
7737  esac
7738
7739fi
7740
7741
7742
7743fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7744
7745cat >>confdefs.h <<_ACEOF
7746#define ENABLE_FIXED_POINT $fixedpoint
7747_ACEOF
7748
7749
7750# Enable threads
7751# Pass with no value to take the default
7752# Pass with a value to specify a thread package
7753# Check whether --enable-threads was given.
7754if test "${enable_threads+set}" = set; then :
7755  enableval=$enable_threads;
7756else
7757  enable_threads=''
7758fi
7759
7760
7761# Check whether --enable-tls was given.
7762if test "${enable_tls+set}" = set; then :
7763  enableval=$enable_tls;
7764  case $enable_tls in
7765    yes | no) ;;
7766    *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7767Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7768  esac
7769
7770else
7771  enable_tls=''
7772fi
7773
7774
7775# Check whether --enable-vtable-verify was given.
7776if test "${enable_vtable_verify+set}" = set; then :
7777  enableval=$enable_vtable_verify;
7778else
7779  enable_vtable_verify=no
7780fi
7781
7782vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7783
7784cat >>confdefs.h <<_ACEOF
7785#define ENABLE_VTABLE_VERIFY $vtable_verify
7786_ACEOF
7787
7788
7789# Check whether --enable-analyzer was given.
7790if test "${enable_analyzer+set}" = set; then :
7791  enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7792	analyzer=0
7793else
7794	analyzer=1
7795fi
7796else
7797  analyzer=1
7798fi
7799
7800
7801cat >>confdefs.h <<_ACEOF
7802#define ENABLE_ANALYZER $analyzer
7803_ACEOF
7804
7805
7806# Check whether --enable-objc-gc was given.
7807if test "${enable_objc_gc+set}" = set; then :
7808  enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7809	objc_boehm_gc=''
7810else
7811	objc_boehm_gc=1
7812fi
7813else
7814  objc_boehm_gc=''
7815fi
7816
7817
7818
7819# Check whether --with-dwarf2 was given.
7820if test "${with_dwarf2+set}" = set; then :
7821  withval=$with_dwarf2; dwarf2="$with_dwarf2"
7822else
7823  dwarf2=no
7824fi
7825
7826
7827# Check whether --enable-shared was given.
7828if test "${enable_shared+set}" = set; then :
7829  enableval=$enable_shared;
7830  case $enable_shared in
7831  yes | no) ;;
7832  *)
7833    enable_shared=no
7834    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7835    for pkg in $enableval; do
7836      if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7837        enable_shared=yes
7838      fi
7839    done
7840    IFS="$ac_save_ifs"
7841    ;;
7842  esac
7843
7844else
7845  enable_shared=yes
7846fi
7847
7848
7849
7850# Check whether --enable-gcov was given.
7851if test "${enable_gcov+set}" = set; then :
7852  enableval=$enable_gcov;
7853else
7854  enable_gcov=yes
7855fi
7856
7857
7858
7859
7860# Check whether --with-specs was given.
7861if test "${with_specs+set}" = set; then :
7862  withval=$with_specs; CONFIGURE_SPECS=$withval
7863else
7864  CONFIGURE_SPECS=
7865
7866fi
7867
7868
7869
7870
7871
7872# Check whether --with-pkgversion was given.
7873if test "${with_pkgversion+set}" = set; then :
7874  withval=$with_pkgversion; case "$withval" in
7875      yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7876      no)  PKGVERSION= ;;
7877      *)   PKGVERSION="($withval) " ;;
7878     esac
7879else
7880  PKGVERSION="(GCC) "
7881
7882fi
7883
7884
7885
7886
7887
7888# Check whether --with-bugurl was given.
7889if test "${with_bugurl+set}" = set; then :
7890  withval=$with_bugurl; case "$withval" in
7891      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7892      no)  BUGURL=
7893	   ;;
7894      *)   BUGURL="$withval"
7895	   ;;
7896     esac
7897else
7898  BUGURL="https://gcc.gnu.org/bugs/"
7899
7900fi
7901
7902  case ${BUGURL} in
7903  "")
7904    REPORT_BUGS_TO=
7905    REPORT_BUGS_TEXI=
7906    ;;
7907  *)
7908    REPORT_BUGS_TO="<$BUGURL>"
7909    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7910    ;;
7911  esac;
7912
7913
7914
7915
7916# Allow overriding the default URL for documentation
7917
7918# Check whether --with-documentation-root-url was given.
7919if test "${with_documentation_root_url+set}" = set; then :
7920  withval=$with_documentation_root_url; case "$withval" in
7921      yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7922      no)  as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7923      */)  DOCUMENTATION_ROOT_URL="$withval" ;;
7924      *)   as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
7925     esac
7926else
7927  DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
7928
7929fi
7930
7931
7932cat >>confdefs.h <<_ACEOF
7933#define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7934_ACEOF
7935
7936
7937# Allow overriding the default URL for GCC changes
7938
7939# Check whether --with-changes-root-url was given.
7940if test "${with_changes_root_url+set}" = set; then :
7941  withval=$with_changes_root_url; case "$withval" in
7942      yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7943      no)  as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7944      */)  CHANGES_ROOT_URL="$withval" ;;
7945      *)   as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
7946     esac
7947else
7948  CHANGES_ROOT_URL="https://gcc.gnu.org/"
7949
7950fi
7951
7952
7953cat >>confdefs.h <<_ACEOF
7954#define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7955_ACEOF
7956
7957
7958# Sanity check enable_languages in case someone does not run the toplevel
7959# configure # script.
7960# Check whether --enable-languages was given.
7961if test "${enable_languages+set}" = set; then :
7962  enableval=$enable_languages; case ,${enable_languages}, in
7963       ,,|,yes,)
7964		# go safe -- we cannot be much sure without the toplevel
7965		# configure's
7966		# analysis of which target libs are present and usable
7967		enable_languages=c
7968		;;
7969	 *,all,*)
7970		as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7971		;;
7972	*,c,*)
7973		;;
7974        *)
7975		enable_languages=c,${enable_languages}
7976		;;
7977esac
7978else
7979  enable_languages=c
7980fi
7981
7982
7983# If top-level libada has been disabled, then wire in install-gnatlib
7984# invocation with `make install', so that one can build and install
7985# the library manually with `make -C gcc all gnatlib gnattools install'.
7986if test x"$enable_libada" = xno; then
7987  gnat_install_lib=gnat-install-lib
7988else
7989  gnat_install_lib=
7990fi
7991
7992
7993if test x"$enable_as_accelerator_for" != x; then
7994
7995$as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7996
7997  enable_as_accelerator=yes
7998  case "${target}" in
7999    *-intelmicemul-*)
8000      # In this case we expect offload compiler to be built as native, so we
8001      # need to rename the driver to avoid clashes with host's drivers.
8002      program_transform_name="s&^&${target}-&" ;;
8003  esac
8004  sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8005  program_transform_name=`echo $program_transform_name | sed $sedscript`
8006  accel_dir_suffix=/accel/${target_noncanonical}
8007  real_target_noncanonical=${enable_as_accelerator_for}
8008fi
8009
8010
8011
8012
8013for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8014  tgt=`echo $tgt | sed 's/=.*//'`
8015
8016  enable_offloading=1
8017  case "$tgt" in
8018    *-intelmic-* | *-intelmicemul-*)
8019  	omp_device_property=omp-device-properties-i386
8020  	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8021  	;;
8022    amdgcn*)
8023  	omp_device_property=omp-device-properties-gcn
8024  	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8025  	;;
8026    nvptx*)
8027  	omp_device_property=omp-device-properties-nvptx
8028  	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8029  	;;
8030    *)
8031  	as_fn_error $? "unknown offload target specified" "$LINENO" 5
8032  	;;
8033  esac
8034  omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8035  omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8036
8037  if test x"$offload_targets" = x; then
8038    offload_targets=$tgt
8039  else
8040    offload_targets="$offload_targets,$tgt"
8041  fi
8042done
8043
8044
8045
8046
8047cat >>confdefs.h <<_ACEOF
8048#define OFFLOAD_TARGETS "$offload_targets"
8049_ACEOF
8050
8051if test x"$enable_offloading" != x; then
8052
8053$as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8054
8055else
8056
8057$as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8058
8059fi
8060
8061
8062# Check whether --with-multilib-list was given.
8063if test "${with_multilib_list+set}" = set; then :
8064  withval=$with_multilib_list; :
8065else
8066  with_multilib_list=default
8067fi
8068
8069
8070
8071# Check whether --with-multilib-generator was given.
8072if test "${with_multilib_generator+set}" = set; then :
8073  withval=$with_multilib_generator; :
8074else
8075  with_multilib_generator=default
8076fi
8077
8078
8079# -------------------------
8080# Checks for other programs
8081# -------------------------
8082
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8084$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8085set x ${MAKE-make}
8086ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8087if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8088  $as_echo_n "(cached) " >&6
8089else
8090  cat >conftest.make <<\_ACEOF
8091SHELL = /bin/sh
8092all:
8093	@echo '@@@%%%=$(MAKE)=@@@%%%'
8094_ACEOF
8095# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8096case `${MAKE-make} -f conftest.make 2>/dev/null` in
8097  *@@@%%%=?*=@@@%%%*)
8098    eval ac_cv_prog_make_${ac_make}_set=yes;;
8099  *)
8100    eval ac_cv_prog_make_${ac_make}_set=no;;
8101esac
8102rm -f conftest.make
8103fi
8104if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8106$as_echo "yes" >&6; }
8107  SET_MAKE=
8108else
8109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110$as_echo "no" >&6; }
8111  SET_MAKE="MAKE=${MAKE-make}"
8112fi
8113
8114
8115# Find some useful tools
8116for ac_prog in gawk mawk nawk awk
8117do
8118  # Extract the first word of "$ac_prog", so it can be a program name with args.
8119set dummy $ac_prog; ac_word=$2
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121$as_echo_n "checking for $ac_word... " >&6; }
8122if ${ac_cv_prog_AWK+:} false; then :
8123  $as_echo_n "(cached) " >&6
8124else
8125  if test -n "$AWK"; then
8126  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8127else
8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129for as_dir in $PATH
8130do
8131  IFS=$as_save_IFS
8132  test -z "$as_dir" && as_dir=.
8133    for ac_exec_ext in '' $ac_executable_extensions; do
8134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8135    ac_cv_prog_AWK="$ac_prog"
8136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137    break 2
8138  fi
8139done
8140  done
8141IFS=$as_save_IFS
8142
8143fi
8144fi
8145AWK=$ac_cv_prog_AWK
8146if test -n "$AWK"; then
8147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8148$as_echo "$AWK" >&6; }
8149else
8150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151$as_echo "no" >&6; }
8152fi
8153
8154
8155  test -n "$AWK" && break
8156done
8157
8158# We need awk to create options.c and options.h.
8159# Bail out if it's missing.
8160case ${AWK} in
8161  "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8162esac
8163
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8165$as_echo_n "checking whether ln -s works... " >&6; }
8166if ${gcc_cv_prog_LN_S+:} false; then :
8167  $as_echo_n "(cached) " >&6
8168else
8169  rm -f conftestdata_t
8170echo >conftestdata_f
8171if ln -s conftestdata_f conftestdata_t 2>/dev/null
8172then
8173  gcc_cv_prog_LN_S="ln -s"
8174else
8175  if ln conftestdata_f conftestdata_t 2>/dev/null
8176  then
8177    gcc_cv_prog_LN_S=ln
8178  else
8179    if cp -p conftestdata_f conftestdata_t 2>/dev/null
8180    then
8181      gcc_cv_prog_LN_S="cp -p"
8182    else
8183      gcc_cv_prog_LN_S=cp
8184    fi
8185  fi
8186fi
8187rm -f conftestdata_f conftestdata_t
8188
8189fi
8190LN_S="$gcc_cv_prog_LN_S"
8191if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8193$as_echo "yes" >&6; }
8194else
8195  if test "$gcc_cv_prog_LN_S" = "ln"; then
8196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8197$as_echo "no, using ln" >&6; }
8198  else
8199    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8200$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8201  fi
8202fi
8203
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8205$as_echo_n "checking whether ln works... " >&6; }
8206if ${acx_cv_prog_LN+:} false; then :
8207  $as_echo_n "(cached) " >&6
8208else
8209  rm -f conftestdata_t
8210echo >conftestdata_f
8211if ln conftestdata_f conftestdata_t 2>/dev/null
8212then
8213  acx_cv_prog_LN=ln
8214else
8215  acx_cv_prog_LN=no
8216fi
8217rm -f conftestdata_f conftestdata_t
8218
8219fi
8220if test $acx_cv_prog_LN = no; then
8221  LN="$LN_S"
8222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8223$as_echo "no, using $LN" >&6; }
8224else
8225  LN="$acx_cv_prog_LN"
8226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8227$as_echo "yes" >&6; }
8228fi
8229
8230if test -n "$ac_tool_prefix"; then
8231  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8232set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234$as_echo_n "checking for $ac_word... " >&6; }
8235if ${ac_cv_prog_RANLIB+:} false; then :
8236  $as_echo_n "(cached) " >&6
8237else
8238  if test -n "$RANLIB"; then
8239  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8240else
8241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242for as_dir in $PATH
8243do
8244  IFS=$as_save_IFS
8245  test -z "$as_dir" && as_dir=.
8246    for ac_exec_ext in '' $ac_executable_extensions; do
8247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8248    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250    break 2
8251  fi
8252done
8253  done
8254IFS=$as_save_IFS
8255
8256fi
8257fi
8258RANLIB=$ac_cv_prog_RANLIB
8259if test -n "$RANLIB"; then
8260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8261$as_echo "$RANLIB" >&6; }
8262else
8263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264$as_echo "no" >&6; }
8265fi
8266
8267
8268fi
8269if test -z "$ac_cv_prog_RANLIB"; then
8270  ac_ct_RANLIB=$RANLIB
8271  # Extract the first word of "ranlib", so it can be a program name with args.
8272set dummy ranlib; ac_word=$2
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274$as_echo_n "checking for $ac_word... " >&6; }
8275if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8276  $as_echo_n "(cached) " >&6
8277else
8278  if test -n "$ac_ct_RANLIB"; then
8279  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8280else
8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284  IFS=$as_save_IFS
8285  test -z "$as_dir" && as_dir=.
8286    for ac_exec_ext in '' $ac_executable_extensions; do
8287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288    ac_cv_prog_ac_ct_RANLIB="ranlib"
8289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290    break 2
8291  fi
8292done
8293  done
8294IFS=$as_save_IFS
8295
8296fi
8297fi
8298ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8299if test -n "$ac_ct_RANLIB"; then
8300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8301$as_echo "$ac_ct_RANLIB" >&6; }
8302else
8303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304$as_echo "no" >&6; }
8305fi
8306
8307  if test "x$ac_ct_RANLIB" = x; then
8308    RANLIB=":"
8309  else
8310    case $cross_compiling:$ac_tool_warned in
8311yes:)
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314ac_tool_warned=yes ;;
8315esac
8316    RANLIB=$ac_ct_RANLIB
8317  fi
8318else
8319  RANLIB="$ac_cv_prog_RANLIB"
8320fi
8321
8322ranlib_flags=""
8323
8324
8325# Find a good install program.  We prefer a C program (faster),
8326# so one script is as good as another.  But avoid the broken or
8327# incompatible versions:
8328# SysV /etc/install, /usr/sbin/install
8329# SunOS /usr/etc/install
8330# IRIX /sbin/install
8331# AIX /bin/install
8332# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8333# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8334# ./install, which can be erroneously created by make from ./install.sh.
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8336$as_echo_n "checking for a BSD compatible install... " >&6; }
8337if test -z "$INSTALL"; then
8338if ${ac_cv_path_install+:} false; then :
8339  $as_echo_n "(cached) " >&6
8340else
8341    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8342  for ac_dir in $PATH; do
8343    # Account for people who put trailing slashes in PATH elements.
8344    case "$ac_dir/" in
8345    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8346    *)
8347      # OSF1 and SCO ODT 3.0 have their own names for install.
8348      for ac_prog in ginstall scoinst install; do
8349        if test -f $ac_dir/$ac_prog; then
8350	  if test $ac_prog = install &&
8351            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8352	    # AIX install.  It has an incompatible calling convention.
8353	    # OSF/1 installbsd also uses dspmsg, but is usable.
8354	    :
8355	  else
8356	    ac_cv_path_install="$ac_dir/$ac_prog -c"
8357	    break 2
8358	  fi
8359	fi
8360      done
8361      ;;
8362    esac
8363  done
8364  IFS="$ac_save_IFS"
8365
8366fi
8367  if test "${ac_cv_path_install+set}" = set; then
8368    INSTALL="$ac_cv_path_install"
8369  else
8370    # As a last resort, use the slow shell script.  We don't cache a
8371    # path for INSTALL within a source directory, because that will
8372    # break other packages using the cache if that directory is
8373    # removed, or if the path is relative.
8374    INSTALL="$ac_install_sh"
8375  fi
8376fi
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8378$as_echo "$INSTALL" >&6; }
8379
8380# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8381# It thinks the first close brace ends the variable substitution.
8382test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8383
8384test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8385
8386
8387# See if cmp has --ignore-initial.
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8389$as_echo_n "checking for cmp's capabilities... " >&6; }
8390if ${gcc_cv_prog_cmp_skip+:} false; then :
8391  $as_echo_n "(cached) " >&6
8392else
8393   echo abfoo >t1
8394  echo cdfoo >t2
8395  gcc_cv_prog_cmp_skip=slowcompare
8396  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8397    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8398      :
8399    else
8400      gcc_cv_prog_cmp_skip=gnucompare
8401    fi
8402  fi
8403  if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8404    if cmp t1 t2 2 2 > /dev/null 2>&1; then
8405      if cmp t1 t2 1 1 > /dev/null 2>&1; then
8406        :
8407      else
8408        gcc_cv_prog_cmp_skip=fastcompare
8409      fi
8410    fi
8411  fi
8412  rm t1 t2
8413
8414fi
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8416$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8417make_compare_target=$gcc_cv_prog_cmp_skip
8418
8419
8420
8421# See if we have the mktemp command.
8422# Extract the first word of "mktemp", so it can be a program name with args.
8423set dummy mktemp; ac_word=$2
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425$as_echo_n "checking for $ac_word... " >&6; }
8426if ${ac_cv_prog_have_mktemp_command+:} false; then :
8427  $as_echo_n "(cached) " >&6
8428else
8429  if test -n "$have_mktemp_command"; then
8430  ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8431else
8432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433for as_dir in $PATH
8434do
8435  IFS=$as_save_IFS
8436  test -z "$as_dir" && as_dir=.
8437    for ac_exec_ext in '' $ac_executable_extensions; do
8438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439    ac_cv_prog_have_mktemp_command="yes"
8440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441    break 2
8442  fi
8443done
8444  done
8445IFS=$as_save_IFS
8446
8447  test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8448fi
8449fi
8450have_mktemp_command=$ac_cv_prog_have_mktemp_command
8451if test -n "$have_mktemp_command"; then
8452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8453$as_echo "$have_mktemp_command" >&6; }
8454else
8455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456$as_echo "no" >&6; }
8457fi
8458
8459
8460
8461# See if makeinfo has been installed and is modern enough
8462# that we can use it.
8463
8464  # Extract the first word of "makeinfo", so it can be a program name with args.
8465set dummy makeinfo; ac_word=$2
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467$as_echo_n "checking for $ac_word... " >&6; }
8468if ${ac_cv_prog_MAKEINFO+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  if test -n "$MAKEINFO"; then
8472  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8473else
8474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475for as_dir in $PATH
8476do
8477  IFS=$as_save_IFS
8478  test -z "$as_dir" && as_dir=.
8479    for ac_exec_ext in '' $ac_executable_extensions; do
8480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481    ac_cv_prog_MAKEINFO="makeinfo"
8482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483    break 2
8484  fi
8485done
8486  done
8487IFS=$as_save_IFS
8488
8489fi
8490fi
8491MAKEINFO=$ac_cv_prog_MAKEINFO
8492if test -n "$MAKEINFO"; then
8493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8494$as_echo "$MAKEINFO" >&6; }
8495else
8496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497$as_echo "no" >&6; }
8498fi
8499
8500
8501  if test -n "$MAKEINFO"; then
8502    # Found it, now check the version.
8503    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8504$as_echo_n "checking for modern makeinfo... " >&6; }
8505if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8506  $as_echo_n "(cached) " >&6
8507else
8508  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8509                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8510
8511                    case $ac_prog_version in
8512                      '')  gcc_cv_prog_makeinfo_modern=no;;
8513                      4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8514                      *)   gcc_cv_prog_makeinfo_modern=no;;
8515                    esac
8516
8517fi
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8519$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8520  else
8521    gcc_cv_prog_makeinfo_modern=no
8522  fi
8523  if test $gcc_cv_prog_makeinfo_modern = no; then
8524    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8525  fi
8526
8527if test $gcc_cv_prog_makeinfo_modern = no; then
8528  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8529*** Makeinfo is missing or too old.
8530*** Info documentation will not be built." >&5
8531$as_echo "$as_me: WARNING:
8532*** Makeinfo is missing or too old.
8533*** Info documentation will not be built." >&2;}
8534  BUILD_INFO=
8535else
8536  BUILD_INFO=info
8537fi
8538
8539
8540# Is pod2man recent enough to regenerate manpages?
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8542$as_echo_n "checking for recent Pod::Man... " >&6; }
8543if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8545$as_echo "yes" >&6; }
8546  GENERATED_MANPAGES=generated-manpages
8547else
8548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549$as_echo "no" >&6; }
8550  GENERATED_MANPAGES=
8551fi
8552
8553
8554MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8555
8556# How about lex?
8557for ac_prog in flex
8558do
8559  # Extract the first word of "$ac_prog", so it can be a program name with args.
8560set dummy $ac_prog; ac_word=$2
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562$as_echo_n "checking for $ac_word... " >&6; }
8563if ${ac_cv_prog_FLEX+:} false; then :
8564  $as_echo_n "(cached) " >&6
8565else
8566  if test -n "$FLEX"; then
8567  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8568else
8569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570for as_dir in $PATH
8571do
8572  IFS=$as_save_IFS
8573  test -z "$as_dir" && as_dir=.
8574    for ac_exec_ext in '' $ac_executable_extensions; do
8575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8576    ac_cv_prog_FLEX="$ac_prog"
8577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578    break 2
8579  fi
8580done
8581  done
8582IFS=$as_save_IFS
8583
8584fi
8585fi
8586FLEX=$ac_cv_prog_FLEX
8587if test -n "$FLEX"; then
8588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8589$as_echo "$FLEX" >&6; }
8590else
8591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592$as_echo "no" >&6; }
8593fi
8594
8595
8596  test -n "$FLEX" && break
8597done
8598test -n "$FLEX" || FLEX="$MISSING flex"
8599
8600
8601# Bison?
8602for ac_prog in bison
8603do
8604  # Extract the first word of "$ac_prog", so it can be a program name with args.
8605set dummy $ac_prog; ac_word=$2
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607$as_echo_n "checking for $ac_word... " >&6; }
8608if ${ac_cv_prog_BISON+:} false; then :
8609  $as_echo_n "(cached) " >&6
8610else
8611  if test -n "$BISON"; then
8612  ac_cv_prog_BISON="$BISON" # Let the user override the test.
8613else
8614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615for as_dir in $PATH
8616do
8617  IFS=$as_save_IFS
8618  test -z "$as_dir" && as_dir=.
8619    for ac_exec_ext in '' $ac_executable_extensions; do
8620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8621    ac_cv_prog_BISON="$ac_prog"
8622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623    break 2
8624  fi
8625done
8626  done
8627IFS=$as_save_IFS
8628
8629fi
8630fi
8631BISON=$ac_cv_prog_BISON
8632if test -n "$BISON"; then
8633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8634$as_echo "$BISON" >&6; }
8635else
8636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637$as_echo "no" >&6; }
8638fi
8639
8640
8641  test -n "$BISON" && break
8642done
8643test -n "$BISON" || BISON="$MISSING bison"
8644
8645
8646# Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8647# check for build == host before using them.
8648
8649# NM
8650if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8651  && test -d ../binutils ; then
8652  NM='${objdir}/../binutils/nm-new'
8653else
8654  # Extract the first word of "nm", so it can be a program name with args.
8655set dummy nm; ac_word=$2
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657$as_echo_n "checking for $ac_word... " >&6; }
8658if ${ac_cv_prog_NM+:} false; then :
8659  $as_echo_n "(cached) " >&6
8660else
8661  if test -n "$NM"; then
8662  ac_cv_prog_NM="$NM" # Let the user override the test.
8663else
8664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665for as_dir in $PATH
8666do
8667  IFS=$as_save_IFS
8668  test -z "$as_dir" && as_dir=.
8669    for ac_exec_ext in '' $ac_executable_extensions; do
8670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671    ac_cv_prog_NM="nm"
8672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673    break 2
8674  fi
8675done
8676  done
8677IFS=$as_save_IFS
8678
8679  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8680fi
8681fi
8682NM=$ac_cv_prog_NM
8683if test -n "$NM"; then
8684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8685$as_echo "$NM" >&6; }
8686else
8687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688$as_echo "no" >&6; }
8689fi
8690
8691
8692fi
8693
8694# AR
8695if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8696  && test -d ../binutils ; then
8697  AR='${objdir}/../binutils/ar'
8698else
8699  # Extract the first word of "ar", so it can be a program name with args.
8700set dummy ar; ac_word=$2
8701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8702$as_echo_n "checking for $ac_word... " >&6; }
8703if ${ac_cv_prog_AR+:} false; then :
8704  $as_echo_n "(cached) " >&6
8705else
8706  if test -n "$AR"; then
8707  ac_cv_prog_AR="$AR" # Let the user override the test.
8708else
8709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710for as_dir in $PATH
8711do
8712  IFS=$as_save_IFS
8713  test -z "$as_dir" && as_dir=.
8714    for ac_exec_ext in '' $ac_executable_extensions; do
8715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8716    ac_cv_prog_AR="ar"
8717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8718    break 2
8719  fi
8720done
8721  done
8722IFS=$as_save_IFS
8723
8724  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8725fi
8726fi
8727AR=$ac_cv_prog_AR
8728if test -n "$AR"; then
8729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8730$as_echo "$AR" >&6; }
8731else
8732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733$as_echo "no" >&6; }
8734fi
8735
8736
8737fi
8738
8739# The jit documentation looks better if built with sphinx, but can be
8740# built with texinfo if sphinx is not available.
8741# Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8742# Extract the first word of "sphinx-build", so it can be a program name with args.
8743set dummy sphinx-build; ac_word=$2
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745$as_echo_n "checking for $ac_word... " >&6; }
8746if ${ac_cv_prog_doc_build_sys+:} false; then :
8747  $as_echo_n "(cached) " >&6
8748else
8749  if test -n "$doc_build_sys"; then
8750  ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8751else
8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755  IFS=$as_save_IFS
8756  test -z "$as_dir" && as_dir=.
8757    for ac_exec_ext in '' $ac_executable_extensions; do
8758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759    ac_cv_prog_doc_build_sys="sphinx"
8760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761    break 2
8762  fi
8763done
8764  done
8765IFS=$as_save_IFS
8766
8767  test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8768fi
8769fi
8770doc_build_sys=$ac_cv_prog_doc_build_sys
8771if test -n "$doc_build_sys"; then
8772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8773$as_echo "$doc_build_sys" >&6; }
8774else
8775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776$as_echo "no" >&6; }
8777fi
8778
8779
8780
8781# --------------------
8782# Checks for C headers
8783# --------------------
8784
8785# Need to reject headers which give warnings, so that the -Werror bootstrap
8786# works later. *sigh*  This needs to come before all header checks.
8787
8788ac_c_preproc_warn_flag=yes
8789
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8791$as_echo_n "checking for ANSI C header files... " >&6; }
8792if ${ac_cv_header_stdc+:} false; then :
8793  $as_echo_n "(cached) " >&6
8794else
8795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796/* end confdefs.h.  */
8797#include <stdlib.h>
8798#include <stdarg.h>
8799#include <string.h>
8800#include <float.h>
8801
8802int
8803main ()
8804{
8805
8806  ;
8807  return 0;
8808}
8809_ACEOF
8810if ac_fn_cxx_try_compile "$LINENO"; then :
8811  ac_cv_header_stdc=yes
8812else
8813  ac_cv_header_stdc=no
8814fi
8815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816
8817if test $ac_cv_header_stdc = yes; then
8818  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820/* end confdefs.h.  */
8821#include <string.h>
8822
8823_ACEOF
8824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8825  $EGREP "memchr" >/dev/null 2>&1; then :
8826
8827else
8828  ac_cv_header_stdc=no
8829fi
8830rm -f conftest*
8831
8832fi
8833
8834if test $ac_cv_header_stdc = yes; then
8835  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837/* end confdefs.h.  */
8838#include <stdlib.h>
8839
8840_ACEOF
8841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8842  $EGREP "free" >/dev/null 2>&1; then :
8843
8844else
8845  ac_cv_header_stdc=no
8846fi
8847rm -f conftest*
8848
8849fi
8850
8851if test $ac_cv_header_stdc = yes; then
8852  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8853  if test "$cross_compiling" = yes; then :
8854  :
8855else
8856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857/* end confdefs.h.  */
8858#include <ctype.h>
8859#include <stdlib.h>
8860#if ((' ' & 0x0FF) == 0x020)
8861# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8862# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8863#else
8864# define ISLOWER(c) \
8865		   (('a' <= (c) && (c) <= 'i') \
8866		     || ('j' <= (c) && (c) <= 'r') \
8867		     || ('s' <= (c) && (c) <= 'z'))
8868# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8869#endif
8870
8871#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8872int
8873main ()
8874{
8875  int i;
8876  for (i = 0; i < 256; i++)
8877    if (XOR (islower (i), ISLOWER (i))
8878	|| toupper (i) != TOUPPER (i))
8879      return 2;
8880  return 0;
8881}
8882_ACEOF
8883if ac_fn_cxx_try_run "$LINENO"; then :
8884
8885else
8886  ac_cv_header_stdc=no
8887fi
8888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8889  conftest.$ac_objext conftest.beam conftest.$ac_ext
8890fi
8891
8892fi
8893fi
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8895$as_echo "$ac_cv_header_stdc" >&6; }
8896if test $ac_cv_header_stdc = yes; then
8897
8898$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8899
8900fi
8901
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8903$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8904if ${ac_cv_header_time+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908/* end confdefs.h.  */
8909#include <sys/types.h>
8910#include <sys/time.h>
8911#include <time.h>
8912
8913int
8914main ()
8915{
8916if ((struct tm *) 0)
8917return 0;
8918  ;
8919  return 0;
8920}
8921_ACEOF
8922if ac_fn_cxx_try_compile "$LINENO"; then :
8923  ac_cv_header_time=yes
8924else
8925  ac_cv_header_time=no
8926fi
8927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928fi
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8930$as_echo "$ac_cv_header_time" >&6; }
8931if test $ac_cv_header_time = yes; then
8932
8933$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8934
8935fi
8936
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8938$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8939if ${gcc_cv_header_string+:} false; then :
8940  $as_echo_n "(cached) " >&6
8941else
8942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943/* end confdefs.h.  */
8944#include <string.h>
8945#include <strings.h>
8946int
8947main ()
8948{
8949
8950  ;
8951  return 0;
8952}
8953_ACEOF
8954if ac_fn_cxx_try_compile "$LINENO"; then :
8955  gcc_cv_header_string=yes
8956else
8957  gcc_cv_header_string=no
8958fi
8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960fi
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8962$as_echo "$gcc_cv_header_string" >&6; }
8963if test $gcc_cv_header_string = yes; then
8964
8965$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8966
8967fi
8968
8969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8970$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8971if ${ac_cv_header_sys_wait_h+:} false; then :
8972  $as_echo_n "(cached) " >&6
8973else
8974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975/* end confdefs.h.  */
8976#include <sys/types.h>
8977#include <sys/wait.h>
8978#ifndef WEXITSTATUS
8979# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8980#endif
8981#ifndef WIFEXITED
8982# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8983#endif
8984
8985int
8986main ()
8987{
8988  int s;
8989  wait (&s);
8990  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8991  ;
8992  return 0;
8993}
8994_ACEOF
8995if ac_fn_cxx_try_compile "$LINENO"; then :
8996  ac_cv_header_sys_wait_h=yes
8997else
8998  ac_cv_header_sys_wait_h=no
8999fi
9000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001fi
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9003$as_echo "$ac_cv_header_sys_wait_h" >&6; }
9004if test $ac_cv_header_sys_wait_h = yes; then
9005
9006$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9007
9008fi
9009
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9011$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9012if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9013  $as_echo_n "(cached) " >&6
9014else
9015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016/* end confdefs.h.  */
9017#include <sys/types.h>
9018#include <termios.h>
9019#ifdef TIOCGWINSZ
9020  yes
9021#endif
9022
9023_ACEOF
9024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9025  $EGREP "yes" >/dev/null 2>&1; then :
9026  ac_cv_sys_tiocgwinsz_in_termios_h=yes
9027else
9028  ac_cv_sys_tiocgwinsz_in_termios_h=no
9029fi
9030rm -f conftest*
9031
9032fi
9033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9034$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9035
9036if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9038$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9039if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9040  $as_echo_n "(cached) " >&6
9041else
9042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h.  */
9044#include <sys/types.h>
9045#include <sys/ioctl.h>
9046#ifdef TIOCGWINSZ
9047  yes
9048#endif
9049
9050_ACEOF
9051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9052  $EGREP "yes" >/dev/null 2>&1; then :
9053  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9054else
9055  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9056fi
9057rm -f conftest*
9058
9059fi
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9061$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9062
9063  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9064
9065$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9066
9067  fi
9068fi
9069
9070for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9071		 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9072		 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9073		 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9074do :
9075  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9076ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9077if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9078  cat >>confdefs.h <<_ACEOF
9079#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9080_ACEOF
9081
9082fi
9083done
9084
9085
9086# Check for thread headers.
9087ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9088if test "x$ac_cv_header_thread_h" = xyes; then :
9089  have_thread_h=yes
9090else
9091  have_thread_h=
9092fi
9093
9094ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9095if test "x$ac_cv_header_pthread_h" = xyes; then :
9096  have_pthread_h=yes
9097else
9098  have_pthread_h=
9099fi
9100
9101
9102# These tests can't be done till we know if we have limits.h.
9103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9104$as_echo_n "checking for CHAR_BIT... " >&6; }
9105if ${gcc_cv_decl_char_bit+:} false; then :
9106  $as_echo_n "(cached) " >&6
9107else
9108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109/* end confdefs.h.  */
9110#ifdef HAVE_LIMITS_H
9111#include <limits.h>
9112#endif
9113#ifdef CHAR_BIT
9114found
9115#endif
9116_ACEOF
9117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9118  $EGREP "found" >/dev/null 2>&1; then :
9119  gcc_cv_decl_char_bit=yes
9120else
9121  gcc_cv_decl_char_bit=no
9122fi
9123rm -f conftest*
9124
9125
9126fi
9127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9128$as_echo "$gcc_cv_decl_char_bit" >&6; }
9129if test $gcc_cv_decl_char_bit = no; then
9130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9131$as_echo_n "checking number of bits in a byte... " >&6; }
9132if ${gcc_cv_c_nbby+:} false; then :
9133  $as_echo_n "(cached) " >&6
9134else
9135  i=8
9136 gcc_cv_c_nbby=
9137 while test $i -lt 65; do
9138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139/* end confdefs.h.  */
9140
9141int
9142main ()
9143{
9144switch(0) {
9145  case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9146  case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9147  ; }
9148  ;
9149  return 0;
9150}
9151_ACEOF
9152if ac_fn_cxx_try_compile "$LINENO"; then :
9153  gcc_cv_c_nbby=$i; break
9154fi
9155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156   i=`expr $i + 1`
9157 done
9158 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9159
9160fi
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9162$as_echo "$gcc_cv_c_nbby" >&6; }
9163if test $gcc_cv_c_nbby = failed; then
9164  as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9165else
9166
9167cat >>confdefs.h <<_ACEOF
9168#define CHAR_BIT $gcc_cv_c_nbby
9169_ACEOF
9170
9171fi
9172fi
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9174$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9175if ${ac_cv_c_bigendian+:} false; then :
9176  $as_echo_n "(cached) " >&6
9177else
9178  ac_cv_c_bigendian=unknown
9179    # See if we're dealing with a universal compiler.
9180    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181/* end confdefs.h.  */
9182#ifndef __APPLE_CC__
9183	       not a universal capable compiler
9184	     #endif
9185	     typedef int dummy;
9186
9187_ACEOF
9188if ac_fn_cxx_try_compile "$LINENO"; then :
9189
9190	# Check for potential -arch flags.  It is not universal unless
9191	# there are at least two -arch flags with different values.
9192	ac_arch=
9193	ac_prev=
9194	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9195	 if test -n "$ac_prev"; then
9196	   case $ac_word in
9197	     i?86 | x86_64 | ppc | ppc64)
9198	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9199		 ac_arch=$ac_word
9200	       else
9201		 ac_cv_c_bigendian=universal
9202		 break
9203	       fi
9204	       ;;
9205	   esac
9206	   ac_prev=
9207	 elif test "x$ac_word" = "x-arch"; then
9208	   ac_prev=arch
9209	 fi
9210       done
9211fi
9212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213    if test $ac_cv_c_bigendian = unknown; then
9214      # See if sys/param.h defines the BYTE_ORDER macro.
9215      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216/* end confdefs.h.  */
9217#include <sys/types.h>
9218	     #include <sys/param.h>
9219
9220int
9221main ()
9222{
9223#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9224		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9225		     && LITTLE_ENDIAN)
9226	      bogus endian macros
9227	     #endif
9228
9229  ;
9230  return 0;
9231}
9232_ACEOF
9233if ac_fn_cxx_try_compile "$LINENO"; then :
9234  # It does; now see whether it defined to BIG_ENDIAN or not.
9235	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236/* end confdefs.h.  */
9237#include <sys/types.h>
9238		#include <sys/param.h>
9239
9240int
9241main ()
9242{
9243#if BYTE_ORDER != BIG_ENDIAN
9244		 not big endian
9245		#endif
9246
9247  ;
9248  return 0;
9249}
9250_ACEOF
9251if ac_fn_cxx_try_compile "$LINENO"; then :
9252  ac_cv_c_bigendian=yes
9253else
9254  ac_cv_c_bigendian=no
9255fi
9256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257fi
9258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259    fi
9260    if test $ac_cv_c_bigendian = unknown; then
9261      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9262      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263/* end confdefs.h.  */
9264#include <limits.h>
9265
9266int
9267main ()
9268{
9269#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9270	      bogus endian macros
9271	     #endif
9272
9273  ;
9274  return 0;
9275}
9276_ACEOF
9277if ac_fn_cxx_try_compile "$LINENO"; then :
9278  # It does; now see whether it defined to _BIG_ENDIAN or not.
9279	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280/* end confdefs.h.  */
9281#include <limits.h>
9282
9283int
9284main ()
9285{
9286#ifndef _BIG_ENDIAN
9287		 not big endian
9288		#endif
9289
9290  ;
9291  return 0;
9292}
9293_ACEOF
9294if ac_fn_cxx_try_compile "$LINENO"; then :
9295  ac_cv_c_bigendian=yes
9296else
9297  ac_cv_c_bigendian=no
9298fi
9299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300fi
9301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302    fi
9303    if test $ac_cv_c_bigendian = unknown; then
9304      # Compile a test program.
9305      if test "$cross_compiling" = yes; then :
9306  # Try to guess by grepping values from an object file.
9307	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308/* end confdefs.h.  */
9309short int ascii_mm[] =
9310		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9311		short int ascii_ii[] =
9312		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9313		int use_ascii (int i) {
9314		  return ascii_mm[i] + ascii_ii[i];
9315		}
9316		short int ebcdic_ii[] =
9317		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9318		short int ebcdic_mm[] =
9319		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9320		int use_ebcdic (int i) {
9321		  return ebcdic_mm[i] + ebcdic_ii[i];
9322		}
9323		extern int foo;
9324
9325int
9326main ()
9327{
9328return use_ascii (foo) == use_ebcdic (foo);
9329  ;
9330  return 0;
9331}
9332_ACEOF
9333if ac_fn_cxx_try_compile "$LINENO"; then :
9334  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9335	      ac_cv_c_bigendian=yes
9336	    fi
9337	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9338	      if test "$ac_cv_c_bigendian" = unknown; then
9339		ac_cv_c_bigendian=no
9340	      else
9341		# finding both strings is unlikely to happen, but who knows?
9342		ac_cv_c_bigendian=unknown
9343	      fi
9344	    fi
9345fi
9346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347else
9348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349/* end confdefs.h.  */
9350$ac_includes_default
9351int
9352main ()
9353{
9354
9355	     /* Are we little or big endian?  From Harbison&Steele.  */
9356	     union
9357	     {
9358	       long int l;
9359	       char c[sizeof (long int)];
9360	     } u;
9361	     u.l = 1;
9362	     return u.c[sizeof (long int) - 1] == 1;
9363
9364  ;
9365  return 0;
9366}
9367_ACEOF
9368if ac_fn_cxx_try_run "$LINENO"; then :
9369  ac_cv_c_bigendian=no
9370else
9371  ac_cv_c_bigendian=yes
9372fi
9373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9374  conftest.$ac_objext conftest.beam conftest.$ac_ext
9375fi
9376
9377    fi
9378fi
9379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9380$as_echo "$ac_cv_c_bigendian" >&6; }
9381 case $ac_cv_c_bigendian in #(
9382   yes)
9383     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9384;; #(
9385   no)
9386      ;; #(
9387   universal)
9388
9389$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9390
9391     ;; #(
9392   *)
9393     as_fn_error $? "unknown endianness
9394 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9395 esac
9396
9397
9398# ----------------------
9399# Checks for C++ headers
9400# ----------------------
9401
9402ac_ext=cpp
9403ac_cpp='$CXXCPP $CPPFLAGS'
9404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9408$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9409if test -z "$CXXCPP"; then
9410  if ${ac_cv_prog_CXXCPP+:} false; then :
9411  $as_echo_n "(cached) " >&6
9412else
9413      # Double quotes because CXXCPP needs to be expanded
9414    for CXXCPP in "$CXX -E" "/lib/cpp"
9415    do
9416      ac_preproc_ok=false
9417for ac_cxx_preproc_warn_flag in '' yes
9418do
9419  # Use a header file that comes with gcc, so configuring glibc
9420  # with a fresh cross-compiler works.
9421  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9422  # <limits.h> exists even on freestanding compilers.
9423  # On the NeXT, cc -E runs the code through the compiler's parser,
9424  # not just through cpp. "Syntax error" is here to catch this case.
9425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426/* end confdefs.h.  */
9427#ifdef __STDC__
9428# include <limits.h>
9429#else
9430# include <assert.h>
9431#endif
9432		     Syntax error
9433_ACEOF
9434if ac_fn_cxx_try_cpp "$LINENO"; then :
9435
9436else
9437  # Broken: fails on valid input.
9438continue
9439fi
9440rm -f conftest.err conftest.i conftest.$ac_ext
9441
9442  # OK, works on sane cases.  Now check whether nonexistent headers
9443  # can be detected and how.
9444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445/* end confdefs.h.  */
9446#include <ac_nonexistent.h>
9447_ACEOF
9448if ac_fn_cxx_try_cpp "$LINENO"; then :
9449  # Broken: success on invalid input.
9450continue
9451else
9452  # Passes both tests.
9453ac_preproc_ok=:
9454break
9455fi
9456rm -f conftest.err conftest.i conftest.$ac_ext
9457
9458done
9459# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9460rm -f conftest.i conftest.err conftest.$ac_ext
9461if $ac_preproc_ok; then :
9462  break
9463fi
9464
9465    done
9466    ac_cv_prog_CXXCPP=$CXXCPP
9467
9468fi
9469  CXXCPP=$ac_cv_prog_CXXCPP
9470else
9471  ac_cv_prog_CXXCPP=$CXXCPP
9472fi
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9474$as_echo "$CXXCPP" >&6; }
9475ac_preproc_ok=false
9476for ac_cxx_preproc_warn_flag in '' yes
9477do
9478  # Use a header file that comes with gcc, so configuring glibc
9479  # with a fresh cross-compiler works.
9480  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481  # <limits.h> exists even on freestanding compilers.
9482  # On the NeXT, cc -E runs the code through the compiler's parser,
9483  # not just through cpp. "Syntax error" is here to catch this case.
9484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485/* end confdefs.h.  */
9486#ifdef __STDC__
9487# include <limits.h>
9488#else
9489# include <assert.h>
9490#endif
9491		     Syntax error
9492_ACEOF
9493if ac_fn_cxx_try_cpp "$LINENO"; then :
9494
9495else
9496  # Broken: fails on valid input.
9497continue
9498fi
9499rm -f conftest.err conftest.i conftest.$ac_ext
9500
9501  # OK, works on sane cases.  Now check whether nonexistent headers
9502  # can be detected and how.
9503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h.  */
9505#include <ac_nonexistent.h>
9506_ACEOF
9507if ac_fn_cxx_try_cpp "$LINENO"; then :
9508  # Broken: success on invalid input.
9509continue
9510else
9511  # Passes both tests.
9512ac_preproc_ok=:
9513break
9514fi
9515rm -f conftest.err conftest.i conftest.$ac_ext
9516
9517done
9518# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9519rm -f conftest.i conftest.err conftest.$ac_ext
9520if $ac_preproc_ok; then :
9521
9522else
9523  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9526See \`config.log' for more details" >&5
9527$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9528See \`config.log' for more details" >&2;}; }
9529fi
9530
9531ac_ext=cpp
9532ac_cpp='$CXXCPP $CPPFLAGS'
9533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9536
9537
9538for ac_header in unordered_map
9539do :
9540  ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9541if test "x$ac_cv_header_unordered_map" = xyes; then :
9542  cat >>confdefs.h <<_ACEOF
9543#define HAVE_UNORDERED_MAP 1
9544_ACEOF
9545
9546fi
9547done
9548
9549for ac_header in tr1/unordered_map
9550do :
9551  ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9552if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9553  cat >>confdefs.h <<_ACEOF
9554#define HAVE_TR1_UNORDERED_MAP 1
9555_ACEOF
9556
9557fi
9558done
9559
9560for ac_header in ext/hash_map
9561do :
9562  ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9563if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9564  cat >>confdefs.h <<_ACEOF
9565#define HAVE_EXT_HASH_MAP 1
9566_ACEOF
9567
9568fi
9569done
9570
9571
9572# --------
9573# Dependency checking.
9574# --------
9575
9576rm -rf .tst 2>/dev/null
9577mkdir .tst 2>/dev/null
9578if test -d .tst; then
9579  am__leading_dot=.
9580else
9581  am__leading_dot=_
9582fi
9583rmdir .tst 2>/dev/null
9584
9585DEPDIR="${am__leading_dot}deps"
9586
9587ac_config_commands="$ac_config_commands depdir"
9588
9589
9590ac_config_commands="$ac_config_commands gccdepdir"
9591
9592
9593depcc="$CXX"  am_compiler_list=
9594
9595am_depcomp=$ac_aux_dir/depcomp
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9597$as_echo_n "checking dependency style of $depcc... " >&6; }
9598if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9599  $as_echo_n "(cached) " >&6
9600else
9601  if test -f "$am_depcomp"; then
9602  # We make a subdir and do the tests there.  Otherwise we can end up
9603  # making bogus files that we don't know about and never remove.  For
9604  # instance it was reported that on HP-UX the gcc test will end up
9605  # making a dummy file named `D' -- because `-MD' means `put the output
9606  # in D'.
9607  mkdir conftest.dir
9608  # Copy depcomp to subdir because otherwise we won't find it if we're
9609  # using a relative directory.
9610  cp "$am_depcomp" conftest.dir
9611  cd conftest.dir
9612  # We will build objects and dependencies in a subdirectory because
9613  # it helps to detect inapplicable dependency modes.  For instance
9614  # both Tru64's cc and ICC support -MD to output dependencies as a
9615  # side effect of compilation, but ICC will put the dependencies in
9616  # the current directory while Tru64 will put them in the object
9617  # directory.
9618  mkdir sub
9619
9620  am_cv_CXX_dependencies_compiler_type=none
9621  if test "$am_compiler_list" = ""; then
9622     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9623  fi
9624  for depmode in $am_compiler_list; do
9625    if test $depmode = none; then break; fi
9626
9627    $as_echo "$as_me:$LINENO: trying $depmode" >&5
9628    # Setup a source with many dependencies, because some compilers
9629    # like to wrap large dependency lists on column 80 (with \), and
9630    # we should not choose a depcomp mode which is confused by this.
9631    #
9632    # We need to recreate these files for each test, as the compiler may
9633    # overwrite some of them when testing with obscure command lines.
9634    # This happens at least with the AIX C compiler.
9635    : > sub/conftest.c
9636    for i in 1 2 3 4 5 6; do
9637      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9638      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9639      # Solaris 8's {/usr,}/bin/sh.
9640      touch sub/conftst$i.h
9641    done
9642    echo "include sub/conftest.Po" > confmf
9643
9644    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9645    # mode.  It turns out that the SunPro C++ compiler does not properly
9646    # handle `-M -o', and we need to detect this.
9647    depcmd="depmode=$depmode \
9648       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9649       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9650       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9651    echo "| $depcmd" | sed -e 's/  */ /g' >&5
9652    if env $depcmd > conftest.err 2>&1 &&
9653       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9654       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9655       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9656      # icc doesn't choke on unknown options, it will just issue warnings
9657      # or remarks (even with -Werror).  So we grep stderr for any message
9658      # that says an option was ignored or not supported.
9659      # When given -MP, icc 7.0 and 7.1 complain thusly:
9660      #   icc: Command line warning: ignoring option '-M'; no argument required
9661      # The diagnosis changed in icc 8.0:
9662      #   icc: Command line remark: option '-MP' not supported
9663      if (grep 'ignoring option' conftest.err ||
9664          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9665        am_cv_CXX_dependencies_compiler_type=$depmode
9666	$as_echo "$as_me:$LINENO: success" >&5
9667        break
9668      fi
9669    fi
9670    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9671    sed -e 's/^/| /' < conftest.err >&5
9672  done
9673
9674  cd ..
9675  rm -rf conftest.dir
9676else
9677  am_cv_CXX_dependencies_compiler_type=none
9678fi
9679
9680fi
9681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9682$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9683if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9684then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9685else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9686
9687fi
9688
9689
9690# --------
9691# UNSORTED
9692# --------
9693
9694
9695# These libraries may be used by collect2.
9696# We may need a special search path to get them linked.
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9698$as_echo_n "checking for collect2 libraries... " >&6; }
9699if ${gcc_cv_collect2_libs+:} false; then :
9700  $as_echo_n "(cached) " >&6
9701else
9702  save_LIBS="$LIBS"
9703for libs in '' -lld -lmld \
9704		'-L/usr/lib/cmplrs/cc2.11 -lmld' \
9705		'-L/usr/lib/cmplrs/cc3.11 -lmld'
9706do
9707	LIBS="$libs"
9708	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709/* end confdefs.h.  */
9710
9711/* Override any GCC internal prototype to avoid an error.
9712   Use char because int might match the return type of a GCC
9713   builtin and then its argument prototype would still apply.  */
9714#ifdef __cplusplus
9715extern "C"
9716#endif
9717char ldopen ();
9718int
9719main ()
9720{
9721return ldopen ();
9722  ;
9723  return 0;
9724}
9725_ACEOF
9726if ac_fn_cxx_try_link "$LINENO"; then :
9727  gcc_cv_collect2_libs="$libs"; break
9728fi
9729rm -f core conftest.err conftest.$ac_objext \
9730    conftest$ac_exeext conftest.$ac_ext
9731done
9732LIBS="$save_LIBS"
9733test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9734fi
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9736$as_echo "$gcc_cv_collect2_libs" >&6; }
9737case $gcc_cv_collect2_libs in
9738	"none required")	;;
9739	*)	COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9740esac
9741
9742
9743# When building Ada code on Alpha, we need exc_resume which is usually in
9744# -lexc.  So test for it.
9745save_LIBS="$LIBS"
9746LIBS=
9747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9748$as_echo_n "checking for library containing exc_resume... " >&6; }
9749if ${ac_cv_search_exc_resume+:} false; then :
9750  $as_echo_n "(cached) " >&6
9751else
9752  ac_func_search_save_LIBS=$LIBS
9753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754/* end confdefs.h.  */
9755
9756/* Override any GCC internal prototype to avoid an error.
9757   Use char because int might match the return type of a GCC
9758   builtin and then its argument prototype would still apply.  */
9759#ifdef __cplusplus
9760extern "C"
9761#endif
9762char exc_resume ();
9763int
9764main ()
9765{
9766return exc_resume ();
9767  ;
9768  return 0;
9769}
9770_ACEOF
9771for ac_lib in '' exc; do
9772  if test -z "$ac_lib"; then
9773    ac_res="none required"
9774  else
9775    ac_res=-l$ac_lib
9776    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9777  fi
9778  if ac_fn_cxx_try_link "$LINENO"; then :
9779  ac_cv_search_exc_resume=$ac_res
9780fi
9781rm -f core conftest.err conftest.$ac_objext \
9782    conftest$ac_exeext
9783  if ${ac_cv_search_exc_resume+:} false; then :
9784  break
9785fi
9786done
9787if ${ac_cv_search_exc_resume+:} false; then :
9788
9789else
9790  ac_cv_search_exc_resume=no
9791fi
9792rm conftest.$ac_ext
9793LIBS=$ac_func_search_save_LIBS
9794fi
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9796$as_echo "$ac_cv_search_exc_resume" >&6; }
9797ac_res=$ac_cv_search_exc_resume
9798if test "$ac_res" != no; then :
9799  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9800
9801fi
9802
9803GNAT_LIBEXC="$LIBS"
9804LIBS="$save_LIBS"
9805
9806
9807# To support -mcpu=native on Solaris/SPARC, we need libkstat.
9808save_LIBS="$LIBS"
9809LIBS=
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9811$as_echo_n "checking for library containing kstat_open... " >&6; }
9812if ${ac_cv_search_kstat_open+:} false; then :
9813  $as_echo_n "(cached) " >&6
9814else
9815  ac_func_search_save_LIBS=$LIBS
9816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817/* end confdefs.h.  */
9818
9819/* Override any GCC internal prototype to avoid an error.
9820   Use char because int might match the return type of a GCC
9821   builtin and then its argument prototype would still apply.  */
9822#ifdef __cplusplus
9823extern "C"
9824#endif
9825char kstat_open ();
9826int
9827main ()
9828{
9829return kstat_open ();
9830  ;
9831  return 0;
9832}
9833_ACEOF
9834for ac_lib in '' kstat; do
9835  if test -z "$ac_lib"; then
9836    ac_res="none required"
9837  else
9838    ac_res=-l$ac_lib
9839    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9840  fi
9841  if ac_fn_cxx_try_link "$LINENO"; then :
9842  ac_cv_search_kstat_open=$ac_res
9843fi
9844rm -f core conftest.err conftest.$ac_objext \
9845    conftest$ac_exeext
9846  if ${ac_cv_search_kstat_open+:} false; then :
9847  break
9848fi
9849done
9850if ${ac_cv_search_kstat_open+:} false; then :
9851
9852else
9853  ac_cv_search_kstat_open=no
9854fi
9855rm conftest.$ac_ext
9856LIBS=$ac_func_search_save_LIBS
9857fi
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9859$as_echo "$ac_cv_search_kstat_open" >&6; }
9860ac_res=$ac_cv_search_kstat_open
9861if test "$ac_res" != no; then :
9862  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9863
9864fi
9865
9866EXTRA_GCC_LIBS="$LIBS"
9867LIBS="$save_LIBS"
9868
9869
9870# Solaris needs libsocket and libnsl for socket functions before 11.4.
9871# C++ needs those for libcody.
9872save_LIBS="$LIBS"
9873LIBS=
9874
9875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9876$as_echo_n "checking for library containing gethostbyname... " >&6; }
9877if ${ac_cv_search_gethostbyname+:} false; then :
9878  $as_echo_n "(cached) " >&6
9879else
9880  ac_func_search_save_LIBS=$LIBS
9881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882/* end confdefs.h.  */
9883
9884/* Override any GCC internal prototype to avoid an error.
9885   Use char because int might match the return type of a GCC
9886   builtin and then its argument prototype would still apply.  */
9887#ifdef __cplusplus
9888extern "C"
9889#endif
9890char gethostbyname ();
9891int
9892main ()
9893{
9894return gethostbyname ();
9895  ;
9896  return 0;
9897}
9898_ACEOF
9899for ac_lib in '' nsl; do
9900  if test -z "$ac_lib"; then
9901    ac_res="none required"
9902  else
9903    ac_res=-l$ac_lib
9904    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9905  fi
9906  if ac_fn_cxx_try_link "$LINENO"; then :
9907  ac_cv_search_gethostbyname=$ac_res
9908fi
9909rm -f core conftest.err conftest.$ac_objext \
9910    conftest$ac_exeext
9911  if ${ac_cv_search_gethostbyname+:} false; then :
9912  break
9913fi
9914done
9915if ${ac_cv_search_gethostbyname+:} false; then :
9916
9917else
9918  ac_cv_search_gethostbyname=no
9919fi
9920rm conftest.$ac_ext
9921LIBS=$ac_func_search_save_LIBS
9922fi
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9924$as_echo "$ac_cv_search_gethostbyname" >&6; }
9925ac_res=$ac_cv_search_gethostbyname
9926if test "$ac_res" != no; then :
9927  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9928
9929fi
9930
9931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
9932$as_echo_n "checking for library containing socket... " >&6; }
9933if ${ac_cv_search_socket+:} false; then :
9934  $as_echo_n "(cached) " >&6
9935else
9936  ac_func_search_save_LIBS=$LIBS
9937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938/* end confdefs.h.  */
9939
9940/* Override any GCC internal prototype to avoid an error.
9941   Use char because int might match the return type of a GCC
9942   builtin and then its argument prototype would still apply.  */
9943#ifdef __cplusplus
9944extern "C"
9945#endif
9946char socket ();
9947int
9948main ()
9949{
9950return socket ();
9951  ;
9952  return 0;
9953}
9954_ACEOF
9955for ac_lib in '' socket; do
9956  if test -z "$ac_lib"; then
9957    ac_res="none required"
9958  else
9959    ac_res=-l$ac_lib
9960    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9961  fi
9962  if ac_fn_cxx_try_link "$LINENO"; then :
9963  ac_cv_search_socket=$ac_res
9964fi
9965rm -f core conftest.err conftest.$ac_objext \
9966    conftest$ac_exeext
9967  if ${ac_cv_search_socket+:} false; then :
9968  break
9969fi
9970done
9971if ${ac_cv_search_socket+:} false; then :
9972
9973else
9974  ac_cv_search_socket=no
9975fi
9976rm conftest.$ac_ext
9977LIBS=$ac_func_search_save_LIBS
9978fi
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
9980$as_echo "$ac_cv_search_socket" >&6; }
9981ac_res=$ac_cv_search_socket
9982if test "$ac_res" != no; then :
9983  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9984
9985else
9986
9987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9988$as_echo_n "checking for socket in -lsocket... " >&6; }
9989if ${ac_cv_lib_socket_socket+:} false; then :
9990  $as_echo_n "(cached) " >&6
9991else
9992  ac_check_lib_save_LIBS=$LIBS
9993LIBS="-lsocket -lnsl $LIBS"
9994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995/* end confdefs.h.  */
9996
9997/* Override any GCC internal prototype to avoid an error.
9998   Use char because int might match the return type of a GCC
9999   builtin and then its argument prototype would still apply.  */
10000#ifdef __cplusplus
10001extern "C"
10002#endif
10003char socket ();
10004int
10005main ()
10006{
10007return socket ();
10008  ;
10009  return 0;
10010}
10011_ACEOF
10012if ac_fn_cxx_try_link "$LINENO"; then :
10013  ac_cv_lib_socket_socket=yes
10014else
10015  ac_cv_lib_socket_socket=no
10016fi
10017rm -f core conftest.err conftest.$ac_objext \
10018    conftest$ac_exeext conftest.$ac_ext
10019LIBS=$ac_check_lib_save_LIBS
10020fi
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10022$as_echo "$ac_cv_lib_socket_socket" >&6; }
10023if test "x$ac_cv_lib_socket_socket" = xyes; then :
10024  LIBS="-lsocket -lnsl $LIBS"
10025fi
10026
10027fi
10028
10029
10030NETLIBS="$LIBS"
10031LIBS="$save_LIBS"
10032
10033
10034# Some systems put ldexp and frexp in libm instead of libc; assume
10035# they're both in the same place.  jcf-dump needs them.
10036save_LIBS="$LIBS"
10037LIBS=
10038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10039$as_echo_n "checking for library containing ldexp... " >&6; }
10040if ${ac_cv_search_ldexp+:} false; then :
10041  $as_echo_n "(cached) " >&6
10042else
10043  ac_func_search_save_LIBS=$LIBS
10044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045/* end confdefs.h.  */
10046
10047/* Override any GCC internal prototype to avoid an error.
10048   Use char because int might match the return type of a GCC
10049   builtin and then its argument prototype would still apply.  */
10050#ifdef __cplusplus
10051extern "C"
10052#endif
10053char ldexp ();
10054int
10055main ()
10056{
10057return ldexp ();
10058  ;
10059  return 0;
10060}
10061_ACEOF
10062for ac_lib in '' m; do
10063  if test -z "$ac_lib"; then
10064    ac_res="none required"
10065  else
10066    ac_res=-l$ac_lib
10067    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10068  fi
10069  if ac_fn_cxx_try_link "$LINENO"; then :
10070  ac_cv_search_ldexp=$ac_res
10071fi
10072rm -f core conftest.err conftest.$ac_objext \
10073    conftest$ac_exeext
10074  if ${ac_cv_search_ldexp+:} false; then :
10075  break
10076fi
10077done
10078if ${ac_cv_search_ldexp+:} false; then :
10079
10080else
10081  ac_cv_search_ldexp=no
10082fi
10083rm conftest.$ac_ext
10084LIBS=$ac_func_search_save_LIBS
10085fi
10086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10087$as_echo "$ac_cv_search_ldexp" >&6; }
10088ac_res=$ac_cv_search_ldexp
10089if test "$ac_res" != no; then :
10090  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10091
10092fi
10093
10094LDEXP_LIB="$LIBS"
10095LIBS="$save_LIBS"
10096
10097
10098# Some systems need dlopen
10099save_LIBS="$LIBS"
10100LIBS=
10101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10102$as_echo_n "checking for library containing dlopen... " >&6; }
10103if ${ac_cv_search_dlopen+:} false; then :
10104  $as_echo_n "(cached) " >&6
10105else
10106  ac_func_search_save_LIBS=$LIBS
10107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108/* end confdefs.h.  */
10109
10110/* Override any GCC internal prototype to avoid an error.
10111   Use char because int might match the return type of a GCC
10112   builtin and then its argument prototype would still apply.  */
10113#ifdef __cplusplus
10114extern "C"
10115#endif
10116char dlopen ();
10117int
10118main ()
10119{
10120return dlopen ();
10121  ;
10122  return 0;
10123}
10124_ACEOF
10125for ac_lib in '' dl; do
10126  if test -z "$ac_lib"; then
10127    ac_res="none required"
10128  else
10129    ac_res=-l$ac_lib
10130    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10131  fi
10132  if ac_fn_cxx_try_link "$LINENO"; then :
10133  ac_cv_search_dlopen=$ac_res
10134fi
10135rm -f core conftest.err conftest.$ac_objext \
10136    conftest$ac_exeext
10137  if ${ac_cv_search_dlopen+:} false; then :
10138  break
10139fi
10140done
10141if ${ac_cv_search_dlopen+:} false; then :
10142
10143else
10144  ac_cv_search_dlopen=no
10145fi
10146rm conftest.$ac_ext
10147LIBS=$ac_func_search_save_LIBS
10148fi
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10150$as_echo "$ac_cv_search_dlopen" >&6; }
10151ac_res=$ac_cv_search_dlopen
10152if test "$ac_res" != no; then :
10153  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10154
10155fi
10156
10157DL_LIB="$LIBS"
10158LIBS="$save_LIBS"
10159
10160
10161# Use <inttypes.h> only if it exists,
10162# doesn't clash with <sys/types.h>, declares intmax_t and defines
10163# PRId64
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10165$as_echo_n "checking for inttypes.h... " >&6; }
10166if ${gcc_cv_header_inttypes_h+:} false; then :
10167  $as_echo_n "(cached) " >&6
10168else
10169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170/* end confdefs.h.  */
10171#define __STDC_FORMAT_MACROS
10172#include <sys/types.h>
10173#include <inttypes.h>
10174int
10175main ()
10176{
10177intmax_t i = -1;
10178#ifndef PRId64
10179choke me
10180#endif
10181  ;
10182  return 0;
10183}
10184_ACEOF
10185if ac_fn_cxx_try_compile "$LINENO"; then :
10186  gcc_cv_header_inttypes_h=yes
10187else
10188  gcc_cv_header_inttypes_h=no
10189fi
10190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10191fi
10192
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10194$as_echo "$gcc_cv_header_inttypes_h" >&6; }
10195if test $gcc_cv_header_inttypes_h = yes; then
10196
10197$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10198
10199fi
10200
10201# Look for the ZSTD package.
10202ZSTD_INCLUDE=
10203ZSTD_LIB=
10204
10205
10206ZSTD_CPPFLAGS=
10207ZSTD_LDFLAGS=
10208
10209
10210
10211# Check whether --with-zstd was given.
10212if test "${with_zstd+set}" = set; then :
10213  withval=$with_zstd;
10214fi
10215
10216
10217# Check whether --with-zstd-include was given.
10218if test "${with_zstd_include+set}" = set; then :
10219  withval=$with_zstd_include;
10220fi
10221
10222
10223# Check whether --with-zstd-lib was given.
10224if test "${with_zstd_lib+set}" = set; then :
10225  withval=$with_zstd_lib;
10226fi
10227
10228case "x$with_zstd" in
10229  x) ;;
10230  xno)
10231    ZSTD_INCLUDE=
10232    ZSTD_LIB=
10233    ;;
10234  *) ZSTD_INCLUDE=$with_zstd/include
10235     ZSTD_LIB=$with_zstd/lib
10236     ;;
10237esac
10238
10239if test "x$with_zstd" != xno; then
10240if test "x$with_zstd_include" != x; then
10241  ZSTD_INCLUDE=$with_zstd_include
10242fi
10243if test "x$with_zstd_lib" != x; then
10244  ZSTD_LIB=$with_zstd_lib
10245fi
10246if test "x$ZSTD_INCLUDE" != x \
10247   && test "x$ZSTD_INCLUDE" != xno; then
10248  ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10249fi
10250if test "x$ZSTD_LIB" != x \
10251   && test "x$ZSTD_LIB" != xno; then
10252  ZSTD_LDFLAGS=-L$ZSTD_LIB
10253fi
10254
10255CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10256LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10257
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10259$as_echo_n "checking for zstd.h... " >&6; }
10260if ${gcc_cv_header_zstd_h+:} false; then :
10261  $as_echo_n "(cached) " >&6
10262else
10263  # We require version 1.3.0 or later.  This is the first version that has
10264# ZSTD_getFrameContentSize.
10265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266/* end confdefs.h.  */
10267#include <zstd.h>
10268#if ZSTD_VERSION_NUMBER < 10300
10269#error "need zstd 1.3.0 or better"
10270#endif
10271int
10272main ()
10273{
10274
10275  ;
10276  return 0;
10277}
10278_ACEOF
10279if ac_fn_cxx_try_compile "$LINENO"; then :
10280  gcc_cv_header_zstd_h=yes
10281else
10282  gcc_cv_header_zstd_h=no
10283fi
10284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10285fi
10286
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10288$as_echo "$gcc_cv_header_zstd_h" >&6; }
10289if test $gcc_cv_header_zstd_h = yes; then
10290
10291$as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10292
10293elif test "x$with_zstd" != x; then
10294    as_fn_error $? "Unable to find zstd.h.  See config.log for details." "$LINENO" 5
10295fi
10296
10297# LTO can use zstd compression algorithm
10298save_LIBS="$LIBS"
10299LIBS=
10300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10301$as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10302if ${ac_cv_search_ZSTD_compress+:} false; then :
10303  $as_echo_n "(cached) " >&6
10304else
10305  ac_func_search_save_LIBS=$LIBS
10306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307/* end confdefs.h.  */
10308
10309/* Override any GCC internal prototype to avoid an error.
10310   Use char because int might match the return type of a GCC
10311   builtin and then its argument prototype would still apply.  */
10312#ifdef __cplusplus
10313extern "C"
10314#endif
10315char ZSTD_compress ();
10316int
10317main ()
10318{
10319return ZSTD_compress ();
10320  ;
10321  return 0;
10322}
10323_ACEOF
10324for ac_lib in '' zstd; do
10325  if test -z "$ac_lib"; then
10326    ac_res="none required"
10327  else
10328    ac_res=-l$ac_lib
10329    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10330  fi
10331  if ac_fn_cxx_try_link "$LINENO"; then :
10332  ac_cv_search_ZSTD_compress=$ac_res
10333fi
10334rm -f core conftest.err conftest.$ac_objext \
10335    conftest$ac_exeext
10336  if ${ac_cv_search_ZSTD_compress+:} false; then :
10337  break
10338fi
10339done
10340if ${ac_cv_search_ZSTD_compress+:} false; then :
10341
10342else
10343  ac_cv_search_ZSTD_compress=no
10344fi
10345rm conftest.$ac_ext
10346LIBS=$ac_func_search_save_LIBS
10347fi
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10349$as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10350ac_res=$ac_cv_search_ZSTD_compress
10351if test "$ac_res" != no; then :
10352  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10353
10354fi
10355
10356ZSTD_LIB="$LIBS"
10357LIBS="$save_LIBS"
10358
10359fi
10360
10361
10362
10363for ac_func in times clock kill getrlimit setrlimit atoq \
10364	popen sysconf strsignal getrusage nl_langinfo \
10365	gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10366	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 mallinfo mallinfo2 fstatat
10367do :
10368  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10369ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10370if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10371  cat >>confdefs.h <<_ACEOF
10372#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10373_ACEOF
10374
10375fi
10376done
10377
10378
10379if test x$ac_cv_func_mbstowcs = xyes; then
10380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10381$as_echo_n "checking whether mbstowcs works... " >&6; }
10382if ${gcc_cv_func_mbstowcs_works+:} false; then :
10383  $as_echo_n "(cached) " >&6
10384else
10385      if test "$cross_compiling" = yes; then :
10386  gcc_cv_func_mbstowcs_works=yes
10387else
10388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389/* end confdefs.h.  */
10390#include <stdlib.h>
10391int main()
10392{
10393  mbstowcs(0, "", 0);
10394  return 0;
10395}
10396_ACEOF
10397if ac_fn_cxx_try_run "$LINENO"; then :
10398  gcc_cv_func_mbstowcs_works=yes
10399else
10400  gcc_cv_func_mbstowcs_works=no
10401fi
10402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10403  conftest.$ac_objext conftest.beam conftest.$ac_ext
10404fi
10405
10406fi
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10408$as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10409  if test x$gcc_cv_func_mbstowcs_works = xyes; then
10410
10411$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10412
10413  fi
10414fi
10415
10416ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10417if test "x$ac_cv_type_ssize_t" = xyes; then :
10418
10419else
10420
10421cat >>confdefs.h <<_ACEOF
10422#define ssize_t int
10423_ACEOF
10424
10425fi
10426
10427ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10428if test "x$ac_cv_type_caddr_t" = xyes; then :
10429
10430else
10431
10432cat >>confdefs.h <<_ACEOF
10433#define caddr_t char *
10434_ACEOF
10435
10436fi
10437
10438ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10439"
10440if test "x$ac_cv_type_sighander_t" = xyes; then :
10441
10442$as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10443
10444fi
10445
10446
10447
10448ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10449if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10450  gcc_header_sys_mman_h=yes
10451else
10452  gcc_header_sys_mman_h=no
10453fi
10454
10455ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10456if test "x$ac_cv_func_mmap" = xyes; then :
10457  gcc_func_mmap=yes
10458else
10459  gcc_func_mmap=no
10460fi
10461
10462if test "$gcc_header_sys_mman_h" != yes \
10463 || test "$gcc_func_mmap" != yes; then
10464   gcc_cv_func_mmap_file=no
10465   gcc_cv_func_mmap_dev_zero=no
10466   gcc_cv_func_mmap_anon=no
10467else
10468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10469$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10470if ${gcc_cv_func_mmap_file+:} false; then :
10471  $as_echo_n "(cached) " >&6
10472else
10473  # Add a system to this blacklist if
10474   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10475   # memory area containing the same data that you'd get if you applied
10476   # read() to the same fd.  The only system known to have a problem here
10477   # is VMS, where text files have record structure.
10478   case "$host_os" in
10479     *vms* | ultrix*)
10480        gcc_cv_func_mmap_file=no ;;
10481     *)
10482        gcc_cv_func_mmap_file=yes;;
10483   esac
10484fi
10485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10486$as_echo "$gcc_cv_func_mmap_file" >&6; }
10487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10488$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10489if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10490  $as_echo_n "(cached) " >&6
10491else
10492  # Add a system to this blacklist if it has mmap() but /dev/zero
10493   # does not exist, or if mmapping /dev/zero does not give anonymous
10494   # zeroed pages with both the following properties:
10495   # 1. If you map N consecutive pages in with one call, and then
10496   #    unmap any subset of those pages, the pages that were not
10497   #    explicitly unmapped remain accessible.
10498   # 2. If you map two adjacent blocks of memory and then unmap them
10499   #    both at once, they must both go away.
10500   # Systems known to be in this category are Windows (all variants),
10501   # VMS, and Darwin.
10502   case "$host_os" in
10503     *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10504        gcc_cv_func_mmap_dev_zero=no ;;
10505     *)
10506        gcc_cv_func_mmap_dev_zero=yes;;
10507   esac
10508fi
10509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10510$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10511
10512   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10514$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10515if ${gcc_cv_decl_map_anon+:} false; then :
10516  $as_echo_n "(cached) " >&6
10517else
10518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519/* end confdefs.h.  */
10520#include <sys/types.h>
10521#include <sys/mman.h>
10522#include <unistd.h>
10523
10524#ifndef MAP_ANONYMOUS
10525#define MAP_ANONYMOUS MAP_ANON
10526#endif
10527
10528int
10529main ()
10530{
10531int n = MAP_ANONYMOUS;
10532  ;
10533  return 0;
10534}
10535_ACEOF
10536if ac_fn_cxx_try_compile "$LINENO"; then :
10537  gcc_cv_decl_map_anon=yes
10538else
10539  gcc_cv_decl_map_anon=no
10540fi
10541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10542fi
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10544$as_echo "$gcc_cv_decl_map_anon" >&6; }
10545
10546   if test $gcc_cv_decl_map_anon = no; then
10547     gcc_cv_func_mmap_anon=no
10548   else
10549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10550$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10551if ${gcc_cv_func_mmap_anon+:} false; then :
10552  $as_echo_n "(cached) " >&6
10553else
10554  # Add a system to this blacklist if it has mmap() and MAP_ANON or
10555   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10556   # doesn't give anonymous zeroed pages with the same properties listed
10557   # above for use of /dev/zero.
10558   # Systems known to be in this category are Windows, VMS, and SCO Unix.
10559   case "$host_os" in
10560     *vms* | cygwin* | pe | mingw* | sco* | udk* )
10561        gcc_cv_func_mmap_anon=no ;;
10562     *)
10563        gcc_cv_func_mmap_anon=yes;;
10564   esac
10565fi
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10567$as_echo "$gcc_cv_func_mmap_anon" >&6; }
10568   fi
10569fi
10570
10571if test $gcc_cv_func_mmap_file = yes; then
10572
10573$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10574
10575fi
10576if test $gcc_cv_func_mmap_dev_zero = yes; then
10577
10578$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10579
10580fi
10581if test $gcc_cv_func_mmap_anon = yes; then
10582
10583$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10584
10585fi
10586
10587
10588case "${host}" in
10589*-*-*vms*)
10590  # Under VMS, vfork works very differently than on Unix. The standard test
10591  # won't work, and it isn't easily adaptable. It makes more sense to
10592  # just force it.
10593  ac_cv_func_vfork_works=yes
10594  ;;
10595esac
10596ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10597if test "x$ac_cv_type_pid_t" = xyes; then :
10598
10599else
10600
10601cat >>confdefs.h <<_ACEOF
10602#define pid_t int
10603_ACEOF
10604
10605fi
10606
10607for ac_header in vfork.h
10608do :
10609  ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10610if test "x$ac_cv_header_vfork_h" = xyes; then :
10611  cat >>confdefs.h <<_ACEOF
10612#define HAVE_VFORK_H 1
10613_ACEOF
10614
10615fi
10616done
10617
10618for ac_func in fork vfork
10619do :
10620  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10621ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10622if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10623  cat >>confdefs.h <<_ACEOF
10624#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10625_ACEOF
10626
10627fi
10628done
10629
10630if test "x$ac_cv_func_fork" = xyes; then
10631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10632$as_echo_n "checking for working fork... " >&6; }
10633if ${ac_cv_func_fork_works+:} false; then :
10634  $as_echo_n "(cached) " >&6
10635else
10636  if test "$cross_compiling" = yes; then :
10637  ac_cv_func_fork_works=cross
10638else
10639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640/* end confdefs.h.  */
10641$ac_includes_default
10642int
10643main ()
10644{
10645
10646	  /* By Ruediger Kuhlmann. */
10647	  return fork () < 0;
10648
10649  ;
10650  return 0;
10651}
10652_ACEOF
10653if ac_fn_cxx_try_run "$LINENO"; then :
10654  ac_cv_func_fork_works=yes
10655else
10656  ac_cv_func_fork_works=no
10657fi
10658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10659  conftest.$ac_objext conftest.beam conftest.$ac_ext
10660fi
10661
10662fi
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10664$as_echo "$ac_cv_func_fork_works" >&6; }
10665
10666else
10667  ac_cv_func_fork_works=$ac_cv_func_fork
10668fi
10669if test "x$ac_cv_func_fork_works" = xcross; then
10670  case $host in
10671    *-*-amigaos* | *-*-msdosdjgpp*)
10672      # Override, as these systems have only a dummy fork() stub
10673      ac_cv_func_fork_works=no
10674      ;;
10675    *)
10676      ac_cv_func_fork_works=yes
10677      ;;
10678  esac
10679  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10680$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10681fi
10682ac_cv_func_vfork_works=$ac_cv_func_vfork
10683if test "x$ac_cv_func_vfork" = xyes; then
10684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10685$as_echo_n "checking for working vfork... " >&6; }
10686if ${ac_cv_func_vfork_works+:} false; then :
10687  $as_echo_n "(cached) " >&6
10688else
10689  if test "$cross_compiling" = yes; then :
10690  ac_cv_func_vfork_works=cross
10691else
10692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693/* end confdefs.h.  */
10694/* Thanks to Paul Eggert for this test.  */
10695$ac_includes_default
10696#include <sys/wait.h>
10697#ifdef HAVE_VFORK_H
10698# include <vfork.h>
10699#endif
10700/* On some sparc systems, changes by the child to local and incoming
10701   argument registers are propagated back to the parent.  The compiler
10702   is told about this with #include <vfork.h>, but some compilers
10703   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10704   static variable whose address is put into a register that is
10705   clobbered by the vfork.  */
10706static void
10707#ifdef __cplusplus
10708sparc_address_test (int arg)
10709# else
10710sparc_address_test (arg) int arg;
10711#endif
10712{
10713  static pid_t child;
10714  if (!child) {
10715    child = vfork ();
10716    if (child < 0) {
10717      perror ("vfork");
10718      _exit(2);
10719    }
10720    if (!child) {
10721      arg = getpid();
10722      write(-1, "", 0);
10723      _exit (arg);
10724    }
10725  }
10726}
10727
10728int
10729main ()
10730{
10731  pid_t parent = getpid ();
10732  pid_t child;
10733
10734  sparc_address_test (0);
10735
10736  child = vfork ();
10737
10738  if (child == 0) {
10739    /* Here is another test for sparc vfork register problems.  This
10740       test uses lots of local variables, at least as many local
10741       variables as main has allocated so far including compiler
10742       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10743       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10744       reuse the register of parent for one of the local variables,
10745       since it will think that parent can't possibly be used any more
10746       in this routine.  Assigning to the local variable will thus
10747       munge parent in the parent process.  */
10748    pid_t
10749      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10750      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10751    /* Convince the compiler that p..p7 are live; otherwise, it might
10752       use the same hardware register for all 8 local variables.  */
10753    if (p != p1 || p != p2 || p != p3 || p != p4
10754	|| p != p5 || p != p6 || p != p7)
10755      _exit(1);
10756
10757    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10758       from child file descriptors.  If the child closes a descriptor
10759       before it execs or exits, this munges the parent's descriptor
10760       as well.  Test for this by closing stdout in the child.  */
10761    _exit(close(fileno(stdout)) != 0);
10762  } else {
10763    int status;
10764    struct stat st;
10765
10766    while (wait(&status) != child)
10767      ;
10768    return (
10769	 /* Was there some problem with vforking?  */
10770	 child < 0
10771
10772	 /* Did the child fail?  (This shouldn't happen.)  */
10773	 || status
10774
10775	 /* Did the vfork/compiler bug occur?  */
10776	 || parent != getpid()
10777
10778	 /* Did the file descriptor bug occur?  */
10779	 || fstat(fileno(stdout), &st) != 0
10780	 );
10781  }
10782}
10783_ACEOF
10784if ac_fn_cxx_try_run "$LINENO"; then :
10785  ac_cv_func_vfork_works=yes
10786else
10787  ac_cv_func_vfork_works=no
10788fi
10789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10790  conftest.$ac_objext conftest.beam conftest.$ac_ext
10791fi
10792
10793fi
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10795$as_echo "$ac_cv_func_vfork_works" >&6; }
10796
10797fi;
10798if test "x$ac_cv_func_fork_works" = xcross; then
10799  ac_cv_func_vfork_works=$ac_cv_func_vfork
10800  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10801$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10802fi
10803
10804if test "x$ac_cv_func_vfork_works" = xyes; then
10805
10806$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10807
10808else
10809
10810$as_echo "#define vfork fork" >>confdefs.h
10811
10812fi
10813if test "x$ac_cv_func_fork_works" = xyes; then
10814
10815$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10816
10817fi
10818
10819
10820
10821      if test "X$prefix" = "XNONE"; then
10822    acl_final_prefix="$ac_default_prefix"
10823  else
10824    acl_final_prefix="$prefix"
10825  fi
10826  if test "X$exec_prefix" = "XNONE"; then
10827    acl_final_exec_prefix='${prefix}'
10828  else
10829    acl_final_exec_prefix="$exec_prefix"
10830  fi
10831  acl_save_prefix="$prefix"
10832  prefix="$acl_final_prefix"
10833  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10834  prefix="$acl_save_prefix"
10835
10836
10837# Check whether --with-gnu-ld was given.
10838if test "${with_gnu_ld+set}" = set; then :
10839  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10840else
10841  with_gnu_ld=no
10842fi
10843
10844# Prepare PATH_SEPARATOR.
10845# The user is always right.
10846if test "${PATH_SEPARATOR+set}" != set; then
10847  echo "#! /bin/sh" >conf$$.sh
10848  echo  "exit 0"   >>conf$$.sh
10849  chmod +x conf$$.sh
10850  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10851    PATH_SEPARATOR=';'
10852  else
10853    PATH_SEPARATOR=:
10854  fi
10855  rm -f conf$$.sh
10856fi
10857ac_prog=ld
10858if test "$GCC" = yes; then
10859  # Check if gcc -print-prog-name=ld gives a path.
10860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10861$as_echo_n "checking for ld used by GCC... " >&6; }
10862  case $host in
10863  *-*-mingw*)
10864    # gcc leaves a trailing carriage return which upsets mingw
10865    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10866  *)
10867    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10868  esac
10869  case $ac_prog in
10870    # Accept absolute paths.
10871    [\\/]* | [A-Za-z]:[\\/]*)
10872      re_direlt='/[^/][^/]*/\.\./'
10873      # Canonicalize the path of ld
10874      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10875      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10876	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10877      done
10878      test -z "$LD" && LD="$ac_prog"
10879      ;;
10880  "")
10881    # If it fails, then pretend we aren't using GCC.
10882    ac_prog=ld
10883    ;;
10884  *)
10885    # If it is relative, then search for the first ld in PATH.
10886    with_gnu_ld=unknown
10887    ;;
10888  esac
10889elif test "$with_gnu_ld" = yes; then
10890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10891$as_echo_n "checking for GNU ld... " >&6; }
10892else
10893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10894$as_echo_n "checking for non-GNU ld... " >&6; }
10895fi
10896if ${acl_cv_path_LD+:} false; then :
10897  $as_echo_n "(cached) " >&6
10898else
10899  if test -z "$LD"; then
10900  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10901  for ac_dir in $PATH; do
10902    test -z "$ac_dir" && ac_dir=.
10903    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10904      acl_cv_path_LD="$ac_dir/$ac_prog"
10905      # Check to see if the program is GNU ld.  I'd rather use --version,
10906      # but apparently some GNU ld's only accept -v.
10907      # Break only if it was the GNU/non-GNU ld that we prefer.
10908      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10909	test "$with_gnu_ld" != no && break
10910      else
10911	test "$with_gnu_ld" != yes && break
10912      fi
10913    fi
10914  done
10915  IFS="$ac_save_ifs"
10916else
10917  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10918fi
10919fi
10920
10921LD="$acl_cv_path_LD"
10922if test -n "$LD"; then
10923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10924$as_echo "$LD" >&6; }
10925else
10926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927$as_echo "no" >&6; }
10928fi
10929test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10931$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10932if ${acl_cv_prog_gnu_ld+:} false; then :
10933  $as_echo_n "(cached) " >&6
10934else
10935  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10936if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10937  acl_cv_prog_gnu_ld=yes
10938else
10939  acl_cv_prog_gnu_ld=no
10940fi
10941fi
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10943$as_echo "$acl_cv_prog_gnu_ld" >&6; }
10944with_gnu_ld=$acl_cv_prog_gnu_ld
10945
10946
10947
10948                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10949$as_echo_n "checking for shared library run path origin... " >&6; }
10950if ${acl_cv_rpath+:} false; then :
10951  $as_echo_n "(cached) " >&6
10952else
10953
10954    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10955    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10956    . ./conftest.sh
10957    rm -f ./conftest.sh
10958    acl_cv_rpath=done
10959
10960fi
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10962$as_echo "$acl_cv_rpath" >&6; }
10963  wl="$acl_cv_wl"
10964  libext="$acl_cv_libext"
10965  shlibext="$acl_cv_shlibext"
10966  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10967  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10968  hardcode_direct="$acl_cv_hardcode_direct"
10969  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10970    # Check whether --enable-rpath was given.
10971if test "${enable_rpath+set}" = set; then :
10972  enableval=$enable_rpath; :
10973else
10974  enable_rpath=yes
10975fi
10976
10977
10978
10979
10980
10981
10982
10983
10984    use_additional=yes
10985
10986  acl_save_prefix="$prefix"
10987  prefix="$acl_final_prefix"
10988  acl_save_exec_prefix="$exec_prefix"
10989  exec_prefix="$acl_final_exec_prefix"
10990
10991    eval additional_includedir=\"$includedir\"
10992    eval additional_libdir=\"$libdir\"
10993
10994  exec_prefix="$acl_save_exec_prefix"
10995  prefix="$acl_save_prefix"
10996
10997
10998# Check whether --with-libiconv-prefix was given.
10999if test "${with_libiconv_prefix+set}" = set; then :
11000  withval=$with_libiconv_prefix;
11001    if test "X$withval" = "Xno"; then
11002      use_additional=no
11003    else
11004      if test "X$withval" = "X"; then
11005
11006  acl_save_prefix="$prefix"
11007  prefix="$acl_final_prefix"
11008  acl_save_exec_prefix="$exec_prefix"
11009  exec_prefix="$acl_final_exec_prefix"
11010
11011          eval additional_includedir=\"$includedir\"
11012          eval additional_libdir=\"$libdir\"
11013
11014  exec_prefix="$acl_save_exec_prefix"
11015  prefix="$acl_save_prefix"
11016
11017      else
11018        additional_includedir="$withval/include"
11019        additional_libdir="$withval/lib"
11020      fi
11021    fi
11022
11023fi
11024
11025
11026# Check whether --with-libiconv-type was given.
11027if test "${with_libiconv_type+set}" = set; then :
11028  withval=$with_libiconv_type;  with_libiconv_type=$withval
11029else
11030   with_libiconv_type=auto
11031fi
11032
11033  lib_type=`eval echo \$with_libiconv_type`
11034
11035      LIBICONV=
11036  LTLIBICONV=
11037  INCICONV=
11038  rpathdirs=
11039  ltrpathdirs=
11040  names_already_handled=
11041  names_next_round='iconv '
11042  while test -n "$names_next_round"; do
11043    names_this_round="$names_next_round"
11044    names_next_round=
11045    for name in $names_this_round; do
11046      already_handled=
11047      for n in $names_already_handled; do
11048        if test "$n" = "$name"; then
11049          already_handled=yes
11050          break
11051        fi
11052      done
11053      if test -z "$already_handled"; then
11054        names_already_handled="$names_already_handled $name"
11055                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11056        eval value=\"\$HAVE_LIB$uppername\"
11057        if test -n "$value"; then
11058          if test "$value" = yes; then
11059            eval value=\"\$LIB$uppername\"
11060            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11061            eval value=\"\$LTLIB$uppername\"
11062            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11063          else
11064                                    :
11065          fi
11066        else
11067                              found_dir=
11068          found_la=
11069          found_so=
11070          found_a=
11071          if test $use_additional = yes; then
11072            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11073              found_dir="$additional_libdir"
11074              found_so="$additional_libdir/lib$name.$shlibext"
11075              if test -f "$additional_libdir/lib$name.la"; then
11076                found_la="$additional_libdir/lib$name.la"
11077              fi
11078            elif test x$lib_type != xshared; then
11079              if test -f "$additional_libdir/lib$name.$libext"; then
11080                found_dir="$additional_libdir"
11081                found_a="$additional_libdir/lib$name.$libext"
11082                if test -f "$additional_libdir/lib$name.la"; then
11083                  found_la="$additional_libdir/lib$name.la"
11084                fi
11085              fi
11086            fi
11087          fi
11088          if test "X$found_dir" = "X"; then
11089            for x in $LDFLAGS $LTLIBICONV; do
11090
11091  acl_save_prefix="$prefix"
11092  prefix="$acl_final_prefix"
11093  acl_save_exec_prefix="$exec_prefix"
11094  exec_prefix="$acl_final_exec_prefix"
11095  eval x=\"$x\"
11096  exec_prefix="$acl_save_exec_prefix"
11097  prefix="$acl_save_prefix"
11098
11099              case "$x" in
11100                -L*)
11101                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11102                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11103                    found_dir="$dir"
11104                    found_so="$dir/lib$name.$shlibext"
11105                    if test -f "$dir/lib$name.la"; then
11106                      found_la="$dir/lib$name.la"
11107                    fi
11108                  elif test x$lib_type != xshared; then
11109                    if test -f "$dir/lib$name.$libext"; then
11110                      found_dir="$dir"
11111                      found_a="$dir/lib$name.$libext"
11112                      if test -f "$dir/lib$name.la"; then
11113                        found_la="$dir/lib$name.la"
11114                      fi
11115                    fi
11116                  fi
11117                  ;;
11118              esac
11119              if test "X$found_dir" != "X"; then
11120                break
11121              fi
11122            done
11123          fi
11124          if test "X$found_dir" != "X"; then
11125                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11126            if test "X$found_so" != "X"; then
11127                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11128                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11129              else
11130                                                                                haveit=
11131                for x in $ltrpathdirs; do
11132                  if test "X$x" = "X$found_dir"; then
11133                    haveit=yes
11134                    break
11135                  fi
11136                done
11137                if test -z "$haveit"; then
11138                  ltrpathdirs="$ltrpathdirs $found_dir"
11139                fi
11140                                if test "$hardcode_direct" = yes; then
11141                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11142                else
11143                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11144                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11145                                                            haveit=
11146                    for x in $rpathdirs; do
11147                      if test "X$x" = "X$found_dir"; then
11148                        haveit=yes
11149                        break
11150                      fi
11151                    done
11152                    if test -z "$haveit"; then
11153                      rpathdirs="$rpathdirs $found_dir"
11154                    fi
11155                  else
11156                                                                                haveit=
11157                    for x in $LDFLAGS $LIBICONV; do
11158
11159  acl_save_prefix="$prefix"
11160  prefix="$acl_final_prefix"
11161  acl_save_exec_prefix="$exec_prefix"
11162  exec_prefix="$acl_final_exec_prefix"
11163  eval x=\"$x\"
11164  exec_prefix="$acl_save_exec_prefix"
11165  prefix="$acl_save_prefix"
11166
11167                      if test "X$x" = "X-L$found_dir"; then
11168                        haveit=yes
11169                        break
11170                      fi
11171                    done
11172                    if test -z "$haveit"; then
11173                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11174                    fi
11175                    if test "$hardcode_minus_L" != no; then
11176                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11177                    else
11178                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11179                    fi
11180                  fi
11181                fi
11182              fi
11183            else
11184              if test "X$found_a" != "X"; then
11185                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11186              else
11187                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11188              fi
11189            fi
11190                        additional_includedir=
11191            case "$found_dir" in
11192              */lib | */lib/)
11193                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11194                additional_includedir="$basedir/include"
11195                ;;
11196            esac
11197            if test "X$additional_includedir" != "X"; then
11198                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11199                haveit=
11200                if test "X$additional_includedir" = "X/usr/local/include"; then
11201                  if test -n "$GCC"; then
11202                    case $host_os in
11203                      linux*) haveit=yes;;
11204                    esac
11205                  fi
11206                fi
11207                if test -z "$haveit"; then
11208                  for x in $CPPFLAGS $INCICONV; do
11209
11210  acl_save_prefix="$prefix"
11211  prefix="$acl_final_prefix"
11212  acl_save_exec_prefix="$exec_prefix"
11213  exec_prefix="$acl_final_exec_prefix"
11214  eval x=\"$x\"
11215  exec_prefix="$acl_save_exec_prefix"
11216  prefix="$acl_save_prefix"
11217
11218                    if test "X$x" = "X-I$additional_includedir"; then
11219                      haveit=yes
11220                      break
11221                    fi
11222                  done
11223                  if test -z "$haveit"; then
11224                    if test -d "$additional_includedir"; then
11225                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11226                    fi
11227                  fi
11228                fi
11229              fi
11230            fi
11231                        if test -n "$found_la"; then
11232                                                        save_libdir="$libdir"
11233              case "$found_la" in
11234                */* | *\\*) . "$found_la" ;;
11235                *) . "./$found_la" ;;
11236              esac
11237              libdir="$save_libdir"
11238                            for dep in $dependency_libs; do
11239                case "$dep" in
11240                  -L*)
11241                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11242                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
11243                      haveit=
11244                      if test "X$additional_libdir" = "X/usr/local/lib"; then
11245                        if test -n "$GCC"; then
11246                          case $host_os in
11247                            linux*) haveit=yes;;
11248                          esac
11249                        fi
11250                      fi
11251                      if test -z "$haveit"; then
11252                        haveit=
11253                        for x in $LDFLAGS $LIBICONV; do
11254
11255  acl_save_prefix="$prefix"
11256  prefix="$acl_final_prefix"
11257  acl_save_exec_prefix="$exec_prefix"
11258  exec_prefix="$acl_final_exec_prefix"
11259  eval x=\"$x\"
11260  exec_prefix="$acl_save_exec_prefix"
11261  prefix="$acl_save_prefix"
11262
11263                          if test "X$x" = "X-L$additional_libdir"; then
11264                            haveit=yes
11265                            break
11266                          fi
11267                        done
11268                        if test -z "$haveit"; then
11269                          if test -d "$additional_libdir"; then
11270                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11271                          fi
11272                        fi
11273                        haveit=
11274                        for x in $LDFLAGS $LTLIBICONV; do
11275
11276  acl_save_prefix="$prefix"
11277  prefix="$acl_final_prefix"
11278  acl_save_exec_prefix="$exec_prefix"
11279  exec_prefix="$acl_final_exec_prefix"
11280  eval x=\"$x\"
11281  exec_prefix="$acl_save_exec_prefix"
11282  prefix="$acl_save_prefix"
11283
11284                          if test "X$x" = "X-L$additional_libdir"; then
11285                            haveit=yes
11286                            break
11287                          fi
11288                        done
11289                        if test -z "$haveit"; then
11290                          if test -d "$additional_libdir"; then
11291                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11292                          fi
11293                        fi
11294                      fi
11295                    fi
11296                    ;;
11297                  -R*)
11298                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11299                    if test "$enable_rpath" != no; then
11300                                                                  haveit=
11301                      for x in $rpathdirs; do
11302                        if test "X$x" = "X$dir"; then
11303                          haveit=yes
11304                          break
11305                        fi
11306                      done
11307                      if test -z "$haveit"; then
11308                        rpathdirs="$rpathdirs $dir"
11309                      fi
11310                                                                  haveit=
11311                      for x in $ltrpathdirs; do
11312                        if test "X$x" = "X$dir"; then
11313                          haveit=yes
11314                          break
11315                        fi
11316                      done
11317                      if test -z "$haveit"; then
11318                        ltrpathdirs="$ltrpathdirs $dir"
11319                      fi
11320                    fi
11321                    ;;
11322                  -l*)
11323                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11324                    ;;
11325                  *.la)
11326                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11327                    ;;
11328                  *)
11329                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11330                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11331                    ;;
11332                esac
11333              done
11334            fi
11335          else
11336                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11337              LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11338              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11339            else
11340              LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11341              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11342            fi
11343          fi
11344        fi
11345      fi
11346    done
11347  done
11348  if test "X$rpathdirs" != "X"; then
11349    if test -n "$hardcode_libdir_separator"; then
11350                        alldirs=
11351      for found_dir in $rpathdirs; do
11352        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11353      done
11354            acl_save_libdir="$libdir"
11355      libdir="$alldirs"
11356      eval flag=\"$hardcode_libdir_flag_spec\"
11357      libdir="$acl_save_libdir"
11358      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11359    else
11360            for found_dir in $rpathdirs; do
11361        acl_save_libdir="$libdir"
11362        libdir="$found_dir"
11363        eval flag=\"$hardcode_libdir_flag_spec\"
11364        libdir="$acl_save_libdir"
11365        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11366      done
11367    fi
11368  fi
11369  if test "X$ltrpathdirs" != "X"; then
11370            for found_dir in $ltrpathdirs; do
11371      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11372    done
11373  fi
11374
11375
11376
11377
11378
11379
11380
11381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11382$as_echo_n "checking for iconv... " >&6; }
11383if ${am_cv_func_iconv+:} false; then :
11384  $as_echo_n "(cached) " >&6
11385else
11386
11387    am_cv_func_iconv="no, consider installing GNU libiconv"
11388    am_cv_lib_iconv=no
11389                    am_save_CPPFLAGS="$CPPFLAGS"
11390    CPPFLAGS="$CPPFLAGS $INCICONV"
11391    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392/* end confdefs.h.  */
11393#include <stdlib.h>
11394#include <iconv.h>
11395int
11396main ()
11397{
11398iconv_t cd = iconv_open("","");
11399       iconv(cd,NULL,NULL,NULL,NULL);
11400       iconv_close(cd);
11401  ;
11402  return 0;
11403}
11404_ACEOF
11405if ac_fn_cxx_try_link "$LINENO"; then :
11406  am_cv_func_iconv=yes
11407fi
11408rm -f core conftest.err conftest.$ac_objext \
11409    conftest$ac_exeext conftest.$ac_ext
11410    CPPFLAGS="$am_save_CPPFLAGS"
11411
11412    if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11413      for _libs in .libs _libs; do
11414        am_save_CPPFLAGS="$CPPFLAGS"
11415        am_save_LIBS="$LIBS"
11416        CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11417        LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11418        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419/* end confdefs.h.  */
11420#include <stdlib.h>
11421#include <iconv.h>
11422int
11423main ()
11424{
11425iconv_t cd = iconv_open("","");
11426           iconv(cd,NULL,NULL,NULL,NULL);
11427           iconv_close(cd);
11428  ;
11429  return 0;
11430}
11431_ACEOF
11432if ac_fn_cxx_try_link "$LINENO"; then :
11433  INCICONV="-I../libiconv/include"
11434          LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11435          LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11436          am_cv_lib_iconv=yes
11437          am_cv_func_iconv=yes
11438fi
11439rm -f core conftest.err conftest.$ac_objext \
11440    conftest$ac_exeext conftest.$ac_ext
11441        CPPFLAGS="$am_save_CPPFLAGS"
11442        LIBS="$am_save_LIBS"
11443        if test "$am_cv_func_iconv" = "yes"; then
11444          break
11445        fi
11446      done
11447    fi
11448
11449    if test "$am_cv_func_iconv" != yes; then
11450      am_save_CPPFLAGS="$CPPFLAGS"
11451      am_save_LIBS="$LIBS"
11452      CPPFLAGS="$CPPFLAGS $INCICONV"
11453      LIBS="$LIBS $LIBICONV"
11454      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455/* end confdefs.h.  */
11456#include <stdlib.h>
11457#include <iconv.h>
11458int
11459main ()
11460{
11461iconv_t cd = iconv_open("","");
11462         iconv(cd,NULL,NULL,NULL,NULL);
11463         iconv_close(cd);
11464  ;
11465  return 0;
11466}
11467_ACEOF
11468if ac_fn_cxx_try_link "$LINENO"; then :
11469  am_cv_lib_iconv=yes
11470        am_cv_func_iconv=yes
11471fi
11472rm -f core conftest.err conftest.$ac_objext \
11473    conftest$ac_exeext conftest.$ac_ext
11474      CPPFLAGS="$am_save_CPPFLAGS"
11475      LIBS="$am_save_LIBS"
11476    fi
11477
11478fi
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11480$as_echo "$am_cv_func_iconv" >&6; }
11481  if test "$am_cv_func_iconv" = yes; then
11482
11483$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11484
11485  fi
11486  if test "$am_cv_lib_iconv" = yes; then
11487
11488  for element in $INCICONV; do
11489    haveit=
11490    for x in $CPPFLAGS; do
11491
11492  acl_save_prefix="$prefix"
11493  prefix="$acl_final_prefix"
11494  acl_save_exec_prefix="$exec_prefix"
11495  exec_prefix="$acl_final_exec_prefix"
11496  eval x=\"$x\"
11497  exec_prefix="$acl_save_exec_prefix"
11498  prefix="$acl_save_prefix"
11499
11500      if test "X$x" = "X$element"; then
11501        haveit=yes
11502        break
11503      fi
11504    done
11505    if test -z "$haveit"; then
11506      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11507    fi
11508  done
11509
11510    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11511$as_echo_n "checking how to link with libiconv... " >&6; }
11512    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11513$as_echo "$LIBICONV" >&6; }
11514  else
11515    LIBICONV=
11516    LTLIBICONV=
11517  fi
11518
11519
11520
11521  if test "$am_cv_func_iconv" = yes; then
11522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11523$as_echo_n "checking for iconv declaration... " >&6; }
11524    if ${am_cv_proto_iconv+:} false; then :
11525  $as_echo_n "(cached) " >&6
11526else
11527
11528      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529/* end confdefs.h.  */
11530
11531#include <stdlib.h>
11532#include <iconv.h>
11533extern
11534#ifdef __cplusplus
11535"C"
11536#endif
11537#if defined(__STDC__) || defined(__cplusplus)
11538size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11539#else
11540size_t iconv();
11541#endif
11542
11543int
11544main ()
11545{
11546
11547  ;
11548  return 0;
11549}
11550_ACEOF
11551if ac_fn_cxx_try_compile "$LINENO"; then :
11552  am_cv_proto_iconv_arg1=""
11553else
11554  am_cv_proto_iconv_arg1="const"
11555fi
11556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557      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);"
11558fi
11559
11560    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11562         }$am_cv_proto_iconv" >&5
11563$as_echo "${ac_t:-
11564         }$am_cv_proto_iconv" >&6; }
11565
11566cat >>confdefs.h <<_ACEOF
11567#define ICONV_CONST $am_cv_proto_iconv_arg1
11568_ACEOF
11569
11570  fi
11571
11572
11573# Until we have in-tree GNU iconv:
11574LIBICONV_DEP=
11575if test -f "$LTLIBICONV"; then
11576  LIBICONV_DEP=$LTLIBICONV
11577fi
11578
11579
11580
11581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11582$as_echo_n "checking for LC_MESSAGES... " >&6; }
11583if ${am_cv_val_LC_MESSAGES+:} false; then :
11584  $as_echo_n "(cached) " >&6
11585else
11586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587/* end confdefs.h.  */
11588#include <locale.h>
11589int
11590main ()
11591{
11592return LC_MESSAGES
11593  ;
11594  return 0;
11595}
11596_ACEOF
11597if ac_fn_cxx_try_link "$LINENO"; then :
11598  am_cv_val_LC_MESSAGES=yes
11599else
11600  am_cv_val_LC_MESSAGES=no
11601fi
11602rm -f core conftest.err conftest.$ac_objext \
11603    conftest$ac_exeext conftest.$ac_ext
11604fi
11605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11606$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11607  if test $am_cv_val_LC_MESSAGES = yes; then
11608
11609$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11610
11611  fi
11612
11613
11614
11615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11616$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11617if ${am_cv_langinfo_codeset+:} false; then :
11618  $as_echo_n "(cached) " >&6
11619else
11620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621/* end confdefs.h.  */
11622#include <langinfo.h>
11623int
11624main ()
11625{
11626char* cs = nl_langinfo(CODESET);
11627  ;
11628  return 0;
11629}
11630_ACEOF
11631if ac_fn_cxx_try_link "$LINENO"; then :
11632  am_cv_langinfo_codeset=yes
11633else
11634  am_cv_langinfo_codeset=no
11635fi
11636rm -f core conftest.err conftest.$ac_objext \
11637    conftest$ac_exeext conftest.$ac_ext
11638
11639fi
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11641$as_echo "$am_cv_langinfo_codeset" >&6; }
11642  if test $am_cv_langinfo_codeset = yes; then
11643
11644$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11645
11646  fi
11647
11648
11649# We will need to find libiberty.h and ansidecl.h
11650saved_CFLAGS="$CFLAGS"
11651CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11652saved_CXXFLAGS="$CXXFLAGS"
11653CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11654
11655# gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11656# normal autoconf function for these.  But force definition of
11657# HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11658# basename handling in libiberty.h.
11659as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11660ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11661#undef HAVE_DECL_BASENAME
11662#define HAVE_DECL_BASENAME 1
11663#include \"ansidecl.h\"
11664#include \"system.h\"
11665"
11666if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11667  ac_have_decl=1
11668else
11669  ac_have_decl=0
11670fi
11671
11672cat >>confdefs.h <<_ACEOF
11673#define HAVE_DECL_BASENAME $ac_have_decl
11674_ACEOF
11675as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11676ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11677#undef HAVE_DECL_BASENAME
11678#define HAVE_DECL_BASENAME 1
11679#include \"ansidecl.h\"
11680#include \"system.h\"
11681"
11682if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11683  ac_have_decl=1
11684else
11685  ac_have_decl=0
11686fi
11687
11688cat >>confdefs.h <<_ACEOF
11689#define HAVE_DECL_STRSTR $ac_have_decl
11690_ACEOF
11691
11692
11693for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11694	madvise stpcpy strnlen strsignal strverscmp \
11695	strtol strtoul strtoll strtoull setenv unsetenv \
11696	errno snprintf vsnprintf vasprintf malloc realloc calloc \
11697	free getopt clock getpagesize ffs clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
11698do
11699  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11701$as_echo_n "checking whether $ac_func is declared... " >&6; }
11702if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11703  $as_echo_n "(cached) " >&6
11704else
11705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706/* end confdefs.h.  */
11707#undef $ac_tr_decl
11708#define $ac_tr_decl 1
11709
11710#include "ansidecl.h"
11711#include "system.h"
11712
11713int
11714main ()
11715{
11716#ifndef $ac_func
11717char *(*pfn) = (char *(*)) $ac_func ;
11718#endif
11719  ;
11720  return 0;
11721}
11722_ACEOF
11723if ac_fn_cxx_try_compile "$LINENO"; then :
11724  eval "gcc_cv_have_decl_$ac_func=yes"
11725else
11726  eval "gcc_cv_have_decl_$ac_func=no"
11727fi
11728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11729fi
11730
11731if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11733$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11734#define $ac_tr_decl 1
11735_ACEOF
11736
11737else
11738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11740#define $ac_tr_decl 0
11741_ACEOF
11742
11743fi
11744
11745done
11746
11747
11748for ac_func in getrlimit setrlimit getrusage
11749do
11750  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11752$as_echo_n "checking whether $ac_func is declared... " >&6; }
11753if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11754  $as_echo_n "(cached) " >&6
11755else
11756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757/* end confdefs.h.  */
11758#undef $ac_tr_decl
11759#define $ac_tr_decl 1
11760
11761#include "ansidecl.h"
11762#include "system.h"
11763#ifdef HAVE_SYS_RESOURCE_H
11764#include <sys/resource.h>
11765#endif
11766
11767
11768int
11769main ()
11770{
11771#ifndef $ac_func
11772char *(*pfn) = (char *(*)) $ac_func ;
11773#endif
11774  ;
11775  return 0;
11776}
11777_ACEOF
11778if ac_fn_cxx_try_compile "$LINENO"; then :
11779  eval "gcc_cv_have_decl_$ac_func=yes"
11780else
11781  eval "gcc_cv_have_decl_$ac_func=no"
11782fi
11783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11784fi
11785
11786if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11788$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11789#define $ac_tr_decl 1
11790_ACEOF
11791
11792else
11793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11795#define $ac_tr_decl 0
11796_ACEOF
11797
11798fi
11799
11800done
11801
11802
11803for ac_func in mallinfo mallinfo2
11804do
11805  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11807$as_echo_n "checking whether $ac_func is declared... " >&6; }
11808if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11809  $as_echo_n "(cached) " >&6
11810else
11811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812/* end confdefs.h.  */
11813#undef $ac_tr_decl
11814#define $ac_tr_decl 1
11815
11816#include "ansidecl.h"
11817#include "system.h"
11818#ifdef HAVE_MALLOC_H
11819#include <malloc.h>
11820#endif
11821
11822
11823int
11824main ()
11825{
11826#ifndef $ac_func
11827char *(*pfn) = (char *(*)) $ac_func ;
11828#endif
11829  ;
11830  return 0;
11831}
11832_ACEOF
11833if ac_fn_cxx_try_compile "$LINENO"; then :
11834  eval "gcc_cv_have_decl_$ac_func=yes"
11835else
11836  eval "gcc_cv_have_decl_$ac_func=no"
11837fi
11838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839fi
11840
11841if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11843$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11844#define $ac_tr_decl 1
11845_ACEOF
11846
11847else
11848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11850#define $ac_tr_decl 0
11851_ACEOF
11852
11853fi
11854
11855done
11856
11857
11858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859/* end confdefs.h.  */
11860
11861#include "ansidecl.h"
11862#include "system.h"
11863#ifdef HAVE_SYS_RESOURCE_H
11864#include <sys/resource.h>
11865#endif
11866
11867int
11868main ()
11869{
11870rlim_t l = 0;
11871  ;
11872  return 0;
11873}
11874_ACEOF
11875if ac_fn_cxx_try_compile "$LINENO"; then :
11876
11877else
11878
11879$as_echo "#define rlim_t long" >>confdefs.h
11880
11881fi
11882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883
11884# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11885# FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11886# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11887# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11888for ac_func in ldgetname
11889do
11890  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11892$as_echo_n "checking whether $ac_func is declared... " >&6; }
11893if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11894  $as_echo_n "(cached) " >&6
11895else
11896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897/* end confdefs.h.  */
11898#undef $ac_tr_decl
11899#define $ac_tr_decl 1
11900
11901#include "ansidecl.h"
11902#include "system.h"
11903#ifdef HAVE_LDFCN_H
11904#undef FREAD
11905#undef FWRITE
11906#include <ldfcn.h>
11907#endif
11908
11909
11910int
11911main ()
11912{
11913#ifndef $ac_func
11914char *(*pfn) = (char *(*)) $ac_func ;
11915#endif
11916  ;
11917  return 0;
11918}
11919_ACEOF
11920if ac_fn_cxx_try_compile "$LINENO"; then :
11921  eval "gcc_cv_have_decl_$ac_func=yes"
11922else
11923  eval "gcc_cv_have_decl_$ac_func=no"
11924fi
11925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926fi
11927
11928if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11931#define $ac_tr_decl 1
11932_ACEOF
11933
11934else
11935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11937#define $ac_tr_decl 0
11938_ACEOF
11939
11940fi
11941
11942done
11943
11944
11945for ac_func in times
11946do
11947  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11949$as_echo_n "checking whether $ac_func is declared... " >&6; }
11950if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11951  $as_echo_n "(cached) " >&6
11952else
11953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954/* end confdefs.h.  */
11955#undef $ac_tr_decl
11956#define $ac_tr_decl 1
11957
11958#include "ansidecl.h"
11959#include "system.h"
11960#ifdef HAVE_SYS_TIMES_H
11961#include <sys/times.h>
11962#endif
11963
11964
11965int
11966main ()
11967{
11968#ifndef $ac_func
11969char *(*pfn) = (char *(*)) $ac_func ;
11970#endif
11971  ;
11972  return 0;
11973}
11974_ACEOF
11975if ac_fn_cxx_try_compile "$LINENO"; then :
11976  eval "gcc_cv_have_decl_$ac_func=yes"
11977else
11978  eval "gcc_cv_have_decl_$ac_func=no"
11979fi
11980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11981fi
11982
11983if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11985$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11986#define $ac_tr_decl 1
11987_ACEOF
11988
11989else
11990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11992#define $ac_tr_decl 0
11993_ACEOF
11994
11995fi
11996
11997done
11998
11999
12000for ac_func in sigaltstack
12001do
12002  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12004$as_echo_n "checking whether $ac_func is declared... " >&6; }
12005if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12006  $as_echo_n "(cached) " >&6
12007else
12008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009/* end confdefs.h.  */
12010#undef $ac_tr_decl
12011#define $ac_tr_decl 1
12012
12013#include "ansidecl.h"
12014#include "system.h"
12015#include <signal.h>
12016
12017
12018int
12019main ()
12020{
12021#ifndef $ac_func
12022char *(*pfn) = (char *(*)) $ac_func ;
12023#endif
12024  ;
12025  return 0;
12026}
12027_ACEOF
12028if ac_fn_cxx_try_compile "$LINENO"; then :
12029  eval "gcc_cv_have_decl_$ac_func=yes"
12030else
12031  eval "gcc_cv_have_decl_$ac_func=no"
12032fi
12033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034fi
12035
12036if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12038$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12039#define $ac_tr_decl 1
12040_ACEOF
12041
12042else
12043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12045#define $ac_tr_decl 0
12046_ACEOF
12047
12048fi
12049
12050done
12051
12052
12053# More time-related stuff.
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12055$as_echo_n "checking for struct tms... " >&6; }
12056if ${ac_cv_struct_tms+:} false; then :
12057  $as_echo_n "(cached) " >&6
12058else
12059
12060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061/* end confdefs.h.  */
12062
12063#include "ansidecl.h"
12064#include "system.h"
12065#ifdef HAVE_SYS_TIMES_H
12066#include <sys/times.h>
12067#endif
12068
12069int
12070main ()
12071{
12072struct tms tms;
12073  ;
12074  return 0;
12075}
12076_ACEOF
12077if ac_fn_cxx_try_compile "$LINENO"; then :
12078  ac_cv_struct_tms=yes
12079else
12080  ac_cv_struct_tms=no
12081fi
12082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12083fi
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12085$as_echo "$ac_cv_struct_tms" >&6; }
12086if test $ac_cv_struct_tms = yes; then
12087
12088$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12089
12090fi
12091
12092# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12093# revisit after autoconf 2.50.
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12095$as_echo_n "checking for clock_t... " >&6; }
12096if ${gcc_cv_type_clock_t+:} false; then :
12097  $as_echo_n "(cached) " >&6
12098else
12099
12100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101/* end confdefs.h.  */
12102
12103#include "ansidecl.h"
12104#include "system.h"
12105
12106int
12107main ()
12108{
12109clock_t x;
12110  ;
12111  return 0;
12112}
12113_ACEOF
12114if ac_fn_cxx_try_compile "$LINENO"; then :
12115  gcc_cv_type_clock_t=yes
12116else
12117  gcc_cv_type_clock_t=no
12118fi
12119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12120fi
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12122$as_echo "$gcc_cv_type_clock_t" >&6; }
12123if test $gcc_cv_type_clock_t = yes; then
12124
12125$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12126
12127fi
12128
12129# Check if F_SETLKW is supported by fcntl.
12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12131$as_echo_n "checking for F_SETLKW... " >&6; }
12132if ${ac_cv_f_setlkw+:} false; then :
12133  $as_echo_n "(cached) " >&6
12134else
12135
12136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137/* end confdefs.h.  */
12138
12139#include <fcntl.h>
12140int
12141main ()
12142{
12143
12144struct flock fl;
12145fl.l_whence = 0;
12146fl.l_start = 0;
12147fl.l_len = 0;
12148fl.l_pid = 0;
12149return fcntl (1, F_SETLKW, &fl);
12150  ;
12151  return 0;
12152}
12153_ACEOF
12154if ac_fn_cxx_try_compile "$LINENO"; then :
12155  ac_cv_f_setlkw=yes
12156else
12157  ac_cv_f_setlkw=no
12158fi
12159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160fi
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12162$as_echo "$ac_cv_f_setlkw" >&6; }
12163if test $ac_cv_f_setlkw = yes; then
12164
12165$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12166
12167fi
12168
12169# Check if O_CLOEXEC is defined by fcntl
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12171$as_echo_n "checking for O_CLOEXEC... " >&6; }
12172if ${ac_cv_o_cloexec+:} false; then :
12173  $as_echo_n "(cached) " >&6
12174else
12175
12176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177/* end confdefs.h.  */
12178
12179#include <fcntl.h>
12180int
12181main ()
12182{
12183
12184return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12185  ;
12186  return 0;
12187}
12188_ACEOF
12189if ac_fn_cxx_try_compile "$LINENO"; then :
12190  ac_cv_o_cloexec=yes
12191else
12192  ac_cv_o_cloexec=no
12193fi
12194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195fi
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12197$as_echo "$ac_cv_o_cloexec" >&6; }
12198if test $ac_cv_o_cloexec = yes; then
12199
12200$as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12201
12202fi
12203
12204# C++ Modules would like some networking features to provide the mapping
12205# server.  You can still use modules without them though.
12206# The following network-related checks could probably do with some
12207# Windows and other non-linux defenses and checking.
12208
12209# Local socket connectivity wants AF_UNIX networking
12210# Check for AF_UNIX networking
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12212$as_echo_n "checking for AF_UNIX... " >&6; }
12213if ${ac_cv_af_unix+:} false; then :
12214  $as_echo_n "(cached) " >&6
12215else
12216
12217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218/* end confdefs.h.  */
12219
12220#include <sys/types.h>
12221#include <sys/socket.h>
12222#include <sys/un.h>
12223#include <netinet/in.h>
12224int
12225main ()
12226{
12227
12228sockaddr_un un;
12229un.sun_family = AF_UNSPEC;
12230int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12231connect (fd, (sockaddr *)&un, sizeof (un));
12232  ;
12233  return 0;
12234}
12235_ACEOF
12236if ac_fn_cxx_try_compile "$LINENO"; then :
12237  ac_cv_af_unix=yes
12238else
12239  ac_cv_af_unix=no
12240fi
12241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242fi
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12244$as_echo "$ac_cv_af_unix" >&6; }
12245if test $ac_cv_af_unix = yes; then
12246
12247$as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12248
12249fi
12250
12251# Remote socket connectivity wants AF_INET6 networking
12252# Check for AF_INET6 networking
12253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12254$as_echo_n "checking for AF_INET6... " >&6; }
12255if ${ac_cv_af_inet6+:} false; then :
12256  $as_echo_n "(cached) " >&6
12257else
12258
12259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260/* end confdefs.h.  */
12261
12262#include <sys/types.h>
12263#include <sys/socket.h>
12264#include <netinet/in.h>
12265#include <netdb.h>
12266int
12267main ()
12268{
12269
12270sockaddr_in6 in6;
12271in6.sin6_family = AF_UNSPEC;
12272struct addrinfo *addrs = 0;
12273struct addrinfo hints;
12274hints.ai_flags = 0;
12275hints.ai_family = AF_INET6;
12276hints.ai_socktype = SOCK_STREAM;
12277hints.ai_protocol = 0;
12278hints.ai_canonname = 0;
12279hints.ai_addr = 0;
12280hints.ai_next = 0;
12281int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12282const char *str = gai_strerror (e);
12283freeaddrinfo (addrs);
12284int fd = socket (AF_INET6, SOCK_STREAM, 0);
12285connect (fd, (sockaddr *)&in6, sizeof (in6));
12286  ;
12287  return 0;
12288}
12289_ACEOF
12290if ac_fn_cxx_try_compile "$LINENO"; then :
12291  ac_cv_af_inet6=yes
12292else
12293  ac_cv_af_inet6=no
12294fi
12295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296fi
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12298$as_echo "$ac_cv_af_inet6" >&6; }
12299if test $ac_cv_af_inet6 = yes; then
12300
12301$as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12302
12303fi
12304
12305# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12306CFLAGS="$saved_CFLAGS"
12307CXXFLAGS="$saved_CXXFLAGS"
12308
12309# mkdir takes a single argument on some systems.
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12311$as_echo_n "checking if mkdir takes one argument... " >&6; }
12312if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12313  $as_echo_n "(cached) " >&6
12314else
12315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316/* end confdefs.h.  */
12317
12318#include <sys/types.h>
12319#ifdef HAVE_SYS_STAT_H
12320# include <sys/stat.h>
12321#endif
12322#ifdef HAVE_UNISTD_H
12323# include <unistd.h>
12324#endif
12325#ifdef HAVE_DIRECT_H
12326# include <direct.h>
12327#endif
12328int
12329main ()
12330{
12331mkdir ("foo", 0);
12332  ;
12333  return 0;
12334}
12335_ACEOF
12336if ac_fn_cxx_try_compile "$LINENO"; then :
12337  gcc_cv_mkdir_takes_one_arg=no
12338else
12339  gcc_cv_mkdir_takes_one_arg=yes
12340fi
12341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342fi
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12344$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12345if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12346
12347$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12348
12349fi
12350
12351
12352# File extensions
12353manext='.1'
12354objext='.o'
12355
12356
12357
12358# With Setjmp/Longjmp based exception handling.
12359# Check whether --enable-sjlj-exceptions was given.
12360if test "${enable_sjlj_exceptions+set}" = set; then :
12361  enableval=$enable_sjlj_exceptions; case $target in
12362  *-*-hpux10*)
12363    if test $enableval != yes; then
12364      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12365$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12366      enableval=yes
12367    fi
12368    ;;
12369esac
12370force_sjlj_exceptions=yes
12371else
12372  case $target in
12373  *-*-hpux10*)
12374    force_sjlj_exceptions=yes
12375    enableval=yes
12376    ;;
12377  lm32*-*-*)
12378     force_sjlj_exceptions=yes
12379     enableval=yes
12380     ;;
12381  *)
12382    force_sjlj_exceptions=no
12383    ;;
12384esac
12385fi
12386
12387if test $force_sjlj_exceptions = yes; then
12388  sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12389
12390cat >>confdefs.h <<_ACEOF
12391#define CONFIG_SJLJ_EXCEPTIONS $sjlj
12392_ACEOF
12393
12394fi
12395
12396# --------------------------------------------------------
12397# Build, host, and target specific configuration fragments
12398# --------------------------------------------------------
12399
12400# Collect build-machine-specific information.
12401. ${srcdir}/config.build || exit 1
12402
12403# Collect host-machine-specific information.
12404. ${srcdir}/config.host || exit 1
12405
12406target_gtfiles=
12407
12408# Collect target-machine-specific information.
12409. ${srcdir}/config.gcc || exit 1
12410
12411extra_objs="${host_extra_objs} ${extra_objs}"
12412extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12413
12414# Default the target-machine variables that were not explicitly set.
12415if test x"$tm_file" = x
12416then tm_file=$cpu_type/$cpu_type.h; fi
12417
12418if test x"$extra_headers" = x
12419then extra_headers=; fi
12420
12421if test x$md_file = x
12422then md_file=$cpu_type/$cpu_type.md; fi
12423
12424if test x$out_file = x
12425then out_file=$cpu_type/$cpu_type.c; fi
12426
12427if test x"$tmake_file" = x
12428then tmake_file=$cpu_type/t-$cpu_type
12429fi
12430
12431# Support --enable-initfini-array.
12432if test x$enable_initfini_array != xno; then
12433  tm_file="${tm_file} initfini-array.h"
12434fi
12435
12436if test x"$dwarf2" = xyes
12437then tm_file="$tm_file tm-dwarf2.h"
12438fi
12439
12440# Say what files are being used for the output code and MD file.
12441echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12442echo "Using \`$srcdir/config/$md_file' as machine description file."
12443
12444# If any of the xm_file variables contain nonexistent files, warn
12445# about them and drop them.
12446
12447bx=
12448for x in $build_xm_file; do
12449  if    test -f $srcdir/config/$x
12450  then      bx="$bx $x"
12451  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12452$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12453  fi
12454done
12455build_xm_file="$bx"
12456
12457hx=
12458for x in $host_xm_file; do
12459  if    test -f $srcdir/config/$x
12460  then      hx="$hx $x"
12461  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12462$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12463  fi
12464done
12465host_xm_file="$hx"
12466
12467tx=
12468for x in $xm_file; do
12469  if    test -f $srcdir/config/$x
12470  then      tx="$tx $x"
12471  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12472$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12473  fi
12474done
12475xm_file="$tx"
12476
12477count=a
12478for f in $tm_file; do
12479	count=${count}x
12480done
12481if test $count = ax; then
12482	echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12483else
12484	echo "Using the following target machine macro files:"
12485	for f in $tm_file; do
12486		echo "	$srcdir/config/$f"
12487	done
12488fi
12489
12490if test x$use_long_long_for_widest_fast_int = xyes; then
12491
12492$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12493
12494fi
12495
12496gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12497
12498cat >>confdefs.h <<_ACEOF
12499#define HAVE_GNU_LD $gnu_ld_bool
12500_ACEOF
12501
12502
12503gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12504
12505cat >>confdefs.h <<_ACEOF
12506#define HAVE_GNU_AS $gnu_as_bool
12507_ACEOF
12508
12509
12510count=a
12511for f in $host_xm_file; do
12512	count=${count}x
12513done
12514if test $count = a; then
12515	:
12516elif test $count = ax; then
12517	echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12518else
12519	echo "Using the following host machine macro files:"
12520	for f in $host_xm_file; do
12521		echo "	$srcdir/config/$f"
12522	done
12523fi
12524echo "Using ${out_host_hook_obj} for host machine hooks."
12525
12526if test "$host_xm_file" != "$build_xm_file"; then
12527	count=a
12528	for f in $build_xm_file; do
12529		count=${count}x
12530	done
12531	if test $count = a; then
12532		:
12533	elif test $count = ax; then
12534		echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12535	else
12536		echo "Using the following build machine macro files:"
12537		for f in $build_xm_file; do
12538			echo "	$srcdir/config/$f"
12539		done
12540	fi
12541fi
12542
12543if test -n "$configured_native_system_header_dir"; then
12544  native_system_header_dir=$configured_native_system_header_dir
12545fi
12546NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12547
12548
12549case ${host} in
12550  powerpc*-*-darwin*)
12551    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12552$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12553if ${gcc_cv_mcontext_underscores+:} false; then :
12554  $as_echo_n "(cached) " >&6
12555else
12556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557/* end confdefs.h.  */
12558
12559#include <sys/cdefs.h>
12560#include <sys/signal.h>
12561#include <ucontext.h>
12562int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12563
12564_ACEOF
12565if ac_fn_cxx_try_compile "$LINENO"; then :
12566  gcc_cv_mcontext_underscores=no
12567else
12568  gcc_cv_mcontext_underscores=yes
12569fi
12570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12571fi
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12573$as_echo "$gcc_cv_mcontext_underscores" >&6; }
12574      if test $gcc_cv_mcontext_underscores = yes; then
12575
12576$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12577
12578      fi
12579    ;;
12580esac
12581
12582# ---------
12583# Threading
12584# ---------
12585
12586# Check if a valid thread package
12587case ${enable_threads} in
12588  "" | no)
12589    # No threads
12590    target_thread_file='single'
12591    ;;
12592  yes)
12593    # default
12594    target_thread_file='single'
12595    ;;
12596  aix | dce | lynx | mipssde | posix | rtems | \
12597  single | tpf | vxworks | win32)
12598    target_thread_file=${enable_threads}
12599    ;;
12600  *)
12601    echo "${enable_threads} is an unknown thread package" 1>&2
12602    exit 1
12603    ;;
12604esac
12605
12606if test x${thread_file} = x; then
12607  # No thread file set by target-specific clauses in config.gcc,
12608  # so use file chosen by default logic above
12609  thread_file=${target_thread_file}
12610fi
12611
12612# --------
12613# UNSORTED
12614# --------
12615
12616use_cxa_atexit=no
12617if test x$enable___cxa_atexit = xyes || \
12618   test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12619  if test x$host = x$target; then
12620    case $host in
12621      # mingw32 doesn't have __cxa_atexit but uses atexit registration
12622      # keyed to flag_use_cxa_atexit
12623      *-*-mingw32*)
12624	use_cxa_atexit=yes
12625	;;
12626      powerpc-ibm-aix*)
12627	use_cxa_atexit=yes
12628	;;
12629      *)
12630	ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12631if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12632  use_cxa_atexit=yes
12633else
12634  echo "__cxa_atexit can't be enabled on this target"
12635fi
12636
12637	;;
12638    esac
12639  else
12640    # We can't check for __cxa_atexit when building a cross, so assume
12641    # it is available
12642    use_cxa_atexit=yes
12643  fi
12644  if test x$use_cxa_atexit = xyes; then
12645
12646$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12647
12648  fi
12649fi
12650
12651# Look for a file containing extra machine modes.
12652if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12653  extra_modes_file='$(srcdir)'/config/${extra_modes}
12654
12655
12656cat >>confdefs.h <<_ACEOF
12657#define EXTRA_MODES_FILE "config/$extra_modes"
12658_ACEOF
12659
12660fi
12661
12662# Convert extra_options into a form suitable for Makefile use.
12663extra_opt_files=
12664all_opt_files=
12665for f in $extra_options; do
12666  extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12667  all_opt_files="$all_opt_files $srcdir/config/$f"
12668done
12669
12670
12671# auto-host.h is the file containing items generated by autoconf and is
12672# the first file included by config.h.
12673# If host=build, it is correct to have bconfig include auto-host.h
12674# as well.  If host!=build, we are in error and need to do more
12675# work to find out the build config parameters.
12676if test x$host = x$build
12677then
12678	build_auto=auto-host.h
12679	HAVE_AUTO_BUILD='# '
12680else
12681	# We create a subdir, then run autoconf in the subdir.
12682	# To prevent recursion we set host and build for the new
12683	# invocation of configure to the build for this invocation
12684	# of configure.
12685	tempdir=build.$$
12686	rm -rf $tempdir
12687	mkdir $tempdir
12688	cd $tempdir
12689	case ${srcdir} in
12690	/* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12691	*) realsrcdir=../${srcdir};;
12692	esac
12693	# Clearing GMPINC is necessary to prevent host headers being
12694	# used by the build compiler.  Defining GENERATOR_FILE stops
12695	# system.h from including gmp.h.
12696	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12697	CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12698	LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12699	GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12700	${realsrcdir}/configure \
12701		--enable-languages=${enable_languages-all} \
12702		${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12703		${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12704		--target=$target_alias --host=$build_alias \
12705		--build=$build_alias || exit # retaining $tempdir
12706
12707	# We just finished tests for the build machine, so rename
12708	# the file auto-build.h in the gcc directory.
12709	mv auto-host.h ../auto-build.h
12710	cd ..
12711	rm -rf $tempdir
12712	build_auto=auto-build.h
12713	HAVE_AUTO_BUILD=
12714fi
12715
12716
12717
12718tm_file="${tm_file} defaults.h"
12719tm_p_file="${tm_p_file} tm-preds.h"
12720tm_d_file="${tm_d_file} defaults.h"
12721host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12722build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12723# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12724# put this back in temporarily.
12725xm_file="auto-host.h ansidecl.h ${xm_file}"
12726
12727# --------
12728# UNSORTED
12729# --------
12730
12731# Compile in configure arguments.
12732if test -f configargs.h ; then
12733	# Being re-configured.
12734	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12735	gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12736	if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12737		gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12738	fi
12739else
12740	gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12741fi
12742
12743# Double all backslashes and backslash all quotes to turn
12744# gcc_config_arguments into a C string.
12745sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12746$gcc_config_arguments
12747EOF
12748gcc_config_arguments_str=`cat conftest.out`
12749rm -f conftest.out
12750
12751cat > configargs.h <<EOF
12752/* Generated automatically. */
12753static const char configuration_arguments[] = "$gcc_config_arguments_str";
12754static const char thread_model[] = "$thread_file";
12755
12756static const struct {
12757  const char *name, *value;
12758} configure_default_options[] = $configure_default_options;
12759EOF
12760
12761gcc_BASEVER=`cat $srcdir/BASE-VER`
12762gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12763gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12764if test -f $srcdir/REVISION ; then
12765	gcc_REVISION=`cat $srcdir/REVISION`
12766else
12767        gcc_REVISION=""
12768fi
12769cat > plugin-version.h <<EOF
12770#include "configargs.h"
12771
12772#define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12773#define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12774#define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12775#define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12776
12777static char basever[] = "$gcc_BASEVER";
12778static char datestamp[] = "$gcc_DATESTAMP";
12779static char devphase[] = "$gcc_DEVPHASE";
12780static char revision[] = "$gcc_REVISION";
12781
12782/* FIXME plugins: We should make the version information more precise.
12783   One way to do is to add a checksum. */
12784
12785static struct plugin_gcc_version gcc_version = {basever, datestamp,
12786						devphase, revision,
12787						configuration_arguments};
12788EOF
12789
12790# Determine what GCC version number to use in filesystem paths.
12791
12792  get_gcc_base_ver="cat"
12793
12794# Check whether --with-gcc-major-version-only was given.
12795if test "${with_gcc_major_version_only+set}" = set; then :
12796  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12797        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12798      fi
12799
12800fi
12801
12802
12803
12804
12805# Internationalization
12806# If we haven't got the data from the intl directory,
12807# assume NLS is disabled.
12808USE_NLS=no
12809LIBINTL=
12810LIBINTL_DEP=
12811INCINTL=
12812XGETTEXT=
12813GMSGFMT=
12814POSUB=
12815
12816if test -f  ../intl/config.intl; then
12817  .  ../intl/config.intl
12818fi
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12820$as_echo_n "checking whether NLS is requested... " >&6; }
12821if test x"$USE_NLS" != xyes; then
12822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823$as_echo "no" >&6; }
12824else
12825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12826$as_echo "yes" >&6; }
12827
12828$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12829
12830
12831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12832$as_echo_n "checking for catalogs to be installed... " >&6; }
12833  # Look for .po and .gmo files in the source directory.
12834  CATALOGS=
12835  XLINGUAS=
12836  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12837    # If there aren't any .gmo files the shell will give us the
12838    # literal string "../path/to/srcdir/po/*.gmo" which has to be
12839    # weeded out.
12840    case "$cat" in *\**)
12841      continue;;
12842    esac
12843    # The quadruple backslash is collapsed to a double backslash
12844    # by the backticks, then collapsed again by the double quotes,
12845    # leaving us with one backslash in the sed expression (right
12846    # before the dot that mustn't act as a wildcard).
12847    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12848    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12849    # The user is allowed to set LINGUAS to a list of languages to
12850    # install catalogs for.  If it's empty that means "all of them."
12851    if test "x$LINGUAS" = x; then
12852      CATALOGS="$CATALOGS $cat"
12853      XLINGUAS="$XLINGUAS $lang"
12854    else
12855      case "$LINGUAS" in *$lang*)
12856        CATALOGS="$CATALOGS $cat"
12857        XLINGUAS="$XLINGUAS $lang"
12858        ;;
12859      esac
12860    fi
12861  done
12862  LINGUAS="$XLINGUAS"
12863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12864$as_echo "$LINGUAS" >&6; }
12865
12866
12867    DATADIRNAME=share
12868
12869  INSTOBJEXT=.mo
12870
12871  GENCAT=gencat
12872
12873  CATOBJEXT=.gmo
12874
12875fi
12876
12877# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12878# -liconv on the link line twice.
12879case "$LIBINTL" in *$LIBICONV*)
12880	LIBICONV= ;;
12881esac
12882
12883# Check whether --enable-secureplt was given.
12884if test "${enable_secureplt+set}" = set; then :
12885  enableval=$enable_secureplt;
12886fi
12887
12888
12889# Check whether --enable-mingw-wildcard was given.
12890if test "${enable_mingw_wildcard+set}" = set; then :
12891  enableval=$enable_mingw_wildcard;
12892else
12893  enable_mingw_wildcard=platform
12894fi
12895
12896if test x"$enable_mingw_wildcard" != xplatform ; then :
12897
12898cat >>confdefs.h <<_ACEOF
12899#define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12900_ACEOF
12901
12902fi
12903
12904# Check whether --enable-large-address-aware was given.
12905if test "${enable_large_address_aware+set}" = set; then :
12906  enableval=$enable_large_address_aware;
12907fi
12908
12909if test x"$enable_large_address_aware" = xyes; then :
12910
12911$as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12912
12913fi
12914
12915# Check whether --enable-leading-mingw64-underscores was given.
12916if test "${enable_leading_mingw64_underscores+set}" = set; then :
12917  enableval=$enable_leading_mingw64_underscores;
12918fi
12919
12920if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
12921
12922$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12923
12924fi
12925
12926# Check whether --enable-cld was given.
12927if test "${enable_cld+set}" = set; then :
12928  enableval=$enable_cld;
12929else
12930  enable_cld=no
12931fi
12932
12933
12934# Check whether --enable-frame-pointer was given.
12935if test "${enable_frame_pointer+set}" = set; then :
12936  enableval=$enable_frame_pointer;
12937else
12938
12939case $target_os in
12940linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12941  # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12942  enable_frame_pointer=no
12943  ;;
12944*)
12945  enable_frame_pointer=yes
12946  ;;
12947esac
12948
12949fi
12950
12951
12952case $target in
12953i[34567]86-*-* | x86_64-*-*)
12954	if test "x$enable_cld" = xyes; then
12955		tm_defines="${tm_defines} USE_IX86_CLD=1"
12956	fi
12957	if test "x$enable_frame_pointer" = xyes; then
12958		tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12959	fi
12960	;;
12961esac
12962
12963# Windows32 Registry support for specifying GCC installation paths.
12964# Check whether --enable-win32-registry was given.
12965if test "${enable_win32_registry+set}" = set; then :
12966  enableval=$enable_win32_registry;
12967fi
12968
12969
12970case $host_os in
12971  win32 | pe | cygwin* | mingw32*)
12972    if test "x$enable_win32_registry" != xno; then
12973      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12974$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12975if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12976  $as_echo_n "(cached) " >&6
12977else
12978  ac_func_search_save_LIBS=$LIBS
12979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980/* end confdefs.h.  */
12981
12982/* Override any GCC internal prototype to avoid an error.
12983   Use char because int might match the return type of a GCC
12984   builtin and then its argument prototype would still apply.  */
12985#ifdef __cplusplus
12986extern "C"
12987#endif
12988char RegOpenKeyExA ();
12989int
12990main ()
12991{
12992return RegOpenKeyExA ();
12993  ;
12994  return 0;
12995}
12996_ACEOF
12997for ac_lib in '' advapi32; do
12998  if test -z "$ac_lib"; then
12999    ac_res="none required"
13000  else
13001    ac_res=-l$ac_lib
13002    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13003  fi
13004  if ac_fn_cxx_try_link "$LINENO"; then :
13005  ac_cv_search_RegOpenKeyExA=$ac_res
13006fi
13007rm -f core conftest.err conftest.$ac_objext \
13008    conftest$ac_exeext
13009  if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13010  break
13011fi
13012done
13013if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13014
13015else
13016  ac_cv_search_RegOpenKeyExA=no
13017fi
13018rm conftest.$ac_ext
13019LIBS=$ac_func_search_save_LIBS
13020fi
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13022$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13023ac_res=$ac_cv_search_RegOpenKeyExA
13024if test "$ac_res" != no; then :
13025  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13026
13027else
13028  enable_win32_registry=no
13029fi
13030
13031    fi
13032
13033    if test "x$enable_win32_registry" != xno; then
13034
13035$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13036
13037
13038      if test "x$enable_win32_registry" != xyes \
13039         && test "x$enable_win32_registry" != x; then
13040
13041cat >>confdefs.h <<_ACEOF
13042#define WIN32_REGISTRY_KEY "$enable_win32_registry"
13043_ACEOF
13044
13045      fi
13046    fi
13047  ;;
13048esac
13049
13050# Get an absolute path to the GCC top-level source directory
13051holddir=`${PWDCMD-pwd}`
13052cd $srcdir
13053topdir=`${PWDCMD-pwd}`
13054cd $holddir
13055
13056# Conditionalize the makefile for this host machine.
13057xmake_file=
13058for f in ${host_xmake_file}
13059do
13060	if test -f ${srcdir}/config/$f
13061	then
13062		xmake_file="${xmake_file} \$(srcdir)/config/$f"
13063	fi
13064done
13065
13066# Conditionalize the makefile for this target machine.
13067tmake_file_=
13068for f in ${tmake_file}
13069do
13070	if test -f ${srcdir}/config/$f
13071	then
13072		tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13073	fi
13074done
13075tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13076
13077out_object_file=`basename $out_file .c`.o
13078common_out_object_file=`basename $common_out_file .c`.o
13079
13080tm_file_list="options.h"
13081tm_include_list="options.h insn-constants.h"
13082for f in $tm_file; do
13083  case $f in
13084    ./* )
13085       f=`echo $f | sed 's/^..//'`
13086       tm_file_list="${tm_file_list} $f"
13087       tm_include_list="${tm_include_list} $f"
13088       ;;
13089    defaults.h )
13090       tm_file_list="${tm_file_list} \$(srcdir)/$f"
13091       tm_include_list="${tm_include_list} $f"
13092       ;;
13093    * )
13094       tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13095       tm_include_list="${tm_include_list} config/$f"
13096       ;;
13097  esac
13098done
13099
13100tm_p_file_list=
13101tm_p_include_list=
13102for f in $tm_p_file; do
13103  case $f in
13104    tm-preds.h )
13105       tm_p_file_list="${tm_p_file_list} $f"
13106       tm_p_include_list="${tm_p_include_list} $f"
13107       ;;
13108    * )
13109       tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13110       tm_p_include_list="${tm_p_include_list} config/$f"
13111  esac
13112done
13113
13114tm_d_file_list=
13115tm_d_include_list="options.h insn-constants.h"
13116for f in $tm_d_file; do
13117  case $f in
13118    defaults.h )
13119       tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
13120       tm_d_include_list="${tm_d_include_list} $f"
13121       ;;
13122    * )
13123       tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13124       tm_d_include_list="${tm_d_include_list} config/$f"
13125       ;;
13126  esac
13127done
13128
13129xm_file_list=
13130xm_include_list=
13131for f in $xm_file; do
13132  case $f in
13133    ansidecl.h )
13134       xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13135       xm_include_list="${xm_include_list} $f"
13136       ;;
13137    auto-host.h )
13138       xm_file_list="${xm_file_list} $f"
13139       xm_include_list="${xm_include_list} $f"
13140       ;;
13141    * )
13142       xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13143       xm_include_list="${xm_include_list} config/$f"
13144       ;;
13145  esac
13146done
13147
13148host_xm_file_list=
13149host_xm_include_list=
13150for f in $host_xm_file; do
13151  case $f in
13152    ansidecl.h )
13153       host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13154       host_xm_include_list="${host_xm_include_list} $f"
13155       ;;
13156    auto-host.h )
13157       host_xm_file_list="${host_xm_file_list} $f"
13158       host_xm_include_list="${host_xm_include_list} $f"
13159       ;;
13160    * )
13161       host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13162       host_xm_include_list="${host_xm_include_list} config/$f"
13163       ;;
13164  esac
13165done
13166
13167build_xm_file_list=
13168for f in $build_xm_file; do
13169  case $f in
13170    ansidecl.h )
13171       build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13172       build_xm_include_list="${build_xm_include_list} $f"
13173       ;;
13174    auto-build.h | auto-host.h )
13175       build_xm_file_list="${build_xm_file_list} $f"
13176       build_xm_include_list="${build_xm_include_list} $f"
13177       ;;
13178    * )
13179       build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13180       build_xm_include_list="${build_xm_include_list} config/$f"
13181       ;;
13182  esac
13183done
13184
13185# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13186# cross-compiler which does not use the native headers and libraries.
13187# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13188CROSS=
13189ALL=all.internal
13190SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13191BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13192
13193if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13194   test x$build != x$host || test "x$with_build_sysroot" != x; then
13195  if test "x$with_build_sysroot" != x; then
13196    BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13197  else
13198    BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13199  fi
13200
13201  if test x$host != x$target
13202  then
13203    CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13204    ALL=all.cross
13205    SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13206  elif test "x$TARGET_SYSTEM_ROOT" != x; then
13207    SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13208  fi
13209
13210  if test "x$with_build_sysroot" != "x"; then
13211    target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13212  elif test "x$with_sysroot" = x; then
13213    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13214  elif test "x$with_sysroot" = xyes; then
13215    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13216  else
13217    target_header_dir="${with_sysroot}${native_system_header_dir}"
13218  fi
13219else
13220  target_header_dir=${native_system_header_dir}
13221fi
13222
13223# If this is a cross-compiler that does not
13224# have its own set of headers then define
13225# inhibit_libc
13226
13227# If this is using newlib, without having the headers available now,
13228# then define inhibit_libc in LIBGCC2_CFLAGS.
13229# This prevents libgcc2 from containing any code which requires libc
13230# support.
13231: ${inhibit_libc=false}
13232if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13233       test x$with_newlib = xyes ; } &&
13234     { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13235       inhibit_libc=true
13236fi
13237
13238
13239# When building gcc with a cross-compiler, we need to adjust things so
13240# that the generator programs are still built with the native compiler.
13241# Also, we cannot run fixincludes.
13242
13243# These are the normal (build=host) settings:
13244CC_FOR_BUILD='$(CC)'
13245CXX_FOR_BUILD='$(CXX)'
13246BUILD_CFLAGS='$(ALL_CFLAGS)'
13247BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13248BUILD_LDFLAGS='$(LDFLAGS)'
13249STMP_FIXINC=stmp-fixinc
13250
13251BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
13252BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
13253
13254# And these apply if build != host, or we are generating coverage data
13255if test x$build != x$host || test "x$coverage_flags" != x
13256then
13257    BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13258    BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
13259    BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13260
13261    NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
13262    NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
13263    BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
13264    BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
13265fi
13266
13267
13268
13269# Expand extra_headers to include complete path.
13270# This substitutes for lots of t-* files.
13271extra_headers_list=
13272# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13273for file in ${extra_headers} ; do
13274  extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13275done
13276
13277# If use_gcc_tgmath is set, append ginclude/tgmath.h.
13278if test x"$use_gcc_tgmath" = xyes
13279then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13280fi
13281
13282# Define collect2 in Makefile.
13283case $host_can_use_collect2 in
13284  no) collect2= ;;
13285  *) collect2='collect2$(exeext)' ;;
13286esac
13287
13288
13289# Add a definition of USE_COLLECT2 if system wants one.
13290case $use_collect2 in
13291  no) use_collect2= ;;
13292  "") ;;
13293  *)
13294    host_xm_defines="${host_xm_defines} USE_COLLECT2"
13295    xm_defines="${xm_defines} USE_COLLECT2"
13296    case $host_can_use_collect2 in
13297      no)
13298        as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13299        ;;
13300    esac
13301    ;;
13302esac
13303
13304
13305cat >>confdefs.h <<_ACEOF
13306#define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13307_ACEOF
13308
13309
13310# ---------------------------
13311# Assembler & linker features
13312# ---------------------------
13313
13314# During stage 2, ld is actually gcc/collect-ld, which is a small script to
13315# discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13316# However when ld-new is first executed from the build tree, libtool will
13317# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13318# to the build tree.  While doing this we need to use the previous-stage
13319# linker, or we have an infinite loop.  The presence of a shell script as
13320# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13321# the gcc/collect-ld script.  So we need to know how libtool works, or
13322# exec-tool will fail.
13323
13324
13325case `pwd` in
13326  *\ * | *\	*)
13327    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13328$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13329esac
13330
13331
13332
13333macro_version='2.2.7a'
13334macro_revision='1.3134'
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348ltmain="$ac_aux_dir/ltmain.sh"
13349
13350# Backslashify metacharacters that are still active within
13351# double-quoted strings.
13352sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13353
13354# Same as above, but do not quote variable references.
13355double_quote_subst='s/\(["`\\]\)/\\\1/g'
13356
13357# Sed substitution to delay expansion of an escaped shell variable in a
13358# double_quote_subst'ed string.
13359delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13360
13361# Sed substitution to delay expansion of an escaped single quote.
13362delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13363
13364# Sed substitution to avoid accidental globbing in evaled expressions
13365no_glob_subst='s/\*/\\\*/g'
13366
13367ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13368ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13369ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13370
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13372$as_echo_n "checking how to print strings... " >&6; }
13373# Test print first, because it will be a builtin if present.
13374if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13375   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13376  ECHO='print -r --'
13377elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13378  ECHO='printf %s\n'
13379else
13380  # Use this function as a fallback that always works.
13381  func_fallback_echo ()
13382  {
13383    eval 'cat <<_LTECHO_EOF
13384$1
13385_LTECHO_EOF'
13386  }
13387  ECHO='func_fallback_echo'
13388fi
13389
13390# func_echo_all arg...
13391# Invoke $ECHO with all args, space-separated.
13392func_echo_all ()
13393{
13394    $ECHO ""
13395}
13396
13397case "$ECHO" in
13398  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13399$as_echo "printf" >&6; } ;;
13400  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13401$as_echo "print -r" >&6; } ;;
13402  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13403$as_echo "cat" >&6; } ;;
13404esac
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13420$as_echo_n "checking for a sed that does not truncate output... " >&6; }
13421if ${ac_cv_path_SED+:} false; then :
13422  $as_echo_n "(cached) " >&6
13423else
13424            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13425     for ac_i in 1 2 3 4 5 6 7; do
13426       ac_script="$ac_script$as_nl$ac_script"
13427     done
13428     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13429     { ac_script=; unset ac_script;}
13430     if test -z "$SED"; then
13431  ac_path_SED_found=false
13432  # Loop through the user's path and test for each of PROGNAME-LIST
13433  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434for as_dir in $PATH
13435do
13436  IFS=$as_save_IFS
13437  test -z "$as_dir" && as_dir=.
13438    for ac_prog in sed gsed; do
13439    for ac_exec_ext in '' $ac_executable_extensions; do
13440      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13441      as_fn_executable_p "$ac_path_SED" || continue
13442# Check for GNU ac_path_SED and select it if it is found.
13443  # Check for GNU $ac_path_SED
13444case `"$ac_path_SED" --version 2>&1` in
13445*GNU*)
13446  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13447*)
13448  ac_count=0
13449  $as_echo_n 0123456789 >"conftest.in"
13450  while :
13451  do
13452    cat "conftest.in" "conftest.in" >"conftest.tmp"
13453    mv "conftest.tmp" "conftest.in"
13454    cp "conftest.in" "conftest.nl"
13455    $as_echo '' >> "conftest.nl"
13456    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13457    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13458    as_fn_arith $ac_count + 1 && ac_count=$as_val
13459    if test $ac_count -gt ${ac_path_SED_max-0}; then
13460      # Best one so far, save it but keep looking for a better one
13461      ac_cv_path_SED="$ac_path_SED"
13462      ac_path_SED_max=$ac_count
13463    fi
13464    # 10*(2^10) chars as input seems more than enough
13465    test $ac_count -gt 10 && break
13466  done
13467  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13468esac
13469
13470      $ac_path_SED_found && break 3
13471    done
13472  done
13473  done
13474IFS=$as_save_IFS
13475  if test -z "$ac_cv_path_SED"; then
13476    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13477  fi
13478else
13479  ac_cv_path_SED=$SED
13480fi
13481
13482fi
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13484$as_echo "$ac_cv_path_SED" >&6; }
13485 SED="$ac_cv_path_SED"
13486  rm -f conftest.sed
13487
13488test -z "$SED" && SED=sed
13489Xsed="$SED -e 1s/^X//"
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13502$as_echo_n "checking for fgrep... " >&6; }
13503if ${ac_cv_path_FGREP+:} false; then :
13504  $as_echo_n "(cached) " >&6
13505else
13506  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13507   then ac_cv_path_FGREP="$GREP -F"
13508   else
13509     if test -z "$FGREP"; then
13510  ac_path_FGREP_found=false
13511  # Loop through the user's path and test for each of PROGNAME-LIST
13512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13513for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13514do
13515  IFS=$as_save_IFS
13516  test -z "$as_dir" && as_dir=.
13517    for ac_prog in fgrep; do
13518    for ac_exec_ext in '' $ac_executable_extensions; do
13519      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13520      as_fn_executable_p "$ac_path_FGREP" || continue
13521# Check for GNU ac_path_FGREP and select it if it is found.
13522  # Check for GNU $ac_path_FGREP
13523case `"$ac_path_FGREP" --version 2>&1` in
13524*GNU*)
13525  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13526*)
13527  ac_count=0
13528  $as_echo_n 0123456789 >"conftest.in"
13529  while :
13530  do
13531    cat "conftest.in" "conftest.in" >"conftest.tmp"
13532    mv "conftest.tmp" "conftest.in"
13533    cp "conftest.in" "conftest.nl"
13534    $as_echo 'FGREP' >> "conftest.nl"
13535    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13536    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13537    as_fn_arith $ac_count + 1 && ac_count=$as_val
13538    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13539      # Best one so far, save it but keep looking for a better one
13540      ac_cv_path_FGREP="$ac_path_FGREP"
13541      ac_path_FGREP_max=$ac_count
13542    fi
13543    # 10*(2^10) chars as input seems more than enough
13544    test $ac_count -gt 10 && break
13545  done
13546  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13547esac
13548
13549      $ac_path_FGREP_found && break 3
13550    done
13551  done
13552  done
13553IFS=$as_save_IFS
13554  if test -z "$ac_cv_path_FGREP"; then
13555    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13556  fi
13557else
13558  ac_cv_path_FGREP=$FGREP
13559fi
13560
13561   fi
13562fi
13563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13564$as_echo "$ac_cv_path_FGREP" >&6; }
13565 FGREP="$ac_cv_path_FGREP"
13566
13567
13568test -z "$GREP" && GREP=grep
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588# Check whether --with-gnu-ld was given.
13589if test "${with_gnu_ld+set}" = set; then :
13590  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13591else
13592  with_gnu_ld=no
13593fi
13594
13595ac_prog=ld
13596if test "$GCC" = yes; then
13597  # Check if gcc -print-prog-name=ld gives a path.
13598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13599$as_echo_n "checking for ld used by $CC... " >&6; }
13600  case $host in
13601  *-*-mingw*)
13602    # gcc leaves a trailing carriage return which upsets mingw
13603    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13604  *)
13605    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13606  esac
13607  case $ac_prog in
13608    # Accept absolute paths.
13609    [\\/]* | ?:[\\/]*)
13610      re_direlt='/[^/][^/]*/\.\./'
13611      # Canonicalize the pathname of ld
13612      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13613      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13614	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13615      done
13616      test -z "$LD" && LD="$ac_prog"
13617      ;;
13618  "")
13619    # If it fails, then pretend we aren't using GCC.
13620    ac_prog=ld
13621    ;;
13622  *)
13623    # If it is relative, then search for the first ld in PATH.
13624    with_gnu_ld=unknown
13625    ;;
13626  esac
13627elif test "$with_gnu_ld" = yes; then
13628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13629$as_echo_n "checking for GNU ld... " >&6; }
13630else
13631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13632$as_echo_n "checking for non-GNU ld... " >&6; }
13633fi
13634if ${lt_cv_path_LD+:} false; then :
13635  $as_echo_n "(cached) " >&6
13636else
13637  if test -z "$LD"; then
13638  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13639  for ac_dir in $PATH; do
13640    IFS="$lt_save_ifs"
13641    test -z "$ac_dir" && ac_dir=.
13642    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13643      lt_cv_path_LD="$ac_dir/$ac_prog"
13644      # Check to see if the program is GNU ld.  I'd rather use --version,
13645      # but apparently some variants of GNU ld only accept -v.
13646      # Break only if it was the GNU/non-GNU ld that we prefer.
13647      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13648      *GNU* | *'with BFD'*)
13649	test "$with_gnu_ld" != no && break
13650	;;
13651      *)
13652	test "$with_gnu_ld" != yes && break
13653	;;
13654      esac
13655    fi
13656  done
13657  IFS="$lt_save_ifs"
13658else
13659  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13660fi
13661fi
13662
13663LD="$lt_cv_path_LD"
13664if test -n "$LD"; then
13665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13666$as_echo "$LD" >&6; }
13667else
13668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669$as_echo "no" >&6; }
13670fi
13671test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13673$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13674if ${lt_cv_prog_gnu_ld+:} false; then :
13675  $as_echo_n "(cached) " >&6
13676else
13677  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13678case `$LD -v 2>&1 </dev/null` in
13679*GNU* | *'with BFD'*)
13680  lt_cv_prog_gnu_ld=yes
13681  ;;
13682*)
13683  lt_cv_prog_gnu_ld=no
13684  ;;
13685esac
13686fi
13687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13688$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13689with_gnu_ld=$lt_cv_prog_gnu_ld
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13700$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13701if ${lt_cv_path_NM+:} false; then :
13702  $as_echo_n "(cached) " >&6
13703else
13704  if test -n "$NM"; then
13705  # Let the user override the test.
13706  lt_cv_path_NM="$NM"
13707else
13708  lt_nm_to_check="${ac_tool_prefix}nm"
13709  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13710    lt_nm_to_check="$lt_nm_to_check nm"
13711  fi
13712  for lt_tmp_nm in $lt_nm_to_check; do
13713    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13714    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13715      IFS="$lt_save_ifs"
13716      test -z "$ac_dir" && ac_dir=.
13717      tmp_nm="$ac_dir/$lt_tmp_nm"
13718      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13719	# Check to see if the nm accepts a BSD-compat flag.
13720	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
13721	#   nm: unknown option "B" ignored
13722	# Tru64's nm complains that /dev/null is an invalid object file
13723	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13724	*/dev/null* | *'Invalid file or object type'*)
13725	  lt_cv_path_NM="$tmp_nm -B"
13726	  break
13727	  ;;
13728	*)
13729	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13730	  */dev/null*)
13731	    lt_cv_path_NM="$tmp_nm -p"
13732	    break
13733	    ;;
13734	  *)
13735	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13736	    continue # so that we can try to find one that supports BSD flags
13737	    ;;
13738	  esac
13739	  ;;
13740	esac
13741      fi
13742    done
13743    IFS="$lt_save_ifs"
13744  done
13745  : ${lt_cv_path_NM=no}
13746fi
13747fi
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13749$as_echo "$lt_cv_path_NM" >&6; }
13750if test "$lt_cv_path_NM" != "no"; then
13751  NM="$lt_cv_path_NM"
13752else
13753  # Didn't find any BSD compatible name lister, look for dumpbin.
13754  if test -n "$DUMPBIN"; then :
13755    # Let the user override the test.
13756  else
13757    if test -n "$ac_tool_prefix"; then
13758  for ac_prog in dumpbin "link -dump"
13759  do
13760    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13761set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13763$as_echo_n "checking for $ac_word... " >&6; }
13764if ${ac_cv_prog_DUMPBIN+:} false; then :
13765  $as_echo_n "(cached) " >&6
13766else
13767  if test -n "$DUMPBIN"; then
13768  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13769else
13770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13771for as_dir in $PATH
13772do
13773  IFS=$as_save_IFS
13774  test -z "$as_dir" && as_dir=.
13775    for ac_exec_ext in '' $ac_executable_extensions; do
13776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13777    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13779    break 2
13780  fi
13781done
13782  done
13783IFS=$as_save_IFS
13784
13785fi
13786fi
13787DUMPBIN=$ac_cv_prog_DUMPBIN
13788if test -n "$DUMPBIN"; then
13789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13790$as_echo "$DUMPBIN" >&6; }
13791else
13792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13793$as_echo "no" >&6; }
13794fi
13795
13796
13797    test -n "$DUMPBIN" && break
13798  done
13799fi
13800if test -z "$DUMPBIN"; then
13801  ac_ct_DUMPBIN=$DUMPBIN
13802  for ac_prog in dumpbin "link -dump"
13803do
13804  # Extract the first word of "$ac_prog", so it can be a program name with args.
13805set dummy $ac_prog; ac_word=$2
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13807$as_echo_n "checking for $ac_word... " >&6; }
13808if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13809  $as_echo_n "(cached) " >&6
13810else
13811  if test -n "$ac_ct_DUMPBIN"; then
13812  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13813else
13814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815for as_dir in $PATH
13816do
13817  IFS=$as_save_IFS
13818  test -z "$as_dir" && as_dir=.
13819    for ac_exec_ext in '' $ac_executable_extensions; do
13820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13821    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13823    break 2
13824  fi
13825done
13826  done
13827IFS=$as_save_IFS
13828
13829fi
13830fi
13831ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13832if test -n "$ac_ct_DUMPBIN"; then
13833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13834$as_echo "$ac_ct_DUMPBIN" >&6; }
13835else
13836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837$as_echo "no" >&6; }
13838fi
13839
13840
13841  test -n "$ac_ct_DUMPBIN" && break
13842done
13843
13844  if test "x$ac_ct_DUMPBIN" = x; then
13845    DUMPBIN=":"
13846  else
13847    case $cross_compiling:$ac_tool_warned in
13848yes:)
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13851ac_tool_warned=yes ;;
13852esac
13853    DUMPBIN=$ac_ct_DUMPBIN
13854  fi
13855fi
13856
13857    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13858    *COFF*)
13859      DUMPBIN="$DUMPBIN -symbols"
13860      ;;
13861    *)
13862      DUMPBIN=:
13863      ;;
13864    esac
13865  fi
13866
13867  if test "$DUMPBIN" != ":"; then
13868    NM="$DUMPBIN"
13869  fi
13870fi
13871test -z "$NM" && NM=nm
13872
13873
13874
13875
13876
13877
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13879$as_echo_n "checking the name lister ($NM) interface... " >&6; }
13880if ${lt_cv_nm_interface+:} false; then :
13881  $as_echo_n "(cached) " >&6
13882else
13883  lt_cv_nm_interface="BSD nm"
13884  echo "int some_variable = 0;" > conftest.$ac_ext
13885  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13886  (eval "$ac_compile" 2>conftest.err)
13887  cat conftest.err >&5
13888  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13889  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13890  cat conftest.err >&5
13891  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13892  cat conftest.out >&5
13893  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13894    lt_cv_nm_interface="MS dumpbin"
13895  fi
13896  rm -f conftest*
13897fi
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13899$as_echo "$lt_cv_nm_interface" >&6; }
13900
13901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13902$as_echo_n "checking whether ln -s works... " >&6; }
13903LN_S=$as_ln_s
13904if test "$LN_S" = "ln -s"; then
13905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13906$as_echo "yes" >&6; }
13907else
13908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13909$as_echo "no, using $LN_S" >&6; }
13910fi
13911
13912# find the maximum length of command line arguments
13913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13914$as_echo_n "checking the maximum length of command line arguments... " >&6; }
13915if ${lt_cv_sys_max_cmd_len+:} false; then :
13916  $as_echo_n "(cached) " >&6
13917else
13918    i=0
13919  teststring="ABCD"
13920
13921  case $build_os in
13922  msdosdjgpp*)
13923    # On DJGPP, this test can blow up pretty badly due to problems in libc
13924    # (any single argument exceeding 2000 bytes causes a buffer overrun
13925    # during glob expansion).  Even if it were fixed, the result of this
13926    # check would be larger than it should be.
13927    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13928    ;;
13929
13930  gnu*)
13931    # Under GNU Hurd, this test is not required because there is
13932    # no limit to the length of command line arguments.
13933    # Libtool will interpret -1 as no limit whatsoever
13934    lt_cv_sys_max_cmd_len=-1;
13935    ;;
13936
13937  cygwin* | mingw* | cegcc*)
13938    # On Win9x/ME, this test blows up -- it succeeds, but takes
13939    # about 5 minutes as the teststring grows exponentially.
13940    # Worse, since 9x/ME are not pre-emptively multitasking,
13941    # you end up with a "frozen" computer, even though with patience
13942    # the test eventually succeeds (with a max line length of 256k).
13943    # Instead, let's just punt: use the minimum linelength reported by
13944    # all of the supported platforms: 8192 (on NT/2K/XP).
13945    lt_cv_sys_max_cmd_len=8192;
13946    ;;
13947
13948  mint*)
13949    # On MiNT this can take a long time and run out of memory.
13950    lt_cv_sys_max_cmd_len=8192;
13951    ;;
13952
13953  amigaos*)
13954    # On AmigaOS with pdksh, this test takes hours, literally.
13955    # So we just punt and use a minimum line length of 8192.
13956    lt_cv_sys_max_cmd_len=8192;
13957    ;;
13958
13959  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13960    # This has been around since 386BSD, at least.  Likely further.
13961    if test -x /sbin/sysctl; then
13962      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13963    elif test -x /usr/sbin/sysctl; then
13964      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13965    else
13966      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13967    fi
13968    # And add a safety zone
13969    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13970    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13971    ;;
13972
13973  interix*)
13974    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13975    lt_cv_sys_max_cmd_len=196608
13976    ;;
13977
13978  osf*)
13979    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13980    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13981    # nice to cause kernel panics so lets avoid the loop below.
13982    # First set a reasonable default.
13983    lt_cv_sys_max_cmd_len=16384
13984    #
13985    if test -x /sbin/sysconfig; then
13986      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13987        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13988      esac
13989    fi
13990    ;;
13991  sco3.2v5*)
13992    lt_cv_sys_max_cmd_len=102400
13993    ;;
13994  sysv5* | sco5v6* | sysv4.2uw2*)
13995    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13996    if test -n "$kargmax"; then
13997      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
13998    else
13999      lt_cv_sys_max_cmd_len=32768
14000    fi
14001    ;;
14002  *)
14003    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14004    if test -n "$lt_cv_sys_max_cmd_len"; then
14005      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14006      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14007    else
14008      # Make teststring a little bigger before we do anything with it.
14009      # a 1K string should be a reasonable start.
14010      for i in 1 2 3 4 5 6 7 8 ; do
14011        teststring=$teststring$teststring
14012      done
14013      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14014      # If test is not a shell built-in, we'll probably end up computing a
14015      # maximum length that is only half of the actual maximum length, but
14016      # we can't tell.
14017      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14018	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14019	      test $i != 17 # 1/2 MB should be enough
14020      do
14021        i=`expr $i + 1`
14022        teststring=$teststring$teststring
14023      done
14024      # Only check the string length outside the loop.
14025      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14026      teststring=
14027      # Add a significant safety factor because C++ compilers can tack on
14028      # massive amounts of additional arguments before passing them to the
14029      # linker.  It appears as though 1/2 is a usable value.
14030      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14031    fi
14032    ;;
14033  esac
14034
14035fi
14036
14037if test -n $lt_cv_sys_max_cmd_len ; then
14038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14039$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14040else
14041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14042$as_echo "none" >&6; }
14043fi
14044max_cmd_len=$lt_cv_sys_max_cmd_len
14045
14046
14047
14048
14049
14050
14051: ${CP="cp -f"}
14052: ${MV="mv -f"}
14053: ${RM="rm -f"}
14054
14055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14056$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14057# Try some XSI features
14058xsi_shell=no
14059( _lt_dummy="a/b/c"
14060  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14061      = c,a/b,, \
14062    && eval 'test $(( 1 + 1 )) -eq 2 \
14063    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14064  && xsi_shell=yes
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14066$as_echo "$xsi_shell" >&6; }
14067
14068
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14070$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14071lt_shell_append=no
14072( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14073    >/dev/null 2>&1 \
14074  && lt_shell_append=yes
14075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14076$as_echo "$lt_shell_append" >&6; }
14077
14078
14079if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14080  lt_unset=unset
14081else
14082  lt_unset=false
14083fi
14084
14085
14086
14087
14088
14089# test EBCDIC or ASCII
14090case `echo X|tr X '\101'` in
14091 A) # ASCII based system
14092    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14093  lt_SP2NL='tr \040 \012'
14094  lt_NL2SP='tr \015\012 \040\040'
14095  ;;
14096 *) # EBCDIC based system
14097  lt_SP2NL='tr \100 \n'
14098  lt_NL2SP='tr \r\n \100\100'
14099  ;;
14100esac
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14111$as_echo_n "checking for $LD option to reload object files... " >&6; }
14112if ${lt_cv_ld_reload_flag+:} false; then :
14113  $as_echo_n "(cached) " >&6
14114else
14115  lt_cv_ld_reload_flag='-r'
14116fi
14117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14118$as_echo "$lt_cv_ld_reload_flag" >&6; }
14119reload_flag=$lt_cv_ld_reload_flag
14120case $reload_flag in
14121"" | " "*) ;;
14122*) reload_flag=" $reload_flag" ;;
14123esac
14124reload_cmds='$LD$reload_flag -o $output$reload_objs'
14125case $host_os in
14126  darwin*)
14127    if test "$GCC" = yes; then
14128      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14129    else
14130      reload_cmds='$LD$reload_flag -o $output$reload_objs'
14131    fi
14132    ;;
14133esac
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143if test -n "$ac_tool_prefix"; then
14144  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14145set dummy ${ac_tool_prefix}objdump; ac_word=$2
14146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14147$as_echo_n "checking for $ac_word... " >&6; }
14148if ${ac_cv_prog_OBJDUMP+:} false; then :
14149  $as_echo_n "(cached) " >&6
14150else
14151  if test -n "$OBJDUMP"; then
14152  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14153else
14154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155for as_dir in $PATH
14156do
14157  IFS=$as_save_IFS
14158  test -z "$as_dir" && as_dir=.
14159    for ac_exec_ext in '' $ac_executable_extensions; do
14160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14161    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14163    break 2
14164  fi
14165done
14166  done
14167IFS=$as_save_IFS
14168
14169fi
14170fi
14171OBJDUMP=$ac_cv_prog_OBJDUMP
14172if test -n "$OBJDUMP"; then
14173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14174$as_echo "$OBJDUMP" >&6; }
14175else
14176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177$as_echo "no" >&6; }
14178fi
14179
14180
14181fi
14182if test -z "$ac_cv_prog_OBJDUMP"; then
14183  ac_ct_OBJDUMP=$OBJDUMP
14184  # Extract the first word of "objdump", so it can be a program name with args.
14185set dummy objdump; ac_word=$2
14186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14187$as_echo_n "checking for $ac_word... " >&6; }
14188if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14189  $as_echo_n "(cached) " >&6
14190else
14191  if test -n "$ac_ct_OBJDUMP"; then
14192  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14193else
14194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14195for as_dir in $PATH
14196do
14197  IFS=$as_save_IFS
14198  test -z "$as_dir" && as_dir=.
14199    for ac_exec_ext in '' $ac_executable_extensions; do
14200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14201    ac_cv_prog_ac_ct_OBJDUMP="objdump"
14202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14203    break 2
14204  fi
14205done
14206  done
14207IFS=$as_save_IFS
14208
14209fi
14210fi
14211ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14212if test -n "$ac_ct_OBJDUMP"; then
14213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14214$as_echo "$ac_ct_OBJDUMP" >&6; }
14215else
14216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14217$as_echo "no" >&6; }
14218fi
14219
14220  if test "x$ac_ct_OBJDUMP" = x; then
14221    OBJDUMP="false"
14222  else
14223    case $cross_compiling:$ac_tool_warned in
14224yes:)
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14227ac_tool_warned=yes ;;
14228esac
14229    OBJDUMP=$ac_ct_OBJDUMP
14230  fi
14231else
14232  OBJDUMP="$ac_cv_prog_OBJDUMP"
14233fi
14234
14235test -z "$OBJDUMP" && OBJDUMP=objdump
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14246$as_echo_n "checking how to recognize dependent libraries... " >&6; }
14247if ${lt_cv_deplibs_check_method+:} false; then :
14248  $as_echo_n "(cached) " >&6
14249else
14250  lt_cv_file_magic_cmd='$MAGIC_CMD'
14251lt_cv_file_magic_test_file=
14252lt_cv_deplibs_check_method='unknown'
14253# Need to set the preceding variable on all platforms that support
14254# interlibrary dependencies.
14255# 'none' -- dependencies not supported.
14256# `unknown' -- same as none, but documents that we really don't know.
14257# 'pass_all' -- all dependencies passed with no checks.
14258# 'test_compile' -- check by making test program.
14259# 'file_magic [[regex]]' -- check by looking for files in library path
14260# which responds to the $file_magic_cmd with a given extended regex.
14261# If you have `file' or equivalent on your system and you're not sure
14262# whether `pass_all' will *always* work, you probably want this one.
14263
14264case $host_os in
14265aix[4-9]*)
14266  lt_cv_deplibs_check_method=pass_all
14267  ;;
14268
14269beos*)
14270  lt_cv_deplibs_check_method=pass_all
14271  ;;
14272
14273bsdi[45]*)
14274  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14275  lt_cv_file_magic_cmd='/usr/bin/file -L'
14276  lt_cv_file_magic_test_file=/shlib/libc.so
14277  ;;
14278
14279cygwin*)
14280  # func_win32_libid is a shell function defined in ltmain.sh
14281  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14282  lt_cv_file_magic_cmd='func_win32_libid'
14283  ;;
14284
14285mingw* | pw32*)
14286  # Base MSYS/MinGW do not provide the 'file' command needed by
14287  # func_win32_libid shell function, so use a weaker test based on 'objdump',
14288  # unless we find 'file', for example because we are cross-compiling.
14289  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14290  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14291    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14292    lt_cv_file_magic_cmd='func_win32_libid'
14293  else
14294    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14295    lt_cv_file_magic_cmd='$OBJDUMP -f'
14296  fi
14297  ;;
14298
14299cegcc*)
14300  # use the weaker test based on 'objdump'. See mingw*.
14301  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14302  lt_cv_file_magic_cmd='$OBJDUMP -f'
14303  ;;
14304
14305darwin* | rhapsody*)
14306  lt_cv_deplibs_check_method=pass_all
14307  ;;
14308
14309freebsd* | dragonfly*)
14310  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14311    case $host_cpu in
14312    i*86 )
14313      # Not sure whether the presence of OpenBSD here was a mistake.
14314      # Let's accept both of them until this is cleared up.
14315      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14316      lt_cv_file_magic_cmd=/usr/bin/file
14317      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14318      ;;
14319    esac
14320  else
14321    lt_cv_deplibs_check_method=pass_all
14322  fi
14323  ;;
14324
14325gnu*)
14326  lt_cv_deplibs_check_method=pass_all
14327  ;;
14328
14329haiku*)
14330  lt_cv_deplibs_check_method=pass_all
14331  ;;
14332
14333hpux10.20* | hpux11*)
14334  lt_cv_file_magic_cmd=/usr/bin/file
14335  case $host_cpu in
14336  ia64*)
14337    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14338    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14339    ;;
14340  hppa*64*)
14341    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]'
14342    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14343    ;;
14344  *)
14345    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14346    lt_cv_file_magic_test_file=/usr/lib/libc.sl
14347    ;;
14348  esac
14349  ;;
14350
14351interix[3-9]*)
14352  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14353  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14354  ;;
14355
14356irix5* | irix6* | nonstopux*)
14357  case $LD in
14358  *-32|*"-32 ") libmagic=32-bit;;
14359  *-n32|*"-n32 ") libmagic=N32;;
14360  *-64|*"-64 ") libmagic=64-bit;;
14361  *) libmagic=never-match;;
14362  esac
14363  lt_cv_deplibs_check_method=pass_all
14364  ;;
14365
14366# This must be Linux ELF.
14367linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14368  lt_cv_deplibs_check_method=pass_all
14369  ;;
14370
14371netbsd*)
14372  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14373    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14374  else
14375    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14376  fi
14377  ;;
14378
14379newos6*)
14380  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14381  lt_cv_file_magic_cmd=/usr/bin/file
14382  lt_cv_file_magic_test_file=/usr/lib/libnls.so
14383  ;;
14384
14385*nto* | *qnx*)
14386  lt_cv_deplibs_check_method=pass_all
14387  ;;
14388
14389openbsd*)
14390  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14391    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14392  else
14393    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14394  fi
14395  ;;
14396
14397osf3* | osf4* | osf5*)
14398  lt_cv_deplibs_check_method=pass_all
14399  ;;
14400
14401rdos*)
14402  lt_cv_deplibs_check_method=pass_all
14403  ;;
14404
14405solaris*)
14406  lt_cv_deplibs_check_method=pass_all
14407  ;;
14408
14409sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14410  lt_cv_deplibs_check_method=pass_all
14411  ;;
14412
14413sysv4 | sysv4.3*)
14414  case $host_vendor in
14415  motorola)
14416    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]'
14417    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14418    ;;
14419  ncr)
14420    lt_cv_deplibs_check_method=pass_all
14421    ;;
14422  sequent)
14423    lt_cv_file_magic_cmd='/bin/file'
14424    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14425    ;;
14426  sni)
14427    lt_cv_file_magic_cmd='/bin/file'
14428    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14429    lt_cv_file_magic_test_file=/lib/libc.so
14430    ;;
14431  siemens)
14432    lt_cv_deplibs_check_method=pass_all
14433    ;;
14434  pc)
14435    lt_cv_deplibs_check_method=pass_all
14436    ;;
14437  esac
14438  ;;
14439
14440tpf*)
14441  lt_cv_deplibs_check_method=pass_all
14442  ;;
14443esac
14444
14445fi
14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14447$as_echo "$lt_cv_deplibs_check_method" >&6; }
14448file_magic_cmd=$lt_cv_file_magic_cmd
14449deplibs_check_method=$lt_cv_deplibs_check_method
14450test -z "$deplibs_check_method" && deplibs_check_method=unknown
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463if test -n "$ac_tool_prefix"; then
14464  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14465set dummy ${ac_tool_prefix}ar; ac_word=$2
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14467$as_echo_n "checking for $ac_word... " >&6; }
14468if ${ac_cv_prog_AR+:} false; then :
14469  $as_echo_n "(cached) " >&6
14470else
14471  if test -n "$AR"; then
14472  ac_cv_prog_AR="$AR" # Let the user override the test.
14473else
14474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475for as_dir in $PATH
14476do
14477  IFS=$as_save_IFS
14478  test -z "$as_dir" && as_dir=.
14479    for ac_exec_ext in '' $ac_executable_extensions; do
14480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14481    ac_cv_prog_AR="${ac_tool_prefix}ar"
14482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14483    break 2
14484  fi
14485done
14486  done
14487IFS=$as_save_IFS
14488
14489fi
14490fi
14491AR=$ac_cv_prog_AR
14492if test -n "$AR"; then
14493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14494$as_echo "$AR" >&6; }
14495else
14496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497$as_echo "no" >&6; }
14498fi
14499
14500
14501fi
14502if test -z "$ac_cv_prog_AR"; then
14503  ac_ct_AR=$AR
14504  # Extract the first word of "ar", so it can be a program name with args.
14505set dummy ar; ac_word=$2
14506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14507$as_echo_n "checking for $ac_word... " >&6; }
14508if ${ac_cv_prog_ac_ct_AR+:} false; then :
14509  $as_echo_n "(cached) " >&6
14510else
14511  if test -n "$ac_ct_AR"; then
14512  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14513else
14514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14515for as_dir in $PATH
14516do
14517  IFS=$as_save_IFS
14518  test -z "$as_dir" && as_dir=.
14519    for ac_exec_ext in '' $ac_executable_extensions; do
14520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14521    ac_cv_prog_ac_ct_AR="ar"
14522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14523    break 2
14524  fi
14525done
14526  done
14527IFS=$as_save_IFS
14528
14529fi
14530fi
14531ac_ct_AR=$ac_cv_prog_ac_ct_AR
14532if test -n "$ac_ct_AR"; then
14533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14534$as_echo "$ac_ct_AR" >&6; }
14535else
14536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14537$as_echo "no" >&6; }
14538fi
14539
14540  if test "x$ac_ct_AR" = x; then
14541    AR="false"
14542  else
14543    case $cross_compiling:$ac_tool_warned in
14544yes:)
14545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14547ac_tool_warned=yes ;;
14548esac
14549    AR=$ac_ct_AR
14550  fi
14551else
14552  AR="$ac_cv_prog_AR"
14553fi
14554
14555test -z "$AR" && AR=ar
14556test -z "$AR_FLAGS" && AR_FLAGS=cru
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568if test -n "$ac_tool_prefix"; then
14569  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14570set dummy ${ac_tool_prefix}strip; ac_word=$2
14571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14572$as_echo_n "checking for $ac_word... " >&6; }
14573if ${ac_cv_prog_STRIP+:} false; then :
14574  $as_echo_n "(cached) " >&6
14575else
14576  if test -n "$STRIP"; then
14577  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14578else
14579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14580for as_dir in $PATH
14581do
14582  IFS=$as_save_IFS
14583  test -z "$as_dir" && as_dir=.
14584    for ac_exec_ext in '' $ac_executable_extensions; do
14585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14586    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14588    break 2
14589  fi
14590done
14591  done
14592IFS=$as_save_IFS
14593
14594fi
14595fi
14596STRIP=$ac_cv_prog_STRIP
14597if test -n "$STRIP"; then
14598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14599$as_echo "$STRIP" >&6; }
14600else
14601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14602$as_echo "no" >&6; }
14603fi
14604
14605
14606fi
14607if test -z "$ac_cv_prog_STRIP"; then
14608  ac_ct_STRIP=$STRIP
14609  # Extract the first word of "strip", so it can be a program name with args.
14610set dummy strip; ac_word=$2
14611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14612$as_echo_n "checking for $ac_word... " >&6; }
14613if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14614  $as_echo_n "(cached) " >&6
14615else
14616  if test -n "$ac_ct_STRIP"; then
14617  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14618else
14619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14620for as_dir in $PATH
14621do
14622  IFS=$as_save_IFS
14623  test -z "$as_dir" && as_dir=.
14624    for ac_exec_ext in '' $ac_executable_extensions; do
14625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14626    ac_cv_prog_ac_ct_STRIP="strip"
14627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14628    break 2
14629  fi
14630done
14631  done
14632IFS=$as_save_IFS
14633
14634fi
14635fi
14636ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14637if test -n "$ac_ct_STRIP"; then
14638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14639$as_echo "$ac_ct_STRIP" >&6; }
14640else
14641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14642$as_echo "no" >&6; }
14643fi
14644
14645  if test "x$ac_ct_STRIP" = x; then
14646    STRIP=":"
14647  else
14648    case $cross_compiling:$ac_tool_warned in
14649yes:)
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14652ac_tool_warned=yes ;;
14653esac
14654    STRIP=$ac_ct_STRIP
14655  fi
14656else
14657  STRIP="$ac_cv_prog_STRIP"
14658fi
14659
14660test -z "$STRIP" && STRIP=:
14661
14662
14663
14664
14665
14666
14667if test -n "$ac_tool_prefix"; then
14668  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14669set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14671$as_echo_n "checking for $ac_word... " >&6; }
14672if ${ac_cv_prog_RANLIB+:} false; then :
14673  $as_echo_n "(cached) " >&6
14674else
14675  if test -n "$RANLIB"; then
14676  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14677else
14678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14679for as_dir in $PATH
14680do
14681  IFS=$as_save_IFS
14682  test -z "$as_dir" && as_dir=.
14683    for ac_exec_ext in '' $ac_executable_extensions; do
14684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14685    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14687    break 2
14688  fi
14689done
14690  done
14691IFS=$as_save_IFS
14692
14693fi
14694fi
14695RANLIB=$ac_cv_prog_RANLIB
14696if test -n "$RANLIB"; then
14697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14698$as_echo "$RANLIB" >&6; }
14699else
14700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701$as_echo "no" >&6; }
14702fi
14703
14704
14705fi
14706if test -z "$ac_cv_prog_RANLIB"; then
14707  ac_ct_RANLIB=$RANLIB
14708  # Extract the first word of "ranlib", so it can be a program name with args.
14709set dummy ranlib; ac_word=$2
14710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14711$as_echo_n "checking for $ac_word... " >&6; }
14712if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14713  $as_echo_n "(cached) " >&6
14714else
14715  if test -n "$ac_ct_RANLIB"; then
14716  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14717else
14718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14719for as_dir in $PATH
14720do
14721  IFS=$as_save_IFS
14722  test -z "$as_dir" && as_dir=.
14723    for ac_exec_ext in '' $ac_executable_extensions; do
14724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14725    ac_cv_prog_ac_ct_RANLIB="ranlib"
14726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14727    break 2
14728  fi
14729done
14730  done
14731IFS=$as_save_IFS
14732
14733fi
14734fi
14735ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14736if test -n "$ac_ct_RANLIB"; then
14737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14738$as_echo "$ac_ct_RANLIB" >&6; }
14739else
14740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741$as_echo "no" >&6; }
14742fi
14743
14744  if test "x$ac_ct_RANLIB" = x; then
14745    RANLIB=":"
14746  else
14747    case $cross_compiling:$ac_tool_warned in
14748yes:)
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14751ac_tool_warned=yes ;;
14752esac
14753    RANLIB=$ac_ct_RANLIB
14754  fi
14755else
14756  RANLIB="$ac_cv_prog_RANLIB"
14757fi
14758
14759test -z "$RANLIB" && RANLIB=:
14760
14761
14762
14763
14764
14765
14766# Determine commands to create old-style static archives.
14767old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14768old_postinstall_cmds='chmod 644 $oldlib'
14769old_postuninstall_cmds=
14770
14771if test -n "$RANLIB"; then
14772  case $host_os in
14773  openbsd*)
14774    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14775    ;;
14776  *)
14777    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14778    ;;
14779  esac
14780  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14781fi
14782
14783case $host_os in
14784  darwin*)
14785    lock_old_archive_extraction=yes ;;
14786  *)
14787    lock_old_archive_extraction=no ;;
14788esac
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828# If no C compiler was specified, use CC.
14829LTCC=${LTCC-"$CC"}
14830
14831# If no C compiler flags were specified, use CFLAGS.
14832LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14833
14834# Allow CC to be a program name with arguments.
14835compiler=$CC
14836
14837
14838# Check for command to grab the raw symbol name followed by C symbol from nm.
14839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14840$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14841if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14842  $as_echo_n "(cached) " >&6
14843else
14844
14845# These are sane defaults that work on at least a few old systems.
14846# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14847
14848# Character class describing NM global symbol codes.
14849symcode='[BCDEGRST]'
14850
14851# Regexp to match symbols that can be accessed directly from C.
14852sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14853
14854# Define system-specific variables.
14855case $host_os in
14856aix*)
14857  symcode='[BCDT]'
14858  ;;
14859cygwin* | mingw* | pw32* | cegcc*)
14860  symcode='[ABCDGISTW]'
14861  ;;
14862hpux*)
14863  if test "$host_cpu" = ia64; then
14864    symcode='[ABCDEGRST]'
14865  fi
14866  ;;
14867irix* | nonstopux*)
14868  symcode='[BCDEGRST]'
14869  ;;
14870osf*)
14871  symcode='[BCDEGQRST]'
14872  ;;
14873solaris*)
14874  symcode='[BDRT]'
14875  ;;
14876sco3.2v5*)
14877  symcode='[DT]'
14878  ;;
14879sysv4.2uw2*)
14880  symcode='[DT]'
14881  ;;
14882sysv5* | sco5v6* | unixware* | OpenUNIX*)
14883  symcode='[ABDT]'
14884  ;;
14885sysv4)
14886  symcode='[DFNSTU]'
14887  ;;
14888esac
14889
14890# If we're using GNU nm, then use its standard symbol codes.
14891case `$NM -V 2>&1` in
14892*GNU* | *'with BFD'*)
14893  symcode='[ABCDGIRSTW]' ;;
14894esac
14895
14896# Transform an extracted symbol line into a proper C declaration.
14897# Some systems (esp. on ia64) link data and code symbols differently,
14898# so use this general approach.
14899lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14900
14901# Transform an extracted symbol line into symbol name and symbol address
14902lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
14903lt_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'"
14904
14905# Handle CRLF in mingw tool chain
14906opt_cr=
14907case $build_os in
14908mingw*)
14909  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14910  ;;
14911esac
14912
14913# Try without a prefix underscore, then with it.
14914for ac_symprfx in "" "_"; do
14915
14916  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14917  symxfrm="\\1 $ac_symprfx\\2 \\2"
14918
14919  # Write the raw and C identifiers.
14920  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14921    # Fake it for dumpbin and say T for any non-static function
14922    # and D for any global variable.
14923    # Also find C++ and __fastcall symbols from MSVC++,
14924    # which start with @ or ?.
14925    lt_cv_sys_global_symbol_pipe="$AWK '"\
14926"     {last_section=section; section=\$ 3};"\
14927"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14928"     \$ 0!~/External *\|/{next};"\
14929"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14930"     {if(hide[section]) next};"\
14931"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14932"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14933"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
14934"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14935"     ' prfx=^$ac_symprfx"
14936  else
14937    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14938  fi
14939
14940  # Check to see that the pipe works correctly.
14941  pipe_works=no
14942
14943  rm -f conftest*
14944  cat > conftest.$ac_ext <<_LT_EOF
14945#ifdef __cplusplus
14946extern "C" {
14947#endif
14948char nm_test_var;
14949void nm_test_func(void);
14950void nm_test_func(void){}
14951#ifdef __cplusplus
14952}
14953#endif
14954int main(){nm_test_var='a';nm_test_func();return(0);}
14955_LT_EOF
14956
14957  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14958  (eval $ac_compile) 2>&5
14959  ac_status=$?
14960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14961  test $ac_status = 0; }; then
14962    # Now try to grab the symbols.
14963    nlist=conftest.nm
14964    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14965  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14966  ac_status=$?
14967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14968  test $ac_status = 0; } && test -s "$nlist"; then
14969      # Try sorting and uniquifying the output.
14970      if sort "$nlist" | uniq > "$nlist"T; then
14971	mv -f "$nlist"T "$nlist"
14972      else
14973	rm -f "$nlist"T
14974      fi
14975
14976      # Make sure that we snagged all the symbols we need.
14977      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14978	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14979	  cat <<_LT_EOF > conftest.$ac_ext
14980#ifdef __cplusplus
14981extern "C" {
14982#endif
14983
14984_LT_EOF
14985	  # Now generate the symbol file.
14986	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14987
14988	  cat <<_LT_EOF >> conftest.$ac_ext
14989
14990/* The mapping between symbol names and symbols.  */
14991const struct {
14992  const char *name;
14993  void       *address;
14994}
14995lt__PROGRAM__LTX_preloaded_symbols[] =
14996{
14997  { "@PROGRAM@", (void *) 0 },
14998_LT_EOF
14999	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15000	  cat <<\_LT_EOF >> conftest.$ac_ext
15001  {0, (void *) 0}
15002};
15003
15004/* This works around a problem in FreeBSD linker */
15005#ifdef FREEBSD_WORKAROUND
15006static const void *lt_preloaded_setup() {
15007  return lt__PROGRAM__LTX_preloaded_symbols;
15008}
15009#endif
15010
15011#ifdef __cplusplus
15012}
15013#endif
15014_LT_EOF
15015	  # Now try linking the two files.
15016	  mv conftest.$ac_objext conftstm.$ac_objext
15017	  lt_save_LIBS="$LIBS"
15018	  lt_save_CFLAGS="$CFLAGS"
15019	  LIBS="conftstm.$ac_objext"
15020	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15021	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15022  (eval $ac_link) 2>&5
15023  ac_status=$?
15024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15025  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15026	    pipe_works=yes
15027	  fi
15028	  LIBS="$lt_save_LIBS"
15029	  CFLAGS="$lt_save_CFLAGS"
15030	else
15031	  echo "cannot find nm_test_func in $nlist" >&5
15032	fi
15033      else
15034	echo "cannot find nm_test_var in $nlist" >&5
15035      fi
15036    else
15037      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15038    fi
15039  else
15040    echo "$progname: failed program was:" >&5
15041    cat conftest.$ac_ext >&5
15042  fi
15043  rm -rf conftest* conftst*
15044
15045  # Do not use the global_symbol_pipe unless it works.
15046  if test "$pipe_works" = yes; then
15047    break
15048  else
15049    lt_cv_sys_global_symbol_pipe=
15050  fi
15051done
15052
15053fi
15054
15055if test -z "$lt_cv_sys_global_symbol_pipe"; then
15056  lt_cv_sys_global_symbol_to_cdecl=
15057fi
15058if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15060$as_echo "failed" >&6; }
15061else
15062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15063$as_echo "ok" >&6; }
15064fi
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087# Check whether --enable-libtool-lock was given.
15088if test "${enable_libtool_lock+set}" = set; then :
15089  enableval=$enable_libtool_lock;
15090fi
15091
15092test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15093
15094# Some flags need to be propagated to the compiler or linker for good
15095# libtool support.
15096case $host in
15097ia64-*-hpux*)
15098  # Find out which ABI we are using.
15099  echo 'int i;' > conftest.$ac_ext
15100  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15101  (eval $ac_compile) 2>&5
15102  ac_status=$?
15103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15104  test $ac_status = 0; }; then
15105    case `/usr/bin/file conftest.$ac_objext` in
15106      *ELF-32*)
15107	HPUX_IA64_MODE="32"
15108	;;
15109      *ELF-64*)
15110	HPUX_IA64_MODE="64"
15111	;;
15112    esac
15113  fi
15114  rm -rf conftest*
15115  ;;
15116*-*-irix6*)
15117  # Find out which ABI we are using.
15118  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15119  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15120  (eval $ac_compile) 2>&5
15121  ac_status=$?
15122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15123  test $ac_status = 0; }; then
15124    if test "$lt_cv_prog_gnu_ld" = yes; then
15125      case `/usr/bin/file conftest.$ac_objext` in
15126	*32-bit*)
15127	  LD="${LD-ld} -melf32bsmip"
15128	  ;;
15129	*N32*)
15130	  LD="${LD-ld} -melf32bmipn32"
15131	  ;;
15132	*64-bit*)
15133	  LD="${LD-ld} -melf64bmip"
15134	;;
15135      esac
15136    else
15137      case `/usr/bin/file conftest.$ac_objext` in
15138	*32-bit*)
15139	  LD="${LD-ld} -32"
15140	  ;;
15141	*N32*)
15142	  LD="${LD-ld} -n32"
15143	  ;;
15144	*64-bit*)
15145	  LD="${LD-ld} -64"
15146	  ;;
15147      esac
15148    fi
15149  fi
15150  rm -rf conftest*
15151  ;;
15152
15153x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15154s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15155  # Find out which ABI we are using.
15156  echo 'int i;' > conftest.$ac_ext
15157  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15158  (eval $ac_compile) 2>&5
15159  ac_status=$?
15160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15161  test $ac_status = 0; }; then
15162    case `/usr/bin/file conftest.o` in
15163      *32-bit*)
15164	case $host in
15165	  x86_64-*kfreebsd*-gnu)
15166	    LD="${LD-ld} -m elf_i386_fbsd"
15167	    ;;
15168	  x86_64-*linux*)
15169	    case `/usr/bin/file conftest.o` in
15170	      *x86-64*)
15171		LD="${LD-ld} -m elf32_x86_64"
15172		;;
15173	      *)
15174		LD="${LD-ld} -m elf_i386"
15175		;;
15176	    esac
15177	    ;;
15178	  powerpc64le-*linux*)
15179	    LD="${LD-ld} -m elf32lppclinux"
15180	    ;;
15181	  powerpc64-*linux*)
15182	    LD="${LD-ld} -m elf32ppclinux"
15183	    ;;
15184	  s390x-*linux*)
15185	    LD="${LD-ld} -m elf_s390"
15186	    ;;
15187	  sparc64-*linux*)
15188	    LD="${LD-ld} -m elf32_sparc"
15189	    ;;
15190	esac
15191	;;
15192      *64-bit*)
15193	case $host in
15194	  x86_64-*kfreebsd*-gnu)
15195	    LD="${LD-ld} -m elf_x86_64_fbsd"
15196	    ;;
15197	  x86_64-*linux*)
15198	    LD="${LD-ld} -m elf_x86_64"
15199	    ;;
15200	  powerpcle-*linux*)
15201	    LD="${LD-ld} -m elf64lppc"
15202	    ;;
15203	  powerpc-*linux*)
15204	    LD="${LD-ld} -m elf64ppc"
15205	    ;;
15206	  s390*-*linux*|s390*-*tpf*)
15207	    LD="${LD-ld} -m elf64_s390"
15208	    ;;
15209	  sparc*-*linux*)
15210	    LD="${LD-ld} -m elf64_sparc"
15211	    ;;
15212	esac
15213	;;
15214    esac
15215  fi
15216  rm -rf conftest*
15217  ;;
15218
15219*-*-sco3.2v5*)
15220  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15221  SAVE_CFLAGS="$CFLAGS"
15222  CFLAGS="$CFLAGS -belf"
15223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15224$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15225if ${lt_cv_cc_needs_belf+:} false; then :
15226  $as_echo_n "(cached) " >&6
15227else
15228  ac_ext=c
15229ac_cpp='$CPP $CPPFLAGS'
15230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15232ac_compiler_gnu=$ac_cv_c_compiler_gnu
15233
15234     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235/* end confdefs.h.  */
15236
15237int
15238main ()
15239{
15240
15241  ;
15242  return 0;
15243}
15244_ACEOF
15245if ac_fn_c_try_link "$LINENO"; then :
15246  lt_cv_cc_needs_belf=yes
15247else
15248  lt_cv_cc_needs_belf=no
15249fi
15250rm -f core conftest.err conftest.$ac_objext \
15251    conftest$ac_exeext conftest.$ac_ext
15252     ac_ext=c
15253ac_cpp='$CPP $CPPFLAGS'
15254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15256ac_compiler_gnu=$ac_cv_c_compiler_gnu
15257
15258fi
15259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15260$as_echo "$lt_cv_cc_needs_belf" >&6; }
15261  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15262    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15263    CFLAGS="$SAVE_CFLAGS"
15264  fi
15265  ;;
15266sparc*-*solaris*)
15267  # Find out which ABI we are using.
15268  echo 'int i;' > conftest.$ac_ext
15269  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15270  (eval $ac_compile) 2>&5
15271  ac_status=$?
15272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15273  test $ac_status = 0; }; then
15274    case `/usr/bin/file conftest.o` in
15275    *64-bit*)
15276      case $lt_cv_prog_gnu_ld in
15277      yes*) LD="${LD-ld} -m elf64_sparc" ;;
15278      *)
15279	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15280	  LD="${LD-ld} -64"
15281	fi
15282	;;
15283      esac
15284      ;;
15285    esac
15286  fi
15287  rm -rf conftest*
15288  ;;
15289esac
15290
15291need_locks="$enable_libtool_lock"
15292
15293
15294  case $host_os in
15295    rhapsody* | darwin*)
15296    if test -n "$ac_tool_prefix"; then
15297  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15298set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15300$as_echo_n "checking for $ac_word... " >&6; }
15301if ${ac_cv_prog_DSYMUTIL+:} false; then :
15302  $as_echo_n "(cached) " >&6
15303else
15304  if test -n "$DSYMUTIL"; then
15305  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15306else
15307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15308for as_dir in $PATH
15309do
15310  IFS=$as_save_IFS
15311  test -z "$as_dir" && as_dir=.
15312    for ac_exec_ext in '' $ac_executable_extensions; do
15313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15314    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15316    break 2
15317  fi
15318done
15319  done
15320IFS=$as_save_IFS
15321
15322fi
15323fi
15324DSYMUTIL=$ac_cv_prog_DSYMUTIL
15325if test -n "$DSYMUTIL"; then
15326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15327$as_echo "$DSYMUTIL" >&6; }
15328else
15329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15330$as_echo "no" >&6; }
15331fi
15332
15333
15334fi
15335if test -z "$ac_cv_prog_DSYMUTIL"; then
15336  ac_ct_DSYMUTIL=$DSYMUTIL
15337  # Extract the first word of "dsymutil", so it can be a program name with args.
15338set dummy dsymutil; ac_word=$2
15339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15340$as_echo_n "checking for $ac_word... " >&6; }
15341if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15342  $as_echo_n "(cached) " >&6
15343else
15344  if test -n "$ac_ct_DSYMUTIL"; then
15345  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15346else
15347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15348for as_dir in $PATH
15349do
15350  IFS=$as_save_IFS
15351  test -z "$as_dir" && as_dir=.
15352    for ac_exec_ext in '' $ac_executable_extensions; do
15353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15354    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15356    break 2
15357  fi
15358done
15359  done
15360IFS=$as_save_IFS
15361
15362fi
15363fi
15364ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15365if test -n "$ac_ct_DSYMUTIL"; then
15366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15367$as_echo "$ac_ct_DSYMUTIL" >&6; }
15368else
15369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15370$as_echo "no" >&6; }
15371fi
15372
15373  if test "x$ac_ct_DSYMUTIL" = x; then
15374    DSYMUTIL=":"
15375  else
15376    case $cross_compiling:$ac_tool_warned in
15377yes:)
15378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15380ac_tool_warned=yes ;;
15381esac
15382    DSYMUTIL=$ac_ct_DSYMUTIL
15383  fi
15384else
15385  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15386fi
15387
15388    if test -n "$ac_tool_prefix"; then
15389  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15390set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15392$as_echo_n "checking for $ac_word... " >&6; }
15393if ${ac_cv_prog_NMEDIT+:} false; then :
15394  $as_echo_n "(cached) " >&6
15395else
15396  if test -n "$NMEDIT"; then
15397  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15398else
15399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15400for as_dir in $PATH
15401do
15402  IFS=$as_save_IFS
15403  test -z "$as_dir" && as_dir=.
15404    for ac_exec_ext in '' $ac_executable_extensions; do
15405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15406    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15408    break 2
15409  fi
15410done
15411  done
15412IFS=$as_save_IFS
15413
15414fi
15415fi
15416NMEDIT=$ac_cv_prog_NMEDIT
15417if test -n "$NMEDIT"; then
15418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15419$as_echo "$NMEDIT" >&6; }
15420else
15421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15422$as_echo "no" >&6; }
15423fi
15424
15425
15426fi
15427if test -z "$ac_cv_prog_NMEDIT"; then
15428  ac_ct_NMEDIT=$NMEDIT
15429  # Extract the first word of "nmedit", so it can be a program name with args.
15430set dummy nmedit; ac_word=$2
15431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15432$as_echo_n "checking for $ac_word... " >&6; }
15433if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15434  $as_echo_n "(cached) " >&6
15435else
15436  if test -n "$ac_ct_NMEDIT"; then
15437  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15438else
15439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15440for as_dir in $PATH
15441do
15442  IFS=$as_save_IFS
15443  test -z "$as_dir" && as_dir=.
15444    for ac_exec_ext in '' $ac_executable_extensions; do
15445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15446    ac_cv_prog_ac_ct_NMEDIT="nmedit"
15447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15448    break 2
15449  fi
15450done
15451  done
15452IFS=$as_save_IFS
15453
15454fi
15455fi
15456ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15457if test -n "$ac_ct_NMEDIT"; then
15458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15459$as_echo "$ac_ct_NMEDIT" >&6; }
15460else
15461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462$as_echo "no" >&6; }
15463fi
15464
15465  if test "x$ac_ct_NMEDIT" = x; then
15466    NMEDIT=":"
15467  else
15468    case $cross_compiling:$ac_tool_warned in
15469yes:)
15470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15472ac_tool_warned=yes ;;
15473esac
15474    NMEDIT=$ac_ct_NMEDIT
15475  fi
15476else
15477  NMEDIT="$ac_cv_prog_NMEDIT"
15478fi
15479
15480    if test -n "$ac_tool_prefix"; then
15481  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15482set dummy ${ac_tool_prefix}lipo; ac_word=$2
15483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15484$as_echo_n "checking for $ac_word... " >&6; }
15485if ${ac_cv_prog_LIPO+:} false; then :
15486  $as_echo_n "(cached) " >&6
15487else
15488  if test -n "$LIPO"; then
15489  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15490else
15491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15492for as_dir in $PATH
15493do
15494  IFS=$as_save_IFS
15495  test -z "$as_dir" && as_dir=.
15496    for ac_exec_ext in '' $ac_executable_extensions; do
15497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15498    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15500    break 2
15501  fi
15502done
15503  done
15504IFS=$as_save_IFS
15505
15506fi
15507fi
15508LIPO=$ac_cv_prog_LIPO
15509if test -n "$LIPO"; then
15510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15511$as_echo "$LIPO" >&6; }
15512else
15513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15514$as_echo "no" >&6; }
15515fi
15516
15517
15518fi
15519if test -z "$ac_cv_prog_LIPO"; then
15520  ac_ct_LIPO=$LIPO
15521  # Extract the first word of "lipo", so it can be a program name with args.
15522set dummy lipo; ac_word=$2
15523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15524$as_echo_n "checking for $ac_word... " >&6; }
15525if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15526  $as_echo_n "(cached) " >&6
15527else
15528  if test -n "$ac_ct_LIPO"; then
15529  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15530else
15531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15532for as_dir in $PATH
15533do
15534  IFS=$as_save_IFS
15535  test -z "$as_dir" && as_dir=.
15536    for ac_exec_ext in '' $ac_executable_extensions; do
15537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15538    ac_cv_prog_ac_ct_LIPO="lipo"
15539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15540    break 2
15541  fi
15542done
15543  done
15544IFS=$as_save_IFS
15545
15546fi
15547fi
15548ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15549if test -n "$ac_ct_LIPO"; then
15550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15551$as_echo "$ac_ct_LIPO" >&6; }
15552else
15553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15554$as_echo "no" >&6; }
15555fi
15556
15557  if test "x$ac_ct_LIPO" = x; then
15558    LIPO=":"
15559  else
15560    case $cross_compiling:$ac_tool_warned in
15561yes:)
15562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15564ac_tool_warned=yes ;;
15565esac
15566    LIPO=$ac_ct_LIPO
15567  fi
15568else
15569  LIPO="$ac_cv_prog_LIPO"
15570fi
15571
15572    if test -n "$ac_tool_prefix"; then
15573  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15574set dummy ${ac_tool_prefix}otool; ac_word=$2
15575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15576$as_echo_n "checking for $ac_word... " >&6; }
15577if ${ac_cv_prog_OTOOL+:} false; then :
15578  $as_echo_n "(cached) " >&6
15579else
15580  if test -n "$OTOOL"; then
15581  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15582else
15583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15584for as_dir in $PATH
15585do
15586  IFS=$as_save_IFS
15587  test -z "$as_dir" && as_dir=.
15588    for ac_exec_ext in '' $ac_executable_extensions; do
15589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15590    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15592    break 2
15593  fi
15594done
15595  done
15596IFS=$as_save_IFS
15597
15598fi
15599fi
15600OTOOL=$ac_cv_prog_OTOOL
15601if test -n "$OTOOL"; then
15602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15603$as_echo "$OTOOL" >&6; }
15604else
15605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15606$as_echo "no" >&6; }
15607fi
15608
15609
15610fi
15611if test -z "$ac_cv_prog_OTOOL"; then
15612  ac_ct_OTOOL=$OTOOL
15613  # Extract the first word of "otool", so it can be a program name with args.
15614set dummy otool; ac_word=$2
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15616$as_echo_n "checking for $ac_word... " >&6; }
15617if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15618  $as_echo_n "(cached) " >&6
15619else
15620  if test -n "$ac_ct_OTOOL"; then
15621  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15622else
15623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15624for as_dir in $PATH
15625do
15626  IFS=$as_save_IFS
15627  test -z "$as_dir" && as_dir=.
15628    for ac_exec_ext in '' $ac_executable_extensions; do
15629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15630    ac_cv_prog_ac_ct_OTOOL="otool"
15631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15632    break 2
15633  fi
15634done
15635  done
15636IFS=$as_save_IFS
15637
15638fi
15639fi
15640ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15641if test -n "$ac_ct_OTOOL"; then
15642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15643$as_echo "$ac_ct_OTOOL" >&6; }
15644else
15645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15646$as_echo "no" >&6; }
15647fi
15648
15649  if test "x$ac_ct_OTOOL" = x; then
15650    OTOOL=":"
15651  else
15652    case $cross_compiling:$ac_tool_warned in
15653yes:)
15654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15656ac_tool_warned=yes ;;
15657esac
15658    OTOOL=$ac_ct_OTOOL
15659  fi
15660else
15661  OTOOL="$ac_cv_prog_OTOOL"
15662fi
15663
15664    if test -n "$ac_tool_prefix"; then
15665  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15666set dummy ${ac_tool_prefix}otool64; ac_word=$2
15667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15668$as_echo_n "checking for $ac_word... " >&6; }
15669if ${ac_cv_prog_OTOOL64+:} false; then :
15670  $as_echo_n "(cached) " >&6
15671else
15672  if test -n "$OTOOL64"; then
15673  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15674else
15675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15676for as_dir in $PATH
15677do
15678  IFS=$as_save_IFS
15679  test -z "$as_dir" && as_dir=.
15680    for ac_exec_ext in '' $ac_executable_extensions; do
15681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15682    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15684    break 2
15685  fi
15686done
15687  done
15688IFS=$as_save_IFS
15689
15690fi
15691fi
15692OTOOL64=$ac_cv_prog_OTOOL64
15693if test -n "$OTOOL64"; then
15694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15695$as_echo "$OTOOL64" >&6; }
15696else
15697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15698$as_echo "no" >&6; }
15699fi
15700
15701
15702fi
15703if test -z "$ac_cv_prog_OTOOL64"; then
15704  ac_ct_OTOOL64=$OTOOL64
15705  # Extract the first word of "otool64", so it can be a program name with args.
15706set dummy otool64; ac_word=$2
15707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15708$as_echo_n "checking for $ac_word... " >&6; }
15709if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15710  $as_echo_n "(cached) " >&6
15711else
15712  if test -n "$ac_ct_OTOOL64"; then
15713  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15714else
15715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15716for as_dir in $PATH
15717do
15718  IFS=$as_save_IFS
15719  test -z "$as_dir" && as_dir=.
15720    for ac_exec_ext in '' $ac_executable_extensions; do
15721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15722    ac_cv_prog_ac_ct_OTOOL64="otool64"
15723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15724    break 2
15725  fi
15726done
15727  done
15728IFS=$as_save_IFS
15729
15730fi
15731fi
15732ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15733if test -n "$ac_ct_OTOOL64"; then
15734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15735$as_echo "$ac_ct_OTOOL64" >&6; }
15736else
15737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15738$as_echo "no" >&6; }
15739fi
15740
15741  if test "x$ac_ct_OTOOL64" = x; then
15742    OTOOL64=":"
15743  else
15744    case $cross_compiling:$ac_tool_warned in
15745yes:)
15746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15748ac_tool_warned=yes ;;
15749esac
15750    OTOOL64=$ac_ct_OTOOL64
15751  fi
15752else
15753  OTOOL64="$ac_cv_prog_OTOOL64"
15754fi
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15783$as_echo_n "checking for -single_module linker flag... " >&6; }
15784if ${lt_cv_apple_cc_single_mod+:} false; then :
15785  $as_echo_n "(cached) " >&6
15786else
15787  lt_cv_apple_cc_single_mod=no
15788      if test -z "${LT_MULTI_MODULE}"; then
15789	# By default we will add the -single_module flag. You can override
15790	# by either setting the environment variable LT_MULTI_MODULE
15791	# non-empty at configure time, or by adding -multi_module to the
15792	# link flags.
15793	rm -rf libconftest.dylib*
15794	echo "int foo(void){return 1;}" > conftest.c
15795	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15796-dynamiclib -Wl,-single_module conftest.c" >&5
15797	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15798	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15799        _lt_result=$?
15800	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15801	  lt_cv_apple_cc_single_mod=yes
15802	else
15803	  cat conftest.err >&5
15804	fi
15805	rm -rf libconftest.dylib*
15806	rm -f conftest.*
15807      fi
15808fi
15809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15810$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15812$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15813if ${lt_cv_ld_exported_symbols_list+:} false; then :
15814  $as_echo_n "(cached) " >&6
15815else
15816  lt_cv_ld_exported_symbols_list=no
15817      save_LDFLAGS=$LDFLAGS
15818      echo "_main" > conftest.sym
15819      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15820      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15821/* end confdefs.h.  */
15822
15823int
15824main ()
15825{
15826
15827  ;
15828  return 0;
15829}
15830_ACEOF
15831if ac_fn_c_try_link "$LINENO"; then :
15832  lt_cv_ld_exported_symbols_list=yes
15833else
15834  lt_cv_ld_exported_symbols_list=no
15835fi
15836rm -f core conftest.err conftest.$ac_objext \
15837    conftest$ac_exeext conftest.$ac_ext
15838	LDFLAGS="$save_LDFLAGS"
15839
15840fi
15841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15842$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15844$as_echo_n "checking for -force_load linker flag... " >&6; }
15845if ${lt_cv_ld_force_load+:} false; then :
15846  $as_echo_n "(cached) " >&6
15847else
15848  lt_cv_ld_force_load=no
15849      cat > conftest.c << _LT_EOF
15850int forced_loaded() { return 2;}
15851_LT_EOF
15852      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15853      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15854      echo "$AR cru libconftest.a conftest.o" >&5
15855      $AR cru libconftest.a conftest.o 2>&5
15856      cat > conftest.c << _LT_EOF
15857int main() { return 0;}
15858_LT_EOF
15859      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15860      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15861      _lt_result=$?
15862      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15863	lt_cv_ld_force_load=yes
15864      else
15865	cat conftest.err >&5
15866      fi
15867        rm -f conftest.err libconftest.a conftest conftest.c
15868        rm -rf conftest.dSYM
15869
15870fi
15871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15872$as_echo "$lt_cv_ld_force_load" >&6; }
15873    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
15874    # build without first building modern cctools / linker.
15875    case $host_cpu-$host_os in
15876    *-rhapsody* | *-darwin1.[012])
15877      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15878    *-darwin1.*)
15879      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15880    *-darwin*)
15881      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
15882      # deployment target is forced to an earlier version.
15883      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
15884	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
15885	  ;;
15886	10.[012][,.]*)
15887	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15888	  ;;
15889	*)
15890	  ;;
15891     esac
15892    ;;
15893  esac
15894    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15895      _lt_dar_single_mod='$single_module'
15896    fi
15897    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15898      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15899    else
15900      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15901    fi
15902    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15903      _lt_dsymutil='~$DSYMUTIL $lib || :'
15904    else
15905      _lt_dsymutil=
15906    fi
15907    ;;
15908  esac
15909
15910
15911for ac_header in dlfcn.h
15912do :
15913  ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15914if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15915  cat >>confdefs.h <<_ACEOF
15916#define HAVE_DLFCN_H 1
15917_ACEOF
15918
15919fi
15920done
15921
15922
15923
15924
15925
15926# Set options
15927
15928
15929
15930        enable_dlopen=no
15931
15932
15933  enable_win32_dll=no
15934
15935
15936            # Check whether --enable-shared was given.
15937if test "${enable_shared+set}" = set; then :
15938  enableval=$enable_shared; p=${PACKAGE-default}
15939    case $enableval in
15940    yes) enable_shared=yes ;;
15941    no) enable_shared=no ;;
15942    *)
15943      enable_shared=no
15944      # Look at the argument we got.  We use all the common list separators.
15945      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15946      for pkg in $enableval; do
15947	IFS="$lt_save_ifs"
15948	if test "X$pkg" = "X$p"; then
15949	  enable_shared=yes
15950	fi
15951      done
15952      IFS="$lt_save_ifs"
15953      ;;
15954    esac
15955else
15956  enable_shared=yes
15957fi
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967  # Check whether --enable-static was given.
15968if test "${enable_static+set}" = set; then :
15969  enableval=$enable_static; p=${PACKAGE-default}
15970    case $enableval in
15971    yes) enable_static=yes ;;
15972    no) enable_static=no ;;
15973    *)
15974     enable_static=no
15975      # Look at the argument we got.  We use all the common list separators.
15976      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15977      for pkg in $enableval; do
15978	IFS="$lt_save_ifs"
15979	if test "X$pkg" = "X$p"; then
15980	  enable_static=yes
15981	fi
15982      done
15983      IFS="$lt_save_ifs"
15984      ;;
15985    esac
15986else
15987  enable_static=yes
15988fi
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999# Check whether --with-pic was given.
16000if test "${with_pic+set}" = set; then :
16001  withval=$with_pic; pic_mode="$withval"
16002else
16003  pic_mode=default
16004fi
16005
16006
16007test -z "$pic_mode" && pic_mode=default
16008
16009
16010
16011
16012
16013
16014
16015  # Check whether --enable-fast-install was given.
16016if test "${enable_fast_install+set}" = set; then :
16017  enableval=$enable_fast_install; p=${PACKAGE-default}
16018    case $enableval in
16019    yes) enable_fast_install=yes ;;
16020    no) enable_fast_install=no ;;
16021    *)
16022      enable_fast_install=no
16023      # Look at the argument we got.  We use all the common list separators.
16024      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16025      for pkg in $enableval; do
16026	IFS="$lt_save_ifs"
16027	if test "X$pkg" = "X$p"; then
16028	  enable_fast_install=yes
16029	fi
16030      done
16031      IFS="$lt_save_ifs"
16032      ;;
16033    esac
16034else
16035  enable_fast_install=yes
16036fi
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048# This can be used to rebuild libtool when needed
16049LIBTOOL_DEPS="$ltmain"
16050
16051# Always use our own libtool.
16052LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079test -z "$LN_S" && LN_S="ln -s"
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094if test -n "${ZSH_VERSION+set}" ; then
16095   setopt NO_GLOB_SUBST
16096fi
16097
16098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16099$as_echo_n "checking for objdir... " >&6; }
16100if ${lt_cv_objdir+:} false; then :
16101  $as_echo_n "(cached) " >&6
16102else
16103  rm -f .libs 2>/dev/null
16104mkdir .libs 2>/dev/null
16105if test -d .libs; then
16106  lt_cv_objdir=.libs
16107else
16108  # MS-DOS does not allow filenames that begin with a dot.
16109  lt_cv_objdir=_libs
16110fi
16111rmdir .libs 2>/dev/null
16112fi
16113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16114$as_echo "$lt_cv_objdir" >&6; }
16115objdir=$lt_cv_objdir
16116
16117
16118
16119
16120
16121cat >>confdefs.h <<_ACEOF
16122#define LT_OBJDIR "$lt_cv_objdir/"
16123_ACEOF
16124
16125
16126
16127
16128case $host_os in
16129aix3*)
16130  # AIX sometimes has problems with the GCC collect2 program.  For some
16131  # reason, if we set the COLLECT_NAMES environment variable, the problems
16132  # vanish in a puff of smoke.
16133  if test "X${COLLECT_NAMES+set}" != Xset; then
16134    COLLECT_NAMES=
16135    export COLLECT_NAMES
16136  fi
16137  ;;
16138esac
16139
16140# Global variables:
16141ofile=libtool
16142can_build_shared=yes
16143
16144# All known linkers require a `.a' archive for static linking (except MSVC,
16145# which needs '.lib').
16146libext=a
16147
16148with_gnu_ld="$lt_cv_prog_gnu_ld"
16149
16150old_CC="$CC"
16151old_CFLAGS="$CFLAGS"
16152
16153# Set sane defaults for various variables
16154test -z "$CC" && CC=cc
16155test -z "$LTCC" && LTCC=$CC
16156test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16157test -z "$LD" && LD=ld
16158test -z "$ac_objext" && ac_objext=o
16159
16160for cc_temp in $compiler""; do
16161  case $cc_temp in
16162    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16163    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16164    \-*) ;;
16165    *) break;;
16166  esac
16167done
16168cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16169
16170
16171# Only perform the check for file, if the check method requires it
16172test -z "$MAGIC_CMD" && MAGIC_CMD=file
16173case $deplibs_check_method in
16174file_magic*)
16175  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16176    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16177$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16178if ${lt_cv_path_MAGIC_CMD+:} false; then :
16179  $as_echo_n "(cached) " >&6
16180else
16181  case $MAGIC_CMD in
16182[\\/*] |  ?:[\\/]*)
16183  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16184  ;;
16185*)
16186  lt_save_MAGIC_CMD="$MAGIC_CMD"
16187  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16188  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16189  for ac_dir in $ac_dummy; do
16190    IFS="$lt_save_ifs"
16191    test -z "$ac_dir" && ac_dir=.
16192    if test -f $ac_dir/${ac_tool_prefix}file; then
16193      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16194      if test -n "$file_magic_test_file"; then
16195	case $deplibs_check_method in
16196	"file_magic "*)
16197	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16198	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16199	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16200	    $EGREP "$file_magic_regex" > /dev/null; then
16201	    :
16202	  else
16203	    cat <<_LT_EOF 1>&2
16204
16205*** Warning: the command libtool uses to detect shared libraries,
16206*** $file_magic_cmd, produces output that libtool cannot recognize.
16207*** The result is that libtool may fail to recognize shared libraries
16208*** as such.  This will affect the creation of libtool libraries that
16209*** depend on shared libraries, but programs linked with such libtool
16210*** libraries will work regardless of this problem.  Nevertheless, you
16211*** may want to report the problem to your system manager and/or to
16212*** bug-libtool@gnu.org
16213
16214_LT_EOF
16215	  fi ;;
16216	esac
16217      fi
16218      break
16219    fi
16220  done
16221  IFS="$lt_save_ifs"
16222  MAGIC_CMD="$lt_save_MAGIC_CMD"
16223  ;;
16224esac
16225fi
16226
16227MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16228if test -n "$MAGIC_CMD"; then
16229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16230$as_echo "$MAGIC_CMD" >&6; }
16231else
16232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16233$as_echo "no" >&6; }
16234fi
16235
16236
16237
16238
16239
16240if test -z "$lt_cv_path_MAGIC_CMD"; then
16241  if test -n "$ac_tool_prefix"; then
16242    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16243$as_echo_n "checking for file... " >&6; }
16244if ${lt_cv_path_MAGIC_CMD+:} false; then :
16245  $as_echo_n "(cached) " >&6
16246else
16247  case $MAGIC_CMD in
16248[\\/*] |  ?:[\\/]*)
16249  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16250  ;;
16251*)
16252  lt_save_MAGIC_CMD="$MAGIC_CMD"
16253  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16254  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16255  for ac_dir in $ac_dummy; do
16256    IFS="$lt_save_ifs"
16257    test -z "$ac_dir" && ac_dir=.
16258    if test -f $ac_dir/file; then
16259      lt_cv_path_MAGIC_CMD="$ac_dir/file"
16260      if test -n "$file_magic_test_file"; then
16261	case $deplibs_check_method in
16262	"file_magic "*)
16263	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16264	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16265	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16266	    $EGREP "$file_magic_regex" > /dev/null; then
16267	    :
16268	  else
16269	    cat <<_LT_EOF 1>&2
16270
16271*** Warning: the command libtool uses to detect shared libraries,
16272*** $file_magic_cmd, produces output that libtool cannot recognize.
16273*** The result is that libtool may fail to recognize shared libraries
16274*** as such.  This will affect the creation of libtool libraries that
16275*** depend on shared libraries, but programs linked with such libtool
16276*** libraries will work regardless of this problem.  Nevertheless, you
16277*** may want to report the problem to your system manager and/or to
16278*** bug-libtool@gnu.org
16279
16280_LT_EOF
16281	  fi ;;
16282	esac
16283      fi
16284      break
16285    fi
16286  done
16287  IFS="$lt_save_ifs"
16288  MAGIC_CMD="$lt_save_MAGIC_CMD"
16289  ;;
16290esac
16291fi
16292
16293MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16294if test -n "$MAGIC_CMD"; then
16295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16296$as_echo "$MAGIC_CMD" >&6; }
16297else
16298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16299$as_echo "no" >&6; }
16300fi
16301
16302
16303  else
16304    MAGIC_CMD=:
16305  fi
16306fi
16307
16308  fi
16309  ;;
16310esac
16311
16312# Use C for the default configuration in the libtool script
16313
16314lt_save_CC="$CC"
16315ac_ext=c
16316ac_cpp='$CPP $CPPFLAGS'
16317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16319ac_compiler_gnu=$ac_cv_c_compiler_gnu
16320
16321
16322# Source file extension for C test sources.
16323ac_ext=c
16324
16325# Object file extension for compiled C test sources.
16326objext=o
16327objext=$objext
16328
16329# Code to be used in simple compile tests
16330lt_simple_compile_test_code="int some_variable = 0;"
16331
16332# Code to be used in simple link tests
16333lt_simple_link_test_code='int main(){return(0);}'
16334
16335
16336
16337
16338
16339
16340
16341# If no C compiler was specified, use CC.
16342LTCC=${LTCC-"$CC"}
16343
16344# If no C compiler flags were specified, use CFLAGS.
16345LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16346
16347# Allow CC to be a program name with arguments.
16348compiler=$CC
16349
16350# Save the default compiler, since it gets overwritten when the other
16351# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16352compiler_DEFAULT=$CC
16353
16354# save warnings/boilerplate of simple test code
16355ac_outfile=conftest.$ac_objext
16356echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16357eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16358_lt_compiler_boilerplate=`cat conftest.err`
16359$RM conftest*
16360
16361ac_outfile=conftest.$ac_objext
16362echo "$lt_simple_link_test_code" >conftest.$ac_ext
16363eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16364_lt_linker_boilerplate=`cat conftest.err`
16365$RM -r conftest*
16366
16367
16368## CAVEAT EMPTOR:
16369## There is no encapsulation within the following macros, do not change
16370## the running order or otherwise move them around unless you know exactly
16371## what you are doing...
16372if test -n "$compiler"; then
16373
16374lt_prog_compiler_no_builtin_flag=
16375
16376if test "$GCC" = yes; then
16377  case $cc_basename in
16378  nvcc*)
16379    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16380  *)
16381    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16382  esac
16383
16384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16385$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16386if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16387  $as_echo_n "(cached) " >&6
16388else
16389  lt_cv_prog_compiler_rtti_exceptions=no
16390   ac_outfile=conftest.$ac_objext
16391   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16392   lt_compiler_flag="-fno-rtti -fno-exceptions"
16393   # Insert the option either (1) after the last *FLAGS variable, or
16394   # (2) before a word containing "conftest.", or (3) at the end.
16395   # Note that $ac_compile itself does not contain backslashes and begins
16396   # with a dollar sign (not a hyphen), so the echo should work correctly.
16397   # The option is referenced via a variable to avoid confusing sed.
16398   lt_compile=`echo "$ac_compile" | $SED \
16399   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16400   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16401   -e 's:$: $lt_compiler_flag:'`
16402   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16403   (eval "$lt_compile" 2>conftest.err)
16404   ac_status=$?
16405   cat conftest.err >&5
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   if (exit $ac_status) && test -s "$ac_outfile"; then
16408     # The compiler can only warn and ignore the option if not recognized
16409     # So say no if there are warnings other than the usual output.
16410     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16411     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16412     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16413       lt_cv_prog_compiler_rtti_exceptions=yes
16414     fi
16415   fi
16416   $RM conftest*
16417
16418fi
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16420$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16421
16422if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16423    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16424else
16425    :
16426fi
16427
16428fi
16429
16430
16431
16432
16433
16434
16435  lt_prog_compiler_wl=
16436lt_prog_compiler_pic=
16437lt_prog_compiler_static=
16438
16439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16440$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16441
16442  if test "$GCC" = yes; then
16443    lt_prog_compiler_wl='-Wl,'
16444    lt_prog_compiler_static='-static'
16445
16446    case $host_os in
16447      aix*)
16448      # All AIX code is PIC.
16449      if test "$host_cpu" = ia64; then
16450	# AIX 5 now supports IA64 processor
16451	lt_prog_compiler_static='-Bstatic'
16452      fi
16453      lt_prog_compiler_pic='-fPIC'
16454      ;;
16455
16456    amigaos*)
16457      case $host_cpu in
16458      powerpc)
16459            # see comment about AmigaOS4 .so support
16460            lt_prog_compiler_pic='-fPIC'
16461        ;;
16462      m68k)
16463            # FIXME: we need at least 68020 code to build shared libraries, but
16464            # adding the `-m68020' flag to GCC prevents building anything better,
16465            # like `-m68040'.
16466            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16467        ;;
16468      esac
16469      ;;
16470
16471    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16472      # PIC is the default for these OSes.
16473      ;;
16474
16475    mingw* | cygwin* | pw32* | os2* | cegcc*)
16476      # This hack is so that the source file can tell whether it is being
16477      # built for inclusion in a dll (and should export symbols for example).
16478      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16479      # (--disable-auto-import) libraries
16480      lt_prog_compiler_pic='-DDLL_EXPORT'
16481      ;;
16482
16483    darwin* | rhapsody*)
16484      # PIC is the default on this platform
16485      # Common symbols not allowed in MH_DYLIB files
16486      lt_prog_compiler_pic='-fno-common'
16487      ;;
16488
16489    haiku*)
16490      # PIC is the default for Haiku.
16491      # The "-static" flag exists, but is broken.
16492      lt_prog_compiler_static=
16493      ;;
16494
16495    hpux*)
16496      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16497      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16498      # sets the default TLS model and affects inlining.
16499      case $host_cpu in
16500      hppa*64*)
16501	# +Z the default
16502	;;
16503      *)
16504	lt_prog_compiler_pic='-fPIC'
16505	;;
16506      esac
16507      ;;
16508
16509    interix[3-9]*)
16510      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16511      # Instead, we relocate shared libraries at runtime.
16512      ;;
16513
16514    msdosdjgpp*)
16515      # Just because we use GCC doesn't mean we suddenly get shared libraries
16516      # on systems that don't support them.
16517      lt_prog_compiler_can_build_shared=no
16518      enable_shared=no
16519      ;;
16520
16521    *nto* | *qnx*)
16522      # QNX uses GNU C++, but need to define -shared option too, otherwise
16523      # it will coredump.
16524      lt_prog_compiler_pic='-fPIC -shared'
16525      ;;
16526
16527    sysv4*MP*)
16528      if test -d /usr/nec; then
16529	lt_prog_compiler_pic=-Kconform_pic
16530      fi
16531      ;;
16532
16533    *)
16534      lt_prog_compiler_pic='-fPIC'
16535      ;;
16536    esac
16537
16538    case $cc_basename in
16539    nvcc*) # Cuda Compiler Driver 2.2
16540      lt_prog_compiler_wl='-Xlinker '
16541      lt_prog_compiler_pic='-Xcompiler -fPIC'
16542      ;;
16543    esac
16544  else
16545    # PORTME Check for flag to pass linker flags through the system compiler.
16546    case $host_os in
16547    aix*)
16548      lt_prog_compiler_wl='-Wl,'
16549      if test "$host_cpu" = ia64; then
16550	# AIX 5 now supports IA64 processor
16551	lt_prog_compiler_static='-Bstatic'
16552      else
16553	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16554      fi
16555      ;;
16556
16557    mingw* | cygwin* | pw32* | os2* | cegcc*)
16558      # This hack is so that the source file can tell whether it is being
16559      # built for inclusion in a dll (and should export symbols for example).
16560      lt_prog_compiler_pic='-DDLL_EXPORT'
16561      ;;
16562
16563    hpux9* | hpux10* | hpux11*)
16564      lt_prog_compiler_wl='-Wl,'
16565      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16566      # not for PA HP-UX.
16567      case $host_cpu in
16568      hppa*64*|ia64*)
16569	# +Z the default
16570	;;
16571      *)
16572	lt_prog_compiler_pic='+Z'
16573	;;
16574      esac
16575      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16576      lt_prog_compiler_static='${wl}-a ${wl}archive'
16577      ;;
16578
16579    irix5* | irix6* | nonstopux*)
16580      lt_prog_compiler_wl='-Wl,'
16581      # PIC (with -KPIC) is the default.
16582      lt_prog_compiler_static='-non_shared'
16583      ;;
16584
16585    linux* | k*bsd*-gnu | kopensolaris*-gnu)
16586      case $cc_basename in
16587      # old Intel for x86_64 which still supported -KPIC.
16588      ecc*)
16589	lt_prog_compiler_wl='-Wl,'
16590	lt_prog_compiler_pic='-KPIC'
16591	lt_prog_compiler_static='-static'
16592        ;;
16593      # icc used to be incompatible with GCC.
16594      # ICC 10 doesn't accept -KPIC any more.
16595      icc* | ifort*)
16596	lt_prog_compiler_wl='-Wl,'
16597	lt_prog_compiler_pic='-fPIC'
16598	lt_prog_compiler_static='-static'
16599        ;;
16600      # Lahey Fortran 8.1.
16601      lf95*)
16602	lt_prog_compiler_wl='-Wl,'
16603	lt_prog_compiler_pic='--shared'
16604	lt_prog_compiler_static='--static'
16605	;;
16606      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16607        # Portland Group compilers (*not* the Pentium gcc compiler,
16608	# which looks to be a dead project)
16609	lt_prog_compiler_wl='-Wl,'
16610	lt_prog_compiler_pic='-fpic'
16611	lt_prog_compiler_static='-Bstatic'
16612        ;;
16613      ccc*)
16614        lt_prog_compiler_wl='-Wl,'
16615        # All Alpha code is PIC.
16616        lt_prog_compiler_static='-non_shared'
16617        ;;
16618      xl* | bgxl* | bgf* | mpixl*)
16619	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16620	lt_prog_compiler_wl='-Wl,'
16621	lt_prog_compiler_pic='-qpic'
16622	lt_prog_compiler_static='-qstaticlink'
16623	;;
16624      *)
16625	case `$CC -V 2>&1 | sed 5q` in
16626	*Sun\ F* | *Sun*Fortran*)
16627	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16628	  lt_prog_compiler_pic='-KPIC'
16629	  lt_prog_compiler_static='-Bstatic'
16630	  lt_prog_compiler_wl=''
16631	  ;;
16632	*Sun\ C*)
16633	  # Sun C 5.9
16634	  lt_prog_compiler_pic='-KPIC'
16635	  lt_prog_compiler_static='-Bstatic'
16636	  lt_prog_compiler_wl='-Wl,'
16637	  ;;
16638	esac
16639	;;
16640      esac
16641      ;;
16642
16643    newsos6)
16644      lt_prog_compiler_pic='-KPIC'
16645      lt_prog_compiler_static='-Bstatic'
16646      ;;
16647
16648    *nto* | *qnx*)
16649      # QNX uses GNU C++, but need to define -shared option too, otherwise
16650      # it will coredump.
16651      lt_prog_compiler_pic='-fPIC -shared'
16652      ;;
16653
16654    osf3* | osf4* | osf5*)
16655      lt_prog_compiler_wl='-Wl,'
16656      # All OSF/1 code is PIC.
16657      lt_prog_compiler_static='-non_shared'
16658      ;;
16659
16660    rdos*)
16661      lt_prog_compiler_static='-non_shared'
16662      ;;
16663
16664    solaris*)
16665      lt_prog_compiler_pic='-KPIC'
16666      lt_prog_compiler_static='-Bstatic'
16667      case $cc_basename in
16668      f77* | f90* | f95*)
16669	lt_prog_compiler_wl='-Qoption ld ';;
16670      *)
16671	lt_prog_compiler_wl='-Wl,';;
16672      esac
16673      ;;
16674
16675    sunos4*)
16676      lt_prog_compiler_wl='-Qoption ld '
16677      lt_prog_compiler_pic='-PIC'
16678      lt_prog_compiler_static='-Bstatic'
16679      ;;
16680
16681    sysv4 | sysv4.2uw2* | sysv4.3*)
16682      lt_prog_compiler_wl='-Wl,'
16683      lt_prog_compiler_pic='-KPIC'
16684      lt_prog_compiler_static='-Bstatic'
16685      ;;
16686
16687    sysv4*MP*)
16688      if test -d /usr/nec ;then
16689	lt_prog_compiler_pic='-Kconform_pic'
16690	lt_prog_compiler_static='-Bstatic'
16691      fi
16692      ;;
16693
16694    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16695      lt_prog_compiler_wl='-Wl,'
16696      lt_prog_compiler_pic='-KPIC'
16697      lt_prog_compiler_static='-Bstatic'
16698      ;;
16699
16700    unicos*)
16701      lt_prog_compiler_wl='-Wl,'
16702      lt_prog_compiler_can_build_shared=no
16703      ;;
16704
16705    uts4*)
16706      lt_prog_compiler_pic='-pic'
16707      lt_prog_compiler_static='-Bstatic'
16708      ;;
16709
16710    *)
16711      lt_prog_compiler_can_build_shared=no
16712      ;;
16713    esac
16714  fi
16715
16716case $host_os in
16717  # For platforms which do not support PIC, -DPIC is meaningless:
16718  *djgpp*)
16719    lt_prog_compiler_pic=
16720    ;;
16721  *)
16722    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16723    ;;
16724esac
16725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16726$as_echo "$lt_prog_compiler_pic" >&6; }
16727
16728
16729
16730
16731
16732
16733#
16734# Check to make sure the PIC flag actually works.
16735#
16736if test -n "$lt_prog_compiler_pic"; then
16737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16738$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16739if ${lt_cv_prog_compiler_pic_works+:} false; then :
16740  $as_echo_n "(cached) " >&6
16741else
16742  lt_cv_prog_compiler_pic_works=no
16743   ac_outfile=conftest.$ac_objext
16744   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16745   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16746   # Insert the option either (1) after the last *FLAGS variable, or
16747   # (2) before a word containing "conftest.", or (3) at the end.
16748   # Note that $ac_compile itself does not contain backslashes and begins
16749   # with a dollar sign (not a hyphen), so the echo should work correctly.
16750   # The option is referenced via a variable to avoid confusing sed.
16751   lt_compile=`echo "$ac_compile" | $SED \
16752   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16753   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16754   -e 's:$: $lt_compiler_flag:'`
16755   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16756   (eval "$lt_compile" 2>conftest.err)
16757   ac_status=$?
16758   cat conftest.err >&5
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   if (exit $ac_status) && test -s "$ac_outfile"; then
16761     # The compiler can only warn and ignore the option if not recognized
16762     # So say no if there are warnings other than the usual output.
16763     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16764     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16765     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16766       lt_cv_prog_compiler_pic_works=yes
16767     fi
16768   fi
16769   $RM conftest*
16770
16771fi
16772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16773$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16774
16775if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16776    case $lt_prog_compiler_pic in
16777     "" | " "*) ;;
16778     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16779     esac
16780else
16781    lt_prog_compiler_pic=
16782     lt_prog_compiler_can_build_shared=no
16783fi
16784
16785fi
16786
16787
16788
16789
16790
16791
16792#
16793# Check to make sure the static flag actually works.
16794#
16795wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16797$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16798if ${lt_cv_prog_compiler_static_works+:} false; then :
16799  $as_echo_n "(cached) " >&6
16800else
16801  lt_cv_prog_compiler_static_works=no
16802   save_LDFLAGS="$LDFLAGS"
16803   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16804   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16805   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16806     # The linker can only warn and ignore the option if not recognized
16807     # So say no if there are warnings
16808     if test -s conftest.err; then
16809       # Append any errors to the config.log.
16810       cat conftest.err 1>&5
16811       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16812       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16813       if diff conftest.exp conftest.er2 >/dev/null; then
16814         lt_cv_prog_compiler_static_works=yes
16815       fi
16816     else
16817       lt_cv_prog_compiler_static_works=yes
16818     fi
16819   fi
16820   $RM -r conftest*
16821   LDFLAGS="$save_LDFLAGS"
16822
16823fi
16824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16825$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16826
16827if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16828    :
16829else
16830    lt_prog_compiler_static=
16831fi
16832
16833
16834
16835
16836
16837
16838
16839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16840$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16841if ${lt_cv_prog_compiler_c_o+:} false; then :
16842  $as_echo_n "(cached) " >&6
16843else
16844  lt_cv_prog_compiler_c_o=no
16845   $RM -r conftest 2>/dev/null
16846   mkdir conftest
16847   cd conftest
16848   mkdir out
16849   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16850
16851   lt_compiler_flag="-o out/conftest2.$ac_objext"
16852   # Insert the option either (1) after the last *FLAGS variable, or
16853   # (2) before a word containing "conftest.", or (3) at the end.
16854   # Note that $ac_compile itself does not contain backslashes and begins
16855   # with a dollar sign (not a hyphen), so the echo should work correctly.
16856   lt_compile=`echo "$ac_compile" | $SED \
16857   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16858   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16859   -e 's:$: $lt_compiler_flag:'`
16860   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16861   (eval "$lt_compile" 2>out/conftest.err)
16862   ac_status=$?
16863   cat out/conftest.err >&5
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16866   then
16867     # The compiler can only warn and ignore the option if not recognized
16868     # So say no if there are warnings
16869     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16870     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16871     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16872       lt_cv_prog_compiler_c_o=yes
16873     fi
16874   fi
16875   chmod u+w . 2>&5
16876   $RM conftest*
16877   # SGI C++ compiler will create directory out/ii_files/ for
16878   # template instantiation
16879   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16880   $RM out/* && rmdir out
16881   cd ..
16882   $RM -r conftest
16883   $RM conftest*
16884
16885fi
16886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16887$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16888
16889
16890
16891
16892
16893
16894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16895$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16896if ${lt_cv_prog_compiler_c_o+:} false; then :
16897  $as_echo_n "(cached) " >&6
16898else
16899  lt_cv_prog_compiler_c_o=no
16900   $RM -r conftest 2>/dev/null
16901   mkdir conftest
16902   cd conftest
16903   mkdir out
16904   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16905
16906   lt_compiler_flag="-o out/conftest2.$ac_objext"
16907   # Insert the option either (1) after the last *FLAGS variable, or
16908   # (2) before a word containing "conftest.", or (3) at the end.
16909   # Note that $ac_compile itself does not contain backslashes and begins
16910   # with a dollar sign (not a hyphen), so the echo should work correctly.
16911   lt_compile=`echo "$ac_compile" | $SED \
16912   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16913   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16914   -e 's:$: $lt_compiler_flag:'`
16915   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16916   (eval "$lt_compile" 2>out/conftest.err)
16917   ac_status=$?
16918   cat out/conftest.err >&5
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16921   then
16922     # The compiler can only warn and ignore the option if not recognized
16923     # So say no if there are warnings
16924     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16925     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16926     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16927       lt_cv_prog_compiler_c_o=yes
16928     fi
16929   fi
16930   chmod u+w . 2>&5
16931   $RM conftest*
16932   # SGI C++ compiler will create directory out/ii_files/ for
16933   # template instantiation
16934   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16935   $RM out/* && rmdir out
16936   cd ..
16937   $RM -r conftest
16938   $RM conftest*
16939
16940fi
16941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16942$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16943
16944
16945
16946
16947hard_links="nottested"
16948if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16949  # do not overwrite the value of need_locks provided by the user
16950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16951$as_echo_n "checking if we can lock with hard links... " >&6; }
16952  hard_links=yes
16953  $RM conftest*
16954  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16955  touch conftest.a
16956  ln conftest.a conftest.b 2>&5 || hard_links=no
16957  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16959$as_echo "$hard_links" >&6; }
16960  if test "$hard_links" = no; then
16961    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16962$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16963    need_locks=warn
16964  fi
16965else
16966  need_locks=no
16967fi
16968
16969
16970
16971
16972
16973
16974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16975$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16976
16977  runpath_var=
16978  allow_undefined_flag=
16979  always_export_symbols=no
16980  archive_cmds=
16981  archive_expsym_cmds=
16982  compiler_needs_object=no
16983  enable_shared_with_static_runtimes=no
16984  export_dynamic_flag_spec=
16985  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16986  hardcode_automatic=no
16987  hardcode_direct=no
16988  hardcode_direct_absolute=no
16989  hardcode_libdir_flag_spec=
16990  hardcode_libdir_flag_spec_ld=
16991  hardcode_libdir_separator=
16992  hardcode_minus_L=no
16993  hardcode_shlibpath_var=unsupported
16994  inherit_rpath=no
16995  link_all_deplibs=unknown
16996  module_cmds=
16997  module_expsym_cmds=
16998  old_archive_from_new_cmds=
16999  old_archive_from_expsyms_cmds=
17000  thread_safe_flag_spec=
17001  whole_archive_flag_spec=
17002  # include_expsyms should be a list of space-separated symbols to be *always*
17003  # included in the symbol list
17004  include_expsyms=
17005  # exclude_expsyms can be an extended regexp of symbols to exclude
17006  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17007  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17008  # as well as any symbol that contains `d'.
17009  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17010  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17011  # platforms (ab)use it in PIC code, but their linkers get confused if
17012  # the symbol is explicitly referenced.  Since portable code cannot
17013  # rely on this symbol name, it's probably fine to never include it in
17014  # preloaded symbol tables.
17015  # Exclude shared library initialization/finalization symbols.
17016  extract_expsyms_cmds=
17017
17018  case $host_os in
17019  cygwin* | mingw* | pw32* | cegcc*)
17020    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17021    # When not using gcc, we currently assume that we are using
17022    # Microsoft Visual C++.
17023    if test "$GCC" != yes; then
17024      with_gnu_ld=no
17025    fi
17026    ;;
17027  interix*)
17028    # we just hope/assume this is gcc and not c89 (= MSVC++)
17029    with_gnu_ld=yes
17030    ;;
17031  openbsd*)
17032    with_gnu_ld=no
17033    ;;
17034  esac
17035
17036  ld_shlibs=yes
17037
17038  # On some targets, GNU ld is compatible enough with the native linker
17039  # that we're better off using the native interface for both.
17040  lt_use_gnu_ld_interface=no
17041  if test "$with_gnu_ld" = yes; then
17042    case $host_os in
17043      aix*)
17044	# The AIX port of GNU ld has always aspired to compatibility
17045	# with the native linker.  However, as the warning in the GNU ld
17046	# block says, versions before 2.19.5* couldn't really create working
17047	# shared libraries, regardless of the interface used.
17048	case `$LD -v 2>&1` in
17049	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17050	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17051	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17052	  *)
17053	    lt_use_gnu_ld_interface=yes
17054	    ;;
17055	esac
17056	;;
17057      *)
17058	lt_use_gnu_ld_interface=yes
17059	;;
17060    esac
17061  fi
17062
17063  if test "$lt_use_gnu_ld_interface" = yes; then
17064    # If archive_cmds runs LD, not CC, wlarc should be empty
17065    wlarc='${wl}'
17066
17067    # Set some defaults for GNU ld with shared library support. These
17068    # are reset later if shared libraries are not supported. Putting them
17069    # here allows them to be overridden if necessary.
17070    runpath_var=LD_RUN_PATH
17071    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17072    export_dynamic_flag_spec='${wl}--export-dynamic'
17073    # ancient GNU ld didn't support --whole-archive et. al.
17074    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17075      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17076    else
17077      whole_archive_flag_spec=
17078    fi
17079    supports_anon_versioning=no
17080    case `$LD -v 2>&1` in
17081      *GNU\ gold*) supports_anon_versioning=yes ;;
17082      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17083      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17084      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17085      *\ 2.11.*) ;; # other 2.11 versions
17086      *) supports_anon_versioning=yes ;;
17087    esac
17088
17089    # See if GNU ld supports shared libraries.
17090    case $host_os in
17091    aix[3-9]*)
17092      # On AIX/PPC, the GNU linker is very broken
17093      if test "$host_cpu" != ia64; then
17094	ld_shlibs=no
17095	cat <<_LT_EOF 1>&2
17096
17097*** Warning: the GNU linker, at least up to release 2.19, is reported
17098*** to be unable to reliably create shared libraries on AIX.
17099*** Therefore, libtool is disabling shared libraries support.  If you
17100*** really care for shared libraries, you may want to install binutils
17101*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17102*** You will then need to restart the configuration process.
17103
17104_LT_EOF
17105      fi
17106      ;;
17107
17108    amigaos*)
17109      case $host_cpu in
17110      powerpc)
17111            # see comment about AmigaOS4 .so support
17112            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17113            archive_expsym_cmds=''
17114        ;;
17115      m68k)
17116            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)'
17117            hardcode_libdir_flag_spec='-L$libdir'
17118            hardcode_minus_L=yes
17119        ;;
17120      esac
17121      ;;
17122
17123    beos*)
17124      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17125	allow_undefined_flag=unsupported
17126	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17127	# support --undefined.  This deserves some investigation.  FIXME
17128	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17129      else
17130	ld_shlibs=no
17131      fi
17132      ;;
17133
17134    cygwin* | mingw* | pw32* | cegcc*)
17135      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17136      # as there is no search path for DLLs.
17137      hardcode_libdir_flag_spec='-L$libdir'
17138      export_dynamic_flag_spec='${wl}--export-all-symbols'
17139      allow_undefined_flag=unsupported
17140      always_export_symbols=no
17141      enable_shared_with_static_runtimes=yes
17142      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17143
17144      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17145        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17146	# If the export-symbols file already is a .def file (1st line
17147	# is EXPORTS), use it as is; otherwise, prepend...
17148	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17149	  cp $export_symbols $output_objdir/$soname.def;
17150	else
17151	  echo EXPORTS > $output_objdir/$soname.def;
17152	  cat $export_symbols >> $output_objdir/$soname.def;
17153	fi~
17154	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17155      else
17156	ld_shlibs=no
17157      fi
17158      ;;
17159
17160    haiku*)
17161      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17162      link_all_deplibs=yes
17163      ;;
17164
17165    interix[3-9]*)
17166      hardcode_direct=no
17167      hardcode_shlibpath_var=no
17168      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17169      export_dynamic_flag_spec='${wl}-E'
17170      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17171      # Instead, shared libraries are loaded at an image base (0x10000000 by
17172      # default) and relocated if they conflict, which is a slow very memory
17173      # consuming and fragmenting process.  To avoid this, we pick a random,
17174      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17175      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17176      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17177      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'
17178      ;;
17179
17180    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17181      tmp_diet=no
17182      if test "$host_os" = linux-dietlibc; then
17183	case $cc_basename in
17184	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
17185	esac
17186      fi
17187      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17188	 && test "$tmp_diet" = no
17189      then
17190	tmp_addflag=' $pic_flag'
17191	tmp_sharedflag='-shared'
17192	case $cc_basename,$host_cpu in
17193        pgcc*)				# Portland Group C compiler
17194	  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'
17195	  tmp_addflag=' $pic_flag'
17196	  ;;
17197	pgf77* | pgf90* | pgf95* | pgfortran*)
17198					# Portland Group f77 and f90 compilers
17199	  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'
17200	  tmp_addflag=' $pic_flag -Mnomain' ;;
17201	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
17202	  tmp_addflag=' -i_dynamic' ;;
17203	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17204	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17205	ifc* | ifort*)			# Intel Fortran compiler
17206	  tmp_addflag=' -nofor_main' ;;
17207	lf95*)				# Lahey Fortran 8.1
17208	  whole_archive_flag_spec=
17209	  tmp_sharedflag='--shared' ;;
17210	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17211	  tmp_sharedflag='-qmkshrobj'
17212	  tmp_addflag= ;;
17213	nvcc*)	# Cuda Compiler Driver 2.2
17214	  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'
17215	  compiler_needs_object=yes
17216	  ;;
17217	esac
17218	case `$CC -V 2>&1 | sed 5q` in
17219	*Sun\ C*)			# Sun C 5.9
17220	  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'
17221	  compiler_needs_object=yes
17222	  tmp_sharedflag='-G' ;;
17223	*Sun\ F*)			# Sun Fortran 8.3
17224	  tmp_sharedflag='-G' ;;
17225	esac
17226	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17227
17228        if test "x$supports_anon_versioning" = xyes; then
17229          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17230	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17231	    echo "local: *; };" >> $output_objdir/$libname.ver~
17232	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17233        fi
17234
17235	case $cc_basename in
17236	xlf* | bgf* | bgxlf* | mpixlf*)
17237	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17238	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17239	  hardcode_libdir_flag_spec=
17240	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
17241	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17242	  if test "x$supports_anon_versioning" = xyes; then
17243	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17244	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17245	      echo "local: *; };" >> $output_objdir/$libname.ver~
17246	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17247	  fi
17248	  ;;
17249	esac
17250      else
17251        ld_shlibs=no
17252      fi
17253      ;;
17254
17255    netbsd*)
17256      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17257	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17258	wlarc=
17259      else
17260	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17261	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17262      fi
17263      ;;
17264
17265    solaris*)
17266      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17267	ld_shlibs=no
17268	cat <<_LT_EOF 1>&2
17269
17270*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17271*** create shared libraries on Solaris systems.  Therefore, libtool
17272*** is disabling shared libraries support.  We urge you to upgrade GNU
17273*** binutils to release 2.9.1 or newer.  Another option is to modify
17274*** your PATH or compiler configuration so that the native linker is
17275*** used, and then restart.
17276
17277_LT_EOF
17278      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17279	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17280	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17281      else
17282	ld_shlibs=no
17283      fi
17284      ;;
17285
17286    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17287      case `$LD -v 2>&1` in
17288        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17289	ld_shlibs=no
17290	cat <<_LT_EOF 1>&2
17291
17292*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17293*** reliably create shared libraries on SCO systems.  Therefore, libtool
17294*** is disabling shared libraries support.  We urge you to upgrade GNU
17295*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17296*** your PATH or compiler configuration so that the native linker is
17297*** used, and then restart.
17298
17299_LT_EOF
17300	;;
17301	*)
17302	  # For security reasons, it is highly recommended that you always
17303	  # use absolute paths for naming shared libraries, and exclude the
17304	  # DT_RUNPATH tag from executables and libraries.  But doing so
17305	  # requires that you compile everything twice, which is a pain.
17306	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17307	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17308	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17309	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17310	  else
17311	    ld_shlibs=no
17312	  fi
17313	;;
17314      esac
17315      ;;
17316
17317    sunos4*)
17318      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17319      wlarc=
17320      hardcode_direct=yes
17321      hardcode_shlibpath_var=no
17322      ;;
17323
17324    *)
17325      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17326	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17327	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17328      else
17329	ld_shlibs=no
17330      fi
17331      ;;
17332    esac
17333
17334    if test "$ld_shlibs" = no; then
17335      runpath_var=
17336      hardcode_libdir_flag_spec=
17337      export_dynamic_flag_spec=
17338      whole_archive_flag_spec=
17339    fi
17340  else
17341    # PORTME fill in a description of your system's linker (not GNU ld)
17342    case $host_os in
17343    aix3*)
17344      allow_undefined_flag=unsupported
17345      always_export_symbols=yes
17346      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'
17347      # Note: this linker hardcodes the directories in LIBPATH if there
17348      # are no directories specified by -L.
17349      hardcode_minus_L=yes
17350      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17351	# Neither direct hardcoding nor static linking is supported with a
17352	# broken collect2.
17353	hardcode_direct=unsupported
17354      fi
17355      ;;
17356
17357    aix[4-9]*)
17358      if test "$host_cpu" = ia64; then
17359	# On IA64, the linker does run time linking by default, so we don't
17360	# have to do anything special.
17361	aix_use_runtimelinking=no
17362	exp_sym_flag='-Bexport'
17363	no_entry_flag=""
17364      else
17365	# If we're using GNU nm, then we don't want the "-C" option.
17366	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17367	# Also, AIX nm treats weak defined symbols like other global
17368	# defined symbols, whereas GNU nm marks them as "W".
17369	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17370	  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'
17371	else
17372	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17373	fi
17374	aix_use_runtimelinking=no
17375
17376	# Test if we are trying to use run time linking or normal
17377	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17378	# need to do runtime linking.
17379	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17380	  for ld_flag in $LDFLAGS; do
17381	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17382	    aix_use_runtimelinking=yes
17383	    break
17384	  fi
17385	  done
17386	  ;;
17387	esac
17388
17389	exp_sym_flag='-bexport'
17390	no_entry_flag='-bnoentry'
17391      fi
17392
17393      # When large executables or shared objects are built, AIX ld can
17394      # have problems creating the table of contents.  If linking a library
17395      # or program results in "error TOC overflow" add -mminimal-toc to
17396      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17397      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17398
17399      archive_cmds=''
17400      hardcode_direct=yes
17401      hardcode_direct_absolute=yes
17402      hardcode_libdir_separator=':'
17403      link_all_deplibs=yes
17404      file_list_spec='${wl}-f,'
17405
17406      if test "$GCC" = yes; then
17407	case $host_os in aix4.[012]|aix4.[012].*)
17408	# We only want to do this on AIX 4.2 and lower, the check
17409	# below for broken collect2 doesn't work under 4.3+
17410	  collect2name=`${CC} -print-prog-name=collect2`
17411	  if test -f "$collect2name" &&
17412	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17413	  then
17414	  # We have reworked collect2
17415	  :
17416	  else
17417	  # We have old collect2
17418	  hardcode_direct=unsupported
17419	  # It fails to find uninstalled libraries when the uninstalled
17420	  # path is not listed in the libpath.  Setting hardcode_minus_L
17421	  # to unsupported forces relinking
17422	  hardcode_minus_L=yes
17423	  hardcode_libdir_flag_spec='-L$libdir'
17424	  hardcode_libdir_separator=
17425	  fi
17426	  ;;
17427	esac
17428	shared_flag='-shared'
17429	if test "$aix_use_runtimelinking" = yes; then
17430	  shared_flag="$shared_flag "'${wl}-G'
17431	fi
17432      else
17433	# not using gcc
17434	if test "$host_cpu" = ia64; then
17435	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17436	# chokes on -Wl,-G. The following line is correct:
17437	  shared_flag='-G'
17438	else
17439	  if test "$aix_use_runtimelinking" = yes; then
17440	    shared_flag='${wl}-G'
17441	  else
17442	    shared_flag='${wl}-bM:SRE'
17443	  fi
17444	fi
17445      fi
17446
17447      export_dynamic_flag_spec='${wl}-bexpall'
17448      # It seems that -bexpall does not export symbols beginning with
17449      # underscore (_), so it is better to generate a list of symbols to export.
17450      always_export_symbols=yes
17451      if test "$aix_use_runtimelinking" = yes; then
17452	# Warning - without using the other runtime loading flags (-brtl),
17453	# -berok will link without error, but may produce a broken library.
17454	allow_undefined_flag='-berok'
17455        # Determine the default libpath from the value encoded in an
17456        # empty executable.
17457        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458/* end confdefs.h.  */
17459
17460int
17461main ()
17462{
17463
17464  ;
17465  return 0;
17466}
17467_ACEOF
17468if ac_fn_c_try_link "$LINENO"; then :
17469
17470lt_aix_libpath_sed='
17471    /Import File Strings/,/^$/ {
17472	/^0/ {
17473	    s/^0  *\(.*\)$/\1/
17474	    p
17475	}
17476    }'
17477aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17478# Check for a 64-bit object if we didn't find anything.
17479if test -z "$aix_libpath"; then
17480  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17481fi
17482fi
17483rm -f core conftest.err conftest.$ac_objext \
17484    conftest$ac_exeext conftest.$ac_ext
17485if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17486
17487        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17488        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"
17489      else
17490	if test "$host_cpu" = ia64; then
17491	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17492	  allow_undefined_flag="-z nodefs"
17493	  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"
17494	else
17495	 # Determine the default libpath from the value encoded in an
17496	 # empty executable.
17497	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17498/* end confdefs.h.  */
17499
17500int
17501main ()
17502{
17503
17504  ;
17505  return 0;
17506}
17507_ACEOF
17508if ac_fn_c_try_link "$LINENO"; then :
17509
17510lt_aix_libpath_sed='
17511    /Import File Strings/,/^$/ {
17512	/^0/ {
17513	    s/^0  *\(.*\)$/\1/
17514	    p
17515	}
17516    }'
17517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17518# Check for a 64-bit object if we didn't find anything.
17519if test -z "$aix_libpath"; then
17520  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17521fi
17522fi
17523rm -f core conftest.err conftest.$ac_objext \
17524    conftest$ac_exeext conftest.$ac_ext
17525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17526
17527	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17528	  # Warning - without using the other run time loading flags,
17529	  # -berok will link without error, but may produce a broken library.
17530	  no_undefined_flag=' ${wl}-bernotok'
17531	  allow_undefined_flag=' ${wl}-berok'
17532	  if test "$with_gnu_ld" = yes; then
17533	    # We only use this code for GNU lds that support --whole-archive.
17534	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17535	  else
17536	    # Exported symbols can be pulled into shared objects from archives
17537	    whole_archive_flag_spec='$convenience'
17538	  fi
17539	  archive_cmds_need_lc=yes
17540	  # This is similar to how AIX traditionally builds its shared libraries.
17541	  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'
17542	fi
17543      fi
17544      ;;
17545
17546    amigaos*)
17547      case $host_cpu in
17548      powerpc)
17549            # see comment about AmigaOS4 .so support
17550            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17551            archive_expsym_cmds=''
17552        ;;
17553      m68k)
17554            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)'
17555            hardcode_libdir_flag_spec='-L$libdir'
17556            hardcode_minus_L=yes
17557        ;;
17558      esac
17559      ;;
17560
17561    bsdi[45]*)
17562      export_dynamic_flag_spec=-rdynamic
17563      ;;
17564
17565    cygwin* | mingw* | pw32* | cegcc*)
17566      # When not using gcc, we currently assume that we are using
17567      # Microsoft Visual C++.
17568      # hardcode_libdir_flag_spec is actually meaningless, as there is
17569      # no search path for DLLs.
17570      hardcode_libdir_flag_spec=' '
17571      allow_undefined_flag=unsupported
17572      # Tell ltmain to make .lib files, not .a files.
17573      libext=lib
17574      # Tell ltmain to make .dll files, not .so files.
17575      shrext_cmds=".dll"
17576      # FIXME: Setting linknames here is a bad hack.
17577      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17578      # The linker will automatically build a .lib file if we build a DLL.
17579      old_archive_from_new_cmds='true'
17580      # FIXME: Should let the user specify the lib program.
17581      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17582      fix_srcfile_path='`cygpath -w "$srcfile"`'
17583      enable_shared_with_static_runtimes=yes
17584      ;;
17585
17586    darwin* | rhapsody*)
17587
17588
17589  archive_cmds_need_lc=no
17590  hardcode_direct=no
17591  hardcode_automatic=yes
17592  hardcode_shlibpath_var=unsupported
17593  if test "$lt_cv_ld_force_load" = "yes"; then
17594    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\"`'
17595  else
17596    whole_archive_flag_spec=''
17597  fi
17598  link_all_deplibs=yes
17599  allow_undefined_flag="$_lt_dar_allow_undefined"
17600  case $cc_basename in
17601     ifort*) _lt_dar_can_shared=yes ;;
17602     *) _lt_dar_can_shared=$GCC ;;
17603  esac
17604  if test "$_lt_dar_can_shared" = "yes"; then
17605    output_verbose_link_cmd=func_echo_all
17606    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17607    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17608    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}"
17609    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}"
17610
17611  else
17612  ld_shlibs=no
17613  fi
17614
17615      ;;
17616
17617    dgux*)
17618      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17619      hardcode_libdir_flag_spec='-L$libdir'
17620      hardcode_shlibpath_var=no
17621      ;;
17622
17623    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17624    # support.  Future versions do this automatically, but an explicit c++rt0.o
17625    # does not break anything, and helps significantly (at the cost of a little
17626    # extra space).
17627    freebsd2.2*)
17628      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17629      hardcode_libdir_flag_spec='-R$libdir'
17630      hardcode_direct=yes
17631      hardcode_shlibpath_var=no
17632      ;;
17633
17634    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17635    freebsd2.*)
17636      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17637      hardcode_direct=yes
17638      hardcode_minus_L=yes
17639      hardcode_shlibpath_var=no
17640      ;;
17641
17642    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17643    freebsd* | dragonfly*)
17644      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17645      hardcode_libdir_flag_spec='-R$libdir'
17646      hardcode_direct=yes
17647      hardcode_shlibpath_var=no
17648      ;;
17649
17650    hpux9*)
17651      if test "$GCC" = yes; then
17652	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'
17653      else
17654	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'
17655      fi
17656      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17657      hardcode_libdir_separator=:
17658      hardcode_direct=yes
17659
17660      # hardcode_minus_L: Not really in the search PATH,
17661      # but as the default location of the library.
17662      hardcode_minus_L=yes
17663      export_dynamic_flag_spec='${wl}-E'
17664      ;;
17665
17666    hpux10*)
17667      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17668	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17669      else
17670	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17671      fi
17672      if test "$with_gnu_ld" = no; then
17673	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17674	hardcode_libdir_flag_spec_ld='+b $libdir'
17675	hardcode_libdir_separator=:
17676	hardcode_direct=yes
17677	hardcode_direct_absolute=yes
17678	export_dynamic_flag_spec='${wl}-E'
17679	# hardcode_minus_L: Not really in the search PATH,
17680	# but as the default location of the library.
17681	hardcode_minus_L=yes
17682      fi
17683      ;;
17684
17685    hpux11*)
17686      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17687	case $host_cpu in
17688	hppa*64*)
17689	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17690	  ;;
17691	ia64*)
17692	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17693	  ;;
17694	*)
17695	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17696	  ;;
17697	esac
17698      else
17699	case $host_cpu in
17700	hppa*64*)
17701	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17702	  ;;
17703	ia64*)
17704	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17705	  ;;
17706	*)
17707
17708	  # Older versions of the 11.00 compiler do not understand -b yet
17709	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17710	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17711$as_echo_n "checking if $CC understands -b... " >&6; }
17712if ${lt_cv_prog_compiler__b+:} false; then :
17713  $as_echo_n "(cached) " >&6
17714else
17715  lt_cv_prog_compiler__b=no
17716   save_LDFLAGS="$LDFLAGS"
17717   LDFLAGS="$LDFLAGS -b"
17718   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17719   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17720     # The linker can only warn and ignore the option if not recognized
17721     # So say no if there are warnings
17722     if test -s conftest.err; then
17723       # Append any errors to the config.log.
17724       cat conftest.err 1>&5
17725       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17726       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17727       if diff conftest.exp conftest.er2 >/dev/null; then
17728         lt_cv_prog_compiler__b=yes
17729       fi
17730     else
17731       lt_cv_prog_compiler__b=yes
17732     fi
17733   fi
17734   $RM -r conftest*
17735   LDFLAGS="$save_LDFLAGS"
17736
17737fi
17738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17739$as_echo "$lt_cv_prog_compiler__b" >&6; }
17740
17741if test x"$lt_cv_prog_compiler__b" = xyes; then
17742    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17743else
17744    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17745fi
17746
17747	  ;;
17748	esac
17749      fi
17750      if test "$with_gnu_ld" = no; then
17751	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17752	hardcode_libdir_separator=:
17753
17754	case $host_cpu in
17755	hppa*64*|ia64*)
17756	  hardcode_direct=no
17757	  hardcode_shlibpath_var=no
17758	  ;;
17759	*)
17760	  hardcode_direct=yes
17761	  hardcode_direct_absolute=yes
17762	  export_dynamic_flag_spec='${wl}-E'
17763
17764	  # hardcode_minus_L: Not really in the search PATH,
17765	  # but as the default location of the library.
17766	  hardcode_minus_L=yes
17767	  ;;
17768	esac
17769      fi
17770      ;;
17771
17772    irix5* | irix6* | nonstopux*)
17773      if test "$GCC" = yes; then
17774	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'
17775	# Try to use the -exported_symbol ld option, if it does not
17776	# work, assume that -exports_file does not work either and
17777	# implicitly export all symbols.
17778        save_LDFLAGS="$LDFLAGS"
17779        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17780        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17781/* end confdefs.h.  */
17782int foo(void) {}
17783_ACEOF
17784if ac_fn_c_try_link "$LINENO"; then :
17785  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'
17786
17787fi
17788rm -f core conftest.err conftest.$ac_objext \
17789    conftest$ac_exeext conftest.$ac_ext
17790        LDFLAGS="$save_LDFLAGS"
17791      else
17792	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'
17793	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'
17794      fi
17795      archive_cmds_need_lc='no'
17796      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17797      hardcode_libdir_separator=:
17798      inherit_rpath=yes
17799      link_all_deplibs=yes
17800      ;;
17801
17802    netbsd*)
17803      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17804	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17805      else
17806	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17807      fi
17808      hardcode_libdir_flag_spec='-R$libdir'
17809      hardcode_direct=yes
17810      hardcode_shlibpath_var=no
17811      ;;
17812
17813    newsos6)
17814      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17815      hardcode_direct=yes
17816      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17817      hardcode_libdir_separator=:
17818      hardcode_shlibpath_var=no
17819      ;;
17820
17821    *nto* | *qnx*)
17822      ;;
17823
17824    openbsd*)
17825      if test -f /usr/libexec/ld.so; then
17826	hardcode_direct=yes
17827	hardcode_shlibpath_var=no
17828	hardcode_direct_absolute=yes
17829	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17830	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17831	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17832	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17833	  export_dynamic_flag_spec='${wl}-E'
17834	else
17835	  case $host_os in
17836	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17837	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17838	     hardcode_libdir_flag_spec='-R$libdir'
17839	     ;;
17840	   *)
17841	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17842	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17843	     ;;
17844	  esac
17845	fi
17846      else
17847	ld_shlibs=no
17848      fi
17849      ;;
17850
17851    os2*)
17852      hardcode_libdir_flag_spec='-L$libdir'
17853      hardcode_minus_L=yes
17854      allow_undefined_flag=unsupported
17855      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'
17856      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17857      ;;
17858
17859    osf3*)
17860      if test "$GCC" = yes; then
17861	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17862	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'
17863      else
17864	allow_undefined_flag=' -expect_unresolved \*'
17865	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'
17866      fi
17867      archive_cmds_need_lc='no'
17868      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17869      hardcode_libdir_separator=:
17870      ;;
17871
17872    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17873      if test "$GCC" = yes; then
17874	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17875	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'
17876	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17877      else
17878	allow_undefined_flag=' -expect_unresolved \*'
17879	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'
17880	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~
17881	$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'
17882
17883	# Both c and cxx compiler support -rpath directly
17884	hardcode_libdir_flag_spec='-rpath $libdir'
17885      fi
17886      archive_cmds_need_lc='no'
17887      hardcode_libdir_separator=:
17888      ;;
17889
17890    solaris*)
17891      no_undefined_flag=' -z defs'
17892      if test "$GCC" = yes; then
17893	wlarc='${wl}'
17894	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17895	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17896	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17897      else
17898	case `$CC -V 2>&1` in
17899	*"Compilers 5.0"*)
17900	  wlarc=''
17901	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17902	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17903	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17904	  ;;
17905	*)
17906	  wlarc='${wl}'
17907	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17908	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17909	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17910	  ;;
17911	esac
17912      fi
17913      hardcode_libdir_flag_spec='-R$libdir'
17914      hardcode_shlibpath_var=no
17915      case $host_os in
17916      solaris2.[0-5] | solaris2.[0-5].*) ;;
17917      *)
17918	# The compiler driver will combine and reorder linker options,
17919	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17920	# but is careful enough not to reorder.
17921	# Supported since Solaris 2.6 (maybe 2.5.1?)
17922	if test "$GCC" = yes; then
17923	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17924	else
17925	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17926	fi
17927	;;
17928      esac
17929      link_all_deplibs=yes
17930      ;;
17931
17932    sunos4*)
17933      if test "x$host_vendor" = xsequent; then
17934	# Use $CC to link under sequent, because it throws in some extra .o
17935	# files that make .init and .fini sections work.
17936	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17937      else
17938	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17939      fi
17940      hardcode_libdir_flag_spec='-L$libdir'
17941      hardcode_direct=yes
17942      hardcode_minus_L=yes
17943      hardcode_shlibpath_var=no
17944      ;;
17945
17946    sysv4)
17947      case $host_vendor in
17948	sni)
17949	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17950	  hardcode_direct=yes # is this really true???
17951	;;
17952	siemens)
17953	  ## LD is ld it makes a PLAMLIB
17954	  ## CC just makes a GrossModule.
17955	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17956	  reload_cmds='$CC -r -o $output$reload_objs'
17957	  hardcode_direct=no
17958        ;;
17959	motorola)
17960	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17962	;;
17963      esac
17964      runpath_var='LD_RUN_PATH'
17965      hardcode_shlibpath_var=no
17966      ;;
17967
17968    sysv4.3*)
17969      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17970      hardcode_shlibpath_var=no
17971      export_dynamic_flag_spec='-Bexport'
17972      ;;
17973
17974    sysv4*MP*)
17975      if test -d /usr/nec; then
17976	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17977	hardcode_shlibpath_var=no
17978	runpath_var=LD_RUN_PATH
17979	hardcode_runpath_var=yes
17980	ld_shlibs=yes
17981      fi
17982      ;;
17983
17984    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17985      no_undefined_flag='${wl}-z,text'
17986      archive_cmds_need_lc=no
17987      hardcode_shlibpath_var=no
17988      runpath_var='LD_RUN_PATH'
17989
17990      if test "$GCC" = yes; then
17991	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17992	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17993      else
17994	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17995	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17996      fi
17997      ;;
17998
17999    sysv5* | sco3.2v5* | sco5v6*)
18000      # Note: We can NOT use -z defs as we might desire, because we do not
18001      # link with -lc, and that would cause any symbols used from libc to
18002      # always be unresolved, which means just about no library would
18003      # ever link correctly.  If we're not using GNU ld we use -z text
18004      # though, which does catch some bad symbols but isn't as heavy-handed
18005      # as -z defs.
18006      no_undefined_flag='${wl}-z,text'
18007      allow_undefined_flag='${wl}-z,nodefs'
18008      archive_cmds_need_lc=no
18009      hardcode_shlibpath_var=no
18010      hardcode_libdir_flag_spec='${wl}-R,$libdir'
18011      hardcode_libdir_separator=':'
18012      link_all_deplibs=yes
18013      export_dynamic_flag_spec='${wl}-Bexport'
18014      runpath_var='LD_RUN_PATH'
18015
18016      if test "$GCC" = yes; then
18017	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18018	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18019      else
18020	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18021	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18022      fi
18023      ;;
18024
18025    uts4*)
18026      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18027      hardcode_libdir_flag_spec='-L$libdir'
18028      hardcode_shlibpath_var=no
18029      ;;
18030
18031    *)
18032      ld_shlibs=no
18033      ;;
18034    esac
18035
18036    if test x$host_vendor = xsni; then
18037      case $host in
18038      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18039	export_dynamic_flag_spec='${wl}-Blargedynsym'
18040	;;
18041      esac
18042    fi
18043  fi
18044
18045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18046$as_echo "$ld_shlibs" >&6; }
18047test "$ld_shlibs" = no && can_build_shared=no
18048
18049with_gnu_ld=$with_gnu_ld
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065#
18066# Do we need to explicitly link libc?
18067#
18068case "x$archive_cmds_need_lc" in
18069x|xyes)
18070  # Assume -lc should be added
18071  archive_cmds_need_lc=yes
18072
18073  if test "$enable_shared" = yes && test "$GCC" = yes; then
18074    case $archive_cmds in
18075    *'~'*)
18076      # FIXME: we may have to deal with multi-command sequences.
18077      ;;
18078    '$CC '*)
18079      # Test whether the compiler implicitly links with -lc since on some
18080      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18081      # to ld, don't add -lc before -lgcc.
18082      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18083$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18084if ${lt_cv_archive_cmds_need_lc+:} false; then :
18085  $as_echo_n "(cached) " >&6
18086else
18087  $RM conftest*
18088	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18089
18090	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18091  (eval $ac_compile) 2>&5
18092  ac_status=$?
18093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18094  test $ac_status = 0; } 2>conftest.err; then
18095	  soname=conftest
18096	  lib=conftest
18097	  libobjs=conftest.$ac_objext
18098	  deplibs=
18099	  wl=$lt_prog_compiler_wl
18100	  pic_flag=$lt_prog_compiler_pic
18101	  compiler_flags=-v
18102	  linker_flags=-v
18103	  verstring=
18104	  output_objdir=.
18105	  libname=conftest
18106	  lt_save_allow_undefined_flag=$allow_undefined_flag
18107	  allow_undefined_flag=
18108	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18109  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18110  ac_status=$?
18111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18112  test $ac_status = 0; }
18113	  then
18114	    lt_cv_archive_cmds_need_lc=no
18115	  else
18116	    lt_cv_archive_cmds_need_lc=yes
18117	  fi
18118	  allow_undefined_flag=$lt_save_allow_undefined_flag
18119	else
18120	  cat conftest.err 1>&5
18121	fi
18122	$RM conftest*
18123
18124fi
18125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18126$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18127      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18128      ;;
18129    esac
18130  fi
18131  ;;
18132esac
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18291$as_echo_n "checking dynamic linker characteristics... " >&6; }
18292
18293if test "$GCC" = yes; then
18294  case $host_os in
18295    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18296    *) lt_awk_arg="/^libraries:/" ;;
18297  esac
18298  case $host_os in
18299    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18300    *) lt_sed_strip_eq="s,=/,/,g" ;;
18301  esac
18302  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18303  case $lt_search_path_spec in
18304  *\;*)
18305    # if the path contains ";" then we assume it to be the separator
18306    # otherwise default to the standard path separator (i.e. ":") - it is
18307    # assumed that no part of a normal pathname contains ";" but that should
18308    # okay in the real world where ";" in dirpaths is itself problematic.
18309    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18310    ;;
18311  *)
18312    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18313    ;;
18314  esac
18315  # Ok, now we have the path, separated by spaces, we can step through it
18316  # and add multilib dir if necessary.
18317  lt_tmp_lt_search_path_spec=
18318  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18319  for lt_sys_path in $lt_search_path_spec; do
18320    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18321      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18322    else
18323      test -d "$lt_sys_path" && \
18324	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18325    fi
18326  done
18327  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18328BEGIN {RS=" "; FS="/|\n";} {
18329  lt_foo="";
18330  lt_count=0;
18331  for (lt_i = NF; lt_i > 0; lt_i--) {
18332    if ($lt_i != "" && $lt_i != ".") {
18333      if ($lt_i == "..") {
18334        lt_count++;
18335      } else {
18336        if (lt_count == 0) {
18337          lt_foo="/" $lt_i lt_foo;
18338        } else {
18339          lt_count--;
18340        }
18341      }
18342    }
18343  }
18344  if (lt_foo != "") { lt_freq[lt_foo]++; }
18345  if (lt_freq[lt_foo] == 1) { print lt_foo; }
18346}'`
18347  # AWK program above erroneously prepends '/' to C:/dos/paths
18348  # for these hosts.
18349  case $host_os in
18350    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18351      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18352  esac
18353  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18354else
18355  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18356fi
18357library_names_spec=
18358libname_spec='lib$name'
18359soname_spec=
18360shrext_cmds=".so"
18361postinstall_cmds=
18362postuninstall_cmds=
18363finish_cmds=
18364finish_eval=
18365shlibpath_var=
18366shlibpath_overrides_runpath=unknown
18367version_type=none
18368dynamic_linker="$host_os ld.so"
18369sys_lib_dlsearch_path_spec="/lib /usr/lib"
18370need_lib_prefix=unknown
18371hardcode_into_libs=no
18372
18373# when you set need_version to no, make sure it does not cause -set_version
18374# flags to be left without arguments
18375need_version=unknown
18376
18377case $host_os in
18378aix3*)
18379  version_type=linux
18380  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18381  shlibpath_var=LIBPATH
18382
18383  # AIX 3 has no versioning support, so we append a major version to the name.
18384  soname_spec='${libname}${release}${shared_ext}$major'
18385  ;;
18386
18387aix[4-9]*)
18388  version_type=linux
18389  need_lib_prefix=no
18390  need_version=no
18391  hardcode_into_libs=yes
18392  if test "$host_cpu" = ia64; then
18393    # AIX 5 supports IA64
18394    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18395    shlibpath_var=LD_LIBRARY_PATH
18396  else
18397    # With GCC up to 2.95.x, collect2 would create an import file
18398    # for dependence libraries.  The import file would start with
18399    # the line `#! .'.  This would cause the generated library to
18400    # depend on `.', always an invalid library.  This was fixed in
18401    # development snapshots of GCC prior to 3.0.
18402    case $host_os in
18403      aix4 | aix4.[01] | aix4.[01].*)
18404      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18405	   echo ' yes '
18406	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18407	:
18408      else
18409	can_build_shared=no
18410      fi
18411      ;;
18412    esac
18413    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18414    # soname into executable. Probably we can add versioning support to
18415    # collect2, so additional links can be useful in future.
18416    if test "$aix_use_runtimelinking" = yes; then
18417      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18418      # instead of lib<name>.a to let people know that these are not
18419      # typical AIX shared libraries.
18420      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18421    else
18422      # We preserve .a as extension for shared libraries through AIX4.2
18423      # and later when we are not doing run time linking.
18424      library_names_spec='${libname}${release}.a $libname.a'
18425      soname_spec='${libname}${release}${shared_ext}$major'
18426    fi
18427    shlibpath_var=LIBPATH
18428  fi
18429  ;;
18430
18431amigaos*)
18432  case $host_cpu in
18433  powerpc)
18434    # Since July 2007 AmigaOS4 officially supports .so libraries.
18435    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18436    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18437    ;;
18438  m68k)
18439    library_names_spec='$libname.ixlibrary $libname.a'
18440    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18441    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'
18442    ;;
18443  esac
18444  ;;
18445
18446beos*)
18447  library_names_spec='${libname}${shared_ext}'
18448  dynamic_linker="$host_os ld.so"
18449  shlibpath_var=LIBRARY_PATH
18450  ;;
18451
18452bsdi[45]*)
18453  version_type=linux
18454  need_version=no
18455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456  soname_spec='${libname}${release}${shared_ext}$major'
18457  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18458  shlibpath_var=LD_LIBRARY_PATH
18459  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18460  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18461  # the default ld.so.conf also contains /usr/contrib/lib and
18462  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18463  # libtool to hard-code these into programs
18464  ;;
18465
18466cygwin* | mingw* | pw32* | cegcc*)
18467  version_type=windows
18468  shrext_cmds=".dll"
18469  need_version=no
18470  need_lib_prefix=no
18471
18472  case $GCC,$host_os in
18473  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18474    library_names_spec='$libname.dll.a'
18475    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18476    postinstall_cmds='base_file=`basename \${file}`~
18477      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18478      dldir=$destdir/`dirname \$dlpath`~
18479      test -d \$dldir || mkdir -p \$dldir~
18480      $install_prog $dir/$dlname \$dldir/$dlname~
18481      chmod a+x \$dldir/$dlname~
18482      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18483        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18484      fi'
18485    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18486      dlpath=$dir/\$dldll~
18487       $RM \$dlpath'
18488    shlibpath_overrides_runpath=yes
18489
18490    case $host_os in
18491    cygwin*)
18492      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18493      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18494
18495      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18496      ;;
18497    mingw* | cegcc*)
18498      # MinGW DLLs use traditional 'lib' prefix
18499      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18500      ;;
18501    pw32*)
18502      # pw32 DLLs use 'pw' prefix rather than 'lib'
18503      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18504      ;;
18505    esac
18506    ;;
18507
18508  *)
18509    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18510    ;;
18511  esac
18512  dynamic_linker='Win32 ld.exe'
18513  # FIXME: first we should search . and the directory the executable is in
18514  shlibpath_var=PATH
18515  ;;
18516
18517darwin* | rhapsody*)
18518  dynamic_linker="$host_os dyld"
18519  version_type=darwin
18520  need_lib_prefix=no
18521  need_version=no
18522  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18523  soname_spec='${libname}${release}${major}$shared_ext'
18524  shlibpath_overrides_runpath=yes
18525  shlibpath_var=DYLD_LIBRARY_PATH
18526  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18527
18528  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18529  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18530  ;;
18531
18532dgux*)
18533  version_type=linux
18534  need_lib_prefix=no
18535  need_version=no
18536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18537  soname_spec='${libname}${release}${shared_ext}$major'
18538  shlibpath_var=LD_LIBRARY_PATH
18539  ;;
18540
18541freebsd* | dragonfly*)
18542  # DragonFly does not have aout.  When/if they implement a new
18543  # versioning mechanism, adjust this.
18544  if test -x /usr/bin/objformat; then
18545    objformat=`/usr/bin/objformat`
18546  else
18547    case $host_os in
18548    freebsd[23].*) objformat=aout ;;
18549    *) objformat=elf ;;
18550    esac
18551  fi
18552  version_type=freebsd-$objformat
18553  case $version_type in
18554    freebsd-elf*)
18555      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18556      need_version=no
18557      need_lib_prefix=no
18558      ;;
18559    freebsd-*)
18560      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18561      need_version=yes
18562      ;;
18563  esac
18564  shlibpath_var=LD_LIBRARY_PATH
18565  case $host_os in
18566  freebsd2.*)
18567    shlibpath_overrides_runpath=yes
18568    ;;
18569  freebsd3.[01]* | freebsdelf3.[01]*)
18570    shlibpath_overrides_runpath=yes
18571    hardcode_into_libs=yes
18572    ;;
18573  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18574  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18575    shlibpath_overrides_runpath=no
18576    hardcode_into_libs=yes
18577    ;;
18578  *) # from 4.6 on, and DragonFly
18579    shlibpath_overrides_runpath=yes
18580    hardcode_into_libs=yes
18581    ;;
18582  esac
18583  ;;
18584
18585haiku*)
18586  version_type=linux
18587  need_lib_prefix=no
18588  need_version=no
18589  dynamic_linker="$host_os runtime_loader"
18590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18591  soname_spec='${libname}${release}${shared_ext}$major'
18592  shlibpath_var=LIBRARY_PATH
18593  shlibpath_overrides_runpath=yes
18594  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18595  hardcode_into_libs=yes
18596  ;;
18597
18598hpux9* | hpux10* | hpux11*)
18599  # Give a soname corresponding to the major version so that dld.sl refuses to
18600  # link against other versions.
18601  version_type=sunos
18602  need_lib_prefix=no
18603  need_version=no
18604  case $host_cpu in
18605  ia64*)
18606    shrext_cmds='.so'
18607    hardcode_into_libs=yes
18608    dynamic_linker="$host_os dld.so"
18609    shlibpath_var=LD_LIBRARY_PATH
18610    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18611    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18612    soname_spec='${libname}${release}${shared_ext}$major'
18613    if test "X$HPUX_IA64_MODE" = X32; then
18614      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18615    else
18616      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18617    fi
18618    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18619    ;;
18620  hppa*64*)
18621    shrext_cmds='.sl'
18622    hardcode_into_libs=yes
18623    dynamic_linker="$host_os dld.sl"
18624    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18625    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18626    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18627    soname_spec='${libname}${release}${shared_ext}$major'
18628    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18629    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18630    ;;
18631  *)
18632    shrext_cmds='.sl'
18633    dynamic_linker="$host_os dld.sl"
18634    shlibpath_var=SHLIB_PATH
18635    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18636    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18637    soname_spec='${libname}${release}${shared_ext}$major'
18638    ;;
18639  esac
18640  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18641  postinstall_cmds='chmod 555 $lib'
18642  # or fails outright, so override atomically:
18643  install_override_mode=555
18644  ;;
18645
18646interix[3-9]*)
18647  version_type=linux
18648  need_lib_prefix=no
18649  need_version=no
18650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18651  soname_spec='${libname}${release}${shared_ext}$major'
18652  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18653  shlibpath_var=LD_LIBRARY_PATH
18654  shlibpath_overrides_runpath=no
18655  hardcode_into_libs=yes
18656  ;;
18657
18658irix5* | irix6* | nonstopux*)
18659  case $host_os in
18660    nonstopux*) version_type=nonstopux ;;
18661    *)
18662	if test "$lt_cv_prog_gnu_ld" = yes; then
18663		version_type=linux
18664	else
18665		version_type=irix
18666	fi ;;
18667  esac
18668  need_lib_prefix=no
18669  need_version=no
18670  soname_spec='${libname}${release}${shared_ext}$major'
18671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18672  case $host_os in
18673  irix5* | nonstopux*)
18674    libsuff= shlibsuff=
18675    ;;
18676  *)
18677    case $LD in # libtool.m4 will add one of these switches to LD
18678    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18679      libsuff= shlibsuff= libmagic=32-bit;;
18680    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18681      libsuff=32 shlibsuff=N32 libmagic=N32;;
18682    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18683      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18684    *) libsuff= shlibsuff= libmagic=never-match;;
18685    esac
18686    ;;
18687  esac
18688  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18689  shlibpath_overrides_runpath=no
18690  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18691  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18692  hardcode_into_libs=yes
18693  ;;
18694
18695# No shared lib support for Linux oldld, aout, or coff.
18696linux*oldld* | linux*aout* | linux*coff*)
18697  dynamic_linker=no
18698  ;;
18699
18700# This must be Linux ELF.
18701
18702# uclinux* changes (here and below) have been submitted to the libtool
18703# project, but have not yet been accepted: they are GCC-local changes
18704# for the time being.  (See
18705# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18706linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
18707  version_type=linux
18708  need_lib_prefix=no
18709  need_version=no
18710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18711  soname_spec='${libname}${release}${shared_ext}$major'
18712  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18713  shlibpath_var=LD_LIBRARY_PATH
18714  shlibpath_overrides_runpath=no
18715
18716  # Some binutils ld are patched to set DT_RUNPATH
18717  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18718  $as_echo_n "(cached) " >&6
18719else
18720  lt_cv_shlibpath_overrides_runpath=no
18721    save_LDFLAGS=$LDFLAGS
18722    save_libdir=$libdir
18723    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18724	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18725    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726/* end confdefs.h.  */
18727
18728int
18729main ()
18730{
18731
18732  ;
18733  return 0;
18734}
18735_ACEOF
18736if ac_fn_c_try_link "$LINENO"; then :
18737  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18738  lt_cv_shlibpath_overrides_runpath=yes
18739fi
18740fi
18741rm -f core conftest.err conftest.$ac_objext \
18742    conftest$ac_exeext conftest.$ac_ext
18743    LDFLAGS=$save_LDFLAGS
18744    libdir=$save_libdir
18745
18746fi
18747
18748  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18749
18750  # This implies no fast_install, which is unacceptable.
18751  # Some rework will be needed to allow for fast_install
18752  # before this can be enabled.
18753  hardcode_into_libs=yes
18754
18755  # Append ld.so.conf contents to the search path
18756  if test -f /etc/ld.so.conf; then
18757    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' ' '`
18758    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18759  fi
18760
18761  # We used to test for /lib/ld.so.1 and disable shared libraries on
18762  # powerpc, because MkLinux only supported shared libraries with the
18763  # GNU dynamic linker.  Since this was broken with cross compilers,
18764  # most powerpc-linux boxes support dynamic linking these days and
18765  # people can always --disable-shared, the test was removed, and we
18766  # assume the GNU/Linux dynamic linker is in use.
18767  dynamic_linker='GNU/Linux ld.so'
18768  ;;
18769
18770netbsd*)
18771  version_type=sunos
18772  need_lib_prefix=no
18773  need_version=no
18774  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18775    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18776    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18777    dynamic_linker='NetBSD (a.out) ld.so'
18778  else
18779    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18780    soname_spec='${libname}${release}${shared_ext}$major'
18781    dynamic_linker='NetBSD ld.elf_so'
18782  fi
18783  shlibpath_var=LD_LIBRARY_PATH
18784  shlibpath_overrides_runpath=yes
18785  hardcode_into_libs=yes
18786  ;;
18787
18788newsos6)
18789  version_type=linux
18790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18791  shlibpath_var=LD_LIBRARY_PATH
18792  shlibpath_overrides_runpath=yes
18793  ;;
18794
18795*nto* | *qnx*)
18796  version_type=qnx
18797  need_lib_prefix=no
18798  need_version=no
18799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18800  soname_spec='${libname}${release}${shared_ext}$major'
18801  shlibpath_var=LD_LIBRARY_PATH
18802  shlibpath_overrides_runpath=no
18803  hardcode_into_libs=yes
18804  dynamic_linker='ldqnx.so'
18805  ;;
18806
18807openbsd*)
18808  version_type=sunos
18809  sys_lib_dlsearch_path_spec="/usr/lib"
18810  need_lib_prefix=no
18811  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18812  case $host_os in
18813    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
18814    *)				need_version=no  ;;
18815  esac
18816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18817  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18818  shlibpath_var=LD_LIBRARY_PATH
18819  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18820    case $host_os in
18821      openbsd2.[89] | openbsd2.[89].*)
18822	shlibpath_overrides_runpath=no
18823	;;
18824      *)
18825	shlibpath_overrides_runpath=yes
18826	;;
18827      esac
18828  else
18829    shlibpath_overrides_runpath=yes
18830  fi
18831  ;;
18832
18833os2*)
18834  libname_spec='$name'
18835  shrext_cmds=".dll"
18836  need_lib_prefix=no
18837  library_names_spec='$libname${shared_ext} $libname.a'
18838  dynamic_linker='OS/2 ld.exe'
18839  shlibpath_var=LIBPATH
18840  ;;
18841
18842osf3* | osf4* | osf5*)
18843  version_type=osf
18844  need_lib_prefix=no
18845  need_version=no
18846  soname_spec='${libname}${release}${shared_ext}$major'
18847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18848  shlibpath_var=LD_LIBRARY_PATH
18849  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18850  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18851  ;;
18852
18853rdos*)
18854  dynamic_linker=no
18855  ;;
18856
18857solaris*)
18858  version_type=linux
18859  need_lib_prefix=no
18860  need_version=no
18861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18862  soname_spec='${libname}${release}${shared_ext}$major'
18863  shlibpath_var=LD_LIBRARY_PATH
18864  shlibpath_overrides_runpath=yes
18865  hardcode_into_libs=yes
18866  # ldd complains unless libraries are executable
18867  postinstall_cmds='chmod +x $lib'
18868  ;;
18869
18870sunos4*)
18871  version_type=sunos
18872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18873  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18874  shlibpath_var=LD_LIBRARY_PATH
18875  shlibpath_overrides_runpath=yes
18876  if test "$with_gnu_ld" = yes; then
18877    need_lib_prefix=no
18878  fi
18879  need_version=yes
18880  ;;
18881
18882sysv4 | sysv4.3*)
18883  version_type=linux
18884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18885  soname_spec='${libname}${release}${shared_ext}$major'
18886  shlibpath_var=LD_LIBRARY_PATH
18887  case $host_vendor in
18888    sni)
18889      shlibpath_overrides_runpath=no
18890      need_lib_prefix=no
18891      runpath_var=LD_RUN_PATH
18892      ;;
18893    siemens)
18894      need_lib_prefix=no
18895      ;;
18896    motorola)
18897      need_lib_prefix=no
18898      need_version=no
18899      shlibpath_overrides_runpath=no
18900      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18901      ;;
18902  esac
18903  ;;
18904
18905sysv4*MP*)
18906  if test -d /usr/nec ;then
18907    version_type=linux
18908    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18909    soname_spec='$libname${shared_ext}.$major'
18910    shlibpath_var=LD_LIBRARY_PATH
18911  fi
18912  ;;
18913
18914sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18915  version_type=freebsd-elf
18916  need_lib_prefix=no
18917  need_version=no
18918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18919  soname_spec='${libname}${release}${shared_ext}$major'
18920  shlibpath_var=LD_LIBRARY_PATH
18921  shlibpath_overrides_runpath=yes
18922  hardcode_into_libs=yes
18923  if test "$with_gnu_ld" = yes; then
18924    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18925  else
18926    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18927    case $host_os in
18928      sco3.2v5*)
18929        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18930	;;
18931    esac
18932  fi
18933  sys_lib_dlsearch_path_spec='/usr/lib'
18934  ;;
18935
18936tpf*)
18937  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18938  version_type=linux
18939  need_lib_prefix=no
18940  need_version=no
18941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18942  shlibpath_var=LD_LIBRARY_PATH
18943  shlibpath_overrides_runpath=no
18944  hardcode_into_libs=yes
18945  ;;
18946
18947uts4*)
18948  version_type=linux
18949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950  soname_spec='${libname}${release}${shared_ext}$major'
18951  shlibpath_var=LD_LIBRARY_PATH
18952  ;;
18953
18954*)
18955  dynamic_linker=no
18956  ;;
18957esac
18958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18959$as_echo "$dynamic_linker" >&6; }
18960test "$dynamic_linker" = no && can_build_shared=no
18961
18962variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18963if test "$GCC" = yes; then
18964  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18965fi
18966
18967if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18968  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18969fi
18970if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18971  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18972fi
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19066$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19067hardcode_action=
19068if test -n "$hardcode_libdir_flag_spec" ||
19069   test -n "$runpath_var" ||
19070   test "X$hardcode_automatic" = "Xyes" ; then
19071
19072  # We can hardcode non-existent directories.
19073  if test "$hardcode_direct" != no &&
19074     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19075     # have to relink, otherwise we might link with an installed library
19076     # when we should be linking with a yet-to-be-installed one
19077     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19078     test "$hardcode_minus_L" != no; then
19079    # Linking always hardcodes the temporary library directory.
19080    hardcode_action=relink
19081  else
19082    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19083    hardcode_action=immediate
19084  fi
19085else
19086  # We cannot hardcode anything, or else we can only hardcode existing
19087  # directories.
19088  hardcode_action=unsupported
19089fi
19090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19091$as_echo "$hardcode_action" >&6; }
19092
19093if test "$hardcode_action" = relink ||
19094   test "$inherit_rpath" = yes; then
19095  # Fast installation is not supported
19096  enable_fast_install=no
19097elif test "$shlibpath_overrides_runpath" = yes ||
19098     test "$enable_shared" = no; then
19099  # Fast installation is not necessary
19100  enable_fast_install=needless
19101fi
19102
19103
19104
19105
19106
19107
19108  if test "x$enable_dlopen" != xyes; then
19109  enable_dlopen=unknown
19110  enable_dlopen_self=unknown
19111  enable_dlopen_self_static=unknown
19112else
19113  lt_cv_dlopen=no
19114  lt_cv_dlopen_libs=
19115
19116  case $host_os in
19117  beos*)
19118    lt_cv_dlopen="load_add_on"
19119    lt_cv_dlopen_libs=
19120    lt_cv_dlopen_self=yes
19121    ;;
19122
19123  mingw* | pw32* | cegcc*)
19124    lt_cv_dlopen="LoadLibrary"
19125    lt_cv_dlopen_libs=
19126    ;;
19127
19128  cygwin*)
19129    lt_cv_dlopen="dlopen"
19130    lt_cv_dlopen_libs=
19131    ;;
19132
19133  darwin*)
19134  # if libdl is installed we need to link against it
19135    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19136$as_echo_n "checking for dlopen in -ldl... " >&6; }
19137if ${ac_cv_lib_dl_dlopen+:} false; then :
19138  $as_echo_n "(cached) " >&6
19139else
19140  ac_check_lib_save_LIBS=$LIBS
19141LIBS="-ldl  $LIBS"
19142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19143/* end confdefs.h.  */
19144
19145/* Override any GCC internal prototype to avoid an error.
19146   Use char because int might match the return type of a GCC
19147   builtin and then its argument prototype would still apply.  */
19148#ifdef __cplusplus
19149extern "C"
19150#endif
19151char dlopen ();
19152int
19153main ()
19154{
19155return dlopen ();
19156  ;
19157  return 0;
19158}
19159_ACEOF
19160if ac_fn_c_try_link "$LINENO"; then :
19161  ac_cv_lib_dl_dlopen=yes
19162else
19163  ac_cv_lib_dl_dlopen=no
19164fi
19165rm -f core conftest.err conftest.$ac_objext \
19166    conftest$ac_exeext conftest.$ac_ext
19167LIBS=$ac_check_lib_save_LIBS
19168fi
19169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19170$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19171if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19172  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19173else
19174
19175    lt_cv_dlopen="dyld"
19176    lt_cv_dlopen_libs=
19177    lt_cv_dlopen_self=yes
19178
19179fi
19180
19181    ;;
19182
19183  *)
19184    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19185if test "x$ac_cv_func_shl_load" = xyes; then :
19186  lt_cv_dlopen="shl_load"
19187else
19188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19189$as_echo_n "checking for shl_load in -ldld... " >&6; }
19190if ${ac_cv_lib_dld_shl_load+:} false; then :
19191  $as_echo_n "(cached) " >&6
19192else
19193  ac_check_lib_save_LIBS=$LIBS
19194LIBS="-ldld  $LIBS"
19195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19196/* end confdefs.h.  */
19197
19198/* Override any GCC internal prototype to avoid an error.
19199   Use char because int might match the return type of a GCC
19200   builtin and then its argument prototype would still apply.  */
19201#ifdef __cplusplus
19202extern "C"
19203#endif
19204char shl_load ();
19205int
19206main ()
19207{
19208return shl_load ();
19209  ;
19210  return 0;
19211}
19212_ACEOF
19213if ac_fn_c_try_link "$LINENO"; then :
19214  ac_cv_lib_dld_shl_load=yes
19215else
19216  ac_cv_lib_dld_shl_load=no
19217fi
19218rm -f core conftest.err conftest.$ac_objext \
19219    conftest$ac_exeext conftest.$ac_ext
19220LIBS=$ac_check_lib_save_LIBS
19221fi
19222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19223$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19224if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19225  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19226else
19227  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19228if test "x$ac_cv_func_dlopen" = xyes; then :
19229  lt_cv_dlopen="dlopen"
19230else
19231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19232$as_echo_n "checking for dlopen in -ldl... " >&6; }
19233if ${ac_cv_lib_dl_dlopen+:} false; then :
19234  $as_echo_n "(cached) " >&6
19235else
19236  ac_check_lib_save_LIBS=$LIBS
19237LIBS="-ldl  $LIBS"
19238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19239/* end confdefs.h.  */
19240
19241/* Override any GCC internal prototype to avoid an error.
19242   Use char because int might match the return type of a GCC
19243   builtin and then its argument prototype would still apply.  */
19244#ifdef __cplusplus
19245extern "C"
19246#endif
19247char dlopen ();
19248int
19249main ()
19250{
19251return dlopen ();
19252  ;
19253  return 0;
19254}
19255_ACEOF
19256if ac_fn_c_try_link "$LINENO"; then :
19257  ac_cv_lib_dl_dlopen=yes
19258else
19259  ac_cv_lib_dl_dlopen=no
19260fi
19261rm -f core conftest.err conftest.$ac_objext \
19262    conftest$ac_exeext conftest.$ac_ext
19263LIBS=$ac_check_lib_save_LIBS
19264fi
19265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19266$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19267if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19268  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19269else
19270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19271$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19272if ${ac_cv_lib_svld_dlopen+:} false; then :
19273  $as_echo_n "(cached) " >&6
19274else
19275  ac_check_lib_save_LIBS=$LIBS
19276LIBS="-lsvld  $LIBS"
19277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278/* end confdefs.h.  */
19279
19280/* Override any GCC internal prototype to avoid an error.
19281   Use char because int might match the return type of a GCC
19282   builtin and then its argument prototype would still apply.  */
19283#ifdef __cplusplus
19284extern "C"
19285#endif
19286char dlopen ();
19287int
19288main ()
19289{
19290return dlopen ();
19291  ;
19292  return 0;
19293}
19294_ACEOF
19295if ac_fn_c_try_link "$LINENO"; then :
19296  ac_cv_lib_svld_dlopen=yes
19297else
19298  ac_cv_lib_svld_dlopen=no
19299fi
19300rm -f core conftest.err conftest.$ac_objext \
19301    conftest$ac_exeext conftest.$ac_ext
19302LIBS=$ac_check_lib_save_LIBS
19303fi
19304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19305$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19306if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19307  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19308else
19309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19310$as_echo_n "checking for dld_link in -ldld... " >&6; }
19311if ${ac_cv_lib_dld_dld_link+:} false; then :
19312  $as_echo_n "(cached) " >&6
19313else
19314  ac_check_lib_save_LIBS=$LIBS
19315LIBS="-ldld  $LIBS"
19316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19317/* end confdefs.h.  */
19318
19319/* Override any GCC internal prototype to avoid an error.
19320   Use char because int might match the return type of a GCC
19321   builtin and then its argument prototype would still apply.  */
19322#ifdef __cplusplus
19323extern "C"
19324#endif
19325char dld_link ();
19326int
19327main ()
19328{
19329return dld_link ();
19330  ;
19331  return 0;
19332}
19333_ACEOF
19334if ac_fn_c_try_link "$LINENO"; then :
19335  ac_cv_lib_dld_dld_link=yes
19336else
19337  ac_cv_lib_dld_dld_link=no
19338fi
19339rm -f core conftest.err conftest.$ac_objext \
19340    conftest$ac_exeext conftest.$ac_ext
19341LIBS=$ac_check_lib_save_LIBS
19342fi
19343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19344$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19345if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19346  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19347fi
19348
19349
19350fi
19351
19352
19353fi
19354
19355
19356fi
19357
19358
19359fi
19360
19361
19362fi
19363
19364    ;;
19365  esac
19366
19367  if test "x$lt_cv_dlopen" != xno; then
19368    enable_dlopen=yes
19369  else
19370    enable_dlopen=no
19371  fi
19372
19373  case $lt_cv_dlopen in
19374  dlopen)
19375    save_CPPFLAGS="$CPPFLAGS"
19376    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19377
19378    save_LDFLAGS="$LDFLAGS"
19379    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19380
19381    save_LIBS="$LIBS"
19382    LIBS="$lt_cv_dlopen_libs $LIBS"
19383
19384    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19385$as_echo_n "checking whether a program can dlopen itself... " >&6; }
19386if ${lt_cv_dlopen_self+:} false; then :
19387  $as_echo_n "(cached) " >&6
19388else
19389  	  if test "$cross_compiling" = yes; then :
19390  lt_cv_dlopen_self=cross
19391else
19392  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19393  lt_status=$lt_dlunknown
19394  cat > conftest.$ac_ext <<_LT_EOF
19395#line 19395 "configure"
19396#include "confdefs.h"
19397
19398#if HAVE_DLFCN_H
19399#include <dlfcn.h>
19400#endif
19401
19402#include <stdio.h>
19403
19404#ifdef RTLD_GLOBAL
19405#  define LT_DLGLOBAL		RTLD_GLOBAL
19406#else
19407#  ifdef DL_GLOBAL
19408#    define LT_DLGLOBAL		DL_GLOBAL
19409#  else
19410#    define LT_DLGLOBAL		0
19411#  endif
19412#endif
19413
19414/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19415   find out it does not work in some platform. */
19416#ifndef LT_DLLAZY_OR_NOW
19417#  ifdef RTLD_LAZY
19418#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19419#  else
19420#    ifdef DL_LAZY
19421#      define LT_DLLAZY_OR_NOW		DL_LAZY
19422#    else
19423#      ifdef RTLD_NOW
19424#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19425#      else
19426#        ifdef DL_NOW
19427#          define LT_DLLAZY_OR_NOW	DL_NOW
19428#        else
19429#          define LT_DLLAZY_OR_NOW	0
19430#        endif
19431#      endif
19432#    endif
19433#  endif
19434#endif
19435
19436/* When -fvisbility=hidden is used, assume the code has been annotated
19437   correspondingly for the symbols needed.  */
19438#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19439void fnord () __attribute__((visibility("default")));
19440#endif
19441
19442void fnord () { int i=42; }
19443int main ()
19444{
19445  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19446  int status = $lt_dlunknown;
19447
19448  if (self)
19449    {
19450      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19451      else
19452        {
19453	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19454          else puts (dlerror ());
19455	}
19456      /* dlclose (self); */
19457    }
19458  else
19459    puts (dlerror ());
19460
19461  return status;
19462}
19463_LT_EOF
19464  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19465  (eval $ac_link) 2>&5
19466  ac_status=$?
19467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19468  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19469    (./conftest; exit; ) >&5 2>/dev/null
19470    lt_status=$?
19471    case x$lt_status in
19472      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19473      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19474      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19475    esac
19476  else :
19477    # compilation failed
19478    lt_cv_dlopen_self=no
19479  fi
19480fi
19481rm -fr conftest*
19482
19483
19484fi
19485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19486$as_echo "$lt_cv_dlopen_self" >&6; }
19487
19488    if test "x$lt_cv_dlopen_self" = xyes; then
19489      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19490      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19491$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19492if ${lt_cv_dlopen_self_static+:} false; then :
19493  $as_echo_n "(cached) " >&6
19494else
19495  	  if test "$cross_compiling" = yes; then :
19496  lt_cv_dlopen_self_static=cross
19497else
19498  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19499  lt_status=$lt_dlunknown
19500  cat > conftest.$ac_ext <<_LT_EOF
19501#line 19501 "configure"
19502#include "confdefs.h"
19503
19504#if HAVE_DLFCN_H
19505#include <dlfcn.h>
19506#endif
19507
19508#include <stdio.h>
19509
19510#ifdef RTLD_GLOBAL
19511#  define LT_DLGLOBAL		RTLD_GLOBAL
19512#else
19513#  ifdef DL_GLOBAL
19514#    define LT_DLGLOBAL		DL_GLOBAL
19515#  else
19516#    define LT_DLGLOBAL		0
19517#  endif
19518#endif
19519
19520/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19521   find out it does not work in some platform. */
19522#ifndef LT_DLLAZY_OR_NOW
19523#  ifdef RTLD_LAZY
19524#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19525#  else
19526#    ifdef DL_LAZY
19527#      define LT_DLLAZY_OR_NOW		DL_LAZY
19528#    else
19529#      ifdef RTLD_NOW
19530#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19531#      else
19532#        ifdef DL_NOW
19533#          define LT_DLLAZY_OR_NOW	DL_NOW
19534#        else
19535#          define LT_DLLAZY_OR_NOW	0
19536#        endif
19537#      endif
19538#    endif
19539#  endif
19540#endif
19541
19542/* When -fvisbility=hidden is used, assume the code has been annotated
19543   correspondingly for the symbols needed.  */
19544#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19545void fnord () __attribute__((visibility("default")));
19546#endif
19547
19548void fnord () { int i=42; }
19549int main ()
19550{
19551  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19552  int status = $lt_dlunknown;
19553
19554  if (self)
19555    {
19556      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19557      else
19558        {
19559	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19560          else puts (dlerror ());
19561	}
19562      /* dlclose (self); */
19563    }
19564  else
19565    puts (dlerror ());
19566
19567  return status;
19568}
19569_LT_EOF
19570  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19571  (eval $ac_link) 2>&5
19572  ac_status=$?
19573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19574  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19575    (./conftest; exit; ) >&5 2>/dev/null
19576    lt_status=$?
19577    case x$lt_status in
19578      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19579      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19580      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19581    esac
19582  else :
19583    # compilation failed
19584    lt_cv_dlopen_self_static=no
19585  fi
19586fi
19587rm -fr conftest*
19588
19589
19590fi
19591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19592$as_echo "$lt_cv_dlopen_self_static" >&6; }
19593    fi
19594
19595    CPPFLAGS="$save_CPPFLAGS"
19596    LDFLAGS="$save_LDFLAGS"
19597    LIBS="$save_LIBS"
19598    ;;
19599  esac
19600
19601  case $lt_cv_dlopen_self in
19602  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19603  *) enable_dlopen_self=unknown ;;
19604  esac
19605
19606  case $lt_cv_dlopen_self_static in
19607  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19608  *) enable_dlopen_self_static=unknown ;;
19609  esac
19610fi
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628striplib=
19629old_striplib=
19630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19631$as_echo_n "checking whether stripping libraries is possible... " >&6; }
19632if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19633  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19634  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19636$as_echo "yes" >&6; }
19637else
19638# FIXME - insert some real tests, host_os isn't really good enough
19639  case $host_os in
19640  darwin*)
19641    if test -n "$STRIP" ; then
19642      striplib="$STRIP -x"
19643      old_striplib="$STRIP -S"
19644      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19645$as_echo "yes" >&6; }
19646    else
19647      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19648$as_echo "no" >&6; }
19649    fi
19650    ;;
19651  *)
19652    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19653$as_echo "no" >&6; }
19654    ;;
19655  esac
19656fi
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669  # Report which library types will actually be built
19670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19671$as_echo_n "checking if libtool supports shared libraries... " >&6; }
19672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19673$as_echo "$can_build_shared" >&6; }
19674
19675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19676$as_echo_n "checking whether to build shared libraries... " >&6; }
19677  test "$can_build_shared" = "no" && enable_shared=no
19678
19679  # On AIX, shared libraries and static libraries use the same namespace, and
19680  # are all built from PIC.
19681  case $host_os in
19682  aix3*)
19683    test "$enable_shared" = yes && enable_static=no
19684    if test -n "$RANLIB"; then
19685      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19686      postinstall_cmds='$RANLIB $lib'
19687    fi
19688    ;;
19689
19690  aix[4-9]*)
19691    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19692      test "$enable_shared" = yes && enable_static=no
19693    fi
19694    ;;
19695  esac
19696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19697$as_echo "$enable_shared" >&6; }
19698
19699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19700$as_echo_n "checking whether to build static libraries... " >&6; }
19701  # Make sure either enable_shared or enable_static is yes.
19702  test "$enable_shared" = yes || enable_static=yes
19703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19704$as_echo "$enable_static" >&6; }
19705
19706
19707
19708
19709fi
19710ac_ext=cpp
19711ac_cpp='$CXXCPP $CPPFLAGS'
19712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19715
19716CC="$lt_save_CC"
19717
19718      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19719    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19720    (test "X$CXX" != "Xg++"))) ; then
19721  ac_ext=cpp
19722ac_cpp='$CXXCPP $CPPFLAGS'
19723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19727$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19728if test -z "$CXXCPP"; then
19729  if ${ac_cv_prog_CXXCPP+:} false; then :
19730  $as_echo_n "(cached) " >&6
19731else
19732      # Double quotes because CXXCPP needs to be expanded
19733    for CXXCPP in "$CXX -E" "/lib/cpp"
19734    do
19735      ac_preproc_ok=false
19736for ac_cxx_preproc_warn_flag in '' yes
19737do
19738  # Use a header file that comes with gcc, so configuring glibc
19739  # with a fresh cross-compiler works.
19740  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19741  # <limits.h> exists even on freestanding compilers.
19742  # On the NeXT, cc -E runs the code through the compiler's parser,
19743  # not just through cpp. "Syntax error" is here to catch this case.
19744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19745/* end confdefs.h.  */
19746#ifdef __STDC__
19747# include <limits.h>
19748#else
19749# include <assert.h>
19750#endif
19751		     Syntax error
19752_ACEOF
19753if ac_fn_cxx_try_cpp "$LINENO"; then :
19754
19755else
19756  # Broken: fails on valid input.
19757continue
19758fi
19759rm -f conftest.err conftest.i conftest.$ac_ext
19760
19761  # OK, works on sane cases.  Now check whether nonexistent headers
19762  # can be detected and how.
19763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19764/* end confdefs.h.  */
19765#include <ac_nonexistent.h>
19766_ACEOF
19767if ac_fn_cxx_try_cpp "$LINENO"; then :
19768  # Broken: success on invalid input.
19769continue
19770else
19771  # Passes both tests.
19772ac_preproc_ok=:
19773break
19774fi
19775rm -f conftest.err conftest.i conftest.$ac_ext
19776
19777done
19778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19779rm -f conftest.i conftest.err conftest.$ac_ext
19780if $ac_preproc_ok; then :
19781  break
19782fi
19783
19784    done
19785    ac_cv_prog_CXXCPP=$CXXCPP
19786
19787fi
19788  CXXCPP=$ac_cv_prog_CXXCPP
19789else
19790  ac_cv_prog_CXXCPP=$CXXCPP
19791fi
19792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19793$as_echo "$CXXCPP" >&6; }
19794ac_preproc_ok=false
19795for ac_cxx_preproc_warn_flag in '' yes
19796do
19797  # Use a header file that comes with gcc, so configuring glibc
19798  # with a fresh cross-compiler works.
19799  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19800  # <limits.h> exists even on freestanding compilers.
19801  # On the NeXT, cc -E runs the code through the compiler's parser,
19802  # not just through cpp. "Syntax error" is here to catch this case.
19803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19804/* end confdefs.h.  */
19805#ifdef __STDC__
19806# include <limits.h>
19807#else
19808# include <assert.h>
19809#endif
19810		     Syntax error
19811_ACEOF
19812if ac_fn_cxx_try_cpp "$LINENO"; then :
19813
19814else
19815  # Broken: fails on valid input.
19816continue
19817fi
19818rm -f conftest.err conftest.i conftest.$ac_ext
19819
19820  # OK, works on sane cases.  Now check whether nonexistent headers
19821  # can be detected and how.
19822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823/* end confdefs.h.  */
19824#include <ac_nonexistent.h>
19825_ACEOF
19826if ac_fn_cxx_try_cpp "$LINENO"; then :
19827  # Broken: success on invalid input.
19828continue
19829else
19830  # Passes both tests.
19831ac_preproc_ok=:
19832break
19833fi
19834rm -f conftest.err conftest.i conftest.$ac_ext
19835
19836done
19837# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19838rm -f conftest.i conftest.err conftest.$ac_ext
19839if $ac_preproc_ok; then :
19840
19841else
19842  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19844as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19845See \`config.log' for more details" "$LINENO" 5; }
19846fi
19847
19848ac_ext=cpp
19849ac_cpp='$CXXCPP $CPPFLAGS'
19850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19853
19854else
19855  _lt_caught_CXX_error=yes
19856fi
19857
19858ac_ext=cpp
19859ac_cpp='$CXXCPP $CPPFLAGS'
19860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19863
19864archive_cmds_need_lc_CXX=no
19865allow_undefined_flag_CXX=
19866always_export_symbols_CXX=no
19867archive_expsym_cmds_CXX=
19868compiler_needs_object_CXX=no
19869export_dynamic_flag_spec_CXX=
19870hardcode_direct_CXX=no
19871hardcode_direct_absolute_CXX=no
19872hardcode_libdir_flag_spec_CXX=
19873hardcode_libdir_flag_spec_ld_CXX=
19874hardcode_libdir_separator_CXX=
19875hardcode_minus_L_CXX=no
19876hardcode_shlibpath_var_CXX=unsupported
19877hardcode_automatic_CXX=no
19878inherit_rpath_CXX=no
19879module_cmds_CXX=
19880module_expsym_cmds_CXX=
19881link_all_deplibs_CXX=unknown
19882old_archive_cmds_CXX=$old_archive_cmds
19883reload_flag_CXX=$reload_flag
19884reload_cmds_CXX=$reload_cmds
19885no_undefined_flag_CXX=
19886whole_archive_flag_spec_CXX=
19887enable_shared_with_static_runtimes_CXX=no
19888
19889# Source file extension for C++ test sources.
19890ac_ext=cpp
19891
19892# Object file extension for compiled C++ test sources.
19893objext=o
19894objext_CXX=$objext
19895
19896# No sense in running all these tests if we already determined that
19897# the CXX compiler isn't working.  Some variables (like enable_shared)
19898# are currently assumed to apply to all compilers on this platform,
19899# and will be corrupted by setting them based on a non-working compiler.
19900if test "$_lt_caught_CXX_error" != yes; then
19901  # Code to be used in simple compile tests
19902  lt_simple_compile_test_code="int some_variable = 0;"
19903
19904  # Code to be used in simple link tests
19905  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19906
19907  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19908
19909
19910
19911
19912
19913
19914# If no C compiler was specified, use CC.
19915LTCC=${LTCC-"$CC"}
19916
19917# If no C compiler flags were specified, use CFLAGS.
19918LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19919
19920# Allow CC to be a program name with arguments.
19921compiler=$CC
19922
19923
19924  # save warnings/boilerplate of simple test code
19925  ac_outfile=conftest.$ac_objext
19926echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19927eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19928_lt_compiler_boilerplate=`cat conftest.err`
19929$RM conftest*
19930
19931  ac_outfile=conftest.$ac_objext
19932echo "$lt_simple_link_test_code" >conftest.$ac_ext
19933eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19934_lt_linker_boilerplate=`cat conftest.err`
19935$RM -r conftest*
19936
19937
19938  # Allow CC to be a program name with arguments.
19939  lt_save_CC=$CC
19940  lt_save_LD=$LD
19941  lt_save_GCC=$GCC
19942  GCC=$GXX
19943  lt_save_with_gnu_ld=$with_gnu_ld
19944  lt_save_path_LD=$lt_cv_path_LD
19945  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19946    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19947  else
19948    $as_unset lt_cv_prog_gnu_ld
19949  fi
19950  if test -n "${lt_cv_path_LDCXX+set}"; then
19951    lt_cv_path_LD=$lt_cv_path_LDCXX
19952  else
19953    $as_unset lt_cv_path_LD
19954  fi
19955  test -z "${LDCXX+set}" || LD=$LDCXX
19956  CC=${CXX-"c++"}
19957  compiler=$CC
19958  compiler_CXX=$CC
19959  for cc_temp in $compiler""; do
19960  case $cc_temp in
19961    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19962    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19963    \-*) ;;
19964    *) break;;
19965  esac
19966done
19967cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19968
19969
19970  if test -n "$compiler"; then
19971    # We don't want -fno-exception when compiling C++ code, so set the
19972    # no_builtin_flag separately
19973    if test "$GXX" = yes; then
19974      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19975    else
19976      lt_prog_compiler_no_builtin_flag_CXX=
19977    fi
19978
19979    if test "$GXX" = yes; then
19980      # Set up default GNU C++ configuration
19981
19982
19983
19984# Check whether --with-gnu-ld was given.
19985if test "${with_gnu_ld+set}" = set; then :
19986  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19987else
19988  with_gnu_ld=no
19989fi
19990
19991ac_prog=ld
19992if test "$GCC" = yes; then
19993  # Check if gcc -print-prog-name=ld gives a path.
19994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19995$as_echo_n "checking for ld used by $CC... " >&6; }
19996  case $host in
19997  *-*-mingw*)
19998    # gcc leaves a trailing carriage return which upsets mingw
19999    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20000  *)
20001    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20002  esac
20003  case $ac_prog in
20004    # Accept absolute paths.
20005    [\\/]* | ?:[\\/]*)
20006      re_direlt='/[^/][^/]*/\.\./'
20007      # Canonicalize the pathname of ld
20008      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20009      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20010	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20011      done
20012      test -z "$LD" && LD="$ac_prog"
20013      ;;
20014  "")
20015    # If it fails, then pretend we aren't using GCC.
20016    ac_prog=ld
20017    ;;
20018  *)
20019    # If it is relative, then search for the first ld in PATH.
20020    with_gnu_ld=unknown
20021    ;;
20022  esac
20023elif test "$with_gnu_ld" = yes; then
20024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20025$as_echo_n "checking for GNU ld... " >&6; }
20026else
20027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20028$as_echo_n "checking for non-GNU ld... " >&6; }
20029fi
20030if ${lt_cv_path_LD+:} false; then :
20031  $as_echo_n "(cached) " >&6
20032else
20033  if test -z "$LD"; then
20034  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20035  for ac_dir in $PATH; do
20036    IFS="$lt_save_ifs"
20037    test -z "$ac_dir" && ac_dir=.
20038    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20039      lt_cv_path_LD="$ac_dir/$ac_prog"
20040      # Check to see if the program is GNU ld.  I'd rather use --version,
20041      # but apparently some variants of GNU ld only accept -v.
20042      # Break only if it was the GNU/non-GNU ld that we prefer.
20043      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20044      *GNU* | *'with BFD'*)
20045	test "$with_gnu_ld" != no && break
20046	;;
20047      *)
20048	test "$with_gnu_ld" != yes && break
20049	;;
20050      esac
20051    fi
20052  done
20053  IFS="$lt_save_ifs"
20054else
20055  lt_cv_path_LD="$LD" # Let the user override the test with a path.
20056fi
20057fi
20058
20059LD="$lt_cv_path_LD"
20060if test -n "$LD"; then
20061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20062$as_echo "$LD" >&6; }
20063else
20064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20065$as_echo "no" >&6; }
20066fi
20067test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20069$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20070if ${lt_cv_prog_gnu_ld+:} false; then :
20071  $as_echo_n "(cached) " >&6
20072else
20073  # I'd rather use --version here, but apparently some GNU lds only accept -v.
20074case `$LD -v 2>&1 </dev/null` in
20075*GNU* | *'with BFD'*)
20076  lt_cv_prog_gnu_ld=yes
20077  ;;
20078*)
20079  lt_cv_prog_gnu_ld=no
20080  ;;
20081esac
20082fi
20083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20084$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20085with_gnu_ld=$lt_cv_prog_gnu_ld
20086
20087
20088
20089
20090
20091
20092
20093      # Check if GNU C++ uses GNU ld as the underlying linker, since the
20094      # archiving commands below assume that GNU ld is being used.
20095      if test "$with_gnu_ld" = yes; then
20096        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20097        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20098
20099        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20100        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20101
20102        # If archive_cmds runs LD, not CC, wlarc should be empty
20103        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20104        #     investigate it a little bit more. (MM)
20105        wlarc='${wl}'
20106
20107        # ancient GNU ld didn't support --whole-archive et. al.
20108        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20109	  $GREP 'no-whole-archive' > /dev/null; then
20110          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20111        else
20112          whole_archive_flag_spec_CXX=
20113        fi
20114      else
20115        with_gnu_ld=no
20116        wlarc=
20117
20118        # A generic and very simple default shared library creation
20119        # command for GNU C++ for the case where it uses the native
20120        # linker, instead of GNU ld.  If possible, this setting should
20121        # overridden to take advantage of the native linker features on
20122        # the platform it is being used on.
20123        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20124      fi
20125
20126      # Commands to make compiler produce verbose output that lists
20127      # what "hidden" libraries, object files and flags are used when
20128      # linking a shared library.
20129      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20130
20131    else
20132      GXX=no
20133      with_gnu_ld=no
20134      wlarc=
20135    fi
20136
20137    # PORTME: fill in a description of your system's C++ link characteristics
20138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20139$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20140    ld_shlibs_CXX=yes
20141    case $host_os in
20142      aix3*)
20143        # FIXME: insert proper C++ library support
20144        ld_shlibs_CXX=no
20145        ;;
20146      aix[4-9]*)
20147        if test "$host_cpu" = ia64; then
20148          # On IA64, the linker does run time linking by default, so we don't
20149          # have to do anything special.
20150          aix_use_runtimelinking=no
20151          exp_sym_flag='-Bexport'
20152          no_entry_flag=""
20153        else
20154          aix_use_runtimelinking=no
20155
20156          # Test if we are trying to use run time linking or normal
20157          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20158          # need to do runtime linking.
20159          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20160	    for ld_flag in $LDFLAGS; do
20161	      case $ld_flag in
20162	      *-brtl*)
20163	        aix_use_runtimelinking=yes
20164	        break
20165	        ;;
20166	      esac
20167	    done
20168	    ;;
20169          esac
20170
20171          exp_sym_flag='-bexport'
20172          no_entry_flag='-bnoentry'
20173        fi
20174
20175        # When large executables or shared objects are built, AIX ld can
20176        # have problems creating the table of contents.  If linking a library
20177        # or program results in "error TOC overflow" add -mminimal-toc to
20178        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20179        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20180
20181        archive_cmds_CXX=''
20182        hardcode_direct_CXX=yes
20183        hardcode_direct_absolute_CXX=yes
20184        hardcode_libdir_separator_CXX=':'
20185        link_all_deplibs_CXX=yes
20186        file_list_spec_CXX='${wl}-f,'
20187
20188        if test "$GXX" = yes; then
20189          case $host_os in aix4.[012]|aix4.[012].*)
20190          # We only want to do this on AIX 4.2 and lower, the check
20191          # below for broken collect2 doesn't work under 4.3+
20192	  collect2name=`${CC} -print-prog-name=collect2`
20193	  if test -f "$collect2name" &&
20194	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20195	  then
20196	    # We have reworked collect2
20197	    :
20198	  else
20199	    # We have old collect2
20200	    hardcode_direct_CXX=unsupported
20201	    # It fails to find uninstalled libraries when the uninstalled
20202	    # path is not listed in the libpath.  Setting hardcode_minus_L
20203	    # to unsupported forces relinking
20204	    hardcode_minus_L_CXX=yes
20205	    hardcode_libdir_flag_spec_CXX='-L$libdir'
20206	    hardcode_libdir_separator_CXX=
20207	  fi
20208          esac
20209          shared_flag='-shared'
20210	  if test "$aix_use_runtimelinking" = yes; then
20211	    shared_flag="$shared_flag "'${wl}-G'
20212	  fi
20213        else
20214          # not using gcc
20215          if test "$host_cpu" = ia64; then
20216	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20217	  # chokes on -Wl,-G. The following line is correct:
20218	  shared_flag='-G'
20219          else
20220	    if test "$aix_use_runtimelinking" = yes; then
20221	      shared_flag='${wl}-G'
20222	    else
20223	      shared_flag='${wl}-bM:SRE'
20224	    fi
20225          fi
20226        fi
20227
20228        export_dynamic_flag_spec_CXX='${wl}-bexpall'
20229        # It seems that -bexpall does not export symbols beginning with
20230        # underscore (_), so it is better to generate a list of symbols to
20231	# export.
20232        always_export_symbols_CXX=yes
20233        if test "$aix_use_runtimelinking" = yes; then
20234          # Warning - without using the other runtime loading flags (-brtl),
20235          # -berok will link without error, but may produce a broken library.
20236          allow_undefined_flag_CXX='-berok'
20237          # Determine the default libpath from the value encoded in an empty
20238          # executable.
20239          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20240/* end confdefs.h.  */
20241
20242int
20243main ()
20244{
20245
20246  ;
20247  return 0;
20248}
20249_ACEOF
20250if ac_fn_cxx_try_link "$LINENO"; then :
20251
20252lt_aix_libpath_sed='
20253    /Import File Strings/,/^$/ {
20254	/^0/ {
20255	    s/^0  *\(.*\)$/\1/
20256	    p
20257	}
20258    }'
20259aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20260# Check for a 64-bit object if we didn't find anything.
20261if test -z "$aix_libpath"; then
20262  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20263fi
20264fi
20265rm -f core conftest.err conftest.$ac_objext \
20266    conftest$ac_exeext conftest.$ac_ext
20267if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20268
20269          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20270
20271          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"
20272        else
20273          if test "$host_cpu" = ia64; then
20274	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20275	    allow_undefined_flag_CXX="-z nodefs"
20276	    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"
20277          else
20278	    # Determine the default libpath from the value encoded in an
20279	    # empty executable.
20280	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20281/* end confdefs.h.  */
20282
20283int
20284main ()
20285{
20286
20287  ;
20288  return 0;
20289}
20290_ACEOF
20291if ac_fn_cxx_try_link "$LINENO"; then :
20292
20293lt_aix_libpath_sed='
20294    /Import File Strings/,/^$/ {
20295	/^0/ {
20296	    s/^0  *\(.*\)$/\1/
20297	    p
20298	}
20299    }'
20300aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20301# Check for a 64-bit object if we didn't find anything.
20302if test -z "$aix_libpath"; then
20303  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20304fi
20305fi
20306rm -f core conftest.err conftest.$ac_objext \
20307    conftest$ac_exeext conftest.$ac_ext
20308if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20309
20310	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20311	    # Warning - without using the other run time loading flags,
20312	    # -berok will link without error, but may produce a broken library.
20313	    no_undefined_flag_CXX=' ${wl}-bernotok'
20314	    allow_undefined_flag_CXX=' ${wl}-berok'
20315	    if test "$with_gnu_ld" = yes; then
20316	      # We only use this code for GNU lds that support --whole-archive.
20317	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20318	    else
20319	      # Exported symbols can be pulled into shared objects from archives
20320	      whole_archive_flag_spec_CXX='$convenience'
20321	    fi
20322	    archive_cmds_need_lc_CXX=yes
20323	    # This is similar to how AIX traditionally builds its shared
20324	    # libraries.
20325	    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'
20326          fi
20327        fi
20328        ;;
20329
20330      beos*)
20331	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20332	  allow_undefined_flag_CXX=unsupported
20333	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20334	  # support --undefined.  This deserves some investigation.  FIXME
20335	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20336	else
20337	  ld_shlibs_CXX=no
20338	fi
20339	;;
20340
20341      chorus*)
20342        case $cc_basename in
20343          *)
20344	  # FIXME: insert proper C++ library support
20345	  ld_shlibs_CXX=no
20346	  ;;
20347        esac
20348        ;;
20349
20350      cygwin* | mingw* | pw32* | cegcc*)
20351        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20352        # as there is no search path for DLLs.
20353        hardcode_libdir_flag_spec_CXX='-L$libdir'
20354        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20355        allow_undefined_flag_CXX=unsupported
20356        always_export_symbols_CXX=no
20357        enable_shared_with_static_runtimes_CXX=yes
20358
20359        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20360          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'
20361          # If the export-symbols file already is a .def file (1st line
20362          # is EXPORTS), use it as is; otherwise, prepend...
20363          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20364	    cp $export_symbols $output_objdir/$soname.def;
20365          else
20366	    echo EXPORTS > $output_objdir/$soname.def;
20367	    cat $export_symbols >> $output_objdir/$soname.def;
20368          fi~
20369          $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'
20370        else
20371          ld_shlibs_CXX=no
20372        fi
20373        ;;
20374      darwin* | rhapsody*)
20375
20376
20377  archive_cmds_need_lc_CXX=no
20378  hardcode_direct_CXX=no
20379  hardcode_automatic_CXX=yes
20380  hardcode_shlibpath_var_CXX=unsupported
20381  if test "$lt_cv_ld_force_load" = "yes"; then
20382    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\"`'
20383  else
20384    whole_archive_flag_spec_CXX=''
20385  fi
20386  link_all_deplibs_CXX=yes
20387  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20388  case $cc_basename in
20389     ifort*) _lt_dar_can_shared=yes ;;
20390     *) _lt_dar_can_shared=$GCC ;;
20391  esac
20392  if test "$_lt_dar_can_shared" = "yes"; then
20393    output_verbose_link_cmd=func_echo_all
20394    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}"
20395    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20396    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}"
20397    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}"
20398       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20399      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}"
20400      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}"
20401    fi
20402
20403  else
20404  ld_shlibs_CXX=no
20405  fi
20406
20407	;;
20408
20409      dgux*)
20410        case $cc_basename in
20411          ec++*)
20412	    # FIXME: insert proper C++ library support
20413	    ld_shlibs_CXX=no
20414	    ;;
20415          ghcx*)
20416	    # Green Hills C++ Compiler
20417	    # FIXME: insert proper C++ library support
20418	    ld_shlibs_CXX=no
20419	    ;;
20420          *)
20421	    # FIXME: insert proper C++ library support
20422	    ld_shlibs_CXX=no
20423	    ;;
20424        esac
20425        ;;
20426
20427      freebsd2.*)
20428        # C++ shared libraries reported to be fairly broken before
20429	# switch to ELF
20430        ld_shlibs_CXX=no
20431        ;;
20432
20433      freebsd-elf*)
20434        archive_cmds_need_lc_CXX=no
20435        ;;
20436
20437      freebsd* | dragonfly*)
20438        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20439        # conventions
20440        ld_shlibs_CXX=yes
20441        ;;
20442
20443      gnu*)
20444        ;;
20445
20446      haiku*)
20447        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20448        link_all_deplibs_CXX=yes
20449        ;;
20450
20451      hpux9*)
20452        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20453        hardcode_libdir_separator_CXX=:
20454        export_dynamic_flag_spec_CXX='${wl}-E'
20455        hardcode_direct_CXX=yes
20456        hardcode_minus_L_CXX=yes # Not in the search PATH,
20457				             # but as the default
20458				             # location of the library.
20459
20460        case $cc_basename in
20461          CC*)
20462            # FIXME: insert proper C++ library support
20463            ld_shlibs_CXX=no
20464            ;;
20465          aCC*)
20466            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'
20467            # Commands to make compiler produce verbose output that lists
20468            # what "hidden" libraries, object files and flags are used when
20469            # linking a shared library.
20470            #
20471            # There doesn't appear to be a way to prevent this compiler from
20472            # explicitly linking system object files so we need to strip them
20473            # from the output so that they don't get included in the library
20474            # dependencies.
20475            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"'
20476            ;;
20477          *)
20478            if test "$GXX" = yes; then
20479              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'
20480            else
20481              # FIXME: insert proper C++ library support
20482              ld_shlibs_CXX=no
20483            fi
20484            ;;
20485        esac
20486        ;;
20487
20488      hpux10*|hpux11*)
20489        if test $with_gnu_ld = no; then
20490	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20491	  hardcode_libdir_separator_CXX=:
20492
20493          case $host_cpu in
20494            hppa*64*|ia64*)
20495              ;;
20496            *)
20497	      export_dynamic_flag_spec_CXX='${wl}-E'
20498              ;;
20499          esac
20500        fi
20501        case $host_cpu in
20502          hppa*64*|ia64*)
20503            hardcode_direct_CXX=no
20504            hardcode_shlibpath_var_CXX=no
20505            ;;
20506          *)
20507            hardcode_direct_CXX=yes
20508            hardcode_direct_absolute_CXX=yes
20509            hardcode_minus_L_CXX=yes # Not in the search PATH,
20510					         # but as the default
20511					         # location of the library.
20512            ;;
20513        esac
20514
20515        case $cc_basename in
20516          CC*)
20517	    # FIXME: insert proper C++ library support
20518	    ld_shlibs_CXX=no
20519	    ;;
20520          aCC*)
20521	    case $host_cpu in
20522	      hppa*64*)
20523	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20524	        ;;
20525	      ia64*)
20526	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20527	        ;;
20528	      *)
20529	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20530	        ;;
20531	    esac
20532	    # Commands to make compiler produce verbose output that lists
20533	    # what "hidden" libraries, object files and flags are used when
20534	    # linking a shared library.
20535	    #
20536	    # There doesn't appear to be a way to prevent this compiler from
20537	    # explicitly linking system object files so we need to strip them
20538	    # from the output so that they don't get included in the library
20539	    # dependencies.
20540	    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"'
20541	    ;;
20542          *)
20543	    if test "$GXX" = yes; then
20544	      if test $with_gnu_ld = no; then
20545	        case $host_cpu in
20546	          hppa*64*)
20547	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20548	            ;;
20549	          ia64*)
20550	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20551	            ;;
20552	          *)
20553	            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'
20554	            ;;
20555	        esac
20556	      fi
20557	    else
20558	      # FIXME: insert proper C++ library support
20559	      ld_shlibs_CXX=no
20560	    fi
20561	    ;;
20562        esac
20563        ;;
20564
20565      interix[3-9]*)
20566	hardcode_direct_CXX=no
20567	hardcode_shlibpath_var_CXX=no
20568	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20569	export_dynamic_flag_spec_CXX='${wl}-E'
20570	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20571	# Instead, shared libraries are loaded at an image base (0x10000000 by
20572	# default) and relocated if they conflict, which is a slow very memory
20573	# consuming and fragmenting process.  To avoid this, we pick a random,
20574	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20575	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20576	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'
20577	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'
20578	;;
20579      irix5* | irix6*)
20580        case $cc_basename in
20581          CC*)
20582	    # SGI C++
20583	    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'
20584
20585	    # Archives containing C++ object files must be created using
20586	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
20587	    # necessary to make sure instantiated templates are included
20588	    # in the archive.
20589	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20590	    ;;
20591          *)
20592	    if test "$GXX" = yes; then
20593	      if test "$with_gnu_ld" = no; then
20594	        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'
20595	      else
20596	        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'
20597	      fi
20598	    fi
20599	    link_all_deplibs_CXX=yes
20600	    ;;
20601        esac
20602        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20603        hardcode_libdir_separator_CXX=:
20604        inherit_rpath_CXX=yes
20605        ;;
20606
20607      linux* | k*bsd*-gnu | kopensolaris*-gnu)
20608        case $cc_basename in
20609          KCC*)
20610	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20611
20612	    # KCC will only create a shared library if the output file
20613	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20614	    # to its proper name (with version) after linking.
20615	    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'
20616	    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'
20617	    # Commands to make compiler produce verbose output that lists
20618	    # what "hidden" libraries, object files and flags are used when
20619	    # linking a shared library.
20620	    #
20621	    # There doesn't appear to be a way to prevent this compiler from
20622	    # explicitly linking system object files so we need to strip them
20623	    # from the output so that they don't get included in the library
20624	    # dependencies.
20625	    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"'
20626
20627	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20628	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20629
20630	    # Archives containing C++ object files must be created using
20631	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20632	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20633	    ;;
20634	  icpc* | ecpc* )
20635	    # Intel C++
20636	    with_gnu_ld=yes
20637	    # version 8.0 and above of icpc choke on multiply defined symbols
20638	    # if we add $predep_objects and $postdep_objects, however 7.1 and
20639	    # earlier do not add the objects themselves.
20640	    case `$CC -V 2>&1` in
20641	      *"Version 7."*)
20642	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20643		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'
20644		;;
20645	      *)  # Version 8.0 or newer
20646	        tmp_idyn=
20647	        case $host_cpu in
20648		  ia64*) tmp_idyn=' -i_dynamic';;
20649		esac
20650	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20651		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'
20652		;;
20653	    esac
20654	    archive_cmds_need_lc_CXX=no
20655	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20656	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20657	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20658	    ;;
20659          pgCC* | pgcpp*)
20660            # Portland Group C++ compiler
20661	    case `$CC -V` in
20662	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20663	      prelink_cmds_CXX='tpldir=Template.dir~
20664		rm -rf $tpldir~
20665		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20666		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20667	      old_archive_cmds_CXX='tpldir=Template.dir~
20668		rm -rf $tpldir~
20669		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20670		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20671		$RANLIB $oldlib'
20672	      archive_cmds_CXX='tpldir=Template.dir~
20673		rm -rf $tpldir~
20674		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20675		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20676	      archive_expsym_cmds_CXX='tpldir=Template.dir~
20677		rm -rf $tpldir~
20678		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20679		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
20680	      ;;
20681	    *) # Version 6 and above use weak symbols
20682	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20683	      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'
20684	      ;;
20685	    esac
20686
20687	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20688	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20689	    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'
20690            ;;
20691	  cxx*)
20692	    # Compaq C++
20693	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20694	    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'
20695
20696	    runpath_var=LD_RUN_PATH
20697	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20698	    hardcode_libdir_separator_CXX=:
20699
20700	    # Commands to make compiler produce verbose output that lists
20701	    # what "hidden" libraries, object files and flags are used when
20702	    # linking a shared library.
20703	    #
20704	    # There doesn't appear to be a way to prevent this compiler from
20705	    # explicitly linking system object files so we need to strip them
20706	    # from the output so that they don't get included in the library
20707	    # dependencies.
20708	    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'
20709	    ;;
20710	  xl* | mpixl* | bgxl*)
20711	    # IBM XL 8.0 on PPC, with GNU ld
20712	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20713	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20714	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20715	    if test "x$supports_anon_versioning" = xyes; then
20716	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20717		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20718		echo "local: *; };" >> $output_objdir/$libname.ver~
20719		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20720	    fi
20721	    ;;
20722	  *)
20723	    case `$CC -V 2>&1 | sed 5q` in
20724	    *Sun\ C*)
20725	      # Sun C++ 5.9
20726	      no_undefined_flag_CXX=' -zdefs'
20727	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20728	      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'
20729	      hardcode_libdir_flag_spec_CXX='-R$libdir'
20730	      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'
20731	      compiler_needs_object_CXX=yes
20732
20733	      # Not sure whether something based on
20734	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20735	      # would be better.
20736	      output_verbose_link_cmd='func_echo_all'
20737
20738	      # Archives containing C++ object files must be created using
20739	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20740	      # necessary to make sure instantiated templates are included
20741	      # in the archive.
20742	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20743	      ;;
20744	    esac
20745	    ;;
20746	esac
20747	;;
20748
20749      lynxos*)
20750        # FIXME: insert proper C++ library support
20751	ld_shlibs_CXX=no
20752	;;
20753
20754      m88k*)
20755        # FIXME: insert proper C++ library support
20756        ld_shlibs_CXX=no
20757	;;
20758
20759      mvs*)
20760        case $cc_basename in
20761          cxx*)
20762	    # FIXME: insert proper C++ library support
20763	    ld_shlibs_CXX=no
20764	    ;;
20765	  *)
20766	    # FIXME: insert proper C++ library support
20767	    ld_shlibs_CXX=no
20768	    ;;
20769	esac
20770	;;
20771
20772      netbsd*)
20773        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20774	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20775	  wlarc=
20776	  hardcode_libdir_flag_spec_CXX='-R$libdir'
20777	  hardcode_direct_CXX=yes
20778	  hardcode_shlibpath_var_CXX=no
20779	fi
20780	# Workaround some broken pre-1.5 toolchains
20781	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20782	;;
20783
20784      *nto* | *qnx*)
20785        ld_shlibs_CXX=yes
20786	;;
20787
20788      openbsd2*)
20789        # C++ shared libraries are fairly broken
20790	ld_shlibs_CXX=no
20791	;;
20792
20793      openbsd*)
20794	if test -f /usr/libexec/ld.so; then
20795	  hardcode_direct_CXX=yes
20796	  hardcode_shlibpath_var_CXX=no
20797	  hardcode_direct_absolute_CXX=yes
20798	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20799	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20800	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20801	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20802	    export_dynamic_flag_spec_CXX='${wl}-E'
20803	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20804	  fi
20805	  output_verbose_link_cmd=func_echo_all
20806	else
20807	  ld_shlibs_CXX=no
20808	fi
20809	;;
20810
20811      osf3* | osf4* | osf5*)
20812        case $cc_basename in
20813          KCC*)
20814	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20815
20816	    # KCC will only create a shared library if the output file
20817	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20818	    # to its proper name (with version) after linking.
20819	    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'
20820
20821	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20822	    hardcode_libdir_separator_CXX=:
20823
20824	    # Archives containing C++ object files must be created using
20825	    # the KAI C++ compiler.
20826	    case $host in
20827	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20828	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20829	    esac
20830	    ;;
20831          RCC*)
20832	    # Rational C++ 2.4.1
20833	    # FIXME: insert proper C++ library support
20834	    ld_shlibs_CXX=no
20835	    ;;
20836          cxx*)
20837	    case $host in
20838	      osf3*)
20839	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20840	        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'
20841	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20842		;;
20843	      *)
20844	        allow_undefined_flag_CXX=' -expect_unresolved \*'
20845	        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'
20846	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20847	          echo "-hidden">> $lib.exp~
20848	          $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~
20849	          $RM $lib.exp'
20850	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20851		;;
20852	    esac
20853
20854	    hardcode_libdir_separator_CXX=:
20855
20856	    # Commands to make compiler produce verbose output that lists
20857	    # what "hidden" libraries, object files and flags are used when
20858	    # linking a shared library.
20859	    #
20860	    # There doesn't appear to be a way to prevent this compiler from
20861	    # explicitly linking system object files so we need to strip them
20862	    # from the output so that they don't get included in the library
20863	    # dependencies.
20864	    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"'
20865	    ;;
20866	  *)
20867	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20868	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20869	      case $host in
20870	        osf3*)
20871	          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'
20872		  ;;
20873	        *)
20874	          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'
20875		  ;;
20876	      esac
20877
20878	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20879	      hardcode_libdir_separator_CXX=:
20880
20881	      # Commands to make compiler produce verbose output that lists
20882	      # what "hidden" libraries, object files and flags are used when
20883	      # linking a shared library.
20884	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20885
20886	    else
20887	      # FIXME: insert proper C++ library support
20888	      ld_shlibs_CXX=no
20889	    fi
20890	    ;;
20891        esac
20892        ;;
20893
20894      psos*)
20895        # FIXME: insert proper C++ library support
20896        ld_shlibs_CXX=no
20897        ;;
20898
20899      sunos4*)
20900        case $cc_basename in
20901          CC*)
20902	    # Sun C++ 4.x
20903	    # FIXME: insert proper C++ library support
20904	    ld_shlibs_CXX=no
20905	    ;;
20906          lcc*)
20907	    # Lucid
20908	    # FIXME: insert proper C++ library support
20909	    ld_shlibs_CXX=no
20910	    ;;
20911          *)
20912	    # FIXME: insert proper C++ library support
20913	    ld_shlibs_CXX=no
20914	    ;;
20915        esac
20916        ;;
20917
20918      solaris*)
20919        case $cc_basename in
20920          CC*)
20921	    # Sun C++ 4.2, 5.x and Centerline C++
20922            archive_cmds_need_lc_CXX=yes
20923	    no_undefined_flag_CXX=' -zdefs'
20924	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20925	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20926	      $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'
20927
20928	    hardcode_libdir_flag_spec_CXX='-R$libdir'
20929	    hardcode_shlibpath_var_CXX=no
20930	    case $host_os in
20931	      solaris2.[0-5] | solaris2.[0-5].*) ;;
20932	      *)
20933		# The compiler driver will combine and reorder linker options,
20934		# but understands `-z linker_flag'.
20935	        # Supported since Solaris 2.6 (maybe 2.5.1?)
20936		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20937	        ;;
20938	    esac
20939	    link_all_deplibs_CXX=yes
20940
20941	    output_verbose_link_cmd='func_echo_all'
20942
20943	    # Archives containing C++ object files must be created using
20944	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20945	    # necessary to make sure instantiated templates are included
20946	    # in the archive.
20947	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20948	    ;;
20949          gcx*)
20950	    # Green Hills C++ Compiler
20951	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20952
20953	    # The C++ compiler must be used to create the archive.
20954	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20955	    ;;
20956          *)
20957	    # GNU C++ compiler with Solaris linker
20958	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20959	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20960	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20961	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20962	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20963		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20964
20965	        # Commands to make compiler produce verbose output that lists
20966	        # what "hidden" libraries, object files and flags are used when
20967	        # linking a shared library.
20968	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20969	      else
20970	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
20971	        # platform.
20972	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20973	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20974		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20975
20976	        # Commands to make compiler produce verbose output that lists
20977	        # what "hidden" libraries, object files and flags are used when
20978	        # linking a shared library.
20979	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20980	      fi
20981
20982	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20983	      case $host_os in
20984		solaris2.[0-5] | solaris2.[0-5].*) ;;
20985		*)
20986		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20987		  ;;
20988	      esac
20989	    fi
20990	    ;;
20991        esac
20992        ;;
20993
20994    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20995      no_undefined_flag_CXX='${wl}-z,text'
20996      archive_cmds_need_lc_CXX=no
20997      hardcode_shlibpath_var_CXX=no
20998      runpath_var='LD_RUN_PATH'
20999
21000      case $cc_basename in
21001        CC*)
21002	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21003	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21004	  ;;
21005	*)
21006	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21007	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21008	  ;;
21009      esac
21010      ;;
21011
21012      sysv5* | sco3.2v5* | sco5v6*)
21013	# Note: We can NOT use -z defs as we might desire, because we do not
21014	# link with -lc, and that would cause any symbols used from libc to
21015	# always be unresolved, which means just about no library would
21016	# ever link correctly.  If we're not using GNU ld we use -z text
21017	# though, which does catch some bad symbols but isn't as heavy-handed
21018	# as -z defs.
21019	no_undefined_flag_CXX='${wl}-z,text'
21020	allow_undefined_flag_CXX='${wl}-z,nodefs'
21021	archive_cmds_need_lc_CXX=no
21022	hardcode_shlibpath_var_CXX=no
21023	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21024	hardcode_libdir_separator_CXX=':'
21025	link_all_deplibs_CXX=yes
21026	export_dynamic_flag_spec_CXX='${wl}-Bexport'
21027	runpath_var='LD_RUN_PATH'
21028
21029	case $cc_basename in
21030          CC*)
21031	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21032	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21033	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21034	      '"$old_archive_cmds_CXX"
21035	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21036	      '"$reload_cmds_CXX"
21037	    ;;
21038	  *)
21039	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21040	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21041	    ;;
21042	esac
21043      ;;
21044
21045      tandem*)
21046        case $cc_basename in
21047          NCC*)
21048	    # NonStop-UX NCC 3.20
21049	    # FIXME: insert proper C++ library support
21050	    ld_shlibs_CXX=no
21051	    ;;
21052          *)
21053	    # FIXME: insert proper C++ library support
21054	    ld_shlibs_CXX=no
21055	    ;;
21056        esac
21057        ;;
21058
21059      vxworks*)
21060        # FIXME: insert proper C++ library support
21061        ld_shlibs_CXX=no
21062        ;;
21063
21064      *)
21065        # FIXME: insert proper C++ library support
21066        ld_shlibs_CXX=no
21067        ;;
21068    esac
21069
21070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21071$as_echo "$ld_shlibs_CXX" >&6; }
21072    test "$ld_shlibs_CXX" = no && can_build_shared=no
21073
21074    GCC_CXX="$GXX"
21075    LD_CXX="$LD"
21076
21077    ## CAVEAT EMPTOR:
21078    ## There is no encapsulation within the following macros, do not change
21079    ## the running order or otherwise move them around unless you know exactly
21080    ## what you are doing...
21081    # Dependencies to place before and after the object being linked:
21082predep_objects_CXX=
21083postdep_objects_CXX=
21084predeps_CXX=
21085postdeps_CXX=
21086compiler_lib_search_path_CXX=
21087
21088cat > conftest.$ac_ext <<_LT_EOF
21089class Foo
21090{
21091public:
21092  Foo (void) { a = 0; }
21093private:
21094  int a;
21095};
21096_LT_EOF
21097
21098if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21099  (eval $ac_compile) 2>&5
21100  ac_status=$?
21101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21102  test $ac_status = 0; }; then
21103  # Parse the compiler output and extract the necessary
21104  # objects, libraries and library flags.
21105
21106  # Sentinel used to keep track of whether or not we are before
21107  # the conftest object file.
21108  pre_test_object_deps_done=no
21109
21110  for p in `eval "$output_verbose_link_cmd"`; do
21111    case $p in
21112
21113    -L* | -R* | -l*)
21114       # Some compilers place space between "-{L,R}" and the path.
21115       # Remove the space.
21116       if test $p = "-L" ||
21117          test $p = "-R"; then
21118	 prev=$p
21119	 continue
21120       else
21121	 prev=
21122       fi
21123
21124       if test "$pre_test_object_deps_done" = no; then
21125	 case $p in
21126	 -L* | -R*)
21127	   # Internal compiler library paths should come after those
21128	   # provided the user.  The postdeps already come after the
21129	   # user supplied libs so there is no need to process them.
21130	   if test -z "$compiler_lib_search_path_CXX"; then
21131	     compiler_lib_search_path_CXX="${prev}${p}"
21132	   else
21133	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21134	   fi
21135	   ;;
21136	 # The "-l" case would never come before the object being
21137	 # linked, so don't bother handling this case.
21138	 esac
21139       else
21140	 if test -z "$postdeps_CXX"; then
21141	   postdeps_CXX="${prev}${p}"
21142	 else
21143	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21144	 fi
21145       fi
21146       ;;
21147
21148    *.$objext)
21149       # This assumes that the test object file only shows up
21150       # once in the compiler output.
21151       if test "$p" = "conftest.$objext"; then
21152	 pre_test_object_deps_done=yes
21153	 continue
21154       fi
21155
21156       if test "$pre_test_object_deps_done" = no; then
21157	 if test -z "$predep_objects_CXX"; then
21158	   predep_objects_CXX="$p"
21159	 else
21160	   predep_objects_CXX="$predep_objects_CXX $p"
21161	 fi
21162       else
21163	 if test -z "$postdep_objects_CXX"; then
21164	   postdep_objects_CXX="$p"
21165	 else
21166	   postdep_objects_CXX="$postdep_objects_CXX $p"
21167	 fi
21168       fi
21169       ;;
21170
21171    *) ;; # Ignore the rest.
21172
21173    esac
21174  done
21175
21176  # Clean up.
21177  rm -f a.out a.exe
21178else
21179  echo "libtool.m4: error: problem compiling CXX test program"
21180fi
21181
21182$RM -f confest.$objext
21183
21184# PORTME: override above test on systems where it is broken
21185case $host_os in
21186interix[3-9]*)
21187  # Interix 3.5 installs completely hosed .la files for C++, so rather than
21188  # hack all around it, let's just trust "g++" to DTRT.
21189  predep_objects_CXX=
21190  postdep_objects_CXX=
21191  postdeps_CXX=
21192  ;;
21193
21194linux*)
21195  case `$CC -V 2>&1 | sed 5q` in
21196  *Sun\ C*)
21197    # Sun C++ 5.9
21198
21199    # The more standards-conforming stlport4 library is
21200    # incompatible with the Cstd library. Avoid specifying
21201    # it if it's in CXXFLAGS. Ignore libCrun as
21202    # -library=stlport4 depends on it.
21203    case " $CXX $CXXFLAGS " in
21204    *" -library=stlport4 "*)
21205      solaris_use_stlport4=yes
21206      ;;
21207    esac
21208
21209    if test "$solaris_use_stlport4" != yes; then
21210      postdeps_CXX='-library=Cstd -library=Crun'
21211    fi
21212    ;;
21213  esac
21214  ;;
21215
21216solaris*)
21217  case $cc_basename in
21218  CC*)
21219    # The more standards-conforming stlport4 library is
21220    # incompatible with the Cstd library. Avoid specifying
21221    # it if it's in CXXFLAGS. Ignore libCrun as
21222    # -library=stlport4 depends on it.
21223    case " $CXX $CXXFLAGS " in
21224    *" -library=stlport4 "*)
21225      solaris_use_stlport4=yes
21226      ;;
21227    esac
21228
21229    # Adding this requires a known-good setup of shared libraries for
21230    # Sun compiler versions before 5.6, else PIC objects from an old
21231    # archive will be linked into the output, leading to subtle bugs.
21232    if test "$solaris_use_stlport4" != yes; then
21233      postdeps_CXX='-library=Cstd -library=Crun'
21234    fi
21235    ;;
21236  esac
21237  ;;
21238esac
21239
21240
21241case " $postdeps_CXX " in
21242*" -lc "*) archive_cmds_need_lc_CXX=no ;;
21243esac
21244 compiler_lib_search_dirs_CXX=
21245if test -n "${compiler_lib_search_path_CXX}"; then
21246 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21247fi
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279    lt_prog_compiler_wl_CXX=
21280lt_prog_compiler_pic_CXX=
21281lt_prog_compiler_static_CXX=
21282
21283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21284$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21285
21286  # C++ specific cases for pic, static, wl, etc.
21287  if test "$GXX" = yes; then
21288    lt_prog_compiler_wl_CXX='-Wl,'
21289    lt_prog_compiler_static_CXX='-static'
21290
21291    case $host_os in
21292    aix*)
21293      # All AIX code is PIC.
21294      if test "$host_cpu" = ia64; then
21295	# AIX 5 now supports IA64 processor
21296	lt_prog_compiler_static_CXX='-Bstatic'
21297      fi
21298      lt_prog_compiler_pic_CXX='-fPIC'
21299      ;;
21300
21301    amigaos*)
21302      case $host_cpu in
21303      powerpc)
21304            # see comment about AmigaOS4 .so support
21305            lt_prog_compiler_pic_CXX='-fPIC'
21306        ;;
21307      m68k)
21308            # FIXME: we need at least 68020 code to build shared libraries, but
21309            # adding the `-m68020' flag to GCC prevents building anything better,
21310            # like `-m68040'.
21311            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21312        ;;
21313      esac
21314      ;;
21315
21316    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21317      # PIC is the default for these OSes.
21318      ;;
21319    mingw* | cygwin* | os2* | pw32* | cegcc*)
21320      # This hack is so that the source file can tell whether it is being
21321      # built for inclusion in a dll (and should export symbols for example).
21322      # Although the cygwin gcc ignores -fPIC, still need this for old-style
21323      # (--disable-auto-import) libraries
21324      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21325      ;;
21326    darwin* | rhapsody*)
21327      # PIC is the default on this platform
21328      # Common symbols not allowed in MH_DYLIB files
21329      lt_prog_compiler_pic_CXX='-fno-common'
21330      ;;
21331    *djgpp*)
21332      # DJGPP does not support shared libraries at all
21333      lt_prog_compiler_pic_CXX=
21334      ;;
21335    haiku*)
21336      # PIC is the default for Haiku.
21337      # The "-static" flag exists, but is broken.
21338      lt_prog_compiler_static_CXX=
21339      ;;
21340    interix[3-9]*)
21341      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21342      # Instead, we relocate shared libraries at runtime.
21343      ;;
21344    sysv4*MP*)
21345      if test -d /usr/nec; then
21346	lt_prog_compiler_pic_CXX=-Kconform_pic
21347      fi
21348      ;;
21349    hpux*)
21350      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21351      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
21352      # sets the default TLS model and affects inlining.
21353      case $host_cpu in
21354      hppa*64*)
21355	;;
21356      *)
21357	lt_prog_compiler_pic_CXX='-fPIC'
21358	;;
21359      esac
21360      ;;
21361    *qnx* | *nto*)
21362      # QNX uses GNU C++, but need to define -shared option too, otherwise
21363      # it will coredump.
21364      lt_prog_compiler_pic_CXX='-fPIC -shared'
21365      ;;
21366    *)
21367      lt_prog_compiler_pic_CXX='-fPIC'
21368      ;;
21369    esac
21370  else
21371    case $host_os in
21372      aix[4-9]*)
21373	# All AIX code is PIC.
21374	if test "$host_cpu" = ia64; then
21375	  # AIX 5 now supports IA64 processor
21376	  lt_prog_compiler_static_CXX='-Bstatic'
21377	else
21378	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21379	fi
21380	;;
21381      chorus*)
21382	case $cc_basename in
21383	cxch68*)
21384	  # Green Hills C++ Compiler
21385	  # _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"
21386	  ;;
21387	esac
21388	;;
21389      dgux*)
21390	case $cc_basename in
21391	  ec++*)
21392	    lt_prog_compiler_pic_CXX='-KPIC'
21393	    ;;
21394	  ghcx*)
21395	    # Green Hills C++ Compiler
21396	    lt_prog_compiler_pic_CXX='-pic'
21397	    ;;
21398	  *)
21399	    ;;
21400	esac
21401	;;
21402      freebsd* | dragonfly*)
21403	# FreeBSD uses GNU C++
21404	;;
21405      hpux9* | hpux10* | hpux11*)
21406	case $cc_basename in
21407	  CC*)
21408	    lt_prog_compiler_wl_CXX='-Wl,'
21409	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21410	    if test "$host_cpu" != ia64; then
21411	      lt_prog_compiler_pic_CXX='+Z'
21412	    fi
21413	    ;;
21414	  aCC*)
21415	    lt_prog_compiler_wl_CXX='-Wl,'
21416	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21417	    case $host_cpu in
21418	    hppa*64*|ia64*)
21419	      # +Z the default
21420	      ;;
21421	    *)
21422	      lt_prog_compiler_pic_CXX='+Z'
21423	      ;;
21424	    esac
21425	    ;;
21426	  *)
21427	    ;;
21428	esac
21429	;;
21430      interix*)
21431	# This is c89, which is MS Visual C++ (no shared libs)
21432	# Anyone wants to do a port?
21433	;;
21434      irix5* | irix6* | nonstopux*)
21435	case $cc_basename in
21436	  CC*)
21437	    lt_prog_compiler_wl_CXX='-Wl,'
21438	    lt_prog_compiler_static_CXX='-non_shared'
21439	    # CC pic flag -KPIC is the default.
21440	    ;;
21441	  *)
21442	    ;;
21443	esac
21444	;;
21445      linux* | k*bsd*-gnu | kopensolaris*-gnu)
21446	case $cc_basename in
21447	  KCC*)
21448	    # KAI C++ Compiler
21449	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21450	    lt_prog_compiler_pic_CXX='-fPIC'
21451	    ;;
21452	  ecpc* )
21453	    # old Intel C++ for x86_64 which still supported -KPIC.
21454	    lt_prog_compiler_wl_CXX='-Wl,'
21455	    lt_prog_compiler_pic_CXX='-KPIC'
21456	    lt_prog_compiler_static_CXX='-static'
21457	    ;;
21458	  icpc* )
21459	    # Intel C++, used to be incompatible with GCC.
21460	    # ICC 10 doesn't accept -KPIC any more.
21461	    lt_prog_compiler_wl_CXX='-Wl,'
21462	    lt_prog_compiler_pic_CXX='-fPIC'
21463	    lt_prog_compiler_static_CXX='-static'
21464	    ;;
21465	  pgCC* | pgcpp*)
21466	    # Portland Group C++ compiler
21467	    lt_prog_compiler_wl_CXX='-Wl,'
21468	    lt_prog_compiler_pic_CXX='-fpic'
21469	    lt_prog_compiler_static_CXX='-Bstatic'
21470	    ;;
21471	  cxx*)
21472	    # Compaq C++
21473	    # Make sure the PIC flag is empty.  It appears that all Alpha
21474	    # Linux and Compaq Tru64 Unix objects are PIC.
21475	    lt_prog_compiler_pic_CXX=
21476	    lt_prog_compiler_static_CXX='-non_shared'
21477	    ;;
21478	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21479	    # IBM XL 8.0, 9.0 on PPC and BlueGene
21480	    lt_prog_compiler_wl_CXX='-Wl,'
21481	    lt_prog_compiler_pic_CXX='-qpic'
21482	    lt_prog_compiler_static_CXX='-qstaticlink'
21483	    ;;
21484	  *)
21485	    case `$CC -V 2>&1 | sed 5q` in
21486	    *Sun\ C*)
21487	      # Sun C++ 5.9
21488	      lt_prog_compiler_pic_CXX='-KPIC'
21489	      lt_prog_compiler_static_CXX='-Bstatic'
21490	      lt_prog_compiler_wl_CXX='-Qoption ld '
21491	      ;;
21492	    esac
21493	    ;;
21494	esac
21495	;;
21496      lynxos*)
21497	;;
21498      m88k*)
21499	;;
21500      mvs*)
21501	case $cc_basename in
21502	  cxx*)
21503	    lt_prog_compiler_pic_CXX='-W c,exportall'
21504	    ;;
21505	  *)
21506	    ;;
21507	esac
21508	;;
21509      netbsd*)
21510	;;
21511      *qnx* | *nto*)
21512        # QNX uses GNU C++, but need to define -shared option too, otherwise
21513        # it will coredump.
21514        lt_prog_compiler_pic_CXX='-fPIC -shared'
21515        ;;
21516      osf3* | osf4* | osf5*)
21517	case $cc_basename in
21518	  KCC*)
21519	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21520	    ;;
21521	  RCC*)
21522	    # Rational C++ 2.4.1
21523	    lt_prog_compiler_pic_CXX='-pic'
21524	    ;;
21525	  cxx*)
21526	    # Digital/Compaq C++
21527	    lt_prog_compiler_wl_CXX='-Wl,'
21528	    # Make sure the PIC flag is empty.  It appears that all Alpha
21529	    # Linux and Compaq Tru64 Unix objects are PIC.
21530	    lt_prog_compiler_pic_CXX=
21531	    lt_prog_compiler_static_CXX='-non_shared'
21532	    ;;
21533	  *)
21534	    ;;
21535	esac
21536	;;
21537      psos*)
21538	;;
21539      solaris*)
21540	case $cc_basename in
21541	  CC*)
21542	    # Sun C++ 4.2, 5.x and Centerline C++
21543	    lt_prog_compiler_pic_CXX='-KPIC'
21544	    lt_prog_compiler_static_CXX='-Bstatic'
21545	    lt_prog_compiler_wl_CXX='-Qoption ld '
21546	    ;;
21547	  gcx*)
21548	    # Green Hills C++ Compiler
21549	    lt_prog_compiler_pic_CXX='-PIC'
21550	    ;;
21551	  *)
21552	    ;;
21553	esac
21554	;;
21555      sunos4*)
21556	case $cc_basename in
21557	  CC*)
21558	    # Sun C++ 4.x
21559	    lt_prog_compiler_pic_CXX='-pic'
21560	    lt_prog_compiler_static_CXX='-Bstatic'
21561	    ;;
21562	  lcc*)
21563	    # Lucid
21564	    lt_prog_compiler_pic_CXX='-pic'
21565	    ;;
21566	  *)
21567	    ;;
21568	esac
21569	;;
21570      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21571	case $cc_basename in
21572	  CC*)
21573	    lt_prog_compiler_wl_CXX='-Wl,'
21574	    lt_prog_compiler_pic_CXX='-KPIC'
21575	    lt_prog_compiler_static_CXX='-Bstatic'
21576	    ;;
21577	esac
21578	;;
21579      tandem*)
21580	case $cc_basename in
21581	  NCC*)
21582	    # NonStop-UX NCC 3.20
21583	    lt_prog_compiler_pic_CXX='-KPIC'
21584	    ;;
21585	  *)
21586	    ;;
21587	esac
21588	;;
21589      vxworks*)
21590	;;
21591      *)
21592	lt_prog_compiler_can_build_shared_CXX=no
21593	;;
21594    esac
21595  fi
21596
21597case $host_os in
21598  # For platforms which do not support PIC, -DPIC is meaningless:
21599  *djgpp*)
21600    lt_prog_compiler_pic_CXX=
21601    ;;
21602  *)
21603    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21604    ;;
21605esac
21606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21607$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21608
21609
21610
21611#
21612# Check to make sure the PIC flag actually works.
21613#
21614if test -n "$lt_prog_compiler_pic_CXX"; then
21615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21616$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21617if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21618  $as_echo_n "(cached) " >&6
21619else
21620  lt_cv_prog_compiler_pic_works_CXX=no
21621   ac_outfile=conftest.$ac_objext
21622   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21623   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21624   # Insert the option either (1) after the last *FLAGS variable, or
21625   # (2) before a word containing "conftest.", or (3) at the end.
21626   # Note that $ac_compile itself does not contain backslashes and begins
21627   # with a dollar sign (not a hyphen), so the echo should work correctly.
21628   # The option is referenced via a variable to avoid confusing sed.
21629   lt_compile=`echo "$ac_compile" | $SED \
21630   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21631   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21632   -e 's:$: $lt_compiler_flag:'`
21633   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21634   (eval "$lt_compile" 2>conftest.err)
21635   ac_status=$?
21636   cat conftest.err >&5
21637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638   if (exit $ac_status) && test -s "$ac_outfile"; then
21639     # The compiler can only warn and ignore the option if not recognized
21640     # So say no if there are warnings other than the usual output.
21641     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21642     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21643     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21644       lt_cv_prog_compiler_pic_works_CXX=yes
21645     fi
21646   fi
21647   $RM conftest*
21648
21649fi
21650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21651$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21652
21653if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21654    case $lt_prog_compiler_pic_CXX in
21655     "" | " "*) ;;
21656     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21657     esac
21658else
21659    lt_prog_compiler_pic_CXX=
21660     lt_prog_compiler_can_build_shared_CXX=no
21661fi
21662
21663fi
21664
21665
21666
21667#
21668# Check to make sure the static flag actually works.
21669#
21670wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21672$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21673if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21674  $as_echo_n "(cached) " >&6
21675else
21676  lt_cv_prog_compiler_static_works_CXX=no
21677   save_LDFLAGS="$LDFLAGS"
21678   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21679   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21680   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21681     # The linker can only warn and ignore the option if not recognized
21682     # So say no if there are warnings
21683     if test -s conftest.err; then
21684       # Append any errors to the config.log.
21685       cat conftest.err 1>&5
21686       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21687       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21688       if diff conftest.exp conftest.er2 >/dev/null; then
21689         lt_cv_prog_compiler_static_works_CXX=yes
21690       fi
21691     else
21692       lt_cv_prog_compiler_static_works_CXX=yes
21693     fi
21694   fi
21695   $RM -r conftest*
21696   LDFLAGS="$save_LDFLAGS"
21697
21698fi
21699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21700$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21701
21702if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21703    :
21704else
21705    lt_prog_compiler_static_CXX=
21706fi
21707
21708
21709
21710
21711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21712$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21713if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21714  $as_echo_n "(cached) " >&6
21715else
21716  lt_cv_prog_compiler_c_o_CXX=no
21717   $RM -r conftest 2>/dev/null
21718   mkdir conftest
21719   cd conftest
21720   mkdir out
21721   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21722
21723   lt_compiler_flag="-o out/conftest2.$ac_objext"
21724   # Insert the option either (1) after the last *FLAGS variable, or
21725   # (2) before a word containing "conftest.", or (3) at the end.
21726   # Note that $ac_compile itself does not contain backslashes and begins
21727   # with a dollar sign (not a hyphen), so the echo should work correctly.
21728   lt_compile=`echo "$ac_compile" | $SED \
21729   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21730   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21731   -e 's:$: $lt_compiler_flag:'`
21732   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21733   (eval "$lt_compile" 2>out/conftest.err)
21734   ac_status=$?
21735   cat out/conftest.err >&5
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21738   then
21739     # The compiler can only warn and ignore the option if not recognized
21740     # So say no if there are warnings
21741     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21742     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21743     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21744       lt_cv_prog_compiler_c_o_CXX=yes
21745     fi
21746   fi
21747   chmod u+w . 2>&5
21748   $RM conftest*
21749   # SGI C++ compiler will create directory out/ii_files/ for
21750   # template instantiation
21751   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21752   $RM out/* && rmdir out
21753   cd ..
21754   $RM -r conftest
21755   $RM conftest*
21756
21757fi
21758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21759$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21760
21761
21762
21763    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21764$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21765if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21766  $as_echo_n "(cached) " >&6
21767else
21768  lt_cv_prog_compiler_c_o_CXX=no
21769   $RM -r conftest 2>/dev/null
21770   mkdir conftest
21771   cd conftest
21772   mkdir out
21773   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21774
21775   lt_compiler_flag="-o out/conftest2.$ac_objext"
21776   # Insert the option either (1) after the last *FLAGS variable, or
21777   # (2) before a word containing "conftest.", or (3) at the end.
21778   # Note that $ac_compile itself does not contain backslashes and begins
21779   # with a dollar sign (not a hyphen), so the echo should work correctly.
21780   lt_compile=`echo "$ac_compile" | $SED \
21781   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21782   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21783   -e 's:$: $lt_compiler_flag:'`
21784   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21785   (eval "$lt_compile" 2>out/conftest.err)
21786   ac_status=$?
21787   cat out/conftest.err >&5
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21790   then
21791     # The compiler can only warn and ignore the option if not recognized
21792     # So say no if there are warnings
21793     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21794     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21795     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21796       lt_cv_prog_compiler_c_o_CXX=yes
21797     fi
21798   fi
21799   chmod u+w . 2>&5
21800   $RM conftest*
21801   # SGI C++ compiler will create directory out/ii_files/ for
21802   # template instantiation
21803   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21804   $RM out/* && rmdir out
21805   cd ..
21806   $RM -r conftest
21807   $RM conftest*
21808
21809fi
21810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21811$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21812
21813
21814
21815
21816hard_links="nottested"
21817if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21818  # do not overwrite the value of need_locks provided by the user
21819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21820$as_echo_n "checking if we can lock with hard links... " >&6; }
21821  hard_links=yes
21822  $RM conftest*
21823  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21824  touch conftest.a
21825  ln conftest.a conftest.b 2>&5 || hard_links=no
21826  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21828$as_echo "$hard_links" >&6; }
21829  if test "$hard_links" = no; then
21830    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21831$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21832    need_locks=warn
21833  fi
21834else
21835  need_locks=no
21836fi
21837
21838
21839
21840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21841$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21842
21843  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21844  case $host_os in
21845  aix[4-9]*)
21846    # If we're using GNU nm, then we don't want the "-C" option.
21847    # -C means demangle to AIX nm, but means don't demangle with GNU nm
21848    # Also, AIX nm treats weak defined symbols like other global defined
21849    # symbols, whereas GNU nm marks them as "W".
21850    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21851      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'
21852    else
21853      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21854    fi
21855    ;;
21856  pw32*)
21857    export_symbols_cmds_CXX="$ltdll_cmds"
21858  ;;
21859  cygwin* | mingw* | cegcc*)
21860    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'
21861  ;;
21862  *)
21863    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21864  ;;
21865  esac
21866  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21867
21868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21869$as_echo "$ld_shlibs_CXX" >&6; }
21870test "$ld_shlibs_CXX" = no && can_build_shared=no
21871
21872with_gnu_ld_CXX=$with_gnu_ld
21873
21874
21875
21876
21877
21878
21879#
21880# Do we need to explicitly link libc?
21881#
21882case "x$archive_cmds_need_lc_CXX" in
21883x|xyes)
21884  # Assume -lc should be added
21885  archive_cmds_need_lc_CXX=yes
21886
21887  if test "$enable_shared" = yes && test "$GCC" = yes; then
21888    case $archive_cmds_CXX in
21889    *'~'*)
21890      # FIXME: we may have to deal with multi-command sequences.
21891      ;;
21892    '$CC '*)
21893      # Test whether the compiler implicitly links with -lc since on some
21894      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21895      # to ld, don't add -lc before -lgcc.
21896      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21897$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21898if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21899  $as_echo_n "(cached) " >&6
21900else
21901  $RM conftest*
21902	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21903
21904	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21905  (eval $ac_compile) 2>&5
21906  ac_status=$?
21907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21908  test $ac_status = 0; } 2>conftest.err; then
21909	  soname=conftest
21910	  lib=conftest
21911	  libobjs=conftest.$ac_objext
21912	  deplibs=
21913	  wl=$lt_prog_compiler_wl_CXX
21914	  pic_flag=$lt_prog_compiler_pic_CXX
21915	  compiler_flags=-v
21916	  linker_flags=-v
21917	  verstring=
21918	  output_objdir=.
21919	  libname=conftest
21920	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21921	  allow_undefined_flag_CXX=
21922	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21923  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21924  ac_status=$?
21925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21926  test $ac_status = 0; }
21927	  then
21928	    lt_cv_archive_cmds_need_lc_CXX=no
21929	  else
21930	    lt_cv_archive_cmds_need_lc_CXX=yes
21931	  fi
21932	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21933	else
21934	  cat conftest.err 1>&5
21935	fi
21936	$RM conftest*
21937
21938fi
21939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21940$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21941      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21942      ;;
21943    esac
21944  fi
21945  ;;
21946esac
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22012$as_echo_n "checking dynamic linker characteristics... " >&6; }
22013
22014library_names_spec=
22015libname_spec='lib$name'
22016soname_spec=
22017shrext_cmds=".so"
22018postinstall_cmds=
22019postuninstall_cmds=
22020finish_cmds=
22021finish_eval=
22022shlibpath_var=
22023shlibpath_overrides_runpath=unknown
22024version_type=none
22025dynamic_linker="$host_os ld.so"
22026sys_lib_dlsearch_path_spec="/lib /usr/lib"
22027need_lib_prefix=unknown
22028hardcode_into_libs=no
22029
22030# when you set need_version to no, make sure it does not cause -set_version
22031# flags to be left without arguments
22032need_version=unknown
22033
22034case $host_os in
22035aix3*)
22036  version_type=linux
22037  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22038  shlibpath_var=LIBPATH
22039
22040  # AIX 3 has no versioning support, so we append a major version to the name.
22041  soname_spec='${libname}${release}${shared_ext}$major'
22042  ;;
22043
22044aix[4-9]*)
22045  version_type=linux
22046  need_lib_prefix=no
22047  need_version=no
22048  hardcode_into_libs=yes
22049  if test "$host_cpu" = ia64; then
22050    # AIX 5 supports IA64
22051    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22052    shlibpath_var=LD_LIBRARY_PATH
22053  else
22054    # With GCC up to 2.95.x, collect2 would create an import file
22055    # for dependence libraries.  The import file would start with
22056    # the line `#! .'.  This would cause the generated library to
22057    # depend on `.', always an invalid library.  This was fixed in
22058    # development snapshots of GCC prior to 3.0.
22059    case $host_os in
22060      aix4 | aix4.[01] | aix4.[01].*)
22061      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22062	   echo ' yes '
22063	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22064	:
22065      else
22066	can_build_shared=no
22067      fi
22068      ;;
22069    esac
22070    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22071    # soname into executable. Probably we can add versioning support to
22072    # collect2, so additional links can be useful in future.
22073    if test "$aix_use_runtimelinking" = yes; then
22074      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22075      # instead of lib<name>.a to let people know that these are not
22076      # typical AIX shared libraries.
22077      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22078    else
22079      # We preserve .a as extension for shared libraries through AIX4.2
22080      # and later when we are not doing run time linking.
22081      library_names_spec='${libname}${release}.a $libname.a'
22082      soname_spec='${libname}${release}${shared_ext}$major'
22083    fi
22084    shlibpath_var=LIBPATH
22085  fi
22086  ;;
22087
22088amigaos*)
22089  case $host_cpu in
22090  powerpc)
22091    # Since July 2007 AmigaOS4 officially supports .so libraries.
22092    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22093    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22094    ;;
22095  m68k)
22096    library_names_spec='$libname.ixlibrary $libname.a'
22097    # Create ${libname}_ixlibrary.a entries in /sys/libs.
22098    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'
22099    ;;
22100  esac
22101  ;;
22102
22103beos*)
22104  library_names_spec='${libname}${shared_ext}'
22105  dynamic_linker="$host_os ld.so"
22106  shlibpath_var=LIBRARY_PATH
22107  ;;
22108
22109bsdi[45]*)
22110  version_type=linux
22111  need_version=no
22112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22113  soname_spec='${libname}${release}${shared_ext}$major'
22114  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22115  shlibpath_var=LD_LIBRARY_PATH
22116  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22117  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22118  # the default ld.so.conf also contains /usr/contrib/lib and
22119  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22120  # libtool to hard-code these into programs
22121  ;;
22122
22123cygwin* | mingw* | pw32* | cegcc*)
22124  version_type=windows
22125  shrext_cmds=".dll"
22126  need_version=no
22127  need_lib_prefix=no
22128
22129  case $GCC,$host_os in
22130  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22131    library_names_spec='$libname.dll.a'
22132    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22133    postinstall_cmds='base_file=`basename \${file}`~
22134      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22135      dldir=$destdir/`dirname \$dlpath`~
22136      test -d \$dldir || mkdir -p \$dldir~
22137      $install_prog $dir/$dlname \$dldir/$dlname~
22138      chmod a+x \$dldir/$dlname~
22139      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22140        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22141      fi'
22142    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22143      dlpath=$dir/\$dldll~
22144       $RM \$dlpath'
22145    shlibpath_overrides_runpath=yes
22146
22147    case $host_os in
22148    cygwin*)
22149      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22150      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22151
22152      ;;
22153    mingw* | cegcc*)
22154      # MinGW DLLs use traditional 'lib' prefix
22155      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22156      ;;
22157    pw32*)
22158      # pw32 DLLs use 'pw' prefix rather than 'lib'
22159      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22160      ;;
22161    esac
22162    ;;
22163
22164  *)
22165    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22166    ;;
22167  esac
22168  dynamic_linker='Win32 ld.exe'
22169  # FIXME: first we should search . and the directory the executable is in
22170  shlibpath_var=PATH
22171  ;;
22172
22173darwin* | rhapsody*)
22174  dynamic_linker="$host_os dyld"
22175  version_type=darwin
22176  need_lib_prefix=no
22177  need_version=no
22178  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22179  soname_spec='${libname}${release}${major}$shared_ext'
22180  shlibpath_overrides_runpath=yes
22181  shlibpath_var=DYLD_LIBRARY_PATH
22182  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22183
22184  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22185  ;;
22186
22187dgux*)
22188  version_type=linux
22189  need_lib_prefix=no
22190  need_version=no
22191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22192  soname_spec='${libname}${release}${shared_ext}$major'
22193  shlibpath_var=LD_LIBRARY_PATH
22194  ;;
22195
22196freebsd* | dragonfly*)
22197  # DragonFly does not have aout.  When/if they implement a new
22198  # versioning mechanism, adjust this.
22199  if test -x /usr/bin/objformat; then
22200    objformat=`/usr/bin/objformat`
22201  else
22202    case $host_os in
22203    freebsd[23].*) objformat=aout ;;
22204    *) objformat=elf ;;
22205    esac
22206  fi
22207  version_type=freebsd-$objformat
22208  case $version_type in
22209    freebsd-elf*)
22210      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22211      need_version=no
22212      need_lib_prefix=no
22213      ;;
22214    freebsd-*)
22215      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22216      need_version=yes
22217      ;;
22218  esac
22219  shlibpath_var=LD_LIBRARY_PATH
22220  case $host_os in
22221  freebsd2.*)
22222    shlibpath_overrides_runpath=yes
22223    ;;
22224  freebsd3.[01]* | freebsdelf3.[01]*)
22225    shlibpath_overrides_runpath=yes
22226    hardcode_into_libs=yes
22227    ;;
22228  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22229  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22230    shlibpath_overrides_runpath=no
22231    hardcode_into_libs=yes
22232    ;;
22233  *) # from 4.6 on, and DragonFly
22234    shlibpath_overrides_runpath=yes
22235    hardcode_into_libs=yes
22236    ;;
22237  esac
22238  ;;
22239
22240haiku*)
22241  version_type=linux
22242  need_lib_prefix=no
22243  need_version=no
22244  dynamic_linker="$host_os runtime_loader"
22245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22246  soname_spec='${libname}${release}${shared_ext}$major'
22247  shlibpath_var=LIBRARY_PATH
22248  shlibpath_overrides_runpath=yes
22249  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22250  hardcode_into_libs=yes
22251  ;;
22252
22253hpux9* | hpux10* | hpux11*)
22254  # Give a soname corresponding to the major version so that dld.sl refuses to
22255  # link against other versions.
22256  version_type=sunos
22257  need_lib_prefix=no
22258  need_version=no
22259  case $host_cpu in
22260  ia64*)
22261    shrext_cmds='.so'
22262    hardcode_into_libs=yes
22263    dynamic_linker="$host_os dld.so"
22264    shlibpath_var=LD_LIBRARY_PATH
22265    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22266    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22267    soname_spec='${libname}${release}${shared_ext}$major'
22268    if test "X$HPUX_IA64_MODE" = X32; then
22269      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22270    else
22271      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22272    fi
22273    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22274    ;;
22275  hppa*64*)
22276    shrext_cmds='.sl'
22277    hardcode_into_libs=yes
22278    dynamic_linker="$host_os dld.sl"
22279    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22280    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22281    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22282    soname_spec='${libname}${release}${shared_ext}$major'
22283    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22284    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22285    ;;
22286  *)
22287    shrext_cmds='.sl'
22288    dynamic_linker="$host_os dld.sl"
22289    shlibpath_var=SHLIB_PATH
22290    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22291    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22292    soname_spec='${libname}${release}${shared_ext}$major'
22293    ;;
22294  esac
22295  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22296  postinstall_cmds='chmod 555 $lib'
22297  # or fails outright, so override atomically:
22298  install_override_mode=555
22299  ;;
22300
22301interix[3-9]*)
22302  version_type=linux
22303  need_lib_prefix=no
22304  need_version=no
22305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22306  soname_spec='${libname}${release}${shared_ext}$major'
22307  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22308  shlibpath_var=LD_LIBRARY_PATH
22309  shlibpath_overrides_runpath=no
22310  hardcode_into_libs=yes
22311  ;;
22312
22313irix5* | irix6* | nonstopux*)
22314  case $host_os in
22315    nonstopux*) version_type=nonstopux ;;
22316    *)
22317	if test "$lt_cv_prog_gnu_ld" = yes; then
22318		version_type=linux
22319	else
22320		version_type=irix
22321	fi ;;
22322  esac
22323  need_lib_prefix=no
22324  need_version=no
22325  soname_spec='${libname}${release}${shared_ext}$major'
22326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22327  case $host_os in
22328  irix5* | nonstopux*)
22329    libsuff= shlibsuff=
22330    ;;
22331  *)
22332    case $LD in # libtool.m4 will add one of these switches to LD
22333    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22334      libsuff= shlibsuff= libmagic=32-bit;;
22335    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22336      libsuff=32 shlibsuff=N32 libmagic=N32;;
22337    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22338      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22339    *) libsuff= shlibsuff= libmagic=never-match;;
22340    esac
22341    ;;
22342  esac
22343  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22344  shlibpath_overrides_runpath=no
22345  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22346  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22347  hardcode_into_libs=yes
22348  ;;
22349
22350# No shared lib support for Linux oldld, aout, or coff.
22351linux*oldld* | linux*aout* | linux*coff*)
22352  dynamic_linker=no
22353  ;;
22354
22355# This must be Linux ELF.
22356
22357# uclinux* changes (here and below) have been submitted to the libtool
22358# project, but have not yet been accepted: they are GCC-local changes
22359# for the time being.  (See
22360# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22361linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22362  version_type=linux
22363  need_lib_prefix=no
22364  need_version=no
22365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22366  soname_spec='${libname}${release}${shared_ext}$major'
22367  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22368  shlibpath_var=LD_LIBRARY_PATH
22369  shlibpath_overrides_runpath=no
22370
22371  # Some binutils ld are patched to set DT_RUNPATH
22372  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22373  $as_echo_n "(cached) " >&6
22374else
22375  lt_cv_shlibpath_overrides_runpath=no
22376    save_LDFLAGS=$LDFLAGS
22377    save_libdir=$libdir
22378    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22379	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22380    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22381/* end confdefs.h.  */
22382
22383int
22384main ()
22385{
22386
22387  ;
22388  return 0;
22389}
22390_ACEOF
22391if ac_fn_cxx_try_link "$LINENO"; then :
22392  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22393  lt_cv_shlibpath_overrides_runpath=yes
22394fi
22395fi
22396rm -f core conftest.err conftest.$ac_objext \
22397    conftest$ac_exeext conftest.$ac_ext
22398    LDFLAGS=$save_LDFLAGS
22399    libdir=$save_libdir
22400
22401fi
22402
22403  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22404
22405  # This implies no fast_install, which is unacceptable.
22406  # Some rework will be needed to allow for fast_install
22407  # before this can be enabled.
22408  hardcode_into_libs=yes
22409
22410  # Append ld.so.conf contents to the search path
22411  if test -f /etc/ld.so.conf; then
22412    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' ' '`
22413    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22414  fi
22415
22416  # We used to test for /lib/ld.so.1 and disable shared libraries on
22417  # powerpc, because MkLinux only supported shared libraries with the
22418  # GNU dynamic linker.  Since this was broken with cross compilers,
22419  # most powerpc-linux boxes support dynamic linking these days and
22420  # people can always --disable-shared, the test was removed, and we
22421  # assume the GNU/Linux dynamic linker is in use.
22422  dynamic_linker='GNU/Linux ld.so'
22423  ;;
22424
22425netbsd*)
22426  version_type=sunos
22427  need_lib_prefix=no
22428  need_version=no
22429  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22430    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22431    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22432    dynamic_linker='NetBSD (a.out) ld.so'
22433  else
22434    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22435    soname_spec='${libname}${release}${shared_ext}$major'
22436    dynamic_linker='NetBSD ld.elf_so'
22437  fi
22438  shlibpath_var=LD_LIBRARY_PATH
22439  shlibpath_overrides_runpath=yes
22440  hardcode_into_libs=yes
22441  ;;
22442
22443newsos6)
22444  version_type=linux
22445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22446  shlibpath_var=LD_LIBRARY_PATH
22447  shlibpath_overrides_runpath=yes
22448  ;;
22449
22450*nto* | *qnx*)
22451  version_type=qnx
22452  need_lib_prefix=no
22453  need_version=no
22454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22455  soname_spec='${libname}${release}${shared_ext}$major'
22456  shlibpath_var=LD_LIBRARY_PATH
22457  shlibpath_overrides_runpath=no
22458  hardcode_into_libs=yes
22459  dynamic_linker='ldqnx.so'
22460  ;;
22461
22462openbsd*)
22463  version_type=sunos
22464  sys_lib_dlsearch_path_spec="/usr/lib"
22465  need_lib_prefix=no
22466  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22467  case $host_os in
22468    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
22469    *)				need_version=no  ;;
22470  esac
22471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22472  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22473  shlibpath_var=LD_LIBRARY_PATH
22474  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22475    case $host_os in
22476      openbsd2.[89] | openbsd2.[89].*)
22477	shlibpath_overrides_runpath=no
22478	;;
22479      *)
22480	shlibpath_overrides_runpath=yes
22481	;;
22482      esac
22483  else
22484    shlibpath_overrides_runpath=yes
22485  fi
22486  ;;
22487
22488os2*)
22489  libname_spec='$name'
22490  shrext_cmds=".dll"
22491  need_lib_prefix=no
22492  library_names_spec='$libname${shared_ext} $libname.a'
22493  dynamic_linker='OS/2 ld.exe'
22494  shlibpath_var=LIBPATH
22495  ;;
22496
22497osf3* | osf4* | osf5*)
22498  version_type=osf
22499  need_lib_prefix=no
22500  need_version=no
22501  soname_spec='${libname}${release}${shared_ext}$major'
22502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22503  shlibpath_var=LD_LIBRARY_PATH
22504  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22505  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22506  ;;
22507
22508rdos*)
22509  dynamic_linker=no
22510  ;;
22511
22512solaris*)
22513  version_type=linux
22514  need_lib_prefix=no
22515  need_version=no
22516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22517  soname_spec='${libname}${release}${shared_ext}$major'
22518  shlibpath_var=LD_LIBRARY_PATH
22519  shlibpath_overrides_runpath=yes
22520  hardcode_into_libs=yes
22521  # ldd complains unless libraries are executable
22522  postinstall_cmds='chmod +x $lib'
22523  ;;
22524
22525sunos4*)
22526  version_type=sunos
22527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22528  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22529  shlibpath_var=LD_LIBRARY_PATH
22530  shlibpath_overrides_runpath=yes
22531  if test "$with_gnu_ld" = yes; then
22532    need_lib_prefix=no
22533  fi
22534  need_version=yes
22535  ;;
22536
22537sysv4 | sysv4.3*)
22538  version_type=linux
22539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22540  soname_spec='${libname}${release}${shared_ext}$major'
22541  shlibpath_var=LD_LIBRARY_PATH
22542  case $host_vendor in
22543    sni)
22544      shlibpath_overrides_runpath=no
22545      need_lib_prefix=no
22546      runpath_var=LD_RUN_PATH
22547      ;;
22548    siemens)
22549      need_lib_prefix=no
22550      ;;
22551    motorola)
22552      need_lib_prefix=no
22553      need_version=no
22554      shlibpath_overrides_runpath=no
22555      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22556      ;;
22557  esac
22558  ;;
22559
22560sysv4*MP*)
22561  if test -d /usr/nec ;then
22562    version_type=linux
22563    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22564    soname_spec='$libname${shared_ext}.$major'
22565    shlibpath_var=LD_LIBRARY_PATH
22566  fi
22567  ;;
22568
22569sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22570  version_type=freebsd-elf
22571  need_lib_prefix=no
22572  need_version=no
22573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22574  soname_spec='${libname}${release}${shared_ext}$major'
22575  shlibpath_var=LD_LIBRARY_PATH
22576  shlibpath_overrides_runpath=yes
22577  hardcode_into_libs=yes
22578  if test "$with_gnu_ld" = yes; then
22579    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22580  else
22581    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22582    case $host_os in
22583      sco3.2v5*)
22584        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22585	;;
22586    esac
22587  fi
22588  sys_lib_dlsearch_path_spec='/usr/lib'
22589  ;;
22590
22591tpf*)
22592  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
22593  version_type=linux
22594  need_lib_prefix=no
22595  need_version=no
22596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22597  shlibpath_var=LD_LIBRARY_PATH
22598  shlibpath_overrides_runpath=no
22599  hardcode_into_libs=yes
22600  ;;
22601
22602uts4*)
22603  version_type=linux
22604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22605  soname_spec='${libname}${release}${shared_ext}$major'
22606  shlibpath_var=LD_LIBRARY_PATH
22607  ;;
22608
22609*)
22610  dynamic_linker=no
22611  ;;
22612esac
22613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22614$as_echo "$dynamic_linker" >&6; }
22615test "$dynamic_linker" = no && can_build_shared=no
22616
22617variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22618if test "$GCC" = yes; then
22619  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22620fi
22621
22622if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22623  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22624fi
22625if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22626  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22627fi
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22667$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22668hardcode_action_CXX=
22669if test -n "$hardcode_libdir_flag_spec_CXX" ||
22670   test -n "$runpath_var_CXX" ||
22671   test "X$hardcode_automatic_CXX" = "Xyes" ; then
22672
22673  # We can hardcode non-existent directories.
22674  if test "$hardcode_direct_CXX" != no &&
22675     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22676     # have to relink, otherwise we might link with an installed library
22677     # when we should be linking with a yet-to-be-installed one
22678     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22679     test "$hardcode_minus_L_CXX" != no; then
22680    # Linking always hardcodes the temporary library directory.
22681    hardcode_action_CXX=relink
22682  else
22683    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22684    hardcode_action_CXX=immediate
22685  fi
22686else
22687  # We cannot hardcode anything, or else we can only hardcode existing
22688  # directories.
22689  hardcode_action_CXX=unsupported
22690fi
22691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22692$as_echo "$hardcode_action_CXX" >&6; }
22693
22694if test "$hardcode_action_CXX" = relink ||
22695   test "$inherit_rpath_CXX" = yes; then
22696  # Fast installation is not supported
22697  enable_fast_install=no
22698elif test "$shlibpath_overrides_runpath" = yes ||
22699     test "$enable_shared" = no; then
22700  # Fast installation is not necessary
22701  enable_fast_install=needless
22702fi
22703
22704
22705
22706
22707
22708
22709
22710  fi # test -n "$compiler"
22711
22712  CC=$lt_save_CC
22713  LDCXX=$LD
22714  LD=$lt_save_LD
22715  GCC=$lt_save_GCC
22716  with_gnu_ld=$lt_save_with_gnu_ld
22717  lt_cv_path_LDCXX=$lt_cv_path_LD
22718  lt_cv_path_LD=$lt_save_path_LD
22719  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22720  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22721fi # test "$_lt_caught_CXX_error" != yes
22722
22723ac_ext=cpp
22724ac_cpp='$CXXCPP $CPPFLAGS'
22725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744# Only expand once:
22745
22746
22747
22748
22749
22750# Identify the assembler which will work hand-in-glove with the newly
22751# built GCC, so that we can examine its features.  This is the assembler
22752# which will be driven by the driver program.
22753#
22754# If build != host, and we aren't building gas in-tree, we identify a
22755# build->target assembler and hope that it will have the same features
22756# as the host->target assembler we'll be using.
22757gcc_cv_gas_major_version=
22758gcc_cv_gas_minor_version=
22759gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22760
22761if ${gcc_cv_as+:} false; then :
22762
22763else
22764
22765if test -x "$DEFAULT_ASSEMBLER"; then
22766	gcc_cv_as="$DEFAULT_ASSEMBLER"
22767elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22768     && test -f ../gas/Makefile \
22769     && test x$build = x$host; then
22770	gcc_cv_as=../gas/as-new$build_exeext
22771elif test -x as$build_exeext; then
22772	# Build using assembler in the current directory.
22773	gcc_cv_as=./as$build_exeext
22774elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22775        gcc_cv_as="$AS_FOR_TARGET"
22776else
22777        # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22778set dummy $AS_FOR_TARGET; ac_word=$2
22779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22780$as_echo_n "checking for $ac_word... " >&6; }
22781if ${ac_cv_path_gcc_cv_as+:} false; then :
22782  $as_echo_n "(cached) " >&6
22783else
22784  case $gcc_cv_as in
22785  [\\/]* | ?:[\\/]*)
22786  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22787  ;;
22788  *)
22789  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22790for as_dir in $PATH
22791do
22792  IFS=$as_save_IFS
22793  test -z "$as_dir" && as_dir=.
22794    for ac_exec_ext in '' $ac_executable_extensions; do
22795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22796    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22798    break 2
22799  fi
22800done
22801  done
22802IFS=$as_save_IFS
22803
22804  ;;
22805esac
22806fi
22807gcc_cv_as=$ac_cv_path_gcc_cv_as
22808if test -n "$gcc_cv_as"; then
22809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22810$as_echo "$gcc_cv_as" >&6; }
22811else
22812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22813$as_echo "no" >&6; }
22814fi
22815
22816
22817fi
22818fi
22819
22820ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22821
22822case "$ORIGINAL_AS_FOR_TARGET" in
22823  ./as | ./as$build_exeext) ;;
22824  *) ac_config_files="$ac_config_files as:exec-tool.in"
22825 ;;
22826esac
22827
22828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22829$as_echo_n "checking what assembler to use... " >&6; }
22830if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22831  # Single tree build which includes gas.  We want to prefer it
22832  # over whatever linker top-level may have detected, since
22833  # we'll use what we're building after installation anyway.
22834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22835$as_echo "newly built gas" >&6; }
22836  in_tree_gas=yes
22837  gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22838for f in $gcc_cv_as_bfd_srcdir/configure \
22839         $gcc_cv_as_gas_srcdir/configure \
22840         $gcc_cv_as_gas_srcdir/configure.ac \
22841         $gcc_cv_as_gas_srcdir/Makefile.in ; do
22842  gcc_cv_gas_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22843  if test x$gcc_cv_gas_version != x; then
22844    break
22845  fi
22846done
22847case $gcc_cv_gas_version in
22848  VERSION=[0-9]*) ;;
22849  *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22850esac
22851gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22852gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22853gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22854case $gcc_cv_gas_patch_version in
22855  "") gcc_cv_gas_patch_version="0" ;;
22856esac
22857gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22858			    + $gcc_cv_gas_minor_version \) \* 1000 \
22859			    + $gcc_cv_gas_patch_version`
22860
22861  in_tree_gas_is_elf=no
22862  if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22863     || (grep 'obj_format = multi' ../gas/Makefile \
22864         && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22865  then
22866    in_tree_gas_is_elf=yes
22867  fi
22868else
22869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22870$as_echo "$gcc_cv_as" >&6; }
22871  in_tree_gas=no
22872fi
22873
22874default_ld=
22875# Check whether --enable-ld was given.
22876if test "${enable_ld+set}" = set; then :
22877  enableval=$enable_ld; case "${enableval}" in
22878 no)
22879   default_ld=ld.gold
22880   ;;
22881 esac
22882fi
22883
22884
22885install_gold_as_default=no
22886# Check whether --enable-gold was given.
22887if test "${enable_gold+set}" = set; then :
22888  enableval=$enable_gold; case "${enableval}" in
22889 default)
22890   install_gold_as_default=yes
22891   ;;
22892 yes)
22893   if test x${default_ld} != x; then
22894     install_gold_as_default=yes
22895   fi
22896   ;;
22897 no)
22898   ;;
22899 *)
22900   as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22901   ;;
22902 esac
22903fi
22904
22905
22906# Identify the linker which will work hand-in-glove with the newly
22907# built GCC, so that we can examine its features.  This is the linker
22908# which will be driven by the driver program.
22909#
22910# If build != host, and we aren't building gas in-tree, we identify a
22911# build->target linker and hope that it will have the same features
22912# as the host->target linker we'll be using.
22913gcc_cv_gld_major_version=
22914gcc_cv_gld_minor_version=
22915gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22916gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22917gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22918
22919if ${gcc_cv_ld+:} false; then :
22920
22921else
22922
22923if test -x "$DEFAULT_LINKER"; then
22924	gcc_cv_ld="$DEFAULT_LINKER"
22925elif test $install_gold_as_default = yes \
22926     && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22927     && test -f ../gold/Makefile \
22928     && test x$build = x$host; then
22929	gcc_cv_ld=../gold/ld-new$build_exeext
22930elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22931     && test -f ../ld/Makefile \
22932     && test x$build = x$host; then
22933	gcc_cv_ld=../ld/ld-new$build_exeext
22934elif test -x collect-ld$build_exeext; then
22935	# Build using linker in the current directory.
22936	gcc_cv_ld=./collect-ld$build_exeext
22937elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22938        gcc_cv_ld="$LD_FOR_TARGET"
22939else
22940        # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22941set dummy $LD_FOR_TARGET; ac_word=$2
22942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22943$as_echo_n "checking for $ac_word... " >&6; }
22944if ${ac_cv_path_gcc_cv_ld+:} false; then :
22945  $as_echo_n "(cached) " >&6
22946else
22947  case $gcc_cv_ld in
22948  [\\/]* | ?:[\\/]*)
22949  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22950  ;;
22951  *)
22952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22953for as_dir in $PATH
22954do
22955  IFS=$as_save_IFS
22956  test -z "$as_dir" && as_dir=.
22957    for ac_exec_ext in '' $ac_executable_extensions; do
22958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22959    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22961    break 2
22962  fi
22963done
22964  done
22965IFS=$as_save_IFS
22966
22967  ;;
22968esac
22969fi
22970gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22971if test -n "$gcc_cv_ld"; then
22972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22973$as_echo "$gcc_cv_ld" >&6; }
22974else
22975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22976$as_echo "no" >&6; }
22977fi
22978
22979
22980fi
22981fi
22982
22983ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22984PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22985# if the PLUGIN_LD is set ld-new, just have it as ld
22986# as that is the installed named.
22987if test x$PLUGIN_LD_SUFFIX = xld-new \
22988   || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22989  PLUGIN_LD_SUFFIX=ld
22990fi
22991
22992# Check whether --with-plugin-ld was given.
22993if test "${with_plugin_ld+set}" = set; then :
22994  withval=$with_plugin_ld; if test x"$withval" != x; then
22995   ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22996   PLUGIN_LD_SUFFIX="$withval"
22997 fi
22998fi
22999
23000
23001
23002cat >>confdefs.h <<_ACEOF
23003#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23004_ACEOF
23005
23006
23007# Check to see if we are using gold instead of ld
23008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23009$as_echo_n "checking whether we are using gold... " >&6; }
23010ld_is_gold=no
23011if test x$gcc_cv_ld != x; then
23012  if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23013     | grep "GNU gold" > /dev/null; then
23014    ld_is_gold=yes
23015  fi
23016fi
23017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23018$as_echo "$ld_is_gold" >&6; }
23019
23020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23021$as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23022# Check to see if default ld is not gold, but gold is
23023# available and has support for split stack.  If gcc was configured
23024# with gold then no checking is done.
23025#
23026if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23027
23028# For platforms other than powerpc64*, enable as appropriate.
23029
23030  gold_non_default=no
23031  ld_gold=`which ${gcc_cv_ld}.gold`
23032# Make sure this gold has minimal split stack support
23033  if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23034    ld_vers=`$ld_gold --version | sed 1q`
23035    gold_vers=`echo $ld_vers | sed -n \
23036          -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23037    case $target in
23038# check that the gold version contains the complete split stack support
23039# on powerpc64 big and little endian
23040      powerpc64*-*-*)
23041        case "$gold_vers" in
23042          2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23043          ;;
23044          *) gold_non_default=no
23045          ;;
23046        esac
23047        ;;
23048    esac
23049  fi
23050  if test $gold_non_default = yes; then
23051
23052$as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23053
23054  fi
23055fi
23056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23057$as_echo "$gold_non_default" >&6; }
23058
23059ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23060
23061case "$ORIGINAL_LD_FOR_TARGET" in
23062  ./collect-ld | ./collect-ld$build_exeext) ;;
23063  *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23064 ;;
23065esac
23066
23067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23068$as_echo_n "checking what linker to use... " >&6; }
23069if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23070   || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23071	# Single tree build which includes ld.  We want to prefer it
23072	# over whatever linker top-level may have detected, since
23073	# we'll use what we're building after installation anyway.
23074	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23075$as_echo "newly built ld" >&6; }
23076	in_tree_ld=yes
23077	in_tree_ld_is_elf=no
23078	if (grep 'EMUL = .*elf' ../ld/Makefile \
23079	    || grep 'EMUL = .*linux' ../ld/Makefile \
23080	    || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23081	  in_tree_ld_is_elf=yes
23082	elif test "$ld_is_gold" = yes; then
23083	  in_tree_ld_is_elf=yes
23084	fi
23085	for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
23086	do
23087		gcc_cv_gld_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23088		if test x$gcc_cv_gld_version != x; then
23089			break
23090		fi
23091	done
23092	case $gcc_cv_gld_version in
23093	  VERSION=[0-9]*) ;;
23094	  *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23095	esac
23096	gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23097	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23098	ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23099	ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23100else
23101	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23102$as_echo "$gcc_cv_ld" >&6; }
23103	in_tree_ld=no
23104	gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23105	ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23106	ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23107fi
23108
23109
23110
23111
23112# Figure out what nm we will be using.
23113gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23114if ${gcc_cv_nm+:} false; then :
23115
23116else
23117
23118if test -f $gcc_cv_binutils_srcdir/configure.ac \
23119     && test -f ../binutils/Makefile \
23120     && test x$build = x$host; then
23121	gcc_cv_nm=../binutils/nm-new$build_exeext
23122elif test -x nm$build_exeext; then
23123	gcc_cv_nm=./nm$build_exeext
23124elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23125        gcc_cv_nm="$NM_FOR_TARGET"
23126else
23127        # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23128set dummy $NM_FOR_TARGET; ac_word=$2
23129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23130$as_echo_n "checking for $ac_word... " >&6; }
23131if ${ac_cv_path_gcc_cv_nm+:} false; then :
23132  $as_echo_n "(cached) " >&6
23133else
23134  case $gcc_cv_nm in
23135  [\\/]* | ?:[\\/]*)
23136  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23137  ;;
23138  *)
23139  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23140for as_dir in $PATH
23141do
23142  IFS=$as_save_IFS
23143  test -z "$as_dir" && as_dir=.
23144    for ac_exec_ext in '' $ac_executable_extensions; do
23145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23146    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23148    break 2
23149  fi
23150done
23151  done
23152IFS=$as_save_IFS
23153
23154  ;;
23155esac
23156fi
23157gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23158if test -n "$gcc_cv_nm"; then
23159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23160$as_echo "$gcc_cv_nm" >&6; }
23161else
23162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23163$as_echo "no" >&6; }
23164fi
23165
23166
23167fi
23168fi
23169
23170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23171$as_echo_n "checking what nm to use... " >&6; }
23172if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23173	# Single tree build which includes binutils.
23174	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23175$as_echo "newly built nm" >&6; }
23176	in_tree_nm=yes
23177else
23178	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23179$as_echo "$gcc_cv_nm" >&6; }
23180	in_tree_nm=no
23181fi
23182
23183ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23184
23185case "$ORIGINAL_NM_FOR_TARGET" in
23186  ./nm | ./nm$build_exeext) ;;
23187  *) ac_config_files="$ac_config_files nm:exec-tool.in"
23188 ;;
23189esac
23190
23191
23192# Figure out what objdump we will be using.
23193if ${gcc_cv_objdump+:} false; then :
23194
23195else
23196
23197if test -f $gcc_cv_binutils_srcdir/configure.ac \
23198     && test -f ../binutils/Makefile \
23199     && test x$build = x$host; then
23200	# Single tree build which includes binutils.
23201	gcc_cv_objdump=../binutils/objdump$build_exeext
23202elif test -x objdump$build_exeext; then
23203	gcc_cv_objdump=./objdump$build_exeext
23204elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23205        gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23206else
23207        # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23208set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23210$as_echo_n "checking for $ac_word... " >&6; }
23211if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23212  $as_echo_n "(cached) " >&6
23213else
23214  case $gcc_cv_objdump in
23215  [\\/]* | ?:[\\/]*)
23216  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23217  ;;
23218  *)
23219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23220for as_dir in $PATH
23221do
23222  IFS=$as_save_IFS
23223  test -z "$as_dir" && as_dir=.
23224    for ac_exec_ext in '' $ac_executable_extensions; do
23225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23226    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23228    break 2
23229  fi
23230done
23231  done
23232IFS=$as_save_IFS
23233
23234  ;;
23235esac
23236fi
23237gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23238if test -n "$gcc_cv_objdump"; then
23239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23240$as_echo "$gcc_cv_objdump" >&6; }
23241else
23242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23243$as_echo "no" >&6; }
23244fi
23245
23246
23247fi
23248fi
23249
23250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23251$as_echo_n "checking what objdump to use... " >&6; }
23252if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23253	# Single tree build which includes binutils.
23254	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23255$as_echo "newly built objdump" >&6; }
23256elif test x$gcc_cv_objdump = x; then
23257	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23258$as_echo "not found" >&6; }
23259else
23260	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23261$as_echo "$gcc_cv_objdump" >&6; }
23262fi
23263
23264# Figure out what readelf we will be using.
23265if ${gcc_cv_readelf+:} false; then :
23266
23267else
23268
23269if test -f $gcc_cv_binutils_srcdir/configure.ac \
23270     && test -f ../binutils/Makefile \
23271     && test x$build = x$host; then
23272	# Single tree build which includes binutils.
23273	gcc_cv_readelf=../binutils/readelf$build_exeext
23274elif test -x readelf$build_exeext; then
23275	gcc_cv_readelf=./readelf$build_exeext
23276elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23277        gcc_cv_readelf="$READELF_FOR_TARGET"
23278else
23279        # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23280set dummy $READELF_FOR_TARGET; ac_word=$2
23281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23282$as_echo_n "checking for $ac_word... " >&6; }
23283if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23284  $as_echo_n "(cached) " >&6
23285else
23286  case $gcc_cv_readelf in
23287  [\\/]* | ?:[\\/]*)
23288  ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23289  ;;
23290  *)
23291  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23292for as_dir in $PATH
23293do
23294  IFS=$as_save_IFS
23295  test -z "$as_dir" && as_dir=.
23296    for ac_exec_ext in '' $ac_executable_extensions; do
23297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23298    ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23300    break 2
23301  fi
23302done
23303  done
23304IFS=$as_save_IFS
23305
23306  ;;
23307esac
23308fi
23309gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23310if test -n "$gcc_cv_readelf"; then
23311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23312$as_echo "$gcc_cv_readelf" >&6; }
23313else
23314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23315$as_echo "no" >&6; }
23316fi
23317
23318
23319fi
23320fi
23321
23322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23323$as_echo_n "checking what readelf to use... " >&6; }
23324if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23325	# Single tree build which includes binutils.
23326	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23327$as_echo "newly built readelf" >&6; }
23328elif test x$gcc_cv_readelf = x; then
23329	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23330$as_echo "not found" >&6; }
23331else
23332	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23333$as_echo "$gcc_cv_readelf" >&6; }
23334fi
23335
23336# Figure out what otool we will be using.
23337if ${gcc_cv_otool+:} false; then :
23338
23339else
23340
23341if test -x otool$build_exeext; then
23342	gcc_cv_otool=./otool$build_exeext
23343elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23344        gcc_cv_otool="$OTOOL_FOR_TARGET"
23345else
23346        # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23347set dummy $OTOOL_FOR_TARGET; ac_word=$2
23348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23349$as_echo_n "checking for $ac_word... " >&6; }
23350if ${ac_cv_path_gcc_cv_otool+:} false; then :
23351  $as_echo_n "(cached) " >&6
23352else
23353  case $gcc_cv_otool in
23354  [\\/]* | ?:[\\/]*)
23355  ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23356  ;;
23357  *)
23358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23359for as_dir in $PATH
23360do
23361  IFS=$as_save_IFS
23362  test -z "$as_dir" && as_dir=.
23363    for ac_exec_ext in '' $ac_executable_extensions; do
23364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23365    ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23367    break 2
23368  fi
23369done
23370  done
23371IFS=$as_save_IFS
23372
23373  ;;
23374esac
23375fi
23376gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23377if test -n "$gcc_cv_otool"; then
23378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23379$as_echo "$gcc_cv_otool" >&6; }
23380else
23381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23382$as_echo "no" >&6; }
23383fi
23384
23385
23386fi
23387fi
23388
23389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23390$as_echo_n "checking what otool to use... " >&6; }
23391if test x$gcc_cv_otool = x; then
23392	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23393$as_echo "not found" >&6; }
23394else
23395	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23396$as_echo "$gcc_cv_otool" >&6; }
23397fi
23398
23399# Figure out what assembler alignment features are present.
23400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23401$as_echo_n "checking assembler flags... " >&6; }
23402if ${gcc_cv_as_flags+:} false; then :
23403  $as_echo_n "(cached) " >&6
23404else
23405   case "$target" in
23406  i[34567]86-*-linux*)
23407        gcc_cv_as_flags=--32
23408    ;;
23409  x86_64-*-linux-gnux32)
23410        gcc_cv_as_flags=--x32
23411    ;;
23412  x86_64-*-linux*)
23413        gcc_cv_as_flags=--64
23414    ;;
23415  powerpc*-*-darwin*)
23416        gcc_cv_as_flags="-arch ppc"
23417    ;;
23418  *)
23419    gcc_cv_as_flags=" "
23420    ;;
23421  esac
23422fi
23423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23424$as_echo "$gcc_cv_as_flags" >&6; }
23425
23426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23427$as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23428if ${gcc_cv_as_balign_and_p2align+:} false; then :
23429  $as_echo_n "(cached) " >&6
23430else
23431  gcc_cv_as_balign_and_p2align=no
23432    if test $in_tree_gas = yes; then
23433    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23434  then gcc_cv_as_balign_and_p2align=yes
23435fi
23436  elif test x$gcc_cv_as != x; then
23437    $as_echo '.balign 4
23438.p2align 2' > conftest.s
23439    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23440  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23441  (eval $ac_try) 2>&5
23442  ac_status=$?
23443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23444  test $ac_status = 0; }; }
23445    then
23446	gcc_cv_as_balign_and_p2align=yes
23447    else
23448      echo "configure: failed program was" >&5
23449      cat conftest.s >&5
23450    fi
23451    rm -f conftest.o conftest.s
23452  fi
23453fi
23454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23455$as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23456if test $gcc_cv_as_balign_and_p2align = yes; then
23457
23458$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23459
23460fi
23461
23462
23463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23464$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23465if ${gcc_cv_as_max_skip_p2align+:} false; then :
23466  $as_echo_n "(cached) " >&6
23467else
23468  gcc_cv_as_max_skip_p2align=no
23469    if test $in_tree_gas = yes; then
23470    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23471  then gcc_cv_as_max_skip_p2align=yes
23472fi
23473  elif test x$gcc_cv_as != x; then
23474    $as_echo '.p2align 4,,7' > conftest.s
23475    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23476  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23477  (eval $ac_try) 2>&5
23478  ac_status=$?
23479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23480  test $ac_status = 0; }; }
23481    then
23482	gcc_cv_as_max_skip_p2align=yes
23483    else
23484      echo "configure: failed program was" >&5
23485      cat conftest.s >&5
23486    fi
23487    rm -f conftest.o conftest.s
23488  fi
23489fi
23490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23491$as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23492if test $gcc_cv_as_max_skip_p2align = yes; then
23493
23494$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23495
23496fi
23497
23498
23499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23500$as_echo_n "checking assembler for .literal16... " >&6; }
23501if ${gcc_cv_as_literal16+:} false; then :
23502  $as_echo_n "(cached) " >&6
23503else
23504  gcc_cv_as_literal16=no
23505    if test $in_tree_gas = yes; then
23506    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23507  then gcc_cv_as_literal16=yes
23508fi
23509  elif test x$gcc_cv_as != x; then
23510    $as_echo '.literal16' > conftest.s
23511    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23512  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23513  (eval $ac_try) 2>&5
23514  ac_status=$?
23515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23516  test $ac_status = 0; }; }
23517    then
23518	gcc_cv_as_literal16=yes
23519    else
23520      echo "configure: failed program was" >&5
23521      cat conftest.s >&5
23522    fi
23523    rm -f conftest.o conftest.s
23524  fi
23525fi
23526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23527$as_echo "$gcc_cv_as_literal16" >&6; }
23528if test $gcc_cv_as_literal16 = yes; then
23529
23530$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23531
23532fi
23533
23534
23535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23536$as_echo_n "checking assembler for working .subsection -1... " >&6; }
23537if ${gcc_cv_as_subsection_m1+:} false; then :
23538  $as_echo_n "(cached) " >&6
23539else
23540  gcc_cv_as_subsection_m1=no
23541    if test $in_tree_gas = yes; then
23542    if test $in_tree_gas_is_elf = yes \
23543  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23544  then gcc_cv_as_subsection_m1=yes
23545fi
23546  elif test x$gcc_cv_as != x; then
23547    $as_echo 'conftest_label1: .word 0
23548.subsection -1
23549conftest_label2: .word 0
23550.previous' > conftest.s
23551    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23552  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23553  (eval $ac_try) 2>&5
23554  ac_status=$?
23555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23556  test $ac_status = 0; }; }
23557    then
23558	if test x$gcc_cv_nm != x; then
23559    $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23560    $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23561    if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23562    then :
23563    else gcc_cv_as_subsection_m1=yes
23564    fi
23565    rm -f conftest.nm1 conftest.nm2
23566  fi
23567    else
23568      echo "configure: failed program was" >&5
23569      cat conftest.s >&5
23570    fi
23571    rm -f conftest.o conftest.s
23572  fi
23573fi
23574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23575$as_echo "$gcc_cv_as_subsection_m1" >&6; }
23576if test $gcc_cv_as_subsection_m1 = yes; then
23577
23578$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23579
23580fi
23581
23582
23583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23584$as_echo_n "checking assembler for .weak... " >&6; }
23585if ${gcc_cv_as_weak+:} false; then :
23586  $as_echo_n "(cached) " >&6
23587else
23588  gcc_cv_as_weak=no
23589    if test $in_tree_gas = yes; then
23590    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23591  then gcc_cv_as_weak=yes
23592fi
23593  elif test x$gcc_cv_as != x; then
23594    $as_echo '	.weak foobar' > conftest.s
23595    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23596  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23597  (eval $ac_try) 2>&5
23598  ac_status=$?
23599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23600  test $ac_status = 0; }; }
23601    then
23602	gcc_cv_as_weak=yes
23603    else
23604      echo "configure: failed program was" >&5
23605      cat conftest.s >&5
23606    fi
23607    rm -f conftest.o conftest.s
23608  fi
23609fi
23610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23611$as_echo "$gcc_cv_as_weak" >&6; }
23612if test $gcc_cv_as_weak = yes; then
23613
23614$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23615
23616fi
23617
23618
23619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23620$as_echo_n "checking assembler for .weakref... " >&6; }
23621if ${gcc_cv_as_weakref+:} false; then :
23622  $as_echo_n "(cached) " >&6
23623else
23624  gcc_cv_as_weakref=no
23625    if test $in_tree_gas = yes; then
23626    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23627  then gcc_cv_as_weakref=yes
23628fi
23629  elif test x$gcc_cv_as != x; then
23630    $as_echo '	.weakref foobar, barfnot' > conftest.s
23631    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23632  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23633  (eval $ac_try) 2>&5
23634  ac_status=$?
23635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23636  test $ac_status = 0; }; }
23637    then
23638	gcc_cv_as_weakref=yes
23639    else
23640      echo "configure: failed program was" >&5
23641      cat conftest.s >&5
23642    fi
23643    rm -f conftest.o conftest.s
23644  fi
23645fi
23646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23647$as_echo "$gcc_cv_as_weakref" >&6; }
23648if test $gcc_cv_as_weakref = yes; then
23649
23650$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23651
23652fi
23653
23654
23655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23656$as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23657if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23658  $as_echo_n "(cached) " >&6
23659else
23660  gcc_cv_as_nsubspa_comdat=no
23661    if test $in_tree_gas = yes; then
23662    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23663  then gcc_cv_as_nsubspa_comdat=yes
23664fi
23665  elif test x$gcc_cv_as != x; then
23666    $as_echo '	.SPACE $TEXT$
23667	.NSUBSPA $CODE$,COMDAT' > conftest.s
23668    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23669  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23670  (eval $ac_try) 2>&5
23671  ac_status=$?
23672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23673  test $ac_status = 0; }; }
23674    then
23675	gcc_cv_as_nsubspa_comdat=yes
23676    else
23677      echo "configure: failed program was" >&5
23678      cat conftest.s >&5
23679    fi
23680    rm -f conftest.o conftest.s
23681  fi
23682fi
23683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23684$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23685if test $gcc_cv_as_nsubspa_comdat = yes; then
23686
23687$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23688
23689fi
23690
23691
23692# .hidden needs to be supported in both the assembler and the linker,
23693# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23694# This is irritatingly difficult to feature test for; we have to check the
23695# date string after the version number.  If we've got an in-tree
23696# ld, we don't know its patchlevel version, so we set the baseline at 2.13
23697# to be safe.
23698# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23699case "${target}" in
23700  *-*-aix*)
23701    conftest_s='	.globl foobar,hidden'
23702    ;;
23703  *)
23704    conftest_s='	.hidden foobar
23705foobar:'
23706    ;;
23707esac
23708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23709$as_echo_n "checking assembler for .hidden... " >&6; }
23710if ${gcc_cv_as_hidden+:} false; then :
23711  $as_echo_n "(cached) " >&6
23712else
23713  gcc_cv_as_hidden=no
23714    if test $in_tree_gas = yes; then
23715    if test $in_tree_gas_is_elf = yes \
23716  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23717  then gcc_cv_as_hidden=yes
23718fi
23719  elif test x$gcc_cv_as != x; then
23720    $as_echo "$conftest_s" > conftest.s
23721    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23722  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23723  (eval $ac_try) 2>&5
23724  ac_status=$?
23725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23726  test $ac_status = 0; }; }
23727    then
23728	gcc_cv_as_hidden=yes
23729    else
23730      echo "configure: failed program was" >&5
23731      cat conftest.s >&5
23732    fi
23733    rm -f conftest.o conftest.s
23734  fi
23735fi
23736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23737$as_echo "$gcc_cv_as_hidden" >&6; }
23738
23739
23740case "${target}" in
23741  *-*-darwin*)
23742    # Darwin as has some visibility support, though with a different syntax.
23743    gcc_cv_as_hidden=yes
23744    ;;
23745esac
23746
23747# gnu_indirect_function type is an extension proposed at
23748# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23749# selection of function implementation
23750# Check whether --enable-gnu-indirect-function was given.
23751if test "${enable_gnu_indirect_function+set}" = set; then :
23752  enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23753    yes | no) ;;
23754    *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23755Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23756  esac
23757else
23758  enable_gnu_indirect_function="$default_gnu_indirect_function"
23759fi
23760
23761
23762case "${target}" in
23763  riscv*-*-linux*)
23764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
23765$as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
23766    cat > conftest.s <<EOF
23767	.text
23768	.type	foo_resolver, @function
23769foo_resolver:
23770	ret
23771	.size	foo_resolver, .-foo_resolver
23772
23773	.globl	foo
23774	.type	foo, %gnu_indirect_function
23775	.set	foo, foo_resolver
23776
23777	.globl	bar
23778	.type	bar, @function
23779bar:
23780	call	foo
23781	ret
23782	.size	bar, .-bar
23783EOF
23784    if test x$gcc_cv_as != x \
23785       && test x$gcc_cv_ld != x \
23786       && test x$gcc_cv_readelf != x \
23787       && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23788       && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23789       && $gcc_cv_readelf --relocs --wide conftest \
23790	  | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
23791      enable_gnu_indirect_function=yes
23792    fi
23793    rm -f conftest conftest.o conftest.s
23794    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
23795$as_echo "$enable_gnu_indirect_function" >&6; }
23796    ;;
23797esac
23798
23799gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23800
23801cat >>confdefs.h <<_ACEOF
23802#define HAVE_GNU_INDIRECT_FUNCTION $gif
23803_ACEOF
23804
23805
23806
23807if test $in_tree_ld != yes ; then
23808  ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23809  if echo "$ld_ver" | grep GNU > /dev/null; then
23810    if test x"$ld_is_gold" = xyes; then
23811      # GNU gold --version looks like this:
23812      #
23813      # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23814      #
23815      # We extract the binutils version which is more familiar and specific
23816      # than the gold version.
23817      ld_vers=`echo $ld_ver | sed -n \
23818	  -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23819    else
23820      # GNU ld --version looks like this:
23821      #
23822      # GNU ld (GNU Binutils) 2.21.51.20110225
23823      ld_vers=`echo $ld_ver | sed -n \
23824	  -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23825    fi
23826    ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
23827    ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23828    ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23829    ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23830  else
23831    case "${target}" in
23832      *-*-solaris2*)
23833	# Solaris 2 ld -V output looks like this for a regular version:
23834	#
23835	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23836	#
23837	# but test versions add stuff at the end:
23838	#
23839	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23840	#
23841	# ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23842	# numbers can be used in ld.so.1 feature checks even if a different
23843	# linker is configured.
23844	ld_ver=`$gcc_cv_ld -V 2>&1`
23845	if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23846	  ld_vers=`echo $ld_ver | sed -n \
23847	    -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23848	  ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23849	  ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23850	fi
23851	;;
23852    esac
23853  fi
23854fi
23855
23856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23857$as_echo_n "checking linker for .hidden support... " >&6; }
23858if ${gcc_cv_ld_hidden+:} false; then :
23859  $as_echo_n "(cached) " >&6
23860else
23861  if test $in_tree_ld = yes ; then
23862  gcc_cv_ld_hidden=no
23863  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 \
23864     && test $in_tree_ld_is_elf = yes; then
23865     gcc_cv_ld_hidden=yes
23866  fi
23867else
23868  gcc_cv_ld_hidden=yes
23869  if test x"$ld_is_gold" = xyes; then
23870    :
23871  elif echo "$ld_ver" | grep GNU > /dev/null; then
23872    if test 0"$ld_date" -lt 20020404; then
23873      if test -n "$ld_date"; then
23874	# If there was date string, but was earlier than 2002-04-04, fail
23875	gcc_cv_ld_hidden=no
23876      elif test -z "$ld_vers"; then
23877	# If there was no date string nor ld version number, something is wrong
23878	gcc_cv_ld_hidden=no
23879      else
23880	test -z "$ld_vers_patch" && ld_vers_patch=0
23881	if test "$ld_vers_major" -lt 2; then
23882	  gcc_cv_ld_hidden=no
23883	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23884	  gcc_cv_ld_hidden="no"
23885	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23886	  gcc_cv_ld_hidden=no
23887	fi
23888      fi
23889    fi
23890  else
23891    case "${target}" in
23892      *-*-aix[789]*)
23893        gcc_cv_ld_hidden=yes
23894        ;;
23895      *-*-darwin*)
23896	# Darwin ld has some visibility support.
23897	gcc_cv_ld_hidden=yes
23898        ;;
23899      hppa64*-*-hpux* | ia64*-*-hpux*)
23900	gcc_cv_ld_hidden=yes
23901	;;
23902      *-*-solaris2*)
23903	# Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23904	# .symbolic was only added in Solaris 9 12/02.
23905        gcc_cv_ld_hidden=yes
23906	;;
23907      *)
23908	gcc_cv_ld_hidden=no
23909	;;
23910    esac
23911  fi
23912fi
23913fi
23914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23915$as_echo "$gcc_cv_ld_hidden" >&6; }
23916libgcc_visibility=no
23917
23918
23919if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23920  libgcc_visibility=yes
23921
23922$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23923
23924fi
23925
23926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23927$as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23928gcc_cv_ld_ro_rw_mix=unknown
23929if test $in_tree_ld = yes ; then
23930  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 \
23931     && test $in_tree_ld_is_elf = yes; then
23932    gcc_cv_ld_ro_rw_mix=read-write
23933  fi
23934elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23935  echo '.section myfoosect, "a"' > conftest1.s
23936  echo '.section myfoosect, "aw"' > conftest2.s
23937  echo '.byte 1' >> conftest2.s
23938  echo '.section myfoosect, "a"' > conftest3.s
23939  echo '.byte 0' >> conftest3.s
23940  if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23941     && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23942     && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23943     && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23944	conftest2.o conftest3.o > /dev/null 2>&1; then
23945    gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23946			 | sed -e '/myfoosect/!d' -e N`
23947    if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23948      if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23949	gcc_cv_ld_ro_rw_mix=read-only
23950      else
23951	gcc_cv_ld_ro_rw_mix=read-write
23952      fi
23953    fi
23954  fi
23955  rm -f conftest.* conftest[123].*
23956fi
23957if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23958
23959$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23960
23961fi
23962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23963$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23964
23965# Check whether --enable-initfini-array was given.
23966if test "${enable_initfini_array+set}" = set; then :
23967  enableval=$enable_initfini_array;
23968else
23969
23970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23971$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23972if ${gcc_cv_initfini_array+:} false; then :
23973  $as_echo_n "(cached) " >&6
23974else
23975    if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23976    case "${target}" in
23977      ia64-*)
23978	if test "$cross_compiling" = yes; then :
23979  gcc_cv_initfini_array=no
23980else
23981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23982/* end confdefs.h.  */
23983
23984#ifndef __ELF__
23985#error Not an ELF OS
23986#endif
23987/* We turn on .preinit_array/.init_array/.fini_array support for ia64
23988   if it can be used.  */
23989static int x = -1;
23990int main (void) { return x; }
23991int foo (void) { x = 0; }
23992int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23993
23994_ACEOF
23995if ac_fn_cxx_try_run "$LINENO"; then :
23996  gcc_cv_initfini_array=yes
23997else
23998  gcc_cv_initfini_array=no
23999fi
24000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24001  conftest.$ac_objext conftest.beam conftest.$ac_ext
24002fi
24003;;
24004      *)
24005	gcc_cv_initfini_array=no
24006	if test $in_tree_ld = yes ; then
24007	  if test "$gcc_cv_gld_major_version" -eq 2 \
24008	     -a "$gcc_cv_gld_minor_version" -ge 22 \
24009	     -o "$gcc_cv_gld_major_version" -gt 2 \
24010	     && test $in_tree_ld_is_elf = yes; then
24011	    gcc_cv_initfini_array=yes
24012	  fi
24013	elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24014	  case $target:$gas in
24015	    *:yes)
24016	      sh_flags='"a"'
24017	      sh_type='%progbits'
24018	      ;;
24019	    i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24020	      sh_flags='"a"'
24021	      sh_type='@progbits'
24022	      ;;
24023	    sparc*-*-solaris2*:no)
24024	      sh_flags='#alloc'
24025	      sh_type='#progbits'
24026	      sh_quote='"'
24027	      ;;
24028	  esac
24029	  case "$target:$gnu_ld" in
24030	    *:yes)
24031	      cat > conftest.s <<EOF
24032.section .dtors,$sh_flags,$sh_type
24033.balign 4
24034.byte 'A', 'A', 'A', 'A'
24035.section .ctors,$sh_flags,$sh_type
24036.balign 4
24037.byte 'B', 'B', 'B', 'B'
24038.section .fini_array.65530,$sh_flags,$sh_type
24039.balign 4
24040.byte 'C', 'C', 'C', 'C'
24041.section .init_array.65530,$sh_flags,$sh_type
24042.balign 4
24043.byte 'D', 'D', 'D', 'D'
24044.section .dtors.64528,$sh_flags,$sh_type
24045.balign 4
24046.byte 'E', 'E', 'E', 'E'
24047.section .ctors.64528,$sh_flags,$sh_type
24048.balign 4
24049.byte 'F', 'F', 'F', 'F'
24050.section .fini_array.01005,$sh_flags,$sh_type
24051.balign 4
24052.byte 'G', 'G', 'G', 'G'
24053.section .init_array.01005,$sh_flags,$sh_type
24054.balign 4
24055.byte 'H', 'H', 'H', 'H'
24056.text
24057.globl _start
24058_start:
24059EOF
24060	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24061	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24062	         && $gcc_cv_objdump -s -j .init_array conftest \
24063		    | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24064	         && $gcc_cv_objdump -s -j .fini_array conftest \
24065		    | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24066	        gcc_cv_initfini_array=yes
24067	      fi
24068	      ;;
24069	    *-*-solaris2*:no)
24070	      # When Solaris ld added constructor priority support, it was
24071	      # decided to only handle .init_array.N/.fini_array.N since
24072	      # there was no need for backwards compatibility with
24073	      # .ctors.N/.dtors.N.  .ctors/.dtors remain as separate
24074	      # sections with correct execution order resp. to
24075	      # .init_array/.fini_array, while gld merges them into
24076	      # .init_array/.fini_array.
24077	      cat > conftest.s <<EOF
24078.section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24079.align 4
24080.byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24081.section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24082.align 4
24083.byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24084.section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24085.align 4
24086.byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24087.section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24088.align 4
24089.byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24090.text
24091.globl _start
24092_start:
24093EOF
24094	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24095	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24096	         && $gcc_cv_objdump -s -j .init_array conftest \
24097		    | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24098	         && $gcc_cv_objdump -s -j .fini_array conftest \
24099		    | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24100	        gcc_cv_initfini_array=yes
24101	      fi
24102	      ;;
24103	    esac
24104	  rm -f conftest conftest.*
24105	fi
24106	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24107/* end confdefs.h.  */
24108
24109#ifndef __ELF__
24110# error Not an ELF OS
24111#endif
24112#include <stdlib.h>
24113#if defined __GLIBC_PREREQ
24114# if __GLIBC_PREREQ (2, 4)
24115# else
24116#  error GLIBC 2.4 required
24117# endif
24118#else
24119# if defined __sun__ && defined __svr4__
24120   /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
24121# else
24122#  error The C library not known to support .init_array/.fini_array
24123# endif
24124#endif
24125
24126_ACEOF
24127if ac_fn_cxx_try_cpp "$LINENO"; then :
24128
24129else
24130  gcc_cv_initfini_array=no
24131fi
24132rm -f conftest.err conftest.i conftest.$ac_ext;;
24133    esac
24134  else
24135    { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24136$as_echo_n "checking cross compile... guessing... " >&6; }
24137    gcc_cv_initfini_array=no
24138  fi
24139fi
24140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24141$as_echo "$gcc_cv_initfini_array" >&6; }
24142  enable_initfini_array=$gcc_cv_initfini_array
24143
24144fi
24145
24146
24147cat >>confdefs.h <<_ACEOF
24148#define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24149_ACEOF
24150
24151
24152
24153# Check if we have .[us]leb128, and support symbol arithmetic with it.
24154# Older versions of GAS and some non-GNU assemblers, have a bugs handling
24155# these directives, even when they appear to accept them.
24156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24157$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24158if ${gcc_cv_as_leb128+:} false; then :
24159  $as_echo_n "(cached) " >&6
24160else
24161  gcc_cv_as_leb128=no
24162    if test $in_tree_gas = yes; then
24163    if test $in_tree_gas_is_elf = yes \
24164  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24165  then gcc_cv_as_leb128=yes
24166fi
24167  elif test x$gcc_cv_as != x; then
24168    $as_echo '	.data
24169	.uleb128 L2 - L1
24170L1:
24171	.uleb128 1280
24172	.sleb128 -1010
24173L2:
24174	.uleb128 0x8000000000000000
24175' > conftest.s
24176    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24177  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24178  (eval $ac_try) 2>&5
24179  ac_status=$?
24180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24181  test $ac_status = 0; }; }
24182    then
24183
24184if test "x$gcc_cv_objdump" != x; then
24185  if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24186     | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24187    gcc_cv_as_leb128=yes
24188  fi
24189elif test "x$gcc_cv_otool" != x; then
24190  if $gcc_cv_otool -d conftest.o 2>/dev/null \
24191     | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24192    gcc_cv_as_leb128=yes
24193  fi
24194else
24195  # play safe, assume the assembler is broken.
24196  :
24197fi
24198
24199    else
24200      echo "configure: failed program was" >&5
24201      cat conftest.s >&5
24202    fi
24203    rm -f conftest.o conftest.s
24204  fi
24205fi
24206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24207$as_echo "$gcc_cv_as_leb128" >&6; }
24208if test $gcc_cv_as_leb128 = yes; then
24209
24210$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24211
24212fi
24213if test $gcc_cv_as_leb128 != yes; then
24214
24215$as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24216
24217fi
24218
24219# Determine if an .eh_frame section is read-only.
24220gcc_fn_eh_frame_ro () {
24221  $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24222    $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24223    sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24224}
24225
24226# Check if we have assembler support for unwind directives.
24227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24228$as_echo_n "checking assembler for cfi directives... " >&6; }
24229if ${gcc_cv_as_cfi_directive+:} false; then :
24230  $as_echo_n "(cached) " >&6
24231else
24232  gcc_cv_as_cfi_directive=no
24233  if test x$gcc_cv_as != x; then
24234    $as_echo '	.text
24235	.cfi_startproc
24236	.cfi_offset 0, 0
24237	.cfi_same_value 1
24238	.cfi_def_cfa 1, 2
24239	.cfi_escape 1, 2, 3, 4, 5
24240	.cfi_endproc' > conftest.s
24241    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24242  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24243  (eval $ac_try) 2>&5
24244  ac_status=$?
24245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24246  test $ac_status = 0; }; }
24247    then
24248	case "$target" in
24249  *-*-solaris*)
24250    # If the linker used on Solaris (like Sun ld) isn't capable of merging
24251    # read-only and read-write sections, we need to make sure that the
24252    # assembler used emits read-write .eh_frame sections.
24253    if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24254      gcc_cv_as_cfi_directive=yes
24255    elif test "x$gcc_cv_objdump" = x; then
24256      # No objdump, err on the side of caution.
24257      gcc_cv_as_cfi_directive=no
24258    else
24259      if test x$gas = xyes; then
24260	as_32_opt="--32"
24261	as_64_opt="--64"
24262      else
24263	as_32_opt="-m32"
24264	as_64_opt="-m64"
24265      fi
24266      case "$target" in
24267	sparc*-*-solaris2.*)
24268	  # On Solaris/SPARC, .eh_frame sections should always be read-write.
24269	  if gcc_fn_eh_frame_ro $as_32_opt \
24270	     || gcc_fn_eh_frame_ro $as_64_opt; then
24271	    gcc_cv_as_cfi_directive=no
24272	  else
24273	    gcc_cv_as_cfi_directive=yes
24274	  fi
24275	  ;;
24276	i?86-*-solaris2.* | x86_64-*-solaris2.*)
24277	  # On Solaris/x86, make sure that GCC and assembler agree on using
24278	  # read-only .eh_frame sections for 64-bit.
24279	  if gcc_fn_eh_frame_ro $as_32_opt; then
24280	    gcc_cv_as_cfi_directive=no
24281	  elif gcc_fn_eh_frame_ro $as_64_opt; then
24282	    gcc_cv_as_cfi_directive=yes
24283	  else
24284	    gcc_cv_as_cfi_directive=no
24285	  fi
24286	  ;;
24287      esac
24288    fi
24289    ;;
24290  *-*-*)
24291    gcc_cv_as_cfi_directive=yes
24292    ;;
24293esac
24294    else
24295      echo "configure: failed program was" >&5
24296      cat conftest.s >&5
24297    fi
24298    rm -f conftest.o conftest.s
24299  fi
24300fi
24301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24302$as_echo "$gcc_cv_as_cfi_directive" >&6; }
24303
24304
24305if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24307$as_echo_n "checking assembler for working cfi advance... " >&6; }
24308if ${gcc_cv_as_cfi_advance_working+:} false; then :
24309  $as_echo_n "(cached) " >&6
24310else
24311  gcc_cv_as_cfi_advance_working=no
24312  if test x$gcc_cv_as != x; then
24313    $as_echo '	.text
24314	.cfi_startproc
24315	.cfi_adjust_cfa_offset 64
24316	.skip 75040, 0
24317	.cfi_adjust_cfa_offset 128
24318	.cfi_endproc' > conftest.s
24319    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24320  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24321  (eval $ac_try) 2>&5
24322  ac_status=$?
24323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24324  test $ac_status = 0; }; }
24325    then
24326
24327if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24328    | grep 'DW_CFA_advance_loc[24]:[ 	][ 	]*75040[ 	]' >/dev/null; then
24329   gcc_cv_as_cfi_advance_working=yes
24330fi
24331
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_cfi_advance_working" >&5
24340$as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24341
24342
24343else
24344  # no objdump, err on the side of caution
24345  gcc_cv_as_cfi_advance_working=no
24346fi
24347
24348
24349cat >>confdefs.h <<_ACEOF
24350#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24351       && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24352_ACEOF
24353
24354
24355
24356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24357$as_echo_n "checking assembler for cfi personality directive... " >&6; }
24358if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24359  $as_echo_n "(cached) " >&6
24360else
24361  gcc_cv_as_cfi_personality_directive=no
24362  if test x$gcc_cv_as != x; then
24363    $as_echo '	.text
24364	.cfi_startproc
24365	.cfi_personality 0, symbol
24366	.cfi_endproc' > conftest.s
24367    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24368  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24369  (eval $ac_try) 2>&5
24370  ac_status=$?
24371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24372  test $ac_status = 0; }; }
24373    then
24374	gcc_cv_as_cfi_personality_directive=yes
24375    else
24376      echo "configure: failed program was" >&5
24377      cat conftest.s >&5
24378    fi
24379    rm -f conftest.o conftest.s
24380  fi
24381fi
24382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24383$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24384
24385
24386
24387cat >>confdefs.h <<_ACEOF
24388#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24389_ACEOF
24390
24391
24392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24393$as_echo_n "checking assembler for cfi sections directive... " >&6; }
24394if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24395  $as_echo_n "(cached) " >&6
24396else
24397  gcc_cv_as_cfi_sections_directive=no
24398  if test x$gcc_cv_as != x; then
24399    $as_echo '	.text
24400	.cfi_sections .debug_frame, .eh_frame
24401	.cfi_startproc
24402	.cfi_endproc' > conftest.s
24403    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24404  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24405  (eval $ac_try) 2>&5
24406  ac_status=$?
24407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24408  test $ac_status = 0; }; }
24409    then
24410	case $target_os in
24411  win32 | pe | cygwin* | mingw32*)
24412    # Need to check that we generated the correct relocation for the
24413    # .debug_frame section.  This was fixed for binutils 2.21.
24414    gcc_cv_as_cfi_sections_directive=no
24415    if test "x$gcc_cv_objdump" != x; then
24416     if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24417	grep secrel > /dev/null; then
24418      gcc_cv_as_cfi_sections_directive=yes
24419     fi
24420    fi
24421    ;;
24422  *)
24423    gcc_cv_as_cfi_sections_directive=yes
24424    ;;
24425esac
24426    else
24427      echo "configure: failed program was" >&5
24428      cat conftest.s >&5
24429    fi
24430    rm -f conftest.o conftest.s
24431  fi
24432fi
24433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24434$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24435
24436
24437
24438
24439cat >>confdefs.h <<_ACEOF
24440#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24441_ACEOF
24442
24443
24444# GAS versions up to and including 2.11.0 may mis-optimize
24445# .eh_frame data.
24446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24447$as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24448if ${gcc_cv_as_eh_frame+:} false; then :
24449  $as_echo_n "(cached) " >&6
24450else
24451  gcc_cv_as_eh_frame=no
24452    if test $in_tree_gas = yes; then
24453    if test $in_tree_gas_is_elf = yes \
24454  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24455  then gcc_cv_as_eh_frame=yes
24456fi
24457  elif test x$gcc_cv_as != x; then
24458    $as_echo '	.text
24459.LFB1:
24460	.4byte	0
24461.L1:
24462	.4byte	0
24463.LFE1:
24464	.section	.eh_frame,"aw",@progbits
24465__FRAME_BEGIN__:
24466	.4byte	.LECIE1-.LSCIE1
24467.LSCIE1:
24468	.4byte	0x0
24469	.byte	0x1
24470	.ascii "z\0"
24471	.byte	0x1
24472	.byte	0x78
24473	.byte	0x1a
24474	.byte	0x0
24475	.byte	0x4
24476	.4byte	1
24477	.p2align 1
24478.LECIE1:
24479.LSFDE1:
24480	.4byte	.LEFDE1-.LASFDE1
24481.LASFDE1:
24482	.4byte	.LASFDE1-__FRAME_BEGIN__
24483	.4byte	.LFB1
24484	.4byte	.LFE1-.LFB1
24485	.byte	0x4
24486	.4byte	.LFE1-.LFB1
24487	.byte	0x4
24488	.4byte	.L1-.LFB1
24489.LEFDE1:' > conftest.s
24490    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24491  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24492  (eval $ac_try) 2>&5
24493  ac_status=$?
24494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24495  test $ac_status = 0; }; }
24496    then
24497	  cat > conftest.lit <<EOF
24498 0000 10000000 00000000 017a0001 781a0004  .........z..x...
24499 0010 01000000 12000000 18000000 00000000  ................
24500 0020 08000000 04080000 0044               .........D      
24501EOF
24502cat > conftest.big <<EOF
24503 0000 00000010 00000000 017a0001 781a0004  .........z..x...
24504 0010 00000001 00000012 00000018 00000000  ................
24505 0020 00000008 04000000 0844               .........D      
24506EOF
24507  # If the assembler didn't choke, and we can objdump,
24508  # and we got the correct data, then succeed.
24509  # The text in the here-document typically retains its unix-style line
24510  # endings, while the output of objdump will use host line endings.
24511  # Therefore, use diff -b for the comparisons.
24512  if test x$gcc_cv_objdump != x \
24513  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24514     | tail -3 > conftest.got \
24515  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24516    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24517  then
24518    gcc_cv_as_eh_frame=yes
24519  elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24520  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24521  (eval $ac_try) 2>&5
24522  ac_status=$?
24523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24524  test $ac_status = 0; }; }; then
24525    gcc_cv_as_eh_frame=buggy
24526  else
24527    # Uh oh, what do we do now?
24528    gcc_cv_as_eh_frame=no
24529  fi
24530    else
24531      echo "configure: failed program was" >&5
24532      cat conftest.s >&5
24533    fi
24534    rm -f conftest.o conftest.s
24535  fi
24536fi
24537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24538$as_echo "$gcc_cv_as_eh_frame" >&6; }
24539
24540
24541
24542if test $gcc_cv_as_eh_frame = buggy; then
24543
24544$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24545
24546fi
24547
24548# Test if the assembler supports the section flag 'e' or #exclude for
24549# specifying an excluded section.
24550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24551$as_echo_n "checking assembler for section exclude flag... " >&6; }
24552if ${gcc_cv_as_section_exclude_e+:} false; then :
24553  $as_echo_n "(cached) " >&6
24554else
24555  gcc_cv_as_section_exclude_e=no
24556    if test $in_tree_gas = yes; then
24557    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24558  then gcc_cv_as_section_exclude_e=yes
24559fi
24560  elif test x$gcc_cv_as != x; then
24561    $as_echo '.section foo1,"e"
24562  .byte 0,0,0,0' > conftest.s
24563    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24564  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24565  (eval $ac_try) 2>&5
24566  ac_status=$?
24567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24568  test $ac_status = 0; }; }
24569    then
24570	gcc_cv_as_section_exclude_e=yes
24571    else
24572      echo "configure: failed program was" >&5
24573      cat conftest.s >&5
24574    fi
24575    rm -f conftest.o conftest.s
24576  fi
24577fi
24578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24579$as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24580
24581
24582if test $gcc_cv_as_section_exclude_e = no; then
24583  case "${target}" in
24584    # Solaris as uses #exclude instead.
24585    *-*-solaris2*)
24586      case "${target}" in
24587	sparc*-*-solaris2*)
24588	  conftest_s='.section "foo1", #exclude'
24589	  ;;
24590	i?86-*-solaris2* | x86_64-*-solaris2*)
24591	  conftest_s='.section foo1, #exclude'
24592	  ;;
24593      esac
24594      ;;
24595    esac
24596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24597$as_echo_n "checking assembler for section exclude flag... " >&6; }
24598if ${gcc_cv_as_section_exclude_hash+:} false; then :
24599  $as_echo_n "(cached) " >&6
24600else
24601  gcc_cv_as_section_exclude_hash=no
24602  if test x$gcc_cv_as != x; then
24603    $as_echo "$conftest_s
24604     .byte 0,0,0,0" > conftest.s
24605    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24606  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24607  (eval $ac_try) 2>&5
24608  ac_status=$?
24609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24610  test $ac_status = 0; }; }
24611    then
24612	gcc_cv_as_section_exclude_hash=yes
24613    else
24614      echo "configure: failed program was" >&5
24615      cat conftest.s >&5
24616    fi
24617    rm -f conftest.o conftest.s
24618  fi
24619fi
24620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24621$as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24622
24623
24624fi
24625
24626cat >>confdefs.h <<_ACEOF
24627#define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
24628_ACEOF
24629
24630
24631# Test if the assembler supports the section flag 'R' for specifying
24632# section with SHF_GNU_RETAIN.
24633case "${target}" in
24634  # Solaris may use GNU assembler with Solairs ld.  Even if GNU
24635  # assembler supports the section flag 'R', it doesn't mean that
24636  # Solairs ld supports it.
24637  *-*-solaris2*)
24638    gcc_cv_as_shf_gnu_retain=no
24639    ;;
24640  *)
24641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24642$as_echo_n "checking assembler for section 'R' flag... " >&6; }
24643if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24644  $as_echo_n "(cached) " >&6
24645else
24646  gcc_cv_as_shf_gnu_retain=no
24647    if test $in_tree_gas = yes; then
24648    if test $in_tree_gas_is_elf = yes \
24649  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
24650  then gcc_cv_as_shf_gnu_retain=yes
24651fi
24652  elif test x$gcc_cv_as != x; then
24653    $as_echo '.section .foo,"awR",%progbits
24654.byte 0' > conftest.s
24655    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24656  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24657  (eval $ac_try) 2>&5
24658  ac_status=$?
24659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24660  test $ac_status = 0; }; }
24661    then
24662	gcc_cv_as_shf_gnu_retain=yes
24663    else
24664      echo "configure: failed program was" >&5
24665      cat conftest.s >&5
24666    fi
24667    rm -f conftest.o conftest.s
24668  fi
24669fi
24670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24671$as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24672
24673
24674    ;;
24675esac
24676
24677cat >>confdefs.h <<_ACEOF
24678#define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24679_ACEOF
24680
24681
24682# Test if the assembler supports the section flag 'o' for specifying
24683# section with link-order.
24684case "${target}" in
24685  # Solaris may use GNU assembler with Solairs ld.  Even if GNU
24686  # assembler supports the section flag 'o', it doesn't mean that
24687  # Solairs ld supports it.
24688  *-*-solaris2*)
24689    gcc_cv_as_section_link_order=no
24690    ;;
24691  *)
24692    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24693$as_echo_n "checking assembler for section 'o' flag... " >&6; }
24694if ${gcc_cv_as_section_link_order+:} false; then :
24695  $as_echo_n "(cached) " >&6
24696else
24697  gcc_cv_as_section_link_order=no
24698    if test $in_tree_gas = yes; then
24699    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 35 \) \* 1000 + 0`
24700  then gcc_cv_as_section_link_order=yes
24701fi
24702  elif test x$gcc_cv_as != x; then
24703    $as_echo '.section .foo,"a"
24704.byte 0
24705.section __patchable_function_entries,"awo",%progbits,.foo
24706.byte 0' > conftest.s
24707    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24708  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24709  (eval $ac_try) 2>&5
24710  ac_status=$?
24711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24712  test $ac_status = 0; }; }
24713    then
24714	gcc_cv_as_section_link_order=yes
24715    else
24716      echo "configure: failed program was" >&5
24717      cat conftest.s >&5
24718    fi
24719    rm -f conftest.o conftest.s
24720  fi
24721fi
24722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
24723$as_echo "$gcc_cv_as_section_link_order" >&6; }
24724
24725
24726    ;;
24727esac
24728
24729cat >>confdefs.h <<_ACEOF
24730#define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
24731_ACEOF
24732
24733
24734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24735$as_echo_n "checking assembler for section merging support... " >&6; }
24736if ${gcc_cv_as_shf_merge+:} false; then :
24737  $as_echo_n "(cached) " >&6
24738else
24739  gcc_cv_as_shf_merge=no
24740    if test $in_tree_gas = yes; then
24741    if test $in_tree_gas_is_elf = yes \
24742  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24743  then gcc_cv_as_shf_merge=yes
24744fi
24745  elif test x$gcc_cv_as != x; then
24746    $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24747    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24748  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749  (eval $ac_try) 2>&5
24750  ac_status=$?
24751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752  test $ac_status = 0; }; }
24753    then
24754	gcc_cv_as_shf_merge=yes
24755    else
24756      echo "configure: failed program was" >&5
24757      cat conftest.s >&5
24758    fi
24759    rm -f conftest.o conftest.s
24760  fi
24761fi
24762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24763$as_echo "$gcc_cv_as_shf_merge" >&6; }
24764
24765
24766if test $gcc_cv_as_shf_merge = no; then
24767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24768$as_echo_n "checking assembler for section merging support... " >&6; }
24769if ${gcc_cv_as_shf_merge+:} false; then :
24770  $as_echo_n "(cached) " >&6
24771else
24772  gcc_cv_as_shf_merge=no
24773    if test $in_tree_gas = yes; then
24774    if test $in_tree_gas_is_elf = yes \
24775  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24776  then gcc_cv_as_shf_merge=yes
24777fi
24778  elif test x$gcc_cv_as != x; then
24779    $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24780    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24781  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24782  (eval $ac_try) 2>&5
24783  ac_status=$?
24784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24785  test $ac_status = 0; }; }
24786    then
24787	gcc_cv_as_shf_merge=yes
24788    else
24789      echo "configure: failed program was" >&5
24790      cat conftest.s >&5
24791    fi
24792    rm -f conftest.o conftest.s
24793  fi
24794fi
24795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24796$as_echo "$gcc_cv_as_shf_merge" >&6; }
24797
24798
24799fi
24800
24801cat >>confdefs.h <<_ACEOF
24802#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24803_ACEOF
24804
24805
24806gcc_cv_ld_aligned_shf_merge=yes
24807case "$target" in
24808  # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24809  # alignment > 1.
24810  sparc*-*-solaris2.11*)
24811    if test x"$gnu_ld" = xno \
24812       && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24813      gcc_cv_ld_aligned_shf_merge=no
24814    fi
24815    ;;
24816esac
24817
24818cat >>confdefs.h <<_ACEOF
24819#define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24820_ACEOF
24821
24822
24823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24824$as_echo_n "checking assembler for stabs directive... " >&6; }
24825if ${gcc_cv_as_stabs_directive+:} false; then :
24826  $as_echo_n "(cached) " >&6
24827else
24828  gcc_cv_as_stabs_directive=no
24829  if test x$gcc_cv_as != x; then
24830    $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24831    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24832  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24833  (eval $ac_try) 2>&5
24834  ac_status=$?
24835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24836  test $ac_status = 0; }; }
24837    then
24838	gcc_cv_as_stabs_directive=yes
24839    else
24840      echo "configure: failed program was" >&5
24841      cat conftest.s >&5
24842    fi
24843    rm -f conftest.o conftest.s
24844  fi
24845fi
24846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24847$as_echo "$gcc_cv_as_stabs_directive" >&6; }
24848if test $gcc_cv_as_stabs_directive = yes; then
24849
24850$as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24851
24852fi
24853
24854
24855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24856$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24857if ${gcc_cv_as_comdat_group+:} false; then :
24858  $as_echo_n "(cached) " >&6
24859else
24860  gcc_cv_as_comdat_group=no
24861    if test $in_tree_gas = yes; then
24862    if test $in_tree_gas_is_elf = yes \
24863  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24864  then gcc_cv_as_comdat_group=yes
24865fi
24866  elif test x$gcc_cv_as != x; then
24867    $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24868    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24869  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24870  (eval $ac_try) 2>&5
24871  ac_status=$?
24872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24873  test $ac_status = 0; }; }
24874    then
24875	gcc_cv_as_comdat_group=yes
24876    else
24877      echo "configure: failed program was" >&5
24878      cat conftest.s >&5
24879    fi
24880    rm -f conftest.o conftest.s
24881  fi
24882fi
24883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24884$as_echo "$gcc_cv_as_comdat_group" >&6; }
24885
24886
24887if test $gcc_cv_as_comdat_group = yes; then
24888  gcc_cv_as_comdat_group_percent=no
24889  gcc_cv_as_comdat_group_group=no
24890else
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24892$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24893if ${gcc_cv_as_comdat_group_percent+:} false; then :
24894  $as_echo_n "(cached) " >&6
24895else
24896  gcc_cv_as_comdat_group_percent=no
24897    if test $in_tree_gas = yes; then
24898    if test $in_tree_gas_is_elf = yes \
24899  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24900  then gcc_cv_as_comdat_group_percent=yes
24901fi
24902  elif test x$gcc_cv_as != x; then
24903    $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24904    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24905  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24906  (eval $ac_try) 2>&5
24907  ac_status=$?
24908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24909  test $ac_status = 0; }; }
24910    then
24911	gcc_cv_as_comdat_group_percent=yes
24912    else
24913      echo "configure: failed program was" >&5
24914      cat conftest.s >&5
24915    fi
24916    rm -f conftest.o conftest.s
24917  fi
24918fi
24919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24920$as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24921
24922
24923 if test $gcc_cv_as_comdat_group_percent = yes; then
24924   gcc_cv_as_comdat_group_group=no
24925 else
24926   case "${target}" in
24927     # Sun as uses a completely different syntax.
24928     *-*-solaris2*)
24929       case "${target}" in
24930         sparc*-*-solaris2*)
24931           conftest_s='
24932               .group foo,".text%foo",#comdat
24933               .section ".text%foo", #alloc,#execinstr,#progbits
24934               .globl foo
24935             foo:
24936	     '
24937           ;;
24938         i?86-*-solaris2* | x86_64-*-solaris2*)
24939	   conftest_s='
24940               .group foo,.text%foo,#comdat
24941               .section .text%foo, "ax", @progbits
24942               .globl  foo
24943             foo:
24944	     '
24945	   ;;
24946       esac
24947       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24948$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24949if ${gcc_cv_as_comdat_group_group+:} false; then :
24950  $as_echo_n "(cached) " >&6
24951else
24952  gcc_cv_as_comdat_group_group=no
24953  if test x$gcc_cv_as != x; then
24954    $as_echo "$conftest_s" > conftest.s
24955    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24956  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24957  (eval $ac_try) 2>&5
24958  ac_status=$?
24959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24960  test $ac_status = 0; }; }
24961    then
24962	gcc_cv_as_comdat_group_group=yes
24963    else
24964      echo "configure: failed program was" >&5
24965      cat conftest.s >&5
24966    fi
24967    rm -f conftest.o conftest.s
24968  fi
24969fi
24970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24971$as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24972
24973
24974       ;;
24975   esac
24976   if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24977     gcc_cv_as_comdat_group_group=no
24978   fi
24979 fi
24980fi
24981if test x"$ld_is_gold" = xyes; then
24982  comdat_group=yes
24983elif test $in_tree_ld = yes ; then
24984  comdat_group=no
24985  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 \
24986     && test $in_tree_ld_is_elf = yes; then
24987     comdat_group=yes
24988  fi
24989elif echo "$ld_ver" | grep GNU > /dev/null; then
24990  comdat_group=yes
24991  if test 0"$ld_date" -lt 20050308; then
24992    if test -n "$ld_date"; then
24993      # If there was date string, but was earlier than 2005-03-08, fail
24994      comdat_group=no
24995    elif test "$ld_vers_major" -lt 2; then
24996      comdat_group=no
24997    elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24998      comdat_group=no
24999    fi
25000  fi
25001else
25002  case "${target}" in
25003    *-*-solaris2.1[1-9]*)
25004      comdat_group=no
25005      # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25006      # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25007      # version 1.688.
25008      #
25009      # If using Sun as for COMDAT group as emitted by GCC, one needs at
25010      # least ld version 1.2267.
25011      if test "$ld_vers_major" -gt 1; then
25012        comdat_group=yes
25013      elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25014	comdat_group=yes
25015      elif test "$ld_vers_minor" -ge 2267; then
25016	comdat_group=yes
25017      fi
25018      ;;
25019    *)
25020      # Assume linkers other than GNU ld don't support COMDAT group.
25021      comdat_group=no
25022      ;;
25023  esac
25024fi
25025# Allow overriding the automatic COMDAT group tests above.
25026# Check whether --enable-comdat was given.
25027if test "${enable_comdat+set}" = set; then :
25028  enableval=$enable_comdat; comdat_group="$enable_comdat"
25029fi
25030
25031if test $comdat_group = no; then
25032  gcc_cv_as_comdat_group=no
25033  gcc_cv_as_comdat_group_percent=no
25034  gcc_cv_as_comdat_group_group=no
25035fi
25036
25037cat >>confdefs.h <<_ACEOF
25038#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25039    || test $gcc_cv_as_comdat_group_percent = yes \
25040    || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25041_ACEOF
25042
25043
25044# Restrict this test to Solaris/x86: other targets define this statically.
25045case "${target}" in
25046  i?86-*-solaris2* | x86_64-*-solaris2*)
25047    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25048$as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25049    if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25050      hidden_linkonce=yes
25051    else
25052      case "${target}" in
25053	# Full support for hidden thunks in linkonce sections only appeared in
25054	# Solaris 11/OpenSolaris.
25055        *-*-solaris2.1[1-9]*)
25056	  hidden_linkonce=yes
25057	  ;;
25058	*)
25059	  hidden_linkonce=no
25060	  ;;
25061      esac
25062    fi
25063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25064$as_echo "$hidden_linkonce" >&6; }
25065
25066cat >>confdefs.h <<_ACEOF
25067#define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25068_ACEOF
25069
25070  ;;
25071esac
25072
25073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25074$as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25075if ${gcc_cv_as_is_stmt+:} false; then :
25076  $as_echo_n "(cached) " >&6
25077else
25078  gcc_cv_as_is_stmt=no
25079    if test $in_tree_gas = yes; then
25080    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
25081  then gcc_cv_as_is_stmt=yes
25082fi
25083  elif test x$gcc_cv_as != x; then
25084    $as_echo '	.text
25085	.file 1 "conf.c"
25086	.loc 1 1 0 is_stmt 1' > conftest.s
25087    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -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_is_stmt=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_is_stmt" >&5
25103$as_echo "$gcc_cv_as_is_stmt" >&6; }
25104if test $gcc_cv_as_is_stmt = yes; then
25105
25106$as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25107
25108fi
25109
25110
25111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25112$as_echo_n "checking assembler for line table discriminator support... " >&6; }
25113if ${gcc_cv_as_discriminator+:} false; then :
25114  $as_echo_n "(cached) " >&6
25115else
25116  gcc_cv_as_discriminator=no
25117    if test $in_tree_gas = yes; then
25118    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
25119  then gcc_cv_as_discriminator=yes
25120fi
25121  elif test x$gcc_cv_as != x; then
25122    $as_echo '	.text
25123	.file 1 "conf.c"
25124	.loc 1 1 0 discriminator 1' > 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_discriminator=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_discriminator" >&5
25141$as_echo "$gcc_cv_as_discriminator" >&6; }
25142if test $gcc_cv_as_discriminator = yes; then
25143
25144$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25145
25146fi
25147
25148
25149# Catch the newlib flag of the same name so we can gate GCC features on it.
25150# Check whether --enable-newlib-nano-formatted-io was given.
25151if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25152  enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25153  yes|no)
25154    ;;
25155  *)
25156    as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25157    ;;
25158esac
25159fi
25160
25161
25162# Thread-local storage - the check is heavily parameterized.
25163conftest_s=
25164tls_first_major=
25165tls_first_minor=
25166tls_as_opt=
25167case "$target" in
25168  alpha*-*-*)
25169    conftest_s='
25170	.section ".tdata","awT",@progbits
25171foo:	.long	25
25172	.text
25173	ldq	$27,__tls_get_addr($29)		!literal!1
25174	lda	$16,foo($29)			!tlsgd!1
25175	jsr	$26,($27),__tls_get_addr	!lituse_tlsgd!1
25176	ldq	$27,__tls_get_addr($29)		!literal!2
25177	lda	$16,foo($29)			!tlsldm!2
25178	jsr	$26,($27),__tls_get_addr	!lituse_tlsldm!2
25179	ldq	$1,foo($29)			!gotdtprel
25180	ldah	$2,foo($29)			!dtprelhi
25181	lda	$3,foo($2)			!dtprello
25182	lda	$4,foo($29)			!dtprel
25183	ldq	$1,foo($29)			!gottprel
25184	ldah	$2,foo($29)			!tprelhi
25185	lda	$3,foo($2)			!tprello
25186	lda	$4,foo($29)			!tprel'
25187	tls_first_major=2
25188	tls_first_minor=13
25189	tls_as_opt=--fatal-warnings
25190	;;
25191  arc*-*-*)
25192    conftest_s='
25193	add_s r0,r0, @foo@tpoff'
25194	tls_first_major=2
25195	tls_first_minor=23
25196	;;
25197  cris-*-*|crisv32-*-*)
25198    conftest_s='
25199	.section ".tdata","awT",@progbits
25200x:      .long   25
25201        .text
25202	move.d x:IE,$r10
25203	nop'
25204	tls_first_major=2
25205	tls_first_minor=20
25206	tls_as_opt=--fatal-warnings
25207	;;
25208  frv*-*-*)
25209    conftest_s='
25210	.section ".tdata","awT",@progbits
25211x:      .long   25
25212        .text
25213        call    #gettlsoff(x)'
25214	tls_first_major=2
25215	tls_first_minor=14
25216	;;
25217  hppa*-*-linux*)
25218    conftest_s='
25219t1:	.reg	%r20
25220t2:	.reg	%r21
25221gp:	.reg	%r19
25222	.section ".tdata","awT",@progbits
25223foo:	.long	25
25224	.text
25225	.align	4
25226	addil LT%foo-$tls_gdidx$,gp
25227	ldo RT%foo-$tls_gdidx$(%r1),%arg0
25228	b __tls_get_addr
25229	nop
25230	addil LT%foo-$tls_ldidx$,gp
25231	b __tls_get_addr
25232	ldo RT%foo-$tls_ldidx$(%r1),%arg0
25233	addil LR%foo-$tls_dtpoff$,%ret0
25234	ldo RR%foo-$tls_dtpoff$(%r1),%t1
25235	mfctl %cr27,%t1
25236	addil LT%foo-$tls_ieoff$,gp
25237	ldw RT%foo-$tls_ieoff$(%r1),%t2
25238	add %t1,%t2,%t3
25239	mfctl %cr27,%t1
25240	addil LR%foo-$tls_leoff$,%t1
25241	ldo RR%foo-$tls_leoff$(%r1),%t2'
25242	tls_first_major=2
25243	tls_first_minor=15
25244	tls_as_opt=--fatal-warnings
25245	;;
25246  arm*-*-*)
25247    conftest_s='
25248	.section ".tdata","awT",%progbits
25249foo:	.long	25
25250	.text
25251.word foo(gottpoff)
25252.word foo(tpoff)
25253.word foo(tlsgd)
25254.word foo(tlsldm)
25255.word foo(tlsldo)'
25256	tls_first_major=2
25257	tls_first_minor=17
25258	;;
25259  i[34567]86-*-* | x86_64-*-*)
25260    case "$target" in
25261      i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25262	on_solaris=yes
25263        ;;
25264      *)
25265	on_solaris=no
25266	;;
25267    esac
25268    if test x$on_solaris = xyes && test x$gas_flag = xno; then
25269      conftest_s='
25270	.section .tdata,"awt",@progbits'
25271      tls_first_major=0
25272      tls_first_minor=0
25273      tls_section_flag=t
25274
25275$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25276
25277    else
25278      conftest_s='
25279	.section ".tdata","awT",@progbits'
25280      tls_first_major=2
25281      tls_first_minor=14
25282      tls_section_flag=T
25283      tls_as_opt="--fatal-warnings"
25284    fi
25285    case "$target" in
25286      i[34567]86-*-*)
25287	if test x$on_solaris = xyes; then
25288	  case $gas_flag in
25289	    yes) tls_as_opt="$tls_as_opt --32" ;;
25290	  esac
25291	fi
25292	conftest_s="$conftest_s
25293foo:	.long	25
25294	.text
25295	movl	%gs:0, %eax
25296	leal	foo@tlsgd(,%ebx,1), %eax
25297	leal	foo@tlsldm(%ebx), %eax
25298	leal	foo@dtpoff(%eax), %edx
25299	movl	foo@gottpoff(%ebx), %eax
25300	subl	foo@gottpoff(%ebx), %eax
25301	addl	foo@gotntpoff(%ebx), %eax
25302	movl	foo@indntpoff, %eax
25303	movl	\$foo@tpoff, %eax
25304	subl	\$foo@tpoff, %eax
25305	leal	foo@ntpoff(%ecx), %eax"
25306	;;
25307      x86_64-*-*)
25308	if test x$on_solaris = xyes; then
25309	  case $gas_flag in
25310	    yes) tls_as_opt="$tls_as_opt --64" ;;
25311	    no)	 tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25312	  esac
25313	fi
25314	conftest_s="$conftest_s
25315foo:	.long	25
25316	.text
25317	movq	%fs:0, %rax
25318	leaq	foo@tlsgd(%rip), %rdi
25319	leaq	foo@tlsld(%rip), %rdi
25320	leaq	foo@dtpoff(%rax), %rdx
25321	movq	foo@gottpoff(%rip), %rax
25322	movq	\$foo@tpoff, %rax"
25323        ;;
25324    esac
25325    ;;
25326  ia64-*-*)
25327    conftest_s='
25328	.section ".tdata","awT",@progbits
25329foo:	data8	25
25330	.text
25331	addl	r16 = @ltoff(@dtpmod(foo#)), gp
25332	addl	r17 = @ltoff(@dtprel(foo#)), gp
25333	addl	r18 = @ltoff(@tprel(foo#)), gp
25334	addl	r19 = @dtprel(foo#), gp
25335	adds	r21 = @dtprel(foo#), r13
25336	movl	r23 = @dtprel(foo#)
25337	addl	r20 = @tprel(foo#), gp
25338	adds	r22 = @tprel(foo#), r13
25339	movl	r24 = @tprel(foo#)'
25340	tls_first_major=2
25341	tls_first_minor=13
25342	tls_as_opt=--fatal-warnings
25343	;;
25344  microblaze*-*-*)
25345    conftest_s='
25346	.section .tdata,"awT",@progbits
25347x:
25348	.word 2
25349	.text
25350	addik r5,r20,x@TLSGD
25351	addik r5,r20,x@TLSLDM'
25352	tls_first_major=2
25353	tls_first_minor=20
25354	tls_as_opt='--fatal-warnings'
25355	;;
25356  mips*-*-*)
25357    conftest_s='
25358	.section .tdata,"awT",@progbits
25359x:
25360	.word 2
25361	.text
25362	addiu $4, $28, %tlsgd(x)
25363	addiu $4, $28, %tlsldm(x)
25364	lui $4, %dtprel_hi(x)
25365	addiu $4, $4, %dtprel_lo(x)
25366	lw $4, %gottprel(x)($28)
25367	lui $4, %tprel_hi(x)
25368	addiu $4, $4, %tprel_lo(x)'
25369	tls_first_major=2
25370	tls_first_minor=16
25371	tls_as_opt='-32 --fatal-warnings'
25372	;;
25373  m68k-*-*)
25374    conftest_s='
25375	.section .tdata,"awT",@progbits
25376x:
25377	.word 2
25378	.text
25379foo:
25380	move.l x@TLSGD(%a5),%a0
25381	move.l x@TLSLDM(%a5),%a0
25382	move.l x@TLSLDO(%a5),%a0
25383	move.l x@TLSIE(%a5),%a0
25384	move.l x@TLSLE(%a5),%a0'
25385	tls_first_major=2
25386	tls_first_minor=19
25387	tls_as_opt='--fatal-warnings'
25388	;;
25389  nios2-*-*)
25390      conftest_s='
25391	.section ".tdata","awT",@progbits'
25392	tls_first_major=2
25393	tls_first_minor=23
25394	tls_as_opt="--fatal-warnings"
25395	;;
25396  aarch64*-*-*)
25397    conftest_s='
25398	.section ".tdata","awT",%progbits
25399foo:	.long	25
25400	.text
25401	adrp  x0, :tlsgd:x
25402	add   x0, x0, #:tlsgd_lo12:x
25403        bl    __tls_get_addr
25404	nop'
25405	tls_first_major=2
25406	tls_first_minor=20
25407	tls_as_opt='--fatal-warnings'
25408	;;
25409  or1k*-*-*)
25410    conftest_s='
25411	.section ".tdata","awT",@progbits
25412foo:	.long	25
25413	.text
25414	l.movhi	r3, tpoffha(foo)
25415	l.add	r3, r3, r10
25416	l.lwz	r4, tpofflo(foo)(r3)'
25417    tls_first_major=2
25418    tls_first_minor=30
25419    tls_as_opt=--fatal-warnings
25420    ;;
25421  powerpc-ibm-aix*)
25422    conftest_s='
25423	.extern __get_tpointer
25424	.toc
25425LC..1:
25426	.tc a[TC],a[TL]@le
25427	.csect .text[PR]
25428.tlstest:
25429	lwz 9,LC..1(2)
25430	bla __get_tpointer
25431	lwzx 3,9,3
25432	.globl a
25433	.csect a[TL],4
25434a:
25435	.space 4'
25436	tls_first_major=0
25437	tls_first_minor=0
25438	;;
25439  powerpc64*-*-*)
25440    conftest_s='
25441	.section ".tdata","awT",@progbits
25442	.align 3
25443ld0:	.space 8
25444ld1:	.space 8
25445x1:	.space 8
25446x2:	.space 8
25447x3:	.space 8
25448	.text
25449	addi 3,2,ld0@got@tlsgd
25450	bl .__tls_get_addr
25451	nop
25452	addi 3,2,ld1@toc
25453	bl .__tls_get_addr
25454	nop
25455	addi 3,2,x1@got@tlsld
25456	bl .__tls_get_addr
25457	nop
25458	addi 9,3,x1@dtprel
25459	bl .__tls_get_addr
25460	nop
25461	addis 9,3,x2@dtprel@ha
25462	addi 9,9,x2@dtprel@l
25463	bl .__tls_get_addr
25464	nop
25465	ld 9,x3@got@dtprel(2)
25466	add 9,9,3
25467	bl .__tls_get_addr
25468	nop'
25469	tls_first_major=2
25470	tls_first_minor=14
25471	tls_as_opt="-a64 --fatal-warnings"
25472	;;
25473  powerpc*-*-*)
25474    conftest_s='
25475	.section ".tdata","awT",@progbits
25476	.align 2
25477ld0:	.space 4
25478ld1:	.space 4
25479x1:	.space 4
25480x2:	.space 4
25481x3:	.space 4
25482	.text
25483	addi 3,31,ld0@got@tlsgd
25484	bl __tls_get_addr
25485	addi 3,31,x1@got@tlsld
25486	bl __tls_get_addr
25487	addi 9,3,x1@dtprel
25488	addis 9,3,x2@dtprel@ha
25489	addi 9,9,x2@dtprel@l
25490	lwz 9,x3@got@tprel(31)
25491	add 9,9,x@tls
25492	addi 9,2,x1@tprel
25493	addis 9,2,x2@tprel@ha
25494	addi 9,9,x2@tprel@l'
25495	tls_first_major=2
25496	tls_first_minor=14
25497	tls_as_opt="-a32 --fatal-warnings"
25498	;;
25499  riscv*-*-*)
25500    conftest_s='
25501	.section .tdata,"awT",@progbits
25502x:	.word 2
25503	.text
25504	la.tls.gd a0,x
25505        call __tls_get_addr'
25506	tls_first_major=2
25507	tls_first_minor=21
25508	tls_as_opt='--fatal-warnings'
25509	;;
25510  s390-*-*)
25511    conftest_s='
25512	.section ".tdata","awT",@progbits
25513foo:	.long	25
25514	.text
25515	.long	foo@TLSGD
25516	.long	foo@TLSLDM
25517	.long	foo@DTPOFF
25518	.long	foo@NTPOFF
25519	.long	foo@GOTNTPOFF
25520	.long	foo@INDNTPOFF
25521	l	%r1,foo@GOTNTPOFF(%r12)
25522	l	%r1,0(%r1):tls_load:foo
25523	bas	%r14,0(%r1,%r13):tls_gdcall:foo
25524	bas	%r14,0(%r1,%r13):tls_ldcall:foo'
25525	tls_first_major=2
25526	tls_first_minor=14
25527	tls_as_opt="-m31 --fatal-warnings"
25528	;;
25529  s390x-*-*)
25530    conftest_s='
25531	.section ".tdata","awT",@progbits
25532foo:	.long	25
25533	.text
25534	.quad	foo@TLSGD
25535	.quad	foo@TLSLDM
25536	.quad	foo@DTPOFF
25537	.quad	foo@NTPOFF
25538	.quad	foo@GOTNTPOFF
25539	lg	%r1,foo@GOTNTPOFF(%r12)
25540	larl	%r1,foo@INDNTPOFF
25541	brasl	%r14,__tls_get_offset@PLT:tls_gdcall:foo
25542	brasl	%r14,__tls_get_offset@PLT:tls_ldcall:foo'
25543	tls_first_major=2
25544	tls_first_minor=14
25545	tls_as_opt="-m64 -Aesame --fatal-warnings"
25546	;;
25547  sh-*-* | sh[123456789lbe]*-*-*)
25548    conftest_s='
25549	.section ".tdata","awT",@progbits
25550foo:	.long	25
25551	.text
25552	.long	foo@TLSGD
25553	.long	foo@TLSLDM
25554	.long	foo@DTPOFF
25555	.long	foo@GOTTPOFF
25556	.long	foo@TPOFF'
25557	tls_first_major=2
25558	tls_first_minor=13
25559	tls_as_opt=--fatal-warnings
25560	;;
25561  sparc*-*-*)
25562    case "$target" in
25563      sparc*-sun-solaris2.*)
25564	on_solaris=yes
25565	;;
25566      *)
25567	on_solaris=no
25568	;;
25569    esac
25570    if test x$on_solaris = xyes && test x$gas_flag = xno; then
25571      conftest_s='
25572	.section ".tdata",#alloc,#write,#tls'
25573	tls_first_major=0
25574	tls_first_minor=0
25575    else
25576      conftest_s='
25577	.section ".tdata","awT",@progbits'
25578	tls_first_major=2
25579	tls_first_minor=14
25580	tls_as_opt="-32 --fatal-warnings"
25581    fi
25582    conftest_s="$conftest_s
25583foo:	.long	25
25584	.text
25585	sethi	%tgd_hi22(foo), %o0
25586	add	%o0, %tgd_lo10(foo), %o1
25587	add	%l7, %o1, %o0, %tgd_add(foo)
25588	call	__tls_get_addr, %tgd_call(foo)
25589	sethi	%tldm_hi22(foo), %l1
25590	add	%l1, %tldm_lo10(foo), %l2
25591	add	%l7, %l2, %o0, %tldm_add(foo)
25592	call	__tls_get_addr, %tldm_call(foo)
25593	sethi	%tldo_hix22(foo), %l3
25594	xor	%l3, %tldo_lox10(foo), %l4
25595	add	%o0, %l4, %l5, %tldo_add(foo)
25596	sethi	%tie_hi22(foo), %o3
25597	add	%o3, %tie_lo10(foo), %o3
25598	ld	[%l7 + %o3], %o2, %tie_ld(foo)
25599	add	%g7, %o2, %o4, %tie_add(foo)
25600	sethi	%tle_hix22(foo), %l1
25601	xor	%l1, %tle_lox10(foo), %o5
25602	ld	[%g7 + %o5], %o1"
25603	;;
25604  tilepro*-*-*)
25605      conftest_s='
25606	.section ".tdata","awT",@progbits
25607foo:	.long	25
25608	.text
25609	addli	r0, zero, tls_gd(foo)
25610	auli	r0, zero, tls_gd_ha16(foo)
25611	addli	r0, r0, tls_gd_lo16(foo)
25612	jal	__tls_get_addr
25613	addli	r0, zero, tls_ie(foo)
25614	auli	r0, r0, tls_ie_ha16(foo)
25615	addli	r0, r0, tls_ie_lo16(foo)'
25616	tls_first_major=2
25617	tls_first_minor=22
25618	tls_as_opt="--fatal-warnings"
25619	;;
25620  tilegx*-*-*)
25621      conftest_s='
25622	.section ".tdata","awT",@progbits
25623foo:	.long	25
25624	.text
25625	shl16insli r0, zero, hw0_last_tls_gd(foo)
25626	shl16insli r0, zero, hw1_last_tls_gd(foo)
25627	shl16insli r0, r0,   hw0_tls_gd(foo)
25628	jal	   __tls_get_addr
25629	shl16insli r0, zero, hw1_last_tls_ie(foo)
25630	shl16insli r0, r0,   hw0_tls_ie(foo)'
25631	tls_first_major=2
25632	tls_first_minor=22
25633	tls_as_opt="--fatal-warnings"
25634	;;
25635  xtensa*-*-*)
25636    conftest_s='
25637	.section ".tdata","awT",@progbits
25638foo:	.long	25
25639	.text
25640	movi	a8, foo@TLSFUNC
25641	movi	a10, foo@TLSARG
25642	callx8.tls a8, foo@TLSCALL'
25643	tls_first_major=2
25644	tls_first_minor=19
25645	;;
25646esac
25647set_have_as_tls=no
25648if test "x$enable_tls" = xno ; then
25649  : # TLS explicitly disabled.
25650elif test "x$enable_tls" = xyes ; then
25651  set_have_as_tls=yes # TLS explicitly enabled.
25652elif test -z "$tls_first_major"; then
25653  : # If we don't have a check, assume no support.
25654else
25655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25656$as_echo_n "checking assembler for thread-local storage support... " >&6; }
25657if ${gcc_cv_as_tls+:} false; then :
25658  $as_echo_n "(cached) " >&6
25659else
25660  gcc_cv_as_tls=no
25661    if test $in_tree_gas = yes; then
25662    if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25663  then gcc_cv_as_tls=yes
25664fi
25665  elif test x$gcc_cv_as != x; then
25666    $as_echo "$conftest_s" > conftest.s
25667    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25668  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25669  (eval $ac_try) 2>&5
25670  ac_status=$?
25671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25672  test $ac_status = 0; }; }
25673    then
25674	gcc_cv_as_tls=yes
25675    else
25676      echo "configure: failed program was" >&5
25677      cat conftest.s >&5
25678    fi
25679    rm -f conftest.o conftest.s
25680  fi
25681fi
25682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25683$as_echo "$gcc_cv_as_tls" >&6; }
25684if test $gcc_cv_as_tls = yes; then
25685  set_have_as_tls=yes
25686fi
25687
25688fi
25689if test $set_have_as_tls = yes ; then
25690
25691$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25692
25693fi
25694
25695# Target-specific assembler checks.
25696
25697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25698$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25699gcc_cv_ld_static_dynamic=no
25700gcc_cv_ld_static_option='-Bstatic'
25701gcc_cv_ld_dynamic_option='-Bdynamic'
25702if test $in_tree_ld = yes ; then
25703  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
25704    gcc_cv_ld_static_dynamic=yes
25705  fi
25706elif test x$gcc_cv_ld != x; then
25707  # Check if linker supports -Bstatic/-Bdynamic option
25708  if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25709     && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25710      gcc_cv_ld_static_dynamic=yes
25711  else
25712    case "$target" in
25713      # AIX ld uses -b flags
25714      *-*-aix4.[23]* | *-*-aix[5-9]*)
25715	gcc_cv_ld_static_dynamic=yes
25716	gcc_cv_ld_static_option="-bstatic"
25717	gcc_cv_ld_dynamic_option="-bdynamic"
25718	;;
25719      # HP-UX ld uses -a flags to select between shared and archive.
25720      *-*-hpux*)
25721	if test x"$gnu_ld" = xno; then
25722	  gcc_cv_ld_static_dynamic=yes
25723	  gcc_cv_ld_static_option="-aarchive_shared"
25724	  gcc_cv_ld_dynamic_option="-adefault"
25725	fi
25726	;;
25727      # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25728      *-*-solaris2*)
25729        gcc_cv_ld_static_dynamic=yes
25730        ;;
25731    esac
25732  fi
25733fi
25734if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25735
25736$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25737
25738
25739cat >>confdefs.h <<_ACEOF
25740#define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25741_ACEOF
25742
25743
25744cat >>confdefs.h <<_ACEOF
25745#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25746_ACEOF
25747
25748fi
25749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25750$as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25751
25752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25753$as_echo_n "checking linker --version-script option... " >&6; }
25754gcc_cv_ld_version_script=no
25755ld_version_script_option=''
25756if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25757  gcc_cv_ld_version_script=yes
25758  ld_version_script_option='--version-script'
25759elif test x$gcc_cv_ld != x; then
25760  case "$target" in
25761    # Solaris 2 ld always supports -M.  It also supports a subset of
25762    # --version-script since Solaris 11.4, but requires
25763    # -z gnu-version-script-compat to activate.
25764    *-*-solaris2*)
25765      gcc_cv_ld_version_script=yes
25766      ld_version_script_option='-M'
25767      ;;
25768  esac
25769fi
25770# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25772$as_echo "$gcc_cv_ld_version_script" >&6; }
25773
25774
25775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25776$as_echo_n "checking linker soname option... " >&6; }
25777gcc_cv_ld_soname=no
25778if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25779  gcc_cv_ld_soname=yes
25780  ld_soname_option='-soname'
25781elif test x$gcc_cv_ld != x; then
25782  case "$target" in
25783    *-*-darwin*)
25784      gcc_cv_ld_soname=yes
25785      ld_soname_option='-install_name'
25786      ;;
25787    # Solaris 2 ld always supports -h.  It also supports --soname for GNU
25788    # ld compatiblity since some Solaris 10 update.
25789    *-*-solaris2*)
25790      gcc_cv_ld_soname=yes
25791      ld_soname_option='-h'
25792      ;;
25793  esac
25794fi
25795# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25797$as_echo "$gcc_cv_ld_soname" >&6; }
25798
25799
25800if test x"$demangler_in_ld" = xyes; then
25801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25802$as_echo_n "checking linker --demangle support... " >&6; }
25803  gcc_cv_ld_demangle=no
25804  if test $in_tree_ld = yes; then
25805    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 \
25806      gcc_cv_ld_demangle=yes
25807    fi
25808  elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25809    # Check if the GNU linker supports --demangle option
25810    if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25811      gcc_cv_ld_demangle=yes
25812    fi
25813  fi
25814  if test x"$gcc_cv_ld_demangle" = xyes; then
25815
25816$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25817
25818  fi
25819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25820$as_echo "$gcc_cv_ld_demangle" >&6; }
25821fi
25822
25823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25824$as_echo_n "checking linker plugin support... " >&6; }
25825gcc_cv_lto_plugin=0
25826if test -f liblto_plugin.la; then
25827  save_ld_ver="$ld_ver"
25828  save_ld_vers_major="$ld_vers_major"
25829  save_ld_vers_minor="$ld_vers_minor"
25830  save_ld_is_gold="$ld_is_gold"
25831
25832  ld_is_gold=no
25833
25834  if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25835    ld_ver="GNU ld"
25836    # FIXME: ld_is_gold?
25837    ld_vers_major="$gcc_cv_gld_major_version"
25838    ld_vers_minor="$gcc_cv_gld_minor_version"
25839  else
25840    # Determine plugin linker version.
25841    # FIXME: Partial duplicate from above, generalize.
25842    ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25843    if echo "$ld_ver" | grep GNU > /dev/null; then
25844      if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25845        ld_is_gold=yes
25846        ld_vers=`echo $ld_ver | sed -n \
25847    	    -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25848      else
25849        ld_vers=`echo $ld_ver | sed -n \
25850    	    -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25851      fi
25852      ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25853      ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25854    fi
25855  fi
25856
25857  # Determine plugin support.
25858  if echo "$ld_ver" | grep GNU > /dev/null; then
25859    # Require GNU ld or gold 2.21+ for plugin support by default.
25860    if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25861      gcc_cv_lto_plugin=2
25862    # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25863    elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25864      gcc_cv_lto_plugin=1
25865    fi
25866  fi
25867
25868  ld_ver="$save_ld_ver"
25869  ld_vers_major="$save_ld_vers_major"
25870  ld_vers_minor="$save_ld_vers_minor"
25871  ld_is_gold="$save_ld_is_gold"
25872fi
25873
25874cat >>confdefs.h <<_ACEOF
25875#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25876_ACEOF
25877
25878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25879$as_echo "$gcc_cv_lto_plugin" >&6; }
25880
25881# Target OS-specific assembler checks.
25882
25883case "$target_os" in
25884  darwin*)
25885    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25886$as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25887if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25888  $as_echo_n "(cached) " >&6
25889else
25890  gcc_cv_as_mmacosx_version_min=no
25891  if test x$gcc_cv_as != x; then
25892    $as_echo '.text' > conftest.s
25893    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25894  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25895  (eval $ac_try) 2>&5
25896  ac_status=$?
25897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25898  test $ac_status = 0; }; }
25899    then
25900	gcc_cv_as_mmacosx_version_min=yes
25901    else
25902      echo "configure: failed program was" >&5
25903      cat conftest.s >&5
25904    fi
25905    rm -f conftest.o conftest.s
25906  fi
25907fi
25908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25909$as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25910if test $gcc_cv_as_mmacosx_version_min = yes; then
25911
25912$as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25913
25914fi
25915
25916    ;;
25917esac
25918
25919# Target CPU-specific assembler checks.
25920
25921case "$target" in
25922  aarch64*-*-*)
25923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25924$as_echo_n "checking assembler for -mabi option... " >&6; }
25925if ${gcc_cv_as_aarch64_mabi+:} false; then :
25926  $as_echo_n "(cached) " >&6
25927else
25928  gcc_cv_as_aarch64_mabi=no
25929  if test x$gcc_cv_as != x; then
25930    $as_echo '.text' > conftest.s
25931    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25932  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25933  (eval $ac_try) 2>&5
25934  ac_status=$?
25935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25936  test $ac_status = 0; }; }
25937    then
25938	gcc_cv_as_aarch64_mabi=yes
25939    else
25940      echo "configure: failed program was" >&5
25941      cat conftest.s >&5
25942    fi
25943    rm -f conftest.o conftest.s
25944  fi
25945fi
25946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25947$as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25948
25949
25950    if test x$gcc_cv_as_aarch64_mabi = xyes; then
25951
25952$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25953
25954    else
25955      if test x$with_abi = xilp32; then
25956        as_fn_error $? "Assembler does not support -mabi=ilp32.\
25957                     Upgrade the Assembler." "$LINENO" 5
25958      fi
25959      if test x"$with_multilib_list" = xdefault; then
25960        TM_MULTILIB_CONFIG=lp64
25961      else
25962        aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25963        for aarch64_multilib in ${aarch64_multilibs}; do
25964          case ${aarch64_multilib} in
25965            ilp32)
25966              as_fn_error $? "Assembler does not support -mabi=ilp32.\
25967                            Upgrade the Assembler." "$LINENO" 5
25968              ;;
25969            *)
25970              ;;
25971          esac
25972        done
25973      fi
25974    fi
25975    # Check if we have binutils support for relocations types needed by -fpic
25976    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25977$as_echo_n "checking assembler for -fpic relocs... " >&6; }
25978if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25979  $as_echo_n "(cached) " >&6
25980else
25981  gcc_cv_as_aarch64_picreloc=no
25982  if test x$gcc_cv_as != x; then
25983    $as_echo '
25984	.text
25985	ldr     x0, [x2, #:gotpage_lo15:globalsym]
25986    ' > conftest.s
25987    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25988  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25989  (eval $ac_try) 2>&5
25990  ac_status=$?
25991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25992  test $ac_status = 0; }; }
25993    then
25994	gcc_cv_as_aarch64_picreloc=yes
25995    else
25996      echo "configure: failed program was" >&5
25997      cat conftest.s >&5
25998    fi
25999    rm -f conftest.o conftest.s
26000  fi
26001fi
26002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26003$as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26004if test $gcc_cv_as_aarch64_picreloc = yes; then
26005
26006$as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26007
26008fi
26009
26010    # Enable Branch Target Identification Mechanism and Return Address
26011    # Signing by default.
26012    # Check whether --enable-standard-branch-protection was given.
26013if test "${enable_standard_branch_protection+set}" = set; then :
26014  enableval=$enable_standard_branch_protection;
26015        case $enableval in
26016          yes)
26017            tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26018            ;;
26019          no)
26020            ;;
26021          *)
26022            as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26023  Valid choices are 'yes' and 'no'." "$LINENO" 5
26024            ;;
26025        esac
26026
26027fi
26028
26029    # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26030    # Check whether --enable-fix-cortex-a53-835769 was given.
26031if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26032  enableval=$enable_fix_cortex_a53_835769;
26033        case $enableval in
26034          yes)
26035            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26036            ;;
26037          no)
26038            ;;
26039          *)
26040            as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26041  Valid choices are 'yes' and 'no'." "$LINENO" 5
26042            ;;
26043
26044        esac
26045
26046fi
26047
26048    # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26049    # Check whether --enable-fix-cortex-a53-843419 was given.
26050if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26051  enableval=$enable_fix_cortex_a53_843419;
26052        case $enableval in
26053          yes)
26054            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26055            ;;
26056          no)
26057            ;;
26058          *)
26059            as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26060  Valid choices are 'yes' and 'no'." "$LINENO" 5
26061            ;;
26062
26063        esac
26064
26065fi
26066
26067    ;;
26068
26069  # All TARGET_ABI_OSF targets.
26070  alpha*-*-linux* | alpha*-*-*bsd*)
26071    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26072$as_echo_n "checking assembler for explicit relocation support... " >&6; }
26073if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26074  $as_echo_n "(cached) " >&6
26075else
26076  gcc_cv_as_alpha_explicit_relocs=no
26077    if test $in_tree_gas = yes; then
26078    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
26079  then gcc_cv_as_alpha_explicit_relocs=yes
26080fi
26081  elif test x$gcc_cv_as != x; then
26082    $as_echo '	.set nomacro
26083	.text
26084	extbl	$3, $2, $3	!lituse_bytoff!1
26085	ldq	$2, a($29)	!literal!1
26086	ldq	$4, b($29)	!literal!2
26087	ldq_u	$3, 0($2)	!lituse_base!1
26088	ldq	$27, f($29)	!literal!5
26089	jsr	$26, ($27), f	!lituse_jsr!5
26090	ldah	$29, 0($26)	!gpdisp!3
26091	lda	$0, c($29)	!gprel
26092	ldah	$1, d($29)	!gprelhigh
26093	lda	$1, d($1)	!gprellow
26094	lda	$29, 0($29)	!gpdisp!3' > conftest.s
26095    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26096  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26097  (eval $ac_try) 2>&5
26098  ac_status=$?
26099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26100  test $ac_status = 0; }; }
26101    then
26102	gcc_cv_as_alpha_explicit_relocs=yes
26103    else
26104      echo "configure: failed program was" >&5
26105      cat conftest.s >&5
26106    fi
26107    rm -f conftest.o conftest.s
26108  fi
26109fi
26110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26111$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26112if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26113
26114$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26115
26116fi
26117
26118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26119$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26120if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26121  $as_echo_n "(cached) " >&6
26122else
26123  gcc_cv_as_alpha_jsrdirect_relocs=no
26124    if test $in_tree_gas = yes; then
26125    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
26126  then gcc_cv_as_alpha_jsrdirect_relocs=yes
26127fi
26128  elif test x$gcc_cv_as != x; then
26129    $as_echo '	.set nomacro
26130	.text
26131	ldq	$27, a($29)	!literal!1
26132	jsr	$26, ($27), a	!lituse_jsrdirect!1' > conftest.s
26133    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26134  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26135  (eval $ac_try) 2>&5
26136  ac_status=$?
26137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26138  test $ac_status = 0; }; }
26139    then
26140	gcc_cv_as_alpha_jsrdirect_relocs=yes
26141    else
26142      echo "configure: failed program was" >&5
26143      cat conftest.s >&5
26144    fi
26145    rm -f conftest.o conftest.s
26146  fi
26147fi
26148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26149$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26150if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26151
26152$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26153
26154fi
26155
26156    ;;
26157
26158  avr-*-*)
26159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26160$as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26161if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26162  $as_echo_n "(cached) " >&6
26163else
26164  gcc_cv_as_avr_mlink_relax=no
26165  if test x$gcc_cv_as != x; then
26166    $as_echo '.text' > conftest.s
26167    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26168  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26169  (eval $ac_try) 2>&5
26170  ac_status=$?
26171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26172  test $ac_status = 0; }; }
26173    then
26174	gcc_cv_as_avr_mlink_relax=yes
26175    else
26176      echo "configure: failed program was" >&5
26177      cat conftest.s >&5
26178    fi
26179    rm -f conftest.o conftest.s
26180  fi
26181fi
26182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26183$as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26184if test $gcc_cv_as_avr_mlink_relax = yes; then
26185
26186$as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26187
26188fi
26189
26190
26191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26192$as_echo_n "checking assembler for -mrmw option... " >&6; }
26193if ${gcc_cv_as_avr_mrmw+:} false; then :
26194  $as_echo_n "(cached) " >&6
26195else
26196  gcc_cv_as_avr_mrmw=no
26197  if test x$gcc_cv_as != x; then
26198    $as_echo '.text' > conftest.s
26199    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26200  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26201  (eval $ac_try) 2>&5
26202  ac_status=$?
26203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26204  test $ac_status = 0; }; }
26205    then
26206	gcc_cv_as_avr_mrmw=yes
26207    else
26208      echo "configure: failed program was" >&5
26209      cat conftest.s >&5
26210    fi
26211    rm -f conftest.o conftest.s
26212  fi
26213fi
26214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26215$as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26216if test $gcc_cv_as_avr_mrmw = yes; then
26217
26218$as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26219
26220fi
26221
26222
26223    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26224$as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26225if ${gcc_cv_as_avr_mgccisr+:} false; then :
26226  $as_echo_n "(cached) " >&6
26227else
26228  gcc_cv_as_avr_mgccisr=no
26229  if test x$gcc_cv_as != x; then
26230    $as_echo '.text
26231      		    __gcc_isr 1
26232      		    __gcc_isr 2
26233      		    __gcc_isr 0,r24
26234      		   ' > conftest.s
26235    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26236  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26237  (eval $ac_try) 2>&5
26238  ac_status=$?
26239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26240  test $ac_status = 0; }; }
26241    then
26242	gcc_cv_as_avr_mgccisr=yes
26243    else
26244      echo "configure: failed program was" >&5
26245      cat conftest.s >&5
26246    fi
26247    rm -f conftest.o conftest.s
26248  fi
26249fi
26250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26251$as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26252if test $gcc_cv_as_avr_mgccisr = yes; then
26253
26254$as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26255
26256fi
26257
26258
26259    # Check how default linker description file implements .rodata for
26260    # avrxmega3 (PR21472).  avr-gcc assumes .rodata is *not* loaded to
26261    # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26262    { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26263$as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26264    cat > conftest.s <<EOF
26265        .section .rodata,"a",@progbits
26266        .global xxvaryy
26267    ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26268    xxvaryy:
26269        .word 1
26270EOF
26271    rm -f conftest.nm
26272    { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26273  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26274  (eval $ac_try) 2>&5
26275  ac_status=$?
26276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26277  test $ac_status = 0; }; }
26278    { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26279  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26280  (eval $ac_try) 2>&5
26281  ac_status=$?
26282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26283  test $ac_status = 0; }; }
26284    { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26285  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26286  (eval $ac_try) 2>&5
26287  ac_status=$?
26288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26289  test $ac_status = 0; }; }
26290    if test -s conftest.nm
26291    then
26292	if grep ' R xxvaryy' conftest.nm > /dev/null; then
26293	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26294$as_echo "yes" >&6; }
26295
26296$as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26297
26298	else
26299	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26300$as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26301	    echo "$as_me: nm output was" >&5
26302	    cat conftest.nm >&5
26303	    avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26304	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
26305$as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26306	fi
26307    else
26308	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26309$as_echo "test failed" >&6; }
26310	echo "$as_me: failed program was" >&5
26311	cat conftest.s >&5
26312	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26313$as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26314    fi
26315    rm -f conftest.s conftest.o conftest.elf conftest.nm
26316    ;;
26317
26318  cris-*-*)
26319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26320$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26321if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26322  $as_echo_n "(cached) " >&6
26323else
26324  gcc_cv_as_cris_no_mul_bug=no
26325    if test $in_tree_gas = yes; then
26326    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26327  then gcc_cv_as_cris_no_mul_bug=yes
26328fi
26329  elif test x$gcc_cv_as != x; then
26330    $as_echo '.text' > conftest.s
26331    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26332  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26333  (eval $ac_try) 2>&5
26334  ac_status=$?
26335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26336  test $ac_status = 0; }; }
26337    then
26338	gcc_cv_as_cris_no_mul_bug=yes
26339    else
26340      echo "configure: failed program was" >&5
26341      cat conftest.s >&5
26342    fi
26343    rm -f conftest.o conftest.s
26344  fi
26345fi
26346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26347$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26348if test $gcc_cv_as_cris_no_mul_bug = yes; then
26349
26350$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26351
26352fi
26353
26354    ;;
26355
26356  sparc*-*-*)
26357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26358$as_echo_n "checking assembler for -relax option... " >&6; }
26359if ${gcc_cv_as_sparc_relax+:} false; then :
26360  $as_echo_n "(cached) " >&6
26361else
26362  gcc_cv_as_sparc_relax=no
26363  if test x$gcc_cv_as != x; then
26364    $as_echo '.text' > conftest.s
26365    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26366  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26367  (eval $ac_try) 2>&5
26368  ac_status=$?
26369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26370  test $ac_status = 0; }; }
26371    then
26372	gcc_cv_as_sparc_relax=yes
26373    else
26374      echo "configure: failed program was" >&5
26375      cat conftest.s >&5
26376    fi
26377    rm -f conftest.o conftest.s
26378  fi
26379fi
26380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26381$as_echo "$gcc_cv_as_sparc_relax" >&6; }
26382if test $gcc_cv_as_sparc_relax = yes; then
26383
26384$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26385
26386fi
26387
26388
26389    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26390$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26391if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26392  $as_echo_n "(cached) " >&6
26393else
26394  gcc_cv_as_sparc_gotdata_op=no
26395  if test x$gcc_cv_as != x; then
26396    $as_echo '.text
26397.align 4
26398foo:
26399	nop
26400bar:
26401	sethi %gdop_hix22(foo), %g1
26402	xor    %g1, %gdop_lox10(foo), %g1
26403	ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26404    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26405  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26406  (eval $ac_try) 2>&5
26407  ac_status=$?
26408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26409  test $ac_status = 0; }; }
26410    then
26411	if test x$gcc_cv_ld != x \
26412       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26413         if test x$gcc_cv_objdump != x; then
26414           if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26415              | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26416	       gcc_cv_as_sparc_gotdata_op=no
26417           else
26418	       gcc_cv_as_sparc_gotdata_op=yes
26419           fi
26420         fi
26421       fi
26422       rm -f conftest
26423    else
26424      echo "configure: failed program was" >&5
26425      cat conftest.s >&5
26426    fi
26427    rm -f conftest.o conftest.s
26428  fi
26429fi
26430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26431$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26432if test $gcc_cv_as_sparc_gotdata_op = yes; then
26433
26434$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26435
26436fi
26437
26438
26439    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26440$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26441if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26442  $as_echo_n "(cached) " >&6
26443else
26444  gcc_cv_as_sparc_ua_pcrel=no
26445  if test x$gcc_cv_as != x; then
26446    $as_echo '.text
26447foo:
26448	nop
26449.data
26450.align 4
26451.byte 0
26452.uaword %r_disp32(foo)' > conftest.s
26453    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26454  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26455  (eval $ac_try) 2>&5
26456  ac_status=$?
26457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26458  test $ac_status = 0; }; }
26459    then
26460	if test x$gcc_cv_ld != x \
26461       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26462	 gcc_cv_as_sparc_ua_pcrel=yes
26463       fi
26464       rm -f conftest
26465    else
26466      echo "configure: failed program was" >&5
26467      cat conftest.s >&5
26468    fi
26469    rm -f conftest.o conftest.s
26470  fi
26471fi
26472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26473$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26474if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26475
26476$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26477
26478
26479      { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26480$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26481if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26482  $as_echo_n "(cached) " >&6
26483else
26484  gcc_cv_as_sparc_ua_pcrel_hidden=no
26485  if test x$gcc_cv_as != x; then
26486    $as_echo '.data
26487.align 4
26488.byte 0x31
26489.uaword %r_disp32(foo)
26490.byte 0x32, 0x33, 0x34
26491.global foo
26492.hidden foo
26493foo:
26494.skip 4' > conftest.s
26495    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26496  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26497  (eval $ac_try) 2>&5
26498  ac_status=$?
26499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26500  test $ac_status = 0; }; }
26501    then
26502	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26503	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26504	 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26505	    | grep ' 31000000 07323334' > /dev/null 2>&1; then
26506	    if $gcc_cv_objdump -R conftest 2> /dev/null \
26507	       | grep 'DISP32' > /dev/null 2>&1; then
26508		:
26509	    else
26510		gcc_cv_as_sparc_ua_pcrel_hidden=yes
26511	    fi
26512	 fi
26513	 rm -f conftest
26514    else
26515      echo "configure: failed program was" >&5
26516      cat conftest.s >&5
26517    fi
26518    rm -f conftest.o conftest.s
26519  fi
26520fi
26521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26522$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26523if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26524
26525$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26526
26527fi
26528
26529
26530fi
26531 # unaligned pcrel relocs
26532
26533    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26534$as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26535if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26536  $as_echo_n "(cached) " >&6
26537else
26538  gcc_cv_as_sparc_offsetable_lo10=no
26539  if test x$gcc_cv_as != x; then
26540    $as_echo '.text
26541	or %g1, %lo(ab) + 12, %g1
26542	or %g1, %lo(ab + 12), %g1' > conftest.s
26543    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -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	if test x$gcc_cv_objdump != x \
26551       && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26552          | grep ' 82106000 82106000' > /dev/null 2>&1; then
26553	 gcc_cv_as_sparc_offsetable_lo10=yes
26554       fi
26555    else
26556      echo "configure: failed program was" >&5
26557      cat conftest.s >&5
26558    fi
26559    rm -f conftest.o conftest.s
26560  fi
26561fi
26562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26563$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26564if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26565
26566$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26567
26568fi
26569
26570
26571    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26572$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26573if ${gcc_cv_as_sparc_fmaf+:} false; then :
26574  $as_echo_n "(cached) " >&6
26575else
26576  gcc_cv_as_sparc_fmaf=no
26577  if test x$gcc_cv_as != x; then
26578    $as_echo '.text
26579       .register %g2, #scratch
26580       .register %g3, #scratch
26581       .align 4
26582       fmaddd %f0, %f2, %f4, %f6
26583       addxccc %g1, %g2, %g3
26584       fsrl32 %f2, %f4, %f8
26585       fnaddd %f10, %f12, %f14' > conftest.s
26586    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26587  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26588  (eval $ac_try) 2>&5
26589  ac_status=$?
26590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26591  test $ac_status = 0; }; }
26592    then
26593	gcc_cv_as_sparc_fmaf=yes
26594    else
26595      echo "configure: failed program was" >&5
26596      cat conftest.s >&5
26597    fi
26598    rm -f conftest.o conftest.s
26599  fi
26600fi
26601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26602$as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26603if test $gcc_cv_as_sparc_fmaf = yes; then
26604
26605$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26606
26607fi
26608
26609
26610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26611$as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26612if ${gcc_cv_as_sparc_sparc4+:} false; then :
26613  $as_echo_n "(cached) " >&6
26614else
26615  gcc_cv_as_sparc_sparc4=no
26616  if test x$gcc_cv_as != x; then
26617    $as_echo '.text
26618       .register %g2, #scratch
26619       .register %g3, #scratch
26620       .align 4
26621       cxbe %g2, %g3, 1f
266221:     cwbneg %g2, %g3, 1f
266231:     sha1
26624       md5
26625       aes_kexpand0 %f4, %f6, %f8
26626       des_round %f38, %f40, %f42, %f44
26627       camellia_f %f54, %f56, %f58, %f60
26628       kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26629    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26630  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26631  (eval $ac_try) 2>&5
26632  ac_status=$?
26633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26634  test $ac_status = 0; }; }
26635    then
26636	gcc_cv_as_sparc_sparc4=yes
26637    else
26638      echo "configure: failed program was" >&5
26639      cat conftest.s >&5
26640    fi
26641    rm -f conftest.o conftest.s
26642  fi
26643fi
26644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26645$as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26646if test $gcc_cv_as_sparc_sparc4 = yes; then
26647
26648$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26649
26650fi
26651
26652
26653    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26654$as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26655if ${gcc_cv_as_sparc_sparc5+:} false; then :
26656  $as_echo_n "(cached) " >&6
26657else
26658  gcc_cv_as_sparc_sparc5=no
26659  if test x$gcc_cv_as != x; then
26660    $as_echo '.text
26661       .register %g2, #scratch
26662       .register %g3, #scratch
26663       .align 4
26664       subxc %g1, %g2, %g3
26665       fpadd8 %f0, %f2, %f4' > conftest.s
26666    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26667  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26668  (eval $ac_try) 2>&5
26669  ac_status=$?
26670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26671  test $ac_status = 0; }; }
26672    then
26673	gcc_cv_as_sparc_sparc5=yes
26674    else
26675      echo "configure: failed program was" >&5
26676      cat conftest.s >&5
26677    fi
26678    rm -f conftest.o conftest.s
26679  fi
26680fi
26681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26682$as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26683if test $gcc_cv_as_sparc_sparc5 = yes; then
26684
26685$as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26686
26687fi
26688
26689
26690    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26691$as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26692if ${gcc_cv_as_sparc_sparc6+:} false; then :
26693  $as_echo_n "(cached) " >&6
26694else
26695  gcc_cv_as_sparc_sparc6=no
26696  if test x$gcc_cv_as != x; then
26697    $as_echo '.text
26698       .register %g2, #scratch
26699       .register %g3, #scratch
26700       .align 4
26701       rd %entropy, %g1
26702       fpsll64x %f0, %f2, %f4' > conftest.s
26703    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26704  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26705  (eval $ac_try) 2>&5
26706  ac_status=$?
26707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26708  test $ac_status = 0; }; }
26709    then
26710	gcc_cv_as_sparc_sparc6=yes
26711    else
26712      echo "configure: failed program was" >&5
26713      cat conftest.s >&5
26714    fi
26715    rm -f conftest.o conftest.s
26716  fi
26717fi
26718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26719$as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26720if test $gcc_cv_as_sparc_sparc6 = yes; then
26721
26722$as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26723
26724fi
26725
26726
26727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26728$as_echo_n "checking assembler for LEON instructions... " >&6; }
26729if ${gcc_cv_as_sparc_leon+:} false; then :
26730  $as_echo_n "(cached) " >&6
26731else
26732  gcc_cv_as_sparc_leon=no
26733  if test x$gcc_cv_as != x; then
26734    $as_echo '.text
26735       .register %g2, #scratch
26736       .register %g3, #scratch
26737       .align 4
26738       smac %g2, %g3, %g1
26739       umac %g2, %g3, %g1
26740       casa [%g2] 0xb, %g3, %g1' > conftest.s
26741    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26742  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26743  (eval $ac_try) 2>&5
26744  ac_status=$?
26745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26746  test $ac_status = 0; }; }
26747    then
26748	gcc_cv_as_sparc_leon=yes
26749    else
26750      echo "configure: failed program was" >&5
26751      cat conftest.s >&5
26752    fi
26753    rm -f conftest.o conftest.s
26754  fi
26755fi
26756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26757$as_echo "$gcc_cv_as_sparc_leon" >&6; }
26758if test $gcc_cv_as_sparc_leon = yes; then
26759
26760$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26761
26762fi
26763
26764    ;;
26765
26766  i[34567]86-*-* | x86_64-*-*)
26767    case $target_os in
26768      cygwin*)
26769	# Full C++ conformance when using a shared libstdc++-v3 requires some
26770	# support from the Cygwin DLL, which in more recent versions exports
26771	# wrappers to aid in interposing and redirecting operators new, delete,
26772	# etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
26773	# are configuring for a version of Cygwin that exports the wrappers.
26774	if test x$host = x$target && test x$host_cpu = xi686; then
26775	  ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26776if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26777  gcc_ac_cygwin_dll_wrappers=yes
26778else
26779  gcc_ac_cygwin_dll_wrappers=no
26780fi
26781
26782	else
26783	  # Can't check presence of libc functions during cross-compile, so
26784	  # we just have to assume we're building for an up-to-date target.
26785	  gcc_ac_cygwin_dll_wrappers=yes
26786	fi
26787
26788cat >>confdefs.h <<_ACEOF
26789#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26790_ACEOF
26791
26792    esac
26793    case $target_os in
26794      cygwin* | pe | mingw32*)
26795	# Recent binutils allows the three-operand form of ".comm" on PE.  This
26796	# definition is used unconditionally to initialise the default state of
26797	# the target option variable that governs usage of the feature.
26798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26799$as_echo_n "checking assembler for .comm with alignment... " >&6; }
26800if ${gcc_cv_as_comm_has_align+:} false; then :
26801  $as_echo_n "(cached) " >&6
26802else
26803  gcc_cv_as_comm_has_align=no
26804    if test $in_tree_gas = yes; then
26805    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26806  then gcc_cv_as_comm_has_align=yes
26807fi
26808  elif test x$gcc_cv_as != x; then
26809    $as_echo '.comm foo,1,32' > conftest.s
26810    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26811  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26812  (eval $ac_try) 2>&5
26813  ac_status=$?
26814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26815  test $ac_status = 0; }; }
26816    then
26817	gcc_cv_as_comm_has_align=yes
26818    else
26819      echo "configure: failed program was" >&5
26820      cat conftest.s >&5
26821    fi
26822    rm -f conftest.o conftest.s
26823  fi
26824fi
26825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26826$as_echo "$gcc_cv_as_comm_has_align" >&6; }
26827
26828
26829
26830cat >>confdefs.h <<_ACEOF
26831#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26832_ACEOF
26833
26834	# Used for DWARF 2 in PE
26835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26836$as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26837if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26838  $as_echo_n "(cached) " >&6
26839else
26840  gcc_cv_as_ix86_pe_secrel32=no
26841    if test $in_tree_gas = yes; then
26842    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26843  then gcc_cv_as_ix86_pe_secrel32=yes
26844fi
26845  elif test x$gcc_cv_as != x; then
26846    $as_echo '.text
26847foo:	nop
26848.data
26849	.secrel32 foo' > conftest.s
26850    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26851  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26852  (eval $ac_try) 2>&5
26853  ac_status=$?
26854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26855  test $ac_status = 0; }; }
26856    then
26857	if test x$gcc_cv_ld != x \
26858	   && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26859	     gcc_cv_as_ix86_pe_secrel32=yes
26860	   fi
26861	   rm -f conftest
26862    else
26863      echo "configure: failed program was" >&5
26864      cat conftest.s >&5
26865    fi
26866    rm -f conftest.o conftest.s
26867  fi
26868fi
26869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26870$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26871if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26872
26873$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26874
26875fi
26876
26877	# Test if the assembler supports the extended form of the .section
26878	# directive that specifies section alignment.  LTO support uses this,
26879	# but normally only after installation, so we warn but don't fail the
26880	# configure if LTO is enabled but the assembler does not support it.
26881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26882$as_echo_n "checking assembler for .section with alignment... " >&6; }
26883if ${gcc_cv_as_section_has_align+:} false; then :
26884  $as_echo_n "(cached) " >&6
26885else
26886  gcc_cv_as_section_has_align=no
26887    if test $in_tree_gas = yes; then
26888    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26889  then gcc_cv_as_section_has_align=yes
26890fi
26891  elif test x$gcc_cv_as != x; then
26892    $as_echo '.section lto_test,"dr0"' > conftest.s
26893    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26894  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26895  (eval $ac_try) 2>&5
26896  ac_status=$?
26897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26898  test $ac_status = 0; }; }
26899    then
26900	gcc_cv_as_section_has_align=yes
26901    else
26902      echo "configure: failed program was" >&5
26903      cat conftest.s >&5
26904    fi
26905    rm -f conftest.o conftest.s
26906  fi
26907fi
26908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26909$as_echo "$gcc_cv_as_section_has_align" >&6; }
26910
26911
26912	if test x$gcc_cv_as_section_has_align != xyes; then
26913	  case ",$enable_languages," in
26914	    *,lto,*)
26915	      { $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
26916$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;}
26917	      ;;
26918	  esac
26919	fi
26920	;;
26921    esac
26922
26923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26924$as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26925if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26926  $as_echo_n "(cached) " >&6
26927else
26928  gcc_cv_as_ix86_xbrace_comment=no
26929  if test x$gcc_cv_as != x; then
26930    $as_echo '.text' > conftest.s
26931    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26932  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26933  (eval $ac_try) 2>&5
26934  ac_status=$?
26935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26936  test $ac_status = 0; }; }
26937    then
26938	gcc_cv_as_ix86_xbrace_comment=yes
26939    else
26940      echo "configure: failed program was" >&5
26941      cat conftest.s >&5
26942    fi
26943    rm -f conftest.o conftest.s
26944  fi
26945fi
26946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26947$as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26948if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26949
26950$as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26951
26952fi
26953
26954
26955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26956$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26957if ${gcc_cv_as_ix86_filds+:} false; then :
26958  $as_echo_n "(cached) " >&6
26959else
26960  gcc_cv_as_ix86_filds=no
26961  if test x$gcc_cv_as != x; then
26962    $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26963    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26964  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26965  (eval $ac_try) 2>&5
26966  ac_status=$?
26967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26968  test $ac_status = 0; }; }
26969    then
26970	gcc_cv_as_ix86_filds=yes
26971    else
26972      echo "configure: failed program was" >&5
26973      cat conftest.s >&5
26974    fi
26975    rm -f conftest.o conftest.s
26976  fi
26977fi
26978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26979$as_echo "$gcc_cv_as_ix86_filds" >&6; }
26980if test $gcc_cv_as_ix86_filds = yes; then
26981
26982$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26983
26984fi
26985
26986
26987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26988$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26989if ${gcc_cv_as_ix86_fildq+:} false; then :
26990  $as_echo_n "(cached) " >&6
26991else
26992  gcc_cv_as_ix86_fildq=no
26993  if test x$gcc_cv_as != x; then
26994    $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26995    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26996  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26997  (eval $ac_try) 2>&5
26998  ac_status=$?
26999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27000  test $ac_status = 0; }; }
27001    then
27002	gcc_cv_as_ix86_fildq=yes
27003    else
27004      echo "configure: failed program was" >&5
27005      cat conftest.s >&5
27006    fi
27007    rm -f conftest.o conftest.s
27008  fi
27009fi
27010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27011$as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27012if test $gcc_cv_as_ix86_fildq = yes; then
27013
27014$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27015
27016fi
27017
27018
27019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27020$as_echo_n "checking assembler for cmov syntax... " >&6; }
27021if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27022  $as_echo_n "(cached) " >&6
27023else
27024  gcc_cv_as_ix86_cmov_sun_syntax=no
27025  if test x$gcc_cv_as != x; then
27026    $as_echo 'cmovl.l %edx, %eax' > conftest.s
27027    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27028  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27029  (eval $ac_try) 2>&5
27030  ac_status=$?
27031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27032  test $ac_status = 0; }; }
27033    then
27034	gcc_cv_as_ix86_cmov_sun_syntax=yes
27035    else
27036      echo "configure: failed program was" >&5
27037      cat conftest.s >&5
27038    fi
27039    rm -f conftest.o conftest.s
27040  fi
27041fi
27042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27043$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27044if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27045
27046$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27047
27048fi
27049
27050
27051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27052$as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27053if ${gcc_cv_as_ix86_ffreep+:} false; then :
27054  $as_echo_n "(cached) " >&6
27055else
27056  gcc_cv_as_ix86_ffreep=no
27057  if test x$gcc_cv_as != x; then
27058    $as_echo 'ffreep %st(1)' > conftest.s
27059    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27060  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27061  (eval $ac_try) 2>&5
27062  ac_status=$?
27063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064  test $ac_status = 0; }; }
27065    then
27066	gcc_cv_as_ix86_ffreep=yes
27067    else
27068      echo "configure: failed program was" >&5
27069      cat conftest.s >&5
27070    fi
27071    rm -f conftest.o conftest.s
27072  fi
27073fi
27074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27075$as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27076if test $gcc_cv_as_ix86_ffreep = yes; then
27077
27078$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27079
27080fi
27081
27082
27083    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27084$as_echo_n "checking assembler for .quad directive... " >&6; }
27085if ${gcc_cv_as_ix86_quad+:} false; then :
27086  $as_echo_n "(cached) " >&6
27087else
27088  gcc_cv_as_ix86_quad=no
27089  if test x$gcc_cv_as != x; then
27090    $as_echo '.quad 0' > conftest.s
27091    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27092  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27093  (eval $ac_try) 2>&5
27094  ac_status=$?
27095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27096  test $ac_status = 0; }; }
27097    then
27098	gcc_cv_as_ix86_quad=yes
27099    else
27100      echo "configure: failed program was" >&5
27101      cat conftest.s >&5
27102    fi
27103    rm -f conftest.o conftest.s
27104  fi
27105fi
27106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27107$as_echo "$gcc_cv_as_ix86_quad" >&6; }
27108if test $gcc_cv_as_ix86_quad = yes; then
27109
27110$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27111
27112fi
27113
27114
27115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27116$as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27117if ${gcc_cv_as_ix86_sahf+:} false; then :
27118  $as_echo_n "(cached) " >&6
27119else
27120  gcc_cv_as_ix86_sahf=no
27121  if test x$gcc_cv_as != x; then
27122    $as_echo '.code64
27123       sahf' > conftest.s
27124    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27125  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27126  (eval $ac_try) 2>&5
27127  ac_status=$?
27128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27129  test $ac_status = 0; }; }
27130    then
27131	gcc_cv_as_ix86_sahf=yes
27132    else
27133      echo "configure: failed program was" >&5
27134      cat conftest.s >&5
27135    fi
27136    rm -f conftest.o conftest.s
27137  fi
27138fi
27139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27140$as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27141if test $gcc_cv_as_ix86_sahf = yes; then
27142
27143$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27144
27145fi
27146
27147
27148    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27149$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27150if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27151  $as_echo_n "(cached) " >&6
27152else
27153  gcc_cv_as_ix86_interunit_movq=no
27154  if test x$gcc_cv_as != x; then
27155    $as_echo '.code64
27156       movq %mm0, %rax
27157       movq %rax, %xmm0' > conftest.s
27158    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27159  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27160  (eval $ac_try) 2>&5
27161  ac_status=$?
27162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27163  test $ac_status = 0; }; }
27164    then
27165	gcc_cv_as_ix86_interunit_movq=yes
27166    else
27167      echo "configure: failed program was" >&5
27168      cat conftest.s >&5
27169    fi
27170    rm -f conftest.o conftest.s
27171  fi
27172fi
27173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27174$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27175
27176
27177
27178cat >>confdefs.h <<_ACEOF
27179#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27180_ACEOF
27181
27182
27183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27184$as_echo_n "checking assembler for hle prefixes... " >&6; }
27185if ${gcc_cv_as_ix86_hle+:} false; then :
27186  $as_echo_n "(cached) " >&6
27187else
27188  gcc_cv_as_ix86_hle=no
27189  if test x$gcc_cv_as != x; then
27190    $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27191    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27192  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27193  (eval $ac_try) 2>&5
27194  ac_status=$?
27195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27196  test $ac_status = 0; }; }
27197    then
27198	gcc_cv_as_ix86_hle=yes
27199    else
27200      echo "configure: failed program was" >&5
27201      cat conftest.s >&5
27202    fi
27203    rm -f conftest.o conftest.s
27204  fi
27205fi
27206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27207$as_echo "$gcc_cv_as_ix86_hle" >&6; }
27208if test $gcc_cv_as_ix86_hle = yes; then
27209
27210$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27211
27212fi
27213
27214
27215    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27216$as_echo_n "checking assembler for swap suffix... " >&6; }
27217if ${gcc_cv_as_ix86_swap+:} false; then :
27218  $as_echo_n "(cached) " >&6
27219else
27220  gcc_cv_as_ix86_swap=no
27221  if test x$gcc_cv_as != x; then
27222    $as_echo 'movl.s %esp, %ebp' > conftest.s
27223    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27224  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27225  (eval $ac_try) 2>&5
27226  ac_status=$?
27227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27228  test $ac_status = 0; }; }
27229    then
27230	gcc_cv_as_ix86_swap=yes
27231    else
27232      echo "configure: failed program was" >&5
27233      cat conftest.s >&5
27234    fi
27235    rm -f conftest.o conftest.s
27236  fi
27237fi
27238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27239$as_echo "$gcc_cv_as_ix86_swap" >&6; }
27240if test $gcc_cv_as_ix86_swap = yes; then
27241
27242$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27243
27244fi
27245
27246
27247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27248$as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27249if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27250  $as_echo_n "(cached) " >&6
27251else
27252  gcc_cv_as_ix86_diff_sect_delta=no
27253  if test x$gcc_cv_as != x; then
27254    $as_echo '.section .rodata
27255.L1:
27256        .long .L2-.L1
27257        .long .L3-.L1
27258        .text
27259.L3:    nop
27260.L2:    nop' > conftest.s
27261    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27262  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27263  (eval $ac_try) 2>&5
27264  ac_status=$?
27265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27266  test $ac_status = 0; }; }
27267    then
27268	gcc_cv_as_ix86_diff_sect_delta=yes
27269    else
27270      echo "configure: failed program was" >&5
27271      cat conftest.s >&5
27272    fi
27273    rm -f conftest.o conftest.s
27274  fi
27275fi
27276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27277$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27278if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27279
27280$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27281
27282fi
27283
27284
27285    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27286$as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27287if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27288  $as_echo_n "(cached) " >&6
27289else
27290  gcc_cv_as_ix86_rep_lock_prefix=no
27291  if test x$gcc_cv_as != x; then
27292    $as_echo 'rep movsl
27293	 rep ret
27294	 rep nop
27295	 rep bsf %ecx, %eax
27296	 rep bsr %ecx, %eax
27297	 lock addl %edi, (%eax,%esi)
27298	 lock orl $0, (%esp)' > conftest.s
27299    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27300  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27301  (eval $ac_try) 2>&5
27302  ac_status=$?
27303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27304  test $ac_status = 0; }; }
27305    then
27306	gcc_cv_as_ix86_rep_lock_prefix=yes
27307    else
27308      echo "configure: failed program was" >&5
27309      cat conftest.s >&5
27310    fi
27311    rm -f conftest.o conftest.s
27312  fi
27313fi
27314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27315$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27316if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27317
27318$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27319
27320fi
27321
27322
27323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27324$as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27325if ${gcc_cv_as_ix86_ud2+:} false; then :
27326  $as_echo_n "(cached) " >&6
27327else
27328  gcc_cv_as_ix86_ud2=no
27329  if test x$gcc_cv_as != x; then
27330    $as_echo 'ud2' > conftest.s
27331    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27332  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27333  (eval $ac_try) 2>&5
27334  ac_status=$?
27335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27336  test $ac_status = 0; }; }
27337    then
27338	gcc_cv_as_ix86_ud2=yes
27339    else
27340      echo "configure: failed program was" >&5
27341      cat conftest.s >&5
27342    fi
27343    rm -f conftest.o conftest.s
27344  fi
27345fi
27346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27347$as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27348if test $gcc_cv_as_ix86_ud2 = yes; then
27349
27350$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27351
27352fi
27353
27354
27355    # Enforce 32-bit output with gas and gld.
27356    if test x$gas = xyes; then
27357      as_ix86_gas_32_opt="--32"
27358    fi
27359    if echo "$ld_ver" | grep GNU > /dev/null; then
27360      if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27361        ld_ix86_gld_32_opt="-melf_i386_sol2"
27362      else
27363        ld_ix86_gld_32_opt="-melf_i386"
27364      fi
27365    fi
27366
27367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27368$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27369if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27370  $as_echo_n "(cached) " >&6
27371else
27372  gcc_cv_as_ix86_tlsgdplt=no
27373  if test x$gcc_cv_as != x; then
27374    $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
27375    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27376  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27377  (eval $ac_try) 2>&5
27378  ac_status=$?
27379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27380  test $ac_status = 0; }; }
27381    then
27382	if test x$gcc_cv_ld != x \
27383	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27384	   gcc_cv_as_ix86_tlsgdplt=yes
27385	 fi
27386	 rm -f conftest
27387    else
27388      echo "configure: failed program was" >&5
27389      cat conftest.s >&5
27390    fi
27391    rm -f conftest.o conftest.s
27392  fi
27393fi
27394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27395$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27396if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27397
27398$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27399
27400fi
27401
27402
27403    conftest_s='
27404	.section .tdata,"aw'$tls_section_flag'",@progbits
27405tls_ld:
27406	.section .text,"ax",@progbits
27407	 call    tls_ld@tlsldmplt'
27408
27409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27410$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27411if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27412  $as_echo_n "(cached) " >&6
27413else
27414  gcc_cv_as_ix86_tlsldmplt=no
27415  if test x$gcc_cv_as != x; then
27416    $as_echo "$conftest_s" > conftest.s
27417    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27418  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27419  (eval $ac_try) 2>&5
27420  ac_status=$?
27421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27422  test $ac_status = 0; }; }
27423    then
27424	if test x$gcc_cv_ld != x \
27425	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27426	   gcc_cv_as_ix86_tlsldmplt=yes
27427	 fi
27428	 rm -f conftest
27429    else
27430      echo "configure: failed program was" >&5
27431      cat conftest.s >&5
27432    fi
27433    rm -f conftest.o conftest.s
27434  fi
27435fi
27436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27437$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27438
27439
27440
27441cat >>confdefs.h <<_ACEOF
27442#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27443_ACEOF
27444
27445
27446    conftest_s='
27447	.section .text,"ax",@progbits
27448        .globl  _start
27449        .type   _start, @function
27450_start:
27451	leal	value@tlsldm(%ebx), %eax
27452	call	___tls_get_addr@plt
27453
27454        .section .tdata,"aw'$tls_section_flag'",@progbits
27455        .type	value, @object
27456value:'
27457    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27458$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27459if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27460  $as_echo_n "(cached) " >&6
27461else
27462  gcc_cv_as_ix86_tlsldm=no
27463  if test x$gcc_cv_as != x; then
27464    $as_echo "$conftest_s" > conftest.s
27465    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27466  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27467  (eval $ac_try) 2>&5
27468  ac_status=$?
27469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27470  test $ac_status = 0; }; }
27471    then
27472	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27473	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27474	   if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27475	      || dis conftest 2>/dev/null | grep nop > /dev/null; then
27476	     gcc_cv_as_ix86_tlsldm=yes
27477	   fi
27478	 fi
27479	 rm -f conftest
27480    else
27481      echo "configure: failed program was" >&5
27482      cat conftest.s >&5
27483    fi
27484    rm -f conftest.o conftest.s
27485  fi
27486fi
27487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27488$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27489
27490
27491
27492cat >>confdefs.h <<_ACEOF
27493#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27494_ACEOF
27495
27496
27497    conftest_s='
27498	.data
27499bar:
27500	.byte 1
27501	.text
27502	.global _start
27503_start:
27504	 cmpl $0, bar@GOT
27505	 jmp *_start@GOT'
27506    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27507$as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27508if ${gcc_cv_as_ix86_got32x+:} false; then :
27509  $as_echo_n "(cached) " >&6
27510else
27511  gcc_cv_as_ix86_got32x=no
27512  if test x$gcc_cv_as != x; then
27513    $as_echo "$conftest_s" > conftest.s
27514    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27515  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27516  (eval $ac_try) 2>&5
27517  ac_status=$?
27518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27519  test $ac_status = 0; }; }
27520    then
27521	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27522	    && test x$gcc_cv_readelf != x \
27523	    && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27524	       | grep R_386_GOT32X > /dev/null 2>&1 \
27525	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27526	   if $gcc_cv_objdump -dw conftest 2>&1 \
27527	      | grep 0xffffff > /dev/null 2>&1; then
27528	     gcc_cv_as_ix86_got32x=no
27529	   else
27530	     gcc_cv_as_ix86_got32x=yes
27531	   fi
27532	 fi
27533	 rm -f conftest
27534    else
27535      echo "configure: failed program was" >&5
27536      cat conftest.s >&5
27537    fi
27538    rm -f conftest.o conftest.s
27539  fi
27540fi
27541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27542$as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27543
27544
27545
27546cat >>confdefs.h <<_ACEOF
27547#define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27548_ACEOF
27549
27550
27551    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27552$as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27553if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27554  $as_echo_n "(cached) " >&6
27555else
27556  gcc_cv_as_ix86_gotoff_in_data=no
27557    if test $in_tree_gas = yes; then
27558    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27559  then gcc_cv_as_ix86_gotoff_in_data=yes
27560fi
27561  elif test x$gcc_cv_as != x; then
27562    $as_echo '	.text
27563.L0:
27564	nop
27565	.data
27566	.long .L0@GOTOFF' > conftest.s
27567    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27568  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27569  (eval $ac_try) 2>&5
27570  ac_status=$?
27571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27572  test $ac_status = 0; }; }
27573    then
27574	gcc_cv_as_ix86_gotoff_in_data=yes
27575    else
27576      echo "configure: failed program was" >&5
27577      cat conftest.s >&5
27578    fi
27579    rm -f conftest.o conftest.s
27580  fi
27581fi
27582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27583$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27584
27585
27586
27587cat >>confdefs.h <<_ACEOF
27588#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27589_ACEOF
27590
27591
27592    conftest_s='
27593	.section .text,"ax",@progbits
27594	.globl  _start
27595	.type   _start, @function
27596_start:
27597	leal	ld@tlsldm(%ecx), %eax
27598	call	*___tls_get_addr@GOT(%ecx)
27599	leal	gd@tlsgd(%ecx), %eax
27600	call	*___tls_get_addr@GOT(%ecx)
27601
27602	.section .tdata,"aw'$tls_section_flag'",@progbits
27603	.type	ld, @object
27604ld:
27605	.byte 0
27606	.globl  gd
27607	.type	gd, @object
27608gd:
27609	.byte 0'
27610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27611$as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27612if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27613  $as_echo_n "(cached) " >&6
27614else
27615  gcc_cv_as_ix86_tls_get_addr_via_got=no
27616  if test x$gcc_cv_as != x; then
27617    $as_echo "$conftest_s" > conftest.s
27618    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27619  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27620  (eval $ac_try) 2>&5
27621  ac_status=$?
27622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27623  test $ac_status = 0; }; }
27624    then
27625	if test x$gcc_cv_ld != x \
27626	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27627	   gcc_cv_as_ix86_tls_get_addr_via_got=yes
27628	 fi
27629	 rm -f conftest
27630    else
27631      echo "configure: failed program was" >&5
27632      cat conftest.s >&5
27633    fi
27634    rm -f conftest.o conftest.s
27635  fi
27636fi
27637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27638$as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27639
27640
27641
27642cat >>confdefs.h <<_ACEOF
27643#define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
27644_ACEOF
27645
27646    ;;
27647
27648  ia64*-*-*)
27649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27650$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27651if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27652  $as_echo_n "(cached) " >&6
27653else
27654  gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27655    if test $in_tree_gas = yes; then
27656    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27657  then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27658fi
27659  elif test x$gcc_cv_as != x; then
27660    $as_echo '	.text
27661	addl r15 = @ltoffx(x#), gp
27662	;;
27663	ld8.mov r16 = [r15], x#
27664' > conftest.s
27665    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27666  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27667  (eval $ac_try) 2>&5
27668  ac_status=$?
27669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27670  test $ac_status = 0; }; }
27671    then
27672	gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27673    else
27674      echo "configure: failed program was" >&5
27675      cat conftest.s >&5
27676    fi
27677    rm -f conftest.o conftest.s
27678  fi
27679fi
27680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27681$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27682if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27683
27684$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27685
27686fi
27687
27688
27689    ;;
27690
27691  powerpc*-*-*)
27692
27693    case $target in
27694      *-*-darwin*)
27695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27696$as_echo_n "checking assembler for .machine directive support... " >&6; }
27697if ${gcc_cv_as_machine_directive+:} false; then :
27698  $as_echo_n "(cached) " >&6
27699else
27700  gcc_cv_as_machine_directive=no
27701  if test x$gcc_cv_as != x; then
27702    $as_echo '	.machine ppc7400' > conftest.s
27703    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27704  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27705  (eval $ac_try) 2>&5
27706  ac_status=$?
27707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27708  test $ac_status = 0; }; }
27709    then
27710	gcc_cv_as_machine_directive=yes
27711    else
27712      echo "configure: failed program was" >&5
27713      cat conftest.s >&5
27714    fi
27715    rm -f conftest.o conftest.s
27716  fi
27717fi
27718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27719$as_echo "$gcc_cv_as_machine_directive" >&6; }
27720
27721
27722	if test x$gcc_cv_as_machine_directive != xyes; then
27723	  echo "*** This target requires an assembler supporting \".machine\"" >&2
27724	  echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27725	  test x$build = x$target && exit 1
27726	fi
27727        ;;
27728    esac
27729
27730    case $target in
27731      *-*-aix*) conftest_s='	.machine "pwr5"
27732	.csect .text[PR]
27733	mfcr 3,128';;
27734      *-*-darwin*) conftest_s='	.text
27735	mfcr r3,128';;
27736      *) conftest_s='	.machine power4
27737	.text
27738	mfcr 3,128';;
27739    esac
27740
27741    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27742$as_echo_n "checking assembler for mfcr field support... " >&6; }
27743if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27744  $as_echo_n "(cached) " >&6
27745else
27746  gcc_cv_as_powerpc_mfcrf=no
27747    if test $in_tree_gas = yes; then
27748    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27749  then gcc_cv_as_powerpc_mfcrf=yes
27750fi
27751  elif test x$gcc_cv_as != x; then
27752    $as_echo "$conftest_s" > conftest.s
27753    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27754  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27755  (eval $ac_try) 2>&5
27756  ac_status=$?
27757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27758  test $ac_status = 0; }; }
27759    then
27760	gcc_cv_as_powerpc_mfcrf=yes
27761    else
27762      echo "configure: failed program was" >&5
27763      cat conftest.s >&5
27764    fi
27765    rm -f conftest.o conftest.s
27766  fi
27767fi
27768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27769$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27770if test $gcc_cv_as_powerpc_mfcrf = yes; then
27771
27772$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27773
27774fi
27775
27776
27777    case $target in
27778      *-*-aix*) conftest_s='	.csect .text[PR]
27779LCF..0:
27780	addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27781      *-*-darwin*)
27782	conftest_s='	.text
27783LCF0:
27784	addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27785      *) conftest_s='	.text
27786.LCF0:
27787	addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27788    esac
27789
27790    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27791$as_echo_n "checking assembler for rel16 relocs... " >&6; }
27792if ${gcc_cv_as_powerpc_rel16+:} false; then :
27793  $as_echo_n "(cached) " >&6
27794else
27795  gcc_cv_as_powerpc_rel16=no
27796    if test $in_tree_gas = yes; then
27797    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27798  then gcc_cv_as_powerpc_rel16=yes
27799fi
27800  elif test x$gcc_cv_as != x; then
27801    $as_echo "$conftest_s" > conftest.s
27802    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27803  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27804  (eval $ac_try) 2>&5
27805  ac_status=$?
27806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27807  test $ac_status = 0; }; }
27808    then
27809	gcc_cv_as_powerpc_rel16=yes
27810    else
27811      echo "configure: failed program was" >&5
27812      cat conftest.s >&5
27813    fi
27814    rm -f conftest.o conftest.s
27815  fi
27816fi
27817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27818$as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27819if test $gcc_cv_as_powerpc_rel16 = yes; then
27820
27821$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27822
27823fi
27824
27825
27826    case $target in
27827      *-*-aix*) conftest_s='	.machine "pwr7"
27828	.csect .text[PR]
27829	lxvd2x 1,2,3';;
27830      *) conftest_s='	.machine power7
27831	.text
27832	lxvd2x 1,2,3';;
27833    esac
27834
27835    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27836$as_echo_n "checking assembler for vector-scalar support... " >&6; }
27837if ${gcc_cv_as_powerpc_vsx+:} false; then :
27838  $as_echo_n "(cached) " >&6
27839else
27840  gcc_cv_as_powerpc_vsx=no
27841    if test $in_tree_gas = yes; then
27842    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27843  then gcc_cv_as_powerpc_vsx=yes
27844fi
27845  elif test x$gcc_cv_as != x; then
27846    $as_echo "$conftest_s" > conftest.s
27847    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27848  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27849  (eval $ac_try) 2>&5
27850  ac_status=$?
27851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27852  test $ac_status = 0; }; }
27853    then
27854	gcc_cv_as_powerpc_vsx=yes
27855    else
27856      echo "configure: failed program was" >&5
27857      cat conftest.s >&5
27858    fi
27859    rm -f conftest.o conftest.s
27860  fi
27861fi
27862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27863$as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27864if test $gcc_cv_as_powerpc_vsx = yes; then
27865
27866$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27867
27868fi
27869
27870
27871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27872$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27873if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27874  $as_echo_n "(cached) " >&6
27875else
27876  gcc_cv_as_powerpc_gnu_attribute=no
27877    if test $in_tree_gas = yes; then
27878    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27879  then gcc_cv_as_powerpc_gnu_attribute=yes
27880fi
27881  elif test x$gcc_cv_as != x; then
27882    $as_echo '.gnu_attribute 4,1' > conftest.s
27883    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27884  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27885  (eval $ac_try) 2>&5
27886  ac_status=$?
27887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27888  test $ac_status = 0; }; }
27889    then
27890	gcc_cv_as_powerpc_gnu_attribute=yes
27891    else
27892      echo "configure: failed program was" >&5
27893      cat conftest.s >&5
27894    fi
27895    rm -f conftest.o conftest.s
27896  fi
27897fi
27898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27899$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27900if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27901
27902$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27903
27904fi
27905
27906
27907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27908$as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27909if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27910  $as_echo_n "(cached) " >&6
27911else
27912  gcc_cv_as_powerpc_entry_markers=no
27913    if test $in_tree_gas = yes; then
27914    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27915  then gcc_cv_as_powerpc_entry_markers=yes
27916fi
27917  elif test x$gcc_cv_as != x; then
27918    $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27919    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27920  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27921  (eval $ac_try) 2>&5
27922  ac_status=$?
27923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27924  test $ac_status = 0; }; }
27925    then
27926	gcc_cv_as_powerpc_entry_markers=yes
27927    else
27928      echo "configure: failed program was" >&5
27929      cat conftest.s >&5
27930    fi
27931    rm -f conftest.o conftest.s
27932  fi
27933fi
27934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27935$as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27936if test $gcc_cv_as_powerpc_entry_markers = yes; then
27937
27938$as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27939
27940fi
27941
27942
27943    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27944$as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27945if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27946  $as_echo_n "(cached) " >&6
27947else
27948  gcc_cv_as_powerpc_pltseq_markers=no
27949    if test $in_tree_gas = yes; then
27950    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27951  then gcc_cv_as_powerpc_pltseq_markers=yes
27952fi
27953  elif test x$gcc_cv_as != x; then
27954    $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27955    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27956  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27957  (eval $ac_try) 2>&5
27958  ac_status=$?
27959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27960  test $ac_status = 0; }; }
27961    then
27962	gcc_cv_as_powerpc_pltseq_markers=yes
27963    else
27964      echo "configure: failed program was" >&5
27965      cat conftest.s >&5
27966    fi
27967    rm -f conftest.o conftest.s
27968  fi
27969fi
27970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27971$as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27972if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27973
27974$as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27975
27976fi
27977
27978
27979    case $target in
27980      *-*-aix*)
27981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27982$as_echo_n "checking assembler for AIX .ref support... " >&6; }
27983if ${gcc_cv_as_aix_ref+:} false; then :
27984  $as_echo_n "(cached) " >&6
27985else
27986  gcc_cv_as_aix_ref=no
27987    if test $in_tree_gas = yes; then
27988    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27989  then gcc_cv_as_aix_ref=yes
27990fi
27991  elif test x$gcc_cv_as != x; then
27992    $as_echo '	.csect stuff[rw]
27993	     stuff:
27994		.long 1
27995		.extern sym
27996		.ref sym
27997	  ' > conftest.s
27998    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27999  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28000  (eval $ac_try) 2>&5
28001  ac_status=$?
28002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28003  test $ac_status = 0; }; }
28004    then
28005	gcc_cv_as_aix_ref=yes
28006    else
28007      echo "configure: failed program was" >&5
28008      cat conftest.s >&5
28009    fi
28010    rm -f conftest.o conftest.s
28011  fi
28012fi
28013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28014$as_echo "$gcc_cv_as_aix_ref" >&6; }
28015if test $gcc_cv_as_aix_ref = yes; then
28016
28017$as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28018
28019fi
28020
28021
28022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28023$as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28024if ${gcc_cv_as_aix_dwloc+:} false; then :
28025  $as_echo_n "(cached) " >&6
28026else
28027  gcc_cv_as_aix_dwloc=no
28028    if test $in_tree_gas = yes; then
28029    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
28030  then gcc_cv_as_aix_dwloc=yes
28031fi
28032  elif test x$gcc_cv_as != x; then
28033    $as_echo '	.dwsect 0xA0000
28034	Lframe..0:
28035		.vbyte 4,Lframe..0
28036	  ' > conftest.s
28037    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28038  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28039  (eval $ac_try) 2>&5
28040  ac_status=$?
28041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28042  test $ac_status = 0; }; }
28043    then
28044	gcc_cv_as_aix_dwloc=yes
28045    else
28046      echo "configure: failed program was" >&5
28047      cat conftest.s >&5
28048    fi
28049    rm -f conftest.o conftest.s
28050  fi
28051fi
28052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28053$as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28054if test $gcc_cv_as_aix_dwloc = yes; then
28055
28056$as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28057
28058fi
28059
28060	;;
28061    esac
28062    ;;
28063
28064  mips*-*-*)
28065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28066$as_echo_n "checking assembler for explicit relocation support... " >&6; }
28067if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28068  $as_echo_n "(cached) " >&6
28069else
28070  gcc_cv_as_mips_explicit_relocs=no
28071    if test $in_tree_gas = yes; then
28072    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
28073  then gcc_cv_as_mips_explicit_relocs=yes
28074fi
28075  elif test x$gcc_cv_as != x; then
28076    $as_echo '	lw $4,%gp_rel(foo)($4)' > conftest.s
28077    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28078  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28079  (eval $ac_try) 2>&5
28080  ac_status=$?
28081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28082  test $ac_status = 0; }; }
28083    then
28084	gcc_cv_as_mips_explicit_relocs=yes
28085    else
28086      echo "configure: failed program was" >&5
28087      cat conftest.s >&5
28088    fi
28089    rm -f conftest.o conftest.s
28090  fi
28091fi
28092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28093$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28094if test $gcc_cv_as_mips_explicit_relocs = yes; then
28095  if test x$target_cpu_default = x
28096       then target_cpu_default=MASK_EXPLICIT_RELOCS
28097       else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28098       fi
28099fi
28100
28101
28102    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28103$as_echo_n "checking assembler for -mno-shared support... " >&6; }
28104if ${gcc_cv_as_mips_no_shared+:} false; then :
28105  $as_echo_n "(cached) " >&6
28106else
28107  gcc_cv_as_mips_no_shared=no
28108    if test $in_tree_gas = yes; then
28109    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
28110  then gcc_cv_as_mips_no_shared=yes
28111fi
28112  elif test x$gcc_cv_as != x; then
28113    $as_echo 'nop' > conftest.s
28114    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28115  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28116  (eval $ac_try) 2>&5
28117  ac_status=$?
28118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28119  test $ac_status = 0; }; }
28120    then
28121	gcc_cv_as_mips_no_shared=yes
28122    else
28123      echo "configure: failed program was" >&5
28124      cat conftest.s >&5
28125    fi
28126    rm -f conftest.o conftest.s
28127  fi
28128fi
28129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28130$as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28131if test $gcc_cv_as_mips_no_shared = yes; then
28132
28133$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28134
28135fi
28136
28137
28138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28139$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28140if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28141  $as_echo_n "(cached) " >&6
28142else
28143  gcc_cv_as_mips_gnu_attribute=no
28144    if test $in_tree_gas = yes; then
28145    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28146  then gcc_cv_as_mips_gnu_attribute=yes
28147fi
28148  elif test x$gcc_cv_as != x; then
28149    $as_echo '.gnu_attribute 4,1' > conftest.s
28150    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28151  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28152  (eval $ac_try) 2>&5
28153  ac_status=$?
28154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28155  test $ac_status = 0; }; }
28156    then
28157	gcc_cv_as_mips_gnu_attribute=yes
28158    else
28159      echo "configure: failed program was" >&5
28160      cat conftest.s >&5
28161    fi
28162    rm -f conftest.o conftest.s
28163  fi
28164fi
28165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28166$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28167if test $gcc_cv_as_mips_gnu_attribute = yes; then
28168
28169$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28170
28171fi
28172
28173
28174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28175$as_echo_n "checking assembler for .module support... " >&6; }
28176if ${gcc_cv_as_mips_dot_module+:} false; then :
28177  $as_echo_n "(cached) " >&6
28178else
28179  gcc_cv_as_mips_dot_module=no
28180  if test x$gcc_cv_as != x; then
28181    $as_echo '.module mips2
28182       .module fp=xx' > conftest.s
28183    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28184  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28185  (eval $ac_try) 2>&5
28186  ac_status=$?
28187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28188  test $ac_status = 0; }; }
28189    then
28190	gcc_cv_as_mips_dot_module=yes
28191    else
28192      echo "configure: failed program was" >&5
28193      cat conftest.s >&5
28194    fi
28195    rm -f conftest.o conftest.s
28196  fi
28197fi
28198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28199$as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28200if test $gcc_cv_as_mips_dot_module = yes; then
28201
28202$as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28203
28204fi
28205
28206    if test x$gcc_cv_as_mips_dot_module = xno \
28207       && test x$with_fp_32 != x; then
28208      as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28209    fi
28210
28211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28212$as_echo_n "checking assembler for .micromips support... " >&6; }
28213if ${gcc_cv_as_micromips_support+:} false; then :
28214  $as_echo_n "(cached) " >&6
28215else
28216  gcc_cv_as_micromips_support=no
28217  if test x$gcc_cv_as != x; then
28218    $as_echo '.set micromips' > conftest.s
28219    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28220  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28221  (eval $ac_try) 2>&5
28222  ac_status=$?
28223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28224  test $ac_status = 0; }; }
28225    then
28226	gcc_cv_as_micromips_support=yes
28227    else
28228      echo "configure: failed program was" >&5
28229      cat conftest.s >&5
28230    fi
28231    rm -f conftest.o conftest.s
28232  fi
28233fi
28234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28235$as_echo "$gcc_cv_as_micromips_support" >&6; }
28236if test $gcc_cv_as_micromips_support = yes; then
28237
28238$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28239
28240fi
28241
28242
28243    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28244$as_echo_n "checking assembler for .dtprelword support... " >&6; }
28245if ${gcc_cv_as_mips_dtprelword+:} false; then :
28246  $as_echo_n "(cached) " >&6
28247else
28248  gcc_cv_as_mips_dtprelword=no
28249    if test $in_tree_gas = yes; then
28250    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28251  then gcc_cv_as_mips_dtprelword=yes
28252fi
28253  elif test x$gcc_cv_as != x; then
28254    $as_echo '.section .tdata,"awT",@progbits
28255x:
28256	.word 2
28257	.text
28258	.dtprelword x+0x8000' > conftest.s
28259    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28260  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28261  (eval $ac_try) 2>&5
28262  ac_status=$?
28263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28264  test $ac_status = 0; }; }
28265    then
28266	gcc_cv_as_mips_dtprelword=yes
28267    else
28268      echo "configure: failed program was" >&5
28269      cat conftest.s >&5
28270    fi
28271    rm -f conftest.o conftest.s
28272  fi
28273fi
28274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28275$as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28276if test $gcc_cv_as_mips_dtprelword = yes; then
28277
28278$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28279
28280fi
28281
28282
28283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28284$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28285if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28286  $as_echo_n "(cached) " >&6
28287else
28288  gcc_cv_as_mips_dspr1_mult=no
28289  if test x$gcc_cv_as != x; then
28290    $as_echo '	.set	mips32r2
28291	.set	nodspr2
28292	.set	dsp
28293	madd	$ac3,$4,$5
28294	maddu	$ac3,$4,$5
28295	msub	$ac3,$4,$5
28296	msubu	$ac3,$4,$5
28297	mult	$ac3,$4,$5
28298	multu	$ac3,$4,$5' > conftest.s
28299    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28300  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28301  (eval $ac_try) 2>&5
28302  ac_status=$?
28303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28304  test $ac_status = 0; }; }
28305    then
28306	gcc_cv_as_mips_dspr1_mult=yes
28307    else
28308      echo "configure: failed program was" >&5
28309      cat conftest.s >&5
28310    fi
28311    rm -f conftest.o conftest.s
28312  fi
28313fi
28314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28315$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28316if test $gcc_cv_as_mips_dspr1_mult = yes; then
28317
28318$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28319
28320fi
28321
28322
28323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28324$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28325    gcc_cv_as_ld_jalr_reloc=no
28326    if test $gcc_cv_as_mips_explicit_relocs = yes; then
28327      if test $in_tree_ld = yes ; then
28328        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 \
28329           && test $in_tree_ld_is_elf = yes; then
28330          gcc_cv_as_ld_jalr_reloc=yes
28331        fi
28332      elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28333        echo '	.ent x' > conftest.s
28334        echo 'x:	lw $2,%got_disp(y)($3)' >> conftest.s
28335        echo '	lw $25,%call16(y)($28)' >> conftest.s
28336        echo '	.reloc	1f,R_MIPS_JALR,y' >> conftest.s
28337        echo '1:	jalr $25' >> conftest.s
28338        echo '	.reloc	1f,R_MIPS_JALR,x' >> conftest.s
28339        echo '1:	jalr $25' >> conftest.s
28340        echo '	.end x' >> conftest.s
28341        if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28342           && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28343	  if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28344	     && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28345            gcc_cv_as_ld_jalr_reloc=yes
28346	  fi
28347        fi
28348        rm -f conftest.*
28349      fi
28350    fi
28351    if test $gcc_cv_as_ld_jalr_reloc = yes; then
28352      if test x$target_cpu_default = x; then
28353        target_cpu_default=MASK_RELAX_PIC_CALLS
28354      else
28355        target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28356      fi
28357    fi
28358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28359$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28360
28361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28362$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28363if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28364  $as_echo_n "(cached) " >&6
28365else
28366  gcc_cv_ld_mips_personality_relaxation=no
28367       if test $in_tree_ld = yes ; then
28368	 if test "$gcc_cv_gld_major_version" -eq 2 \
28369		 -a "$gcc_cv_gld_minor_version" -ge 21 \
28370		 -o "$gcc_cv_gld_major_version" -gt 2; then
28371	   gcc_cv_ld_mips_personality_relaxation=yes
28372	 fi
28373       elif test x$gcc_cv_as != x \
28374       	    	 -a x$gcc_cv_ld != x \
28375		 -a x$gcc_cv_readelf != x ; then
28376	 cat > conftest.s <<EOF
28377	.cfi_startproc
28378	.cfi_personality 0x80,indirect_ptr
28379	.ent test
28380test:
28381	nop
28382	.end test
28383	.cfi_endproc
28384
28385	.section .data,"aw",@progbits
28386indirect_ptr:
28387	.dc.a personality
28388EOF
28389	 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28390	    && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28391	   if $gcc_cv_readelf -d conftest 2>&1 \
28392	      | grep TEXTREL > /dev/null 2>&1; then
28393	     :
28394	   elif $gcc_cv_readelf --relocs conftest 2>&1 \
28395	        | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28396	     :
28397	   else
28398	     gcc_cv_ld_mips_personality_relaxation=yes
28399	   fi
28400	 fi
28401       fi
28402       rm -f conftest.s conftest.o conftest
28403fi
28404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28405$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28406    if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28407
28408$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28409
28410    fi
28411
28412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28413$as_echo_n "checking assembler for -mnan= support... " >&6; }
28414if ${gcc_cv_as_mips_nan+:} false; then :
28415  $as_echo_n "(cached) " >&6
28416else
28417  gcc_cv_as_mips_nan=no
28418  if test x$gcc_cv_as != x; then
28419    $as_echo '' > conftest.s
28420    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28421  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28422  (eval $ac_try) 2>&5
28423  ac_status=$?
28424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28425  test $ac_status = 0; }; }
28426    then
28427	gcc_cv_as_mips_nan=yes
28428    else
28429      echo "configure: failed program was" >&5
28430      cat conftest.s >&5
28431    fi
28432    rm -f conftest.o conftest.s
28433  fi
28434fi
28435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28436$as_echo "$gcc_cv_as_mips_nan" >&6; }
28437if test $gcc_cv_as_mips_nan = yes; then
28438
28439$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28440
28441fi
28442
28443    if test x$gcc_cv_as_mips_nan = xno \
28444       && test x$with_nan != x; then
28445      as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28446    fi
28447    ;;
28448    msp430-*-*)
28449    # Earlier GAS versions generically support .gnu_attribute, but the
28450    # msp430 assembler will not do anything with it.
28451    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28452$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28453if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28454  $as_echo_n "(cached) " >&6
28455else
28456  gcc_cv_as_msp430_gnu_attribute=no
28457    if test $in_tree_gas = yes; then
28458    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28459  then gcc_cv_as_msp430_gnu_attribute=yes
28460fi
28461  elif test x$gcc_cv_as != x; then
28462    $as_echo '.gnu_attribute 4,1' > conftest.s
28463    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28464  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28465  (eval $ac_try) 2>&5
28466  ac_status=$?
28467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28468  test $ac_status = 0; }; }
28469    then
28470	gcc_cv_as_msp430_gnu_attribute=yes
28471    else
28472      echo "configure: failed program was" >&5
28473      cat conftest.s >&5
28474    fi
28475    rm -f conftest.o conftest.s
28476  fi
28477fi
28478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28479$as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28480if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28481
28482$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28483
28484fi
28485
28486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28487$as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28488if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28489  $as_echo_n "(cached) " >&6
28490else
28491  gcc_cv_as_msp430_mspabi_attribute=no
28492    if test $in_tree_gas = yes; then
28493    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28494  then gcc_cv_as_msp430_mspabi_attribute=yes
28495fi
28496  elif test x$gcc_cv_as != x; then
28497    $as_echo '.mspabi_attribute 4,2' > conftest.s
28498    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28499  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28500  (eval $ac_try) 2>&5
28501  ac_status=$?
28502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28503  test $ac_status = 0; }; }
28504    then
28505	gcc_cv_as_msp430_mspabi_attribute=yes
28506    else
28507      echo "configure: failed program was" >&5
28508      cat conftest.s >&5
28509    fi
28510    rm -f conftest.o conftest.s
28511  fi
28512fi
28513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28514$as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28515if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28516
28517$as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28518
28519fi
28520
28521    if test x$enable_newlib_nano_formatted_io = xyes; then
28522
28523$as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28524
28525      fi
28526    ;;
28527    nios2-*-*)
28528    # Versions 2.33 and earlier lacked support for the %gotoff relocation
28529    # syntax that is documented in the ABI specification.
28530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28531$as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28532if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28533  $as_echo_n "(cached) " >&6
28534else
28535  gcc_cv_as_nios2_gotoff_relocation=no
28536  if test x$gcc_cv_as != x; then
28537    $as_echo '	.extern foo
28538	.data
28539	.long %gotoff(foo)' > conftest.s
28540    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28541  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28542  (eval $ac_try) 2>&5
28543  ac_status=$?
28544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28545  test $ac_status = 0; }; }
28546    then
28547	gcc_cv_as_nios2_gotoff_relocation=yes
28548    else
28549      echo "configure: failed program was" >&5
28550      cat conftest.s >&5
28551    fi
28552    rm -f conftest.o conftest.s
28553  fi
28554fi
28555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28556$as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28557if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28558
28559$as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28560
28561fi
28562
28563    ;;
28564    riscv*-*-*)
28565    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28566$as_echo_n "checking assembler for .attribute support... " >&6; }
28567if ${gcc_cv_as_riscv_attribute+:} false; then :
28568  $as_echo_n "(cached) " >&6
28569else
28570  gcc_cv_as_riscv_attribute=no
28571    if test $in_tree_gas = yes; then
28572    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28573  then gcc_cv_as_riscv_attribute=yes
28574fi
28575  elif test x$gcc_cv_as != x; then
28576    $as_echo '.attribute stack_align,4' > conftest.s
28577    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28578  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28579  (eval $ac_try) 2>&5
28580  ac_status=$?
28581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28582  test $ac_status = 0; }; }
28583    then
28584	gcc_cv_as_riscv_attribute=yes
28585    else
28586      echo "configure: failed program was" >&5
28587      cat conftest.s >&5
28588    fi
28589    rm -f conftest.o conftest.s
28590  fi
28591fi
28592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28593$as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28594if test $gcc_cv_as_riscv_attribute = yes; then
28595
28596$as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28597
28598fi
28599
28600    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28601$as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28602if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28603  $as_echo_n "(cached) " >&6
28604else
28605  gcc_cv_as_riscv_isa_spec=no
28606  if test x$gcc_cv_as != x; then
28607    $as_echo '' > conftest.s
28608    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28609  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28610  (eval $ac_try) 2>&5
28611  ac_status=$?
28612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28613  test $ac_status = 0; }; }
28614    then
28615	gcc_cv_as_riscv_isa_spec=yes
28616    else
28617      echo "configure: failed program was" >&5
28618      cat conftest.s >&5
28619    fi
28620    rm -f conftest.o conftest.s
28621  fi
28622fi
28623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28624$as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28625if test $gcc_cv_as_riscv_isa_spec = yes; then
28626
28627$as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28628
28629fi
28630
28631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28632$as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28633if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28634  $as_echo_n "(cached) " >&6
28635else
28636  gcc_cv_as_riscv_march_zifencei=no
28637  if test x$gcc_cv_as != x; then
28638    $as_echo '' > conftest.s
28639    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei -o conftest.o conftest.s >&5'
28640  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28641  (eval $ac_try) 2>&5
28642  ac_status=$?
28643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28644  test $ac_status = 0; }; }
28645    then
28646	gcc_cv_as_riscv_march_zifencei=yes
28647    else
28648      echo "configure: failed program was" >&5
28649      cat conftest.s >&5
28650    fi
28651    rm -f conftest.o conftest.s
28652  fi
28653fi
28654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28655$as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28656if test $gcc_cv_as_riscv_march_zifencei = yes; then
28657
28658$as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28659
28660fi
28661
28662    ;;
28663    s390*-*-*)
28664    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28665$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28666if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28667  $as_echo_n "(cached) " >&6
28668else
28669  gcc_cv_as_s390_gnu_attribute=no
28670    if test $in_tree_gas = yes; then
28671    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28672  then gcc_cv_as_s390_gnu_attribute=yes
28673fi
28674  elif test x$gcc_cv_as != x; then
28675    $as_echo '.gnu_attribute 8,1' > conftest.s
28676    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28677  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28678  (eval $ac_try) 2>&5
28679  ac_status=$?
28680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28681  test $ac_status = 0; }; }
28682    then
28683	gcc_cv_as_s390_gnu_attribute=yes
28684    else
28685      echo "configure: failed program was" >&5
28686      cat conftest.s >&5
28687    fi
28688    rm -f conftest.o conftest.s
28689  fi
28690fi
28691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28692$as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28693if test $gcc_cv_as_s390_gnu_attribute = yes; then
28694
28695$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28696
28697fi
28698
28699    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28700$as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28701if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28702  $as_echo_n "(cached) " >&6
28703else
28704  gcc_cv_as_s390_machine_machinemode=no
28705    if test $in_tree_gas = yes; then
28706    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28707  then gcc_cv_as_s390_machine_machinemode=yes
28708fi
28709  elif test x$gcc_cv_as != x; then
28710    $as_echo '	.machinemode push
28711	.machinemode pop
28712	.machine push
28713	.machine pop' > conftest.s
28714    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28715  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28716  (eval $ac_try) 2>&5
28717  ac_status=$?
28718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28719  test $ac_status = 0; }; }
28720    then
28721	gcc_cv_as_s390_machine_machinemode=yes
28722    else
28723      echo "configure: failed program was" >&5
28724      cat conftest.s >&5
28725    fi
28726    rm -f conftest.o conftest.s
28727  fi
28728fi
28729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28730$as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28731if test $gcc_cv_as_s390_machine_machinemode = yes; then
28732
28733$as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28734
28735fi
28736
28737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28738$as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28739if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28740  $as_echo_n "(cached) " >&6
28741else
28742  gcc_cv_as_s390_architecture_modifiers=no
28743    if test $in_tree_gas = yes; then
28744    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28745  then gcc_cv_as_s390_architecture_modifiers=yes
28746fi
28747  elif test x$gcc_cv_as != x; then
28748    $as_echo '	.machine z13+vx ' > conftest.s
28749    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28750  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28751  (eval $ac_try) 2>&5
28752  ac_status=$?
28753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28754  test $ac_status = 0; }; }
28755    then
28756	gcc_cv_as_s390_architecture_modifiers=yes
28757    else
28758      echo "configure: failed program was" >&5
28759      cat conftest.s >&5
28760    fi
28761    rm -f conftest.o conftest.s
28762  fi
28763fi
28764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28765$as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28766if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28767
28768$as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28769
28770fi
28771
28772    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28773$as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28774if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28775  $as_echo_n "(cached) " >&6
28776else
28777  gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28778    if test $in_tree_gas = yes; then
28779    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28780  then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28781fi
28782  elif test x$gcc_cv_as != x; then
28783    $as_echo '	vl %v24,0(%r15),3 ' > conftest.s
28784    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28785  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28786  (eval $ac_try) 2>&5
28787  ac_status=$?
28788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28789  test $ac_status = 0; }; }
28790    then
28791	gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28792    else
28793      echo "configure: failed program was" >&5
28794      cat conftest.s >&5
28795    fi
28796    rm -f conftest.o conftest.s
28797  fi
28798fi
28799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28800$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28801if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28802
28803$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28804
28805fi
28806
28807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28808$as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28809if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28810  $as_echo_n "(cached) " >&6
28811else
28812  gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28813  if test x$gcc_cv_as != x; then
28814    $as_echo '	vl %v24,0(%r15),3 ' > conftest.s
28815    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28816  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28817  (eval $ac_try) 2>&5
28818  ac_status=$?
28819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28820  test $ac_status = 0; }; }
28821    then
28822	gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28823    else
28824      echo "configure: failed program was" >&5
28825      cat conftest.s >&5
28826    fi
28827    rm -f conftest.o conftest.s
28828  fi
28829fi
28830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28831$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28832if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28833
28834$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28835
28836fi
28837
28838
28839    ;;
28840esac
28841
28842# Mips and HP-UX need the GNU assembler.
28843# Linux on IA64 might be able to use the Intel assembler.
28844
28845case "$target" in
28846  mips*-*-* | *-*-hpux* )
28847    if test x$gas_flag = xyes \
28848       || test x"$host" != x"$build" \
28849       || test ! -x "$gcc_cv_as" \
28850       || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28851      :
28852    else
28853      echo "*** This configuration requires the GNU assembler" >&2
28854      exit 1
28855    fi
28856    ;;
28857esac
28858
28859# ??? Not all targets support dwarf2 debug_line, even within a version
28860# of gas.  Moreover, we need to emit a valid instruction to trigger any
28861# info to the output file.  So, as supported targets are added to gas 2.11,
28862# add some instruction here to (also) show we expect this might work.
28863# ??? Once 2.11 is released, probably need to add first known working
28864# version to the per-target configury.
28865case "$cpu_type" in
28866  aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28867  | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28868  | tilegx | tilepro | visium | xstormy16 | xtensa)
28869    insn="nop"
28870    ;;
28871  ia64 | s390)
28872    insn="nop 0"
28873    ;;
28874  mmix)
28875    insn="swym 0"
28876    ;;
28877esac
28878if test x"$insn" != x; then
28879 conftest_s="\
28880	.file 1 \"conftest.s\"
28881	.loc 1 3 0
28882	$insn"
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28884$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28885if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28886  $as_echo_n "(cached) " >&6
28887else
28888  gcc_cv_as_dwarf2_debug_line=no
28889    if test $in_tree_gas = yes; then
28890    if test $in_tree_gas_is_elf = yes \
28891  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28892  then gcc_cv_as_dwarf2_debug_line=yes
28893fi
28894  elif test x$gcc_cv_as != x; then
28895    $as_echo "$conftest_s" > conftest.s
28896    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28897  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28898  (eval $ac_try) 2>&5
28899  ac_status=$?
28900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28901  test $ac_status = 0; }; }
28902    then
28903	if test x$gcc_cv_objdump != x \
28904   && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28905      | grep debug_line > /dev/null 2>&1; then
28906     gcc_cv_as_dwarf2_debug_line=yes
28907   elif test x$gcc_cv_otool != x \
28908   && $gcc_cv_otool -l conftest.o 2> /dev/null \
28909      | grep debug_line > /dev/null 2>&1; then
28910     gcc_cv_as_dwarf2_debug_line=yes
28911   fi
28912    else
28913      echo "configure: failed program was" >&5
28914      cat conftest.s >&5
28915    fi
28916    rm -f conftest.o conftest.s
28917  fi
28918fi
28919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28920$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28921
28922
28923
28924# The .debug_line file table must be in the exact order that
28925# we specified the files, since these indices are also used
28926# by DW_AT_decl_file.  Approximate this test by testing if
28927# the assembler bitches if the same index is assigned twice.
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28929$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28930if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28931  $as_echo_n "(cached) " >&6
28932else
28933  gcc_cv_as_dwarf2_file_buggy=no
28934  if test x$gcc_cv_as != x; then
28935    $as_echo '	.file 1 "foo.s"
28936	.file 1 "bar.s"' > conftest.s
28937    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28938  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28939  (eval $ac_try) 2>&5
28940  ac_status=$?
28941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28942  test $ac_status = 0; }; }
28943    then
28944	gcc_cv_as_dwarf2_file_buggy=yes
28945    else
28946      echo "configure: failed program was" >&5
28947      cat conftest.s >&5
28948    fi
28949    rm -f conftest.o conftest.s
28950  fi
28951fi
28952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28953$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28954
28955
28956
28957 if test $gcc_cv_as_dwarf2_debug_line = yes \
28958 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28959
28960$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28961
28962
28963    if test $gcc_cv_as_leb128 = yes; then
28964	conftest_s="\
28965	.file 1 \"conftest.s\"
28966	.loc 1 3 0 view .LVU1
28967	$insn
28968	.data
28969	.uleb128 .LVU1
28970	.uleb128 .LVU1
28971"
28972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28973$as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28974if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28975  $as_echo_n "(cached) " >&6
28976else
28977  gcc_cv_as_dwarf2_debug_view=no
28978    if test $in_tree_gas = yes; then
28979    if test $in_tree_gas_is_elf = yes \
28980  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28981  then gcc_cv_as_dwarf2_debug_view=yes
28982fi
28983  elif test x$gcc_cv_as != x; then
28984    $as_echo "$conftest_s" > conftest.s
28985    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28986  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28987  (eval $ac_try) 2>&5
28988  ac_status=$?
28989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28990  test $ac_status = 0; }; }
28991    then
28992	gcc_cv_as_dwarf2_debug_view=yes
28993    else
28994      echo "configure: failed program was" >&5
28995      cat conftest.s >&5
28996    fi
28997    rm -f conftest.o conftest.s
28998  fi
28999fi
29000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29001$as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29002if test $gcc_cv_as_dwarf2_debug_view = yes; then
29003
29004$as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29005
29006fi
29007
29008    fi
29009 fi
29010
29011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29012$as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29013if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29014  $as_echo_n "(cached) " >&6
29015else
29016  gcc_cv_as_gdwarf2_flag=no
29017    if test $in_tree_gas = yes; then
29018    if test $in_tree_gas_is_elf = yes \
29019  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29020  then gcc_cv_as_gdwarf2_flag=yes
29021fi
29022  elif test x$gcc_cv_as != x; then
29023    $as_echo "$insn" > conftest.s
29024    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29025  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29026  (eval $ac_try) 2>&5
29027  ac_status=$?
29028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29029  test $ac_status = 0; }; }
29030    then
29031	gcc_cv_as_gdwarf2_flag=yes
29032    else
29033      echo "configure: failed program was" >&5
29034      cat conftest.s >&5
29035    fi
29036    rm -f conftest.o conftest.s
29037  fi
29038fi
29039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29040$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29041if test $gcc_cv_as_gdwarf2_flag = yes; then
29042
29043$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29044
29045fi
29046
29047
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29049$as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29050if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29051  $as_echo_n "(cached) " >&6
29052else
29053  gcc_cv_as_gdwarf_5_flag=no
29054    if test $in_tree_gas = yes; then
29055    if test $in_tree_gas_is_elf = yes \
29056  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29057  then gcc_cv_as_gdwarf_5_flag=yes
29058fi
29059  elif test x$gcc_cv_as != x; then
29060    $as_echo "$insn" > conftest.s
29061    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29062  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29063  (eval $ac_try) 2>&5
29064  ac_status=$?
29065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29066  test $ac_status = 0; }; }
29067    then
29068	if test x$gcc_cv_objdump != x \
29069      && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29070	 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29071     gcc_cv_as_gdwarf_5_flag=yes;
29072   fi
29073    else
29074      echo "configure: failed program was" >&5
29075      cat conftest.s >&5
29076    fi
29077    rm -f conftest.o conftest.s
29078  fi
29079fi
29080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29081$as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29082if test $gcc_cv_as_gdwarf_5_flag = yes; then
29083
29084$as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29085
29086fi
29087
29088
29089 case $target_os in
29090   win32 | pe | cygwin* | mingw32*)
29091     section_flags=\"dr\"
29092     function_type=".def foo; .scl 2; .type 32; .endef"
29093     function_size="";;
29094   *)
29095     section_flags=\"\",%progbits
29096     function_type=".type foo, %function"
29097     function_size=".size foo, .-foo";;
29098 esac
29099 dwarf4_debug_info_size=0x46
29100 dwarf4_high_pc_form=7
29101 dwarf4_debug_aranges_size=0x2c
29102 dwarf4_line_sz=9
29103 for dwarf4_addr_size in 8 4; do
29104   conftest_s="\
29105	.file	\"a.c\"
29106	.text
29107.Ltext0:
29108	.p2align 4
29109	.globl	foo
29110	$function_type
29111foo:
29112.LFB0:
29113.LM1:
29114	$insn
29115.LM2:
29116.LFE0:
29117	$function_size
29118.Letext0:
29119	.section	.debug_info,$section_flags
29120.Ldebug_info0:
29121	.4byte	$dwarf4_debug_info_size
29122	.2byte	0x4
29123	.4byte	.Ldebug_abbrev0
29124	.byte	0x$dwarf4_addr_size
29125	.byte	0x1
29126	.ascii \"GNU C17\\0\"
29127	.byte	0xc
29128	.ascii \"a.c\\0\"
29129	.ascii \"/\\0\"
29130	.${dwarf4_addr_size}byte	.Ltext0
29131	.${dwarf4_addr_size}byte	.Letext0-.Ltext0
29132	.4byte	.Ldebug_line0
29133	.byte	0x2
29134	.ascii \"foo\\0\"
29135	.byte	0x1
29136	.byte	0x2
29137	.byte	0x1
29138	.${dwarf4_addr_size}byte	.LFB0
29139	.${dwarf4_addr_size}byte	.LFE0-.LFB0
29140	.byte	0x1
29141	.byte	0x9c
29142	.byte	0
29143	.section	.debug_abbrev,$section_flags
29144.Ldebug_abbrev0:
29145	.byte	0x1
29146	.byte	0x11
29147	.byte	0x1
29148	.byte	0x25
29149	.byte	0x8
29150	.byte	0x13
29151	.byte	0xb
29152	.byte	0x3
29153	.byte	0x8
29154	.byte	0x1b
29155	.byte	0x8
29156	.byte	0x11
29157	.byte	0x1
29158	.byte	0x12
29159	.byte	0x$dwarf4_high_pc_form
29160	.byte	0x10
29161	.byte	0x17
29162	.byte	0
29163	.byte	0
29164	.byte	0x2
29165	.byte	0x2e
29166	.byte	0
29167	.byte	0x3f
29168	.byte	0x19
29169	.byte	0x3
29170	.byte	0x8
29171	.byte	0x3a
29172	.byte	0xb
29173	.byte	0x3b
29174	.byte	0xb
29175	.byte	0x39
29176	.byte	0xb
29177	.byte	0x11
29178	.byte	0x1
29179	.byte	0x12
29180	.byte	0x$dwarf4_high_pc_form
29181	.byte	0x40
29182	.byte	0x18
29183	.byte	0
29184	.byte	0
29185	.byte	0
29186	.section	.debug_aranges,$section_flags
29187	.4byte	$dwarf4_debug_aranges_size
29188	.2byte	0x2
29189	.4byte	.Ldebug_info0
29190	.byte	0x8
29191	.byte	0
29192	.2byte	0
29193	.2byte	0
29194	.${dwarf4_addr_size}byte	.Ltext0
29195	.${dwarf4_addr_size}byte	.Letext0-.Ltext0
29196	.${dwarf4_addr_size}byte	0
29197	.${dwarf4_addr_size}byte	0
29198	.section	.debug_line,$section_flags
29199.Ldebug_line0:
29200	.4byte	.LELT0-.LSLT0
29201.LSLT0:
29202	.2byte	0x4
29203	.4byte	.LELTP0-.LASLTP0
29204.LASLTP0:
29205	.byte	0x1
29206	.byte	0x1
29207	.byte	0x1
29208	.byte	0xf6
29209	.byte	0xf2
29210	.byte	0xd
29211	.byte	0
29212	.byte	0x1
29213	.byte	0x1
29214	.byte	0x1
29215	.byte	0x1
29216	.byte	0
29217	.byte	0
29218	.byte	0
29219	.byte	0x1
29220	.byte	0
29221	.byte	0
29222	.byte	0x1
29223	.byte	0
29224	.ascii \"a.c\\0\"
29225	.byte	0
29226	.byte	0
29227	.byte	0
29228	.byte	0
29229.LELTP0:
29230	.byte	0
29231	.byte	0x$dwarf4_line_sz
29232	.byte	0x2
29233	.${dwarf4_addr_size}byte	.LM1
29234	.byte	0x18
29235	.byte	0x5
29236	.byte	0x1
29237	.byte	0
29238	.byte	0x$dwarf4_line_sz
29239	.byte	0x2
29240	.${dwarf4_addr_size}byte	.LM2
29241	.byte	0x1
29242	.byte	0x5
29243	.byte	0x1
29244	.byte	0
29245	.byte	0x$dwarf4_line_sz
29246	.byte	0x2
29247	.${dwarf4_addr_size}byte	.Letext0
29248	.byte	0
29249	.byte	0x1
29250	.byte	0x1
29251.LELT0:
29252	.section	.debug_str,$section_flags
29253	.ident	\"GCC\"
29254"
29255   dwarf4_success=no
29256   if test $dwarf4_addr_size = 4; then
29257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29258$as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29259if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29260  $as_echo_n "(cached) " >&6
29261else
29262  gcc_cv_as_debug_line_32_flag=no
29263    if test $in_tree_gas = yes; then
29264    if test $in_tree_gas_is_elf = yes \
29265  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29266  then gcc_cv_as_debug_line_32_flag=yes
29267fi
29268  elif test x$gcc_cv_as != x; then
29269    $as_echo "$conftest_s" > conftest.s
29270    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
29271  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29272  (eval $ac_try) 2>&5
29273  ac_status=$?
29274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29275  test $ac_status = 0; }; }
29276    then
29277	gcc_cv_as_debug_line_32_flag=yes
29278    else
29279      echo "configure: failed program was" >&5
29280      cat conftest.s >&5
29281    fi
29282    rm -f conftest.o conftest.s
29283  fi
29284fi
29285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29286$as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29287if test $gcc_cv_as_debug_line_32_flag = yes; then
29288  dwarf4_success=yes
29289fi
29290
29291   else
29292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29293$as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29294if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29295  $as_echo_n "(cached) " >&6
29296else
29297  gcc_cv_as_debug_line_64_flag=no
29298    if test $in_tree_gas = yes; then
29299    if test $in_tree_gas_is_elf = yes \
29300  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29301  then gcc_cv_as_debug_line_64_flag=yes
29302fi
29303  elif test x$gcc_cv_as != x; then
29304    $as_echo "$conftest_s" > conftest.s
29305    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
29306  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29307  (eval $ac_try) 2>&5
29308  ac_status=$?
29309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29310  test $ac_status = 0; }; }
29311    then
29312	gcc_cv_as_debug_line_64_flag=yes
29313    else
29314      echo "configure: failed program was" >&5
29315      cat conftest.s >&5
29316    fi
29317    rm -f conftest.o conftest.s
29318  fi
29319fi
29320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29321$as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29322if test $gcc_cv_as_debug_line_64_flag = yes; then
29323  dwarf4_success=yes
29324fi
29325
29326   fi
29327   if test $dwarf4_success = yes; then
29328     dwarf4_success=no
29329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29330$as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29331if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29332  $as_echo_n "(cached) " >&6
29333else
29334  gcc_cv_as_dwarf_4_debug_line_flag=no
29335    if test $in_tree_gas = yes; then
29336    if test $in_tree_gas_is_elf = yes \
29337  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29338  then gcc_cv_as_dwarf_4_debug_line_flag=yes
29339fi
29340  elif test x$gcc_cv_as != x; then
29341    $as_echo "$conftest_s" > conftest.s
29342    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29343  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29344  (eval $ac_try) 2>&5
29345  ac_status=$?
29346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29347  test $ac_status = 0; }; }
29348    then
29349	gcc_cv_as_dwarf_4_debug_line_flag=yes
29350    else
29351      echo "configure: failed program was" >&5
29352      cat conftest.s >&5
29353    fi
29354    rm -f conftest.o conftest.s
29355  fi
29356fi
29357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29358$as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29359if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29360  dwarf4_success=yes
29361fi
29362
29363     break
29364   fi
29365   dwarf4_debug_info_size=0x36
29366   dwarf4_high_pc_form=6
29367   dwarf4_debug_aranges_size=0x1c
29368   dwarf4_line_sz=5
29369 done
29370
29371 if test $dwarf4_success = yes; then
29372   conftest_s="\
29373	.file	\"foo.c\"
29374	.text
29375bar:
29376#APP
29377# 82 \"xxx.h\" 1
29378	$insn
29379# 0 \"\" 2
29380#NO_APP
29381	$insn
29382foo:
29383	.file 1 \"foo.c\"
29384	$insn
29385	.file 2 \"foo.h\"
29386	ret
29387"
29388   dwarf4_success=no
29389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29390$as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29391if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29392  $as_echo_n "(cached) " >&6
29393else
29394  gcc_cv_as_dwarf_4_app_flag=no
29395  if test x$gcc_cv_as != x; then
29396    $as_echo "$conftest_s" > conftest.s
29397    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29398  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29399  (eval $ac_try) 2>&5
29400  ac_status=$?
29401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29402  test $ac_status = 0; }; }
29403    then
29404	gcc_cv_as_dwarf_4_app_flag=yes
29405    else
29406      echo "configure: failed program was" >&5
29407      cat conftest.s >&5
29408    fi
29409    rm -f conftest.o conftest.s
29410  fi
29411fi
29412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29413$as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29414if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29415  dwarf4_success=yes
29416fi
29417
29418 fi
29419
29420 if test $dwarf4_success = yes; then
29421   conftest_s="\
29422	.text
29423	.globl	foo
29424	$function_type
29425foo:
29426	$insn
29427	$function_size
29428	.file	1 \"foo.c\"
29429"
29430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29431$as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29432if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29433  $as_echo_n "(cached) " >&6
29434else
29435  gcc_cv_as_working_gdwarf_n_flag=no
29436  if test x$gcc_cv_as != x; then
29437    $as_echo "$conftest_s" > conftest.s
29438    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29439  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29440  (eval $ac_try) 2>&5
29441  ac_status=$?
29442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29443  test $ac_status = 0; }; }
29444    then
29445	      if test x$gcc_cv_objdump != x \
29446	 && $gcc_cv_objdump -W conftest.o 2>&1 \
29447		| grep conftest.s > /dev/null 2>&1; then
29448	gcc_cv_as_working_gdwarf_n_flag=no
29449      else
29450	gcc_cv_as_working_gdwarf_n_flag=yes
29451      fi
29452          else
29453      echo "configure: failed program was" >&5
29454      cat conftest.s >&5
29455    fi
29456    rm -f conftest.o conftest.s
29457  fi
29458fi
29459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29460$as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29461
29462
29463   if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29464
29465$as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29466
29467   fi
29468 fi
29469
29470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
29471$as_echo_n "checking assembler for --gstabs option... " >&6; }
29472if ${gcc_cv_as_gstabs_flag+:} false; then :
29473  $as_echo_n "(cached) " >&6
29474else
29475  gcc_cv_as_gstabs_flag=no
29476    if test $in_tree_gas = yes; then
29477    if test $in_tree_gas_is_elf = yes \
29478  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29479  then gcc_cv_as_gstabs_flag=yes
29480fi
29481  elif test x$gcc_cv_as != x; then
29482    $as_echo "$insn" > conftest.s
29483    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
29484  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29485  (eval $ac_try) 2>&5
29486  ac_status=$?
29487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29488  test $ac_status = 0; }; }
29489    then
29490	gcc_cv_as_gstabs_flag=yes
29491    else
29492      echo "configure: failed program was" >&5
29493      cat conftest.s >&5
29494    fi
29495    rm -f conftest.o conftest.s
29496  fi
29497fi
29498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
29499$as_echo "$gcc_cv_as_gstabs_flag" >&6; }
29500if test $gcc_cv_as_gstabs_flag = yes; then
29501
29502$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
29503
29504fi
29505
29506
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29508$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29509if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29510  $as_echo_n "(cached) " >&6
29511else
29512  gcc_cv_as_debug_prefix_map_flag=no
29513    if test $in_tree_gas = yes; then
29514    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
29515  then gcc_cv_as_debug_prefix_map_flag=yes
29516fi
29517  elif test x$gcc_cv_as != x; then
29518    $as_echo "$insn" > conftest.s
29519    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29520  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29521  (eval $ac_try) 2>&5
29522  ac_status=$?
29523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29524  test $ac_status = 0; }; }
29525    then
29526	gcc_cv_as_debug_prefix_map_flag=yes
29527    else
29528      echo "configure: failed program was" >&5
29529      cat conftest.s >&5
29530    fi
29531    rm -f conftest.o conftest.s
29532  fi
29533fi
29534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29535$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29536if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29537
29538$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29539
29540fi
29541
29542fi
29543
29544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29545$as_echo_n "checking assembler for compressed debug sections... " >&6; }
29546if ${gcc_cv_as_compress_debug+:} false; then :
29547  $as_echo_n "(cached) " >&6
29548else
29549  gcc_cv_as_compress_debug=no
29550  if test x$gcc_cv_as != x; then
29551    $as_echo '' > conftest.s
29552    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
29553  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29554  (eval $ac_try) 2>&5
29555  ac_status=$?
29556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29557  test $ac_status = 0; }; }
29558    then
29559	# gas compiled without zlib cannot compress debug sections and warns
29560   # about it, but still exits successfully.  So check for this, too.
29561   if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29562   then
29563     gcc_cv_as_compress_debug=0
29564   # Since binutils 2.26, gas supports --compress-debug-sections=type,
29565   # defaulting to the ELF gABI format.
29566   elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
29567   then
29568     gcc_cv_as_compress_debug=2
29569     gcc_cv_as_compress_debug_option="--compress-debug-sections"
29570     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29571   # Before binutils 2.26, gas only supported --compress-debug-options and
29572   # emitted the traditional GNU format.
29573   elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
29574   then
29575     gcc_cv_as_compress_debug=1
29576     gcc_cv_as_compress_debug_option="--compress-debug-sections"
29577     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29578   else
29579     gcc_cv_as_compress_debug=0
29580   fi
29581    else
29582      echo "configure: failed program was" >&5
29583      cat conftest.s >&5
29584    fi
29585    rm -f conftest.o conftest.s
29586  fi
29587fi
29588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29589$as_echo "$gcc_cv_as_compress_debug" >&6; }
29590
29591
29592
29593cat >>confdefs.h <<_ACEOF
29594#define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29595_ACEOF
29596
29597
29598cat >>confdefs.h <<_ACEOF
29599#define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29600_ACEOF
29601
29602
29603cat >>confdefs.h <<_ACEOF
29604#define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29605_ACEOF
29606
29607
29608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29609$as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29610if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29611  $as_echo_n "(cached) " >&6
29612else
29613  gcc_cv_as_lcomm_with_alignment=no
29614  if test x$gcc_cv_as != x; then
29615    $as_echo '.lcomm bar,4,16' > conftest.s
29616    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
29617  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29618  (eval $ac_try) 2>&5
29619  ac_status=$?
29620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29621  test $ac_status = 0; }; }
29622    then
29623	gcc_cv_as_lcomm_with_alignment=yes
29624    else
29625      echo "configure: failed program was" >&5
29626      cat conftest.s >&5
29627    fi
29628    rm -f conftest.o conftest.s
29629  fi
29630fi
29631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29632$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29633if test $gcc_cv_as_lcomm_with_alignment = yes; then
29634
29635$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29636
29637fi
29638
29639
29640if test x$with_sysroot = x && test x$host = x$target \
29641   && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29642   && test "$prefix" != "NONE"; then
29643
29644cat >>confdefs.h <<_ACEOF
29645#define PREFIX_INCLUDE_DIR "$prefix/include"
29646_ACEOF
29647
29648fi
29649
29650# Determine the version of glibc, if any, used on the target.
29651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29652$as_echo_n "checking for target glibc version... " >&6; }
29653
29654# Check whether --with-glibc-version was given.
29655if test "${with_glibc_version+set}" = set; then :
29656  withval=$with_glibc_version;
29657if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29658  glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29659  glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29660else
29661  as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29662fi
29663else
29664
29665glibc_version_major=0
29666glibc_version_minor=0
29667if test -f $target_header_dir/features.h \
29668  && glibc_version_major_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+[0-9]' $target_header_dir/features.h` \
29669  && glibc_version_minor_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC_MINOR__[ 	]+[0-9]' $target_header_dir/features.h`; then
29670  glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ 	]*//'`
29671  glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ 	]*//'`
29672fi
29673fi
29674
29675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29676$as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29677
29678cat >>confdefs.h <<_ACEOF
29679#define TARGET_GLIBC_MAJOR $glibc_version_major
29680_ACEOF
29681
29682
29683cat >>confdefs.h <<_ACEOF
29684#define TARGET_GLIBC_MINOR $glibc_version_minor
29685_ACEOF
29686
29687
29688# Check whether --enable-gnu-unique-object was given.
29689if test "${enable_gnu_unique_object+set}" = set; then :
29690  enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29691    yes | no) ;;
29692    *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29693Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29694  esac
29695else
29696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29697$as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29698if ${gcc_cv_as_gnu_unique_object+:} false; then :
29699  $as_echo_n "(cached) " >&6
29700else
29701  gcc_cv_as_gnu_unique_object=no
29702    if test $in_tree_gas = yes; then
29703    if test $in_tree_gas_is_elf = yes \
29704  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
29705  then gcc_cv_as_gnu_unique_object=yes
29706fi
29707  elif test x$gcc_cv_as != x; then
29708    $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29709    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
29710  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29711  (eval $ac_try) 2>&5
29712  ac_status=$?
29713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29714  test $ac_status = 0; }; }
29715    then
29716	gcc_cv_as_gnu_unique_object=yes
29717    else
29718      echo "configure: failed program was" >&5
29719      cat conftest.s >&5
29720    fi
29721    rm -f conftest.o conftest.s
29722  fi
29723fi
29724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29725$as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29726if test $gcc_cv_as_gnu_unique_object = yes; then
29727  # We need to unquote above to to use the definition from config.gcc.
29728# Also check for ld.so support, i.e. glibc 2.11 or higher.
29729
29730if test $glibc_version_major -gt 2 \
29731  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29732  enable_gnu_unique_object=yes
29733fi
29734
29735fi
29736
29737fi
29738
29739if test x$enable_gnu_unique_object = xyes; then
29740
29741$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29742
29743fi
29744
29745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29746$as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29747if ${gcc_cv_as_line_zero+:} false; then :
29748  $as_echo_n "(cached) " >&6
29749else
29750  gcc_cv_as_line_zero=no
29751  if test $in_tree_gas = yes; then
29752    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
29753  then gcc_cv_as_line_zero=yes
29754fi
29755  elif test "x$gcc_cv_as" != x; then
29756    { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29757    if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29758  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29759  (eval $ac_try) 2>&5
29760  ac_status=$?
29761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29762  test $ac_status = 0; }; } &&
29763       test "x`cat conftest.out`" = x
29764    then
29765      gcc_cv_as_line_zero=yes
29766    else
29767      echo "configure: failed program was" >&5
29768      cat conftest.s >&5
29769      echo "configure: error output was" >&5
29770      cat conftest.out >&5
29771    fi
29772    rm -f conftest.o conftest.s conftest.out
29773  fi
29774fi
29775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29776$as_echo "$gcc_cv_as_line_zero" >&6; }
29777if test "x$gcc_cv_as_line_zero" = xyes; then
29778
29779$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29780
29781fi
29782
29783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29784$as_echo_n "checking support for thin archives... " >&6; }
29785thin_archive_support=no
29786echo 'int main (void) { return 0; }' > conftest.c
29787if ($AR --version | sed 1q | grep "GNU ar" \
29788    && $CC $CFLAGS -c conftest.c \
29789    && $AR rcT conftest.a conftest.o \
29790    && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29791  thin_archive_support=yes
29792fi
29793rm -f conftest.c conftest.o conftest.a conftest
29794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29795$as_echo "$thin_archive_support" >&6; }
29796
29797
29798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29799$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29800gcc_cv_ld_eh_frame_hdr=no
29801if test $in_tree_ld = yes ; then
29802  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 \
29803     && test $in_tree_ld_is_elf = yes; then
29804    gcc_cv_ld_eh_frame_hdr=yes
29805  fi
29806elif test x$gcc_cv_ld != x; then
29807  if echo "$ld_ver" | grep GNU > /dev/null; then
29808    # Check if linker supports --eh-frame-hdr option
29809    if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
29810      gcc_cv_ld_eh_frame_hdr=yes
29811    fi
29812  else
29813    case "$target" in
29814      *-*-solaris2*)
29815        # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29816        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
29817          gcc_cv_ld_eh_frame_hdr=yes
29818        fi
29819        ;;
29820    esac
29821  fi
29822fi
29823
29824if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
29825
29826$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29827
29828fi
29829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29830$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29831
29832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29833$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29834gcc_cv_ld_eh_frame_ciev3=no
29835if test $in_tree_ld = yes ; then
29836  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 \
29837     && test $in_tree_ld_is_elf = yes; then
29838    gcc_cv_ld_eh_frame_ciev3=yes
29839  fi
29840elif test x$gcc_cv_ld != x; then
29841  if echo "$ld_ver" | grep GNU > /dev/null; then
29842    gcc_cv_ld_eh_frame_ciev3=yes
29843    if test 0"$ld_date" -lt 20040513; then
29844      if test -n "$ld_date"; then
29845	# If there was date string, but was earlier than 2004-05-13, fail
29846	gcc_cv_ld_eh_frame_ciev3=no
29847      elif test "$ld_vers_major" -lt 2; then
29848	gcc_cv_ld_eh_frame_ciev3=no
29849      elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
29850	gcc_cv_ld_eh_frame_ciev3=no
29851      fi
29852    fi
29853  else
29854    case "$target" in
29855      *-*-solaris2*)
29856        # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
29857        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
29858          gcc_cv_ld_eh_frame_ciev3=yes
29859        fi
29860        ;;
29861    esac
29862  fi
29863fi
29864
29865cat >>confdefs.h <<_ACEOF
29866#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
29867_ACEOF
29868
29869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
29870$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
29871
29872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
29873$as_echo_n "checking linker position independent executable support... " >&6; }
29874gcc_cv_ld_pie=no
29875if test $in_tree_ld = yes ; then
29876  case "$target" in
29877    # Full PIE support on Solaris was only introduced in gld 2.26.
29878    *-*-solaris2*)  gcc_gld_pie_min_version=26 ;;
29879    *) 		    gcc_gld_pie_min_version=15 ;;
29880  esac
29881  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
29882     && test $in_tree_ld_is_elf = yes; then
29883    gcc_cv_ld_pie=yes
29884  fi
29885elif test x$gcc_cv_ld != x; then
29886  # Check if linker supports -pie option
29887  if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
29888    gcc_cv_ld_pie=yes
29889    case "$target" in
29890      *-*-solaris2*)
29891	if echo "$ld_ver" | grep GNU > /dev/null \
29892	  && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29893	  gcc_cv_ld_pie=no
29894	fi
29895	;;
29896    esac
29897  else
29898    case "$target" in
29899      *-*-solaris2.1[1-9]*)
29900	# Solaris 11.3 added PIE support.
29901	if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
29902	  gcc_cv_ld_pie=yes
29903	fi
29904	;;
29905    esac
29906  fi
29907fi
29908if test x"$gcc_cv_ld_pie" = xyes; then
29909
29910$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
29911
29912fi
29913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
29914$as_echo "$gcc_cv_ld_pie" >&6; }
29915
29916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
29917$as_echo_n "checking linker PIE support with copy reloc... " >&6; }
29918gcc_cv_ld_pie_copyreloc=no
29919if test $gcc_cv_ld_pie = yes ; then
29920  if test $in_tree_ld = yes ; then
29921    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
29922      gcc_cv_ld_pie_copyreloc=yes
29923    fi
29924  elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29925    # Check if linker supports -pie option with copy reloc
29926    case "$target" in
29927    i?86-*-linux* | x86_64-*-linux*)
29928      cat > conftest1.s <<EOF
29929	.globl	a_glob
29930	.data
29931	.type	a_glob, @object
29932	.size	a_glob, 4
29933a_glob:
29934	.long	2
29935EOF
29936      cat > conftest2.s <<EOF
29937	.text
29938	.globl	main
29939	.type	main, @function
29940main:
29941	movl	%eax, a_glob(%rip)
29942	.size	main, .-main
29943	.globl	ptr
29944	.section	.data.rel,"aw",@progbits
29945	.type	ptr, @object
29946ptr:
29947	.quad	a_glob
29948EOF
29949      if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29950         && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
29951         && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29952         && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
29953        gcc_cv_ld_pie_copyreloc=yes
29954      fi
29955      rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
29956      ;;
29957    esac
29958  fi
29959fi
29960
29961cat >>confdefs.h <<_ACEOF
29962#define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
29963_ACEOF
29964
29965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
29966$as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
29967
29968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
29969$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
29970gcc_cv_ld_eh_gc_sections=no
29971if test $in_tree_ld = yes ; then
29972  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 \
29973     && test $in_tree_ld_is_elf = yes; then
29974    gcc_cv_ld_eh_gc_sections=yes
29975  fi
29976elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
29977  cat > conftest.s <<EOF
29978	.section	.text
29979.globl _start
29980        .type _start, @function
29981_start:
29982	.long foo
29983	.size _start, .-_start
29984	.section	.text.foo,"ax",@progbits
29985	.type foo, @function
29986foo:
29987	.long 0
29988	.size foo, .-foo
29989	.section	.gcc_except_table.foo,"a",@progbits
29990.L0:
29991	.long 0
29992	.section	.eh_frame,"a",@progbits
29993	.long .L0
29994EOF
29995  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29996    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29997	 | grep "gc-sections option ignored" > /dev/null; then
29998      gcc_cv_ld_eh_gc_sections=no
29999    elif $gcc_cv_objdump -h conftest 2> /dev/null \
30000         | grep gcc_except_table > /dev/null; then
30001      gcc_cv_ld_eh_gc_sections=yes
30002      # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30003      if test x$gcc_cv_as_comdat_group != xyes; then
30004	gcc_cv_ld_eh_gc_sections=no
30005	cat > conftest.s <<EOF
30006	.section	.text
30007.globl _start
30008        .type _start, @function
30009_start:
30010	.long foo
30011	.size _start, .-_start
30012	.section	.gnu.linkonce.t.foo,"ax",@progbits
30013	.type foo, @function
30014foo:
30015	.long 0
30016	.size foo, .-foo
30017	.section	.gcc_except_table.foo,"a",@progbits
30018.L0:
30019	.long 0
30020	.section	.eh_frame,"a",@progbits
30021	.long .L0
30022EOF
30023	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30024	  if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30025	       | grep "gc-sections option ignored" > /dev/null; then
30026	    gcc_cv_ld_eh_gc_sections=no
30027	  elif $gcc_cv_objdump -h conftest 2> /dev/null \
30028	       | grep gcc_except_table > /dev/null; then
30029	    gcc_cv_ld_eh_gc_sections=yes
30030	  fi
30031	fi
30032      fi
30033    fi
30034  fi
30035  rm -f conftest.s conftest.o conftest
30036fi
30037case "$target" in
30038  hppa*-*-linux*)
30039    # ??? This apparently exposes a binutils bug with PC-relative relocations.
30040    gcc_cv_ld_eh_gc_sections=no
30041    ;;
30042esac
30043if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30044
30045$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30046
30047fi
30048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30049$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30050
30051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30052$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30053gcc_cv_ld_eh_gc_sections_bug=no
30054if test $in_tree_ld = yes ; then
30055  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 \
30056     && test $in_tree_ld_is_elf = yes; then
30057    gcc_cv_ld_eh_gc_sections_bug=yes
30058  fi
30059elif 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
30060  gcc_cv_ld_eh_gc_sections_bug=yes
30061  cat > conftest.s <<EOF
30062	.section	.text
30063.globl _start
30064	.type _start, @function
30065_start:
30066	.long foo
30067	.size _start, .-_start
30068	.section	.text.startup.foo,"ax",@progbits
30069	.type foo, @function
30070foo:
30071	.long 0
30072	.size foo, .-foo
30073	.section	.gcc_except_table.foo,"a",@progbits
30074.L0:
30075	.long 0
30076	.section	.eh_frame,"a",@progbits
30077	.long .L0
30078EOF
30079  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30080    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30081	 | grep "gc-sections option ignored" > /dev/null; then
30082      :
30083    elif $gcc_cv_objdump -h conftest 2> /dev/null \
30084	 | grep gcc_except_table > /dev/null; then
30085      gcc_cv_ld_eh_gc_sections_bug=no
30086    fi
30087  fi
30088  rm -f conftest.s conftest.o conftest
30089fi
30090if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30091
30092$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30093
30094fi
30095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30096$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30097
30098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30099$as_echo_n "checking linker for compressed debug sections... " >&6; }
30100# gold/gld support compressed debug sections since binutils 2.19/2.21
30101# In binutils 2.26, gld gained support for the ELF gABI format.
30102if test $in_tree_ld = yes ; then
30103  gcc_cv_ld_compress_debug=0
30104  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
30105     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30106    gcc_cv_ld_compress_debug=2
30107    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30108  elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
30109     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
30110    gcc_cv_ld_compress_debug=3
30111    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30112  elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
30113     && test $in_tree_ld_is_elf = yes; then
30114    gcc_cv_ld_compress_debug=1
30115  fi
30116elif echo "$ld_ver" | grep GNU > /dev/null; then
30117  if test "$ld_vers_major" -lt 2 \
30118     || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30119    gcc_cv_ld_compress_debug=0
30120  elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30121    gcc_cv_ld_compress_debug=1
30122  else
30123    gcc_cv_ld_compress_debug=3
30124    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30125  fi
30126  if test $ld_is_gold = yes; then
30127    gcc_cv_ld_compress_debug=2
30128    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30129  fi
30130else
30131  case "${target}" in
30132    *-*-solaris2*)
30133      # Introduced in Solaris 11.2.
30134      if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30135        gcc_cv_ld_compress_debug=3
30136        gcc_cv_ld_compress_debug_option="-z compress-sections"
30137      else
30138        gcc_cv_ld_compress_debug=0
30139      fi
30140      ;;
30141    *)
30142      # Assume linkers other than GNU ld don't support compessed debug
30143      # sections.
30144      gcc_cv_ld_compress_debug=0
30145      ;;
30146  esac
30147fi
30148
30149cat >>confdefs.h <<_ACEOF
30150#define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30151_ACEOF
30152
30153
30154cat >>confdefs.h <<_ACEOF
30155#define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30156_ACEOF
30157
30158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30159$as_echo "$gcc_cv_ld_compress_debug" >&6; }
30160
30161if test x"$ld64_flag" = x"yes"; then
30162
30163  # Set defaults for possibly untestable items.
30164  gcc_cv_ld64_export_dynamic=0
30165
30166  if test "$build" = "$host"; then
30167    darwin_try_test=1
30168  else
30169    darwin_try_test=0
30170  fi
30171
30172  # On Darwin, because of FAT library support, it is often possible to execute
30173  # exes from compatible archs even when the host differs from the build system.
30174  case "$build","$host" in
30175    x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30176	darwin_try_test=1;;
30177    *) ;;
30178  esac
30179
30180  # If the configurer specified a minimum ld64 version to be supported, then use
30181  # that to determine feature support.
30182  if test x"${gcc_cv_ld64_version}" != x; then
30183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30184$as_echo_n "checking ld64 specified version... " >&6; }
30185    gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30187$as_echo "$gcc_cv_ld64_major" >&6; }
30188   if test "$gcc_cv_ld64_major" -ge 236; then
30189      gcc_cv_ld64_export_dynamic=1
30190    fi
30191  elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30192    # If the version was not specified, try to find it.
30193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30194$as_echo_n "checking linker version... " >&6; }
30195    if test x"${gcc_cv_ld64_version}" = x; then
30196      gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30197    fi
30198    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30199$as_echo "$gcc_cv_ld64_version" >&6; }
30200
30201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30202$as_echo_n "checking linker for -export_dynamic support... " >&6; }
30203    gcc_cv_ld64_export_dynamic=1
30204    if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30205      gcc_cv_ld64_export_dynamic=0
30206    fi
30207    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30208$as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30209  fi
30210
30211  if test x"${gcc_cv_ld64_version}" != x; then
30212
30213cat >>confdefs.h <<_ACEOF
30214#define LD64_VERSION "${gcc_cv_ld64_version}"
30215_ACEOF
30216
30217  fi
30218
30219
30220cat >>confdefs.h <<_ACEOF
30221#define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30222_ACEOF
30223
30224fi
30225
30226case $target_os in
30227  win32 | pe | cygwin* | mingw32*)
30228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30229$as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30230    gcc_cv_ld_broken_pe_dwarf5=yes
30231    if test $in_tree_ld = yes ; then
30232      if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30233	   $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30234	 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30235	      $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30236	gcc_cv_ld_broken_pe_dwarf5=no
30237      fi
30238    else
30239      if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30240	 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30241	gcc_cv_ld_broken_pe_dwarf5=no
30242      fi
30243    fi
30244    if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30245
30246$as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30247
30248    fi
30249    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30250$as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30251
30252    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30253$as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30254    gcc_cv_ld_disable_dynamicbase=no
30255    if test $in_tree_ld = yes; then
30256      if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 36 -o "$gcc_cv_gld_major_version" -gt 2; then \
30257        gcc_cv_ld_disable_dynamicbase=yes
30258      fi
30259    else
30260      if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30261        gcc_cv_ld_disable_dynamicbase=yes
30262      fi
30263    fi
30264    if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30265
30266$as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30267
30268    fi
30269    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30270$as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30271    ;;
30272esac
30273
30274# --------
30275# UNSORTED
30276# --------
30277
30278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30279$as_echo_n "checking linker --as-needed support... " >&6; }
30280if ${gcc_cv_ld_as_needed+:} false; then :
30281  $as_echo_n "(cached) " >&6
30282else
30283  gcc_cv_ld_as_needed=no
30284gcc_cv_ld_as_needed_option='--as-needed'
30285gcc_cv_ld_no_as_needed_option='--no-as-needed'
30286if test $in_tree_ld = yes ; then
30287  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 \
30288     && test $in_tree_ld_is_elf = yes; then
30289    gcc_cv_ld_as_needed=yes
30290    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30291      gcc_cv_ld_as_needed_option='--push-state --as-needed'
30292      gcc_cv_ld_no_as_needed_option='--pop-state'
30293    fi
30294  fi
30295elif test x$gcc_cv_ld != x; then
30296  # Check if linker supports --as-needed and --no-as-needed options
30297  if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30298    gcc_cv_ld_as_needed=yes
30299    if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30300       && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30301       && echo "$ld_ver" | grep GNU > /dev/null \
30302       && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30303      # Use these options only when both ld.bfd and ld.gold support
30304      # --push-state/--pop-state, which unfortunately wasn't added
30305      # at the same time.
30306      gcc_cv_ld_as_needed_option='--push-state --as-needed'
30307      gcc_cv_ld_no_as_needed_option='--pop-state'
30308    fi
30309  fi
30310  case "$target:$gnu_ld" in
30311    *-*-solaris2*:no)
30312      # Solaris 2 ld always supports -z ignore/-z record.  Prefer the native
30313      # forms.
30314      gcc_cv_ld_as_needed=yes
30315      gcc_cv_ld_as_needed_option="-z ignore"
30316      gcc_cv_ld_no_as_needed_option="-z record"
30317      ;;
30318  esac
30319fi
30320# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30321# dl_iterate_phdr, i.e. since Solaris 11.
30322case "$target" in
30323  *-*-solaris2.1[1-9]*)
30324    case "$target" in
30325    i?86-*-* | x86_64-*-*)
30326      if echo "$ld_ver" | grep GNU > /dev/null; then
30327        # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30328        gcc_cv_ld_as_needed=no
30329      fi
30330      ;;
30331    esac
30332    ;;
30333  *-*-solaris2*)
30334    gcc_cv_ld_as_needed=no
30335    ;;
30336esac
30337
30338fi
30339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30340$as_echo "$gcc_cv_ld_as_needed" >&6; }
30341if test x"$gcc_cv_ld_as_needed" = xyes; then
30342
30343$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30344
30345
30346cat >>confdefs.h <<_ACEOF
30347#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30348_ACEOF
30349
30350
30351cat >>confdefs.h <<_ACEOF
30352#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30353_ACEOF
30354
30355fi
30356
30357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30358$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30359saved_LDFLAGS="$LDFLAGS"
30360for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30361  LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30363/* end confdefs.h.  */
30364int main(void) {return 0;}
30365_ACEOF
30366if ac_fn_cxx_try_link "$LINENO"; then :
30367  gcc_cv_ld_clearcap=yes; break
30368else
30369  gcc_cv_ld_clearcap=no
30370fi
30371rm -f core conftest.err conftest.$ac_objext \
30372    conftest$ac_exeext conftest.$ac_ext
30373done
30374LDFLAGS="$saved_LDFLAGS"
30375if test "x$gcc_cv_ld_clearcap" = xyes; then
30376
30377$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30378
30379  ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30380
30381fi
30382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30383$as_echo "$gcc_cv_ld_clearcap" >&6; }
30384
30385case "$target" in
30386  powerpc*-*-*)
30387    case "$target" in
30388      *le-*-linux*)
30389	emul_name="-melf32lppc"
30390	;;
30391      *)
30392	emul_name="-melf32ppc"
30393	;;
30394    esac
30395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30396$as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30397if ${gcc_cv_ld_ppc_attr+:} false; then :
30398  $as_echo_n "(cached) " >&6
30399else
30400  gcc_cv_ld_ppc_attr=no
30401    if test x"$ld_is_gold" = xyes; then
30402      gcc_cv_ld_ppc_attr=yes
30403    elif test $in_tree_ld = yes ; then
30404      if test "$gcc_cv_gld_major_version" -eq 2 \
30405		-a "$gcc_cv_gld_minor_version" -ge 28 \
30406		-o "$gcc_cv_gld_major_version" -gt 2; then
30407        gcc_cv_ld_ppc_attr=yes
30408      fi
30409    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30410      # check that merging the long double .gnu_attribute doesn't warn
30411      cat > conftest1.s <<EOF
30412	.gnu_attribute 4,1
30413EOF
30414      cat > conftest2.s <<EOF
30415	.gnu_attribute 4,9
30416EOF
30417      if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30418         && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30419         && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30420	 && test ! -s conftest.err; then
30421        gcc_cv_ld_ppc_attr=yes
30422      fi
30423      rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30424    fi
30425
30426fi
30427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30428$as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30429    if test x$gcc_cv_ld_ppc_attr = xyes; then
30430
30431$as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30432
30433    fi
30434    ;;
30435esac
30436
30437case "$target:$tm_file" in
30438  powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30439  case "$target" in
30440     *le-*-linux*)
30441     emul_name="-melf64lppc"
30442      ;;
30443     *-*-linux*)
30444     emul_name="-melf64ppc"
30445      ;;
30446     *le-*-freebsd*)
30447     emul_name="-melf64lppc_fbsd"
30448      ;;
30449     *-*-freebsd*)
30450     emul_name="-melf64ppc_fbsd"
30451      ;;
30452  esac
30453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30454$as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30455if ${gcc_cv_ld_no_dot_syms+:} false; then :
30456  $as_echo_n "(cached) " >&6
30457else
30458  gcc_cv_ld_no_dot_syms=no
30459    if test x"$ld_is_gold" = xyes; then
30460      gcc_cv_ld_no_dot_syms=yes
30461    elif test $in_tree_ld = yes ; then
30462      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
30463        gcc_cv_ld_no_dot_syms=yes
30464      fi
30465    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30466      cat > conftest1.s <<EOF
30467	.text
30468	bl .foo
30469EOF
30470      cat > conftest2.s <<EOF
30471	.section ".opd","aw"
30472	.align 3
30473	.globl foo
30474	.type foo,@function
30475foo:
30476	.quad .LEfoo,.TOC.@tocbase,0
30477	.text
30478.LEfoo:
30479	blr
30480	.size foo,.-.LEfoo
30481EOF
30482      if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30483         && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30484         && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30485        gcc_cv_ld_no_dot_syms=yes
30486      fi
30487      rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30488    fi
30489
30490fi
30491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30492$as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30493    if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30494
30495$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30496
30497    fi
30498
30499    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30500$as_echo_n "checking linker large toc support... " >&6; }
30501if ${gcc_cv_ld_large_toc+:} false; then :
30502  $as_echo_n "(cached) " >&6
30503else
30504  gcc_cv_ld_large_toc=no
30505    if test x"$ld_is_gold" = xyes; then
30506      gcc_cv_ld_large_toc=yes
30507    elif test $in_tree_ld = yes ; then
30508      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
30509        gcc_cv_ld_large_toc=yes
30510      fi
30511    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30512      cat > conftest.s <<EOF
30513	.section ".tbss","awT",@nobits
30514	.align 3
30515ie0:	.space 8
30516	.global _start
30517	.text
30518_start:
30519	addis 9,13,ie0@got@tprel@ha
30520	ld 9,ie0@got@tprel@l(9)
30521EOF
30522      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30523         && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30524        gcc_cv_ld_large_toc=yes
30525      fi
30526      rm -f conftest conftest.o conftest.s
30527    fi
30528
30529fi
30530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30531$as_echo "$gcc_cv_ld_large_toc" >&6; }
30532    if test x"$gcc_cv_ld_large_toc" = xyes; then
30533
30534$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30535
30536    fi
30537
30538    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30539$as_echo_n "checking linker toc pointer alignment... " >&6; }
30540if ${gcc_cv_ld_toc_align+:} false; then :
30541  $as_echo_n "(cached) " >&6
30542else
30543  if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30544      cat > conftest.s <<EOF
30545	.global _start
30546	.text
30547_start:
30548	addis 9,2,x@got@ha
30549	.section .data.rel.ro,"aw",@progbits
30550	.p2align 16
30551	.space 32768
30552x:	.quad .TOC.
30553EOF
30554      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30555         && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30556        gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
30557      fi
30558      rm -f conftest conftest.o conftest.s
30559    fi
30560
30561fi
30562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30563$as_echo "$gcc_cv_ld_toc_align" >&6; }
30564    if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30565
30566cat >>confdefs.h <<_ACEOF
30567#define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30568_ACEOF
30569
30570    fi
30571    ;;
30572esac
30573
30574case "$target" in
30575  *-*-aix*)
30576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30577$as_echo_n "checking linker large toc support... " >&6; }
30578if ${gcc_cv_ld_large_toc+:} false; then :
30579  $as_echo_n "(cached) " >&6
30580else
30581  gcc_cv_ld_large_toc=no
30582    if test x$gcc_cv_as != x ; then
30583      cat > conftest.s <<EOF
30584	.toc
30585LC..1:
30586	.tc a[TC],a[RW]
30587	.extern a[RW]
30588	.csect .text[PR]
30589.largetoctest:
30590	addis 9,LC..1@u(2)
30591	ld 3,LC..1@l(9)
30592EOF
30593      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30594        gcc_cv_ld_large_toc=yes
30595      fi
30596      rm -f conftest conftest.o conftest.s
30597    fi
30598
30599fi
30600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30601$as_echo "$gcc_cv_ld_large_toc" >&6; }
30602    if test x"$gcc_cv_ld_large_toc" = xyes; then
30603
30604$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30605
30606    fi
30607    ;;
30608esac
30609
30610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30611$as_echo_n "checking linker --build-id support... " >&6; }
30612if ${gcc_cv_ld_buildid+:} false; then :
30613  $as_echo_n "(cached) " >&6
30614else
30615  gcc_cv_ld_buildid=no
30616  if test $in_tree_ld = yes ; then
30617    if test "$gcc_cv_gld_major_version" -eq 2 -a \
30618       "$gcc_cv_gld_minor_version" -ge 18 -o \
30619       "$gcc_cv_gld_major_version" -gt 2 \
30620       && test $in_tree_ld_is_elf = yes; then
30621      gcc_cv_ld_buildid=yes
30622    fi
30623  elif test x$gcc_cv_ld != x; then
30624    if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30625      gcc_cv_ld_buildid=yes
30626    fi
30627  fi
30628fi
30629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30630$as_echo "$gcc_cv_ld_buildid" >&6; }
30631if test x"$gcc_cv_ld_buildid" = xyes; then
30632
30633$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30634
30635fi
30636
30637# Check whether --enable-linker-build-id was given.
30638if test "${enable_linker_build_id+set}" = set; then :
30639  enableval=$enable_linker_build_id;
30640else
30641  enable_linker_build_id=no
30642fi
30643
30644
30645if test x"$enable_linker_build_id" = xyes; then
30646  if test x"$gcc_cv_ld_buildid" = xyes; then
30647
30648$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30649
30650  else
30651    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30652$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30653  fi
30654fi
30655
30656# In binutils 2.21, GNU ld gained support for new emulations fully
30657# supporting the Solaris 2 ABI.  Detect their presence in the linker used.
30658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30659$as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30660if ${gcc_cv_ld_sol2_emulation+:} false; then :
30661  $as_echo_n "(cached) " >&6
30662else
30663  gcc_cv_ld_sol2_emulation=no
30664  if test $in_tree_ld = yes ; then
30665    if test "$gcc_cv_gld_major_version" -eq 2 -a \
30666       "$gcc_cv_gld_minor_version" -ge 21 -o \
30667       "$gcc_cv_gld_major_version" -gt 2 \
30668       && test $in_tree_ld_is_elf = yes; then
30669      gcc_cv_ld_sol2_emulation=yes
30670    fi
30671  elif test x$gcc_cv_ld != x; then
30672    if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30673       grep _sol2 > /dev/null; then
30674      gcc_cv_ld_sol2_emulation=yes
30675    fi
30676  fi
30677fi
30678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30679$as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30680if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30681
30682$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30683
30684fi
30685
30686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30687$as_echo_n "checking linker --sysroot support... " >&6; }
30688if ${gcc_cv_ld_sysroot+:} false; then :
30689  $as_echo_n "(cached) " >&6
30690else
30691  gcc_cv_ld_sysroot=no
30692  if test $in_tree_ld = yes ; then
30693      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
30694        gcc_cv_ld_sysroot=yes
30695      fi
30696  elif test x$gcc_cv_ld != x; then
30697    if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30698      gcc_cv_ld_sysroot=yes
30699    fi
30700  fi
30701fi
30702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30703$as_echo "$gcc_cv_ld_sysroot" >&6; }
30704if test x"$gcc_cv_ld_sysroot" = xyes; then
30705
30706$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30707
30708fi
30709
30710case $target in
30711*-*-solaris2*)
30712  # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30714$as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30715if ${gcc_cv_solaris_crts+:} false; then :
30716  $as_echo_n "(cached) " >&6
30717else
30718  gcc_cv_solaris_crts=no
30719     if test x$host != x$target; then
30720       if test "x$with_sysroot" = xyes; then
30721         target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30722       else
30723         target_sysroot="${with_sysroot}"
30724       fi
30725     fi
30726     target_libdir="$target_sysroot/usr/lib"
30727     # At the time they were added, gcrt1.o became a symlink for backwards
30728     # compatibility on x86, while crt1.o was added on sparc, so check for that.
30729     case $target in
30730       i?86-*-solaris2* | x86_64-*-solaris2*)
30731         if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30732	 ;;
30733       sparc*-*-solaris2*)
30734         if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30735	 ;;
30736     esac
30737fi
30738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30739$as_echo "$gcc_cv_solaris_crts" >&6; }
30740  ;;
30741esac
30742if test x$gcc_cv_solaris_crts = xyes; then
30743
30744$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30745
30746fi
30747
30748# Check whether --enable-libssp was given.
30749if test "${enable_libssp+set}" = set; then :
30750  enableval=$enable_libssp; case "${enableval}" in
30751  yes|no)
30752    ;;
30753  *)
30754    as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
30755    ;;
30756esac
30757fi
30758
30759
30760# Test for stack protector support in target C library.
30761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30762$as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30763if ${gcc_cv_libc_provides_ssp+:} false; then :
30764  $as_echo_n "(cached) " >&6
30765else
30766  gcc_cv_libc_provides_ssp=no
30767  if test "x$enable_libssp" = "xno"; then
30768    gcc_cv_libc_provides_ssp=yes
30769  elif test "x$enable_libssp" = "xyes"; then
30770    gcc_cv_libc_provides_ssp=no
30771  else
30772    case "$target" in
30773       *-*-musl*)
30774	 # All versions of musl provide stack protector
30775	 gcc_cv_libc_provides_ssp=yes;;
30776       *-*-linux* | *-*-kfreebsd*-gnu)
30777      # glibc 2.4 and later provides __stack_chk_fail and
30778      # either __stack_chk_guard, or TLS access to stack guard canary.
30779
30780if test $glibc_version_major -gt 2 \
30781  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30782  gcc_cv_libc_provides_ssp=yes
30783else
30784
30785      if test -f $target_header_dir/features.h \
30786	 && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GNU_LIBRARY__[ 	]+([1-9][0-9]|[6-9])' \
30787	    $target_header_dir/features.h > /dev/null; then
30788	if $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC__[ 	]+1' \
30789	     $target_header_dir/features.h > /dev/null && \
30790	     test -f $target_header_dir/bits/uClibc_config.h && \
30791	     $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC_HAS_SSP__[ 	]+1' \
30792	     $target_header_dir/bits/uClibc_config.h > /dev/null; then
30793	  gcc_cv_libc_provides_ssp=yes
30794	fi
30795      # all versions of Bionic support stack protector
30796      elif test -f $target_header_dir/sys/cdefs.h \
30797        && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
30798           $target_header_dir/sys/cdefs.h > /dev/null; then
30799         gcc_cv_libc_provides_ssp=yes
30800      fi
30801fi
30802	;;
30803       *-*-gnu*)
30804	 # Avoid complicated tests (see
30805	 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
30806	 # simply assert that glibc does provide this, which is true for all
30807	 # realistically usable GNU/Hurd configurations.
30808	 # All supported versions of musl provide it as well
30809	 gcc_cv_libc_provides_ssp=yes;;
30810       *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd*)
30811	 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
30812if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
30813  gcc_cv_libc_provides_ssp=yes
30814else
30815  echo "no __stack_chk_fail on this target"
30816fi
30817
30818        ;;
30819       *) gcc_cv_libc_provides_ssp=no ;;
30820    esac
30821  fi
30822fi
30823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
30824$as_echo "$gcc_cv_libc_provides_ssp" >&6; }
30825
30826if test x$gcc_cv_libc_provides_ssp = xyes; then
30827
30828$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
30829
30830fi
30831
30832# Check whether --enable-default-ssp was given.
30833# Check whether --enable-default-ssp was given.
30834if test "${enable_default_ssp+set}" = set; then :
30835  enableval=$enable_default_ssp;
30836if test x$gcc_cv_libc_provides_ssp = xyes; then
30837  case "$target" in
30838    ia64*-*-*) enable_default_ssp=no ;;
30839    *) enable_default_ssp=$enableval ;;
30840  esac
30841else
30842  enable_default_ssp=no
30843fi
30844else
30845  enable_default_ssp=no
30846fi
30847
30848if test x$enable_default_ssp = xyes ; then
30849
30850$as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
30851
30852fi
30853
30854
30855# Test for <sys/sdt.h> on the target.
30856
30857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
30858$as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
30859have_sys_sdt_h=no
30860if test -f $target_header_dir/sys/sdt.h; then
30861  have_sys_sdt_h=yes
30862
30863$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
30864
30865fi
30866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
30867$as_echo "$have_sys_sdt_h" >&6; }
30868
30869# Check if TFmode long double should be used by default or not.
30870# Some glibc targets used DFmode long double, but with glibc 2.4
30871# and later they can use TFmode.
30872case "$target" in
30873  powerpc*-*-linux* | \
30874  sparc*-*-linux* | \
30875  s390*-*-linux* | \
30876  alpha*-*-linux*)
30877
30878# Check whether --with-long-double-128 was given.
30879if test "${with_long_double_128+set}" = set; then :
30880  withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
30881else
30882
30883      case "$target" in
30884	s390*-*-linux-musl*)
30885	  gcc_cv_target_ldbl128=yes
30886	  ;;
30887	powerpc*-*-linux-musl*)
30888	  gcc_cv_target_ldbl128=no
30889	  ;;
30890	*)
30891
30892if test $glibc_version_major -gt 2 \
30893  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30894  gcc_cv_target_ldbl128=yes
30895else
30896
30897      gcc_cv_target_ldbl128=no
30898      grep '^[ 	]*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
30899        $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
30900      && gcc_cv_target_ldbl128=yes
30901
30902fi
30903
30904	  ;;
30905      esac
30906
30907fi
30908
30909    ;;
30910esac
30911if test x$gcc_cv_target_ldbl128 = xyes; then
30912
30913$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
30914
30915fi
30916
30917# Check if TFmode long double target should use the IBM extended double or IEEE
30918# 128-bit floating point formats if long doubles are 128-bits long.  The long
30919# double type can only be switched on powerpc64 bit Linux systems where VSX is
30920# supported.  Other PowerPC systems do not build the IEEE 128-bit emulator in
30921# libgcc.
30922
30923# Check whether --with-long-double-format was given.
30924if test "${with_long_double_format+set}" = set; then :
30925  withval=$with_long_double_format;
30926case "$target:$with_long_double_format" in
30927  powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
30928    :
30929    ;;
30930  powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
30931    # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
30932    case "$with_cpu" in
30933      power7 | power8 | power9 | power1*)
30934	:
30935	;;
30936      *)
30937	as_fn_error $? "Configuration option --with-long-double-format is only \
30938supported if the default cpu is power7 or newer" "$LINENO" 5
30939	with_long_double_format=""
30940	;;
30941      esac
30942      ;;
30943  powerpc64*-*-linux*:*)
30944    as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
30945    with_long_double_format=""
30946    ;;
30947  *)
30948    as_fn_error $? "Configure option --with-long-double-format is only supported \
30949on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
30950    with_long_double_format=""
30951    ;;
30952esac
30953fi
30954
30955
30956# Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
30957# values in the TCB.  Currently, only GLIBC 2.23 and later support this.
30958gcc_cv_libc_provides_hwcap_in_tcb=no
30959case "$target" in
30960  powerpc*-*-linux*)
30961
30962if test $glibc_version_major -gt 2 \
30963  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
30964  gcc_cv_libc_provides_hwcap_in_tcb=yes
30965fi
30966    ;;
30967esac
30968if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
30969
30970$as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
30971
30972fi
30973
30974# Check if the target LIBC handles PT_GNU_STACK.
30975gcc_cv_libc_gnustack=unknown
30976case "$target" in
30977  mips*-*-linux*)
30978
30979if test $glibc_version_major -gt 2 \
30980  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
30981  gcc_cv_libc_gnustack=yes
30982fi
30983    ;;
30984esac
30985if test x$gcc_cv_libc_gnustack = xyes; then
30986
30987$as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
30988
30989fi
30990
30991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
30992$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
30993gcc_cv_target_dl_iterate_phdr=unknown
30994case "$target" in
30995  *-*-solaris2*)
30996    # <link.h> needs both a dl_iterate_phdr declaration and support for
30997    # compilation with largefile support.
30998    if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
30999      && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31000      gcc_cv_target_dl_iterate_phdr=yes
31001    else
31002      gcc_cv_target_dl_iterate_phdr=no
31003    fi
31004    ;;
31005  *-*-dragonfly* | *-*-freebsd*)
31006    if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31007      gcc_cv_target_dl_iterate_phdr=yes
31008    else
31009      gcc_cv_target_dl_iterate_phdr=no
31010    fi
31011    ;;
31012  *-linux-musl*)
31013    gcc_cv_target_dl_iterate_phdr=yes
31014    ;;
31015esac
31016
31017if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31018
31019$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31020
31021fi
31022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31023$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31024
31025# We no longer support different GC mechanisms.  Emit an error if
31026# the user configures with --with-gc.
31027
31028# Check whether --with-gc was given.
31029if test "${with_gc+set}" = set; then :
31030  withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31031fi
31032
31033
31034# Libraries to use on the host.  This will normally be set by the top
31035# level Makefile.  Here we simply capture the value for our Makefile.
31036if test -z "${HOST_LIBS+set}"; then
31037  HOST_LIBS=
31038fi
31039
31040
31041# Use the system's zlib library.
31042
31043  # Use the system's zlib library.
31044  zlibdir="-L\$(top_builddir)/../zlib"
31045  zlibinc="-I\$(top_srcdir)/../zlib"
31046
31047# Check whether --with-system-zlib was given.
31048if test "${with_system_zlib+set}" = set; then :
31049  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31050    zlibdir=
31051    zlibinc=
31052  fi
31053
31054fi
31055
31056
31057
31058
31059
31060
31061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31062$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31063    # Check whether --enable-maintainer-mode was given.
31064if test "${enable_maintainer_mode+set}" = set; then :
31065  enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31066else
31067  maintainer_mode=no
31068fi
31069
31070
31071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31072$as_echo "$maintainer_mode" >&6; }
31073
31074if test "$maintainer_mode" = "yes"; then
31075  MAINT=''
31076else
31077  MAINT='#'
31078fi
31079
31080
31081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31082$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31083  # Check whether --enable-link-mutex was given.
31084if test "${enable_link_mutex+set}" = set; then :
31085  enableval=$enable_link_mutex; do_link_mutex=$enableval
31086else
31087  do_link_mutex=no
31088fi
31089
31090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31091$as_echo "$do_link_mutex" >&6; }
31092
31093if test "$do_link_mutex" = "yes"; then
31094   DO_LINK_MUTEX=true
31095else
31096   DO_LINK_MUTEX=false
31097fi
31098
31099
31100
31101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31102$as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31103  # Check whether --enable-link-serialization was given.
31104if test "${enable_link_serialization+set}" = set; then :
31105  enableval=$enable_link_serialization; do_link_serialization=$enableval
31106else
31107  do_link_serialization=no
31108fi
31109
31110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31111$as_echo "$do_link_serialization" >&6; }
31112
31113case "$do_link_serialization" in
31114  yes)
31115    DO_LINK_SERIALIZATION=1;;
31116  [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31117    DO_LINK_SERIALIZATION=$do_link_serialization;;
31118  no)
31119    DO_LINK_SERIALIZATION=;;
31120  *)
31121    as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31122esac
31123
31124
31125# --------------
31126# Language hooks
31127# --------------
31128
31129# Make empty files to contain the specs and options for each language.
31130# Then add #include lines to for a compiler that has specs and/or options.
31131
31132subdirs=
31133lang_opt_files=
31134lang_specs_files=
31135lang_tree_files=
31136# These (without "all_") are set in each config-lang.in.
31137# `language' must be a single word so is spelled singularly.
31138all_languages=
31139all_compilers=
31140all_outputs='Makefile'
31141# List of language configure and makefile fragments.
31142all_lang_configurefrags=
31143all_lang_makefrags=
31144# Additional files for gengtype
31145all_gtfiles="$target_gtfiles"
31146
31147# These are the languages that are set in --enable-languages,
31148# and are available in the GCC tree.
31149all_selected_languages=
31150
31151# Add the language fragments.
31152# Languages are added via two mechanisms.  Some information must be
31153# recorded in makefile variables, these are defined in config-lang.in.
31154# We accumulate them and plug them into the main Makefile.
31155# The other mechanism is a set of hooks for each of the main targets
31156# like `clean', `install', etc.
31157
31158language_hooks="Make-hooks"
31159
31160for lang in ${srcdir}/*/config-lang.in
31161do
31162	test "$lang" = "${srcdir}/*/config-lang.in" && continue
31163
31164        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
31165        if test "x$lang_alias" = x
31166        then
31167              echo "$lang doesn't set \$language." 1>&2
31168              exit 1
31169        fi
31170        subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31171        subdirs="$subdirs $subdir"
31172
31173	# $gcc_subdir is where the gcc integration files are to be found
31174	# for a language, both for internal compiler purposes (compiler
31175	# sources implementing front-end to GCC tree converters), and for
31176	# build infrastructure purposes (Make-lang.in, etc.)
31177	#
31178	# This will be <subdir> (relative to $srcdir) if a line like
31179	# gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31180	# is found in <langdir>/config-lang.in, and will remain <langdir>
31181	# otherwise.
31182	#
31183	# Except for the language alias (fetched above), the regular
31184	# "config-lang.in" contents are always retrieved from $gcc_subdir,
31185	# so a <langdir>/config-lang.in setting gcc_subdir typically sets
31186	# only this and the language alias.
31187
31188        gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
31189        if [ "$gcc_subdir" = "" ]; then
31190           gcc_subdir="$subdir"
31191        fi
31192
31193        case ",$enable_languages," in
31194        *,$lang_alias,*)
31195            all_selected_languages="$all_selected_languages $lang_alias"
31196            if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31197                lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31198	    fi
31199	    ;;
31200        esac
31201
31202	language=
31203	boot_language=
31204	compilers=
31205	outputs=
31206	gtfiles=
31207	subdir_requires=
31208	. ${srcdir}/$gcc_subdir/config-lang.in
31209	if test "x$language" = x
31210	then
31211		echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31212		exit 1
31213	fi
31214
31215	ok=:
31216        case ",$enable_languages," in
31217        	*,$lang_alias,*) ;;
31218		*)
31219			for i in $subdir_requires; do
31220				test -f "${srcdir}/$i/config-lang.in" && continue
31221				ok=false
31222				break
31223			done
31224		;;
31225	esac
31226	$ok || continue
31227
31228	all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31229	if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31230	    # Put c/Make-lang.in fragment first to match serialization languages order.
31231	    all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31232	else
31233	    all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31234	fi
31235	if test -f $srcdir/$gcc_subdir/lang.opt; then
31236	    lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31237	    all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31238	fi
31239	if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31240	    lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31241	fi
31242	all_languages="$all_languages $language"
31243	all_compilers="$all_compilers $compilers"
31244	all_outputs="$all_outputs $outputs"
31245	all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31246        case ",$enable_languages," in
31247        	*,lto,*)
31248
31249$as_echo "#define ENABLE_LTO 1" >>confdefs.h
31250
31251		    enable_lto=yes
31252
31253		    ;;
31254		*) ;;
31255	esac
31256done
31257
31258check_languages=
31259for language in $all_selected_languages
31260do
31261	check_languages="$check_languages check-$language"
31262done
31263
31264selftest_languages=
31265for language in $all_selected_languages
31266do
31267	selftest_languages="$selftest_languages selftest-$language"
31268done
31269
31270# We link each language in with a set of hooks, reached indirectly via
31271# lang.${target}.  Only do so for selected languages.
31272
31273rm -f Make-hooks
31274touch Make-hooks
31275target_list="all.cross start.encap rest.encap tags \
31276	install-common install-man install-info install-pdf install-html dvi \
31277	pdf html uninstall info man srcextra srcman srcinfo \
31278	mostlyclean clean distclean maintainer-clean install-plugin"
31279
31280for t in $target_list
31281do
31282	x=
31283	for lang in $all_selected_languages
31284	do
31285		x="$x $lang.$t"
31286	done
31287	echo "lang.$t: $x" >> Make-hooks
31288done
31289
31290echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31291echo "SERIAL_LIST =" >> Make-hooks
31292echo else >> Make-hooks
31293lang_cnt=0
31294lang_list=
31295prev=c
31296serialization_languages=c
31297for lang in $all_selected_languages
31298do
31299	test $lang = c && continue
31300	if test $lang = lto; then
31301		serialization_languages="$serialization_languages lto1 lto2"
31302	else
31303		serialization_languages="$serialization_languages $lang"
31304	fi
31305done
31306for lang in $serialization_languages
31307do
31308	test $lang = c && continue
31309	lang_cnt=`expr $lang_cnt + 1`
31310	lang_list=" $prev$lang_list"
31311	prev=${lang}
31312done
31313echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31314echo endif >> Make-hooks
31315echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31316echo "INDEX.c = 0" >> Make-hooks
31317lang_idx=1
31318for lang in $serialization_languages
31319do
31320	test $lang = c && continue
31321	echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31322	echo "INDEX.$lang = $lang_idx" >> Make-hooks
31323	lang_cnt=`expr $lang_cnt - 1`
31324	lang_idx=`expr $lang_idx + 1`
31325done
31326
31327# --------
31328# Option include files
31329# --------
31330
31331${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31332option_includes="option-includes.mk"
31333
31334
31335# --------
31336# UNSORTED
31337# --------
31338
31339# Create .gdbinit.
31340
31341echo "dir ." > .gdbinit
31342echo "dir ${srcdir}" >> .gdbinit
31343if test x$gdb_needs_out_file_path = xyes
31344then
31345	echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31346fi
31347if test "x$subdirs" != x; then
31348	for s in $subdirs
31349	do
31350		echo "dir ${srcdir}/$s" >> .gdbinit
31351	done
31352fi
31353echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31354echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31355
31356# Put a breakpoint on __asan_report_error to help with debugging buffer
31357# overflow.
31358case "$CFLAGS" in
31359*-fsanitize=address*)
31360  echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31361  ;;
31362esac
31363
31364gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31365
31366
31367
31368# Find a directory in which to install a shared libgcc.
31369
31370# Check whether --enable-version-specific-runtime-libs was given.
31371if test "${enable_version_specific_runtime_libs+set}" = set; then :
31372  enableval=$enable_version_specific_runtime_libs;
31373fi
31374
31375
31376# Substitute configuration variables
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
31420
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432
31433
31434
31435
31436
31437
31438
31439
31440
31441
31442
31443
31444
31445
31446# Echo link setup.
31447if test x${build} = x${host} ; then
31448  if test x${host} = x${target} ; then
31449    echo "Links are now set up to build a native compiler for ${target}." 1>&2
31450  else
31451    echo "Links are now set up to build a cross-compiler" 1>&2
31452    echo " from ${host} to ${target}." 1>&2
31453  fi
31454else
31455  if test x${host} = x${target} ; then
31456    echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31457    echo " for ${target}." 1>&2
31458  else
31459    echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31460    echo " from ${host} to ${target}." 1>&2
31461  fi
31462fi
31463
31464
31465
31466
31467
31468
31469if test "x${ISLLIBS}" != "x" ; then
31470
31471$as_echo "#define HAVE_isl 1" >>confdefs.h
31472
31473fi
31474
31475# Check for plugin support
31476   # Check whether --enable-plugin was given.
31477if test "${enable_plugin+set}" = set; then :
31478  enableval=$enable_plugin; enable_plugin=$enableval
31479else
31480  enable_plugin=yes; default_plugin=yes
31481fi
31482
31483
31484   pluginlibs=
31485   plugin_check=yes
31486
31487   case "${host}" in
31488     *-*-mingw*)
31489       # Since plugin support under MinGW is not as straightforward as on
31490       # other platforms (e.g., we have to link import library, etc), we
31491       # only enable it if explicitly requested.
31492       if test x"$default_plugin" = x"yes"; then
31493         enable_plugin=no
31494       elif test x"$enable_plugin" = x"yes"; then
31495         # Use make's target variable to derive import library name.
31496         pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31497	 plugin_check=no
31498       fi
31499     ;;
31500     *-*-darwin*)
31501       if test x$build = x$host; then
31502	 export_sym_check="nm${exeext} -g"
31503       elif test x$host = x$target; then
31504	 export_sym_check="$gcc_cv_nm -g"
31505       else
31506	 export_sym_check=
31507       fi
31508     ;;
31509     *)
31510       if test x$build = x$host; then
31511	 export_sym_check="objdump${exeext} -T"
31512       elif test x$host = x$target; then
31513	 export_sym_check="$gcc_cv_objdump -T"
31514       else
31515	 export_sym_check=
31516       fi
31517     ;;
31518   esac
31519
31520   if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31521
31522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31523$as_echo_n "checking for exported symbols... " >&6; }
31524     if test "x$export_sym_check" != x; then
31525       echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31526       ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31527       if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31528	 : # No need to use a flag
31529	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31530$as_echo "yes" >&6; }
31531       else
31532	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31533$as_echo "yes" >&6; }
31534	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31535$as_echo_n "checking for -rdynamic... " >&6; }
31536	 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31537	 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31538	   plugin_rdynamic=yes
31539	   pluginlibs="-rdynamic"
31540	 else
31541	   plugin_rdynamic=no
31542	   enable_plugin=no
31543	 fi
31544	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31545$as_echo "$plugin_rdynamic" >&6; }
31546       fi
31547     else
31548       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31549$as_echo "unable to check" >&6; }
31550     fi
31551
31552     # Check -ldl
31553     saved_LIBS="$LIBS"
31554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31555$as_echo_n "checking for library containing dlopen... " >&6; }
31556if ${ac_cv_search_dlopen+:} false; then :
31557  $as_echo_n "(cached) " >&6
31558else
31559  ac_func_search_save_LIBS=$LIBS
31560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31561/* end confdefs.h.  */
31562
31563/* Override any GCC internal prototype to avoid an error.
31564   Use char because int might match the return type of a GCC
31565   builtin and then its argument prototype would still apply.  */
31566#ifdef __cplusplus
31567extern "C"
31568#endif
31569char dlopen ();
31570int
31571main ()
31572{
31573return dlopen ();
31574  ;
31575  return 0;
31576}
31577_ACEOF
31578for ac_lib in '' dl; do
31579  if test -z "$ac_lib"; then
31580    ac_res="none required"
31581  else
31582    ac_res=-l$ac_lib
31583    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31584  fi
31585  if ac_fn_cxx_try_link "$LINENO"; then :
31586  ac_cv_search_dlopen=$ac_res
31587fi
31588rm -f core conftest.err conftest.$ac_objext \
31589    conftest$ac_exeext
31590  if ${ac_cv_search_dlopen+:} false; then :
31591  break
31592fi
31593done
31594if ${ac_cv_search_dlopen+:} false; then :
31595
31596else
31597  ac_cv_search_dlopen=no
31598fi
31599rm conftest.$ac_ext
31600LIBS=$ac_func_search_save_LIBS
31601fi
31602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31603$as_echo "$ac_cv_search_dlopen" >&6; }
31604ac_res=$ac_cv_search_dlopen
31605if test "$ac_res" != no; then :
31606  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31607
31608fi
31609
31610     if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31611       pluginlibs="$pluginlibs -ldl"
31612     fi
31613     LIBS="$saved_LIBS"
31614
31615     # Check that we can build shared objects with -fPIC -shared
31616     saved_LDFLAGS="$LDFLAGS"
31617     saved_CFLAGS="$CFLAGS"
31618     case "${host}" in
31619       *-*-darwin*)
31620	 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31621	 CFLAGS="$CFLAGS -fPIC"
31622	 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31623       ;;
31624       *)
31625	 CFLAGS="$CFLAGS -fPIC"
31626	 LDFLAGS="$LDFLAGS -fPIC -shared"
31627       ;;
31628     esac
31629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31630$as_echo_n "checking for -fPIC -shared... " >&6; }
31631     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31632/* end confdefs.h.  */
31633extern int X;
31634int
31635main ()
31636{
31637return X == 0;
31638  ;
31639  return 0;
31640}
31641_ACEOF
31642if ac_fn_cxx_try_link "$LINENO"; then :
31643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31644$as_echo "yes" >&6; }; have_pic_shared=yes
31645else
31646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31647$as_echo "no" >&6; }; have_pic_shared=no
31648fi
31649rm -f core conftest.err conftest.$ac_objext \
31650    conftest$ac_exeext conftest.$ac_ext
31651     if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
31652       pluginlibs=
31653       enable_plugin=no
31654     fi
31655     LDFLAGS="$saved_LDFLAGS"
31656     CFLAGS="$saved_CFLAGS"
31657
31658     # If plugin support had been requested but not available, fail.
31659     if test x"$enable_plugin" = x"no" ; then
31660       if test x"$default_plugin" != x"yes"; then
31661	 as_fn_error $? "
31662   Building GCC with plugin support requires a host that supports
31663   -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31664       fi
31665     fi
31666   fi
31667
31668
31669
31670if test x"$enable_plugin" = x"yes"; then
31671
31672$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31673
31674fi
31675
31676
31677# Enable --enable-host-shared
31678# Check whether --enable-host-shared was given.
31679if test "${enable_host_shared+set}" = set; then :
31680  enableval=$enable_host_shared; PICFLAG=-fPIC
31681else
31682  PICFLAG=
31683fi
31684
31685
31686
31687
31688
31689# Check whether --enable-libquadmath-support was given.
31690if test "${enable_libquadmath_support+set}" = set; then :
31691  enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31692else
31693  ENABLE_LIBQUADMATH_SUPPORT=yes
31694fi
31695
31696if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31697
31698$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31699
31700fi
31701
31702
31703# Specify what hash style to use by default.
31704
31705# Check whether --with-linker-hash-style was given.
31706if test "${with_linker_hash_style+set}" = set; then :
31707  withval=$with_linker_hash_style; case x"$withval" in
31708   xsysv)
31709     LINKER_HASH_STYLE=sysv
31710     ;;
31711   xgnu)
31712     LINKER_HASH_STYLE=gnu
31713     ;;
31714   xboth)
31715     LINKER_HASH_STYLE=both
31716     ;;
31717   *)
31718     as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31719     ;;
31720 esac
31721else
31722  LINKER_HASH_STYLE=''
31723fi
31724
31725if test x"${LINKER_HASH_STYLE}" != x; then
31726
31727cat >>confdefs.h <<_ACEOF
31728#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31729_ACEOF
31730
31731fi
31732
31733# Specify what should be the default of -fdiagnostics-color option.
31734
31735# Check whether --with-diagnostics-color was given.
31736if test "${with_diagnostics_color+set}" = set; then :
31737  withval=$with_diagnostics_color; case x"$withval" in
31738   xnever)
31739     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
31740     ;;
31741   xauto)
31742     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31743     ;;
31744   xauto-if-env)
31745     DIAGNOSTICS_COLOR_DEFAULT=-1
31746     ;;
31747   xalways)
31748     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
31749     ;;
31750   *)
31751     as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
31752     ;;
31753 esac
31754else
31755  DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31756fi
31757
31758
31759cat >>confdefs.h <<_ACEOF
31760#define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
31761_ACEOF
31762
31763
31764# Specify what should be the default of -fdiagnostics-urls option.
31765
31766# Check whether --with-diagnostics-urls was given.
31767if test "${with_diagnostics_urls+set}" = set; then :
31768  withval=$with_diagnostics_urls; case x"$withval" in
31769   xnever)
31770     DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
31771     ;;
31772   xauto)
31773     DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31774     ;;
31775   xauto-if-env)
31776     DIAGNOSTICS_URLS_DEFAULT=-1
31777     ;;
31778   xalways)
31779     DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
31780     ;;
31781   *)
31782     as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
31783     ;;
31784 esac
31785else
31786  DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31787fi
31788
31789
31790cat >>confdefs.h <<_ACEOF
31791#define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
31792_ACEOF
31793
31794
31795# Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
31796# of jit/jit-playback.c.
31797gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
31798echo "gcc_driver_version: ${gcc_driver_version}"
31799cat > gcc-driver-name.h <<EOF
31800#define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
31801EOF
31802
31803# Check whether --enable-default-pie was given.
31804# Check whether --enable-default-pie was given.
31805if test "${enable_default_pie+set}" = set; then :
31806  enableval=$enable_default_pie; enable_default_pie=$enableval
31807else
31808  enable_default_pie=no
31809fi
31810
31811if test x$enable_default_pie = xyes ; then
31812
31813$as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
31814
31815fi
31816
31817
31818# Check if -fno-PIE works.
31819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
31820$as_echo_n "checking for -fno-PIE option... " >&6; }
31821if ${gcc_cv_c_no_fpie+:} false; then :
31822  $as_echo_n "(cached) " >&6
31823else
31824  saved_CXXFLAGS="$CXXFLAGS"
31825   CXXFLAGS="$CXXFLAGS -fno-PIE"
31826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31827/* end confdefs.h.  */
31828int main(void) {return 0;}
31829_ACEOF
31830if ac_fn_cxx_try_compile "$LINENO"; then :
31831  gcc_cv_c_no_fpie=yes
31832else
31833  gcc_cv_c_no_fpie=no
31834fi
31835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31836   CXXFLAGS="$saved_CXXFLAGS"
31837fi
31838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
31839$as_echo "$gcc_cv_c_no_fpie" >&6; }
31840if test "$gcc_cv_c_no_fpie" = "yes"; then
31841  NO_PIE_CFLAGS="-fno-PIE"
31842fi
31843
31844
31845# Check if -no-pie works.
31846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
31847$as_echo_n "checking for -no-pie option... " >&6; }
31848if ${gcc_cv_no_pie+:} false; then :
31849  $as_echo_n "(cached) " >&6
31850else
31851  saved_LDFLAGS="$LDFLAGS"
31852   LDFLAGS="$LDFLAGS -no-pie"
31853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31854/* end confdefs.h.  */
31855int main(void) {return 0;}
31856_ACEOF
31857if ac_fn_cxx_try_link "$LINENO"; then :
31858  gcc_cv_no_pie=yes
31859else
31860  gcc_cv_no_pie=no
31861fi
31862rm -f core conftest.err conftest.$ac_objext \
31863    conftest$ac_exeext conftest.$ac_ext
31864   LDFLAGS="$saved_LDFLAGS"
31865fi
31866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
31867$as_echo "$gcc_cv_no_pie" >&6; }
31868if test "$gcc_cv_no_pie" = "yes"; then
31869  NO_PIE_FLAG="-no-pie"
31870fi
31871
31872
31873# Enable Intel CET on Intel CET enabled host if jit is enabled.
31874 # Check whether --enable-cet was given.
31875if test "${enable_cet+set}" = set; then :
31876  enableval=$enable_cet;
31877      case "$enableval" in
31878       yes|no|auto) ;;
31879       *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
31880                          esac
31881
31882else
31883  enable_cet=auto
31884fi
31885
31886
31887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
31888$as_echo_n "checking for CET support... " >&6; }
31889
31890case "$host" in
31891  i[34567]86-*-linux* | x86_64-*-linux*)
31892    may_have_cet=yes
31893    cet_save_CFLAGS="$CFLAGS"
31894    CFLAGS="$CFLAGS -fcf-protection"
31895    case "$enable_cet" in
31896      auto)
31897	# Check if target supports multi-byte NOPs
31898	# and if compiler and assembler support CET.
31899	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31900/* end confdefs.h.  */
31901
31902int
31903main ()
31904{
31905
31906#if !defined(__SSE2__)
31907#error target does not support multi-byte NOPs
31908#else
31909asm ("setssbsy");
31910#endif
31911
31912  ;
31913  return 0;
31914}
31915_ACEOF
31916if ac_fn_cxx_try_compile "$LINENO"; then :
31917  enable_cet=yes
31918else
31919  enable_cet=no
31920fi
31921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31922	;;
31923      yes)
31924	# Check if compiler and assembler support CET.
31925	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31926/* end confdefs.h.  */
31927
31928int
31929main ()
31930{
31931asm ("setssbsy");
31932  ;
31933  return 0;
31934}
31935_ACEOF
31936if ac_fn_cxx_try_compile "$LINENO"; then :
31937  support_cet=yes
31938else
31939  support_cet=no
31940fi
31941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31942	if test $support_cet = "no"; then
31943	  if test x$enable_bootstrap != xno \
31944	     && test -z "${with_build_subdir}" \
31945	     && (test ! -f ../stage_current \
31946	         || test `cat ../stage_current` != "stage1"); then
31947	    # Require CET support only for the final GCC build.
31948	    as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
31949	  else
31950	    # Don't enable CET without CET support for non-bootstrap
31951	    # build, in stage1 nor for build support.
31952	    enable_cet=no
31953	  fi
31954	fi
31955	;;
31956    esac
31957    CFLAGS="$cet_save_CFLAGS"
31958    ;;
31959  *)
31960    may_have_cet=no
31961    enable_cet=no
31962    ;;
31963esac
31964
31965cet_save_CFLAGS="$CFLAGS"
31966CFLAGS="$CFLAGS -fcf-protection=none"
31967cet_save_LDFLAGS="$LDFLAGS"
31968LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
31969if test x$may_have_cet = xyes; then
31970  # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
31971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31972/* end confdefs.h.  */
31973
31974int
31975main ()
31976{
31977return 0;
31978  ;
31979  return 0;
31980}
31981_ACEOF
31982if ac_fn_cxx_try_link "$LINENO"; then :
31983  may_have_cet=yes
31984else
31985  may_have_cet=no
31986fi
31987rm -f core conftest.err conftest.$ac_objext \
31988    conftest$ac_exeext conftest.$ac_ext
31989fi
31990
31991if test x$may_have_cet = xyes; then
31992  if test x$cross_compiling = xno; then
31993    if test "$cross_compiling" = yes; then :
31994  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31996as_fn_error $? "cannot run test program while cross compiling
31997See \`config.log' for more details" "$LINENO" 5; }
31998else
31999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32000/* end confdefs.h.  */
32001
32002static void
32003foo (void)
32004{
32005}
32006
32007static void
32008__attribute__ ((noinline, noclone))
32009xxx (void (*f) (void))
32010{
32011  f ();
32012}
32013
32014static void
32015__attribute__ ((noinline, noclone))
32016bar (void)
32017{
32018  xxx (foo);
32019}
32020
32021int
32022main ()
32023{
32024  bar ();
32025  return 0;
32026}
32027
32028_ACEOF
32029if ac_fn_cxx_try_run "$LINENO"; then :
32030  have_cet=no
32031else
32032  have_cet=yes
32033fi
32034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32035  conftest.$ac_objext conftest.beam conftest.$ac_ext
32036fi
32037
32038    if test x$enable_cet = xno -a x$have_cet = xyes; then
32039      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32040    fi
32041  fi
32042else
32043  # Enable CET in cross compiler if possible so that it will run on both
32044  # CET and non-CET hosts.
32045  have_cet=yes
32046fi
32047if test x$enable_cet = xyes; then
32048  CET_HOST_FLAGS="-fcf-protection"
32049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32050$as_echo "yes" >&6; }
32051else
32052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32053$as_echo "no" >&6; }
32054fi
32055CFLAGS="$cet_save_CFLAGS"
32056LDFLAGS="$cet_save_LDFLAGS"
32057
32058case x$enable_languages in
32059*jit*)
32060  ;;
32061*)
32062  CET_HOST_FLAGS=
32063  ;;
32064esac
32065
32066
32067# Check linker supports '-z bndplt'
32068ld_bndplt_support=no
32069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32070$as_echo_n "checking linker -z bndplt option... " >&6; }
32071if test x"$ld_is_gold" = xno; then
32072  if test $in_tree_ld = yes ; then
32073    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
32074      ld_bndplt_support=yes
32075    fi
32076  elif test x$gcc_cv_ld != x; then
32077    # Check if linker supports -a bndplt option
32078    if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32079      ld_bndplt_support=yes
32080    fi
32081  fi
32082fi
32083if test x"$ld_bndplt_support" = xyes; then
32084
32085$as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32086
32087fi
32088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32089$as_echo "$ld_bndplt_support" >&6; }
32090
32091# Check linker supports '--push-state'/'--pop-state'
32092ld_pushpopstate_support=no
32093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32094$as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32095if test x"$ld_is_gold" = xno; then
32096  if test $in_tree_ld = yes ; then
32097    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
32098      ld_pushpopstate_support=yes
32099    fi
32100  elif test x$gcc_cv_ld != x; then
32101    # Check if linker supports --push-state/--pop-state options
32102    if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32103      ld_pushpopstate_support=yes
32104    fi
32105  fi
32106fi
32107if test x"$ld_pushpopstate_support" = xyes; then
32108
32109$as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32110
32111fi
32112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32113$as_echo "$ld_pushpopstate_support" >&6; }
32114
32115# On s390, float_t has historically been statically defined as double for no
32116# good reason. To comply with the C standard in the light of this definition,
32117# gcc has evaluated float expressions in double precision when in
32118# standards-compatible mode or when given -fexcess-precision=standard. To enable
32119# a smooth transition towards the new model used by most architectures, where
32120# gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32121# float_t from that, this behavior can be configured with
32122# --enable-s390-excess-float-precision. When given as enabled, that flag selects
32123# the old model. When omitted, native builds and cross compiles that have target
32124# libc headers will detect whether libc clamps float_t to double and in that
32125# case maintain the old model. Otherwise, they will default to the new model.
32126# Check whether --enable-s390-excess-float-precision was given.
32127if test "${enable_s390_excess_float_precision+set}" = set; then :
32128  enableval=$enable_s390_excess_float_precision;
32129else
32130  enable_s390_excess_float_precision=auto
32131fi
32132
32133
32134case $target in
32135  s390*-linux*)
32136  if test x"$enable_s390_excess_float_precision" = xauto; then
32137    # Can we autodetect the behavior of the target libc?
32138    if test "$target" = "$host" -a "$host" = "$build"; then
32139      enable_s390_excess_float_precision=autodetect
32140    elif test "x$with_headers" != xno; then
32141      # cross build. are target headers available?
32142      # carefully coerce the build-system compiler to use target headers
32143      saved_CXXFLAGS="$CXXFLAGS"
32144      fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32145      CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32146      CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32147      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32148/* end confdefs.h.  */
32149
32150#include <math.h>
32151
32152_ACEOF
32153if ac_fn_cxx_try_compile "$LINENO"; then :
32154  enable_s390_excess_float_precision=autodetect
32155fi
32156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32157      CXXFLAGS="$saved_CXXFLAGS"
32158    fi
32159
32160    if test x"$enable_s390_excess_float_precision" = xautodetect; then
32161      saved_CXXFLAGS="$CXXFLAGS"
32162      if ! test "$target" = "$host" -a "$host" = "$build"; then
32163        CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32164	unset CROSS_TEST_CXXFLAGS
32165      fi
32166      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32167$as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32168if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32169  $as_echo_n "(cached) " >&6
32170else
32171
32172        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32173/* end confdefs.h.  */
32174
32175#define __FLT_EVAL_METHOD__ 0
32176#include <math.h>
32177int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32178
32179_ACEOF
32180if ac_fn_cxx_try_compile "$LINENO"; then :
32181  gcc_cv_float_t_clamped_to_double=yes
32182else
32183  gcc_cv_float_t_clamped_to_double=no
32184fi
32185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32186fi
32187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32188$as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32189      CXXFLAGS="$saved_CXXFLAGS"
32190      enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32191    else
32192      # no way to detect behavior of target libc, default to new model
32193      enable_s390_excess_float_precision=no
32194    fi
32195  fi
32196
32197
32198  if test x"$enable_s390_excess_float_precision" = xyes; then
32199
32200$as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32201
32202  fi
32203  ;;
32204esac
32205
32206# Configure the subdirectories
32207# AC_CONFIG_SUBDIRS($subdirs)
32208
32209# Create the Makefile
32210# and configure language subdirectories
32211ac_config_files="$ac_config_files $all_outputs"
32212
32213
32214ac_config_commands="$ac_config_commands default"
32215
32216cat >confcache <<\_ACEOF
32217# This file is a shell script that caches the results of configure
32218# tests run on this system so they can be shared between configure
32219# scripts and configure runs, see configure's option --config-cache.
32220# It is not useful on other systems.  If it contains results you don't
32221# want to keep, you may remove or edit it.
32222#
32223# config.status only pays attention to the cache file if you give it
32224# the --recheck option to rerun configure.
32225#
32226# `ac_cv_env_foo' variables (set or unset) will be overridden when
32227# loading this file, other *unset* `ac_cv_foo' will be assigned the
32228# following values.
32229
32230_ACEOF
32231
32232# The following way of writing the cache mishandles newlines in values,
32233# but we know of no workaround that is simple, portable, and efficient.
32234# So, we kill variables containing newlines.
32235# Ultrix sh set writes to stderr and can't be redirected directly,
32236# and sets the high bit in the cache file unless we assign to the vars.
32237(
32238  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32239    eval ac_val=\$$ac_var
32240    case $ac_val in #(
32241    *${as_nl}*)
32242      case $ac_var in #(
32243      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32244$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32245      esac
32246      case $ac_var in #(
32247      _ | IFS | as_nl) ;; #(
32248      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32249      *) { eval $ac_var=; unset $ac_var;} ;;
32250      esac ;;
32251    esac
32252  done
32253
32254  (set) 2>&1 |
32255    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32256    *${as_nl}ac_space=\ *)
32257      # `set' does not quote correctly, so add quotes: double-quote
32258      # substitution turns \\\\ into \\, and sed turns \\ into \.
32259      sed -n \
32260	"s/'/'\\\\''/g;
32261	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32262      ;; #(
32263    *)
32264      # `set' quotes correctly as required by POSIX, so do not add quotes.
32265      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32266      ;;
32267    esac |
32268    sort
32269) |
32270  sed '
32271     /^ac_cv_env_/b end
32272     t clear
32273     :clear
32274     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32275     t end
32276     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32277     :end' >>confcache
32278if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32279  if test -w "$cache_file"; then
32280    if test "x$cache_file" != "x/dev/null"; then
32281      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32282$as_echo "$as_me: updating cache $cache_file" >&6;}
32283      if test ! -f "$cache_file" || test -h "$cache_file"; then
32284	cat confcache >"$cache_file"
32285      else
32286        case $cache_file in #(
32287        */* | ?:*)
32288	  mv -f confcache "$cache_file"$$ &&
32289	  mv -f "$cache_file"$$ "$cache_file" ;; #(
32290        *)
32291	  mv -f confcache "$cache_file" ;;
32292	esac
32293      fi
32294    fi
32295  else
32296    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32297$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32298  fi
32299fi
32300rm -f confcache
32301
32302test "x$prefix" = xNONE && prefix=$ac_default_prefix
32303# Let make expand exec_prefix.
32304test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32305
32306DEFS=-DHAVE_CONFIG_H
32307
32308ac_libobjs=
32309ac_ltlibobjs=
32310U=
32311for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32312  # 1. Remove the extension, and $U if already installed.
32313  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32314  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32315  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32316  #    will be set to the directory where LIBOBJS objects are built.
32317  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32318  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32319done
32320LIBOBJS=$ac_libobjs
32321
32322LTLIBOBJS=$ac_ltlibobjs
32323
32324
32325
32326
32327: "${CONFIG_STATUS=./config.status}"
32328ac_write_fail=0
32329ac_clean_files_save=$ac_clean_files
32330ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32331{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32332$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32333as_write_fail=0
32334cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32335#! $SHELL
32336# Generated by $as_me.
32337# Run this file to recreate the current configuration.
32338# Compiler output produced by configure, useful for debugging
32339# configure, is in config.log if it exists.
32340
32341debug=false
32342ac_cs_recheck=false
32343ac_cs_silent=false
32344
32345SHELL=\${CONFIG_SHELL-$SHELL}
32346export SHELL
32347_ASEOF
32348cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32349## -------------------- ##
32350## M4sh Initialization. ##
32351## -------------------- ##
32352
32353# Be more Bourne compatible
32354DUALCASE=1; export DUALCASE # for MKS sh
32355if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32356  emulate sh
32357  NULLCMD=:
32358  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32359  # is contrary to our usage.  Disable this feature.
32360  alias -g '${1+"$@"}'='"$@"'
32361  setopt NO_GLOB_SUBST
32362else
32363  case `(set -o) 2>/dev/null` in #(
32364  *posix*) :
32365    set -o posix ;; #(
32366  *) :
32367     ;;
32368esac
32369fi
32370
32371
32372as_nl='
32373'
32374export as_nl
32375# Printing a long string crashes Solaris 7 /usr/bin/printf.
32376as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32377as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32378as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32379# Prefer a ksh shell builtin over an external printf program on Solaris,
32380# but without wasting forks for bash or zsh.
32381if test -z "$BASH_VERSION$ZSH_VERSION" \
32382    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32383  as_echo='print -r --'
32384  as_echo_n='print -rn --'
32385elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32386  as_echo='printf %s\n'
32387  as_echo_n='printf %s'
32388else
32389  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32390    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32391    as_echo_n='/usr/ucb/echo -n'
32392  else
32393    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32394    as_echo_n_body='eval
32395      arg=$1;
32396      case $arg in #(
32397      *"$as_nl"*)
32398	expr "X$arg" : "X\\(.*\\)$as_nl";
32399	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32400      esac;
32401      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32402    '
32403    export as_echo_n_body
32404    as_echo_n='sh -c $as_echo_n_body as_echo'
32405  fi
32406  export as_echo_body
32407  as_echo='sh -c $as_echo_body as_echo'
32408fi
32409
32410# The user is always right.
32411if test "${PATH_SEPARATOR+set}" != set; then
32412  PATH_SEPARATOR=:
32413  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32414    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32415      PATH_SEPARATOR=';'
32416  }
32417fi
32418
32419
32420# IFS
32421# We need space, tab and new line, in precisely that order.  Quoting is
32422# there to prevent editors from complaining about space-tab.
32423# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32424# splitting by setting IFS to empty value.)
32425IFS=" ""	$as_nl"
32426
32427# Find who we are.  Look in the path if we contain no directory separator.
32428as_myself=
32429case $0 in #((
32430  *[\\/]* ) as_myself=$0 ;;
32431  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32432for as_dir in $PATH
32433do
32434  IFS=$as_save_IFS
32435  test -z "$as_dir" && as_dir=.
32436    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32437  done
32438IFS=$as_save_IFS
32439
32440     ;;
32441esac
32442# We did not find ourselves, most probably we were run as `sh COMMAND'
32443# in which case we are not to be found in the path.
32444if test "x$as_myself" = x; then
32445  as_myself=$0
32446fi
32447if test ! -f "$as_myself"; then
32448  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32449  exit 1
32450fi
32451
32452# Unset variables that we do not need and which cause bugs (e.g. in
32453# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
32454# suppresses any "Segmentation fault" message there.  '((' could
32455# trigger a bug in pdksh 5.2.14.
32456for as_var in BASH_ENV ENV MAIL MAILPATH
32457do eval test x\${$as_var+set} = xset \
32458  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32459done
32460PS1='$ '
32461PS2='> '
32462PS4='+ '
32463
32464# NLS nuisances.
32465LC_ALL=C
32466export LC_ALL
32467LANGUAGE=C
32468export LANGUAGE
32469
32470# CDPATH.
32471(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32472
32473
32474# as_fn_error STATUS ERROR [LINENO LOG_FD]
32475# ----------------------------------------
32476# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32477# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32478# script with STATUS, using 1 if that was 0.
32479as_fn_error ()
32480{
32481  as_status=$1; test $as_status -eq 0 && as_status=1
32482  if test "$4"; then
32483    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32484    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32485  fi
32486  $as_echo "$as_me: error: $2" >&2
32487  as_fn_exit $as_status
32488} # as_fn_error
32489
32490
32491# as_fn_set_status STATUS
32492# -----------------------
32493# Set $? to STATUS, without forking.
32494as_fn_set_status ()
32495{
32496  return $1
32497} # as_fn_set_status
32498
32499# as_fn_exit STATUS
32500# -----------------
32501# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32502as_fn_exit ()
32503{
32504  set +e
32505  as_fn_set_status $1
32506  exit $1
32507} # as_fn_exit
32508
32509# as_fn_unset VAR
32510# ---------------
32511# Portably unset VAR.
32512as_fn_unset ()
32513{
32514  { eval $1=; unset $1;}
32515}
32516as_unset=as_fn_unset
32517# as_fn_append VAR VALUE
32518# ----------------------
32519# Append the text in VALUE to the end of the definition contained in VAR. Take
32520# advantage of any shell optimizations that allow amortized linear growth over
32521# repeated appends, instead of the typical quadratic growth present in naive
32522# implementations.
32523if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32524  eval 'as_fn_append ()
32525  {
32526    eval $1+=\$2
32527  }'
32528else
32529  as_fn_append ()
32530  {
32531    eval $1=\$$1\$2
32532  }
32533fi # as_fn_append
32534
32535# as_fn_arith ARG...
32536# ------------------
32537# Perform arithmetic evaluation on the ARGs, and store the result in the
32538# global $as_val. Take advantage of shells that can avoid forks. The arguments
32539# must be portable across $(()) and expr.
32540if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32541  eval 'as_fn_arith ()
32542  {
32543    as_val=$(( $* ))
32544  }'
32545else
32546  as_fn_arith ()
32547  {
32548    as_val=`expr "$@" || test $? -eq 1`
32549  }
32550fi # as_fn_arith
32551
32552
32553if expr a : '\(a\)' >/dev/null 2>&1 &&
32554   test "X`expr 00001 : '.*\(...\)'`" = X001; then
32555  as_expr=expr
32556else
32557  as_expr=false
32558fi
32559
32560if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32561  as_basename=basename
32562else
32563  as_basename=false
32564fi
32565
32566if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32567  as_dirname=dirname
32568else
32569  as_dirname=false
32570fi
32571
32572as_me=`$as_basename -- "$0" ||
32573$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32574	 X"$0" : 'X\(//\)$' \| \
32575	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32576$as_echo X/"$0" |
32577    sed '/^.*\/\([^/][^/]*\)\/*$/{
32578	    s//\1/
32579	    q
32580	  }
32581	  /^X\/\(\/\/\)$/{
32582	    s//\1/
32583	    q
32584	  }
32585	  /^X\/\(\/\).*/{
32586	    s//\1/
32587	    q
32588	  }
32589	  s/.*/./; q'`
32590
32591# Avoid depending upon Character Ranges.
32592as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32593as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32594as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32595as_cr_digits='0123456789'
32596as_cr_alnum=$as_cr_Letters$as_cr_digits
32597
32598ECHO_C= ECHO_N= ECHO_T=
32599case `echo -n x` in #(((((
32600-n*)
32601  case `echo 'xy\c'` in
32602  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
32603  xy)  ECHO_C='\c';;
32604  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
32605       ECHO_T='	';;
32606  esac;;
32607*)
32608  ECHO_N='-n';;
32609esac
32610
32611rm -f conf$$ conf$$.exe conf$$.file
32612if test -d conf$$.dir; then
32613  rm -f conf$$.dir/conf$$.file
32614else
32615  rm -f conf$$.dir
32616  mkdir conf$$.dir 2>/dev/null
32617fi
32618if (echo >conf$$.file) 2>/dev/null; then
32619  if ln -s conf$$.file conf$$ 2>/dev/null; then
32620    as_ln_s='ln -s'
32621    # ... but there are two gotchas:
32622    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32623    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32624    # In both cases, we have to default to `cp -pR'.
32625    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32626      as_ln_s='cp -pR'
32627  elif ln conf$$.file conf$$ 2>/dev/null; then
32628    as_ln_s=ln
32629  else
32630    as_ln_s='cp -pR'
32631  fi
32632else
32633  as_ln_s='cp -pR'
32634fi
32635rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32636rmdir conf$$.dir 2>/dev/null
32637
32638
32639# as_fn_mkdir_p
32640# -------------
32641# Create "$as_dir" as a directory, including parents if necessary.
32642as_fn_mkdir_p ()
32643{
32644
32645  case $as_dir in #(
32646  -*) as_dir=./$as_dir;;
32647  esac
32648  test -d "$as_dir" || eval $as_mkdir_p || {
32649    as_dirs=
32650    while :; do
32651      case $as_dir in #(
32652      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32653      *) as_qdir=$as_dir;;
32654      esac
32655      as_dirs="'$as_qdir' $as_dirs"
32656      as_dir=`$as_dirname -- "$as_dir" ||
32657$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32658	 X"$as_dir" : 'X\(//\)[^/]' \| \
32659	 X"$as_dir" : 'X\(//\)$' \| \
32660	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32661$as_echo X"$as_dir" |
32662    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32663	    s//\1/
32664	    q
32665	  }
32666	  /^X\(\/\/\)[^/].*/{
32667	    s//\1/
32668	    q
32669	  }
32670	  /^X\(\/\/\)$/{
32671	    s//\1/
32672	    q
32673	  }
32674	  /^X\(\/\).*/{
32675	    s//\1/
32676	    q
32677	  }
32678	  s/.*/./; q'`
32679      test -d "$as_dir" && break
32680    done
32681    test -z "$as_dirs" || eval "mkdir $as_dirs"
32682  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32683
32684
32685} # as_fn_mkdir_p
32686if mkdir -p . 2>/dev/null; then
32687  as_mkdir_p='mkdir -p "$as_dir"'
32688else
32689  test -d ./-p && rmdir ./-p
32690  as_mkdir_p=false
32691fi
32692
32693
32694# as_fn_executable_p FILE
32695# -----------------------
32696# Test if FILE is an executable regular file.
32697as_fn_executable_p ()
32698{
32699  test -f "$1" && test -x "$1"
32700} # as_fn_executable_p
32701as_test_x='test -x'
32702as_executable_p=as_fn_executable_p
32703
32704# Sed expression to map a string onto a valid CPP name.
32705as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32706
32707# Sed expression to map a string onto a valid variable name.
32708as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32709
32710
32711exec 6>&1
32712## ----------------------------------- ##
32713## Main body of $CONFIG_STATUS script. ##
32714## ----------------------------------- ##
32715_ASEOF
32716test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32717
32718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32719# Save the log message, to keep $0 and so on meaningful, and to
32720# report actual input values of CONFIG_FILES etc. instead of their
32721# values after options handling.
32722ac_log="
32723This file was extended by $as_me, which was
32724generated by GNU Autoconf 2.69.  Invocation command line was
32725
32726  CONFIG_FILES    = $CONFIG_FILES
32727  CONFIG_HEADERS  = $CONFIG_HEADERS
32728  CONFIG_LINKS    = $CONFIG_LINKS
32729  CONFIG_COMMANDS = $CONFIG_COMMANDS
32730  $ $0 $@
32731
32732on `(hostname || uname -n) 2>/dev/null | sed 1q`
32733"
32734
32735_ACEOF
32736
32737case $ac_config_files in *"
32738"*) set x $ac_config_files; shift; ac_config_files=$*;;
32739esac
32740
32741case $ac_config_headers in *"
32742"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32743esac
32744
32745
32746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32747# Files that config.status was made for.
32748config_files="$ac_config_files"
32749config_headers="$ac_config_headers"
32750config_links="$ac_config_links"
32751config_commands="$ac_config_commands"
32752
32753_ACEOF
32754
32755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32756ac_cs_usage="\
32757\`$as_me' instantiates files and other configuration actions
32758from templates according to the current configuration.  Unless the files
32759and actions are specified as TAGs, all are instantiated by default.
32760
32761Usage: $0 [OPTION]... [TAG]...
32762
32763  -h, --help       print this help, then exit
32764  -V, --version    print version number and configuration settings, then exit
32765      --config     print configuration, then exit
32766  -q, --quiet, --silent
32767                   do not print progress messages
32768  -d, --debug      don't remove temporary files
32769      --recheck    update $as_me by reconfiguring in the same conditions
32770      --file=FILE[:TEMPLATE]
32771                   instantiate the configuration file FILE
32772      --header=FILE[:TEMPLATE]
32773                   instantiate the configuration header FILE
32774
32775Configuration files:
32776$config_files
32777
32778Configuration headers:
32779$config_headers
32780
32781Configuration links:
32782$config_links
32783
32784Configuration commands:
32785$config_commands
32786
32787Report bugs to the package provider."
32788
32789_ACEOF
32790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32791ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32792ac_cs_version="\\
32793config.status
32794configured by $0, generated by GNU Autoconf 2.69,
32795  with options \\"\$ac_cs_config\\"
32796
32797Copyright (C) 2012 Free Software Foundation, Inc.
32798This config.status script is free software; the Free Software Foundation
32799gives unlimited permission to copy, distribute and modify it."
32800
32801ac_pwd='$ac_pwd'
32802srcdir='$srcdir'
32803AWK='$AWK'
32804test -n "\$AWK" || AWK=awk
32805_ACEOF
32806
32807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32808# The default lists apply if the user does not specify any file.
32809ac_need_defaults=:
32810while test $# != 0
32811do
32812  case $1 in
32813  --*=?*)
32814    ac_option=`expr "X$1" : 'X\([^=]*\)='`
32815    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32816    ac_shift=:
32817    ;;
32818  --*=)
32819    ac_option=`expr "X$1" : 'X\([^=]*\)='`
32820    ac_optarg=
32821    ac_shift=:
32822    ;;
32823  *)
32824    ac_option=$1
32825    ac_optarg=$2
32826    ac_shift=shift
32827    ;;
32828  esac
32829
32830  case $ac_option in
32831  # Handling of the options.
32832  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32833    ac_cs_recheck=: ;;
32834  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32835    $as_echo "$ac_cs_version"; exit ;;
32836  --config | --confi | --conf | --con | --co | --c )
32837    $as_echo "$ac_cs_config"; exit ;;
32838  --debug | --debu | --deb | --de | --d | -d )
32839    debug=: ;;
32840  --file | --fil | --fi | --f )
32841    $ac_shift
32842    case $ac_optarg in
32843    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32844    '') as_fn_error $? "missing file argument" ;;
32845    esac
32846    as_fn_append CONFIG_FILES " '$ac_optarg'"
32847    ac_need_defaults=false;;
32848  --header | --heade | --head | --hea )
32849    $ac_shift
32850    case $ac_optarg in
32851    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32852    esac
32853    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32854    ac_need_defaults=false;;
32855  --he | --h)
32856    # Conflict between --help and --header
32857    as_fn_error $? "ambiguous option: \`$1'
32858Try \`$0 --help' for more information.";;
32859  --help | --hel | -h )
32860    $as_echo "$ac_cs_usage"; exit ;;
32861  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32862  | -silent | --silent | --silen | --sile | --sil | --si | --s)
32863    ac_cs_silent=: ;;
32864
32865  # This is an error.
32866  -*) as_fn_error $? "unrecognized option: \`$1'
32867Try \`$0 --help' for more information." ;;
32868
32869  *) as_fn_append ac_config_targets " $1"
32870     ac_need_defaults=false ;;
32871
32872  esac
32873  shift
32874done
32875
32876ac_configure_extra_args=
32877
32878if $ac_cs_silent; then
32879  exec 6>/dev/null
32880  ac_configure_extra_args="$ac_configure_extra_args --silent"
32881fi
32882
32883_ACEOF
32884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32885if \$ac_cs_recheck; then
32886  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32887  shift
32888  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32889  CONFIG_SHELL='$SHELL'
32890  export CONFIG_SHELL
32891  exec "\$@"
32892fi
32893
32894_ACEOF
32895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32896exec 5>>config.log
32897{
32898  echo
32899  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32900## Running $as_me. ##
32901_ASBOX
32902  $as_echo "$ac_log"
32903} >&5
32904
32905_ACEOF
32906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32907#
32908# INIT-COMMANDS
32909#
32910ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32911subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32912subdirs='$subdirs'
32913
32914_ACEOF
32915
32916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32917
32918# Handling of arguments.
32919for ac_config_target in $ac_config_targets
32920do
32921  case $ac_config_target in
32922    "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
32923    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
32924    "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
32925    "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
32926    "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
32927    "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
32928    "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
32929    "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
32930    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32931
32932  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32933  esac
32934done
32935
32936
32937# If the user did not use the arguments to specify the items to instantiate,
32938# then the envvar interface is used.  Set only those that are not.
32939# We use the long form for the default assignment because of an extremely
32940# bizarre bug on SunOS 4.1.3.
32941if $ac_need_defaults; then
32942  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32943  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32944  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
32945  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32946fi
32947
32948# Have a temporary directory for convenience.  Make it in the build tree
32949# simply because there is no reason against having it here, and in addition,
32950# creating and moving files from /tmp can sometimes cause problems.
32951# Hook for its removal unless debugging.
32952# Note that there is a small window in which the directory will not be cleaned:
32953# after its creation but before its name has been assigned to `$tmp'.
32954$debug ||
32955{
32956  tmp= ac_tmp=
32957  trap 'exit_status=$?
32958  : "${ac_tmp:=$tmp}"
32959  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32960' 0
32961  trap 'as_fn_exit 1' 1 2 13 15
32962}
32963# Create a (secure) tmp directory for tmp files.
32964
32965{
32966  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32967  test -d "$tmp"
32968}  ||
32969{
32970  tmp=./conf$$-$RANDOM
32971  (umask 077 && mkdir "$tmp")
32972} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32973ac_tmp=$tmp
32974
32975# Set up the scripts for CONFIG_FILES section.
32976# No need to generate them if there are no CONFIG_FILES.
32977# This happens for instance with `./config.status config.h'.
32978if test -n "$CONFIG_FILES"; then
32979
32980if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32981  ac_cs_awk_getline=:
32982  ac_cs_awk_pipe_init=
32983  ac_cs_awk_read_file='
32984      while ((getline aline < (F[key])) > 0)
32985	print(aline)
32986      close(F[key])'
32987  ac_cs_awk_pipe_fini=
32988else
32989  ac_cs_awk_getline=false
32990  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32991  ac_cs_awk_read_file='
32992      print "|#_!!_#|"
32993      print "cat " F[key] " &&"
32994      '$ac_cs_awk_pipe_init
32995  # The final `:' finishes the AND list.
32996  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32997fi
32998ac_cr=`echo X | tr X '\015'`
32999# On cygwin, bash can eat \r inside `` if the user requested igncr.
33000# But we know of no other shell where ac_cr would be empty at this
33001# point, so we can use a bashism as a fallback.
33002if test "x$ac_cr" = x; then
33003  eval ac_cr=\$\'\\r\'
33004fi
33005ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33006if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33007  ac_cs_awk_cr='\\r'
33008else
33009  ac_cs_awk_cr=$ac_cr
33010fi
33011
33012echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33013_ACEOF
33014
33015# Create commands to substitute file output variables.
33016{
33017  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33018  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33019  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33020  echo "_ACAWK" &&
33021  echo "_ACEOF"
33022} >conf$$files.sh &&
33023. ./conf$$files.sh ||
33024  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33025rm -f conf$$files.sh
33026
33027{
33028  echo "cat >conf$$subs.awk <<_ACEOF" &&
33029  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33030  echo "_ACEOF"
33031} >conf$$subs.sh ||
33032  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33033ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33034ac_delim='%!_!# '
33035for ac_last_try in false false false false false :; do
33036  . ./conf$$subs.sh ||
33037    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33038
33039  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33040  if test $ac_delim_n = $ac_delim_num; then
33041    break
33042  elif $ac_last_try; then
33043    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33044  else
33045    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33046  fi
33047done
33048rm -f conf$$subs.sh
33049
33050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33051cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33052_ACEOF
33053sed -n '
33054h
33055s/^/S["/; s/!.*/"]=/
33056p
33057g
33058s/^[^!]*!//
33059:repl
33060t repl
33061s/'"$ac_delim"'$//
33062t delim
33063:nl
33064h
33065s/\(.\{148\}\)..*/\1/
33066t more1
33067s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33068p
33069n
33070b repl
33071:more1
33072s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33073p
33074g
33075s/.\{148\}//
33076t nl
33077:delim
33078h
33079s/\(.\{148\}\)..*/\1/
33080t more2
33081s/["\\]/\\&/g; s/^/"/; s/$/"/
33082p
33083b
33084:more2
33085s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33086p
33087g
33088s/.\{148\}//
33089t delim
33090' <conf$$subs.awk | sed '
33091/^[^""]/{
33092  N
33093  s/\n//
33094}
33095' >>$CONFIG_STATUS || ac_write_fail=1
33096rm -f conf$$subs.awk
33097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33098_ACAWK
33099cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33100  for (key in S) S_is_set[key] = 1
33101  FS = ""
33102  \$ac_cs_awk_pipe_init
33103}
33104{
33105  line = $ 0
33106  nfields = split(line, field, "@")
33107  substed = 0
33108  len = length(field[1])
33109  for (i = 2; i < nfields; i++) {
33110    key = field[i]
33111    keylen = length(key)
33112    if (S_is_set[key]) {
33113      value = S[key]
33114      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33115      len += length(value) + length(field[++i])
33116      substed = 1
33117    } else
33118      len += 1 + keylen
33119  }
33120  if (nfields == 3 && !substed) {
33121    key = field[2]
33122    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
33123      \$ac_cs_awk_read_file
33124      next
33125    }
33126  }
33127  print line
33128}
33129\$ac_cs_awk_pipe_fini
33130_ACAWK
33131_ACEOF
33132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33133if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33134  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33135else
33136  cat
33137fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33138  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33139_ACEOF
33140
33141# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33142# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33143# trailing colons and then remove the whole line if VPATH becomes empty
33144# (actually we leave an empty line to preserve line numbers).
33145if test "x$srcdir" = x.; then
33146  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
33147h
33148s///
33149s/^/:/
33150s/[	 ]*$/:/
33151s/:\$(srcdir):/:/g
33152s/:\${srcdir}:/:/g
33153s/:@srcdir@:/:/g
33154s/^:*//
33155s/:*$//
33156x
33157s/\(=[	 ]*\).*/\1/
33158G
33159s/\n//
33160s/^[^=]*=[	 ]*$//
33161}'
33162fi
33163
33164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33165fi # test -n "$CONFIG_FILES"
33166
33167# Set up the scripts for CONFIG_HEADERS section.
33168# No need to generate them if there are no CONFIG_HEADERS.
33169# This happens for instance with `./config.status Makefile'.
33170if test -n "$CONFIG_HEADERS"; then
33171cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33172BEGIN {
33173_ACEOF
33174
33175# Transform confdefs.h into an awk script `defines.awk', embedded as
33176# here-document in config.status, that substitutes the proper values into
33177# config.h.in to produce config.h.
33178
33179# Create a delimiter string that does not exist in confdefs.h, to ease
33180# handling of long lines.
33181ac_delim='%!_!# '
33182for ac_last_try in false false :; do
33183  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33184  if test -z "$ac_tt"; then
33185    break
33186  elif $ac_last_try; then
33187    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33188  else
33189    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33190  fi
33191done
33192
33193# For the awk script, D is an array of macro values keyed by name,
33194# likewise P contains macro parameters if any.  Preserve backslash
33195# newline sequences.
33196
33197ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33198sed -n '
33199s/.\{148\}/&'"$ac_delim"'/g
33200t rset
33201:rset
33202s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
33203t def
33204d
33205:def
33206s/\\$//
33207t bsnl
33208s/["\\]/\\&/g
33209s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33210D["\1"]=" \3"/p
33211s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
33212d
33213:bsnl
33214s/["\\]/\\&/g
33215s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33216D["\1"]=" \3\\\\\\n"\\/p
33217t cont
33218s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33219t cont
33220d
33221:cont
33222n
33223s/.\{148\}/&'"$ac_delim"'/g
33224t clear
33225:clear
33226s/\\$//
33227t bsnlc
33228s/["\\]/\\&/g; s/^/"/; s/$/"/p
33229d
33230:bsnlc
33231s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33232b cont
33233' <confdefs.h | sed '
33234s/'"$ac_delim"'/"\\\
33235"/g' >>$CONFIG_STATUS || ac_write_fail=1
33236
33237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33238  for (key in D) D_is_set[key] = 1
33239  FS = ""
33240}
33241/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33242  line = \$ 0
33243  split(line, arg, " ")
33244  if (arg[1] == "#") {
33245    defundef = arg[2]
33246    mac1 = arg[3]
33247  } else {
33248    defundef = substr(arg[1], 2)
33249    mac1 = arg[2]
33250  }
33251  split(mac1, mac2, "(") #)
33252  macro = mac2[1]
33253  prefix = substr(line, 1, index(line, defundef) - 1)
33254  if (D_is_set[macro]) {
33255    # Preserve the white space surrounding the "#".
33256    print prefix "define", macro P[macro] D[macro]
33257    next
33258  } else {
33259    # Replace #undef with comments.  This is necessary, for example,
33260    # in the case of _POSIX_SOURCE, which is predefined and required
33261    # on some systems where configure will not decide to define it.
33262    if (defundef == "undef") {
33263      print "/*", prefix defundef, macro, "*/"
33264      next
33265    }
33266  }
33267}
33268{ print }
33269_ACAWK
33270_ACEOF
33271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33272  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33273fi # test -n "$CONFIG_HEADERS"
33274
33275
33276eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
33277shift
33278for ac_tag
33279do
33280  case $ac_tag in
33281  :[FHLC]) ac_mode=$ac_tag; continue;;
33282  esac
33283  case $ac_mode$ac_tag in
33284  :[FHL]*:*);;
33285  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33286  :[FH]-) ac_tag=-:-;;
33287  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33288  esac
33289  ac_save_IFS=$IFS
33290  IFS=:
33291  set x $ac_tag
33292  IFS=$ac_save_IFS
33293  shift
33294  ac_file=$1
33295  shift
33296
33297  case $ac_mode in
33298  :L) ac_source=$1;;
33299  :[FH])
33300    ac_file_inputs=
33301    for ac_f
33302    do
33303      case $ac_f in
33304      -) ac_f="$ac_tmp/stdin";;
33305      *) # Look for the file first in the build tree, then in the source tree
33306	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
33307	 # because $ac_f cannot contain `:'.
33308	 test -f "$ac_f" ||
33309	   case $ac_f in
33310	   [\\/$]*) false;;
33311	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33312	   esac ||
33313	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33314      esac
33315      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33316      as_fn_append ac_file_inputs " '$ac_f'"
33317    done
33318
33319    # Let's still pretend it is `configure' which instantiates (i.e., don't
33320    # use $as_me), people would be surprised to read:
33321    #    /* config.h.  Generated by config.status.  */
33322    configure_input='Generated from '`
33323	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33324	`' by configure.'
33325    if test x"$ac_file" != x-; then
33326      configure_input="$ac_file.  $configure_input"
33327      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33328$as_echo "$as_me: creating $ac_file" >&6;}
33329    fi
33330    # Neutralize special characters interpreted by sed in replacement strings.
33331    case $configure_input in #(
33332    *\&* | *\|* | *\\* )
33333       ac_sed_conf_input=`$as_echo "$configure_input" |
33334       sed 's/[\\\\&|]/\\\\&/g'`;; #(
33335    *) ac_sed_conf_input=$configure_input;;
33336    esac
33337
33338    case $ac_tag in
33339    *:-:* | *:-) cat >"$ac_tmp/stdin" \
33340      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33341    esac
33342    ;;
33343  esac
33344
33345  ac_dir=`$as_dirname -- "$ac_file" ||
33346$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33347	 X"$ac_file" : 'X\(//\)[^/]' \| \
33348	 X"$ac_file" : 'X\(//\)$' \| \
33349	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33350$as_echo X"$ac_file" |
33351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33352	    s//\1/
33353	    q
33354	  }
33355	  /^X\(\/\/\)[^/].*/{
33356	    s//\1/
33357	    q
33358	  }
33359	  /^X\(\/\/\)$/{
33360	    s//\1/
33361	    q
33362	  }
33363	  /^X\(\/\).*/{
33364	    s//\1/
33365	    q
33366	  }
33367	  s/.*/./; q'`
33368  as_dir="$ac_dir"; as_fn_mkdir_p
33369  ac_builddir=.
33370
33371case "$ac_dir" in
33372.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33373*)
33374  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33375  # A ".." for each directory in $ac_dir_suffix.
33376  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33377  case $ac_top_builddir_sub in
33378  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33379  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33380  esac ;;
33381esac
33382ac_abs_top_builddir=$ac_pwd
33383ac_abs_builddir=$ac_pwd$ac_dir_suffix
33384# for backward compatibility:
33385ac_top_builddir=$ac_top_build_prefix
33386
33387case $srcdir in
33388  .)  # We are building in place.
33389    ac_srcdir=.
33390    ac_top_srcdir=$ac_top_builddir_sub
33391    ac_abs_top_srcdir=$ac_pwd ;;
33392  [\\/]* | ?:[\\/]* )  # Absolute name.
33393    ac_srcdir=$srcdir$ac_dir_suffix;
33394    ac_top_srcdir=$srcdir
33395    ac_abs_top_srcdir=$srcdir ;;
33396  *) # Relative name.
33397    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33398    ac_top_srcdir=$ac_top_build_prefix$srcdir
33399    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33400esac
33401ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33402
33403
33404  case $ac_mode in
33405  :F)
33406  #
33407  # CONFIG_FILE
33408  #
33409
33410_ACEOF
33411
33412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33413# If the template does not know about datarootdir, expand it.
33414# FIXME: This hack should be removed a few years after 2.60.
33415ac_datarootdir_hack=; ac_datarootdir_seen=
33416ac_sed_dataroot='
33417/datarootdir/ {
33418  p
33419  q
33420}
33421/@datadir@/p
33422/@docdir@/p
33423/@infodir@/p
33424/@localedir@/p
33425/@mandir@/p'
33426case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33427*datarootdir*) ac_datarootdir_seen=yes;;
33428*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33429  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33430$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33431_ACEOF
33432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33433  ac_datarootdir_hack='
33434  s&@datadir@&$datadir&g
33435  s&@docdir@&$docdir&g
33436  s&@infodir@&$infodir&g
33437  s&@localedir@&$localedir&g
33438  s&@mandir@&$mandir&g
33439  s&\\\${datarootdir}&$datarootdir&g' ;;
33440esac
33441_ACEOF
33442
33443# Neutralize VPATH when `$srcdir' = `.'.
33444# Shell code in configure.ac might set extrasub.
33445# FIXME: do we really want to maintain this feature?
33446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33447ac_sed_extra="$ac_vpsub
33448$extrasub
33449_ACEOF
33450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33451:t
33452/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33453s|@configure_input@|$ac_sed_conf_input|;t t
33454s&@top_builddir@&$ac_top_builddir_sub&;t t
33455s&@top_build_prefix@&$ac_top_build_prefix&;t t
33456s&@srcdir@&$ac_srcdir&;t t
33457s&@abs_srcdir@&$ac_abs_srcdir&;t t
33458s&@top_srcdir@&$ac_top_srcdir&;t t
33459s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33460s&@builddir@&$ac_builddir&;t t
33461s&@abs_builddir@&$ac_abs_builddir&;t t
33462s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33463$ac_datarootdir_hack
33464"
33465eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33466if $ac_cs_awk_getline; then
33467  $AWK -f "$ac_tmp/subs.awk"
33468else
33469  $AWK -f "$ac_tmp/subs.awk" | $SHELL
33470fi \
33471  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33472
33473test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33474  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33475  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
33476      "$ac_tmp/out"`; test -z "$ac_out"; } &&
33477  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33478which seems to be undefined.  Please make sure it is defined" >&5
33479$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33480which seems to be undefined.  Please make sure it is defined" >&2;}
33481
33482  rm -f "$ac_tmp/stdin"
33483  case $ac_file in
33484  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33485  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33486  esac \
33487  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33488 ;;
33489  :H)
33490  #
33491  # CONFIG_HEADER
33492  #
33493  if test x"$ac_file" != x-; then
33494    {
33495      $as_echo "/* $configure_input  */" \
33496      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33497    } >"$ac_tmp/config.h" \
33498      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33499    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33500      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33501$as_echo "$as_me: $ac_file is unchanged" >&6;}
33502    else
33503      rm -f "$ac_file"
33504      mv "$ac_tmp/config.h" "$ac_file" \
33505	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
33506    fi
33507  else
33508    $as_echo "/* $configure_input  */" \
33509      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33510      || as_fn_error $? "could not create -" "$LINENO" 5
33511  fi
33512 ;;
33513  :L)
33514  #
33515  # CONFIG_LINK
33516  #
33517
33518  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33519    :
33520  else
33521    # Prefer the file from the source tree if names are identical.
33522    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33523      ac_source=$srcdir/$ac_source
33524    fi
33525
33526    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33527$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33528
33529    if test ! -r "$ac_source"; then
33530      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33531    fi
33532    rm -f "$ac_file"
33533
33534    # Try a relative symlink, then a hard link, then a copy.
33535    case $ac_source in
33536    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33537	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33538    esac
33539    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33540      ln "$ac_source" "$ac_file" 2>/dev/null ||
33541      cp -p "$ac_source" "$ac_file" ||
33542      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33543  fi
33544 ;;
33545  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33546$as_echo "$as_me: executing $ac_file commands" >&6;}
33547 ;;
33548  esac
33549
33550
33551  case $ac_file$ac_mode in
33552    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33553    "gccdepdir":C)
33554  ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33555  for lang in $subdirs c-family common analyzer rtl-ssa
33556  do
33557      ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33558  done ;;
33559    "as":F) chmod +x as ;;
33560    "collect-ld":F) chmod +x collect-ld ;;
33561    "nm":F) chmod +x nm ;;
33562    "default":C)
33563case ${CONFIG_HEADERS} in
33564  *auto-host.h:config.in*)
33565  echo > cstamp-h ;;
33566esac
33567# Make sure all the subdirs exist.
33568for d in $subdirs doc build common c-family
33569do
33570    test -d $d || mkdir $d
33571done
33572 ;;
33573
33574  esac
33575done # for ac_tag
33576
33577
33578as_fn_exit 0
33579_ACEOF
33580ac_clean_files=$ac_clean_files_save
33581
33582test $ac_write_fail = 0 ||
33583  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33584
33585
33586# configure is writing to config.log, and then calls config.status.
33587# config.status does its own redirection, appending to config.log.
33588# Unfortunately, on DOS this fails, as config.log is still kept open
33589# by configure, so config.status won't be able to write to it; its
33590# output is simply discarded.  So we exec the FD to /dev/null,
33591# effectively closing config.log, so it can be properly (re)opened and
33592# appended to by config.status.  When coming back to configure, we
33593# need to make the FD available again.
33594if test "$no_create" != yes; then
33595  ac_cs_success=:
33596  ac_config_status_args=
33597  test "$silent" = yes &&
33598    ac_config_status_args="$ac_config_status_args --quiet"
33599  exec 5>/dev/null
33600  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33601  exec 5>>config.log
33602  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33603  # would make configure fail if this is the last instruction.
33604  $ac_cs_success || as_fn_exit 1
33605fi
33606if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33607  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33608$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33609fi
33610
33611
33612