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
717CSCOPE
718ETAGS
719CTAGS
720MAINT
721zlibinc
722zlibdir
723HOST_LIBS
724enable_default_ssp
725thin_archive_support
726ld_soname_option
727ld_version_script_option
728libgcc_visibility
729ORIGINAL_DSYMUTIL_FOR_TARGET
730gcc_cv_dsymutil
731gcc_cv_otool
732gcc_cv_readelf
733gcc_cv_objdump
734ORIGINAL_NM_FOR_TARGET
735gcc_cv_nm
736ORIGINAL_LD_GOLD_FOR_TARGET
737ORIGINAL_LD_BFD_FOR_TARGET
738ORIGINAL_LD_FOR_TARGET
739ORIGINAL_PLUGIN_LD_FOR_TARGET
740gcc_cv_ld
741ORIGINAL_AS_FOR_TARGET
742gcc_cv_as
743enable_fast_install
744objdir
745OTOOL64
746OTOOL
747LIPO
748NMEDIT
749DSYMUTIL
750STRIP
751OBJDUMP
752ac_ct_DUMPBIN
753DUMPBIN
754LD
755FGREP
756SED
757LIBTOOL
758collect2
759STMP_FIXINC
760BUILD_LDFLAGS
761BUILD_CXXFLAGS
762BUILD_CFLAGS
763CXX_FOR_BUILD
764CC_FOR_BUILD
765inhibit_libc
766BUILD_SYSTEM_HEADER_DIR
767SYSTEM_HEADER_DIR
768ALL
769CROSS
770CATOBJEXT
771GENCAT
772INSTOBJEXT
773DATADIRNAME
774CATALOGS
775POSUB
776GMSGFMT
777XGETTEXT
778INCINTL
779LIBINTL_DEP
780LIBINTL
781USE_NLS
782get_gcc_base_ver
783HAVE_AUTO_BUILD
784extra_opt_files
785extra_modes_file
786NATIVE_SYSTEM_HEADER_DIR
787objext
788manext
789LIBICONV_DEP
790LTLIBICONV
791LIBICONV
792ZSTD_LDFLAGS
793ZSTD_CPPFLAGS
794ZSTD_LIB
795ZSTD_INCLUDE
796DL_LIB
797LDEXP_LIB
798NETLIBS
799EXTRA_GCC_LIBS
800GNAT_LIBEXC
801COLLECT2_LIBS
802CXXDEPMODE
803DEPDIR
804am__leading_dot
805doc_build_sys
806AR
807NM
808BISON
809FLEX
810GENERATED_MANPAGES
811BUILD_INFO
812MAKEINFO
813have_mktemp_command
814make_compare_target
815INSTALL_DATA
816INSTALL_PROGRAM
817INSTALL
818ranlib_flags
819RANLIB
820LN
821LN_S
822AWK
823SET_MAKE
824omp_device_property_deps
825omp_device_properties
826accel_dir_suffix
827real_target_noncanonical
828enable_as_accelerator
829gnat_install_lib
830REPORT_BUGS_TEXI
831REPORT_BUGS_TO
832PKGVERSION
833CONFIGURE_SPECS
834enable_gcov
835enable_shared
836enable_fixed_point
837enable_decimal_float
838with_float
839with_cpu
840enable_multiarch
841enable_multilib
842coverage_flags
843valgrind_command
844valgrind_path_defines
845valgrind_path
846TREECHECKING
847nocommon_flag
848noexception_flags
849warn_cxxflags
850warn_cflags
851c_strict_warn
852strict_warn
853c_loose_warn
854loose_warn
855aliasing_flags
856CPP
857EGREP
858GREP
859CXXCPP
860PICFLAG_FOR_TARGET
861GDCFLAGS
862GDC
863GNATMAKE
864GNATBIND
865ac_ct_CXX
866CXXFLAGS
867CXX
868OBJEXT
869EXEEXT
870ac_ct_CC
871CPPFLAGS
872LDFLAGS
873CFLAGS
874CC
875GENINSRC
876CROSS_SYSTEM_HEADER_DIR
877TARGET_SYSTEM_ROOT_DEFINE
878TARGET_SYSTEM_ROOT
879SYSROOT_CFLAGS_FOR_TARGET
880target_subdir
881host_subdir
882build_subdir
883build_libsubdir
884target_noncanonical
885host_noncanonical
886target_os
887target_vendor
888target_cpu
889target
890host_os
891host_vendor
892host_cpu
893host
894build_os
895build_vendor
896build_cpu
897build
898target_alias
899host_alias
900build_alias
901LIBS
902ECHO_T
903ECHO_N
904ECHO_C
905DEFS
906mandir
907localedir
908libdir
909psdir
910pdfdir
911dvidir
912htmldir
913infodir
914docdir
915oldincludedir
916includedir
917localstatedir
918sharedstatedir
919sysconfdir
920datadir
921datarootdir
922libexecdir
923sbindir
924bindir
925program_transform_name
926prefix
927exec_prefix
928PACKAGE_URL
929PACKAGE_BUGREPORT
930PACKAGE_STRING
931PACKAGE_VERSION
932PACKAGE_TARNAME
933PACKAGE_NAME
934PATH_SEPARATOR
935SHELL'
936ac_subst_files='option_includes
937language_hooks'
938ac_user_opts='
939enable_option_checking
940with_build_libsubdir
941with_local_prefix
942with_native_system_header_dir
943with_build_sysroot
944with_sysroot
945with_gxx_include_dir
946with_gxx_libcxx_include_dir
947with_cpp_install_dir
948enable_generated_files_in_srcdir
949with_gnu_ld
950with_ld
951with_demangler_in_ld
952with_dsymutil
953with_gnu_as
954with_as
955enable_largefile
956enable_build_format_warnings
957enable_werror_always
958enable_checking
959enable_coverage
960enable_gather_detailed_mem_stats
961enable_valgrind_annotations
962enable_multilib
963enable_multiarch
964with_stack_clash_protection_guard_size
965enable___cxa_atexit
966enable_decimal_float
967enable_fixed_point
968enable_threads
969enable_tls
970enable_vtable_verify
971enable_analyzer
972enable_objc_gc
973with_dwarf2
974enable_shared
975enable_gcov
976with_specs
977with_pkgversion
978with_bugurl
979with_documentation_root_url
980with_changes_root_url
981enable_languages
982with_multilib_list
983with_multilib_generator
984with_zstd
985with_zstd_include
986with_zstd_lib
987enable_rpath
988with_libiconv_prefix
989with_libiconv_type
990enable_sjlj_exceptions
991with_gcc_major_version_only
992enable_secureplt
993enable_mingw_wildcard
994enable_large_address_aware
995enable_leading_mingw64_underscores
996enable_cld
997enable_frame_pointer
998enable_win32_registry
999enable_static
1000with_pic
1001enable_fast_install
1002enable_libtool_lock
1003enable_ld
1004enable_gold
1005with_plugin_ld
1006enable_gnu_indirect_function
1007enable_initfini_array
1008enable_comdat
1009enable_newlib_nano_formatted_io
1010enable_standard_branch_protection
1011enable_fix_cortex_a53_835769
1012enable_fix_cortex_a53_843419
1013with_glibc_version
1014enable_gnu_unique_object
1015enable_linker_build_id
1016enable_libssp
1017enable_default_ssp
1018with_long_double_128
1019with_long_double_format
1020with_gc
1021with_system_zlib
1022enable_maintainer_mode
1023enable_link_mutex
1024enable_link_serialization
1025enable_version_specific_runtime_libs
1026enable_plugin
1027enable_host_shared
1028enable_libquadmath_support
1029with_linker_hash_style
1030with_diagnostics_color
1031with_diagnostics_urls
1032enable_default_pie
1033enable_cet
1034enable_s390_excess_float_precision
1035'
1036      ac_precious_vars='build_alias
1037host_alias
1038target_alias
1039CC
1040CFLAGS
1041LDFLAGS
1042LIBS
1043CPPFLAGS
1044CXX
1045CXXFLAGS
1046CCC
1047CXXCPP
1048CPP
1049GMPLIBS
1050GMPINC
1051ISLLIBS
1052ISLINC'
1053
1054
1055# Initialize some variables set by options.
1056ac_init_help=
1057ac_init_version=false
1058ac_unrecognized_opts=
1059ac_unrecognized_sep=
1060# The variables have the same names as the options, with
1061# dashes changed to underlines.
1062cache_file=/dev/null
1063exec_prefix=NONE
1064no_create=
1065no_recursion=
1066prefix=NONE
1067program_prefix=NONE
1068program_suffix=NONE
1069program_transform_name=s,x,x,
1070silent=
1071site=
1072srcdir=
1073verbose=
1074x_includes=NONE
1075x_libraries=NONE
1076
1077# Installation directory options.
1078# These are left unexpanded so users can "make install exec_prefix=/foo"
1079# and all the variables that are supposed to be based on exec_prefix
1080# by default will actually change.
1081# Use braces instead of parens because sh, perl, etc. also accept them.
1082# (The list follows the same order as the GNU Coding Standards.)
1083bindir='${exec_prefix}/bin'
1084sbindir='${exec_prefix}/sbin'
1085libexecdir='${exec_prefix}/libexec'
1086datarootdir='${prefix}/share'
1087datadir='${datarootdir}'
1088sysconfdir='${prefix}/etc'
1089sharedstatedir='${prefix}/com'
1090localstatedir='${prefix}/var'
1091includedir='${prefix}/include'
1092oldincludedir='/usr/include'
1093docdir='${datarootdir}/doc/${PACKAGE}'
1094infodir='${datarootdir}/info'
1095htmldir='${docdir}'
1096dvidir='${docdir}'
1097pdfdir='${docdir}'
1098psdir='${docdir}'
1099libdir='${exec_prefix}/lib'
1100localedir='${datarootdir}/locale'
1101mandir='${datarootdir}/man'
1102
1103ac_prev=
1104ac_dashdash=
1105for ac_option
1106do
1107  # If the previous option needs an argument, assign it.
1108  if test -n "$ac_prev"; then
1109    eval $ac_prev=\$ac_option
1110    ac_prev=
1111    continue
1112  fi
1113
1114  case $ac_option in
1115  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116  *=)   ac_optarg= ;;
1117  *)    ac_optarg=yes ;;
1118  esac
1119
1120  # Accept the important Cygnus configure options, so we can diagnose typos.
1121
1122  case $ac_dashdash$ac_option in
1123  --)
1124    ac_dashdash=yes ;;
1125
1126  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1127    ac_prev=bindir ;;
1128  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1129    bindir=$ac_optarg ;;
1130
1131  -build | --build | --buil | --bui | --bu)
1132    ac_prev=build_alias ;;
1133  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1134    build_alias=$ac_optarg ;;
1135
1136  -cache-file | --cache-file | --cache-fil | --cache-fi \
1137  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1138    ac_prev=cache_file ;;
1139  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1140  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1141    cache_file=$ac_optarg ;;
1142
1143  --config-cache | -C)
1144    cache_file=config.cache ;;
1145
1146  -datadir | --datadir | --datadi | --datad)
1147    ac_prev=datadir ;;
1148  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1149    datadir=$ac_optarg ;;
1150
1151  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1152  | --dataroo | --dataro | --datar)
1153    ac_prev=datarootdir ;;
1154  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1155  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1156    datarootdir=$ac_optarg ;;
1157
1158  -disable-* | --disable-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error $? "invalid feature name: $ac_useropt"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"enable_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval enable_$ac_useropt=no ;;
1173
1174  -docdir | --docdir | --docdi | --doc | --do)
1175    ac_prev=docdir ;;
1176  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1177    docdir=$ac_optarg ;;
1178
1179  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180    ac_prev=dvidir ;;
1181  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1182    dvidir=$ac_optarg ;;
1183
1184  -enable-* | --enable-*)
1185    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186    # Reject names that are not valid shell variable names.
1187    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188      as_fn_error $? "invalid feature name: $ac_useropt"
1189    ac_useropt_orig=$ac_useropt
1190    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191    case $ac_user_opts in
1192      *"
1193"enable_$ac_useropt"
1194"*) ;;
1195      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1196	 ac_unrecognized_sep=', ';;
1197    esac
1198    eval enable_$ac_useropt=\$ac_optarg ;;
1199
1200  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1201  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1202  | --exec | --exe | --ex)
1203    ac_prev=exec_prefix ;;
1204  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1205  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1206  | --exec=* | --exe=* | --ex=*)
1207    exec_prefix=$ac_optarg ;;
1208
1209  -gas | --gas | --ga | --g)
1210    # Obsolete; use --with-gas.
1211    with_gas=yes ;;
1212
1213  -help | --help | --hel | --he | -h)
1214    ac_init_help=long ;;
1215  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1216    ac_init_help=recursive ;;
1217  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1218    ac_init_help=short ;;
1219
1220  -host | --host | --hos | --ho)
1221    ac_prev=host_alias ;;
1222  -host=* | --host=* | --hos=* | --ho=*)
1223    host_alias=$ac_optarg ;;
1224
1225  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1226    ac_prev=htmldir ;;
1227  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1228  | --ht=*)
1229    htmldir=$ac_optarg ;;
1230
1231  -includedir | --includedir | --includedi | --included | --include \
1232  | --includ | --inclu | --incl | --inc)
1233    ac_prev=includedir ;;
1234  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1235  | --includ=* | --inclu=* | --incl=* | --inc=*)
1236    includedir=$ac_optarg ;;
1237
1238  -infodir | --infodir | --infodi | --infod | --info | --inf)
1239    ac_prev=infodir ;;
1240  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1241    infodir=$ac_optarg ;;
1242
1243  -libdir | --libdir | --libdi | --libd)
1244    ac_prev=libdir ;;
1245  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1246    libdir=$ac_optarg ;;
1247
1248  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1249  | --libexe | --libex | --libe)
1250    ac_prev=libexecdir ;;
1251  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1252  | --libexe=* | --libex=* | --libe=*)
1253    libexecdir=$ac_optarg ;;
1254
1255  -localedir | --localedir | --localedi | --localed | --locale)
1256    ac_prev=localedir ;;
1257  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1258    localedir=$ac_optarg ;;
1259
1260  -localstatedir | --localstatedir | --localstatedi | --localstated \
1261  | --localstate | --localstat | --localsta | --localst | --locals)
1262    ac_prev=localstatedir ;;
1263  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1264  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1265    localstatedir=$ac_optarg ;;
1266
1267  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1268    ac_prev=mandir ;;
1269  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1270    mandir=$ac_optarg ;;
1271
1272  -nfp | --nfp | --nf)
1273    # Obsolete; use --without-fp.
1274    with_fp=no ;;
1275
1276  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1277  | --no-cr | --no-c | -n)
1278    no_create=yes ;;
1279
1280  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1281  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1282    no_recursion=yes ;;
1283
1284  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1285  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1286  | --oldin | --oldi | --old | --ol | --o)
1287    ac_prev=oldincludedir ;;
1288  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1289  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1290  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1291    oldincludedir=$ac_optarg ;;
1292
1293  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1294    ac_prev=prefix ;;
1295  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1296    prefix=$ac_optarg ;;
1297
1298  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1299  | --program-pre | --program-pr | --program-p)
1300    ac_prev=program_prefix ;;
1301  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1302  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1303    program_prefix=$ac_optarg ;;
1304
1305  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1306  | --program-suf | --program-su | --program-s)
1307    ac_prev=program_suffix ;;
1308  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1309  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1310    program_suffix=$ac_optarg ;;
1311
1312  -program-transform-name | --program-transform-name \
1313  | --program-transform-nam | --program-transform-na \
1314  | --program-transform-n | --program-transform- \
1315  | --program-transform | --program-transfor \
1316  | --program-transfo | --program-transf \
1317  | --program-trans | --program-tran \
1318  | --progr-tra | --program-tr | --program-t)
1319    ac_prev=program_transform_name ;;
1320  -program-transform-name=* | --program-transform-name=* \
1321  | --program-transform-nam=* | --program-transform-na=* \
1322  | --program-transform-n=* | --program-transform-=* \
1323  | --program-transform=* | --program-transfor=* \
1324  | --program-transfo=* | --program-transf=* \
1325  | --program-trans=* | --program-tran=* \
1326  | --progr-tra=* | --program-tr=* | --program-t=*)
1327    program_transform_name=$ac_optarg ;;
1328
1329  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1330    ac_prev=pdfdir ;;
1331  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1332    pdfdir=$ac_optarg ;;
1333
1334  -psdir | --psdir | --psdi | --psd | --ps)
1335    ac_prev=psdir ;;
1336  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1337    psdir=$ac_optarg ;;
1338
1339  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1340  | -silent | --silent | --silen | --sile | --sil)
1341    silent=yes ;;
1342
1343  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1344    ac_prev=sbindir ;;
1345  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1346  | --sbi=* | --sb=*)
1347    sbindir=$ac_optarg ;;
1348
1349  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1350  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1351  | --sharedst | --shareds | --shared | --share | --shar \
1352  | --sha | --sh)
1353    ac_prev=sharedstatedir ;;
1354  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1355  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1356  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1357  | --sha=* | --sh=*)
1358    sharedstatedir=$ac_optarg ;;
1359
1360  -site | --site | --sit)
1361    ac_prev=site ;;
1362  -site=* | --site=* | --sit=*)
1363    site=$ac_optarg ;;
1364
1365  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1366    ac_prev=srcdir ;;
1367  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1368    srcdir=$ac_optarg ;;
1369
1370  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1371  | --syscon | --sysco | --sysc | --sys | --sy)
1372    ac_prev=sysconfdir ;;
1373  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1374  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1375    sysconfdir=$ac_optarg ;;
1376
1377  -target | --target | --targe | --targ | --tar | --ta | --t)
1378    ac_prev=target_alias ;;
1379  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1380    target_alias=$ac_optarg ;;
1381
1382  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1383    verbose=yes ;;
1384
1385  -version | --version | --versio | --versi | --vers | -V)
1386    ac_init_version=: ;;
1387
1388  -with-* | --with-*)
1389    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1390    # Reject names that are not valid shell variable names.
1391    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1392      as_fn_error $? "invalid package name: $ac_useropt"
1393    ac_useropt_orig=$ac_useropt
1394    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395    case $ac_user_opts in
1396      *"
1397"with_$ac_useropt"
1398"*) ;;
1399      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1400	 ac_unrecognized_sep=', ';;
1401    esac
1402    eval with_$ac_useropt=\$ac_optarg ;;
1403
1404  -without-* | --without-*)
1405    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406    # Reject names that are not valid shell variable names.
1407    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408      as_fn_error $? "invalid package name: $ac_useropt"
1409    ac_useropt_orig=$ac_useropt
1410    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411    case $ac_user_opts in
1412      *"
1413"with_$ac_useropt"
1414"*) ;;
1415      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416	 ac_unrecognized_sep=', ';;
1417    esac
1418    eval with_$ac_useropt=no ;;
1419
1420  --x)
1421    # Obsolete; use --with-x.
1422    with_x=yes ;;
1423
1424  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1425  | --x-incl | --x-inc | --x-in | --x-i)
1426    ac_prev=x_includes ;;
1427  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1428  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1429    x_includes=$ac_optarg ;;
1430
1431  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1432  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1433    ac_prev=x_libraries ;;
1434  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1435  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1436    x_libraries=$ac_optarg ;;
1437
1438  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1439Try \`$0 --help' for more information"
1440    ;;
1441
1442  *=*)
1443    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1444    # Reject names that are not valid shell variable names.
1445    case $ac_envvar in #(
1446      '' | [0-9]* | *[!_$as_cr_alnum]* )
1447      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1448    esac
1449    eval $ac_envvar=\$ac_optarg
1450    export $ac_envvar ;;
1451
1452  *)
1453    # FIXME: should be removed in autoconf 3.0.
1454    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1456      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1458    ;;
1459
1460  esac
1461done
1462
1463if test -n "$ac_prev"; then
1464  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1465  as_fn_error $? "missing argument to $ac_option"
1466fi
1467
1468if test -n "$ac_unrecognized_opts"; then
1469  case $enable_option_checking in
1470    no) ;;
1471    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1472    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1473  esac
1474fi
1475
1476# Check all directory arguments for consistency.
1477for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478		datadir sysconfdir sharedstatedir localstatedir includedir \
1479		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480		libdir localedir mandir
1481do
1482  eval ac_val=\$$ac_var
1483  # Remove trailing slashes.
1484  case $ac_val in
1485    */ )
1486      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1487      eval $ac_var=\$ac_val;;
1488  esac
1489  # Be sure to have absolute directory names.
1490  case $ac_val in
1491    [\\/$]* | ?:[\\/]* )  continue;;
1492    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1493  esac
1494  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1495done
1496
1497# There might be people who depend on the old broken behavior: `$host'
1498# used to hold the argument of --host etc.
1499# FIXME: To remove some day.
1500build=$build_alias
1501host=$host_alias
1502target=$target_alias
1503
1504# FIXME: To remove some day.
1505if test "x$host_alias" != x; then
1506  if test "x$build_alias" = x; then
1507    cross_compiling=maybe
1508  elif test "x$build_alias" != "x$host_alias"; then
1509    cross_compiling=yes
1510  fi
1511fi
1512
1513ac_tool_prefix=
1514test -n "$host_alias" && ac_tool_prefix=$host_alias-
1515
1516test "$silent" = yes && exec 6>/dev/null
1517
1518
1519ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520ac_ls_di=`ls -di .` &&
1521ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1522  as_fn_error $? "working directory cannot be determined"
1523test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524  as_fn_error $? "pwd does not report name of working directory"
1525
1526
1527# Find the source files, if location was not specified.
1528if test -z "$srcdir"; then
1529  ac_srcdir_defaulted=yes
1530  # Try the directory containing this script, then the parent directory.
1531  ac_confdir=`$as_dirname -- "$as_myself" ||
1532$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533	 X"$as_myself" : 'X\(//\)[^/]' \| \
1534	 X"$as_myself" : 'X\(//\)$' \| \
1535	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536$as_echo X"$as_myself" |
1537    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538	    s//\1/
1539	    q
1540	  }
1541	  /^X\(\/\/\)[^/].*/{
1542	    s//\1/
1543	    q
1544	  }
1545	  /^X\(\/\/\)$/{
1546	    s//\1/
1547	    q
1548	  }
1549	  /^X\(\/\).*/{
1550	    s//\1/
1551	    q
1552	  }
1553	  s/.*/./; q'`
1554  srcdir=$ac_confdir
1555  if test ! -r "$srcdir/$ac_unique_file"; then
1556    srcdir=..
1557  fi
1558else
1559  ac_srcdir_defaulted=no
1560fi
1561if test ! -r "$srcdir/$ac_unique_file"; then
1562  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1564fi
1565ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1566ac_abs_confdir=`(
1567	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1568	pwd)`
1569# When building in place, set srcdir=.
1570if test "$ac_abs_confdir" = "$ac_pwd"; then
1571  srcdir=.
1572fi
1573# Remove unnecessary trailing slashes from srcdir.
1574# Double slashes in file names in object file debugging info
1575# mess up M-x gdb in Emacs.
1576case $srcdir in
1577*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1578esac
1579for ac_var in $ac_precious_vars; do
1580  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581  eval ac_env_${ac_var}_value=\$${ac_var}
1582  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1584done
1585
1586#
1587# Report the --help message.
1588#
1589if test "$ac_init_help" = "long"; then
1590  # Omit some internal or obsolete options to make the list less imposing.
1591  # This message is too long to be a string in the A/UX 3.1 sh.
1592  cat <<_ACEOF
1593\`configure' configures this package to adapt to many kinds of systems.
1594
1595Usage: $0 [OPTION]... [VAR=VALUE]...
1596
1597To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598VAR=VALUE.  See below for descriptions of some of the useful variables.
1599
1600Defaults for the options are specified in brackets.
1601
1602Configuration:
1603  -h, --help              display this help and exit
1604      --help=short        display options specific to this package
1605      --help=recursive    display the short help of all the included packages
1606  -V, --version           display version information and exit
1607  -q, --quiet, --silent   do not print \`checking ...' messages
1608      --cache-file=FILE   cache test results in FILE [disabled]
1609  -C, --config-cache      alias for \`--cache-file=config.cache'
1610  -n, --no-create         do not create output files
1611      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1612
1613Installation directories:
1614  --prefix=PREFIX         install architecture-independent files in PREFIX
1615                          [$ac_default_prefix]
1616  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1617                          [PREFIX]
1618
1619By default, \`make install' will install all the files in
1620\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1621an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622for instance \`--prefix=\$HOME'.
1623
1624For better control, use the options below.
1625
1626Fine tuning of the installation directories:
1627  --bindir=DIR            user executables [EPREFIX/bin]
1628  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1629  --libexecdir=DIR        program executables [EPREFIX/libexec]
1630  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1631  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1632  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1633  --libdir=DIR            object code libraries [EPREFIX/lib]
1634  --includedir=DIR        C header files [PREFIX/include]
1635  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1636  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1637  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1638  --infodir=DIR           info documentation [DATAROOTDIR/info]
1639  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1640  --mandir=DIR            man documentation [DATAROOTDIR/man]
1641  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1642  --htmldir=DIR           html documentation [DOCDIR]
1643  --dvidir=DIR            dvi documentation [DOCDIR]
1644  --pdfdir=DIR            pdf documentation [DOCDIR]
1645  --psdir=DIR             ps documentation [DOCDIR]
1646_ACEOF
1647
1648  cat <<\_ACEOF
1649
1650Program names:
1651  --program-prefix=PREFIX            prepend PREFIX to installed program names
1652  --program-suffix=SUFFIX            append SUFFIX to installed program names
1653  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1654
1655System types:
1656  --build=BUILD     configure for building on BUILD [guessed]
1657  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1658  --target=TARGET   configure for building compilers for TARGET [HOST]
1659_ACEOF
1660fi
1661
1662if test -n "$ac_init_help"; then
1663
1664  cat <<\_ACEOF
1665
1666Optional Features:
1667  --disable-option-checking  ignore unrecognized --enable/--with options
1668  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1669  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1670  --enable-generated-files-in-srcdir
1671                          put copies of generated files in source dir intended
1672                          for creating source tarballs for users without
1673                          texinfo bison or flex
1674  --disable-largefile     omit support for large files
1675  --disable-build-format-warnings
1676                          don't use -Wformat while building GCC
1677  --enable-werror-always  enable -Werror despite compiler version
1678  --enable-checking[=LIST]
1679                          enable expensive run-time checks. With LIST, enable
1680                          only specific categories of checks. Categories are:
1681                          yes,no,all,none,release. Flags are:
1682                          assert,df,extra,fold,gc,gcac,gimple,misc,
1683                          rtlflag,rtl,runtime,tree,valgrind,types
1684  --enable-coverage[=LEVEL]
1685                          enable compiler's code coverage collection. Use to
1686                          measure compiler performance and locate unused parts
1687                          of the compiler. With LEVEL, specify optimization.
1688                          Values are opt, noopt, default is noopt
1689  --enable-gather-detailed-mem-stats
1690                          enable detailed memory allocation stats gathering
1691  --enable-valgrind-annotations
1692                          enable valgrind runtime interaction
1693  --enable-multilib       enable library support for multiple ABIs
1694  --enable-multiarch      enable support for multiarch paths
1695  --enable-__cxa_atexit   enable __cxa_atexit for C++
1696  --enable-decimal-float={no,yes,bid,dpd}
1697			enable decimal float extension to C.  Selecting 'bid'
1698			or 'dpd' choses which decimal floating point format
1699			to use
1700  --enable-fixed-point    enable fixed-point arithmetic extension to C
1701  --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1702                          package
1703  --enable-tls            enable or disable generation of tls code overriding
1704                          the assembler check for tls support
1705  --enable-vtable-verify  enable vtable verification feature
1706  --disable-analyzer      disable -fanalyzer static analyzer
1707  --enable-objc-gc        enable the use of Boehm's garbage collector with the
1708                          GNU Objective-C runtime
1709  --disable-shared        don't provide a shared libgcc
1710  --disable-gcov          don't provide libgcov and related host tools
1711  --enable-languages=LIST specify which front-ends to build
1712  --disable-rpath         do not hardcode runtime library paths
1713  --enable-sjlj-exceptions
1714                          arrange to use setjmp/longjmp exception handling
1715  --enable-secureplt      enable -msecure-plt by default for PowerPC
1716  --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1717                          Default to platform configuration
1718  --enable-large-address-aware
1719                          Link mingw executables with --large-address-aware
1720  --enable-leading-mingw64-underscores
1721                          enable leading underscores on 64 bit mingw targets
1722  --enable-cld            enable -mcld by default for 32bit x86
1723  --enable-frame-pointer  enable -fno-omit-frame-pointer by default for x86
1724  --disable-win32-registry
1725                          disable lookup of installation paths in the Registry
1726                          on Windows hosts
1727  --enable-win32-registry enable registry lookup (default)
1728  --enable-win32-registry=KEY
1729                          use KEY instead of GCC version as the last portion
1730                          of the registry key
1731  --enable-shared[=PKGS]  build shared libraries [default=yes]
1732  --enable-static[=PKGS]  build static libraries [default=yes]
1733  --enable-fast-install[=PKGS]
1734                          optimize for fast installation [default=yes]
1735  --disable-libtool-lock  avoid locking (might break parallel builds)
1736  --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1737  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1738  --enable-gnu-indirect-function
1739                          enable the use of the @gnu_indirect_function to
1740                          glibc systems
1741  --enable-initfini-array	use .init_array/.fini_array sections
1742  --enable-comdat         enable COMDAT group support
1743  --enable-newlib-nano-formatted-io
1744                          Use nano version formatted IO
1745
1746  --enable-standard-branch-protection
1747                          enable Branch Target Identification Mechanism and
1748                          Return Address Signing by default for AArch64
1749  --disable-standard-branch-protection
1750                          disable Branch Target Identification Mechanism and
1751                          Return Address Signing by default for AArch64
1752
1753
1754  --enable-fix-cortex-a53-835769
1755                          enable workaround for AArch64 Cortex-A53 erratum
1756                          835769 by default
1757  --disable-fix-cortex-a53-835769
1758                          disable workaround for AArch64 Cortex-A53 erratum
1759                          835769 by default
1760
1761
1762  --enable-fix-cortex-a53-843419
1763                          enable workaround for AArch64 Cortex-A53 erratum
1764                          843419 by default
1765  --disable-fix-cortex-a53-843419
1766                          disable workaround for AArch64 Cortex-A53 erratum
1767                          843419 by default
1768
1769  --enable-gnu-unique-object
1770                          enable the use of the @gnu_unique_object ELF
1771                          extension on glibc systems
1772  --enable-linker-build-id
1773                          compiler will always pass --build-id to linker
1774  --enable-libssp         enable linking against libssp
1775  --enable-default-ssp    enable Stack Smashing Protection as default
1776  --enable-maintainer-mode
1777                          enable make rules and dependencies not useful (and
1778                          sometimes confusing) to the casual installer
1779  --enable-link-mutex     avoid linking multiple front-ends at once to avoid
1780                          thrashing on the build machine
1781  --enable-link-serialization
1782                          avoid linking multiple GCC front-ends at once using
1783                          make dependencies to avoid thrashing on the build
1784                          machine
1785  --enable-version-specific-runtime-libs
1786                          specify that runtime libraries should be installed
1787                          in a compiler-specific directory
1788  --enable-plugin         enable plugin support
1789  --enable-host-shared    build host code as shared libraries
1790  --disable-libquadmath-support
1791                          disable libquadmath support for Fortran
1792  --enable-default-pie    enable Position Independent Executable as default
1793  --enable-cet            enable Intel CET in host libraries [default=auto]
1794  --enable-s390-excess-float-precision
1795                          on s390 targets, evaluate float with double
1796                          precision when in standards-conforming mode
1797
1798Optional Packages:
1799  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1800  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1801  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1802  --with-local-prefix=DIR specifies directory to put local include
1803  --with-native-system-header-dir=dir
1804                          use dir as the directory to look for standard
1805                          system header files in.  Defaults to /usr/include.
1806  --with-build-sysroot=sysroot
1807                          use sysroot as the system root during the build
1808  --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1809  --with-gxx-include-dir=DIR
1810                          specifies directory to put g++ header files
1811  --with-gxx-libcxx-include-dir=DIR
1812                          specifies directory to find libc++ header files
1813  --with-cpp-install-dir=DIR
1814                          install the user visible C preprocessor in DIR
1815                          (relative to PREFIX) as well as PREFIX/bin
1816  --with-gnu-ld           arrange to work with GNU ld
1817  --with-ld               arrange to use the specified ld (full pathname)
1818  --with-demangler-in-ld  try to use demangler in GNU ld
1819  --with-dsymutil         arrange to use the specified dsymutil (full
1820                          pathname)
1821  --with-gnu-as           arrange to work with GNU as
1822  --with-as               arrange to use the specified as (full pathname)
1823  --with-stack-clash-protection-guard-size=size
1824                          Set the default stack clash protection guard size
1825                          for specific targets as a power of two in bytes.
1826  --with-dwarf2           force the default debug format to be DWARF 2
1827  --with-specs=SPECS      add SPECS to driver command-line processing
1828  --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1829  --with-bugurl=URL       Direct users to URL to report a bug
1830  --with-documentation-root-url=URL
1831                          Root for documentation URLs
1832  --with-changes-root-url=URL
1833                          Root for GCC changes URLs
1834  --with-multilib-list    select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1835                          SH and x86-64 only)
1836  --with-multilib-generator
1837                          Multi-libs configuration string (RISC-V only)
1838  --with-zstd=PATH        specify prefix directory for installed zstd library.
1839                          Equivalent to --with-zstd-include=PATH/include plus
1840                          --with-zstd-lib=PATH/lib
1841  --with-zstd-include=PATH
1842                          specify directory for installed zstd include files
1843  --with-zstd-lib=PATH    specify directory for the installed zstd library
1844  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1845  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1846  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1847  --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
1848  --with-gcc-major-version-only
1849                          use only GCC major number in filesystem paths
1850  --with-pic              try to use only PIC/non-PIC objects [default=use
1851                          both]
1852  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1853  --with-plugin-ld=[ARG]  specify the plugin linker
1854  --with-glibc-version=M.N
1855                          assume GCC used with glibc version M.N or later
1856  --with-long-double-128  use 128-bit long double by default
1857  --with-long-double-format={ieee,ibm}
1858		  Specify whether PowerPC long double uses IEEE or IBM format
1859
1860  --with-gc={page,zone}   this option is not supported anymore. It used to
1861                          choose the garbage collection mechanism to use with
1862                          the compiler
1863  --with-system-zlib      use installed libz
1864  --with-linker-hash-style={sysv,gnu,both}
1865                          specify the linker hash style
1866  --with-diagnostics-color={never,auto,auto-if-env,always}
1867                          specify the default of -fdiagnostics-color option
1868                          auto-if-env stands for -fdiagnostics-color=auto if
1869                          GCC_COLOR environment variable is present and
1870                          -fdiagnostics-color=never otherwise
1871  --with-diagnostics-urls={never,auto,auto-if-env,always}
1872                          specify the default of -fdiagnostics-urls option
1873                          auto-if-env stands for -fdiagnostics-urls=auto if
1874                          GCC_URLS or TERM_URLS environment variable is
1875                          present and -fdiagnostics-urls=never otherwise
1876
1877Some influential environment variables:
1878  CC          C compiler command
1879  CFLAGS      C compiler flags
1880  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1881              nonstandard directory <lib dir>
1882  LIBS        libraries to pass to the linker, e.g. -l<library>
1883  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1884              you have headers in a nonstandard directory <include dir>
1885  CXX         C++ compiler command
1886  CXXFLAGS    C++ compiler flags
1887  CXXCPP      C++ preprocessor
1888  CPP         C preprocessor
1889  GMPLIBS     How to link GMP
1890  GMPINC      How to find GMP include files
1891  ISLLIBS     How to link isl
1892  ISLINC      How to find isl include files
1893
1894Use these variables to override the choices made by `configure' or to help
1895it to find libraries and programs with nonstandard names/locations.
1896
1897Report bugs to the package provider.
1898_ACEOF
1899ac_status=$?
1900fi
1901
1902if test "$ac_init_help" = "recursive"; then
1903  # If there are subdirs, report their specific --help.
1904  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1905    test -d "$ac_dir" ||
1906      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1907      continue
1908    ac_builddir=.
1909
1910case "$ac_dir" in
1911.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1912*)
1913  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1914  # A ".." for each directory in $ac_dir_suffix.
1915  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1916  case $ac_top_builddir_sub in
1917  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1919  esac ;;
1920esac
1921ac_abs_top_builddir=$ac_pwd
1922ac_abs_builddir=$ac_pwd$ac_dir_suffix
1923# for backward compatibility:
1924ac_top_builddir=$ac_top_build_prefix
1925
1926case $srcdir in
1927  .)  # We are building in place.
1928    ac_srcdir=.
1929    ac_top_srcdir=$ac_top_builddir_sub
1930    ac_abs_top_srcdir=$ac_pwd ;;
1931  [\\/]* | ?:[\\/]* )  # Absolute name.
1932    ac_srcdir=$srcdir$ac_dir_suffix;
1933    ac_top_srcdir=$srcdir
1934    ac_abs_top_srcdir=$srcdir ;;
1935  *) # Relative name.
1936    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1937    ac_top_srcdir=$ac_top_build_prefix$srcdir
1938    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1939esac
1940ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1941
1942    cd "$ac_dir" || { ac_status=$?; continue; }
1943    # Check for guested configure.
1944    if test -f "$ac_srcdir/configure.gnu"; then
1945      echo &&
1946      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1947    elif test -f "$ac_srcdir/configure"; then
1948      echo &&
1949      $SHELL "$ac_srcdir/configure" --help=recursive
1950    else
1951      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1952    fi || ac_status=$?
1953    cd "$ac_pwd" || { ac_status=$?; break; }
1954  done
1955fi
1956
1957test -n "$ac_init_help" && exit $ac_status
1958if $ac_init_version; then
1959  cat <<\_ACEOF
1960configure
1961generated by GNU Autoconf 2.69
1962
1963Copyright (C) 2012 Free Software Foundation, Inc.
1964This configure script is free software; the Free Software Foundation
1965gives unlimited permission to copy, distribute and modify it.
1966_ACEOF
1967  exit
1968fi
1969
1970## ------------------------ ##
1971## Autoconf initialization. ##
1972## ------------------------ ##
1973
1974# ac_fn_c_try_compile LINENO
1975# --------------------------
1976# Try to compile conftest.$ac_ext, and return whether this succeeded.
1977ac_fn_c_try_compile ()
1978{
1979  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980  rm -f conftest.$ac_objext
1981  if { { ac_try="$ac_compile"
1982case "(($ac_try" in
1983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984  *) ac_try_echo=$ac_try;;
1985esac
1986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987$as_echo "$ac_try_echo"; } >&5
1988  (eval "$ac_compile") 2>conftest.err
1989  ac_status=$?
1990  if test -s conftest.err; then
1991    grep -v '^ *+' conftest.err >conftest.er1
1992    cat conftest.er1 >&5
1993    mv -f conftest.er1 conftest.err
1994  fi
1995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996  test $ac_status = 0; } && {
1997	 test -z "$ac_c_werror_flag" ||
1998	 test ! -s conftest.err
1999       } && test -s conftest.$ac_objext; then :
2000  ac_retval=0
2001else
2002  $as_echo "$as_me: failed program was:" >&5
2003sed 's/^/| /' conftest.$ac_ext >&5
2004
2005	ac_retval=1
2006fi
2007  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008  as_fn_set_status $ac_retval
2009
2010} # ac_fn_c_try_compile
2011
2012# ac_fn_cxx_try_compile LINENO
2013# ----------------------------
2014# Try to compile conftest.$ac_ext, and return whether this succeeded.
2015ac_fn_cxx_try_compile ()
2016{
2017  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018  rm -f conftest.$ac_objext
2019  if { { ac_try="$ac_compile"
2020case "(($ac_try" in
2021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022  *) ac_try_echo=$ac_try;;
2023esac
2024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025$as_echo "$ac_try_echo"; } >&5
2026  (eval "$ac_compile") 2>conftest.err
2027  ac_status=$?
2028  if test -s conftest.err; then
2029    grep -v '^ *+' conftest.err >conftest.er1
2030    cat conftest.er1 >&5
2031    mv -f conftest.er1 conftest.err
2032  fi
2033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034  test $ac_status = 0; } && {
2035	 test -z "$ac_cxx_werror_flag" ||
2036	 test ! -s conftest.err
2037       } && test -s conftest.$ac_objext; then :
2038  ac_retval=0
2039else
2040  $as_echo "$as_me: failed program was:" >&5
2041sed 's/^/| /' conftest.$ac_ext >&5
2042
2043	ac_retval=1
2044fi
2045  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046  as_fn_set_status $ac_retval
2047
2048} # ac_fn_cxx_try_compile
2049
2050# ac_fn_cxx_try_cpp LINENO
2051# ------------------------
2052# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053ac_fn_cxx_try_cpp ()
2054{
2055  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056  if { { ac_try="$ac_cpp conftest.$ac_ext"
2057case "(($ac_try" in
2058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059  *) ac_try_echo=$ac_try;;
2060esac
2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062$as_echo "$ac_try_echo"; } >&5
2063  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064  ac_status=$?
2065  if test -s conftest.err; then
2066    grep -v '^ *+' conftest.err >conftest.er1
2067    cat conftest.er1 >&5
2068    mv -f conftest.er1 conftest.err
2069  fi
2070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071  test $ac_status = 0; } > conftest.i && {
2072	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073	 test ! -s conftest.err
2074       }; then :
2075  ac_retval=0
2076else
2077  $as_echo "$as_me: failed program was:" >&5
2078sed 's/^/| /' conftest.$ac_ext >&5
2079
2080    ac_retval=1
2081fi
2082  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083  as_fn_set_status $ac_retval
2084
2085} # ac_fn_cxx_try_cpp
2086
2087# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088# ---------------------------------------------------------
2089# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090# the include files in INCLUDES and setting the cache variable VAR
2091# accordingly.
2092ac_fn_cxx_check_header_mongrel ()
2093{
2094  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095  if eval \${$3+:} false; then :
2096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097$as_echo_n "checking for $2... " >&6; }
2098if eval \${$3+:} false; then :
2099  $as_echo_n "(cached) " >&6
2100fi
2101eval ac_res=\$$3
2102	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
2104else
2105  # Is the header compilable?
2106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107$as_echo_n "checking $2 usability... " >&6; }
2108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h.  */
2110$4
2111#include <$2>
2112_ACEOF
2113if ac_fn_cxx_try_compile "$LINENO"; then :
2114  ac_header_compiler=yes
2115else
2116  ac_header_compiler=no
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120$as_echo "$ac_header_compiler" >&6; }
2121
2122# Is the header present?
2123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124$as_echo_n "checking $2 presence... " >&6; }
2125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126/* end confdefs.h.  */
2127#include <$2>
2128_ACEOF
2129if ac_fn_cxx_try_cpp "$LINENO"; then :
2130  ac_header_preproc=yes
2131else
2132  ac_header_preproc=no
2133fi
2134rm -f conftest.err conftest.i conftest.$ac_ext
2135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136$as_echo "$ac_header_preproc" >&6; }
2137
2138# So?  What about this header?
2139case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2140  yes:no: )
2141    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145    ;;
2146  no:yes:* )
2147    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2150$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2151    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2154$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2155    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2157    ;;
2158esac
2159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160$as_echo_n "checking for $2... " >&6; }
2161if eval \${$3+:} false; then :
2162  $as_echo_n "(cached) " >&6
2163else
2164  eval "$3=\$ac_header_compiler"
2165fi
2166eval ac_res=\$$3
2167	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168$as_echo "$ac_res" >&6; }
2169fi
2170  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171
2172} # ac_fn_cxx_check_header_mongrel
2173
2174# ac_fn_cxx_try_run LINENO
2175# ------------------------
2176# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2177# that executables *can* be run.
2178ac_fn_cxx_try_run ()
2179{
2180  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181  if { { ac_try="$ac_link"
2182case "(($ac_try" in
2183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184  *) ac_try_echo=$ac_try;;
2185esac
2186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187$as_echo "$ac_try_echo"; } >&5
2188  (eval "$ac_link") 2>&5
2189  ac_status=$?
2190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2192  { { case "(($ac_try" in
2193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194  *) ac_try_echo=$ac_try;;
2195esac
2196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197$as_echo "$ac_try_echo"; } >&5
2198  (eval "$ac_try") 2>&5
2199  ac_status=$?
2200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201  test $ac_status = 0; }; }; then :
2202  ac_retval=0
2203else
2204  $as_echo "$as_me: program exited with status $ac_status" >&5
2205       $as_echo "$as_me: failed program was:" >&5
2206sed 's/^/| /' conftest.$ac_ext >&5
2207
2208       ac_retval=$ac_status
2209fi
2210  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212  as_fn_set_status $ac_retval
2213
2214} # ac_fn_cxx_try_run
2215
2216# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2217# ---------------------------------------------------------
2218# Tests whether HEADER exists and can be compiled using the include files in
2219# INCLUDES, setting the cache variable VAR accordingly.
2220ac_fn_cxx_check_header_compile ()
2221{
2222  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224$as_echo_n "checking for $2... " >&6; }
2225if eval \${$3+:} false; then :
2226  $as_echo_n "(cached) " >&6
2227else
2228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229/* end confdefs.h.  */
2230$4
2231#include <$2>
2232_ACEOF
2233if ac_fn_cxx_try_compile "$LINENO"; then :
2234  eval "$3=yes"
2235else
2236  eval "$3=no"
2237fi
2238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239fi
2240eval ac_res=\$$3
2241	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242$as_echo "$ac_res" >&6; }
2243  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244
2245} # ac_fn_cxx_check_header_compile
2246
2247# ac_fn_c_try_cpp LINENO
2248# ----------------------
2249# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2250ac_fn_c_try_cpp ()
2251{
2252  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253  if { { ac_try="$ac_cpp conftest.$ac_ext"
2254case "(($ac_try" in
2255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256  *) ac_try_echo=$ac_try;;
2257esac
2258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259$as_echo "$ac_try_echo"; } >&5
2260  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2261  ac_status=$?
2262  if test -s conftest.err; then
2263    grep -v '^ *+' conftest.err >conftest.er1
2264    cat conftest.er1 >&5
2265    mv -f conftest.er1 conftest.err
2266  fi
2267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268  test $ac_status = 0; } > conftest.i && {
2269	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2270	 test ! -s conftest.err
2271       }; then :
2272  ac_retval=0
2273else
2274  $as_echo "$as_me: failed program was:" >&5
2275sed 's/^/| /' conftest.$ac_ext >&5
2276
2277    ac_retval=1
2278fi
2279  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280  as_fn_set_status $ac_retval
2281
2282} # ac_fn_c_try_cpp
2283
2284# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2285# ----------------------------------------------
2286# Tries to find the compile-time value of EXPR in a program that includes
2287# INCLUDES, setting VAR accordingly. Returns whether the value could be
2288# computed
2289ac_fn_cxx_compute_int ()
2290{
2291  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292  if test "$cross_compiling" = yes; then
2293    # Depending upon the size, compute the lo and hi bounds.
2294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295/* end confdefs.h.  */
2296$4
2297int
2298main ()
2299{
2300static int test_array [1 - 2 * !(($2) >= 0)];
2301test_array [0] = 0;
2302return test_array [0];
2303
2304  ;
2305  return 0;
2306}
2307_ACEOF
2308if ac_fn_cxx_try_compile "$LINENO"; then :
2309  ac_lo=0 ac_mid=0
2310  while :; do
2311    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312/* end confdefs.h.  */
2313$4
2314int
2315main ()
2316{
2317static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2318test_array [0] = 0;
2319return test_array [0];
2320
2321  ;
2322  return 0;
2323}
2324_ACEOF
2325if ac_fn_cxx_try_compile "$LINENO"; then :
2326  ac_hi=$ac_mid; break
2327else
2328  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2329			if test $ac_lo -le $ac_mid; then
2330			  ac_lo= ac_hi=
2331			  break
2332			fi
2333			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2334fi
2335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336  done
2337else
2338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339/* end confdefs.h.  */
2340$4
2341int
2342main ()
2343{
2344static int test_array [1 - 2 * !(($2) < 0)];
2345test_array [0] = 0;
2346return test_array [0];
2347
2348  ;
2349  return 0;
2350}
2351_ACEOF
2352if ac_fn_cxx_try_compile "$LINENO"; then :
2353  ac_hi=-1 ac_mid=-1
2354  while :; do
2355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356/* end confdefs.h.  */
2357$4
2358int
2359main ()
2360{
2361static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2362test_array [0] = 0;
2363return test_array [0];
2364
2365  ;
2366  return 0;
2367}
2368_ACEOF
2369if ac_fn_cxx_try_compile "$LINENO"; then :
2370  ac_lo=$ac_mid; break
2371else
2372  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2373			if test $ac_mid -le $ac_hi; then
2374			  ac_lo= ac_hi=
2375			  break
2376			fi
2377			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2378fi
2379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380  done
2381else
2382  ac_lo= ac_hi=
2383fi
2384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385fi
2386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387# Binary search between lo and hi bounds.
2388while test "x$ac_lo" != "x$ac_hi"; do
2389  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391/* end confdefs.h.  */
2392$4
2393int
2394main ()
2395{
2396static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2397test_array [0] = 0;
2398return test_array [0];
2399
2400  ;
2401  return 0;
2402}
2403_ACEOF
2404if ac_fn_cxx_try_compile "$LINENO"; then :
2405  ac_hi=$ac_mid
2406else
2407  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2408fi
2409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410done
2411case $ac_lo in #((
2412?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2413'') ac_retval=1 ;;
2414esac
2415  else
2416    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417/* end confdefs.h.  */
2418$4
2419static long int longval () { return $2; }
2420static unsigned long int ulongval () { return $2; }
2421#include <stdio.h>
2422#include <stdlib.h>
2423int
2424main ()
2425{
2426
2427  FILE *f = fopen ("conftest.val", "w");
2428  if (! f)
2429    return 1;
2430  if (($2) < 0)
2431    {
2432      long int i = longval ();
2433      if (i != ($2))
2434	return 1;
2435      fprintf (f, "%ld", i);
2436    }
2437  else
2438    {
2439      unsigned long int i = ulongval ();
2440      if (i != ($2))
2441	return 1;
2442      fprintf (f, "%lu", i);
2443    }
2444  /* Do not output a trailing newline, as this causes \r\n confusion
2445     on some platforms.  */
2446  return ferror (f) || fclose (f) != 0;
2447
2448  ;
2449  return 0;
2450}
2451_ACEOF
2452if ac_fn_cxx_try_run "$LINENO"; then :
2453  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2454else
2455  ac_retval=1
2456fi
2457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2458  conftest.$ac_objext conftest.beam conftest.$ac_ext
2459rm -f conftest.val
2460
2461  fi
2462  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463  as_fn_set_status $ac_retval
2464
2465} # ac_fn_cxx_compute_int
2466
2467# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2468# ---------------------------------------------
2469# Tests whether TYPE exists after having included INCLUDES, setting cache
2470# variable VAR accordingly.
2471ac_fn_cxx_check_type ()
2472{
2473  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475$as_echo_n "checking for $2... " >&6; }
2476if eval \${$3+:} false; then :
2477  $as_echo_n "(cached) " >&6
2478else
2479  eval "$3=no"
2480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481/* end confdefs.h.  */
2482$4
2483int
2484main ()
2485{
2486if (sizeof ($2))
2487	 return 0;
2488  ;
2489  return 0;
2490}
2491_ACEOF
2492if ac_fn_cxx_try_compile "$LINENO"; then :
2493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494/* end confdefs.h.  */
2495$4
2496int
2497main ()
2498{
2499if (sizeof (($2)))
2500	    return 0;
2501  ;
2502  return 0;
2503}
2504_ACEOF
2505if ac_fn_cxx_try_compile "$LINENO"; then :
2506
2507else
2508  eval "$3=yes"
2509fi
2510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511fi
2512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513fi
2514eval ac_res=\$$3
2515	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516$as_echo "$ac_res" >&6; }
2517  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2518
2519} # ac_fn_cxx_check_type
2520
2521# ac_fn_c_find_intX_t LINENO BITS VAR
2522# -----------------------------------
2523# Finds a signed integer type with width BITS, setting cache variable VAR
2524# accordingly.
2525ac_fn_c_find_intX_t ()
2526{
2527  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2529$as_echo_n "checking for int$2_t... " >&6; }
2530if eval \${$3+:} false; then :
2531  $as_echo_n "(cached) " >&6
2532else
2533  eval "$3=no"
2534     # Order is important - never check a type that is potentially smaller
2535     # than half of the expected target width.
2536     for ac_type in int$2_t 'int' 'long int' \
2537	 'long long int' 'short int' 'signed char'; do
2538       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539/* end confdefs.h.  */
2540$ac_includes_default
2541	     enum { N = $2 / 2 - 1 };
2542int
2543main ()
2544{
2545static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2546test_array [0] = 0;
2547return test_array [0];
2548
2549  ;
2550  return 0;
2551}
2552_ACEOF
2553if ac_fn_cxx_try_compile "$LINENO"; then :
2554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555/* end confdefs.h.  */
2556$ac_includes_default
2557	        enum { N = $2 / 2 - 1 };
2558int
2559main ()
2560{
2561static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2562		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2563test_array [0] = 0;
2564return test_array [0];
2565
2566  ;
2567  return 0;
2568}
2569_ACEOF
2570if ac_fn_cxx_try_compile "$LINENO"; then :
2571
2572else
2573  case $ac_type in #(
2574  int$2_t) :
2575    eval "$3=yes" ;; #(
2576  *) :
2577    eval "$3=\$ac_type" ;;
2578esac
2579fi
2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581fi
2582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583       if eval test \"x\$"$3"\" = x"no"; then :
2584
2585else
2586  break
2587fi
2588     done
2589fi
2590eval ac_res=\$$3
2591	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592$as_echo "$ac_res" >&6; }
2593  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2594
2595} # ac_fn_c_find_intX_t
2596
2597# ac_fn_cxx_try_link LINENO
2598# -------------------------
2599# Try to link conftest.$ac_ext, and return whether this succeeded.
2600ac_fn_cxx_try_link ()
2601{
2602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603  rm -f conftest.$ac_objext conftest$ac_exeext
2604  if { { ac_try="$ac_link"
2605case "(($ac_try" in
2606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607  *) ac_try_echo=$ac_try;;
2608esac
2609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610$as_echo "$ac_try_echo"; } >&5
2611  (eval "$ac_link") 2>conftest.err
2612  ac_status=$?
2613  if test -s conftest.err; then
2614    grep -v '^ *+' conftest.err >conftest.er1
2615    cat conftest.er1 >&5
2616    mv -f conftest.er1 conftest.err
2617  fi
2618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619  test $ac_status = 0; } && {
2620	 test -z "$ac_cxx_werror_flag" ||
2621	 test ! -s conftest.err
2622       } && test -s conftest$ac_exeext && {
2623	 test "$cross_compiling" = yes ||
2624	 test -x conftest$ac_exeext
2625       }; then :
2626  ac_retval=0
2627else
2628  $as_echo "$as_me: failed program was:" >&5
2629sed 's/^/| /' conftest.$ac_ext >&5
2630
2631	ac_retval=1
2632fi
2633  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2634  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2635  # interfere with the next link command; also delete a directory that is
2636  # left behind by Apple's compiler.  We do this before executing the actions.
2637  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2638  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639  as_fn_set_status $ac_retval
2640
2641} # ac_fn_cxx_try_link
2642
2643# ac_fn_c_find_uintX_t LINENO BITS VAR
2644# ------------------------------------
2645# Finds an unsigned integer type with width BITS, setting cache variable VAR
2646# accordingly.
2647ac_fn_c_find_uintX_t ()
2648{
2649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2651$as_echo_n "checking for uint$2_t... " >&6; }
2652if eval \${$3+:} false; then :
2653  $as_echo_n "(cached) " >&6
2654else
2655  eval "$3=no"
2656     # Order is important - never check a type that is potentially smaller
2657     # than half of the expected target width.
2658     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2659	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2660       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661/* end confdefs.h.  */
2662$ac_includes_default
2663int
2664main ()
2665{
2666static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2667test_array [0] = 0;
2668return test_array [0];
2669
2670  ;
2671  return 0;
2672}
2673_ACEOF
2674if ac_fn_cxx_try_compile "$LINENO"; then :
2675  case $ac_type in #(
2676  uint$2_t) :
2677    eval "$3=yes" ;; #(
2678  *) :
2679    eval "$3=\$ac_type" ;;
2680esac
2681fi
2682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683       if eval test \"x\$"$3"\" = x"no"; then :
2684
2685else
2686  break
2687fi
2688     done
2689fi
2690eval ac_res=\$$3
2691	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692$as_echo "$ac_res" >&6; }
2693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2694
2695} # ac_fn_c_find_uintX_t
2696
2697# ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2698# ------------------------------------------------
2699# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2700ac_fn_cxx_check_header_preproc ()
2701{
2702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2704$as_echo_n "checking for $2... " >&6; }
2705if eval \${$3+:} false; then :
2706  $as_echo_n "(cached) " >&6
2707else
2708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h.  */
2710#include <$2>
2711_ACEOF
2712if ac_fn_cxx_try_cpp "$LINENO"; then :
2713  eval "$3=yes"
2714else
2715  eval "$3=no"
2716fi
2717rm -f conftest.err conftest.i conftest.$ac_ext
2718fi
2719eval ac_res=\$$3
2720	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721$as_echo "$ac_res" >&6; }
2722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2723
2724} # ac_fn_cxx_check_header_preproc
2725
2726# ac_fn_cxx_check_func LINENO FUNC VAR
2727# ------------------------------------
2728# Tests whether FUNC exists, setting the cache variable VAR accordingly
2729ac_fn_cxx_check_func ()
2730{
2731  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733$as_echo_n "checking for $2... " >&6; }
2734if eval \${$3+:} false; then :
2735  $as_echo_n "(cached) " >&6
2736else
2737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738/* end confdefs.h.  */
2739/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2741#define $2 innocuous_$2
2742
2743/* System header to define __stub macros and hopefully few prototypes,
2744    which can conflict with char $2 (); below.
2745    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746    <limits.h> exists even on freestanding compilers.  */
2747
2748#ifdef __STDC__
2749# include <limits.h>
2750#else
2751# include <assert.h>
2752#endif
2753
2754#undef $2
2755
2756/* Override any GCC internal prototype to avoid an error.
2757   Use char because int might match the return type of a GCC
2758   builtin and then its argument prototype would still apply.  */
2759#ifdef __cplusplus
2760extern "C"
2761#endif
2762char $2 ();
2763/* The GNU C library defines this for functions which it implements
2764    to always fail with ENOSYS.  Some functions are actually named
2765    something starting with __ and the normal name is an alias.  */
2766#if defined __stub_$2 || defined __stub___$2
2767choke me
2768#endif
2769
2770int
2771main ()
2772{
2773return $2 ();
2774  ;
2775  return 0;
2776}
2777_ACEOF
2778if ac_fn_cxx_try_link "$LINENO"; then :
2779  eval "$3=yes"
2780else
2781  eval "$3=no"
2782fi
2783rm -f core conftest.err conftest.$ac_objext \
2784    conftest$ac_exeext conftest.$ac_ext
2785fi
2786eval ac_res=\$$3
2787	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788$as_echo "$ac_res" >&6; }
2789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790
2791} # ac_fn_cxx_check_func
2792
2793# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2794# -----------------------------------------------
2795# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2796# accordingly.
2797ac_fn_cxx_check_decl ()
2798{
2799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800  as_decl_name=`echo $2|sed 's/ *(.*//'`
2801  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2803$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2804if eval \${$3+:} false; then :
2805  $as_echo_n "(cached) " >&6
2806else
2807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808/* end confdefs.h.  */
2809$4
2810int
2811main ()
2812{
2813#ifndef $as_decl_name
2814#ifdef __cplusplus
2815  (void) $as_decl_use;
2816#else
2817  (void) $as_decl_name;
2818#endif
2819#endif
2820
2821  ;
2822  return 0;
2823}
2824_ACEOF
2825if ac_fn_cxx_try_compile "$LINENO"; then :
2826  eval "$3=yes"
2827else
2828  eval "$3=no"
2829fi
2830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831fi
2832eval ac_res=\$$3
2833	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834$as_echo "$ac_res" >&6; }
2835  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2836
2837} # ac_fn_cxx_check_decl
2838
2839# ac_fn_c_try_link LINENO
2840# -----------------------
2841# Try to link conftest.$ac_ext, and return whether this succeeded.
2842ac_fn_c_try_link ()
2843{
2844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845  rm -f conftest.$ac_objext conftest$ac_exeext
2846  if { { ac_try="$ac_link"
2847case "(($ac_try" in
2848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849  *) ac_try_echo=$ac_try;;
2850esac
2851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852$as_echo "$ac_try_echo"; } >&5
2853  (eval "$ac_link") 2>conftest.err
2854  ac_status=$?
2855  if test -s conftest.err; then
2856    grep -v '^ *+' conftest.err >conftest.er1
2857    cat conftest.er1 >&5
2858    mv -f conftest.er1 conftest.err
2859  fi
2860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861  test $ac_status = 0; } && {
2862	 test -z "$ac_c_werror_flag" ||
2863	 test ! -s conftest.err
2864       } && test -s conftest$ac_exeext && {
2865	 test "$cross_compiling" = yes ||
2866	 test -x conftest$ac_exeext
2867       }; then :
2868  ac_retval=0
2869else
2870  $as_echo "$as_me: failed program was:" >&5
2871sed 's/^/| /' conftest.$ac_ext >&5
2872
2873	ac_retval=1
2874fi
2875  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2876  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2877  # interfere with the next link command; also delete a directory that is
2878  # left behind by Apple's compiler.  We do this before executing the actions.
2879  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2880  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2881  as_fn_set_status $ac_retval
2882
2883} # ac_fn_c_try_link
2884
2885# ac_fn_c_check_header_preproc LINENO HEADER VAR
2886# ----------------------------------------------
2887# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2888ac_fn_c_check_header_preproc ()
2889{
2890  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2892$as_echo_n "checking for $2... " >&6; }
2893if eval \${$3+:} false; then :
2894  $as_echo_n "(cached) " >&6
2895else
2896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h.  */
2898#include <$2>
2899_ACEOF
2900if ac_fn_c_try_cpp "$LINENO"; then :
2901  eval "$3=yes"
2902else
2903  eval "$3=no"
2904fi
2905rm -f conftest.err conftest.i conftest.$ac_ext
2906fi
2907eval ac_res=\$$3
2908	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909$as_echo "$ac_res" >&6; }
2910  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2911
2912} # ac_fn_c_check_header_preproc
2913
2914# ac_fn_c_check_func LINENO FUNC VAR
2915# ----------------------------------
2916# Tests whether FUNC exists, setting the cache variable VAR accordingly
2917ac_fn_c_check_func ()
2918{
2919  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2921$as_echo_n "checking for $2... " >&6; }
2922if eval \${$3+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926/* end confdefs.h.  */
2927/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2928   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2929#define $2 innocuous_$2
2930
2931/* System header to define __stub macros and hopefully few prototypes,
2932    which can conflict with char $2 (); below.
2933    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934    <limits.h> exists even on freestanding compilers.  */
2935
2936#ifdef __STDC__
2937# include <limits.h>
2938#else
2939# include <assert.h>
2940#endif
2941
2942#undef $2
2943
2944/* Override any GCC internal prototype to avoid an error.
2945   Use char because int might match the return type of a GCC
2946   builtin and then its argument prototype would still apply.  */
2947#ifdef __cplusplus
2948extern "C"
2949#endif
2950char $2 ();
2951/* The GNU C library defines this for functions which it implements
2952    to always fail with ENOSYS.  Some functions are actually named
2953    something starting with __ and the normal name is an alias.  */
2954#if defined __stub_$2 || defined __stub___$2
2955choke me
2956#endif
2957
2958int
2959main ()
2960{
2961return $2 ();
2962  ;
2963  return 0;
2964}
2965_ACEOF
2966if ac_fn_c_try_link "$LINENO"; then :
2967  eval "$3=yes"
2968else
2969  eval "$3=no"
2970fi
2971rm -f core conftest.err conftest.$ac_objext \
2972    conftest$ac_exeext conftest.$ac_ext
2973fi
2974eval ac_res=\$$3
2975	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2976$as_echo "$ac_res" >&6; }
2977  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2978
2979} # ac_fn_c_check_func
2980cat >config.log <<_ACEOF
2981This file contains any messages produced by compilers while
2982running configure, to aid debugging if configure makes a mistake.
2983
2984It was created by $as_me, which was
2985generated by GNU Autoconf 2.69.  Invocation command line was
2986
2987  $ $0 $@
2988
2989_ACEOF
2990exec 5>>config.log
2991{
2992cat <<_ASUNAME
2993## --------- ##
2994## Platform. ##
2995## --------- ##
2996
2997hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2998uname -m = `(uname -m) 2>/dev/null || echo unknown`
2999uname -r = `(uname -r) 2>/dev/null || echo unknown`
3000uname -s = `(uname -s) 2>/dev/null || echo unknown`
3001uname -v = `(uname -v) 2>/dev/null || echo unknown`
3002
3003/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3004/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3005
3006/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3007/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3008/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3009/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3010/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3011/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3012/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3013
3014_ASUNAME
3015
3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017for as_dir in $PATH
3018do
3019  IFS=$as_save_IFS
3020  test -z "$as_dir" && as_dir=.
3021    $as_echo "PATH: $as_dir"
3022  done
3023IFS=$as_save_IFS
3024
3025} >&5
3026
3027cat >&5 <<_ACEOF
3028
3029
3030## ----------- ##
3031## Core tests. ##
3032## ----------- ##
3033
3034_ACEOF
3035
3036
3037# Keep a trace of the command line.
3038# Strip out --no-create and --no-recursion so they do not pile up.
3039# Strip out --silent because we don't want to record it for future runs.
3040# Also quote any args containing shell meta-characters.
3041# Make two passes to allow for proper duplicate-argument suppression.
3042ac_configure_args=
3043ac_configure_args0=
3044ac_configure_args1=
3045ac_must_keep_next=false
3046for ac_pass in 1 2
3047do
3048  for ac_arg
3049  do
3050    case $ac_arg in
3051    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3052    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3053    | -silent | --silent | --silen | --sile | --sil)
3054      continue ;;
3055    *\'*)
3056      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3057    esac
3058    case $ac_pass in
3059    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3060    2)
3061      as_fn_append ac_configure_args1 " '$ac_arg'"
3062      if test $ac_must_keep_next = true; then
3063	ac_must_keep_next=false # Got value, back to normal.
3064      else
3065	case $ac_arg in
3066	  *=* | --config-cache | -C | -disable-* | --disable-* \
3067	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3068	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3069	  | -with-* | --with-* | -without-* | --without-* | --x)
3070	    case "$ac_configure_args0 " in
3071	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3072	    esac
3073	    ;;
3074	  -* ) ac_must_keep_next=true ;;
3075	esac
3076      fi
3077      as_fn_append ac_configure_args " '$ac_arg'"
3078      ;;
3079    esac
3080  done
3081done
3082{ ac_configure_args0=; unset ac_configure_args0;}
3083{ ac_configure_args1=; unset ac_configure_args1;}
3084
3085# When interrupted or exit'd, cleanup temporary files, and complete
3086# config.log.  We remove comments because anyway the quotes in there
3087# would cause problems or look ugly.
3088# WARNING: Use '\'' to represent an apostrophe within the trap.
3089# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3090trap 'exit_status=$?
3091  # Save into config.log some information that might help in debugging.
3092  {
3093    echo
3094
3095    $as_echo "## ---------------- ##
3096## Cache variables. ##
3097## ---------------- ##"
3098    echo
3099    # The following way of writing the cache mishandles newlines in values,
3100(
3101  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3102    eval ac_val=\$$ac_var
3103    case $ac_val in #(
3104    *${as_nl}*)
3105      case $ac_var in #(
3106      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3107$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3108      esac
3109      case $ac_var in #(
3110      _ | IFS | as_nl) ;; #(
3111      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3112      *) { eval $ac_var=; unset $ac_var;} ;;
3113      esac ;;
3114    esac
3115  done
3116  (set) 2>&1 |
3117    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3118    *${as_nl}ac_space=\ *)
3119      sed -n \
3120	"s/'\''/'\''\\\\'\'''\''/g;
3121	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3122      ;; #(
3123    *)
3124      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3125      ;;
3126    esac |
3127    sort
3128)
3129    echo
3130
3131    $as_echo "## ----------------- ##
3132## Output variables. ##
3133## ----------------- ##"
3134    echo
3135    for ac_var in $ac_subst_vars
3136    do
3137      eval ac_val=\$$ac_var
3138      case $ac_val in
3139      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3140      esac
3141      $as_echo "$ac_var='\''$ac_val'\''"
3142    done | sort
3143    echo
3144
3145    if test -n "$ac_subst_files"; then
3146      $as_echo "## ------------------- ##
3147## File substitutions. ##
3148## ------------------- ##"
3149      echo
3150      for ac_var in $ac_subst_files
3151      do
3152	eval ac_val=\$$ac_var
3153	case $ac_val in
3154	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3155	esac
3156	$as_echo "$ac_var='\''$ac_val'\''"
3157      done | sort
3158      echo
3159    fi
3160
3161    if test -s confdefs.h; then
3162      $as_echo "## ----------- ##
3163## confdefs.h. ##
3164## ----------- ##"
3165      echo
3166      cat confdefs.h
3167      echo
3168    fi
3169    test "$ac_signal" != 0 &&
3170      $as_echo "$as_me: caught signal $ac_signal"
3171    $as_echo "$as_me: exit $exit_status"
3172  } >&5
3173  rm -f core *.core core.conftest.* &&
3174    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3175    exit $exit_status
3176' 0
3177for ac_signal in 1 2 13 15; do
3178  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3179done
3180ac_signal=0
3181
3182# confdefs.h avoids OS command line length limits that DEFS can exceed.
3183rm -f -r conftest* confdefs.h
3184
3185$as_echo "/* confdefs.h */" > confdefs.h
3186
3187# Predefined preprocessor variables.
3188
3189cat >>confdefs.h <<_ACEOF
3190#define PACKAGE_NAME "$PACKAGE_NAME"
3191_ACEOF
3192
3193cat >>confdefs.h <<_ACEOF
3194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3195_ACEOF
3196
3197cat >>confdefs.h <<_ACEOF
3198#define PACKAGE_VERSION "$PACKAGE_VERSION"
3199_ACEOF
3200
3201cat >>confdefs.h <<_ACEOF
3202#define PACKAGE_STRING "$PACKAGE_STRING"
3203_ACEOF
3204
3205cat >>confdefs.h <<_ACEOF
3206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3207_ACEOF
3208
3209cat >>confdefs.h <<_ACEOF
3210#define PACKAGE_URL "$PACKAGE_URL"
3211_ACEOF
3212
3213
3214# Let the site file select an alternate cache file if it wants to.
3215# Prefer an explicitly selected file to automatically selected ones.
3216ac_site_file1=NONE
3217ac_site_file2=NONE
3218if test -n "$CONFIG_SITE"; then
3219  # We do not want a PATH search for config.site.
3220  case $CONFIG_SITE in #((
3221    -*)  ac_site_file1=./$CONFIG_SITE;;
3222    */*) ac_site_file1=$CONFIG_SITE;;
3223    *)   ac_site_file1=./$CONFIG_SITE;;
3224  esac
3225elif test "x$prefix" != xNONE; then
3226  ac_site_file1=$prefix/share/config.site
3227  ac_site_file2=$prefix/etc/config.site
3228else
3229  ac_site_file1=$ac_default_prefix/share/config.site
3230  ac_site_file2=$ac_default_prefix/etc/config.site
3231fi
3232for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3233do
3234  test "x$ac_site_file" = xNONE && continue
3235  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3236    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3237$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3238    sed 's/^/| /' "$ac_site_file" >&5
3239    . "$ac_site_file" \
3240      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242as_fn_error $? "failed to load site script $ac_site_file
3243See \`config.log' for more details" "$LINENO" 5; }
3244  fi
3245done
3246
3247if test -r "$cache_file"; then
3248  # Some versions of bash will fail to source /dev/null (special files
3249  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3250  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3251    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3252$as_echo "$as_me: loading cache $cache_file" >&6;}
3253    case $cache_file in
3254      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3255      *)                      . "./$cache_file";;
3256    esac
3257  fi
3258else
3259  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3260$as_echo "$as_me: creating cache $cache_file" >&6;}
3261  >$cache_file
3262fi
3263
3264# Check that the precious variables saved in the cache have kept the same
3265# value.
3266ac_cache_corrupted=false
3267for ac_var in $ac_precious_vars; do
3268  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3269  eval ac_new_set=\$ac_env_${ac_var}_set
3270  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3271  eval ac_new_val=\$ac_env_${ac_var}_value
3272  case $ac_old_set,$ac_new_set in
3273    set,)
3274      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3275$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3276      ac_cache_corrupted=: ;;
3277    ,set)
3278      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3279$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3280      ac_cache_corrupted=: ;;
3281    ,);;
3282    *)
3283      if test "x$ac_old_val" != "x$ac_new_val"; then
3284	# differences in whitespace do not lead to failure.
3285	ac_old_val_w=`echo x $ac_old_val`
3286	ac_new_val_w=`echo x $ac_new_val`
3287	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3288	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3289$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3290	  ac_cache_corrupted=:
3291	else
3292	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3293$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3294	  eval $ac_var=\$ac_old_val
3295	fi
3296	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3297$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3298	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3299$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3300      fi;;
3301  esac
3302  # Pass precious variables to config.status.
3303  if test "$ac_new_set" = set; then
3304    case $ac_new_val in
3305    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3306    *) ac_arg=$ac_var=$ac_new_val ;;
3307    esac
3308    case " $ac_configure_args " in
3309      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3310      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3311    esac
3312  fi
3313done
3314if $ac_cache_corrupted; then
3315  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3318$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3319  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3320fi
3321## -------------------- ##
3322## Main body of script. ##
3323## -------------------- ##
3324
3325ac_ext=c
3326ac_cpp='$CPP $CPPFLAGS'
3327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330
3331
3332
3333
3334
3335
3336ac_config_headers="$ac_config_headers auto-host.h:config.in"
3337
3338
3339gcc_version=`cat $srcdir/BASE-VER`
3340
3341# Determine the host, build, and target systems
3342ac_aux_dir=
3343for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3344  if test -f "$ac_dir/install-sh"; then
3345    ac_aux_dir=$ac_dir
3346    ac_install_sh="$ac_aux_dir/install-sh -c"
3347    break
3348  elif test -f "$ac_dir/install.sh"; then
3349    ac_aux_dir=$ac_dir
3350    ac_install_sh="$ac_aux_dir/install.sh -c"
3351    break
3352  elif test -f "$ac_dir/shtool"; then
3353    ac_aux_dir=$ac_dir
3354    ac_install_sh="$ac_aux_dir/shtool install -c"
3355    break
3356  fi
3357done
3358if test -z "$ac_aux_dir"; then
3359  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3360fi
3361
3362# These three variables are undocumented and unsupported,
3363# and are intended to be withdrawn in a future Autoconf release.
3364# They can cause serious problems if a builder's source tree is in a directory
3365# whose full name contains unusual characters.
3366ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3367ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3368ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3369
3370
3371# Make sure we can run config.sub.
3372$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3373  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3374
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3376$as_echo_n "checking build system type... " >&6; }
3377if ${ac_cv_build+:} false; then :
3378  $as_echo_n "(cached) " >&6
3379else
3380  ac_build_alias=$build_alias
3381test "x$ac_build_alias" = x &&
3382  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383test "x$ac_build_alias" = x &&
3384  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3385ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3386  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3387
3388fi
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3390$as_echo "$ac_cv_build" >&6; }
3391case $ac_cv_build in
3392*-*-*) ;;
3393*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3394esac
3395build=$ac_cv_build
3396ac_save_IFS=$IFS; IFS='-'
3397set x $ac_cv_build
3398shift
3399build_cpu=$1
3400build_vendor=$2
3401shift; shift
3402# Remember, the first character of IFS is used to create $*,
3403# except with old shells:
3404build_os=$*
3405IFS=$ac_save_IFS
3406case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3407
3408
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3410$as_echo_n "checking host system type... " >&6; }
3411if ${ac_cv_host+:} false; then :
3412  $as_echo_n "(cached) " >&6
3413else
3414  if test "x$host_alias" = x; then
3415  ac_cv_host=$ac_cv_build
3416else
3417  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3418    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3419fi
3420
3421fi
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3423$as_echo "$ac_cv_host" >&6; }
3424case $ac_cv_host in
3425*-*-*) ;;
3426*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3427esac
3428host=$ac_cv_host
3429ac_save_IFS=$IFS; IFS='-'
3430set x $ac_cv_host
3431shift
3432host_cpu=$1
3433host_vendor=$2
3434shift; shift
3435# Remember, the first character of IFS is used to create $*,
3436# except with old shells:
3437host_os=$*
3438IFS=$ac_save_IFS
3439case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3440
3441
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3443$as_echo_n "checking target system type... " >&6; }
3444if ${ac_cv_target+:} false; then :
3445  $as_echo_n "(cached) " >&6
3446else
3447  if test "x$target_alias" = x; then
3448  ac_cv_target=$ac_cv_host
3449else
3450  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3451    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3452fi
3453
3454fi
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3456$as_echo "$ac_cv_target" >&6; }
3457case $ac_cv_target in
3458*-*-*) ;;
3459*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3460esac
3461target=$ac_cv_target
3462ac_save_IFS=$IFS; IFS='-'
3463set x $ac_cv_target
3464shift
3465target_cpu=$1
3466target_vendor=$2
3467shift; shift
3468# Remember, the first character of IFS is used to create $*,
3469# except with old shells:
3470target_os=$*
3471IFS=$ac_save_IFS
3472case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3473
3474
3475# The aliases save the names the user supplied, while $host etc.
3476# will get canonicalized.
3477test -n "$target_alias" &&
3478  test "$program_prefix$program_suffix$program_transform_name" = \
3479    NONENONEs,x,x, &&
3480  program_prefix=${target_alias}-
3481
3482# Determine the noncanonical host name, for Ada.
3483 case ${build_alias} in
3484  "") build_noncanonical=${build} ;;
3485  *) build_noncanonical=${build_alias} ;;
3486esac
3487
3488 case ${host_alias} in
3489  "") host_noncanonical=${build_noncanonical} ;;
3490  *) host_noncanonical=${host_alias} ;;
3491esac
3492
3493
3494
3495
3496# Determine the noncanonical target name, for directory use.
3497 case ${target_alias} in
3498  "") target_noncanonical=${host_noncanonical} ;;
3499  *) target_noncanonical=${target_alias} ;;
3500esac
3501
3502
3503
3504
3505# Used for constructing correct paths for offload compilers.
3506real_target_noncanonical=${target_noncanonical}
3507accel_dir_suffix=
3508
3509# Determine the target- and build-specific subdirectories
3510
3511# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3512# have matching libraries, they should use host libraries: Makefile.tpl
3513# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3514# However, they still use the build modules, because the corresponding
3515# host modules (e.g. bison) are only built for the host when bootstrap
3516# finishes. So:
3517# - build_subdir is where we find build modules, and never changes.
3518# - build_libsubdir is where we find build libraries, and can be overridden.
3519
3520# Prefix 'build-' so this never conflicts with target_subdir.
3521build_subdir="build-${build_noncanonical}"
3522
3523# Check whether --with-build-libsubdir was given.
3524if test "${with_build_libsubdir+set}" = set; then :
3525  withval=$with_build_libsubdir; build_libsubdir="$withval"
3526else
3527  build_libsubdir="$build_subdir"
3528fi
3529
3530# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3531if ( test $srcdir = . && test -d gcc ) \
3532   || test -d $srcdir/../host-${host_noncanonical}; then
3533  host_subdir="host-${host_noncanonical}"
3534else
3535  host_subdir=.
3536fi
3537# No prefix.
3538target_subdir=${target_noncanonical}
3539
3540
3541# Set program_transform_name
3542test "$program_prefix" != NONE &&
3543  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3544# Use a double $ so make ignores it.
3545test "$program_suffix" != NONE &&
3546  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3547# Double any \ or $.
3548# By default was `s,x,x', remove it if useless.
3549ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3550program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3551
3552
3553# Check for bogus environment variables.
3554# Test if LIBRARY_PATH contains the notation for the current directory
3555# since this would lead to problems installing/building glibc.
3556# LIBRARY_PATH contains the current directory if one of the following
3557# is true:
3558# - one of the terminals (":" and ";") is the first or last sign
3559# - two terminals occur directly after each other
3560# - the path contains an element with a dot in it
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3562$as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3563case ${LIBRARY_PATH} in
3564  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3565    library_path_setting="contains current directory"
3566    ;;
3567  *)
3568    library_path_setting="ok"
3569    ;;
3570esac
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3572$as_echo "$library_path_setting" >&6; }
3573if test "$library_path_setting" != "ok"; then
3574as_fn_error $? "
3575*** LIBRARY_PATH shouldn't contain the current directory when
3576*** building gcc. Please change the environment variable
3577*** and run configure again." "$LINENO" 5
3578fi
3579
3580# Test if GCC_EXEC_PREFIX contains the notation for the current directory
3581# since this would lead to problems installing/building glibc.
3582# GCC_EXEC_PREFIX contains the current directory if one of the following
3583# is true:
3584# - one of the terminals (":" and ";") is the first or last sign
3585# - two terminals occur directly after each other
3586# - the path contains an element with a dot in it
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3588$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3589case ${GCC_EXEC_PREFIX} in
3590  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3591    gcc_exec_prefix_setting="contains current directory"
3592    ;;
3593  *)
3594    gcc_exec_prefix_setting="ok"
3595    ;;
3596esac
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3598$as_echo "$gcc_exec_prefix_setting" >&6; }
3599if test "$gcc_exec_prefix_setting" != "ok"; then
3600as_fn_error $? "
3601*** GCC_EXEC_PREFIX shouldn't contain the current directory when
3602*** building gcc. Please change the environment variable
3603*** and run configure again." "$LINENO" 5
3604fi
3605
3606# -----------
3607# Directories
3608# -----------
3609
3610# Specify the local prefix
3611local_prefix=
3612
3613# Check whether --with-local-prefix was given.
3614if test "${with_local_prefix+set}" = set; then :
3615  withval=$with_local_prefix; case "${withval}" in
3616yes)	as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3617no)	;;
3618*)	local_prefix=$with_local_prefix ;;
3619esac
3620fi
3621
3622
3623# Default local prefix if it is empty
3624if test x$local_prefix = x; then
3625	local_prefix=/usr/local
3626fi
3627
3628
3629# Check whether --with-native-system-header-dir was given.
3630if test "${with_native_system_header_dir+set}" = set; then :
3631  withval=$with_native_system_header_dir;
3632 case ${with_native_system_header_dir} in
3633 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3634 /* | [A-Za-z]:[\\/]*) ;;
3635 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3636 esac
3637 configured_native_system_header_dir="${withval}"
3638
3639else
3640  configured_native_system_header_dir=
3641fi
3642
3643
3644
3645# Check whether --with-build-sysroot was given.
3646if test "${with_build_sysroot+set}" = set; then :
3647  withval=$with_build_sysroot; if test x"$withval" != x ; then
3648     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3649   fi
3650else
3651  SYSROOT_CFLAGS_FOR_TARGET=
3652fi
3653
3654
3655
3656if test "x$prefix" = xNONE; then
3657 test_prefix=/usr/local
3658else
3659 test_prefix=$prefix
3660fi
3661if test "x$exec_prefix" = xNONE; then
3662 test_exec_prefix=$test_prefix
3663else
3664 test_exec_prefix=$exec_prefix
3665fi
3666
3667
3668# Check whether --with-sysroot was given.
3669if test "${with_sysroot+set}" = set; then :
3670  withval=$with_sysroot;
3671 case ${with_sysroot} in
3672 /) ;;
3673 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3674 esac
3675 case ${with_sysroot} in
3676 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3677 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3678 esac
3679
3680 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3681 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3682
3683 case ${TARGET_SYSTEM_ROOT} in
3684 "${test_prefix}"|"${test_prefix}/"*|\
3685 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3686 '${prefix}'|'${prefix}/'*|\
3687 '${exec_prefix}'|'${exec_prefix}/'*)
3688   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3689   TARGET_SYSTEM_ROOT_DEFINE="$t"
3690   ;;
3691 esac
3692
3693else
3694
3695 TARGET_SYSTEM_ROOT=
3696 TARGET_SYSTEM_ROOT_DEFINE=
3697 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3698
3699fi
3700
3701
3702
3703
3704
3705# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3706# passed in by the toplevel make and thus we'd get different behavior
3707# depending on where we built the sources.
3708gcc_gxx_include_dir=
3709# Specify the g++ header file directory
3710
3711# Check whether --with-gxx-include-dir was given.
3712if test "${with_gxx_include_dir+set}" = set; then :
3713  withval=$with_gxx_include_dir; case "${withval}" in
3714yes)	as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3715no)	;;
3716*)	gcc_gxx_include_dir=$with_gxx_include_dir ;;
3717esac
3718fi
3719
3720
3721# If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3722# the former in the latter and, upon success, compute gcc_gxx_include_dir as
3723# relative to the sysroot.
3724gcc_gxx_include_dir_add_sysroot=0
3725
3726# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3727if test x${gcc_gxx_include_dir} = x; then
3728  if test x${enable_version_specific_runtime_libs} = xyes; then
3729    gcc_gxx_include_dir='${libsubdir}/include/c++'
3730  else
3731    libstdcxx_incdir='include/c++/$(version)'
3732    if test x$host != x$target; then
3733       libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3734    fi
3735    gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3736  fi
3737elif test "${with_sysroot+set}" = set; then
3738  gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3739  if test "${gcc_gxx_without_sysroot}"; then
3740    gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3741    gcc_gxx_include_dir_add_sysroot=1
3742  fi
3743fi
3744
3745# Configuration for an alternate set of C++ headers.
3746gcc_gxx_libcxx_include_dir=
3747# Specify the alternate g++ header file directory
3748
3749# Check whether --with-gxx-libcxx-include-dir was given.
3750if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3751  withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3752yes)	as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3753no)	;;
3754*)	gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3755esac
3756fi
3757
3758
3759# If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3760# check to see if the latter starts with the former and, upon success, compute
3761# gcc_gxx_libcxx_include_dir as relative to the sysroot.
3762gcc_gxx_libcxx_include_dir_add_sysroot=0
3763
3764if test x${gcc_gxx_libcxx_include_dir} != x; then
3765
3766$as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3767
3768else
3769  $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3770
3771fi
3772# ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3773if test x${gcc_gxx_libcxx_include_dir} = x; then
3774  if test x${enable_version_specific_runtime_libs} = xyes; then
3775    gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3776  else
3777    libcxx_incdir='libc++_include/c++/$(version)/v1'
3778    if test x$host != x$target; then
3779       libcxx_incdir="$target_alias/$libcxx_incdir"
3780    fi
3781    gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3782  fi
3783elif test "${with_sysroot+set}" = set; then
3784  gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3785  if test "${gcc_gxx_libcxx_without_sysroot}"; then
3786    gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3787    gcc_gxx_libcxx_include_dir_add_sysroot=1
3788  fi
3789fi
3790
3791
3792# Check whether --with-cpp_install_dir was given.
3793if test "${with_cpp_install_dir+set}" = set; then :
3794  withval=$with_cpp_install_dir; if test x$withval = xyes; then
3795  as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3796elif test x$withval != xno; then
3797  cpp_install_dir=$withval
3798fi
3799fi
3800
3801
3802# We would like to our source tree to be readonly.  However when releases or
3803# pre-releases are generated, the flex/bison generated files as well as the
3804# various formats of manuals need to be included along with the rest of the
3805# sources.  Therefore we have --enable-generated-files-in-srcdir to do
3806# just that.
3807
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3809$as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3810    # Check whether --enable-generated-files-in-srcdir was given.
3811if test "${enable_generated_files_in_srcdir+set}" = set; then :
3812  enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3813else
3814  generated_files_in_srcdir=no
3815fi
3816
3817
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3819$as_echo "$generated_files_in_srcdir" >&6; }
3820
3821if test "$generated_files_in_srcdir" = "yes"; then
3822  GENINSRC=''
3823else
3824  GENINSRC='#'
3825fi
3826
3827
3828# -------------------
3829# Find default linker
3830# -------------------
3831
3832# With GNU ld
3833
3834# Check whether --with-gnu-ld was given.
3835if test "${with_gnu_ld+set}" = set; then :
3836  withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3837else
3838  gnu_ld_flag=no
3839fi
3840
3841
3842case $target in
3843    *darwin*)
3844	ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3845	dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3846	;;
3847    *)
3848	ld64_flag=no
3849	dsymutil_flag=no
3850	;;
3851esac
3852
3853# With pre-defined ld
3854
3855# Check whether --with-ld was given.
3856if test "${with_ld+set}" = set; then :
3857  withval=$with_ld; DEFAULT_LINKER="$with_ld"
3858fi
3859
3860if test x"${DEFAULT_LINKER+set}" = x"set"; then
3861  if test ! -x "$DEFAULT_LINKER"; then
3862    as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3863  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3864    gnu_ld_flag=yes
3865  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3866    ld64_flag=yes
3867  fi
3868
3869cat >>confdefs.h <<_ACEOF
3870#define DEFAULT_LINKER "$DEFAULT_LINKER"
3871_ACEOF
3872
3873fi
3874
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3876$as_echo_n "checking whether a default linker was specified... " >&6; }
3877if test x"${DEFAULT_LINKER+set}" = x"set"; then
3878  if test x"$gnu_ld_flag" = x"no"; then
3879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3880$as_echo "yes ($DEFAULT_LINKER)" >&6; }
3881  else
3882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3883$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3884  fi
3885else
3886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887$as_echo "no" >&6; }
3888fi
3889
3890# With demangler in GNU ld
3891
3892# Check whether --with-demangler-in-ld was given.
3893if test "${with_demangler_in_ld+set}" = set; then :
3894  withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3895else
3896  demangler_in_ld=yes
3897fi
3898
3899
3900# Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3901
3902# Check whether --with-dsymutil was given.
3903if test "${with_dsymutil+set}" = set; then :
3904  withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3905fi
3906
3907
3908dsymutil_vers=
3909if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3910  if test ! -x "$DEFAULT_DSYMUTIL"; then
3911    as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3912  else
3913    if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3914      dsymutil_flag=yes
3915    fi
3916  fi
3917
3918cat >>confdefs.h <<_ACEOF
3919#define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3920_ACEOF
3921
3922fi
3923
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3925$as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3926if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3928$as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3929else
3930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931$as_echo "no" >&6; }
3932fi
3933
3934# ----------------------
3935# Find default assembler
3936# ----------------------
3937
3938# With GNU as
3939
3940# Check whether --with-gnu-as was given.
3941if test "${with_gnu_as+set}" = set; then :
3942  withval=$with_gnu_as; gas_flag="$with_gnu_as"
3943else
3944  gas_flag=no
3945fi
3946
3947
3948
3949# Check whether --with-as was given.
3950if test "${with_as+set}" = set; then :
3951  withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3952fi
3953
3954if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3955  if test ! -x "$DEFAULT_ASSEMBLER"; then
3956    as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3957  elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3958    gas_flag=yes
3959  fi
3960
3961cat >>confdefs.h <<_ACEOF
3962#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3963_ACEOF
3964
3965fi
3966
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3968$as_echo_n "checking whether a default assembler was specified... " >&6; }
3969if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3970  if test x"$gas_flag" = x"no"; then
3971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3972$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3973  else
3974    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3975$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3976  fi
3977else
3978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
3980fi
3981
3982# ---------------
3983# Find C compiler
3984# ---------------
3985
3986# If a non-executable a.out is present (e.g. created by GNU as above even if
3987# invoked with -v only), the IRIX 6 native ld just overwrites the existing
3988# file, even when creating an executable, so an execution test fails.
3989# Remove possible default executable files to avoid this.
3990#
3991# FIXME: This really belongs into AC_PROG_CC and can be removed once
3992# Autoconf includes it.
3993rm -f a.out a.exe b.out
3994
3995# Find the native compiler
3996ac_ext=c
3997ac_cpp='$CPP $CPPFLAGS'
3998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001if test -n "$ac_tool_prefix"; then
4002  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4003set dummy ${ac_tool_prefix}gcc; ac_word=$2
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005$as_echo_n "checking for $ac_word... " >&6; }
4006if ${ac_cv_prog_CC+:} false; then :
4007  $as_echo_n "(cached) " >&6
4008else
4009  if test -n "$CC"; then
4010  ac_cv_prog_CC="$CC" # Let the user override the test.
4011else
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH
4014do
4015  IFS=$as_save_IFS
4016  test -z "$as_dir" && as_dir=.
4017    for ac_exec_ext in '' $ac_executable_extensions; do
4018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021    break 2
4022  fi
4023done
4024  done
4025IFS=$as_save_IFS
4026
4027fi
4028fi
4029CC=$ac_cv_prog_CC
4030if test -n "$CC"; then
4031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032$as_echo "$CC" >&6; }
4033else
4034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035$as_echo "no" >&6; }
4036fi
4037
4038
4039fi
4040if test -z "$ac_cv_prog_CC"; then
4041  ac_ct_CC=$CC
4042  # Extract the first word of "gcc", so it can be a program name with args.
4043set dummy gcc; ac_word=$2
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045$as_echo_n "checking for $ac_word... " >&6; }
4046if ${ac_cv_prog_ac_ct_CC+:} false; then :
4047  $as_echo_n "(cached) " >&6
4048else
4049  if test -n "$ac_ct_CC"; then
4050  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4051else
4052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053for as_dir in $PATH
4054do
4055  IFS=$as_save_IFS
4056  test -z "$as_dir" && as_dir=.
4057    for ac_exec_ext in '' $ac_executable_extensions; do
4058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059    ac_cv_prog_ac_ct_CC="gcc"
4060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061    break 2
4062  fi
4063done
4064  done
4065IFS=$as_save_IFS
4066
4067fi
4068fi
4069ac_ct_CC=$ac_cv_prog_ac_ct_CC
4070if test -n "$ac_ct_CC"; then
4071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4072$as_echo "$ac_ct_CC" >&6; }
4073else
4074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075$as_echo "no" >&6; }
4076fi
4077
4078  if test "x$ac_ct_CC" = x; then
4079    CC=""
4080  else
4081    case $cross_compiling:$ac_tool_warned in
4082yes:)
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085ac_tool_warned=yes ;;
4086esac
4087    CC=$ac_ct_CC
4088  fi
4089else
4090  CC="$ac_cv_prog_CC"
4091fi
4092
4093if test -z "$CC"; then
4094          if test -n "$ac_tool_prefix"; then
4095    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4096set dummy ${ac_tool_prefix}cc; ac_word=$2
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098$as_echo_n "checking for $ac_word... " >&6; }
4099if ${ac_cv_prog_CC+:} false; then :
4100  $as_echo_n "(cached) " >&6
4101else
4102  if test -n "$CC"; then
4103  ac_cv_prog_CC="$CC" # Let the user override the test.
4104else
4105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH
4107do
4108  IFS=$as_save_IFS
4109  test -z "$as_dir" && as_dir=.
4110    for ac_exec_ext in '' $ac_executable_extensions; do
4111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112    ac_cv_prog_CC="${ac_tool_prefix}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
4120fi
4121fi
4122CC=$ac_cv_prog_CC
4123if test -n "$CC"; then
4124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4125$as_echo "$CC" >&6; }
4126else
4127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128$as_echo "no" >&6; }
4129fi
4130
4131
4132  fi
4133fi
4134if test -z "$CC"; then
4135  # Extract the first word of "cc", so it can be a program name with args.
4136set dummy cc; ac_word=$2
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138$as_echo_n "checking for $ac_word... " >&6; }
4139if ${ac_cv_prog_CC+:} false; then :
4140  $as_echo_n "(cached) " >&6
4141else
4142  if test -n "$CC"; then
4143  ac_cv_prog_CC="$CC" # Let the user override the test.
4144else
4145  ac_prog_rejected=no
4146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147for as_dir in $PATH
4148do
4149  IFS=$as_save_IFS
4150  test -z "$as_dir" && as_dir=.
4151    for ac_exec_ext in '' $ac_executable_extensions; do
4152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4154       ac_prog_rejected=yes
4155       continue
4156     fi
4157    ac_cv_prog_CC="cc"
4158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159    break 2
4160  fi
4161done
4162  done
4163IFS=$as_save_IFS
4164
4165if test $ac_prog_rejected = yes; then
4166  # We found a bogon in the path, so make sure we never use it.
4167  set dummy $ac_cv_prog_CC
4168  shift
4169  if test $# != 0; then
4170    # We chose a different compiler from the bogus one.
4171    # However, it has the same basename, so the bogon will be chosen
4172    # first if we set CC to just the basename; use the full file name.
4173    shift
4174    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4175  fi
4176fi
4177fi
4178fi
4179CC=$ac_cv_prog_CC
4180if test -n "$CC"; then
4181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182$as_echo "$CC" >&6; }
4183else
4184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185$as_echo "no" >&6; }
4186fi
4187
4188
4189fi
4190if test -z "$CC"; then
4191  if test -n "$ac_tool_prefix"; then
4192  for ac_prog in cl.exe
4193  do
4194    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197$as_echo_n "checking for $ac_word... " >&6; }
4198if ${ac_cv_prog_CC+:} false; then :
4199  $as_echo_n "(cached) " >&6
4200else
4201  if test -n "$CC"; then
4202  ac_cv_prog_CC="$CC" # Let the user override the test.
4203else
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207  IFS=$as_save_IFS
4208  test -z "$as_dir" && as_dir=.
4209    for ac_exec_ext in '' $ac_executable_extensions; do
4210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213    break 2
4214  fi
4215done
4216  done
4217IFS=$as_save_IFS
4218
4219fi
4220fi
4221CC=$ac_cv_prog_CC
4222if test -n "$CC"; then
4223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224$as_echo "$CC" >&6; }
4225else
4226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227$as_echo "no" >&6; }
4228fi
4229
4230
4231    test -n "$CC" && break
4232  done
4233fi
4234if test -z "$CC"; then
4235  ac_ct_CC=$CC
4236  for ac_prog in cl.exe
4237do
4238  # Extract the first word of "$ac_prog", so it can be a program name with args.
4239set dummy $ac_prog; ac_word=$2
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241$as_echo_n "checking for $ac_word... " >&6; }
4242if ${ac_cv_prog_ac_ct_CC+:} false; then :
4243  $as_echo_n "(cached) " >&6
4244else
4245  if test -n "$ac_ct_CC"; then
4246  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4247else
4248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249for as_dir in $PATH
4250do
4251  IFS=$as_save_IFS
4252  test -z "$as_dir" && as_dir=.
4253    for ac_exec_ext in '' $ac_executable_extensions; do
4254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255    ac_cv_prog_ac_ct_CC="$ac_prog"
4256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257    break 2
4258  fi
4259done
4260  done
4261IFS=$as_save_IFS
4262
4263fi
4264fi
4265ac_ct_CC=$ac_cv_prog_ac_ct_CC
4266if test -n "$ac_ct_CC"; then
4267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4268$as_echo "$ac_ct_CC" >&6; }
4269else
4270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271$as_echo "no" >&6; }
4272fi
4273
4274
4275  test -n "$ac_ct_CC" && break
4276done
4277
4278  if test "x$ac_ct_CC" = x; then
4279    CC=""
4280  else
4281    case $cross_compiling:$ac_tool_warned in
4282yes:)
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285ac_tool_warned=yes ;;
4286esac
4287    CC=$ac_ct_CC
4288  fi
4289fi
4290
4291fi
4292
4293
4294test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296as_fn_error $? "no acceptable C compiler found in \$PATH
4297See \`config.log' for more details" "$LINENO" 5; }
4298
4299# Provide some information about the compiler.
4300$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4301set X $ac_compile
4302ac_compiler=$2
4303for ac_option in --version -v -V -qversion; do
4304  { { ac_try="$ac_compiler $ac_option >&5"
4305case "(($ac_try" in
4306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307  *) ac_try_echo=$ac_try;;
4308esac
4309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310$as_echo "$ac_try_echo"; } >&5
4311  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4312  ac_status=$?
4313  if test -s conftest.err; then
4314    sed '10a\
4315... rest of stderr output deleted ...
4316         10q' conftest.err >conftest.er1
4317    cat conftest.er1 >&5
4318  fi
4319  rm -f conftest.er1 conftest.err
4320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321  test $ac_status = 0; }
4322done
4323
4324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325/* end confdefs.h.  */
4326
4327int
4328main ()
4329{
4330
4331  ;
4332  return 0;
4333}
4334_ACEOF
4335ac_clean_files_save=$ac_clean_files
4336ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4337# Try to create an executable without -o first, disregard a.out.
4338# It will help us diagnose broken compilers, and finding out an intuition
4339# of exeext.
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4341$as_echo_n "checking whether the C compiler works... " >&6; }
4342ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4343
4344# The possible output files:
4345ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4346
4347ac_rmfiles=
4348for ac_file in $ac_files
4349do
4350  case $ac_file in
4351    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4352    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4353  esac
4354done
4355rm -f $ac_rmfiles
4356
4357if { { ac_try="$ac_link_default"
4358case "(($ac_try" in
4359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360  *) ac_try_echo=$ac_try;;
4361esac
4362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363$as_echo "$ac_try_echo"; } >&5
4364  (eval "$ac_link_default") 2>&5
4365  ac_status=$?
4366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4367  test $ac_status = 0; }; then :
4368  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4371# so that the user can short-circuit this test for compilers unknown to
4372# Autoconf.
4373for ac_file in $ac_files ''
4374do
4375  test -f "$ac_file" || continue
4376  case $ac_file in
4377    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4378	;;
4379    [ab].out )
4380	# We found the default executable, but exeext='' is most
4381	# certainly right.
4382	break;;
4383    *.* )
4384	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4385	then :; else
4386	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4387	fi
4388	# We set ac_cv_exeext here because the later test for it is not
4389	# safe: cross compilers may not add the suffix if given an `-o'
4390	# argument, so we may need to know it at that point already.
4391	# Even if this section looks crufty: it has the advantage of
4392	# actually working.
4393	break;;
4394    * )
4395	break;;
4396  esac
4397done
4398test "$ac_cv_exeext" = no && ac_cv_exeext=
4399
4400else
4401  ac_file=''
4402fi
4403if test -z "$ac_file"; then :
4404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405$as_echo "no" >&6; }
4406$as_echo "$as_me: failed program was:" >&5
4407sed 's/^/| /' conftest.$ac_ext >&5
4408
4409{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411as_fn_error 77 "C compiler cannot create executables
4412See \`config.log' for more details" "$LINENO" 5; }
4413else
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415$as_echo "yes" >&6; }
4416fi
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4418$as_echo_n "checking for C compiler default output file name... " >&6; }
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4420$as_echo "$ac_file" >&6; }
4421ac_exeext=$ac_cv_exeext
4422
4423rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4424ac_clean_files=$ac_clean_files_save
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4426$as_echo_n "checking for suffix of executables... " >&6; }
4427if { { ac_try="$ac_link"
4428case "(($ac_try" in
4429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430  *) ac_try_echo=$ac_try;;
4431esac
4432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433$as_echo "$ac_try_echo"; } >&5
4434  (eval "$ac_link") 2>&5
4435  ac_status=$?
4436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437  test $ac_status = 0; }; then :
4438  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4439# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4440# work properly (i.e., refer to `conftest.exe'), while it won't with
4441# `rm'.
4442for ac_file in conftest.exe conftest conftest.*; do
4443  test -f "$ac_file" || continue
4444  case $ac_file in
4445    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4446    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4447	  break;;
4448    * ) break;;
4449  esac
4450done
4451else
4452  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4455See \`config.log' for more details" "$LINENO" 5; }
4456fi
4457rm -f conftest conftest$ac_cv_exeext
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4459$as_echo "$ac_cv_exeext" >&6; }
4460
4461rm -f conftest.$ac_ext
4462EXEEXT=$ac_cv_exeext
4463ac_exeext=$EXEEXT
4464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465/* end confdefs.h.  */
4466#include <stdio.h>
4467int
4468main ()
4469{
4470FILE *f = fopen ("conftest.out", "w");
4471 return ferror (f) || fclose (f) != 0;
4472
4473  ;
4474  return 0;
4475}
4476_ACEOF
4477ac_clean_files="$ac_clean_files conftest.out"
4478# Check that the compiler produces executables we can run.  If not, either
4479# the compiler is broken, or we cross compile.
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4481$as_echo_n "checking whether we are cross compiling... " >&6; }
4482if test "$cross_compiling" != yes; then
4483  { { ac_try="$ac_link"
4484case "(($ac_try" in
4485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486  *) ac_try_echo=$ac_try;;
4487esac
4488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489$as_echo "$ac_try_echo"; } >&5
4490  (eval "$ac_link") 2>&5
4491  ac_status=$?
4492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493  test $ac_status = 0; }
4494  if { ac_try='./conftest$ac_cv_exeext'
4495  { { case "(($ac_try" in
4496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497  *) ac_try_echo=$ac_try;;
4498esac
4499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500$as_echo "$ac_try_echo"; } >&5
4501  (eval "$ac_try") 2>&5
4502  ac_status=$?
4503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504  test $ac_status = 0; }; }; then
4505    cross_compiling=no
4506  else
4507    if test "$cross_compiling" = maybe; then
4508	cross_compiling=yes
4509    else
4510	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512as_fn_error $? "cannot run C compiled programs.
4513If you meant to cross compile, use \`--host'.
4514See \`config.log' for more details" "$LINENO" 5; }
4515    fi
4516  fi
4517fi
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4519$as_echo "$cross_compiling" >&6; }
4520
4521rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4522ac_clean_files=$ac_clean_files_save
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4524$as_echo_n "checking for suffix of object files... " >&6; }
4525if ${ac_cv_objext+:} false; then :
4526  $as_echo_n "(cached) " >&6
4527else
4528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529/* end confdefs.h.  */
4530
4531int
4532main ()
4533{
4534
4535  ;
4536  return 0;
4537}
4538_ACEOF
4539rm -f conftest.o conftest.obj
4540if { { ac_try="$ac_compile"
4541case "(($ac_try" in
4542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543  *) ac_try_echo=$ac_try;;
4544esac
4545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546$as_echo "$ac_try_echo"; } >&5
4547  (eval "$ac_compile") 2>&5
4548  ac_status=$?
4549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550  test $ac_status = 0; }; then :
4551  for ac_file in conftest.o conftest.obj conftest.*; do
4552  test -f "$ac_file" || continue;
4553  case $ac_file in
4554    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4555    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4556       break;;
4557  esac
4558done
4559else
4560  $as_echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
4563{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565as_fn_error $? "cannot compute suffix of object files: cannot compile
4566See \`config.log' for more details" "$LINENO" 5; }
4567fi
4568rm -f conftest.$ac_cv_objext conftest.$ac_ext
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4571$as_echo "$ac_cv_objext" >&6; }
4572OBJEXT=$ac_cv_objext
4573ac_objext=$OBJEXT
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4575$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4576if ${ac_cv_c_compiler_gnu+:} false; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580/* end confdefs.h.  */
4581
4582int
4583main ()
4584{
4585#ifndef __GNUC__
4586       choke me
4587#endif
4588
4589  ;
4590  return 0;
4591}
4592_ACEOF
4593if ac_fn_c_try_compile "$LINENO"; then :
4594  ac_compiler_gnu=yes
4595else
4596  ac_compiler_gnu=no
4597fi
4598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599ac_cv_c_compiler_gnu=$ac_compiler_gnu
4600
4601fi
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4603$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4604if test $ac_compiler_gnu = yes; then
4605  GCC=yes
4606else
4607  GCC=
4608fi
4609ac_test_CFLAGS=${CFLAGS+set}
4610ac_save_CFLAGS=$CFLAGS
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4612$as_echo_n "checking whether $CC accepts -g... " >&6; }
4613if ${ac_cv_prog_cc_g+:} false; then :
4614  $as_echo_n "(cached) " >&6
4615else
4616  ac_save_c_werror_flag=$ac_c_werror_flag
4617   ac_c_werror_flag=yes
4618   ac_cv_prog_cc_g=no
4619   CFLAGS="-g"
4620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621/* end confdefs.h.  */
4622
4623int
4624main ()
4625{
4626
4627  ;
4628  return 0;
4629}
4630_ACEOF
4631if ac_fn_c_try_compile "$LINENO"; then :
4632  ac_cv_prog_cc_g=yes
4633else
4634  CFLAGS=""
4635      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636/* end confdefs.h.  */
4637
4638int
4639main ()
4640{
4641
4642  ;
4643  return 0;
4644}
4645_ACEOF
4646if ac_fn_c_try_compile "$LINENO"; then :
4647
4648else
4649  ac_c_werror_flag=$ac_save_c_werror_flag
4650	 CFLAGS="-g"
4651	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652/* end confdefs.h.  */
4653
4654int
4655main ()
4656{
4657
4658  ;
4659  return 0;
4660}
4661_ACEOF
4662if ac_fn_c_try_compile "$LINENO"; then :
4663  ac_cv_prog_cc_g=yes
4664fi
4665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666fi
4667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668fi
4669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670   ac_c_werror_flag=$ac_save_c_werror_flag
4671fi
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4673$as_echo "$ac_cv_prog_cc_g" >&6; }
4674if test "$ac_test_CFLAGS" = set; then
4675  CFLAGS=$ac_save_CFLAGS
4676elif test $ac_cv_prog_cc_g = yes; then
4677  if test "$GCC" = yes; then
4678    CFLAGS="-g -O2"
4679  else
4680    CFLAGS="-g"
4681  fi
4682else
4683  if test "$GCC" = yes; then
4684    CFLAGS="-O2"
4685  else
4686    CFLAGS=
4687  fi
4688fi
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4690$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4691if ${ac_cv_prog_cc_c89+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694  ac_cv_prog_cc_c89=no
4695ac_save_CC=$CC
4696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697/* end confdefs.h.  */
4698#include <stdarg.h>
4699#include <stdio.h>
4700struct stat;
4701/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4702struct buf { int x; };
4703FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704static char *e (p, i)
4705     char **p;
4706     int i;
4707{
4708  return p[i];
4709}
4710static char *f (char * (*g) (char **, int), char **p, ...)
4711{
4712  char *s;
4713  va_list v;
4714  va_start (v,p);
4715  s = g (p, va_arg (v,int));
4716  va_end (v);
4717  return s;
4718}
4719
4720/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4721   function prototypes and stuff, but not '\xHH' hex character constants.
4722   These don't provoke an error unfortunately, instead are silently treated
4723   as 'x'.  The following induces an error, until -std is added to get
4724   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4725   array size at least.  It's necessary to write '\x00'==0 to get something
4726   that's true only with -std.  */
4727int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4728
4729/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730   inside strings and character constants.  */
4731#define FOO(x) 'x'
4732int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4733
4734int test (int i, double x);
4735struct s1 {int (*f) (int a);};
4736struct s2 {int (*f) (double a);};
4737int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4738int argc;
4739char **argv;
4740int
4741main ()
4742{
4743return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4744  ;
4745  return 0;
4746}
4747_ACEOF
4748for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4750do
4751  CC="$ac_save_CC $ac_arg"
4752  if ac_fn_c_try_compile "$LINENO"; then :
4753  ac_cv_prog_cc_c89=$ac_arg
4754fi
4755rm -f core conftest.err conftest.$ac_objext
4756  test "x$ac_cv_prog_cc_c89" != "xno" && break
4757done
4758rm -f conftest.$ac_ext
4759CC=$ac_save_CC
4760
4761fi
4762# AC_CACHE_VAL
4763case "x$ac_cv_prog_cc_c89" in
4764  x)
4765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766$as_echo "none needed" >&6; } ;;
4767  xno)
4768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769$as_echo "unsupported" >&6; } ;;
4770  *)
4771    CC="$CC $ac_cv_prog_cc_c89"
4772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4774esac
4775if test "x$ac_cv_prog_cc_c89" != xno; then :
4776
4777fi
4778
4779ac_ext=c
4780ac_cpp='$CPP $CPPFLAGS'
4781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784
4785ac_ext=cpp
4786ac_cpp='$CXXCPP $CPPFLAGS'
4787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790if test -z "$CXX"; then
4791  if test -n "$CCC"; then
4792    CXX=$CCC
4793  else
4794    if test -n "$ac_tool_prefix"; then
4795  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4796  do
4797    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if ${ac_cv_prog_CXX+:} false; then :
4802  $as_echo_n "(cached) " >&6
4803else
4804  if test -n "$CXX"; then
4805  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4806else
4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810  IFS=$as_save_IFS
4811  test -z "$as_dir" && as_dir=.
4812    for ac_exec_ext in '' $ac_executable_extensions; do
4813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816    break 2
4817  fi
4818done
4819  done
4820IFS=$as_save_IFS
4821
4822fi
4823fi
4824CXX=$ac_cv_prog_CXX
4825if test -n "$CXX"; then
4826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827$as_echo "$CXX" >&6; }
4828else
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
4831fi
4832
4833
4834    test -n "$CXX" && break
4835  done
4836fi
4837if test -z "$CXX"; then
4838  ac_ct_CXX=$CXX
4839  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4840do
4841  # Extract the first word of "$ac_prog", so it can be a program name with args.
4842set dummy $ac_prog; ac_word=$2
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844$as_echo_n "checking for $ac_word... " >&6; }
4845if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4846  $as_echo_n "(cached) " >&6
4847else
4848  if test -n "$ac_ct_CXX"; then
4849  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4850else
4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852for as_dir in $PATH
4853do
4854  IFS=$as_save_IFS
4855  test -z "$as_dir" && as_dir=.
4856    for ac_exec_ext in '' $ac_executable_extensions; do
4857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858    ac_cv_prog_ac_ct_CXX="$ac_prog"
4859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860    break 2
4861  fi
4862done
4863  done
4864IFS=$as_save_IFS
4865
4866fi
4867fi
4868ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869if test -n "$ac_ct_CXX"; then
4870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871$as_echo "$ac_ct_CXX" >&6; }
4872else
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874$as_echo "no" >&6; }
4875fi
4876
4877
4878  test -n "$ac_ct_CXX" && break
4879done
4880
4881  if test "x$ac_ct_CXX" = x; then
4882    CXX="g++"
4883  else
4884    case $cross_compiling:$ac_tool_warned in
4885yes:)
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888ac_tool_warned=yes ;;
4889esac
4890    CXX=$ac_ct_CXX
4891  fi
4892fi
4893
4894  fi
4895fi
4896# Provide some information about the compiler.
4897$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4898set X $ac_compile
4899ac_compiler=$2
4900for ac_option in --version -v -V -qversion; do
4901  { { ac_try="$ac_compiler $ac_option >&5"
4902case "(($ac_try" in
4903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904  *) ac_try_echo=$ac_try;;
4905esac
4906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907$as_echo "$ac_try_echo"; } >&5
4908  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4909  ac_status=$?
4910  if test -s conftest.err; then
4911    sed '10a\
4912... rest of stderr output deleted ...
4913         10q' conftest.err >conftest.er1
4914    cat conftest.er1 >&5
4915  fi
4916  rm -f conftest.er1 conftest.err
4917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918  test $ac_status = 0; }
4919done
4920
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923if ${ac_cv_cxx_compiler_gnu+:} false; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928
4929int
4930main ()
4931{
4932#ifndef __GNUC__
4933       choke me
4934#endif
4935
4936  ;
4937  return 0;
4938}
4939_ACEOF
4940if ac_fn_cxx_try_compile "$LINENO"; then :
4941  ac_compiler_gnu=yes
4942else
4943  ac_compiler_gnu=no
4944fi
4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4947
4948fi
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951if test $ac_compiler_gnu = yes; then
4952  GXX=yes
4953else
4954  GXX=
4955fi
4956ac_test_CXXFLAGS=${CXXFLAGS+set}
4957ac_save_CXXFLAGS=$CXXFLAGS
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960if ${ac_cv_prog_cxx_g+:} false; then :
4961  $as_echo_n "(cached) " >&6
4962else
4963  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4964   ac_cxx_werror_flag=yes
4965   ac_cv_prog_cxx_g=no
4966   CXXFLAGS="-g"
4967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968/* end confdefs.h.  */
4969
4970int
4971main ()
4972{
4973
4974  ;
4975  return 0;
4976}
4977_ACEOF
4978if ac_fn_cxx_try_compile "$LINENO"; then :
4979  ac_cv_prog_cxx_g=yes
4980else
4981  CXXFLAGS=""
4982      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h.  */
4984
4985int
4986main ()
4987{
4988
4989  ;
4990  return 0;
4991}
4992_ACEOF
4993if ac_fn_cxx_try_compile "$LINENO"; then :
4994
4995else
4996  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4997	 CXXFLAGS="-g"
4998	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999/* end confdefs.h.  */
5000
5001int
5002main ()
5003{
5004
5005  ;
5006  return 0;
5007}
5008_ACEOF
5009if ac_fn_cxx_try_compile "$LINENO"; then :
5010  ac_cv_prog_cxx_g=yes
5011fi
5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013fi
5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015fi
5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5018fi
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020$as_echo "$ac_cv_prog_cxx_g" >&6; }
5021if test "$ac_test_CXXFLAGS" = set; then
5022  CXXFLAGS=$ac_save_CXXFLAGS
5023elif test $ac_cv_prog_cxx_g = yes; then
5024  if test "$GXX" = yes; then
5025    CXXFLAGS="-g -O2"
5026  else
5027    CXXFLAGS="-g"
5028  fi
5029else
5030  if test "$GXX" = yes; then
5031    CXXFLAGS="-O2"
5032  else
5033    CXXFLAGS=
5034  fi
5035fi
5036ac_ext=c
5037ac_cpp='$CPP $CPPFLAGS'
5038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041
5042
5043
5044
5045if test -n "$ac_tool_prefix"; then
5046  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5047set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049$as_echo_n "checking for $ac_word... " >&6; }
5050if ${ac_cv_prog_GNATBIND+:} false; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  if test -n "$GNATBIND"; then
5054  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5055else
5056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
5058do
5059  IFS=$as_save_IFS
5060  test -z "$as_dir" && as_dir=.
5061    for ac_exec_ext in '' $ac_executable_extensions; do
5062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065    break 2
5066  fi
5067done
5068  done
5069IFS=$as_save_IFS
5070
5071fi
5072fi
5073GNATBIND=$ac_cv_prog_GNATBIND
5074if test -n "$GNATBIND"; then
5075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5076$as_echo "$GNATBIND" >&6; }
5077else
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079$as_echo "no" >&6; }
5080fi
5081
5082
5083fi
5084if test -z "$ac_cv_prog_GNATBIND"; then
5085  ac_ct_GNATBIND=$GNATBIND
5086  # Extract the first word of "gnatbind", so it can be a program name with args.
5087set dummy gnatbind; ac_word=$2
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089$as_echo_n "checking for $ac_word... " >&6; }
5090if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5091  $as_echo_n "(cached) " >&6
5092else
5093  if test -n "$ac_ct_GNATBIND"; then
5094  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5095else
5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099  IFS=$as_save_IFS
5100  test -z "$as_dir" && as_dir=.
5101    for ac_exec_ext in '' $ac_executable_extensions; do
5102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105    break 2
5106  fi
5107done
5108  done
5109IFS=$as_save_IFS
5110
5111fi
5112fi
5113ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5114if test -n "$ac_ct_GNATBIND"; then
5115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5116$as_echo "$ac_ct_GNATBIND" >&6; }
5117else
5118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119$as_echo "no" >&6; }
5120fi
5121
5122  if test "x$ac_ct_GNATBIND" = x; then
5123    GNATBIND="no"
5124  else
5125    case $cross_compiling:$ac_tool_warned in
5126yes:)
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129ac_tool_warned=yes ;;
5130esac
5131    GNATBIND=$ac_ct_GNATBIND
5132  fi
5133else
5134  GNATBIND="$ac_cv_prog_GNATBIND"
5135fi
5136
5137if test -n "$ac_tool_prefix"; then
5138  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5139set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141$as_echo_n "checking for $ac_word... " >&6; }
5142if ${ac_cv_prog_GNATMAKE+:} false; then :
5143  $as_echo_n "(cached) " >&6
5144else
5145  if test -n "$GNATMAKE"; then
5146  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151  IFS=$as_save_IFS
5152  test -z "$as_dir" && as_dir=.
5153    for ac_exec_ext in '' $ac_executable_extensions; do
5154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157    break 2
5158  fi
5159done
5160  done
5161IFS=$as_save_IFS
5162
5163fi
5164fi
5165GNATMAKE=$ac_cv_prog_GNATMAKE
5166if test -n "$GNATMAKE"; then
5167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5168$as_echo "$GNATMAKE" >&6; }
5169else
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
5172fi
5173
5174
5175fi
5176if test -z "$ac_cv_prog_GNATMAKE"; then
5177  ac_ct_GNATMAKE=$GNATMAKE
5178  # Extract the first word of "gnatmake", so it can be a program name with args.
5179set dummy gnatmake; ac_word=$2
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181$as_echo_n "checking for $ac_word... " >&6; }
5182if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185  if test -n "$ac_ct_GNATMAKE"; then
5186  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191  IFS=$as_save_IFS
5192  test -z "$as_dir" && as_dir=.
5193    for ac_exec_ext in '' $ac_executable_extensions; do
5194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197    break 2
5198  fi
5199done
5200  done
5201IFS=$as_save_IFS
5202
5203fi
5204fi
5205ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5206if test -n "$ac_ct_GNATMAKE"; then
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5208$as_echo "$ac_ct_GNATMAKE" >&6; }
5209else
5210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5212fi
5213
5214  if test "x$ac_ct_GNATMAKE" = x; then
5215    GNATMAKE="no"
5216  else
5217    case $cross_compiling:$ac_tool_warned in
5218yes:)
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221ac_tool_warned=yes ;;
5222esac
5223    GNATMAKE=$ac_ct_GNATMAKE
5224  fi
5225else
5226  GNATMAKE="$ac_cv_prog_GNATMAKE"
5227fi
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5230$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5231if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  cat >conftest.adb <<EOF
5235procedure conftest is begin null; end conftest;
5236EOF
5237acx_cv_cc_gcc_supports_ada=no
5238# There is a bug in old released versions of GCC which causes the
5239# driver to exit successfully when the appropriate language module
5240# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5241# Therefore we must check for the error message as well as an
5242# unsuccessful exit.
5243# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5244# given a .adb file, but produce no object file.  So we must check
5245# if an object file was really produced to guard against this.
5246errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5247if test x"$errors" = x && test -f conftest.$ac_objext; then
5248  acx_cv_cc_gcc_supports_ada=yes
5249fi
5250rm -f conftest.*
5251fi
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5253$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5254
5255if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5256  have_gnat=yes
5257else
5258  have_gnat=no
5259fi
5260
5261
5262
5263if test -n "$ac_tool_prefix"; then
5264  # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5265set dummy ${ac_tool_prefix}gdc; ac_word=$2
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267$as_echo_n "checking for $ac_word... " >&6; }
5268if ${ac_cv_prog_GDC+:} false; then :
5269  $as_echo_n "(cached) " >&6
5270else
5271  if test -n "$GDC"; then
5272  ac_cv_prog_GDC="$GDC" # Let the user override the test.
5273else
5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275for as_dir in $PATH
5276do
5277  IFS=$as_save_IFS
5278  test -z "$as_dir" && as_dir=.
5279    for ac_exec_ext in '' $ac_executable_extensions; do
5280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281    ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283    break 2
5284  fi
5285done
5286  done
5287IFS=$as_save_IFS
5288
5289fi
5290fi
5291GDC=$ac_cv_prog_GDC
5292if test -n "$GDC"; then
5293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5294$as_echo "$GDC" >&6; }
5295else
5296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297$as_echo "no" >&6; }
5298fi
5299
5300
5301fi
5302if test -z "$ac_cv_prog_GDC"; then
5303  ac_ct_GDC=$GDC
5304  # Extract the first word of "gdc", so it can be a program name with args.
5305set dummy gdc; ac_word=$2
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307$as_echo_n "checking for $ac_word... " >&6; }
5308if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  if test -n "$ac_ct_GDC"; then
5312  ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5313else
5314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317  IFS=$as_save_IFS
5318  test -z "$as_dir" && as_dir=.
5319    for ac_exec_ext in '' $ac_executable_extensions; do
5320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321    ac_cv_prog_ac_ct_GDC="gdc"
5322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323    break 2
5324  fi
5325done
5326  done
5327IFS=$as_save_IFS
5328
5329fi
5330fi
5331ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5332if test -n "$ac_ct_GDC"; then
5333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5334$as_echo "$ac_ct_GDC" >&6; }
5335else
5336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337$as_echo "no" >&6; }
5338fi
5339
5340  if test "x$ac_ct_GDC" = x; then
5341    GDC="no"
5342  else
5343    case $cross_compiling:$ac_tool_warned in
5344yes:)
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347ac_tool_warned=yes ;;
5348esac
5349    GDC=$ac_ct_GDC
5350  fi
5351else
5352  GDC="$ac_cv_prog_GDC"
5353fi
5354
5355if test "x$GDC" != xno; then
5356  have_gdc=yes
5357else
5358  have_gdc=no
5359fi
5360
5361
5362# Do configure tests with the C++ compiler, since that's what we build with.
5363ac_ext=cpp
5364ac_cpp='$CXXCPP $CPPFLAGS'
5365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5368
5369
5370# Remove the -O2: for historical reasons, unless bootstrapping we prefer
5371# optimizations to be activated explicitly by the toplevel.
5372case "$CC" in
5373  */prev-gcc/xgcc*) ;;
5374  *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" `
5375     CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" ` ;;
5376esac
5377
5378
5379
5380
5381# Determine PICFLAG for target gnatlib.
5382
5383
5384
5385
5386case "${target}" in
5387    # PIC is the default on some targets or must not be used.
5388    *-*-darwin*)
5389	# For darwin, common symbols are not allowed in MH_DYLIB files
5390	case "${CFLAGS}" in
5391	  # If we are using a compiler supporting mdynamic-no-pic
5392	  # and the option has been tested as safe to add, then cancel
5393	  # it here, since the code generated is incompatible with shared
5394	  # libs.
5395	  *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5396	  *) PICFLAG_FOR_TARGET=-fno-common ;;
5397	esac
5398	;;
5399    alpha*-dec-osf5*)
5400	# PIC is the default.
5401	;;
5402    hppa*64*-*-hpux*)
5403	# PIC is the default for 64-bit PA HP-UX.
5404	;;
5405    i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5406	;;
5407    i[34567]86-*-mingw* | x86_64-*-mingw*)
5408	;;
5409    i[34567]86-*-interix[3-9]*)
5410	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5411	# Instead, we relocate shared libraries at runtime.
5412	;;
5413    i[34567]86-*-nto-qnx*)
5414	# QNX uses GNU C++, but need to define -shared option too, otherwise
5415	# it will coredump.
5416	PICFLAG_FOR_TARGET='-fPIC -shared'
5417	;;
5418    i[34567]86-pc-msdosdjgpp*)
5419	# DJGPP does not support shared libraries at all.
5420	;;
5421    ia64*-*-hpux*)
5422	# On IA64 HP-UX, PIC is the default but the pic flag
5423	# sets the default TLS model and affects inlining.
5424	PICFLAG_FOR_TARGET=-fPIC
5425	;;
5426    mips-sgi-irix6*)
5427	# PIC is the default.
5428	;;
5429    rs6000-ibm-aix* | powerpc-ibm-aix*)
5430	# All AIX code is PIC.
5431	;;
5432
5433    # Some targets support both -fPIC and -fpic, but prefer the latter.
5434    # FIXME: Why?
5435    i[34567]86-*-* | x86_64-*-*)
5436	PICFLAG_FOR_TARGET=-fpic
5437	;;
5438    # FIXME: Override -fPIC default in libgcc only?
5439    sh-*-linux* | sh[2346lbe]*-*-linux*)
5440	PICFLAG_FOR_TARGET=-fpic
5441	;;
5442    # FIXME: Simplify to sh*-*-netbsd*?
5443    sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5444      sh64-*-netbsd* | sh64l*-*-netbsd*)
5445	PICFLAG_FOR_TARGET=-fpic
5446	;;
5447    # Default to -fPIC unless specified otherwise.
5448    *)
5449	PICFLAG_FOR_TARGET=-fPIC
5450	;;
5451esac
5452
5453# If the user explicitly uses -fpic/-fPIC, keep that.
5454case "${CFLAGS_FOR_TARGET}" in
5455    *-fpic*)
5456	PICFLAG_FOR_TARGET=-fpic
5457	;;
5458    *-fPIC*)
5459	PICFLAG_FOR_TARGET=-fPIC
5460	;;
5461esac
5462
5463
5464
5465# -------------------------
5466# Check C compiler features
5467# -------------------------
5468
5469
5470ac_ext=cpp
5471ac_cpp='$CXXCPP $CPPFLAGS'
5472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5476$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5477if test -z "$CXXCPP"; then
5478  if ${ac_cv_prog_CXXCPP+:} false; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481      # Double quotes because CXXCPP needs to be expanded
5482    for CXXCPP in "$CXX -E" "/lib/cpp"
5483    do
5484      ac_preproc_ok=false
5485for ac_cxx_preproc_warn_flag in '' yes
5486do
5487  # Use a header file that comes with gcc, so configuring glibc
5488  # with a fresh cross-compiler works.
5489  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5490  # <limits.h> exists even on freestanding compilers.
5491  # On the NeXT, cc -E runs the code through the compiler's parser,
5492  # not just through cpp. "Syntax error" is here to catch this case.
5493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h.  */
5495#ifdef __STDC__
5496# include <limits.h>
5497#else
5498# include <assert.h>
5499#endif
5500		     Syntax error
5501_ACEOF
5502if ac_fn_cxx_try_cpp "$LINENO"; then :
5503
5504else
5505  # Broken: fails on valid input.
5506continue
5507fi
5508rm -f conftest.err conftest.i conftest.$ac_ext
5509
5510  # OK, works on sane cases.  Now check whether nonexistent headers
5511  # can be detected and how.
5512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h.  */
5514#include <ac_nonexistent.h>
5515_ACEOF
5516if ac_fn_cxx_try_cpp "$LINENO"; then :
5517  # Broken: success on invalid input.
5518continue
5519else
5520  # Passes both tests.
5521ac_preproc_ok=:
5522break
5523fi
5524rm -f conftest.err conftest.i conftest.$ac_ext
5525
5526done
5527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5528rm -f conftest.i conftest.err conftest.$ac_ext
5529if $ac_preproc_ok; then :
5530  break
5531fi
5532
5533    done
5534    ac_cv_prog_CXXCPP=$CXXCPP
5535
5536fi
5537  CXXCPP=$ac_cv_prog_CXXCPP
5538else
5539  ac_cv_prog_CXXCPP=$CXXCPP
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5542$as_echo "$CXXCPP" >&6; }
5543ac_preproc_ok=false
5544for ac_cxx_preproc_warn_flag in '' yes
5545do
5546  # Use a header file that comes with gcc, so configuring glibc
5547  # with a fresh cross-compiler works.
5548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5549  # <limits.h> exists even on freestanding compilers.
5550  # On the NeXT, cc -E runs the code through the compiler's parser,
5551  # not just through cpp. "Syntax error" is here to catch this case.
5552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h.  */
5554#ifdef __STDC__
5555# include <limits.h>
5556#else
5557# include <assert.h>
5558#endif
5559		     Syntax error
5560_ACEOF
5561if ac_fn_cxx_try_cpp "$LINENO"; then :
5562
5563else
5564  # Broken: fails on valid input.
5565continue
5566fi
5567rm -f conftest.err conftest.i conftest.$ac_ext
5568
5569  # OK, works on sane cases.  Now check whether nonexistent headers
5570  # can be detected and how.
5571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572/* end confdefs.h.  */
5573#include <ac_nonexistent.h>
5574_ACEOF
5575if ac_fn_cxx_try_cpp "$LINENO"; then :
5576  # Broken: success on invalid input.
5577continue
5578else
5579  # Passes both tests.
5580ac_preproc_ok=:
5581break
5582fi
5583rm -f conftest.err conftest.i conftest.$ac_ext
5584
5585done
5586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5587rm -f conftest.i conftest.err conftest.$ac_ext
5588if $ac_preproc_ok; then :
5589
5590else
5591  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5593as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5594See \`config.log' for more details" "$LINENO" 5; }
5595fi
5596
5597ac_ext=cpp
5598ac_cpp='$CXXCPP $CPPFLAGS'
5599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5602
5603
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5605$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5606if ${ac_cv_path_GREP+:} false; then :
5607  $as_echo_n "(cached) " >&6
5608else
5609  if test -z "$GREP"; then
5610  ac_path_GREP_found=false
5611  # Loop through the user's path and test for each of PROGNAME-LIST
5612  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5614do
5615  IFS=$as_save_IFS
5616  test -z "$as_dir" && as_dir=.
5617    for ac_prog in grep ggrep; do
5618    for ac_exec_ext in '' $ac_executable_extensions; do
5619      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5620      as_fn_executable_p "$ac_path_GREP" || continue
5621# Check for GNU ac_path_GREP and select it if it is found.
5622  # Check for GNU $ac_path_GREP
5623case `"$ac_path_GREP" --version 2>&1` in
5624*GNU*)
5625  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5626*)
5627  ac_count=0
5628  $as_echo_n 0123456789 >"conftest.in"
5629  while :
5630  do
5631    cat "conftest.in" "conftest.in" >"conftest.tmp"
5632    mv "conftest.tmp" "conftest.in"
5633    cp "conftest.in" "conftest.nl"
5634    $as_echo 'GREP' >> "conftest.nl"
5635    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5636    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5637    as_fn_arith $ac_count + 1 && ac_count=$as_val
5638    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5639      # Best one so far, save it but keep looking for a better one
5640      ac_cv_path_GREP="$ac_path_GREP"
5641      ac_path_GREP_max=$ac_count
5642    fi
5643    # 10*(2^10) chars as input seems more than enough
5644    test $ac_count -gt 10 && break
5645  done
5646  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5647esac
5648
5649      $ac_path_GREP_found && break 3
5650    done
5651  done
5652  done
5653IFS=$as_save_IFS
5654  if test -z "$ac_cv_path_GREP"; then
5655    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5656  fi
5657else
5658  ac_cv_path_GREP=$GREP
5659fi
5660
5661fi
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5663$as_echo "$ac_cv_path_GREP" >&6; }
5664 GREP="$ac_cv_path_GREP"
5665
5666
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5668$as_echo_n "checking for egrep... " >&6; }
5669if ${ac_cv_path_EGREP+:} false; then :
5670  $as_echo_n "(cached) " >&6
5671else
5672  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5673   then ac_cv_path_EGREP="$GREP -E"
5674   else
5675     if test -z "$EGREP"; then
5676  ac_path_EGREP_found=false
5677  # Loop through the user's path and test for each of PROGNAME-LIST
5678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5680do
5681  IFS=$as_save_IFS
5682  test -z "$as_dir" && as_dir=.
5683    for ac_prog in egrep; do
5684    for ac_exec_ext in '' $ac_executable_extensions; do
5685      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5686      as_fn_executable_p "$ac_path_EGREP" || continue
5687# Check for GNU ac_path_EGREP and select it if it is found.
5688  # Check for GNU $ac_path_EGREP
5689case `"$ac_path_EGREP" --version 2>&1` in
5690*GNU*)
5691  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5692*)
5693  ac_count=0
5694  $as_echo_n 0123456789 >"conftest.in"
5695  while :
5696  do
5697    cat "conftest.in" "conftest.in" >"conftest.tmp"
5698    mv "conftest.tmp" "conftest.in"
5699    cp "conftest.in" "conftest.nl"
5700    $as_echo 'EGREP' >> "conftest.nl"
5701    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5702    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5703    as_fn_arith $ac_count + 1 && ac_count=$as_val
5704    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5705      # Best one so far, save it but keep looking for a better one
5706      ac_cv_path_EGREP="$ac_path_EGREP"
5707      ac_path_EGREP_max=$ac_count
5708    fi
5709    # 10*(2^10) chars as input seems more than enough
5710    test $ac_count -gt 10 && break
5711  done
5712  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5713esac
5714
5715      $ac_path_EGREP_found && break 3
5716    done
5717  done
5718  done
5719IFS=$as_save_IFS
5720  if test -z "$ac_cv_path_EGREP"; then
5721    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5722  fi
5723else
5724  ac_cv_path_EGREP=$EGREP
5725fi
5726
5727   fi
5728fi
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5730$as_echo "$ac_cv_path_EGREP" >&6; }
5731 EGREP="$ac_cv_path_EGREP"
5732
5733
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5735$as_echo_n "checking for ANSI C header files... " >&6; }
5736if ${ac_cv_header_stdc+:} false; then :
5737  $as_echo_n "(cached) " >&6
5738else
5739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740/* end confdefs.h.  */
5741#include <stdlib.h>
5742#include <stdarg.h>
5743#include <string.h>
5744#include <float.h>
5745
5746int
5747main ()
5748{
5749
5750  ;
5751  return 0;
5752}
5753_ACEOF
5754if ac_fn_cxx_try_compile "$LINENO"; then :
5755  ac_cv_header_stdc=yes
5756else
5757  ac_cv_header_stdc=no
5758fi
5759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760
5761if test $ac_cv_header_stdc = yes; then
5762  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764/* end confdefs.h.  */
5765#include <string.h>
5766
5767_ACEOF
5768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5769  $EGREP "memchr" >/dev/null 2>&1; then :
5770
5771else
5772  ac_cv_header_stdc=no
5773fi
5774rm -f conftest*
5775
5776fi
5777
5778if test $ac_cv_header_stdc = yes; then
5779  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781/* end confdefs.h.  */
5782#include <stdlib.h>
5783
5784_ACEOF
5785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5786  $EGREP "free" >/dev/null 2>&1; then :
5787
5788else
5789  ac_cv_header_stdc=no
5790fi
5791rm -f conftest*
5792
5793fi
5794
5795if test $ac_cv_header_stdc = yes; then
5796  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5797  if test "$cross_compiling" = yes; then :
5798  :
5799else
5800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801/* end confdefs.h.  */
5802#include <ctype.h>
5803#include <stdlib.h>
5804#if ((' ' & 0x0FF) == 0x020)
5805# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5806# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5807#else
5808# define ISLOWER(c) \
5809		   (('a' <= (c) && (c) <= 'i') \
5810		     || ('j' <= (c) && (c) <= 'r') \
5811		     || ('s' <= (c) && (c) <= 'z'))
5812# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5813#endif
5814
5815#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5816int
5817main ()
5818{
5819  int i;
5820  for (i = 0; i < 256; i++)
5821    if (XOR (islower (i), ISLOWER (i))
5822	|| toupper (i) != TOUPPER (i))
5823      return 2;
5824  return 0;
5825}
5826_ACEOF
5827if ac_fn_cxx_try_run "$LINENO"; then :
5828
5829else
5830  ac_cv_header_stdc=no
5831fi
5832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5833  conftest.$ac_objext conftest.beam conftest.$ac_ext
5834fi
5835
5836fi
5837fi
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5839$as_echo "$ac_cv_header_stdc" >&6; }
5840if test $ac_cv_header_stdc = yes; then
5841
5842$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5843
5844fi
5845
5846# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5847for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5848		  inttypes.h stdint.h unistd.h
5849do :
5850  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5851ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5852"
5853if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5854  cat >>confdefs.h <<_ACEOF
5855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5856_ACEOF
5857
5858fi
5859
5860done
5861
5862
5863
5864  ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5865if test "x$ac_cv_header_minix_config_h" = xyes; then :
5866  MINIX=yes
5867else
5868  MINIX=
5869fi
5870
5871
5872  if test "$MINIX" = yes; then
5873
5874$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5875
5876
5877$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5878
5879
5880$as_echo "#define _MINIX 1" >>confdefs.h
5881
5882  fi
5883
5884
5885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5886$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5887if ${ac_cv_safe_to_define___extensions__+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891/* end confdefs.h.  */
5892
5893#         define __EXTENSIONS__ 1
5894          $ac_includes_default
5895int
5896main ()
5897{
5898
5899  ;
5900  return 0;
5901}
5902_ACEOF
5903if ac_fn_cxx_try_compile "$LINENO"; then :
5904  ac_cv_safe_to_define___extensions__=yes
5905else
5906  ac_cv_safe_to_define___extensions__=no
5907fi
5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909fi
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5911$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5912  test $ac_cv_safe_to_define___extensions__ = yes &&
5913    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5914
5915  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5916
5917  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5918
5919  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5920
5921  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5922
5923
5924
5925ac_ext=c
5926ac_cpp='$CPP $CPPFLAGS'
5927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929ac_compiler_gnu=$ac_cv_c_compiler_gnu
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5931$as_echo_n "checking how to run the C preprocessor... " >&6; }
5932# On Suns, sometimes $CPP names a directory.
5933if test -n "$CPP" && test -d "$CPP"; then
5934  CPP=
5935fi
5936if test -z "$CPP"; then
5937  if ${ac_cv_prog_CPP+:} false; then :
5938  $as_echo_n "(cached) " >&6
5939else
5940      # Double quotes because CPP needs to be expanded
5941    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5942    do
5943      ac_preproc_ok=false
5944for ac_c_preproc_warn_flag in '' yes
5945do
5946  # Use a header file that comes with gcc, so configuring glibc
5947  # with a fresh cross-compiler works.
5948  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5949  # <limits.h> exists even on freestanding compilers.
5950  # On the NeXT, cc -E runs the code through the compiler's parser,
5951  # not just through cpp. "Syntax error" is here to catch this case.
5952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h.  */
5954#ifdef __STDC__
5955# include <limits.h>
5956#else
5957# include <assert.h>
5958#endif
5959		     Syntax error
5960_ACEOF
5961if ac_fn_c_try_cpp "$LINENO"; then :
5962
5963else
5964  # Broken: fails on valid input.
5965continue
5966fi
5967rm -f conftest.err conftest.i conftest.$ac_ext
5968
5969  # OK, works on sane cases.  Now check whether nonexistent headers
5970  # can be detected and how.
5971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973#include <ac_nonexistent.h>
5974_ACEOF
5975if ac_fn_c_try_cpp "$LINENO"; then :
5976  # Broken: success on invalid input.
5977continue
5978else
5979  # Passes both tests.
5980ac_preproc_ok=:
5981break
5982fi
5983rm -f conftest.err conftest.i conftest.$ac_ext
5984
5985done
5986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5987rm -f conftest.i conftest.err conftest.$ac_ext
5988if $ac_preproc_ok; then :
5989  break
5990fi
5991
5992    done
5993    ac_cv_prog_CPP=$CPP
5994
5995fi
5996  CPP=$ac_cv_prog_CPP
5997else
5998  ac_cv_prog_CPP=$CPP
5999fi
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6001$as_echo "$CPP" >&6; }
6002ac_preproc_ok=false
6003for ac_c_preproc_warn_flag in '' yes
6004do
6005  # Use a header file that comes with gcc, so configuring glibc
6006  # with a fresh cross-compiler works.
6007  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6008  # <limits.h> exists even on freestanding compilers.
6009  # On the NeXT, cc -E runs the code through the compiler's parser,
6010  # not just through cpp. "Syntax error" is here to catch this case.
6011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h.  */
6013#ifdef __STDC__
6014# include <limits.h>
6015#else
6016# include <assert.h>
6017#endif
6018		     Syntax error
6019_ACEOF
6020if ac_fn_c_try_cpp "$LINENO"; then :
6021
6022else
6023  # Broken: fails on valid input.
6024continue
6025fi
6026rm -f conftest.err conftest.i conftest.$ac_ext
6027
6028  # OK, works on sane cases.  Now check whether nonexistent headers
6029  # can be detected and how.
6030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031/* end confdefs.h.  */
6032#include <ac_nonexistent.h>
6033_ACEOF
6034if ac_fn_c_try_cpp "$LINENO"; then :
6035  # Broken: success on invalid input.
6036continue
6037else
6038  # Passes both tests.
6039ac_preproc_ok=:
6040break
6041fi
6042rm -f conftest.err conftest.i conftest.$ac_ext
6043
6044done
6045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6046rm -f conftest.i conftest.err conftest.$ac_ext
6047if $ac_preproc_ok; then :
6048
6049else
6050  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6052as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6053See \`config.log' for more details" "$LINENO" 5; }
6054fi
6055
6056ac_ext=cpp
6057ac_cpp='$CXXCPP $CPPFLAGS'
6058ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6061
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6063$as_echo_n "checking for inline... " >&6; }
6064if ${ac_cv_c_inline+:} false; then :
6065  $as_echo_n "(cached) " >&6
6066else
6067  ac_cv_c_inline=no
6068for ac_kw in inline __inline__ __inline; do
6069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h.  */
6071#ifndef __cplusplus
6072typedef int foo_t;
6073static $ac_kw foo_t static_foo () {return 0; }
6074$ac_kw foo_t foo () {return 0; }
6075#endif
6076
6077_ACEOF
6078if ac_fn_cxx_try_compile "$LINENO"; then :
6079  ac_cv_c_inline=$ac_kw
6080fi
6081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082  test "$ac_cv_c_inline" != no && break
6083done
6084
6085fi
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6087$as_echo "$ac_cv_c_inline" >&6; }
6088
6089case $ac_cv_c_inline in
6090  inline | yes) ;;
6091  *)
6092    case $ac_cv_c_inline in
6093      no) ac_val=;;
6094      *) ac_val=$ac_cv_c_inline;;
6095    esac
6096    cat >>confdefs.h <<_ACEOF
6097#ifndef __cplusplus
6098#define inline $ac_val
6099#endif
6100_ACEOF
6101    ;;
6102esac
6103
6104
6105# Check whether --enable-largefile was given.
6106if test "${enable_largefile+set}" = set; then :
6107  enableval=$enable_largefile;
6108fi
6109
6110if test "$enable_largefile" != no; then
6111
6112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6113$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6114if ${ac_cv_sys_largefile_CC+:} false; then :
6115  $as_echo_n "(cached) " >&6
6116else
6117  ac_cv_sys_largefile_CC=no
6118     if test "$GCC" != yes; then
6119       ac_save_CC=$CC
6120       while :; do
6121	 # IRIX 6.2 and later do not support large files by default,
6122	 # so use the C compiler's -n32 option if that helps.
6123	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124/* end confdefs.h.  */
6125#include <sys/types.h>
6126 /* Check that off_t can represent 2**63 - 1 correctly.
6127    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6128    since some C++ compilers masquerading as C compilers
6129    incorrectly reject 9223372036854775807.  */
6130#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6131  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6132		       && LARGE_OFF_T % 2147483647 == 1)
6133		      ? 1 : -1];
6134int
6135main ()
6136{
6137
6138  ;
6139  return 0;
6140}
6141_ACEOF
6142	 if ac_fn_cxx_try_compile "$LINENO"; then :
6143  break
6144fi
6145rm -f core conftest.err conftest.$ac_objext
6146	 CC="$CC -n32"
6147	 if ac_fn_cxx_try_compile "$LINENO"; then :
6148  ac_cv_sys_largefile_CC=' -n32'; break
6149fi
6150rm -f core conftest.err conftest.$ac_objext
6151	 break
6152       done
6153       CC=$ac_save_CC
6154       rm -f conftest.$ac_ext
6155    fi
6156fi
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6158$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6159  if test "$ac_cv_sys_largefile_CC" != no; then
6160    CC=$CC$ac_cv_sys_largefile_CC
6161  fi
6162
6163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6164$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6165if ${ac_cv_sys_file_offset_bits+:} false; then :
6166  $as_echo_n "(cached) " >&6
6167else
6168  while :; do
6169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170/* end confdefs.h.  */
6171#include <sys/types.h>
6172 /* Check that off_t can represent 2**63 - 1 correctly.
6173    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6174    since some C++ compilers masquerading as C compilers
6175    incorrectly reject 9223372036854775807.  */
6176#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6177  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6178		       && LARGE_OFF_T % 2147483647 == 1)
6179		      ? 1 : -1];
6180int
6181main ()
6182{
6183
6184  ;
6185  return 0;
6186}
6187_ACEOF
6188if ac_fn_cxx_try_compile "$LINENO"; then :
6189  ac_cv_sys_file_offset_bits=no; break
6190fi
6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h.  */
6194#define _FILE_OFFSET_BITS 64
6195#include <sys/types.h>
6196 /* Check that off_t can represent 2**63 - 1 correctly.
6197    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6198    since some C++ compilers masquerading as C compilers
6199    incorrectly reject 9223372036854775807.  */
6200#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6201  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6202		       && LARGE_OFF_T % 2147483647 == 1)
6203		      ? 1 : -1];
6204int
6205main ()
6206{
6207
6208  ;
6209  return 0;
6210}
6211_ACEOF
6212if ac_fn_cxx_try_compile "$LINENO"; then :
6213  ac_cv_sys_file_offset_bits=64; break
6214fi
6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216  ac_cv_sys_file_offset_bits=unknown
6217  break
6218done
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6221$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6222case $ac_cv_sys_file_offset_bits in #(
6223  no | unknown) ;;
6224  *)
6225cat >>confdefs.h <<_ACEOF
6226#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6227_ACEOF
6228;;
6229esac
6230rm -rf conftest*
6231  if test $ac_cv_sys_file_offset_bits = unknown; then
6232    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6233$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6234if ${ac_cv_sys_large_files+:} false; then :
6235  $as_echo_n "(cached) " >&6
6236else
6237  while :; do
6238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239/* end confdefs.h.  */
6240#include <sys/types.h>
6241 /* Check that off_t can represent 2**63 - 1 correctly.
6242    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6243    since some C++ compilers masquerading as C compilers
6244    incorrectly reject 9223372036854775807.  */
6245#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6246  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6247		       && LARGE_OFF_T % 2147483647 == 1)
6248		      ? 1 : -1];
6249int
6250main ()
6251{
6252
6253  ;
6254  return 0;
6255}
6256_ACEOF
6257if ac_fn_cxx_try_compile "$LINENO"; then :
6258  ac_cv_sys_large_files=no; break
6259fi
6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262/* end confdefs.h.  */
6263#define _LARGE_FILES 1
6264#include <sys/types.h>
6265 /* Check that off_t can represent 2**63 - 1 correctly.
6266    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6267    since some C++ compilers masquerading as C compilers
6268    incorrectly reject 9223372036854775807.  */
6269#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6270  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6271		       && LARGE_OFF_T % 2147483647 == 1)
6272		      ? 1 : -1];
6273int
6274main ()
6275{
6276
6277  ;
6278  return 0;
6279}
6280_ACEOF
6281if ac_fn_cxx_try_compile "$LINENO"; then :
6282  ac_cv_sys_large_files=1; break
6283fi
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285  ac_cv_sys_large_files=unknown
6286  break
6287done
6288fi
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6290$as_echo "$ac_cv_sys_large_files" >&6; }
6291case $ac_cv_sys_large_files in #(
6292  no | unknown) ;;
6293  *)
6294cat >>confdefs.h <<_ACEOF
6295#define _LARGE_FILES $ac_cv_sys_large_files
6296_ACEOF
6297;;
6298esac
6299rm -rf conftest*
6300  fi
6301
6302
6303fi
6304
6305
6306# sizeof(char) is 1 by definition.
6307# The cast to long int works around a bug in the HP C Compiler
6308# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6309# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6310# This bug is HP SR number 8606223364.
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6312$as_echo_n "checking size of void *... " >&6; }
6313if ${ac_cv_sizeof_void_p+:} false; then :
6314  $as_echo_n "(cached) " >&6
6315else
6316  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
6317
6318else
6319  if test "$ac_cv_type_void_p" = yes; then
6320     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6322as_fn_error 77 "cannot compute sizeof (void *)
6323See \`config.log' for more details" "$LINENO" 5; }
6324   else
6325     ac_cv_sizeof_void_p=0
6326   fi
6327fi
6328
6329fi
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6331$as_echo "$ac_cv_sizeof_void_p" >&6; }
6332
6333
6334
6335cat >>confdefs.h <<_ACEOF
6336#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6337_ACEOF
6338
6339
6340# The cast to long int works around a bug in the HP C Compiler
6341# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6342# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6343# This bug is HP SR number 8606223364.
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6345$as_echo_n "checking size of short... " >&6; }
6346if ${ac_cv_sizeof_short+:} false; then :
6347  $as_echo_n "(cached) " >&6
6348else
6349  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
6350
6351else
6352  if test "$ac_cv_type_short" = yes; then
6353     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6355as_fn_error 77 "cannot compute sizeof (short)
6356See \`config.log' for more details" "$LINENO" 5; }
6357   else
6358     ac_cv_sizeof_short=0
6359   fi
6360fi
6361
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6364$as_echo "$ac_cv_sizeof_short" >&6; }
6365
6366
6367
6368cat >>confdefs.h <<_ACEOF
6369#define SIZEOF_SHORT $ac_cv_sizeof_short
6370_ACEOF
6371
6372
6373# The cast to long int works around a bug in the HP C Compiler
6374# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6375# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6376# This bug is HP SR number 8606223364.
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6378$as_echo_n "checking size of int... " >&6; }
6379if ${ac_cv_sizeof_int+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6383
6384else
6385  if test "$ac_cv_type_int" = yes; then
6386     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6388as_fn_error 77 "cannot compute sizeof (int)
6389See \`config.log' for more details" "$LINENO" 5; }
6390   else
6391     ac_cv_sizeof_int=0
6392   fi
6393fi
6394
6395fi
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6397$as_echo "$ac_cv_sizeof_int" >&6; }
6398
6399
6400
6401cat >>confdefs.h <<_ACEOF
6402#define SIZEOF_INT $ac_cv_sizeof_int
6403_ACEOF
6404
6405
6406# The cast to long int works around a bug in the HP C Compiler
6407# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6408# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6409# This bug is HP SR number 8606223364.
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6411$as_echo_n "checking size of long... " >&6; }
6412if ${ac_cv_sizeof_long+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6416
6417else
6418  if test "$ac_cv_type_long" = yes; then
6419     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6421as_fn_error 77 "cannot compute sizeof (long)
6422See \`config.log' for more details" "$LINENO" 5; }
6423   else
6424     ac_cv_sizeof_long=0
6425   fi
6426fi
6427
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6430$as_echo "$ac_cv_sizeof_long" >&6; }
6431
6432
6433
6434cat >>confdefs.h <<_ACEOF
6435#define SIZEOF_LONG $ac_cv_sizeof_long
6436_ACEOF
6437
6438
6439ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6440if test "x$ac_cv_type_long_long" = xyes; then :
6441
6442cat >>confdefs.h <<_ACEOF
6443#define HAVE_LONG_LONG 1
6444_ACEOF
6445
6446# The cast to long int works around a bug in the HP C Compiler
6447# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6448# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6449# This bug is HP SR number 8606223364.
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6451$as_echo_n "checking size of long long... " >&6; }
6452if ${ac_cv_sizeof_long_long+:} false; then :
6453  $as_echo_n "(cached) " >&6
6454else
6455  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6456
6457else
6458  if test "$ac_cv_type_long_long" = yes; then
6459     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6461as_fn_error 77 "cannot compute sizeof (long long)
6462See \`config.log' for more details" "$LINENO" 5; }
6463   else
6464     ac_cv_sizeof_long_long=0
6465   fi
6466fi
6467
6468fi
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6470$as_echo "$ac_cv_sizeof_long_long" >&6; }
6471
6472
6473
6474cat >>confdefs.h <<_ACEOF
6475#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6476_ACEOF
6477
6478
6479fi
6480
6481ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6482case $ac_cv_c_int8_t in #(
6483  no|yes) ;; #(
6484  *)
6485
6486cat >>confdefs.h <<_ACEOF
6487#define int8_t $ac_cv_c_int8_t
6488_ACEOF
6489;;
6490esac
6491
6492ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6493case $ac_cv_c_int16_t in #(
6494  no|yes) ;; #(
6495  *)
6496
6497cat >>confdefs.h <<_ACEOF
6498#define int16_t $ac_cv_c_int16_t
6499_ACEOF
6500;;
6501esac
6502
6503ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6504case $ac_cv_c_int32_t in #(
6505  no|yes) ;; #(
6506  *)
6507
6508cat >>confdefs.h <<_ACEOF
6509#define int32_t $ac_cv_c_int32_t
6510_ACEOF
6511;;
6512esac
6513
6514ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6515case $ac_cv_c_int64_t in #(
6516  no|yes) ;; #(
6517  *)
6518
6519cat >>confdefs.h <<_ACEOF
6520#define int64_t $ac_cv_c_int64_t
6521_ACEOF
6522;;
6523esac
6524
6525
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6527$as_echo_n "checking for unsigned long long int... " >&6; }
6528if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6529  $as_echo_n "(cached) " >&6
6530else
6531  ac_cv_type_unsigned_long_long_int=yes
6532     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6533       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h.  */
6535
6536  /* For now, do not test the preprocessor; as of 2007 there are too many
6537	 implementations with broken preprocessors.  Perhaps this can
6538	 be revisited in 2012.  In the meantime, code should not expect
6539	 #if to work with literals wider than 32 bits.  */
6540      /* Test literals.  */
6541      long long int ll = 9223372036854775807ll;
6542      long long int nll = -9223372036854775807LL;
6543      unsigned long long int ull = 18446744073709551615ULL;
6544      /* Test constant expressions.   */
6545      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6546		     ? 1 : -1)];
6547      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6548		     ? 1 : -1)];
6549      int i = 63;
6550int
6551main ()
6552{
6553/* Test availability of runtime routines for shift and division.  */
6554      long long int llmax = 9223372036854775807ll;
6555      unsigned long long int ullmax = 18446744073709551615ull;
6556      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6557	      | (llmax / ll) | (llmax % ll)
6558	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6559	      | (ullmax / ull) | (ullmax % ull));
6560  ;
6561  return 0;
6562}
6563
6564_ACEOF
6565if ac_fn_cxx_try_link "$LINENO"; then :
6566
6567else
6568  ac_cv_type_unsigned_long_long_int=no
6569fi
6570rm -f core conftest.err conftest.$ac_objext \
6571    conftest$ac_exeext conftest.$ac_ext
6572     fi
6573fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6575$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6576  if test $ac_cv_type_unsigned_long_long_int = yes; then
6577
6578$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6579
6580  fi
6581
6582
6583
6584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6585$as_echo_n "checking for long long int... " >&6; }
6586if ${ac_cv_type_long_long_int+:} false; then :
6587  $as_echo_n "(cached) " >&6
6588else
6589  ac_cv_type_long_long_int=yes
6590      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6591	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6592	if test $ac_cv_type_long_long_int = yes; then
6593	  	  	  	  if test "$cross_compiling" = yes; then :
6594  :
6595else
6596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598#include <limits.h>
6599		 #ifndef LLONG_MAX
6600		 # define HALF \
6601			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6602		 # define LLONG_MAX (HALF - 1 + HALF)
6603		 #endif
6604int
6605main ()
6606{
6607long long int n = 1;
6608		 int i;
6609		 for (i = 0; ; i++)
6610		   {
6611		     long long int m = n << i;
6612		     if (m >> i != n)
6613		       return 1;
6614		     if (LLONG_MAX / 2 < m)
6615		       break;
6616		   }
6617		 return 0;
6618  ;
6619  return 0;
6620}
6621_ACEOF
6622if ac_fn_cxx_try_run "$LINENO"; then :
6623
6624else
6625  ac_cv_type_long_long_int=no
6626fi
6627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6628  conftest.$ac_objext conftest.beam conftest.$ac_ext
6629fi
6630
6631	fi
6632      fi
6633fi
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6635$as_echo "$ac_cv_type_long_long_int" >&6; }
6636  if test $ac_cv_type_long_long_int = yes; then
6637
6638$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6639
6640  fi
6641
6642
6643
6644  ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6645if test "x$ac_cv_type_intmax_t" = xyes; then :
6646
6647$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6648
6649else
6650  test $ac_cv_type_long_long_int = yes \
6651       && ac_type='long long int' \
6652       || ac_type='long int'
6653
6654cat >>confdefs.h <<_ACEOF
6655#define intmax_t $ac_type
6656_ACEOF
6657
6658fi
6659
6660
6661
6662  ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6663if test "x$ac_cv_type_intptr_t" = xyes; then :
6664
6665$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6666
6667else
6668  for ac_type in 'int' 'long int' 'long long int'; do
6669       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h.  */
6671$ac_includes_default
6672int
6673main ()
6674{
6675static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6676test_array [0] = 0;
6677return test_array [0];
6678
6679  ;
6680  return 0;
6681}
6682_ACEOF
6683if ac_fn_cxx_try_compile "$LINENO"; then :
6684
6685cat >>confdefs.h <<_ACEOF
6686#define intptr_t $ac_type
6687_ACEOF
6688
6689	  ac_type=
6690fi
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692       test -z "$ac_type" && break
6693     done
6694fi
6695
6696
6697ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6698case $ac_cv_c_uint8_t in #(
6699  no|yes) ;; #(
6700  *)
6701
6702$as_echo "#define _UINT8_T 1" >>confdefs.h
6703
6704
6705cat >>confdefs.h <<_ACEOF
6706#define uint8_t $ac_cv_c_uint8_t
6707_ACEOF
6708;;
6709  esac
6710
6711ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6712case $ac_cv_c_uint16_t in #(
6713  no|yes) ;; #(
6714  *)
6715
6716
6717cat >>confdefs.h <<_ACEOF
6718#define uint16_t $ac_cv_c_uint16_t
6719_ACEOF
6720;;
6721  esac
6722
6723ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6724case $ac_cv_c_uint32_t in #(
6725  no|yes) ;; #(
6726  *)
6727
6728$as_echo "#define _UINT32_T 1" >>confdefs.h
6729
6730
6731cat >>confdefs.h <<_ACEOF
6732#define uint32_t $ac_cv_c_uint32_t
6733_ACEOF
6734;;
6735  esac
6736
6737ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6738case $ac_cv_c_uint64_t in #(
6739  no|yes) ;; #(
6740  *)
6741
6742$as_echo "#define _UINT64_T 1" >>confdefs.h
6743
6744
6745cat >>confdefs.h <<_ACEOF
6746#define uint64_t $ac_cv_c_uint64_t
6747_ACEOF
6748;;
6749  esac
6750
6751
6752
6753  ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6754if test "x$ac_cv_type_uintmax_t" = xyes; then :
6755
6756$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6757
6758else
6759  test $ac_cv_type_unsigned_long_long_int = yes \
6760       && ac_type='unsigned long long int' \
6761       || ac_type='unsigned long int'
6762
6763cat >>confdefs.h <<_ACEOF
6764#define uintmax_t $ac_type
6765_ACEOF
6766
6767fi
6768
6769
6770
6771  ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6772if test "x$ac_cv_type_uintptr_t" = xyes; then :
6773
6774$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6775
6776else
6777  for ac_type in 'unsigned int' 'unsigned long int' \
6778	'unsigned long long int'; do
6779       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780/* end confdefs.h.  */
6781$ac_includes_default
6782int
6783main ()
6784{
6785static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6786test_array [0] = 0;
6787return test_array [0];
6788
6789  ;
6790  return 0;
6791}
6792_ACEOF
6793if ac_fn_cxx_try_compile "$LINENO"; then :
6794
6795cat >>confdefs.h <<_ACEOF
6796#define uintptr_t $ac_type
6797_ACEOF
6798
6799	  ac_type=
6800fi
6801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802       test -z "$ac_type" && break
6803     done
6804fi
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6820  as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6821fi
6822
6823# check what underlying integer type int64_t uses
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6825$as_echo_n "checking for int64_t underlying type... " >&6; }
6826if ${ac_cv_int64_t_type+:} false; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829
6830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831/* end confdefs.h.  */
6832
6833#ifdef HAVE_STDINT_H
6834#include <stdint.h>
6835#endif
6836template <typename T> struct X { };
6837template <>
6838struct X<long> { typedef long t; };
6839
6840int
6841main ()
6842{
6843X<int64_t>::t x;
6844  ;
6845  return 0;
6846}
6847_ACEOF
6848if ac_fn_cxx_try_compile "$LINENO"; then :
6849  ac_cv_int64_t_type=long
6850else
6851  ac_cv_int64_t_type="long long"
6852fi
6853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854fi
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6856$as_echo "$ac_cv_int64_t_type" >&6; }
6857if test "$ac_cv_int64_t_type" = "long"; then
6858
6859$as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6860
6861else
6862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863/* end confdefs.h.  */
6864
6865#ifdef HAVE_STDINT_H
6866#include <stdint.h>
6867#endif
6868template <typename T> struct X { };
6869template <>
6870struct X<long long> { typedef long long t; };
6871
6872int
6873main ()
6874{
6875X<int64_t>::t x;
6876  ;
6877  return 0;
6878}
6879_ACEOF
6880if ac_fn_cxx_try_compile "$LINENO"; then :
6881
6882else
6883  as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6884fi
6885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886fi
6887
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6889$as_echo_n "checking for std::swap in <utility>... " >&6; }
6890if ${ac_cv_std_swap_in_utility+:} false; then :
6891  $as_echo_n "(cached) " >&6
6892else
6893
6894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895/* end confdefs.h.  */
6896
6897#include <utility>
6898
6899int
6900main ()
6901{
6902int a, b; std::swap(a,b);
6903  ;
6904  return 0;
6905}
6906_ACEOF
6907if ac_fn_cxx_try_compile "$LINENO"; then :
6908  ac_cv_std_swap_in_utility=yes
6909else
6910  ac_cv_std_swap_in_utility=no
6911fi
6912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913fi
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6915$as_echo "$ac_cv_std_swap_in_utility" >&6; }
6916if test $ac_cv_std_swap_in_utility = yes; then
6917
6918$as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6919
6920fi
6921
6922# Check whether compiler is affected by placement new aliasing bug (PR 29286).
6923# If the host compiler is affected by the bug, and we build with optimization
6924# enabled (which happens e.g. when cross-compiling), the pool allocator may
6925# get miscompiled.  Use -fno-strict-aliasing to work around this problem.
6926# Since there is no reliable feature check for the presence of this bug,
6927# we simply use a GCC version number check.  (This should never trigger for
6928# stages 2 or 3 of a native bootstrap.)
6929aliasing_flags=
6930if test "$GCC" = yes; then
6931  saved_CXXFLAGS="$CXXFLAGS"
6932
6933  # The following test compilation will succeed if and only if $CXX accepts
6934  # -fno-strict-aliasing *and* is older than GCC 4.3.
6935  CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6937$as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939/* end confdefs.h.  */
6940
6941#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6942#error compiler not affected by placement new aliasing bug
6943#endif
6944
6945_ACEOF
6946if ac_fn_cxx_try_compile "$LINENO"; then :
6947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6948$as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6949else
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951$as_echo "no" >&6; }
6952fi
6953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954
6955  CXXFLAGS="$saved_CXXFLAGS"
6956fi
6957
6958
6959
6960
6961# ---------------------
6962# Warnings and checking
6963# ---------------------
6964
6965# Check $CC warning features (if it's GCC).
6966# We want to use -pedantic, but we don't want warnings about
6967# * 'long long'
6968# * variadic macros
6969# * overlong strings
6970# * C++11 narrowing conversions in { }
6971# So, we only use -pedantic if we can disable those warnings.
6972
6973# In stage 1, disable -Wformat warnings from old GCCs about new % codes
6974# Check whether --enable-build-format-warnings was given.
6975if test "${enable_build_format_warnings+set}" = set; then :
6976  enableval=$enable_build_format_warnings;
6977else
6978  enable_build_format_warnings=yes
6979fi
6980
6981if test $enable_build_format_warnings = no; then :
6982  wf_opt=-Wno-format
6983else
6984  wf_opt=
6985fi
6986ac_ext=cpp
6987ac_cpp='$CXXCPP $CPPFLAGS'
6988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6991
6992loose_warn=
6993save_CXXFLAGS="$CXXFLAGS"
6994for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6995  # Do the check with the no- prefix removed since gcc silently
6996  # accepts any -Wno-* option on purpose
6997  case $real_option in
6998    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6999    *) option=$real_option ;;
7000  esac
7001  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7002
7003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7004$as_echo_n "checking whether $CXX supports $option... " >&6; }
7005if eval \${$as_acx_Woption+:} false; then :
7006  $as_echo_n "(cached) " >&6
7007else
7008  CXXFLAGS="$option"
7009    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010/* end confdefs.h.  */
7011
7012int
7013main ()
7014{
7015
7016  ;
7017  return 0;
7018}
7019_ACEOF
7020if ac_fn_cxx_try_compile "$LINENO"; then :
7021  eval "$as_acx_Woption=yes"
7022else
7023  eval "$as_acx_Woption=no"
7024fi
7025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7026
7027fi
7028eval ac_res=\$$as_acx_Woption
7029	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7030$as_echo "$ac_res" >&6; }
7031  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7032  loose_warn="$loose_warn${loose_warn:+ }$real_option"
7033fi
7034  done
7035CXXFLAGS="$save_CXXFLAGS"
7036ac_ext=cpp
7037ac_cpp='$CXXCPP $CPPFLAGS'
7038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7041
7042
7043
7044ac_ext=c
7045ac_cpp='$CPP $CPPFLAGS'
7046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7048ac_compiler_gnu=$ac_cv_c_compiler_gnu
7049
7050c_loose_warn=
7051save_CFLAGS="$CFLAGS"
7052for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
7053  # Do the check with the no- prefix removed since gcc silently
7054  # accepts any -Wno-* option on purpose
7055  case $real_option in
7056    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7057    *) option=$real_option ;;
7058  esac
7059  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7060
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7062$as_echo_n "checking whether $CC supports $option... " >&6; }
7063if eval \${$as_acx_Woption+:} false; then :
7064  $as_echo_n "(cached) " >&6
7065else
7066  CFLAGS="$option"
7067    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069
7070int
7071main ()
7072{
7073
7074  ;
7075  return 0;
7076}
7077_ACEOF
7078if ac_fn_c_try_compile "$LINENO"; then :
7079  eval "$as_acx_Woption=yes"
7080else
7081  eval "$as_acx_Woption=no"
7082fi
7083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084
7085fi
7086eval ac_res=\$$as_acx_Woption
7087	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7088$as_echo "$ac_res" >&6; }
7089  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7090  c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7091fi
7092  done
7093CFLAGS="$save_CFLAGS"
7094ac_ext=cpp
7095ac_cpp='$CXXCPP $CPPFLAGS'
7096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7099
7100
7101ac_ext=cpp
7102ac_cpp='$CXXCPP $CPPFLAGS'
7103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7106
7107strict_warn=
7108save_CXXFLAGS="$CXXFLAGS"
7109for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
7110  # Do the check with the no- prefix removed since gcc silently
7111  # accepts any -Wno-* option on purpose
7112  case $real_option in
7113    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7114    *) option=$real_option ;;
7115  esac
7116  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7117
7118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7119$as_echo_n "checking whether $CXX supports $option... " >&6; }
7120if eval \${$as_acx_Woption+:} false; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123  CXXFLAGS="$option"
7124    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125/* end confdefs.h.  */
7126
7127int
7128main ()
7129{
7130
7131  ;
7132  return 0;
7133}
7134_ACEOF
7135if ac_fn_cxx_try_compile "$LINENO"; then :
7136  eval "$as_acx_Woption=yes"
7137else
7138  eval "$as_acx_Woption=no"
7139fi
7140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141
7142fi
7143eval ac_res=\$$as_acx_Woption
7144	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7145$as_echo "$ac_res" >&6; }
7146  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7147  strict_warn="$strict_warn${strict_warn:+ }$real_option"
7148fi
7149  done
7150CXXFLAGS="$save_CXXFLAGS"
7151ac_ext=cpp
7152ac_cpp='$CXXCPP $CPPFLAGS'
7153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7156
7157
7158ac_ext=c
7159ac_cpp='$CPP $CPPFLAGS'
7160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7162ac_compiler_gnu=$ac_cv_c_compiler_gnu
7163
7164c_strict_warn=
7165save_CFLAGS="$CFLAGS"
7166for real_option in -Wold-style-definition -Wc++-compat; do
7167  # Do the check with the no- prefix removed since gcc silently
7168  # accepts any -Wno-* option on purpose
7169  case $real_option in
7170    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7171    *) option=$real_option ;;
7172  esac
7173  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7174
7175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7176$as_echo_n "checking whether $CC supports $option... " >&6; }
7177if eval \${$as_acx_Woption+:} false; then :
7178  $as_echo_n "(cached) " >&6
7179else
7180  CFLAGS="$option"
7181    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182/* end confdefs.h.  */
7183
7184int
7185main ()
7186{
7187
7188  ;
7189  return 0;
7190}
7191_ACEOF
7192if ac_fn_c_try_compile "$LINENO"; then :
7193  eval "$as_acx_Woption=yes"
7194else
7195  eval "$as_acx_Woption=no"
7196fi
7197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198
7199fi
7200eval ac_res=\$$as_acx_Woption
7201	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7202$as_echo "$ac_res" >&6; }
7203  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7204  c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7205fi
7206  done
7207CFLAGS="$save_CFLAGS"
7208ac_ext=cpp
7209ac_cpp='$CXXCPP $CPPFLAGS'
7210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7213
7214
7215ac_ext=cpp
7216ac_cpp='$CXXCPP $CPPFLAGS'
7217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7220
7221# Do the check with the no- prefix removed from the warning options
7222# since gcc silently accepts any -Wno-* option on purpose
7223if test "$GXX" = yes; then :
7224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7225$as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7226if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7227  $as_echo_n "(cached) " >&6
7228else
7229  save_CXXFLAGS="$CXXFLAGS"
7230CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233
7234int
7235main ()
7236{
7237
7238  ;
7239  return 0;
7240}
7241_ACEOF
7242if ac_fn_cxx_try_compile "$LINENO"; then :
7243  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7244else
7245  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7246fi
7247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248CXXFLAGS="$save_CXXFLAGS"
7249fi
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7251$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7252if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7253  strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7254fi
7255
7256fi
7257ac_ext=cpp
7258ac_cpp='$CXXCPP $CPPFLAGS'
7259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7262
7263
7264ac_ext=cpp
7265ac_cpp='$CXXCPP $CPPFLAGS'
7266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7269
7270# Check whether --enable-werror-always was given.
7271if test "${enable_werror_always+set}" = set; then :
7272  enableval=$enable_werror_always;
7273else
7274  enable_werror_always=no
7275fi
7276
7277if test $enable_werror_always = yes; then :
7278  strict_warn="$strict_warn${strict_warn:+ }-Werror"
7279fi
7280
7281ac_ext=cpp
7282ac_cpp='$CXXCPP $CPPFLAGS'
7283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7286
7287
7288
7289# The above macros do nothing if the compiler is not GCC.  However, the
7290# Makefile has more goo to add other flags, so these variables are used
7291# to enable warnings only for GCC.
7292warn_cflags=
7293warn_cxxflags=
7294if test "x$GCC" = "xyes"; then
7295  warn_cflags='$(GCC_WARN_CFLAGS)'
7296  warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7297fi
7298
7299
7300
7301# Disable exceptions and RTTI if building with g++
7302ac_ext=c
7303ac_cpp='$CPP $CPPFLAGS'
7304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306ac_compiler_gnu=$ac_cv_c_compiler_gnu
7307
7308noexception_flags=
7309save_CFLAGS="$CFLAGS"
7310for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7311  # Do the check with the no- prefix removed since gcc silently
7312  # accepts any -Wno-* option on purpose
7313  case $real_option in
7314    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7315    *) option=$real_option ;;
7316  esac
7317  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7318
7319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7320$as_echo_n "checking whether $CC supports $option... " >&6; }
7321if eval \${$as_acx_Woption+:} false; then :
7322  $as_echo_n "(cached) " >&6
7323else
7324  CFLAGS="$option"
7325    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326/* end confdefs.h.  */
7327
7328int
7329main ()
7330{
7331
7332  ;
7333  return 0;
7334}
7335_ACEOF
7336if ac_fn_c_try_compile "$LINENO"; then :
7337  eval "$as_acx_Woption=yes"
7338else
7339  eval "$as_acx_Woption=no"
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342
7343fi
7344eval ac_res=\$$as_acx_Woption
7345	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7346$as_echo "$ac_res" >&6; }
7347  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7348  noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7349fi
7350  done
7351CFLAGS="$save_CFLAGS"
7352ac_ext=cpp
7353ac_cpp='$CXXCPP $CPPFLAGS'
7354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7357
7358
7359
7360# Enable expensive internal checks
7361is_release=
7362if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7363  is_release=yes
7364fi
7365
7366# Check whether --enable-checking was given.
7367if test "${enable_checking+set}" = set; then :
7368  enableval=$enable_checking; ac_checking_flags="${enableval}"
7369else
7370
7371# Determine the default checks.
7372if test x$is_release = x ; then
7373  ac_checking_flags=yes,extra
7374else
7375  ac_checking_flags=release
7376fi
7377fi
7378
7379IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
7380for check in release $ac_checking_flags
7381do
7382	case $check in
7383	# these set all the flags to specific states
7384	yes)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7385			ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7386			ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7387			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7388			ac_tree_checking=1 ; ac_valgrind_checking= ;
7389			ac_types_checking=1 ;;
7390	no|none)	ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7391			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7392			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7393			ac_rtlflag_checking= ; ac_runtime_checking= ;
7394			ac_tree_checking= ; ac_valgrind_checking= ;
7395			ac_types_checking= ;;
7396	all)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7397			ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7398			ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7399			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7400			ac_tree_checking=1 ; ac_valgrind_checking= ;
7401			ac_types_checking=1 ;;
7402	release)	ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7403			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7404			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7405			ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7406			ac_tree_checking= ; ac_valgrind_checking= ;
7407			ac_types_checking= ;;
7408	# these enable particular checks
7409	assert) 	ac_assert_checking=1 ;;
7410	df)		ac_df_checking=1 ;;
7411	extra)		ac_extra_checking=1 ;;
7412	fold)		ac_fold_checking=1 ;;
7413	gc)		ac_gc_checking=1 ;;
7414	gcac)		ac_gc_always_collect=1 ;;
7415	gimple)		ac_gimple_checking=1 ;;
7416	misc)		ac_checking=1 ;;
7417	rtl)		ac_rtl_checking=1 ;;
7418	rtlflag)	ac_rtlflag_checking=1 ;;
7419	runtime)	ac_runtime_checking=1 ;;
7420	tree)		ac_tree_checking=1 ;;
7421	types)		ac_types_checking=1 ;;
7422	valgrind)	ac_valgrind_checking=1 ;;
7423	*)	as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7424	esac
7425done
7426IFS="$ac_save_IFS"
7427
7428nocommon_flag=""
7429if test x$ac_checking != x ; then
7430
7431$as_echo "#define CHECKING_P 1" >>confdefs.h
7432
7433  nocommon_flag=-fno-common
7434else
7435  $as_echo "#define CHECKING_P 0" >>confdefs.h
7436
7437fi
7438
7439if test x$ac_extra_checking != x ; then
7440
7441$as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7442
7443else
7444  $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7445
7446fi
7447if test x$ac_df_checking != x ; then
7448
7449$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7450
7451fi
7452if test x$ac_assert_checking != x ; then
7453
7454$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7455
7456fi
7457if test x$ac_gimple_checking != x ; then
7458
7459$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7460
7461fi
7462
7463if test x$ac_runtime_checking != x ; then
7464
7465$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7466
7467fi
7468if test x$ac_tree_checking != x ; then
7469
7470$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7471
7472  TREECHECKING=yes
7473fi
7474if test x$ac_types_checking != x ; then
7475
7476$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7477
7478fi
7479
7480if test x$ac_rtl_checking != x ; then
7481
7482$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7483
7484fi
7485if test x$ac_rtlflag_checking != x ; then
7486
7487$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7488
7489fi
7490if test x$ac_gc_checking != x ; then
7491
7492$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7493
7494fi
7495if test x$ac_gc_always_collect != x ; then
7496
7497$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7498
7499fi
7500if test x$ac_fold_checking != x ; then
7501
7502$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7503
7504fi
7505valgrind_path_defines=
7506valgrind_command=
7507
7508ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7509if test "x$ac_cv_header_valgrind_h" = xyes; then :
7510  have_valgrind_h=yes
7511else
7512  have_valgrind_h=no
7513fi
7514
7515
7516
7517# It is certainly possible that there's valgrind but no valgrind.h.
7518# GCC relies on making annotations so we must have both.
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7520$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522/* end confdefs.h.  */
7523#include <valgrind/memcheck.h>
7524#ifndef VALGRIND_DISCARD
7525#error VALGRIND_DISCARD not defined
7526#endif
7527_ACEOF
7528if ac_fn_cxx_try_cpp "$LINENO"; then :
7529  gcc_cv_header_valgrind_memcheck_h=yes
7530else
7531  gcc_cv_header_valgrind_memcheck_h=no
7532fi
7533rm -f conftest.err conftest.i conftest.$ac_ext
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7535$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7537$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539/* end confdefs.h.  */
7540#include <memcheck.h>
7541#ifndef VALGRIND_DISCARD
7542#error VALGRIND_DISCARD not defined
7543#endif
7544_ACEOF
7545if ac_fn_cxx_try_cpp "$LINENO"; then :
7546  gcc_cv_header_memcheck_h=yes
7547else
7548  gcc_cv_header_memcheck_h=no
7549fi
7550rm -f conftest.err conftest.i conftest.$ac_ext
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7552$as_echo "$gcc_cv_header_memcheck_h" >&6; }
7553if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7554
7555$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7556
7557fi
7558if test $gcc_cv_header_memcheck_h = yes; then
7559
7560$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7561
7562fi
7563
7564if test x$ac_valgrind_checking != x ; then
7565
7566# Prepare PATH_SEPARATOR.
7567# The user is always right.
7568if test "${PATH_SEPARATOR+set}" != set; then
7569  echo "#! /bin/sh" >conf$$.sh
7570  echo  "exit 0"   >>conf$$.sh
7571  chmod +x conf$$.sh
7572  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7573    PATH_SEPARATOR=';'
7574  else
7575    PATH_SEPARATOR=:
7576  fi
7577  rm -f conf$$.sh
7578fi
7579
7580# Find out how to test for executable files. Don't use a zero-byte file,
7581# as systems may use methods other than mode bits to determine executability.
7582cat >conf$$.file <<_ASEOF
7583#! /bin/sh
7584exit 0
7585_ASEOF
7586chmod +x conf$$.file
7587if test -x conf$$.file >/dev/null 2>&1; then
7588  ac_executable_p="test -x"
7589else
7590  ac_executable_p="test -f"
7591fi
7592rm -f conf$$.file
7593
7594# Extract the first word of "valgrind", so it can be a program name with args.
7595set dummy valgrind; ac_word=$2
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597$as_echo_n "checking for $ac_word... " >&6; }
7598if ${ac_cv_path_valgrind_path+:} false; then :
7599  $as_echo_n "(cached) " >&6
7600else
7601  case "$valgrind_path" in
7602  [\\/]* | ?:[\\/]*)
7603    ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7604    ;;
7605  *)
7606    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7607    for ac_dir in $PATH; do
7608      IFS="$ac_save_IFS"
7609      test -z "$ac_dir" && ac_dir=.
7610      for ac_exec_ext in '' $ac_executable_extensions; do
7611        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7612          if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7613            ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7614            break 2
7615          fi
7616        fi
7617      done
7618    done
7619    IFS="$ac_save_IFS"
7620    ;;
7621esac
7622fi
7623valgrind_path="$ac_cv_path_valgrind_path"
7624if test -n "$valgrind_path"; then
7625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7626$as_echo "$valgrind_path" >&6; }
7627else
7628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629$as_echo "no" >&6; }
7630fi
7631
7632  if test "x$valgrind_path" = "x" \
7633    || (test $have_valgrind_h = no \
7634	&& test $gcc_cv_header_memcheck_h = no \
7635	&& test $gcc_cv_header_valgrind_memcheck_h = no); then
7636	as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7637  fi
7638  valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7639  valgrind_command="$valgrind_path -q"
7640
7641$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7642
7643fi
7644
7645
7646
7647# Enable code coverage collection
7648# Check whether --enable-coverage was given.
7649if test "${enable_coverage+set}" = set; then :
7650  enableval=$enable_coverage; case "${enableval}" in
7651  yes|noopt)
7652    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7653    ;;
7654  opt)
7655    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7656    ;;
7657  no)
7658    # a.k.a. --disable-coverage
7659    coverage_flags=""
7660    ;;
7661  *)
7662    as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7663    ;;
7664esac
7665else
7666  coverage_flags=""
7667fi
7668
7669
7670
7671# Check whether --enable-gather-detailed-mem-stats was given.
7672if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7673  enableval=$enable_gather_detailed_mem_stats;
7674else
7675  enable_gather_detailed_mem_stats=no
7676fi
7677
7678gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7679
7680cat >>confdefs.h <<_ACEOF
7681#define GATHER_STATISTICS $gather_stats
7682_ACEOF
7683
7684
7685# Check whether --enable-valgrind-annotations was given.
7686if test "${enable_valgrind_annotations+set}" = set; then :
7687  enableval=$enable_valgrind_annotations;
7688else
7689  enable_valgrind_annotations=no
7690fi
7691
7692if test x$enable_valgrind_annotations != xno \
7693    || test x$ac_valgrind_checking != x; then
7694  if (test $have_valgrind_h = no \
7695      && test $gcc_cv_header_memcheck_h = no \
7696      && test $gcc_cv_header_valgrind_memcheck_h = no); then
7697    as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7698  fi
7699
7700$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7701
7702fi
7703
7704# -------------------------------
7705# Miscenalleous configure options
7706# -------------------------------
7707
7708# Determine whether or not multilibs are enabled.
7709# Check whether --enable-multilib was given.
7710if test "${enable_multilib+set}" = set; then :
7711  enableval=$enable_multilib;
7712else
7713  enable_multilib=yes
7714fi
7715
7716
7717
7718# Determine whether or not multiarch is enabled.
7719# Check whether --enable-multiarch was given.
7720if test "${enable_multiarch+set}" = set; then :
7721  enableval=$enable_multiarch; case "${enableval}" in
7722yes|no|auto) enable_multiarch=$enableval;;
7723*) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7724esac
7725else
7726  enable_multiarch=auto
7727fi
7728
7729if test x${enable_multiarch} = xauto; then
7730  if test x${with_native_system_header_dir} != x; then
7731    ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7732    enable_multiarch=no
7733  fi
7734  if test x$host != x$target && test "x$with_sysroot" = x; then
7735    ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7736    enable_multiarch=no
7737  fi
7738fi
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7740$as_echo_n "checking for multiarch configuration... " >&6; }
7741
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7743$as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7744
7745# needed for setting the multiarch name for soft-float/hard-float ABIs
7746
7747
7748
7749# default stack clash protection guard size as power of twos in bytes.
7750# Please keep these in sync with params.def.
7751stk_clash_min=12
7752stk_clash_max=30
7753
7754# Keep the default value when the option is not used to 0, this allows us to
7755# distinguish between the cases where the user specifially set a value via
7756# configure and when the normal default value is used.
7757
7758# Check whether --with-stack-clash-protection-guard-size was given.
7759if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7760  withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7761else
7762  DEFAULT_STK_CLASH_GUARD_SIZE=0
7763fi
7764
7765if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7766     && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7767	 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7768  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
7769fi
7770
7771
7772cat >>confdefs.h <<_ACEOF
7773#define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7774_ACEOF
7775
7776
7777# Enable __cxa_atexit for C++.
7778# Check whether --enable-__cxa_atexit was given.
7779if test "${enable___cxa_atexit+set}" = set; then :
7780  enableval=$enable___cxa_atexit;
7781fi
7782
7783
7784# Enable C extension for decimal float if target supports it.
7785
7786# Check whether --enable-decimal-float was given.
7787if test "${enable_decimal_float+set}" = set; then :
7788  enableval=$enable_decimal_float;
7789  case $enable_decimal_float in
7790    yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7791    *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7792Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7793  esac
7794
7795else
7796
7797  case $target in
7798    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7799    i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7800    i?86*-*-mingw* | x86_64*-*-mingw* | \
7801    i?86*-*-cygwin* | x86_64*-*-cygwin*)
7802      enable_decimal_float=yes
7803      ;;
7804    *)
7805      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7806$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7807      enable_decimal_float=no
7808      ;;
7809  esac
7810
7811fi
7812
7813
7814# x86's use BID format instead of DPD
7815case x$enable_decimal_float in
7816  xyes)
7817    case $target in
7818      i?86*-*-* | x86_64*-*-*)
7819	enable_decimal_float=bid
7820	;;
7821      *)
7822	enable_decimal_float=dpd
7823	;;
7824    esac
7825    default_decimal_float=$enable_decimal_float
7826    ;;
7827  xno)
7828    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7829    # dependency on libdecnumber.
7830    default_decimal_float=dpd
7831    ;;
7832esac
7833
7834
7835
7836
7837dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7838
7839cat >>confdefs.h <<_ACEOF
7840#define ENABLE_DECIMAL_FLOAT $dfp
7841_ACEOF
7842
7843
7844# Use default_decimal_float for dependency.
7845enable_decimal_float=$default_decimal_float
7846
7847bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7848
7849cat >>confdefs.h <<_ACEOF
7850#define ENABLE_DECIMAL_BID_FORMAT $bid
7851_ACEOF
7852
7853
7854# Enable C extension for fixed-point arithmetic.
7855# Check whether --enable-fixed-point was given.
7856if test "${enable_fixed_point+set}" = set; then :
7857  enableval=$enable_fixed_point;
7858else
7859
7860  case $target in
7861    arm*)
7862      enable_fixed_point=yes
7863      ;;
7864
7865    mips*-*-*)
7866      enable_fixed_point=yes
7867      ;;
7868    *)
7869      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7870$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7871      enable_fixed_point=no
7872      ;;
7873  esac
7874
7875fi
7876
7877
7878
7879fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7880
7881cat >>confdefs.h <<_ACEOF
7882#define ENABLE_FIXED_POINT $fixedpoint
7883_ACEOF
7884
7885
7886# Enable threads
7887# Pass with no value to take the default
7888# Pass with a value to specify a thread package
7889# Check whether --enable-threads was given.
7890if test "${enable_threads+set}" = set; then :
7891  enableval=$enable_threads;
7892else
7893  enable_threads=''
7894fi
7895
7896
7897# Check whether --enable-tls was given.
7898if test "${enable_tls+set}" = set; then :
7899  enableval=$enable_tls;
7900  case $enable_tls in
7901    yes | no) ;;
7902    *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7903Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7904  esac
7905
7906else
7907  enable_tls=''
7908fi
7909
7910
7911# Check whether --enable-vtable-verify was given.
7912if test "${enable_vtable_verify+set}" = set; then :
7913  enableval=$enable_vtable_verify;
7914else
7915  enable_vtable_verify=no
7916fi
7917
7918vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7919
7920cat >>confdefs.h <<_ACEOF
7921#define ENABLE_VTABLE_VERIFY $vtable_verify
7922_ACEOF
7923
7924
7925# Check whether --enable-analyzer was given.
7926if test "${enable_analyzer+set}" = set; then :
7927  enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7928	analyzer=0
7929else
7930	analyzer=1
7931fi
7932else
7933  analyzer=1
7934fi
7935
7936
7937cat >>confdefs.h <<_ACEOF
7938#define ENABLE_ANALYZER $analyzer
7939_ACEOF
7940
7941
7942# Check whether --enable-objc-gc was given.
7943if test "${enable_objc_gc+set}" = set; then :
7944  enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7945	objc_boehm_gc=''
7946else
7947	objc_boehm_gc=1
7948fi
7949else
7950  objc_boehm_gc=''
7951fi
7952
7953
7954
7955# Check whether --with-dwarf2 was given.
7956if test "${with_dwarf2+set}" = set; then :
7957  withval=$with_dwarf2; dwarf2="$with_dwarf2"
7958else
7959  dwarf2=no
7960fi
7961
7962
7963# Check whether --enable-shared was given.
7964if test "${enable_shared+set}" = set; then :
7965  enableval=$enable_shared;
7966  case $enable_shared in
7967  yes | no) ;;
7968  *)
7969    enable_shared=no
7970    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7971    for pkg in $enableval; do
7972      if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7973        enable_shared=yes
7974      fi
7975    done
7976    IFS="$ac_save_ifs"
7977    ;;
7978  esac
7979
7980else
7981  enable_shared=yes
7982fi
7983
7984
7985
7986# Check whether --enable-gcov was given.
7987if test "${enable_gcov+set}" = set; then :
7988  enableval=$enable_gcov;
7989else
7990  enable_gcov=yes
7991fi
7992
7993
7994
7995
7996# Check whether --with-specs was given.
7997if test "${with_specs+set}" = set; then :
7998  withval=$with_specs; CONFIGURE_SPECS=$withval
7999else
8000  CONFIGURE_SPECS=
8001
8002fi
8003
8004
8005
8006
8007
8008# Check whether --with-pkgversion was given.
8009if test "${with_pkgversion+set}" = set; then :
8010  withval=$with_pkgversion; case "$withval" in
8011      yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8012      no)  PKGVERSION= ;;
8013      *)   PKGVERSION="($withval) " ;;
8014     esac
8015else
8016  PKGVERSION="(GCC) "
8017
8018fi
8019
8020
8021
8022
8023
8024# Check whether --with-bugurl was given.
8025if test "${with_bugurl+set}" = set; then :
8026  withval=$with_bugurl; case "$withval" in
8027      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8028      no)  BUGURL=
8029	   ;;
8030      *)   BUGURL="$withval"
8031	   ;;
8032     esac
8033else
8034  BUGURL="https://gcc.gnu.org/bugs/"
8035
8036fi
8037
8038  case ${BUGURL} in
8039  "")
8040    REPORT_BUGS_TO=
8041    REPORT_BUGS_TEXI=
8042    ;;
8043  *)
8044    REPORT_BUGS_TO="<$BUGURL>"
8045    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8046    ;;
8047  esac;
8048
8049
8050
8051
8052# Allow overriding the default URL for documentation
8053
8054# Check whether --with-documentation-root-url was given.
8055if test "${with_documentation_root_url+set}" = set; then :
8056  withval=$with_documentation_root_url; case "$withval" in
8057      yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8058      no)  as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8059      */)  DOCUMENTATION_ROOT_URL="$withval" ;;
8060      *)   as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8061     esac
8062else
8063  DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8064
8065fi
8066
8067
8068cat >>confdefs.h <<_ACEOF
8069#define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8070_ACEOF
8071
8072
8073# Allow overriding the default URL for GCC changes
8074
8075# Check whether --with-changes-root-url was given.
8076if test "${with_changes_root_url+set}" = set; then :
8077  withval=$with_changes_root_url; case "$withval" in
8078      yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8079      no)  as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8080      */)  CHANGES_ROOT_URL="$withval" ;;
8081      *)   as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8082     esac
8083else
8084  CHANGES_ROOT_URL="https://gcc.gnu.org/"
8085
8086fi
8087
8088
8089cat >>confdefs.h <<_ACEOF
8090#define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8091_ACEOF
8092
8093
8094# Sanity check enable_languages in case someone does not run the toplevel
8095# configure # script.
8096# Check whether --enable-languages was given.
8097if test "${enable_languages+set}" = set; then :
8098  enableval=$enable_languages; case ,${enable_languages}, in
8099       ,,|,yes,)
8100		# go safe -- we cannot be much sure without the toplevel
8101		# configure's
8102		# analysis of which target libs are present and usable
8103		enable_languages=c
8104		;;
8105	 *,all,*)
8106		as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8107		;;
8108	*,c,*)
8109		;;
8110        *)
8111		enable_languages=c,${enable_languages}
8112		;;
8113esac
8114else
8115  enable_languages=c
8116fi
8117
8118
8119# If top-level libada has been disabled, then wire in install-gnatlib
8120# invocation with `make install', so that one can build and install
8121# the library manually with `make -C gcc all gnatlib gnattools install'.
8122if test x"$enable_libada" = xno; then
8123  gnat_install_lib=gnat-install-lib
8124else
8125  gnat_install_lib=
8126fi
8127
8128
8129if test x"$enable_as_accelerator_for" != x; then
8130
8131$as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8132
8133  enable_as_accelerator=yes
8134  case "${target}" in
8135    *-intelmicemul-*)
8136      # In this case we expect offload compiler to be built as native, so we
8137      # need to rename the driver to avoid clashes with host's drivers.
8138      program_transform_name="s&^&${target}-&" ;;
8139  esac
8140  sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8141  program_transform_name=`echo $program_transform_name | sed $sedscript`
8142  accel_dir_suffix=/accel/${target_noncanonical}
8143  real_target_noncanonical=${enable_as_accelerator_for}
8144fi
8145
8146
8147
8148
8149for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8150  tgt=`echo $tgt | sed 's/=.*//'`
8151
8152  enable_offloading=1
8153  case "$tgt" in
8154    *-intelmic-* | *-intelmicemul-*)
8155  	omp_device_property=omp-device-properties-i386
8156  	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8157  	;;
8158    amdgcn*)
8159  	omp_device_property=omp-device-properties-gcn
8160  	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8161  	;;
8162    nvptx*)
8163  	omp_device_property=omp-device-properties-nvptx
8164  	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8165  	;;
8166    *)
8167  	as_fn_error $? "unknown offload target specified" "$LINENO" 5
8168  	;;
8169  esac
8170  omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8171  omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8172
8173  if test x"$offload_targets" = x; then
8174    offload_targets=$tgt
8175  else
8176    offload_targets="$offload_targets,$tgt"
8177  fi
8178done
8179
8180
8181
8182
8183cat >>confdefs.h <<_ACEOF
8184#define OFFLOAD_TARGETS "$offload_targets"
8185_ACEOF
8186
8187if test x"$enable_offloading" != x; then
8188
8189$as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8190
8191else
8192
8193$as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8194
8195fi
8196
8197if test "x$enable_offload_defaulted" = xyes; then
8198
8199$as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8200
8201fi
8202
8203
8204# Check whether --with-multilib-list was given.
8205if test "${with_multilib_list+set}" = set; then :
8206  withval=$with_multilib_list; :
8207else
8208  with_multilib_list=default
8209fi
8210
8211
8212
8213# Check whether --with-multilib-generator was given.
8214if test "${with_multilib_generator+set}" = set; then :
8215  withval=$with_multilib_generator; :
8216else
8217  with_multilib_generator=default
8218fi
8219
8220
8221# -------------------------
8222# Checks for other programs
8223# -------------------------
8224
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8226$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8227set x ${MAKE-make}
8228ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8229if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8230  $as_echo_n "(cached) " >&6
8231else
8232  cat >conftest.make <<\_ACEOF
8233SHELL = /bin/sh
8234all:
8235	@echo '@@@%%%=$(MAKE)=@@@%%%'
8236_ACEOF
8237# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8238case `${MAKE-make} -f conftest.make 2>/dev/null` in
8239  *@@@%%%=?*=@@@%%%*)
8240    eval ac_cv_prog_make_${ac_make}_set=yes;;
8241  *)
8242    eval ac_cv_prog_make_${ac_make}_set=no;;
8243esac
8244rm -f conftest.make
8245fi
8246if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8248$as_echo "yes" >&6; }
8249  SET_MAKE=
8250else
8251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252$as_echo "no" >&6; }
8253  SET_MAKE="MAKE=${MAKE-make}"
8254fi
8255
8256
8257# Find some useful tools
8258for ac_prog in gawk mawk nawk awk
8259do
8260  # Extract the first word of "$ac_prog", so it can be a program name with args.
8261set dummy $ac_prog; ac_word=$2
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263$as_echo_n "checking for $ac_word... " >&6; }
8264if ${ac_cv_prog_AWK+:} false; then :
8265  $as_echo_n "(cached) " >&6
8266else
8267  if test -n "$AWK"; then
8268  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8269else
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273  IFS=$as_save_IFS
8274  test -z "$as_dir" && as_dir=.
8275    for ac_exec_ext in '' $ac_executable_extensions; do
8276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277    ac_cv_prog_AWK="$ac_prog"
8278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279    break 2
8280  fi
8281done
8282  done
8283IFS=$as_save_IFS
8284
8285fi
8286fi
8287AWK=$ac_cv_prog_AWK
8288if test -n "$AWK"; then
8289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8290$as_echo "$AWK" >&6; }
8291else
8292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293$as_echo "no" >&6; }
8294fi
8295
8296
8297  test -n "$AWK" && break
8298done
8299
8300# We need awk to create options.c and options.h.
8301# Bail out if it's missing.
8302case ${AWK} in
8303  "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8304esac
8305
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8307$as_echo_n "checking whether ln -s works... " >&6; }
8308if ${gcc_cv_prog_LN_S+:} false; then :
8309  $as_echo_n "(cached) " >&6
8310else
8311  rm -f conftestdata_t
8312echo >conftestdata_f
8313if ln -s conftestdata_f conftestdata_t 2>/dev/null
8314then
8315  gcc_cv_prog_LN_S="ln -s"
8316else
8317  if ln conftestdata_f conftestdata_t 2>/dev/null
8318  then
8319    gcc_cv_prog_LN_S=ln
8320  else
8321    if cp -p conftestdata_f conftestdata_t 2>/dev/null
8322    then
8323      gcc_cv_prog_LN_S="cp -p"
8324    else
8325      gcc_cv_prog_LN_S=cp
8326    fi
8327  fi
8328fi
8329rm -f conftestdata_f conftestdata_t
8330
8331fi
8332LN_S="$gcc_cv_prog_LN_S"
8333if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8335$as_echo "yes" >&6; }
8336else
8337  if test "$gcc_cv_prog_LN_S" = "ln"; then
8338    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8339$as_echo "no, using ln" >&6; }
8340  else
8341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8342$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8343  fi
8344fi
8345
8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8347$as_echo_n "checking whether ln works... " >&6; }
8348if ${acx_cv_prog_LN+:} false; then :
8349  $as_echo_n "(cached) " >&6
8350else
8351  rm -f conftestdata_t
8352echo >conftestdata_f
8353if ln conftestdata_f conftestdata_t 2>/dev/null
8354then
8355  acx_cv_prog_LN=ln
8356else
8357  acx_cv_prog_LN=no
8358fi
8359rm -f conftestdata_f conftestdata_t
8360
8361fi
8362if test $acx_cv_prog_LN = no; then
8363  LN="$LN_S"
8364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8365$as_echo "no, using $LN" >&6; }
8366else
8367  LN="$acx_cv_prog_LN"
8368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8369$as_echo "yes" >&6; }
8370fi
8371
8372if test -n "$ac_tool_prefix"; then
8373  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8374set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376$as_echo_n "checking for $ac_word... " >&6; }
8377if ${ac_cv_prog_RANLIB+:} false; then :
8378  $as_echo_n "(cached) " >&6
8379else
8380  if test -n "$RANLIB"; then
8381  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8382else
8383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384for as_dir in $PATH
8385do
8386  IFS=$as_save_IFS
8387  test -z "$as_dir" && as_dir=.
8388    for ac_exec_ext in '' $ac_executable_extensions; do
8389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8390    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392    break 2
8393  fi
8394done
8395  done
8396IFS=$as_save_IFS
8397
8398fi
8399fi
8400RANLIB=$ac_cv_prog_RANLIB
8401if test -n "$RANLIB"; then
8402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8403$as_echo "$RANLIB" >&6; }
8404else
8405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406$as_echo "no" >&6; }
8407fi
8408
8409
8410fi
8411if test -z "$ac_cv_prog_RANLIB"; then
8412  ac_ct_RANLIB=$RANLIB
8413  # Extract the first word of "ranlib", so it can be a program name with args.
8414set dummy ranlib; ac_word=$2
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416$as_echo_n "checking for $ac_word... " >&6; }
8417if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8418  $as_echo_n "(cached) " >&6
8419else
8420  if test -n "$ac_ct_RANLIB"; then
8421  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8422else
8423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424for as_dir in $PATH
8425do
8426  IFS=$as_save_IFS
8427  test -z "$as_dir" && as_dir=.
8428    for ac_exec_ext in '' $ac_executable_extensions; do
8429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8430    ac_cv_prog_ac_ct_RANLIB="ranlib"
8431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432    break 2
8433  fi
8434done
8435  done
8436IFS=$as_save_IFS
8437
8438fi
8439fi
8440ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8441if test -n "$ac_ct_RANLIB"; then
8442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8443$as_echo "$ac_ct_RANLIB" >&6; }
8444else
8445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446$as_echo "no" >&6; }
8447fi
8448
8449  if test "x$ac_ct_RANLIB" = x; then
8450    RANLIB=":"
8451  else
8452    case $cross_compiling:$ac_tool_warned in
8453yes:)
8454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8456ac_tool_warned=yes ;;
8457esac
8458    RANLIB=$ac_ct_RANLIB
8459  fi
8460else
8461  RANLIB="$ac_cv_prog_RANLIB"
8462fi
8463
8464ranlib_flags=""
8465
8466
8467# Find a good install program.  We prefer a C program (faster),
8468# so one script is as good as another.  But avoid the broken or
8469# incompatible versions:
8470# SysV /etc/install, /usr/sbin/install
8471# SunOS /usr/etc/install
8472# IRIX /sbin/install
8473# AIX /bin/install
8474# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8475# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8476# ./install, which can be erroneously created by make from ./install.sh.
8477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8478$as_echo_n "checking for a BSD compatible install... " >&6; }
8479if test -z "$INSTALL"; then
8480if ${ac_cv_path_install+:} false; then :
8481  $as_echo_n "(cached) " >&6
8482else
8483    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8484  for ac_dir in $PATH; do
8485    # Account for people who put trailing slashes in PATH elements.
8486    case "$ac_dir/" in
8487    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8488    *)
8489      # OSF1 and SCO ODT 3.0 have their own names for install.
8490      for ac_prog in ginstall scoinst install; do
8491        if test -f $ac_dir/$ac_prog; then
8492	  if test $ac_prog = install &&
8493            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8494	    # AIX install.  It has an incompatible calling convention.
8495	    # OSF/1 installbsd also uses dspmsg, but is usable.
8496	    :
8497	  else
8498	    ac_cv_path_install="$ac_dir/$ac_prog -c"
8499	    break 2
8500	  fi
8501	fi
8502      done
8503      ;;
8504    esac
8505  done
8506  IFS="$ac_save_IFS"
8507
8508fi
8509  if test "${ac_cv_path_install+set}" = set; then
8510    INSTALL="$ac_cv_path_install"
8511  else
8512    # As a last resort, use the slow shell script.  We don't cache a
8513    # path for INSTALL within a source directory, because that will
8514    # break other packages using the cache if that directory is
8515    # removed, or if the path is relative.
8516    INSTALL="$ac_install_sh"
8517  fi
8518fi
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8520$as_echo "$INSTALL" >&6; }
8521
8522# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8523# It thinks the first close brace ends the variable substitution.
8524test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8525
8526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8527
8528
8529# See if cmp has --ignore-initial.
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8531$as_echo_n "checking for cmp's capabilities... " >&6; }
8532if ${gcc_cv_prog_cmp_skip+:} false; then :
8533  $as_echo_n "(cached) " >&6
8534else
8535   echo abfoo >t1
8536  echo cdfoo >t2
8537  gcc_cv_prog_cmp_skip=slowcompare
8538  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8539    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8540      :
8541    else
8542      gcc_cv_prog_cmp_skip=gnucompare
8543    fi
8544  fi
8545  if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8546    if cmp t1 t2 2 2 > /dev/null 2>&1; then
8547      if cmp t1 t2 1 1 > /dev/null 2>&1; then
8548        :
8549      else
8550        gcc_cv_prog_cmp_skip=fastcompare
8551      fi
8552    fi
8553  fi
8554  rm t1 t2
8555
8556fi
8557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8558$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8559make_compare_target=$gcc_cv_prog_cmp_skip
8560
8561
8562
8563# See if we have the mktemp command.
8564# Extract the first word of "mktemp", so it can be a program name with args.
8565set dummy mktemp; ac_word=$2
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567$as_echo_n "checking for $ac_word... " >&6; }
8568if ${ac_cv_prog_have_mktemp_command+:} false; then :
8569  $as_echo_n "(cached) " >&6
8570else
8571  if test -n "$have_mktemp_command"; then
8572  ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8573else
8574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575for as_dir in $PATH
8576do
8577  IFS=$as_save_IFS
8578  test -z "$as_dir" && as_dir=.
8579    for ac_exec_ext in '' $ac_executable_extensions; do
8580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8581    ac_cv_prog_have_mktemp_command="yes"
8582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583    break 2
8584  fi
8585done
8586  done
8587IFS=$as_save_IFS
8588
8589  test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8590fi
8591fi
8592have_mktemp_command=$ac_cv_prog_have_mktemp_command
8593if test -n "$have_mktemp_command"; then
8594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8595$as_echo "$have_mktemp_command" >&6; }
8596else
8597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598$as_echo "no" >&6; }
8599fi
8600
8601
8602
8603# See if makeinfo has been installed and is modern enough
8604# that we can use it.
8605
8606  # Extract the first word of "makeinfo", so it can be a program name with args.
8607set dummy makeinfo; ac_word=$2
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
8610if ${ac_cv_prog_MAKEINFO+:} false; then :
8611  $as_echo_n "(cached) " >&6
8612else
8613  if test -n "$MAKEINFO"; then
8614  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8615else
8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619  IFS=$as_save_IFS
8620  test -z "$as_dir" && as_dir=.
8621    for ac_exec_ext in '' $ac_executable_extensions; do
8622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8623    ac_cv_prog_MAKEINFO="makeinfo"
8624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625    break 2
8626  fi
8627done
8628  done
8629IFS=$as_save_IFS
8630
8631fi
8632fi
8633MAKEINFO=$ac_cv_prog_MAKEINFO
8634if test -n "$MAKEINFO"; then
8635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8636$as_echo "$MAKEINFO" >&6; }
8637else
8638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639$as_echo "no" >&6; }
8640fi
8641
8642
8643  if test -n "$MAKEINFO"; then
8644    # Found it, now check the version.
8645    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8646$as_echo_n "checking for modern makeinfo... " >&6; }
8647if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8648  $as_echo_n "(cached) " >&6
8649else
8650  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8651                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8652
8653                    case $ac_prog_version in
8654                      '')  gcc_cv_prog_makeinfo_modern=no;;
8655                      4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8656                      *)   gcc_cv_prog_makeinfo_modern=no;;
8657                    esac
8658
8659fi
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8661$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8662  else
8663    gcc_cv_prog_makeinfo_modern=no
8664  fi
8665  if test $gcc_cv_prog_makeinfo_modern = no; then
8666    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8667  fi
8668
8669if test $gcc_cv_prog_makeinfo_modern = no; then
8670  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8671*** Makeinfo is missing or too old.
8672*** Info documentation will not be built." >&5
8673$as_echo "$as_me: WARNING:
8674*** Makeinfo is missing or too old.
8675*** Info documentation will not be built." >&2;}
8676  BUILD_INFO=
8677else
8678  BUILD_INFO=info
8679fi
8680
8681
8682# Is pod2man recent enough to regenerate manpages?
8683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8684$as_echo_n "checking for recent Pod::Man... " >&6; }
8685if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8687$as_echo "yes" >&6; }
8688  GENERATED_MANPAGES=generated-manpages
8689else
8690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691$as_echo "no" >&6; }
8692  GENERATED_MANPAGES=
8693fi
8694
8695
8696MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8697
8698# How about lex?
8699for ac_prog in flex
8700do
8701  # Extract the first word of "$ac_prog", so it can be a program name with args.
8702set dummy $ac_prog; ac_word=$2
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704$as_echo_n "checking for $ac_word... " >&6; }
8705if ${ac_cv_prog_FLEX+:} false; then :
8706  $as_echo_n "(cached) " >&6
8707else
8708  if test -n "$FLEX"; then
8709  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8710else
8711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712for as_dir in $PATH
8713do
8714  IFS=$as_save_IFS
8715  test -z "$as_dir" && as_dir=.
8716    for ac_exec_ext in '' $ac_executable_extensions; do
8717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8718    ac_cv_prog_FLEX="$ac_prog"
8719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8720    break 2
8721  fi
8722done
8723  done
8724IFS=$as_save_IFS
8725
8726fi
8727fi
8728FLEX=$ac_cv_prog_FLEX
8729if test -n "$FLEX"; then
8730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8731$as_echo "$FLEX" >&6; }
8732else
8733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734$as_echo "no" >&6; }
8735fi
8736
8737
8738  test -n "$FLEX" && break
8739done
8740test -n "$FLEX" || FLEX="$MISSING flex"
8741
8742
8743# Bison?
8744for ac_prog in bison
8745do
8746  # Extract the first word of "$ac_prog", so it can be a program name with args.
8747set dummy $ac_prog; ac_word=$2
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749$as_echo_n "checking for $ac_word... " >&6; }
8750if ${ac_cv_prog_BISON+:} false; then :
8751  $as_echo_n "(cached) " >&6
8752else
8753  if test -n "$BISON"; then
8754  ac_cv_prog_BISON="$BISON" # Let the user override the test.
8755else
8756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757for as_dir in $PATH
8758do
8759  IFS=$as_save_IFS
8760  test -z "$as_dir" && as_dir=.
8761    for ac_exec_ext in '' $ac_executable_extensions; do
8762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763    ac_cv_prog_BISON="$ac_prog"
8764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765    break 2
8766  fi
8767done
8768  done
8769IFS=$as_save_IFS
8770
8771fi
8772fi
8773BISON=$ac_cv_prog_BISON
8774if test -n "$BISON"; then
8775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8776$as_echo "$BISON" >&6; }
8777else
8778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779$as_echo "no" >&6; }
8780fi
8781
8782
8783  test -n "$BISON" && break
8784done
8785test -n "$BISON" || BISON="$MISSING bison"
8786
8787
8788# Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8789# check for build == host before using them.
8790
8791# NM
8792if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8793  && test -d ../binutils ; then
8794  NM='${objdir}/../binutils/nm-new'
8795else
8796  # Extract the first word of "nm", so it can be a program name with args.
8797set dummy nm; ac_word=$2
8798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799$as_echo_n "checking for $ac_word... " >&6; }
8800if ${ac_cv_prog_NM+:} false; then :
8801  $as_echo_n "(cached) " >&6
8802else
8803  if test -n "$NM"; then
8804  ac_cv_prog_NM="$NM" # Let the user override the test.
8805else
8806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $PATH
8808do
8809  IFS=$as_save_IFS
8810  test -z "$as_dir" && as_dir=.
8811    for ac_exec_ext in '' $ac_executable_extensions; do
8812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813    ac_cv_prog_NM="nm"
8814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815    break 2
8816  fi
8817done
8818  done
8819IFS=$as_save_IFS
8820
8821  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8822fi
8823fi
8824NM=$ac_cv_prog_NM
8825if test -n "$NM"; then
8826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8827$as_echo "$NM" >&6; }
8828else
8829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830$as_echo "no" >&6; }
8831fi
8832
8833
8834fi
8835
8836# AR
8837if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8838  && test -d ../binutils ; then
8839  AR='${objdir}/../binutils/ar'
8840else
8841  # Extract the first word of "ar", so it can be a program name with args.
8842set dummy ar; ac_word=$2
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844$as_echo_n "checking for $ac_word... " >&6; }
8845if ${ac_cv_prog_AR+:} false; then :
8846  $as_echo_n "(cached) " >&6
8847else
8848  if test -n "$AR"; then
8849  ac_cv_prog_AR="$AR" # Let the user override the test.
8850else
8851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852for as_dir in $PATH
8853do
8854  IFS=$as_save_IFS
8855  test -z "$as_dir" && as_dir=.
8856    for ac_exec_ext in '' $ac_executable_extensions; do
8857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8858    ac_cv_prog_AR="ar"
8859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860    break 2
8861  fi
8862done
8863  done
8864IFS=$as_save_IFS
8865
8866  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8867fi
8868fi
8869AR=$ac_cv_prog_AR
8870if test -n "$AR"; then
8871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8872$as_echo "$AR" >&6; }
8873else
8874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875$as_echo "no" >&6; }
8876fi
8877
8878
8879fi
8880
8881# The jit documentation looks better if built with sphinx, but can be
8882# built with texinfo if sphinx is not available.
8883# Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8884# Extract the first word of "sphinx-build", so it can be a program name with args.
8885set dummy sphinx-build; ac_word=$2
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8887$as_echo_n "checking for $ac_word... " >&6; }
8888if ${ac_cv_prog_doc_build_sys+:} false; then :
8889  $as_echo_n "(cached) " >&6
8890else
8891  if test -n "$doc_build_sys"; then
8892  ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8893else
8894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895for as_dir in $PATH
8896do
8897  IFS=$as_save_IFS
8898  test -z "$as_dir" && as_dir=.
8899    for ac_exec_ext in '' $ac_executable_extensions; do
8900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8901    ac_cv_prog_doc_build_sys="sphinx"
8902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8903    break 2
8904  fi
8905done
8906  done
8907IFS=$as_save_IFS
8908
8909  test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8910fi
8911fi
8912doc_build_sys=$ac_cv_prog_doc_build_sys
8913if test -n "$doc_build_sys"; then
8914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8915$as_echo "$doc_build_sys" >&6; }
8916else
8917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918$as_echo "no" >&6; }
8919fi
8920
8921
8922
8923# --------------------
8924# Checks for C headers
8925# --------------------
8926
8927# Need to reject headers which give warnings, so that the -Werror bootstrap
8928# works later. *sigh*  This needs to come before all header checks.
8929
8930ac_c_preproc_warn_flag=yes
8931
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8933$as_echo_n "checking for ANSI C header files... " >&6; }
8934if ${ac_cv_header_stdc+:} false; then :
8935  $as_echo_n "(cached) " >&6
8936else
8937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938/* end confdefs.h.  */
8939#include <stdlib.h>
8940#include <stdarg.h>
8941#include <string.h>
8942#include <float.h>
8943
8944int
8945main ()
8946{
8947
8948  ;
8949  return 0;
8950}
8951_ACEOF
8952if ac_fn_cxx_try_compile "$LINENO"; then :
8953  ac_cv_header_stdc=yes
8954else
8955  ac_cv_header_stdc=no
8956fi
8957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958
8959if test $ac_cv_header_stdc = yes; then
8960  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962/* end confdefs.h.  */
8963#include <string.h>
8964
8965_ACEOF
8966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8967  $EGREP "memchr" >/dev/null 2>&1; then :
8968
8969else
8970  ac_cv_header_stdc=no
8971fi
8972rm -f conftest*
8973
8974fi
8975
8976if test $ac_cv_header_stdc = yes; then
8977  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979/* end confdefs.h.  */
8980#include <stdlib.h>
8981
8982_ACEOF
8983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8984  $EGREP "free" >/dev/null 2>&1; then :
8985
8986else
8987  ac_cv_header_stdc=no
8988fi
8989rm -f conftest*
8990
8991fi
8992
8993if test $ac_cv_header_stdc = yes; then
8994  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8995  if test "$cross_compiling" = yes; then :
8996  :
8997else
8998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h.  */
9000#include <ctype.h>
9001#include <stdlib.h>
9002#if ((' ' & 0x0FF) == 0x020)
9003# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9004# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9005#else
9006# define ISLOWER(c) \
9007		   (('a' <= (c) && (c) <= 'i') \
9008		     || ('j' <= (c) && (c) <= 'r') \
9009		     || ('s' <= (c) && (c) <= 'z'))
9010# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9011#endif
9012
9013#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9014int
9015main ()
9016{
9017  int i;
9018  for (i = 0; i < 256; i++)
9019    if (XOR (islower (i), ISLOWER (i))
9020	|| toupper (i) != TOUPPER (i))
9021      return 2;
9022  return 0;
9023}
9024_ACEOF
9025if ac_fn_cxx_try_run "$LINENO"; then :
9026
9027else
9028  ac_cv_header_stdc=no
9029fi
9030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9031  conftest.$ac_objext conftest.beam conftest.$ac_ext
9032fi
9033
9034fi
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9037$as_echo "$ac_cv_header_stdc" >&6; }
9038if test $ac_cv_header_stdc = yes; then
9039
9040$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9041
9042fi
9043
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9045$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9046if ${ac_cv_header_time+:} false; then :
9047  $as_echo_n "(cached) " >&6
9048else
9049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050/* end confdefs.h.  */
9051#include <sys/types.h>
9052#include <sys/time.h>
9053#include <time.h>
9054
9055int
9056main ()
9057{
9058if ((struct tm *) 0)
9059return 0;
9060  ;
9061  return 0;
9062}
9063_ACEOF
9064if ac_fn_cxx_try_compile "$LINENO"; then :
9065  ac_cv_header_time=yes
9066else
9067  ac_cv_header_time=no
9068fi
9069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9072$as_echo "$ac_cv_header_time" >&6; }
9073if test $ac_cv_header_time = yes; then
9074
9075$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9076
9077fi
9078
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9080$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9081if ${gcc_cv_header_string+:} false; then :
9082  $as_echo_n "(cached) " >&6
9083else
9084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085/* end confdefs.h.  */
9086#include <string.h>
9087#include <strings.h>
9088int
9089main ()
9090{
9091
9092  ;
9093  return 0;
9094}
9095_ACEOF
9096if ac_fn_cxx_try_compile "$LINENO"; then :
9097  gcc_cv_header_string=yes
9098else
9099  gcc_cv_header_string=no
9100fi
9101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9102fi
9103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9104$as_echo "$gcc_cv_header_string" >&6; }
9105if test $gcc_cv_header_string = yes; then
9106
9107$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9108
9109fi
9110
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9112$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9113if ${ac_cv_header_sys_wait_h+:} false; then :
9114  $as_echo_n "(cached) " >&6
9115else
9116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117/* end confdefs.h.  */
9118#include <sys/types.h>
9119#include <sys/wait.h>
9120#ifndef WEXITSTATUS
9121# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9122#endif
9123#ifndef WIFEXITED
9124# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9125#endif
9126
9127int
9128main ()
9129{
9130  int s;
9131  wait (&s);
9132  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9133  ;
9134  return 0;
9135}
9136_ACEOF
9137if ac_fn_cxx_try_compile "$LINENO"; then :
9138  ac_cv_header_sys_wait_h=yes
9139else
9140  ac_cv_header_sys_wait_h=no
9141fi
9142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143fi
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9145$as_echo "$ac_cv_header_sys_wait_h" >&6; }
9146if test $ac_cv_header_sys_wait_h = yes; then
9147
9148$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9149
9150fi
9151
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9153$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9154if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9155  $as_echo_n "(cached) " >&6
9156else
9157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h.  */
9159#include <sys/types.h>
9160#include <termios.h>
9161#ifdef TIOCGWINSZ
9162  yes
9163#endif
9164
9165_ACEOF
9166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9167  $EGREP "yes" >/dev/null 2>&1; then :
9168  ac_cv_sys_tiocgwinsz_in_termios_h=yes
9169else
9170  ac_cv_sys_tiocgwinsz_in_termios_h=no
9171fi
9172rm -f conftest*
9173
9174fi
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9176$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9177
9178if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9180$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9181if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9182  $as_echo_n "(cached) " >&6
9183else
9184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185/* end confdefs.h.  */
9186#include <sys/types.h>
9187#include <sys/ioctl.h>
9188#ifdef TIOCGWINSZ
9189  yes
9190#endif
9191
9192_ACEOF
9193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9194  $EGREP "yes" >/dev/null 2>&1; then :
9195  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9196else
9197  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9198fi
9199rm -f conftest*
9200
9201fi
9202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9203$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9204
9205  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9206
9207$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9208
9209  fi
9210fi
9211
9212for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9213		 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9214		 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9215		 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9216do :
9217  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9218ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9219if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9220  cat >>confdefs.h <<_ACEOF
9221#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9222_ACEOF
9223
9224fi
9225done
9226
9227
9228# Check for thread headers.
9229ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9230if test "x$ac_cv_header_thread_h" = xyes; then :
9231  have_thread_h=yes
9232else
9233  have_thread_h=
9234fi
9235
9236ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9237if test "x$ac_cv_header_pthread_h" = xyes; then :
9238  have_pthread_h=yes
9239else
9240  have_pthread_h=
9241fi
9242
9243
9244# These tests can't be done till we know if we have limits.h.
9245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9246$as_echo_n "checking for CHAR_BIT... " >&6; }
9247if ${gcc_cv_decl_char_bit+:} false; then :
9248  $as_echo_n "(cached) " >&6
9249else
9250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251/* end confdefs.h.  */
9252#ifdef HAVE_LIMITS_H
9253#include <limits.h>
9254#endif
9255#ifdef CHAR_BIT
9256found
9257#endif
9258_ACEOF
9259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260  $EGREP "found" >/dev/null 2>&1; then :
9261  gcc_cv_decl_char_bit=yes
9262else
9263  gcc_cv_decl_char_bit=no
9264fi
9265rm -f conftest*
9266
9267
9268fi
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9270$as_echo "$gcc_cv_decl_char_bit" >&6; }
9271if test $gcc_cv_decl_char_bit = no; then
9272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9273$as_echo_n "checking number of bits in a byte... " >&6; }
9274if ${gcc_cv_c_nbby+:} false; then :
9275  $as_echo_n "(cached) " >&6
9276else
9277  i=8
9278 gcc_cv_c_nbby=
9279 while test $i -lt 65; do
9280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281/* end confdefs.h.  */
9282
9283int
9284main ()
9285{
9286switch(0) {
9287  case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9288  case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9289  ; }
9290  ;
9291  return 0;
9292}
9293_ACEOF
9294if ac_fn_cxx_try_compile "$LINENO"; then :
9295  gcc_cv_c_nbby=$i; break
9296fi
9297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298   i=`expr $i + 1`
9299 done
9300 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9301
9302fi
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9304$as_echo "$gcc_cv_c_nbby" >&6; }
9305if test $gcc_cv_c_nbby = failed; then
9306  as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9307else
9308
9309cat >>confdefs.h <<_ACEOF
9310#define CHAR_BIT $gcc_cv_c_nbby
9311_ACEOF
9312
9313fi
9314fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9316$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9317if ${ac_cv_c_bigendian+:} false; then :
9318  $as_echo_n "(cached) " >&6
9319else
9320  ac_cv_c_bigendian=unknown
9321    # See if we're dealing with a universal compiler.
9322    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323/* end confdefs.h.  */
9324#ifndef __APPLE_CC__
9325	       not a universal capable compiler
9326	     #endif
9327	     typedef int dummy;
9328
9329_ACEOF
9330if ac_fn_cxx_try_compile "$LINENO"; then :
9331
9332	# Check for potential -arch flags.  It is not universal unless
9333	# there are at least two -arch flags with different values.
9334	ac_arch=
9335	ac_prev=
9336	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9337	 if test -n "$ac_prev"; then
9338	   case $ac_word in
9339	     i?86 | x86_64 | ppc | ppc64)
9340	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9341		 ac_arch=$ac_word
9342	       else
9343		 ac_cv_c_bigendian=universal
9344		 break
9345	       fi
9346	       ;;
9347	   esac
9348	   ac_prev=
9349	 elif test "x$ac_word" = "x-arch"; then
9350	   ac_prev=arch
9351	 fi
9352       done
9353fi
9354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355    if test $ac_cv_c_bigendian = unknown; then
9356      # See if sys/param.h defines the BYTE_ORDER macro.
9357      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358/* end confdefs.h.  */
9359#include <sys/types.h>
9360	     #include <sys/param.h>
9361
9362int
9363main ()
9364{
9365#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9366		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9367		     && LITTLE_ENDIAN)
9368	      bogus endian macros
9369	     #endif
9370
9371  ;
9372  return 0;
9373}
9374_ACEOF
9375if ac_fn_cxx_try_compile "$LINENO"; then :
9376  # It does; now see whether it defined to BIG_ENDIAN or not.
9377	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h.  */
9379#include <sys/types.h>
9380		#include <sys/param.h>
9381
9382int
9383main ()
9384{
9385#if BYTE_ORDER != BIG_ENDIAN
9386		 not big endian
9387		#endif
9388
9389  ;
9390  return 0;
9391}
9392_ACEOF
9393if ac_fn_cxx_try_compile "$LINENO"; then :
9394  ac_cv_c_bigendian=yes
9395else
9396  ac_cv_c_bigendian=no
9397fi
9398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9399fi
9400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401    fi
9402    if test $ac_cv_c_bigendian = unknown; then
9403      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9404      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405/* end confdefs.h.  */
9406#include <limits.h>
9407
9408int
9409main ()
9410{
9411#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9412	      bogus endian macros
9413	     #endif
9414
9415  ;
9416  return 0;
9417}
9418_ACEOF
9419if ac_fn_cxx_try_compile "$LINENO"; then :
9420  # It does; now see whether it defined to _BIG_ENDIAN or not.
9421	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h.  */
9423#include <limits.h>
9424
9425int
9426main ()
9427{
9428#ifndef _BIG_ENDIAN
9429		 not big endian
9430		#endif
9431
9432  ;
9433  return 0;
9434}
9435_ACEOF
9436if ac_fn_cxx_try_compile "$LINENO"; then :
9437  ac_cv_c_bigendian=yes
9438else
9439  ac_cv_c_bigendian=no
9440fi
9441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9442fi
9443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9444    fi
9445    if test $ac_cv_c_bigendian = unknown; then
9446      # Compile a test program.
9447      if test "$cross_compiling" = yes; then :
9448  # Try to guess by grepping values from an object file.
9449	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450/* end confdefs.h.  */
9451short int ascii_mm[] =
9452		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9453		short int ascii_ii[] =
9454		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9455		int use_ascii (int i) {
9456		  return ascii_mm[i] + ascii_ii[i];
9457		}
9458		short int ebcdic_ii[] =
9459		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9460		short int ebcdic_mm[] =
9461		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9462		int use_ebcdic (int i) {
9463		  return ebcdic_mm[i] + ebcdic_ii[i];
9464		}
9465		extern int foo;
9466
9467int
9468main ()
9469{
9470return use_ascii (foo) == use_ebcdic (foo);
9471  ;
9472  return 0;
9473}
9474_ACEOF
9475if ac_fn_cxx_try_compile "$LINENO"; then :
9476  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9477	      ac_cv_c_bigendian=yes
9478	    fi
9479	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9480	      if test "$ac_cv_c_bigendian" = unknown; then
9481		ac_cv_c_bigendian=no
9482	      else
9483		# finding both strings is unlikely to happen, but who knows?
9484		ac_cv_c_bigendian=unknown
9485	      fi
9486	    fi
9487fi
9488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489else
9490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491/* end confdefs.h.  */
9492$ac_includes_default
9493int
9494main ()
9495{
9496
9497	     /* Are we little or big endian?  From Harbison&Steele.  */
9498	     union
9499	     {
9500	       long int l;
9501	       char c[sizeof (long int)];
9502	     } u;
9503	     u.l = 1;
9504	     return u.c[sizeof (long int) - 1] == 1;
9505
9506  ;
9507  return 0;
9508}
9509_ACEOF
9510if ac_fn_cxx_try_run "$LINENO"; then :
9511  ac_cv_c_bigendian=no
9512else
9513  ac_cv_c_bigendian=yes
9514fi
9515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9516  conftest.$ac_objext conftest.beam conftest.$ac_ext
9517fi
9518
9519    fi
9520fi
9521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9522$as_echo "$ac_cv_c_bigendian" >&6; }
9523 case $ac_cv_c_bigendian in #(
9524   yes)
9525     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9526;; #(
9527   no)
9528      ;; #(
9529   universal)
9530
9531$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9532
9533     ;; #(
9534   *)
9535     as_fn_error $? "unknown endianness
9536 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9537 esac
9538
9539
9540# ----------------------
9541# Checks for C++ headers
9542# ----------------------
9543
9544ac_ext=cpp
9545ac_cpp='$CXXCPP $CPPFLAGS'
9546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9550$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9551if test -z "$CXXCPP"; then
9552  if ${ac_cv_prog_CXXCPP+:} false; then :
9553  $as_echo_n "(cached) " >&6
9554else
9555      # Double quotes because CXXCPP needs to be expanded
9556    for CXXCPP in "$CXX -E" "/lib/cpp"
9557    do
9558      ac_preproc_ok=false
9559for ac_cxx_preproc_warn_flag in '' yes
9560do
9561  # Use a header file that comes with gcc, so configuring glibc
9562  # with a fresh cross-compiler works.
9563  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9564  # <limits.h> exists even on freestanding compilers.
9565  # On the NeXT, cc -E runs the code through the compiler's parser,
9566  # not just through cpp. "Syntax error" is here to catch this case.
9567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568/* end confdefs.h.  */
9569#ifdef __STDC__
9570# include <limits.h>
9571#else
9572# include <assert.h>
9573#endif
9574		     Syntax error
9575_ACEOF
9576if ac_fn_cxx_try_cpp "$LINENO"; then :
9577
9578else
9579  # Broken: fails on valid input.
9580continue
9581fi
9582rm -f conftest.err conftest.i conftest.$ac_ext
9583
9584  # OK, works on sane cases.  Now check whether nonexistent headers
9585  # can be detected and how.
9586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587/* end confdefs.h.  */
9588#include <ac_nonexistent.h>
9589_ACEOF
9590if ac_fn_cxx_try_cpp "$LINENO"; then :
9591  # Broken: success on invalid input.
9592continue
9593else
9594  # Passes both tests.
9595ac_preproc_ok=:
9596break
9597fi
9598rm -f conftest.err conftest.i conftest.$ac_ext
9599
9600done
9601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9602rm -f conftest.i conftest.err conftest.$ac_ext
9603if $ac_preproc_ok; then :
9604  break
9605fi
9606
9607    done
9608    ac_cv_prog_CXXCPP=$CXXCPP
9609
9610fi
9611  CXXCPP=$ac_cv_prog_CXXCPP
9612else
9613  ac_cv_prog_CXXCPP=$CXXCPP
9614fi
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9616$as_echo "$CXXCPP" >&6; }
9617ac_preproc_ok=false
9618for ac_cxx_preproc_warn_flag in '' yes
9619do
9620  # Use a header file that comes with gcc, so configuring glibc
9621  # with a fresh cross-compiler works.
9622  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9623  # <limits.h> exists even on freestanding compilers.
9624  # On the NeXT, cc -E runs the code through the compiler's parser,
9625  # not just through cpp. "Syntax error" is here to catch this case.
9626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h.  */
9628#ifdef __STDC__
9629# include <limits.h>
9630#else
9631# include <assert.h>
9632#endif
9633		     Syntax error
9634_ACEOF
9635if ac_fn_cxx_try_cpp "$LINENO"; then :
9636
9637else
9638  # Broken: fails on valid input.
9639continue
9640fi
9641rm -f conftest.err conftest.i conftest.$ac_ext
9642
9643  # OK, works on sane cases.  Now check whether nonexistent headers
9644  # can be detected and how.
9645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646/* end confdefs.h.  */
9647#include <ac_nonexistent.h>
9648_ACEOF
9649if ac_fn_cxx_try_cpp "$LINENO"; then :
9650  # Broken: success on invalid input.
9651continue
9652else
9653  # Passes both tests.
9654ac_preproc_ok=:
9655break
9656fi
9657rm -f conftest.err conftest.i conftest.$ac_ext
9658
9659done
9660# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9661rm -f conftest.i conftest.err conftest.$ac_ext
9662if $ac_preproc_ok; then :
9663
9664else
9665  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9668See \`config.log' for more details" >&5
9669$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9670See \`config.log' for more details" >&2;}; }
9671fi
9672
9673ac_ext=cpp
9674ac_cpp='$CXXCPP $CPPFLAGS'
9675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9678
9679
9680for ac_header in unordered_map
9681do :
9682  ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9683if test "x$ac_cv_header_unordered_map" = xyes; then :
9684  cat >>confdefs.h <<_ACEOF
9685#define HAVE_UNORDERED_MAP 1
9686_ACEOF
9687
9688fi
9689done
9690
9691for ac_header in tr1/unordered_map
9692do :
9693  ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9694if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9695  cat >>confdefs.h <<_ACEOF
9696#define HAVE_TR1_UNORDERED_MAP 1
9697_ACEOF
9698
9699fi
9700done
9701
9702for ac_header in ext/hash_map
9703do :
9704  ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9705if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9706  cat >>confdefs.h <<_ACEOF
9707#define HAVE_EXT_HASH_MAP 1
9708_ACEOF
9709
9710fi
9711done
9712
9713
9714# --------
9715# Dependency checking.
9716# --------
9717
9718rm -rf .tst 2>/dev/null
9719mkdir .tst 2>/dev/null
9720if test -d .tst; then
9721  am__leading_dot=.
9722else
9723  am__leading_dot=_
9724fi
9725rmdir .tst 2>/dev/null
9726
9727DEPDIR="${am__leading_dot}deps"
9728
9729ac_config_commands="$ac_config_commands depdir"
9730
9731
9732ac_config_commands="$ac_config_commands gccdepdir"
9733
9734
9735depcc="$CXX"  am_compiler_list=
9736
9737am_depcomp=$ac_aux_dir/depcomp
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9739$as_echo_n "checking dependency style of $depcc... " >&6; }
9740if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9741  $as_echo_n "(cached) " >&6
9742else
9743  if test -f "$am_depcomp"; then
9744  # We make a subdir and do the tests there.  Otherwise we can end up
9745  # making bogus files that we don't know about and never remove.  For
9746  # instance it was reported that on HP-UX the gcc test will end up
9747  # making a dummy file named `D' -- because `-MD' means `put the output
9748  # in D'.
9749  mkdir conftest.dir
9750  # Copy depcomp to subdir because otherwise we won't find it if we're
9751  # using a relative directory.
9752  cp "$am_depcomp" conftest.dir
9753  cd conftest.dir
9754  # We will build objects and dependencies in a subdirectory because
9755  # it helps to detect inapplicable dependency modes.  For instance
9756  # both Tru64's cc and ICC support -MD to output dependencies as a
9757  # side effect of compilation, but ICC will put the dependencies in
9758  # the current directory while Tru64 will put them in the object
9759  # directory.
9760  mkdir sub
9761
9762  am_cv_CXX_dependencies_compiler_type=none
9763  if test "$am_compiler_list" = ""; then
9764     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9765  fi
9766  for depmode in $am_compiler_list; do
9767    if test $depmode = none; then break; fi
9768
9769    $as_echo "$as_me:$LINENO: trying $depmode" >&5
9770    # Setup a source with many dependencies, because some compilers
9771    # like to wrap large dependency lists on column 80 (with \), and
9772    # we should not choose a depcomp mode which is confused by this.
9773    #
9774    # We need to recreate these files for each test, as the compiler may
9775    # overwrite some of them when testing with obscure command lines.
9776    # This happens at least with the AIX C compiler.
9777    : > sub/conftest.c
9778    for i in 1 2 3 4 5 6; do
9779      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9780      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9781      # Solaris 8's {/usr,}/bin/sh.
9782      touch sub/conftst$i.h
9783    done
9784    echo "include sub/conftest.Po" > confmf
9785
9786    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9787    # mode.  It turns out that the SunPro C++ compiler does not properly
9788    # handle `-M -o', and we need to detect this.
9789    depcmd="depmode=$depmode \
9790       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9791       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9792       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9793    echo "| $depcmd" | sed -e 's/  */ /g' >&5
9794    if env $depcmd > conftest.err 2>&1 &&
9795       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9796       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9797       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9798      # icc doesn't choke on unknown options, it will just issue warnings
9799      # or remarks (even with -Werror).  So we grep stderr for any message
9800      # that says an option was ignored or not supported.
9801      # When given -MP, icc 7.0 and 7.1 complain thusly:
9802      #   icc: Command line warning: ignoring option '-M'; no argument required
9803      # The diagnosis changed in icc 8.0:
9804      #   icc: Command line remark: option '-MP' not supported
9805      if (grep 'ignoring option' conftest.err ||
9806          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9807        am_cv_CXX_dependencies_compiler_type=$depmode
9808	$as_echo "$as_me:$LINENO: success" >&5
9809        break
9810      fi
9811    fi
9812    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9813    sed -e 's/^/| /' < conftest.err >&5
9814  done
9815
9816  cd ..
9817  rm -rf conftest.dir
9818else
9819  am_cv_CXX_dependencies_compiler_type=none
9820fi
9821
9822fi
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9824$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9825if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9826then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9827else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9828
9829fi
9830
9831
9832# --------
9833# UNSORTED
9834# --------
9835
9836
9837# These libraries may be used by collect2.
9838# We may need a special search path to get them linked.
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9840$as_echo_n "checking for collect2 libraries... " >&6; }
9841if ${gcc_cv_collect2_libs+:} false; then :
9842  $as_echo_n "(cached) " >&6
9843else
9844  save_LIBS="$LIBS"
9845for libs in '' -lld -lmld \
9846		'-L/usr/lib/cmplrs/cc2.11 -lmld' \
9847		'-L/usr/lib/cmplrs/cc3.11 -lmld'
9848do
9849	LIBS="$libs"
9850	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851/* end confdefs.h.  */
9852
9853/* Override any GCC internal prototype to avoid an error.
9854   Use char because int might match the return type of a GCC
9855   builtin and then its argument prototype would still apply.  */
9856#ifdef __cplusplus
9857extern "C"
9858#endif
9859char ldopen ();
9860int
9861main ()
9862{
9863return ldopen ();
9864  ;
9865  return 0;
9866}
9867_ACEOF
9868if ac_fn_cxx_try_link "$LINENO"; then :
9869  gcc_cv_collect2_libs="$libs"; break
9870fi
9871rm -f core conftest.err conftest.$ac_objext \
9872    conftest$ac_exeext conftest.$ac_ext
9873done
9874LIBS="$save_LIBS"
9875test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9876fi
9877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9878$as_echo "$gcc_cv_collect2_libs" >&6; }
9879case $gcc_cv_collect2_libs in
9880	"none required")	;;
9881	*)	COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9882esac
9883
9884
9885# When building Ada code on Alpha, we need exc_resume which is usually in
9886# -lexc.  So test for it.
9887save_LIBS="$LIBS"
9888LIBS=
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9890$as_echo_n "checking for library containing exc_resume... " >&6; }
9891if ${ac_cv_search_exc_resume+:} false; then :
9892  $as_echo_n "(cached) " >&6
9893else
9894  ac_func_search_save_LIBS=$LIBS
9895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896/* end confdefs.h.  */
9897
9898/* Override any GCC internal prototype to avoid an error.
9899   Use char because int might match the return type of a GCC
9900   builtin and then its argument prototype would still apply.  */
9901#ifdef __cplusplus
9902extern "C"
9903#endif
9904char exc_resume ();
9905int
9906main ()
9907{
9908return exc_resume ();
9909  ;
9910  return 0;
9911}
9912_ACEOF
9913for ac_lib in '' exc; do
9914  if test -z "$ac_lib"; then
9915    ac_res="none required"
9916  else
9917    ac_res=-l$ac_lib
9918    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9919  fi
9920  if ac_fn_cxx_try_link "$LINENO"; then :
9921  ac_cv_search_exc_resume=$ac_res
9922fi
9923rm -f core conftest.err conftest.$ac_objext \
9924    conftest$ac_exeext
9925  if ${ac_cv_search_exc_resume+:} false; then :
9926  break
9927fi
9928done
9929if ${ac_cv_search_exc_resume+:} false; then :
9930
9931else
9932  ac_cv_search_exc_resume=no
9933fi
9934rm conftest.$ac_ext
9935LIBS=$ac_func_search_save_LIBS
9936fi
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9938$as_echo "$ac_cv_search_exc_resume" >&6; }
9939ac_res=$ac_cv_search_exc_resume
9940if test "$ac_res" != no; then :
9941  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9942
9943fi
9944
9945GNAT_LIBEXC="$LIBS"
9946LIBS="$save_LIBS"
9947
9948
9949# To support -mcpu=native on Solaris/SPARC, we need libkstat.
9950save_LIBS="$LIBS"
9951LIBS=
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9953$as_echo_n "checking for library containing kstat_open... " >&6; }
9954if ${ac_cv_search_kstat_open+:} false; then :
9955  $as_echo_n "(cached) " >&6
9956else
9957  ac_func_search_save_LIBS=$LIBS
9958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959/* end confdefs.h.  */
9960
9961/* Override any GCC internal prototype to avoid an error.
9962   Use char because int might match the return type of a GCC
9963   builtin and then its argument prototype would still apply.  */
9964#ifdef __cplusplus
9965extern "C"
9966#endif
9967char kstat_open ();
9968int
9969main ()
9970{
9971return kstat_open ();
9972  ;
9973  return 0;
9974}
9975_ACEOF
9976for ac_lib in '' kstat; do
9977  if test -z "$ac_lib"; then
9978    ac_res="none required"
9979  else
9980    ac_res=-l$ac_lib
9981    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9982  fi
9983  if ac_fn_cxx_try_link "$LINENO"; then :
9984  ac_cv_search_kstat_open=$ac_res
9985fi
9986rm -f core conftest.err conftest.$ac_objext \
9987    conftest$ac_exeext
9988  if ${ac_cv_search_kstat_open+:} false; then :
9989  break
9990fi
9991done
9992if ${ac_cv_search_kstat_open+:} false; then :
9993
9994else
9995  ac_cv_search_kstat_open=no
9996fi
9997rm conftest.$ac_ext
9998LIBS=$ac_func_search_save_LIBS
9999fi
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10001$as_echo "$ac_cv_search_kstat_open" >&6; }
10002ac_res=$ac_cv_search_kstat_open
10003if test "$ac_res" != no; then :
10004  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10005
10006fi
10007
10008EXTRA_GCC_LIBS="$LIBS"
10009LIBS="$save_LIBS"
10010
10011
10012# Solaris needs libsocket and libnsl for socket functions before 11.4.
10013# C++ needs those for libcody.
10014save_LIBS="$LIBS"
10015LIBS=
10016
10017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10018$as_echo_n "checking for library containing gethostbyname... " >&6; }
10019if ${ac_cv_search_gethostbyname+:} false; then :
10020  $as_echo_n "(cached) " >&6
10021else
10022  ac_func_search_save_LIBS=$LIBS
10023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024/* end confdefs.h.  */
10025
10026/* Override any GCC internal prototype to avoid an error.
10027   Use char because int might match the return type of a GCC
10028   builtin and then its argument prototype would still apply.  */
10029#ifdef __cplusplus
10030extern "C"
10031#endif
10032char gethostbyname ();
10033int
10034main ()
10035{
10036return gethostbyname ();
10037  ;
10038  return 0;
10039}
10040_ACEOF
10041for ac_lib in '' nsl; do
10042  if test -z "$ac_lib"; then
10043    ac_res="none required"
10044  else
10045    ac_res=-l$ac_lib
10046    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10047  fi
10048  if ac_fn_cxx_try_link "$LINENO"; then :
10049  ac_cv_search_gethostbyname=$ac_res
10050fi
10051rm -f core conftest.err conftest.$ac_objext \
10052    conftest$ac_exeext
10053  if ${ac_cv_search_gethostbyname+:} false; then :
10054  break
10055fi
10056done
10057if ${ac_cv_search_gethostbyname+:} false; then :
10058
10059else
10060  ac_cv_search_gethostbyname=no
10061fi
10062rm conftest.$ac_ext
10063LIBS=$ac_func_search_save_LIBS
10064fi
10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10066$as_echo "$ac_cv_search_gethostbyname" >&6; }
10067ac_res=$ac_cv_search_gethostbyname
10068if test "$ac_res" != no; then :
10069  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10070
10071fi
10072
10073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10074$as_echo_n "checking for library containing socket... " >&6; }
10075if ${ac_cv_search_socket+:} false; then :
10076  $as_echo_n "(cached) " >&6
10077else
10078  ac_func_search_save_LIBS=$LIBS
10079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080/* end confdefs.h.  */
10081
10082/* Override any GCC internal prototype to avoid an error.
10083   Use char because int might match the return type of a GCC
10084   builtin and then its argument prototype would still apply.  */
10085#ifdef __cplusplus
10086extern "C"
10087#endif
10088char socket ();
10089int
10090main ()
10091{
10092return socket ();
10093  ;
10094  return 0;
10095}
10096_ACEOF
10097for ac_lib in '' socket; do
10098  if test -z "$ac_lib"; then
10099    ac_res="none required"
10100  else
10101    ac_res=-l$ac_lib
10102    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10103  fi
10104  if ac_fn_cxx_try_link "$LINENO"; then :
10105  ac_cv_search_socket=$ac_res
10106fi
10107rm -f core conftest.err conftest.$ac_objext \
10108    conftest$ac_exeext
10109  if ${ac_cv_search_socket+:} false; then :
10110  break
10111fi
10112done
10113if ${ac_cv_search_socket+:} false; then :
10114
10115else
10116  ac_cv_search_socket=no
10117fi
10118rm conftest.$ac_ext
10119LIBS=$ac_func_search_save_LIBS
10120fi
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10122$as_echo "$ac_cv_search_socket" >&6; }
10123ac_res=$ac_cv_search_socket
10124if test "$ac_res" != no; then :
10125  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10126
10127else
10128
10129		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10130$as_echo_n "checking for socket in -lsocket... " >&6; }
10131if ${ac_cv_lib_socket_socket+:} false; then :
10132  $as_echo_n "(cached) " >&6
10133else
10134  ac_check_lib_save_LIBS=$LIBS
10135LIBS="-lsocket -lnsl $LIBS"
10136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137/* end confdefs.h.  */
10138
10139/* Override any GCC internal prototype to avoid an error.
10140   Use char because int might match the return type of a GCC
10141   builtin and then its argument prototype would still apply.  */
10142#ifdef __cplusplus
10143extern "C"
10144#endif
10145char socket ();
10146int
10147main ()
10148{
10149return socket ();
10150  ;
10151  return 0;
10152}
10153_ACEOF
10154if ac_fn_cxx_try_link "$LINENO"; then :
10155  ac_cv_lib_socket_socket=yes
10156else
10157  ac_cv_lib_socket_socket=no
10158fi
10159rm -f core conftest.err conftest.$ac_objext \
10160    conftest$ac_exeext conftest.$ac_ext
10161LIBS=$ac_check_lib_save_LIBS
10162fi
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10164$as_echo "$ac_cv_lib_socket_socket" >&6; }
10165if test "x$ac_cv_lib_socket_socket" = xyes; then :
10166  LIBS="-lsocket -lnsl $LIBS"
10167fi
10168
10169fi
10170
10171
10172NETLIBS="$LIBS"
10173LIBS="$save_LIBS"
10174
10175
10176# Some systems put ldexp and frexp in libm instead of libc; assume
10177# they're both in the same place.  jcf-dump needs them.
10178save_LIBS="$LIBS"
10179LIBS=
10180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10181$as_echo_n "checking for library containing ldexp... " >&6; }
10182if ${ac_cv_search_ldexp+:} false; then :
10183  $as_echo_n "(cached) " >&6
10184else
10185  ac_func_search_save_LIBS=$LIBS
10186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187/* end confdefs.h.  */
10188
10189/* Override any GCC internal prototype to avoid an error.
10190   Use char because int might match the return type of a GCC
10191   builtin and then its argument prototype would still apply.  */
10192#ifdef __cplusplus
10193extern "C"
10194#endif
10195char ldexp ();
10196int
10197main ()
10198{
10199return ldexp ();
10200  ;
10201  return 0;
10202}
10203_ACEOF
10204for ac_lib in '' m; do
10205  if test -z "$ac_lib"; then
10206    ac_res="none required"
10207  else
10208    ac_res=-l$ac_lib
10209    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10210  fi
10211  if ac_fn_cxx_try_link "$LINENO"; then :
10212  ac_cv_search_ldexp=$ac_res
10213fi
10214rm -f core conftest.err conftest.$ac_objext \
10215    conftest$ac_exeext
10216  if ${ac_cv_search_ldexp+:} false; then :
10217  break
10218fi
10219done
10220if ${ac_cv_search_ldexp+:} false; then :
10221
10222else
10223  ac_cv_search_ldexp=no
10224fi
10225rm conftest.$ac_ext
10226LIBS=$ac_func_search_save_LIBS
10227fi
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10229$as_echo "$ac_cv_search_ldexp" >&6; }
10230ac_res=$ac_cv_search_ldexp
10231if test "$ac_res" != no; then :
10232  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10233
10234fi
10235
10236LDEXP_LIB="$LIBS"
10237LIBS="$save_LIBS"
10238
10239
10240# Some systems need dlopen
10241save_LIBS="$LIBS"
10242LIBS=
10243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10244$as_echo_n "checking for library containing dlopen... " >&6; }
10245if ${ac_cv_search_dlopen+:} false; then :
10246  $as_echo_n "(cached) " >&6
10247else
10248  ac_func_search_save_LIBS=$LIBS
10249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250/* end confdefs.h.  */
10251
10252/* Override any GCC internal prototype to avoid an error.
10253   Use char because int might match the return type of a GCC
10254   builtin and then its argument prototype would still apply.  */
10255#ifdef __cplusplus
10256extern "C"
10257#endif
10258char dlopen ();
10259int
10260main ()
10261{
10262return dlopen ();
10263  ;
10264  return 0;
10265}
10266_ACEOF
10267for ac_lib in '' dl; do
10268  if test -z "$ac_lib"; then
10269    ac_res="none required"
10270  else
10271    ac_res=-l$ac_lib
10272    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10273  fi
10274  if ac_fn_cxx_try_link "$LINENO"; then :
10275  ac_cv_search_dlopen=$ac_res
10276fi
10277rm -f core conftest.err conftest.$ac_objext \
10278    conftest$ac_exeext
10279  if ${ac_cv_search_dlopen+:} false; then :
10280  break
10281fi
10282done
10283if ${ac_cv_search_dlopen+:} false; then :
10284
10285else
10286  ac_cv_search_dlopen=no
10287fi
10288rm conftest.$ac_ext
10289LIBS=$ac_func_search_save_LIBS
10290fi
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10292$as_echo "$ac_cv_search_dlopen" >&6; }
10293ac_res=$ac_cv_search_dlopen
10294if test "$ac_res" != no; then :
10295  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10296
10297fi
10298
10299DL_LIB="$LIBS"
10300LIBS="$save_LIBS"
10301
10302
10303# Use <inttypes.h> only if it exists,
10304# doesn't clash with <sys/types.h>, declares intmax_t and defines
10305# PRId64
10306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10307$as_echo_n "checking for inttypes.h... " >&6; }
10308if ${gcc_cv_header_inttypes_h+:} false; then :
10309  $as_echo_n "(cached) " >&6
10310else
10311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312/* end confdefs.h.  */
10313#define __STDC_FORMAT_MACROS
10314#include <sys/types.h>
10315#include <inttypes.h>
10316int
10317main ()
10318{
10319intmax_t i = -1;
10320#ifndef PRId64
10321choke me
10322#endif
10323  ;
10324  return 0;
10325}
10326_ACEOF
10327if ac_fn_cxx_try_compile "$LINENO"; then :
10328  gcc_cv_header_inttypes_h=yes
10329else
10330  gcc_cv_header_inttypes_h=no
10331fi
10332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333fi
10334
10335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10336$as_echo "$gcc_cv_header_inttypes_h" >&6; }
10337if test $gcc_cv_header_inttypes_h = yes; then
10338
10339$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10340
10341fi
10342
10343# Look for the ZSTD package.
10344ZSTD_INCLUDE=
10345ZSTD_LIB=
10346
10347
10348ZSTD_CPPFLAGS=
10349ZSTD_LDFLAGS=
10350
10351
10352
10353# Check whether --with-zstd was given.
10354if test "${with_zstd+set}" = set; then :
10355  withval=$with_zstd;
10356fi
10357
10358
10359# Check whether --with-zstd-include was given.
10360if test "${with_zstd_include+set}" = set; then :
10361  withval=$with_zstd_include;
10362fi
10363
10364
10365# Check whether --with-zstd-lib was given.
10366if test "${with_zstd_lib+set}" = set; then :
10367  withval=$with_zstd_lib;
10368fi
10369
10370case "x$with_zstd" in
10371  x) ;;
10372  xno)
10373    ZSTD_INCLUDE=
10374    ZSTD_LIB=
10375    ;;
10376  *) ZSTD_INCLUDE=$with_zstd/include
10377     ZSTD_LIB=$with_zstd/lib
10378     ;;
10379esac
10380
10381if test "x$with_zstd" != xno; then
10382if test "x$with_zstd_include" != x; then
10383  ZSTD_INCLUDE=$with_zstd_include
10384fi
10385if test "x$with_zstd_lib" != x; then
10386  ZSTD_LIB=$with_zstd_lib
10387fi
10388if test "x$ZSTD_INCLUDE" != x \
10389   && test "x$ZSTD_INCLUDE" != xno; then
10390  ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10391fi
10392if test "x$ZSTD_LIB" != x \
10393   && test "x$ZSTD_LIB" != xno; then
10394  ZSTD_LDFLAGS=-L$ZSTD_LIB
10395fi
10396
10397CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10398LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10399
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10401$as_echo_n "checking for zstd.h... " >&6; }
10402if ${gcc_cv_header_zstd_h+:} false; then :
10403  $as_echo_n "(cached) " >&6
10404else
10405  # We require version 1.3.0 or later.  This is the first version that has
10406# ZSTD_getFrameContentSize.
10407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408/* end confdefs.h.  */
10409#include <zstd.h>
10410#if ZSTD_VERSION_NUMBER < 10300
10411#error "need zstd 1.3.0 or better"
10412#endif
10413int
10414main ()
10415{
10416
10417  ;
10418  return 0;
10419}
10420_ACEOF
10421if ac_fn_cxx_try_compile "$LINENO"; then :
10422  gcc_cv_header_zstd_h=yes
10423else
10424  gcc_cv_header_zstd_h=no
10425fi
10426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427fi
10428
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10430$as_echo "$gcc_cv_header_zstd_h" >&6; }
10431if test $gcc_cv_header_zstd_h = yes; then
10432
10433$as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10434
10435elif test "x$with_zstd" != x; then
10436    as_fn_error $? "Unable to find zstd.h.  See config.log for details." "$LINENO" 5
10437fi
10438
10439# LTO can use zstd compression algorithm
10440save_LIBS="$LIBS"
10441LIBS=
10442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10443$as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10444if ${ac_cv_search_ZSTD_compress+:} false; then :
10445  $as_echo_n "(cached) " >&6
10446else
10447  ac_func_search_save_LIBS=$LIBS
10448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h.  */
10450
10451/* Override any GCC internal prototype to avoid an error.
10452   Use char because int might match the return type of a GCC
10453   builtin and then its argument prototype would still apply.  */
10454#ifdef __cplusplus
10455extern "C"
10456#endif
10457char ZSTD_compress ();
10458int
10459main ()
10460{
10461return ZSTD_compress ();
10462  ;
10463  return 0;
10464}
10465_ACEOF
10466for ac_lib in '' zstd; do
10467  if test -z "$ac_lib"; then
10468    ac_res="none required"
10469  else
10470    ac_res=-l$ac_lib
10471    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10472  fi
10473  if ac_fn_cxx_try_link "$LINENO"; then :
10474  ac_cv_search_ZSTD_compress=$ac_res
10475fi
10476rm -f core conftest.err conftest.$ac_objext \
10477    conftest$ac_exeext
10478  if ${ac_cv_search_ZSTD_compress+:} false; then :
10479  break
10480fi
10481done
10482if ${ac_cv_search_ZSTD_compress+:} false; then :
10483
10484else
10485  ac_cv_search_ZSTD_compress=no
10486fi
10487rm conftest.$ac_ext
10488LIBS=$ac_func_search_save_LIBS
10489fi
10490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10491$as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10492ac_res=$ac_cv_search_ZSTD_compress
10493if test "$ac_res" != no; then :
10494  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10495
10496fi
10497
10498ZSTD_LIB="$LIBS"
10499LIBS="$save_LIBS"
10500
10501fi
10502
10503
10504
10505for ac_func in times clock kill getrlimit setrlimit atoq \
10506	popen sysconf strsignal getrusage nl_langinfo \
10507	gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10508	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
10509do :
10510  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10511ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10512if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10513  cat >>confdefs.h <<_ACEOF
10514#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10515_ACEOF
10516
10517fi
10518done
10519
10520
10521if test x$ac_cv_func_mbstowcs = xyes; then
10522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10523$as_echo_n "checking whether mbstowcs works... " >&6; }
10524if ${gcc_cv_func_mbstowcs_works+:} false; then :
10525  $as_echo_n "(cached) " >&6
10526else
10527      if test "$cross_compiling" = yes; then :
10528  gcc_cv_func_mbstowcs_works=yes
10529else
10530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531/* end confdefs.h.  */
10532#include <stdlib.h>
10533int main()
10534{
10535  mbstowcs(0, "", 0);
10536  return 0;
10537}
10538_ACEOF
10539if ac_fn_cxx_try_run "$LINENO"; then :
10540  gcc_cv_func_mbstowcs_works=yes
10541else
10542  gcc_cv_func_mbstowcs_works=no
10543fi
10544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10545  conftest.$ac_objext conftest.beam conftest.$ac_ext
10546fi
10547
10548fi
10549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10550$as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10551  if test x$gcc_cv_func_mbstowcs_works = xyes; then
10552
10553$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10554
10555  fi
10556fi
10557
10558ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10559if test "x$ac_cv_type_ssize_t" = xyes; then :
10560
10561else
10562
10563cat >>confdefs.h <<_ACEOF
10564#define ssize_t int
10565_ACEOF
10566
10567fi
10568
10569ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10570if test "x$ac_cv_type_caddr_t" = xyes; then :
10571
10572else
10573
10574cat >>confdefs.h <<_ACEOF
10575#define caddr_t char *
10576_ACEOF
10577
10578fi
10579
10580ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10581"
10582if test "x$ac_cv_type_sighander_t" = xyes; then :
10583
10584$as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10585
10586fi
10587
10588
10589
10590ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10591if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10592  gcc_header_sys_mman_h=yes
10593else
10594  gcc_header_sys_mman_h=no
10595fi
10596
10597ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10598if test "x$ac_cv_func_mmap" = xyes; then :
10599  gcc_func_mmap=yes
10600else
10601  gcc_func_mmap=no
10602fi
10603
10604if test "$gcc_header_sys_mman_h" != yes \
10605 || test "$gcc_func_mmap" != yes; then
10606   gcc_cv_func_mmap_file=no
10607   gcc_cv_func_mmap_dev_zero=no
10608   gcc_cv_func_mmap_anon=no
10609else
10610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10611$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10612if ${gcc_cv_func_mmap_file+:} false; then :
10613  $as_echo_n "(cached) " >&6
10614else
10615  # Add a system to this blacklist if
10616   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10617   # memory area containing the same data that you'd get if you applied
10618   # read() to the same fd.  The only system known to have a problem here
10619   # is VMS, where text files have record structure.
10620   case "$host_os" in
10621     *vms* | ultrix*)
10622        gcc_cv_func_mmap_file=no ;;
10623     *)
10624        gcc_cv_func_mmap_file=yes;;
10625   esac
10626fi
10627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10628$as_echo "$gcc_cv_func_mmap_file" >&6; }
10629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10630$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10631if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10632  $as_echo_n "(cached) " >&6
10633else
10634  # Add a system to this blacklist if it has mmap() but /dev/zero
10635   # does not exist, or if mmapping /dev/zero does not give anonymous
10636   # zeroed pages with both the following properties:
10637   # 1. If you map N consecutive pages in with one call, and then
10638   #    unmap any subset of those pages, the pages that were not
10639   #    explicitly unmapped remain accessible.
10640   # 2. If you map two adjacent blocks of memory and then unmap them
10641   #    both at once, they must both go away.
10642   # Systems known to be in this category are Windows (all variants),
10643   # VMS, and Darwin.
10644   case "$host_os" in
10645     *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10646        gcc_cv_func_mmap_dev_zero=no ;;
10647     *)
10648        gcc_cv_func_mmap_dev_zero=yes;;
10649   esac
10650fi
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10652$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10653
10654   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10656$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10657if ${gcc_cv_decl_map_anon+:} false; then :
10658  $as_echo_n "(cached) " >&6
10659else
10660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661/* end confdefs.h.  */
10662#include <sys/types.h>
10663#include <sys/mman.h>
10664#include <unistd.h>
10665
10666#ifndef MAP_ANONYMOUS
10667#define MAP_ANONYMOUS MAP_ANON
10668#endif
10669
10670int
10671main ()
10672{
10673int n = MAP_ANONYMOUS;
10674  ;
10675  return 0;
10676}
10677_ACEOF
10678if ac_fn_cxx_try_compile "$LINENO"; then :
10679  gcc_cv_decl_map_anon=yes
10680else
10681  gcc_cv_decl_map_anon=no
10682fi
10683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10684fi
10685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10686$as_echo "$gcc_cv_decl_map_anon" >&6; }
10687
10688   if test $gcc_cv_decl_map_anon = no; then
10689     gcc_cv_func_mmap_anon=no
10690   else
10691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10692$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10693if ${gcc_cv_func_mmap_anon+:} false; then :
10694  $as_echo_n "(cached) " >&6
10695else
10696  # Add a system to this blacklist if it has mmap() and MAP_ANON or
10697   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10698   # doesn't give anonymous zeroed pages with the same properties listed
10699   # above for use of /dev/zero.
10700   # Systems known to be in this category are Windows, VMS, and SCO Unix.
10701   case "$host_os" in
10702     *vms* | cygwin* | pe | mingw* | sco* | udk* )
10703        gcc_cv_func_mmap_anon=no ;;
10704     *)
10705        gcc_cv_func_mmap_anon=yes;;
10706   esac
10707fi
10708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10709$as_echo "$gcc_cv_func_mmap_anon" >&6; }
10710   fi
10711fi
10712
10713if test $gcc_cv_func_mmap_file = yes; then
10714
10715$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10716
10717fi
10718if test $gcc_cv_func_mmap_dev_zero = yes; then
10719
10720$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10721
10722fi
10723if test $gcc_cv_func_mmap_anon = yes; then
10724
10725$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10726
10727fi
10728
10729
10730case "${host}" in
10731*-*-*vms*)
10732  # Under VMS, vfork works very differently than on Unix. The standard test
10733  # won't work, and it isn't easily adaptable. It makes more sense to
10734  # just force it.
10735  ac_cv_func_vfork_works=yes
10736  ;;
10737esac
10738ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10739if test "x$ac_cv_type_pid_t" = xyes; then :
10740
10741else
10742
10743cat >>confdefs.h <<_ACEOF
10744#define pid_t int
10745_ACEOF
10746
10747fi
10748
10749for ac_header in vfork.h
10750do :
10751  ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10752if test "x$ac_cv_header_vfork_h" = xyes; then :
10753  cat >>confdefs.h <<_ACEOF
10754#define HAVE_VFORK_H 1
10755_ACEOF
10756
10757fi
10758done
10759
10760for ac_func in fork vfork
10761do :
10762  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10763ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10764if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10765  cat >>confdefs.h <<_ACEOF
10766#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10767_ACEOF
10768
10769fi
10770done
10771
10772if test "x$ac_cv_func_fork" = xyes; then
10773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10774$as_echo_n "checking for working fork... " >&6; }
10775if ${ac_cv_func_fork_works+:} false; then :
10776  $as_echo_n "(cached) " >&6
10777else
10778  if test "$cross_compiling" = yes; then :
10779  ac_cv_func_fork_works=cross
10780else
10781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782/* end confdefs.h.  */
10783$ac_includes_default
10784int
10785main ()
10786{
10787
10788	  /* By Ruediger Kuhlmann. */
10789	  return fork () < 0;
10790
10791  ;
10792  return 0;
10793}
10794_ACEOF
10795if ac_fn_cxx_try_run "$LINENO"; then :
10796  ac_cv_func_fork_works=yes
10797else
10798  ac_cv_func_fork_works=no
10799fi
10800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10801  conftest.$ac_objext conftest.beam conftest.$ac_ext
10802fi
10803
10804fi
10805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10806$as_echo "$ac_cv_func_fork_works" >&6; }
10807
10808else
10809  ac_cv_func_fork_works=$ac_cv_func_fork
10810fi
10811if test "x$ac_cv_func_fork_works" = xcross; then
10812  case $host in
10813    *-*-amigaos* | *-*-msdosdjgpp*)
10814      # Override, as these systems have only a dummy fork() stub
10815      ac_cv_func_fork_works=no
10816      ;;
10817    *)
10818      ac_cv_func_fork_works=yes
10819      ;;
10820  esac
10821  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10822$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10823fi
10824ac_cv_func_vfork_works=$ac_cv_func_vfork
10825if test "x$ac_cv_func_vfork" = xyes; then
10826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10827$as_echo_n "checking for working vfork... " >&6; }
10828if ${ac_cv_func_vfork_works+:} false; then :
10829  $as_echo_n "(cached) " >&6
10830else
10831  if test "$cross_compiling" = yes; then :
10832  ac_cv_func_vfork_works=cross
10833else
10834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835/* end confdefs.h.  */
10836/* Thanks to Paul Eggert for this test.  */
10837$ac_includes_default
10838#include <sys/wait.h>
10839#ifdef HAVE_VFORK_H
10840# include <vfork.h>
10841#endif
10842/* On some sparc systems, changes by the child to local and incoming
10843   argument registers are propagated back to the parent.  The compiler
10844   is told about this with #include <vfork.h>, but some compilers
10845   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10846   static variable whose address is put into a register that is
10847   clobbered by the vfork.  */
10848static void
10849#ifdef __cplusplus
10850sparc_address_test (int arg)
10851# else
10852sparc_address_test (arg) int arg;
10853#endif
10854{
10855  static pid_t child;
10856  if (!child) {
10857    child = vfork ();
10858    if (child < 0) {
10859      perror ("vfork");
10860      _exit(2);
10861    }
10862    if (!child) {
10863      arg = getpid();
10864      write(-1, "", 0);
10865      _exit (arg);
10866    }
10867  }
10868}
10869
10870int
10871main ()
10872{
10873  pid_t parent = getpid ();
10874  pid_t child;
10875
10876  sparc_address_test (0);
10877
10878  child = vfork ();
10879
10880  if (child == 0) {
10881    /* Here is another test for sparc vfork register problems.  This
10882       test uses lots of local variables, at least as many local
10883       variables as main has allocated so far including compiler
10884       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10885       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10886       reuse the register of parent for one of the local variables,
10887       since it will think that parent can't possibly be used any more
10888       in this routine.  Assigning to the local variable will thus
10889       munge parent in the parent process.  */
10890    pid_t
10891      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10892      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10893    /* Convince the compiler that p..p7 are live; otherwise, it might
10894       use the same hardware register for all 8 local variables.  */
10895    if (p != p1 || p != p2 || p != p3 || p != p4
10896	|| p != p5 || p != p6 || p != p7)
10897      _exit(1);
10898
10899    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10900       from child file descriptors.  If the child closes a descriptor
10901       before it execs or exits, this munges the parent's descriptor
10902       as well.  Test for this by closing stdout in the child.  */
10903    _exit(close(fileno(stdout)) != 0);
10904  } else {
10905    int status;
10906    struct stat st;
10907
10908    while (wait(&status) != child)
10909      ;
10910    return (
10911	 /* Was there some problem with vforking?  */
10912	 child < 0
10913
10914	 /* Did the child fail?  (This shouldn't happen.)  */
10915	 || status
10916
10917	 /* Did the vfork/compiler bug occur?  */
10918	 || parent != getpid()
10919
10920	 /* Did the file descriptor bug occur?  */
10921	 || fstat(fileno(stdout), &st) != 0
10922	 );
10923  }
10924}
10925_ACEOF
10926if ac_fn_cxx_try_run "$LINENO"; then :
10927  ac_cv_func_vfork_works=yes
10928else
10929  ac_cv_func_vfork_works=no
10930fi
10931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10932  conftest.$ac_objext conftest.beam conftest.$ac_ext
10933fi
10934
10935fi
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10937$as_echo "$ac_cv_func_vfork_works" >&6; }
10938
10939fi;
10940if test "x$ac_cv_func_fork_works" = xcross; then
10941  ac_cv_func_vfork_works=$ac_cv_func_vfork
10942  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10943$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10944fi
10945
10946if test "x$ac_cv_func_vfork_works" = xyes; then
10947
10948$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10949
10950else
10951
10952$as_echo "#define vfork fork" >>confdefs.h
10953
10954fi
10955if test "x$ac_cv_func_fork_works" = xyes; then
10956
10957$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10958
10959fi
10960
10961
10962
10963      if test "X$prefix" = "XNONE"; then
10964    acl_final_prefix="$ac_default_prefix"
10965  else
10966    acl_final_prefix="$prefix"
10967  fi
10968  if test "X$exec_prefix" = "XNONE"; then
10969    acl_final_exec_prefix='${prefix}'
10970  else
10971    acl_final_exec_prefix="$exec_prefix"
10972  fi
10973  acl_save_prefix="$prefix"
10974  prefix="$acl_final_prefix"
10975  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10976  prefix="$acl_save_prefix"
10977
10978
10979# Check whether --with-gnu-ld was given.
10980if test "${with_gnu_ld+set}" = set; then :
10981  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10982else
10983  with_gnu_ld=no
10984fi
10985
10986# Prepare PATH_SEPARATOR.
10987# The user is always right.
10988if test "${PATH_SEPARATOR+set}" != set; then
10989  echo "#! /bin/sh" >conf$$.sh
10990  echo  "exit 0"   >>conf$$.sh
10991  chmod +x conf$$.sh
10992  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10993    PATH_SEPARATOR=';'
10994  else
10995    PATH_SEPARATOR=:
10996  fi
10997  rm -f conf$$.sh
10998fi
10999ac_prog=ld
11000if test "$GCC" = yes; then
11001  # Check if gcc -print-prog-name=ld gives a path.
11002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11003$as_echo_n "checking for ld used by GCC... " >&6; }
11004  case $host in
11005  *-*-mingw*)
11006    # gcc leaves a trailing carriage return which upsets mingw
11007    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11008  *)
11009    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11010  esac
11011  case $ac_prog in
11012    # Accept absolute paths.
11013    [\\/]* | [A-Za-z]:[\\/]*)
11014      re_direlt='/[^/][^/]*/\.\./'
11015      # Canonicalize the path of ld
11016      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11017      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11018	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11019      done
11020      test -z "$LD" && LD="$ac_prog"
11021      ;;
11022  "")
11023    # If it fails, then pretend we aren't using GCC.
11024    ac_prog=ld
11025    ;;
11026  *)
11027    # If it is relative, then search for the first ld in PATH.
11028    with_gnu_ld=unknown
11029    ;;
11030  esac
11031elif test "$with_gnu_ld" = yes; then
11032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11033$as_echo_n "checking for GNU ld... " >&6; }
11034else
11035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11036$as_echo_n "checking for non-GNU ld... " >&6; }
11037fi
11038if ${acl_cv_path_LD+:} false; then :
11039  $as_echo_n "(cached) " >&6
11040else
11041  if test -z "$LD"; then
11042  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11043  for ac_dir in $PATH; do
11044    test -z "$ac_dir" && ac_dir=.
11045    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11046      acl_cv_path_LD="$ac_dir/$ac_prog"
11047      # Check to see if the program is GNU ld.  I'd rather use --version,
11048      # but apparently some GNU ld's only accept -v.
11049      # Break only if it was the GNU/non-GNU ld that we prefer.
11050      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11051	test "$with_gnu_ld" != no && break
11052      else
11053	test "$with_gnu_ld" != yes && break
11054      fi
11055    fi
11056  done
11057  IFS="$ac_save_ifs"
11058else
11059  acl_cv_path_LD="$LD" # Let the user override the test with a path.
11060fi
11061fi
11062
11063LD="$acl_cv_path_LD"
11064if test -n "$LD"; then
11065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11066$as_echo "$LD" >&6; }
11067else
11068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11069$as_echo "no" >&6; }
11070fi
11071test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11073$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11074if ${acl_cv_prog_gnu_ld+:} false; then :
11075  $as_echo_n "(cached) " >&6
11076else
11077  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11078if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11079  acl_cv_prog_gnu_ld=yes
11080else
11081  acl_cv_prog_gnu_ld=no
11082fi
11083fi
11084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11085$as_echo "$acl_cv_prog_gnu_ld" >&6; }
11086with_gnu_ld=$acl_cv_prog_gnu_ld
11087
11088
11089
11090                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11091$as_echo_n "checking for shared library run path origin... " >&6; }
11092if ${acl_cv_rpath+:} false; then :
11093  $as_echo_n "(cached) " >&6
11094else
11095
11096    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11097    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11098    . ./conftest.sh
11099    rm -f ./conftest.sh
11100    acl_cv_rpath=done
11101
11102fi
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11104$as_echo "$acl_cv_rpath" >&6; }
11105  wl="$acl_cv_wl"
11106  libext="$acl_cv_libext"
11107  shlibext="$acl_cv_shlibext"
11108  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11109  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11110  hardcode_direct="$acl_cv_hardcode_direct"
11111  hardcode_minus_L="$acl_cv_hardcode_minus_L"
11112    # Check whether --enable-rpath was given.
11113if test "${enable_rpath+set}" = set; then :
11114  enableval=$enable_rpath; :
11115else
11116  enable_rpath=yes
11117fi
11118
11119
11120
11121
11122
11123
11124
11125
11126    use_additional=yes
11127
11128  acl_save_prefix="$prefix"
11129  prefix="$acl_final_prefix"
11130  acl_save_exec_prefix="$exec_prefix"
11131  exec_prefix="$acl_final_exec_prefix"
11132
11133    eval additional_includedir=\"$includedir\"
11134    eval additional_libdir=\"$libdir\"
11135
11136  exec_prefix="$acl_save_exec_prefix"
11137  prefix="$acl_save_prefix"
11138
11139
11140# Check whether --with-libiconv-prefix was given.
11141if test "${with_libiconv_prefix+set}" = set; then :
11142  withval=$with_libiconv_prefix;
11143    if test "X$withval" = "Xno"; then
11144      use_additional=no
11145    else
11146      if test "X$withval" = "X"; then
11147
11148  acl_save_prefix="$prefix"
11149  prefix="$acl_final_prefix"
11150  acl_save_exec_prefix="$exec_prefix"
11151  exec_prefix="$acl_final_exec_prefix"
11152
11153          eval additional_includedir=\"$includedir\"
11154          eval additional_libdir=\"$libdir\"
11155
11156  exec_prefix="$acl_save_exec_prefix"
11157  prefix="$acl_save_prefix"
11158
11159      else
11160        additional_includedir="$withval/include"
11161        additional_libdir="$withval/lib"
11162      fi
11163    fi
11164
11165fi
11166
11167
11168# Check whether --with-libiconv-type was given.
11169if test "${with_libiconv_type+set}" = set; then :
11170  withval=$with_libiconv_type;  with_libiconv_type=$withval
11171else
11172   with_libiconv_type=auto
11173fi
11174
11175  lib_type=`eval echo \$with_libiconv_type`
11176
11177      LIBICONV=
11178  LTLIBICONV=
11179  INCICONV=
11180  rpathdirs=
11181  ltrpathdirs=
11182  names_already_handled=
11183  names_next_round='iconv '
11184  while test -n "$names_next_round"; do
11185    names_this_round="$names_next_round"
11186    names_next_round=
11187    for name in $names_this_round; do
11188      already_handled=
11189      for n in $names_already_handled; do
11190        if test "$n" = "$name"; then
11191          already_handled=yes
11192          break
11193        fi
11194      done
11195      if test -z "$already_handled"; then
11196        names_already_handled="$names_already_handled $name"
11197                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11198        eval value=\"\$HAVE_LIB$uppername\"
11199        if test -n "$value"; then
11200          if test "$value" = yes; then
11201            eval value=\"\$LIB$uppername\"
11202            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11203            eval value=\"\$LTLIB$uppername\"
11204            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11205          else
11206                                    :
11207          fi
11208        else
11209                              found_dir=
11210          found_la=
11211          found_so=
11212          found_a=
11213          if test $use_additional = yes; then
11214            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11215              found_dir="$additional_libdir"
11216              found_so="$additional_libdir/lib$name.$shlibext"
11217              if test -f "$additional_libdir/lib$name.la"; then
11218                found_la="$additional_libdir/lib$name.la"
11219              fi
11220            elif test x$lib_type != xshared; then
11221              if test -f "$additional_libdir/lib$name.$libext"; then
11222                found_dir="$additional_libdir"
11223                found_a="$additional_libdir/lib$name.$libext"
11224                if test -f "$additional_libdir/lib$name.la"; then
11225                  found_la="$additional_libdir/lib$name.la"
11226                fi
11227              fi
11228            fi
11229          fi
11230          if test "X$found_dir" = "X"; then
11231            for x in $LDFLAGS $LTLIBICONV; do
11232
11233  acl_save_prefix="$prefix"
11234  prefix="$acl_final_prefix"
11235  acl_save_exec_prefix="$exec_prefix"
11236  exec_prefix="$acl_final_exec_prefix"
11237  eval x=\"$x\"
11238  exec_prefix="$acl_save_exec_prefix"
11239  prefix="$acl_save_prefix"
11240
11241              case "$x" in
11242                -L*)
11243                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11244                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11245                    found_dir="$dir"
11246                    found_so="$dir/lib$name.$shlibext"
11247                    if test -f "$dir/lib$name.la"; then
11248                      found_la="$dir/lib$name.la"
11249                    fi
11250                  elif test x$lib_type != xshared; then
11251                    if test -f "$dir/lib$name.$libext"; then
11252                      found_dir="$dir"
11253                      found_a="$dir/lib$name.$libext"
11254                      if test -f "$dir/lib$name.la"; then
11255                        found_la="$dir/lib$name.la"
11256                      fi
11257                    fi
11258                  fi
11259                  ;;
11260              esac
11261              if test "X$found_dir" != "X"; then
11262                break
11263              fi
11264            done
11265          fi
11266          if test "X$found_dir" != "X"; then
11267                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11268            if test "X$found_so" != "X"; then
11269                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11270                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11271              else
11272                                                                                haveit=
11273                for x in $ltrpathdirs; do
11274                  if test "X$x" = "X$found_dir"; then
11275                    haveit=yes
11276                    break
11277                  fi
11278                done
11279                if test -z "$haveit"; then
11280                  ltrpathdirs="$ltrpathdirs $found_dir"
11281                fi
11282                                if test "$hardcode_direct" = yes; then
11283                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11284                else
11285                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11286                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11287                                                            haveit=
11288                    for x in $rpathdirs; do
11289                      if test "X$x" = "X$found_dir"; then
11290                        haveit=yes
11291                        break
11292                      fi
11293                    done
11294                    if test -z "$haveit"; then
11295                      rpathdirs="$rpathdirs $found_dir"
11296                    fi
11297                  else
11298                                                                                haveit=
11299                    for x in $LDFLAGS $LIBICONV; do
11300
11301  acl_save_prefix="$prefix"
11302  prefix="$acl_final_prefix"
11303  acl_save_exec_prefix="$exec_prefix"
11304  exec_prefix="$acl_final_exec_prefix"
11305  eval x=\"$x\"
11306  exec_prefix="$acl_save_exec_prefix"
11307  prefix="$acl_save_prefix"
11308
11309                      if test "X$x" = "X-L$found_dir"; then
11310                        haveit=yes
11311                        break
11312                      fi
11313                    done
11314                    if test -z "$haveit"; then
11315                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11316                    fi
11317                    if test "$hardcode_minus_L" != no; then
11318                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11319                    else
11320                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11321                    fi
11322                  fi
11323                fi
11324              fi
11325            else
11326              if test "X$found_a" != "X"; then
11327                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11328              else
11329                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11330              fi
11331            fi
11332                        additional_includedir=
11333            case "$found_dir" in
11334              */lib | */lib/)
11335                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11336                additional_includedir="$basedir/include"
11337                ;;
11338            esac
11339            if test "X$additional_includedir" != "X"; then
11340                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11341                haveit=
11342                if test "X$additional_includedir" = "X/usr/local/include"; then
11343                  if test -n "$GCC"; then
11344                    case $host_os in
11345                      linux*) haveit=yes;;
11346                    esac
11347                  fi
11348                fi
11349                if test -z "$haveit"; then
11350                  for x in $CPPFLAGS $INCICONV; do
11351
11352  acl_save_prefix="$prefix"
11353  prefix="$acl_final_prefix"
11354  acl_save_exec_prefix="$exec_prefix"
11355  exec_prefix="$acl_final_exec_prefix"
11356  eval x=\"$x\"
11357  exec_prefix="$acl_save_exec_prefix"
11358  prefix="$acl_save_prefix"
11359
11360                    if test "X$x" = "X-I$additional_includedir"; then
11361                      haveit=yes
11362                      break
11363                    fi
11364                  done
11365                  if test -z "$haveit"; then
11366                    if test -d "$additional_includedir"; then
11367                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11368                    fi
11369                  fi
11370                fi
11371              fi
11372            fi
11373                        if test -n "$found_la"; then
11374                                                        save_libdir="$libdir"
11375              case "$found_la" in
11376                */* | *\\*) . "$found_la" ;;
11377                *) . "./$found_la" ;;
11378              esac
11379              libdir="$save_libdir"
11380                            for dep in $dependency_libs; do
11381                case "$dep" in
11382                  -L*)
11383                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11384                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
11385                      haveit=
11386                      if test "X$additional_libdir" = "X/usr/local/lib"; then
11387                        if test -n "$GCC"; then
11388                          case $host_os in
11389                            linux*) haveit=yes;;
11390                          esac
11391                        fi
11392                      fi
11393                      if test -z "$haveit"; then
11394                        haveit=
11395                        for x in $LDFLAGS $LIBICONV; do
11396
11397  acl_save_prefix="$prefix"
11398  prefix="$acl_final_prefix"
11399  acl_save_exec_prefix="$exec_prefix"
11400  exec_prefix="$acl_final_exec_prefix"
11401  eval x=\"$x\"
11402  exec_prefix="$acl_save_exec_prefix"
11403  prefix="$acl_save_prefix"
11404
11405                          if test "X$x" = "X-L$additional_libdir"; then
11406                            haveit=yes
11407                            break
11408                          fi
11409                        done
11410                        if test -z "$haveit"; then
11411                          if test -d "$additional_libdir"; then
11412                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11413                          fi
11414                        fi
11415                        haveit=
11416                        for x in $LDFLAGS $LTLIBICONV; do
11417
11418  acl_save_prefix="$prefix"
11419  prefix="$acl_final_prefix"
11420  acl_save_exec_prefix="$exec_prefix"
11421  exec_prefix="$acl_final_exec_prefix"
11422  eval x=\"$x\"
11423  exec_prefix="$acl_save_exec_prefix"
11424  prefix="$acl_save_prefix"
11425
11426                          if test "X$x" = "X-L$additional_libdir"; then
11427                            haveit=yes
11428                            break
11429                          fi
11430                        done
11431                        if test -z "$haveit"; then
11432                          if test -d "$additional_libdir"; then
11433                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11434                          fi
11435                        fi
11436                      fi
11437                    fi
11438                    ;;
11439                  -R*)
11440                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11441                    if test "$enable_rpath" != no; then
11442                                                                  haveit=
11443                      for x in $rpathdirs; do
11444                        if test "X$x" = "X$dir"; then
11445                          haveit=yes
11446                          break
11447                        fi
11448                      done
11449                      if test -z "$haveit"; then
11450                        rpathdirs="$rpathdirs $dir"
11451                      fi
11452                                                                  haveit=
11453                      for x in $ltrpathdirs; do
11454                        if test "X$x" = "X$dir"; then
11455                          haveit=yes
11456                          break
11457                        fi
11458                      done
11459                      if test -z "$haveit"; then
11460                        ltrpathdirs="$ltrpathdirs $dir"
11461                      fi
11462                    fi
11463                    ;;
11464                  -l*)
11465                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11466                    ;;
11467                  *.la)
11468                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11469                    ;;
11470                  *)
11471                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11472                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11473                    ;;
11474                esac
11475              done
11476            fi
11477          else
11478                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11479              LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11480              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11481            else
11482              LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11483              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11484            fi
11485          fi
11486        fi
11487      fi
11488    done
11489  done
11490  if test "X$rpathdirs" != "X"; then
11491    if test -n "$hardcode_libdir_separator"; then
11492                        alldirs=
11493      for found_dir in $rpathdirs; do
11494        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11495      done
11496            acl_save_libdir="$libdir"
11497      libdir="$alldirs"
11498      eval flag=\"$hardcode_libdir_flag_spec\"
11499      libdir="$acl_save_libdir"
11500      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11501    else
11502            for found_dir in $rpathdirs; do
11503        acl_save_libdir="$libdir"
11504        libdir="$found_dir"
11505        eval flag=\"$hardcode_libdir_flag_spec\"
11506        libdir="$acl_save_libdir"
11507        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11508      done
11509    fi
11510  fi
11511  if test "X$ltrpathdirs" != "X"; then
11512            for found_dir in $ltrpathdirs; do
11513      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11514    done
11515  fi
11516
11517
11518
11519
11520
11521
11522
11523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11524$as_echo_n "checking for iconv... " >&6; }
11525if ${am_cv_func_iconv+:} false; then :
11526  $as_echo_n "(cached) " >&6
11527else
11528
11529    am_cv_func_iconv="no, consider installing GNU libiconv"
11530    am_cv_lib_iconv=no
11531                    am_save_CPPFLAGS="$CPPFLAGS"
11532    CPPFLAGS="$CPPFLAGS $INCICONV"
11533    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h.  */
11535#include <stdlib.h>
11536#include <iconv.h>
11537int
11538main ()
11539{
11540iconv_t cd = iconv_open("","");
11541       iconv(cd,NULL,NULL,NULL,NULL);
11542       iconv_close(cd);
11543  ;
11544  return 0;
11545}
11546_ACEOF
11547if ac_fn_cxx_try_link "$LINENO"; then :
11548  am_cv_func_iconv=yes
11549fi
11550rm -f core conftest.err conftest.$ac_objext \
11551    conftest$ac_exeext conftest.$ac_ext
11552    CPPFLAGS="$am_save_CPPFLAGS"
11553
11554    if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11555      for _libs in .libs _libs; do
11556        am_save_CPPFLAGS="$CPPFLAGS"
11557        am_save_LIBS="$LIBS"
11558        CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11559        LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11560        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561/* end confdefs.h.  */
11562#include <stdlib.h>
11563#include <iconv.h>
11564int
11565main ()
11566{
11567iconv_t cd = iconv_open("","");
11568           iconv(cd,NULL,NULL,NULL,NULL);
11569           iconv_close(cd);
11570  ;
11571  return 0;
11572}
11573_ACEOF
11574if ac_fn_cxx_try_link "$LINENO"; then :
11575  INCICONV="-I../libiconv/include"
11576          LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11577          LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11578          am_cv_lib_iconv=yes
11579          am_cv_func_iconv=yes
11580fi
11581rm -f core conftest.err conftest.$ac_objext \
11582    conftest$ac_exeext conftest.$ac_ext
11583        CPPFLAGS="$am_save_CPPFLAGS"
11584        LIBS="$am_save_LIBS"
11585        if test "$am_cv_func_iconv" = "yes"; then
11586          break
11587        fi
11588      done
11589    fi
11590
11591    if test "$am_cv_func_iconv" != yes; then
11592      am_save_CPPFLAGS="$CPPFLAGS"
11593      am_save_LIBS="$LIBS"
11594      CPPFLAGS="$CPPFLAGS $INCICONV"
11595      LIBS="$LIBS $LIBICONV"
11596      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597/* end confdefs.h.  */
11598#include <stdlib.h>
11599#include <iconv.h>
11600int
11601main ()
11602{
11603iconv_t cd = iconv_open("","");
11604         iconv(cd,NULL,NULL,NULL,NULL);
11605         iconv_close(cd);
11606  ;
11607  return 0;
11608}
11609_ACEOF
11610if ac_fn_cxx_try_link "$LINENO"; then :
11611  am_cv_lib_iconv=yes
11612        am_cv_func_iconv=yes
11613fi
11614rm -f core conftest.err conftest.$ac_objext \
11615    conftest$ac_exeext conftest.$ac_ext
11616      CPPFLAGS="$am_save_CPPFLAGS"
11617      LIBS="$am_save_LIBS"
11618    fi
11619
11620fi
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11622$as_echo "$am_cv_func_iconv" >&6; }
11623  if test "$am_cv_func_iconv" = yes; then
11624
11625$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11626
11627  fi
11628  if test "$am_cv_lib_iconv" = yes; then
11629
11630  for element in $INCICONV; do
11631    haveit=
11632    for x in $CPPFLAGS; do
11633
11634  acl_save_prefix="$prefix"
11635  prefix="$acl_final_prefix"
11636  acl_save_exec_prefix="$exec_prefix"
11637  exec_prefix="$acl_final_exec_prefix"
11638  eval x=\"$x\"
11639  exec_prefix="$acl_save_exec_prefix"
11640  prefix="$acl_save_prefix"
11641
11642      if test "X$x" = "X$element"; then
11643        haveit=yes
11644        break
11645      fi
11646    done
11647    if test -z "$haveit"; then
11648      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11649    fi
11650  done
11651
11652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11653$as_echo_n "checking how to link with libiconv... " >&6; }
11654    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11655$as_echo "$LIBICONV" >&6; }
11656  else
11657    LIBICONV=
11658    LTLIBICONV=
11659  fi
11660
11661
11662
11663  if test "$am_cv_func_iconv" = yes; then
11664    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11665$as_echo_n "checking for iconv declaration... " >&6; }
11666    if ${am_cv_proto_iconv+:} false; then :
11667  $as_echo_n "(cached) " >&6
11668else
11669
11670      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671/* end confdefs.h.  */
11672
11673#include <stdlib.h>
11674#include <iconv.h>
11675extern
11676#ifdef __cplusplus
11677"C"
11678#endif
11679#if defined(__STDC__) || defined(__cplusplus)
11680size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11681#else
11682size_t iconv();
11683#endif
11684
11685int
11686main ()
11687{
11688
11689  ;
11690  return 0;
11691}
11692_ACEOF
11693if ac_fn_cxx_try_compile "$LINENO"; then :
11694  am_cv_proto_iconv_arg1=""
11695else
11696  am_cv_proto_iconv_arg1="const"
11697fi
11698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11699      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);"
11700fi
11701
11702    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11704         }$am_cv_proto_iconv" >&5
11705$as_echo "${ac_t:-
11706         }$am_cv_proto_iconv" >&6; }
11707
11708cat >>confdefs.h <<_ACEOF
11709#define ICONV_CONST $am_cv_proto_iconv_arg1
11710_ACEOF
11711
11712  fi
11713
11714
11715# Until we have in-tree GNU iconv:
11716LIBICONV_DEP=
11717if test -f "$LTLIBICONV"; then
11718  LIBICONV_DEP=$LTLIBICONV
11719fi
11720
11721
11722
11723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11724$as_echo_n "checking for LC_MESSAGES... " >&6; }
11725if ${am_cv_val_LC_MESSAGES+:} false; then :
11726  $as_echo_n "(cached) " >&6
11727else
11728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729/* end confdefs.h.  */
11730#include <locale.h>
11731int
11732main ()
11733{
11734return LC_MESSAGES
11735  ;
11736  return 0;
11737}
11738_ACEOF
11739if ac_fn_cxx_try_link "$LINENO"; then :
11740  am_cv_val_LC_MESSAGES=yes
11741else
11742  am_cv_val_LC_MESSAGES=no
11743fi
11744rm -f core conftest.err conftest.$ac_objext \
11745    conftest$ac_exeext conftest.$ac_ext
11746fi
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11748$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11749  if test $am_cv_val_LC_MESSAGES = yes; then
11750
11751$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11752
11753  fi
11754
11755
11756
11757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11758$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11759if ${am_cv_langinfo_codeset+:} false; then :
11760  $as_echo_n "(cached) " >&6
11761else
11762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763/* end confdefs.h.  */
11764#include <langinfo.h>
11765int
11766main ()
11767{
11768char* cs = nl_langinfo(CODESET);
11769  ;
11770  return 0;
11771}
11772_ACEOF
11773if ac_fn_cxx_try_link "$LINENO"; then :
11774  am_cv_langinfo_codeset=yes
11775else
11776  am_cv_langinfo_codeset=no
11777fi
11778rm -f core conftest.err conftest.$ac_objext \
11779    conftest$ac_exeext conftest.$ac_ext
11780
11781fi
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11783$as_echo "$am_cv_langinfo_codeset" >&6; }
11784  if test $am_cv_langinfo_codeset = yes; then
11785
11786$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11787
11788  fi
11789
11790
11791# We will need to find libiberty.h and ansidecl.h
11792saved_CFLAGS="$CFLAGS"
11793CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11794saved_CXXFLAGS="$CXXFLAGS"
11795CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11796
11797# gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11798# normal autoconf function for these.  But force definition of
11799# HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11800# basename handling in libiberty.h.
11801as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11802ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11803#undef HAVE_DECL_BASENAME
11804#define HAVE_DECL_BASENAME 1
11805#include \"ansidecl.h\"
11806#include \"system.h\"
11807"
11808if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11809  ac_have_decl=1
11810else
11811  ac_have_decl=0
11812fi
11813
11814cat >>confdefs.h <<_ACEOF
11815#define HAVE_DECL_BASENAME $ac_have_decl
11816_ACEOF
11817as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11818ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11819#undef HAVE_DECL_BASENAME
11820#define HAVE_DECL_BASENAME 1
11821#include \"ansidecl.h\"
11822#include \"system.h\"
11823"
11824if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11825  ac_have_decl=1
11826else
11827  ac_have_decl=0
11828fi
11829
11830cat >>confdefs.h <<_ACEOF
11831#define HAVE_DECL_STRSTR $ac_have_decl
11832_ACEOF
11833
11834
11835for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11836	madvise stpcpy strnlen strsignal strverscmp \
11837	strtol strtoul strtoll strtoull setenv unsetenv \
11838	errno snprintf vsnprintf vasprintf malloc realloc calloc \
11839	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
11840do
11841  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11843$as_echo_n "checking whether $ac_func is declared... " >&6; }
11844if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11845  $as_echo_n "(cached) " >&6
11846else
11847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848/* end confdefs.h.  */
11849#undef $ac_tr_decl
11850#define $ac_tr_decl 1
11851
11852#include "ansidecl.h"
11853#include "system.h"
11854
11855int
11856main ()
11857{
11858#ifndef $ac_func
11859char *(*pfn) = (char *(*)) $ac_func ;
11860#endif
11861  ;
11862  return 0;
11863}
11864_ACEOF
11865if ac_fn_cxx_try_compile "$LINENO"; then :
11866  eval "gcc_cv_have_decl_$ac_func=yes"
11867else
11868  eval "gcc_cv_have_decl_$ac_func=no"
11869fi
11870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871fi
11872
11873if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11876#define $ac_tr_decl 1
11877_ACEOF
11878
11879else
11880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11882#define $ac_tr_decl 0
11883_ACEOF
11884
11885fi
11886
11887done
11888
11889
11890for ac_func in getrlimit setrlimit getrusage
11891do
11892  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11894$as_echo_n "checking whether $ac_func is declared... " >&6; }
11895if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11896  $as_echo_n "(cached) " >&6
11897else
11898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899/* end confdefs.h.  */
11900#undef $ac_tr_decl
11901#define $ac_tr_decl 1
11902
11903#include "ansidecl.h"
11904#include "system.h"
11905#ifdef HAVE_SYS_RESOURCE_H
11906#include <sys/resource.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 mallinfo mallinfo2
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_MALLOC_H
11961#include <malloc.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
12000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001/* end confdefs.h.  */
12002
12003#include "ansidecl.h"
12004#include "system.h"
12005#ifdef HAVE_SYS_RESOURCE_H
12006#include <sys/resource.h>
12007#endif
12008
12009int
12010main ()
12011{
12012rlim_t l = 0;
12013  ;
12014  return 0;
12015}
12016_ACEOF
12017if ac_fn_cxx_try_compile "$LINENO"; then :
12018
12019else
12020
12021$as_echo "#define rlim_t long" >>confdefs.h
12022
12023fi
12024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025
12026# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12027# FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12028# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12029# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12030for ac_func in ldgetname
12031do
12032  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12034$as_echo_n "checking whether $ac_func is declared... " >&6; }
12035if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12036  $as_echo_n "(cached) " >&6
12037else
12038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039/* end confdefs.h.  */
12040#undef $ac_tr_decl
12041#define $ac_tr_decl 1
12042
12043#include "ansidecl.h"
12044#include "system.h"
12045#ifdef HAVE_LDFCN_H
12046#undef FREAD
12047#undef FWRITE
12048#include <ldfcn.h>
12049#endif
12050
12051
12052int
12053main ()
12054{
12055#ifndef $ac_func
12056char *(*pfn) = (char *(*)) $ac_func ;
12057#endif
12058  ;
12059  return 0;
12060}
12061_ACEOF
12062if ac_fn_cxx_try_compile "$LINENO"; then :
12063  eval "gcc_cv_have_decl_$ac_func=yes"
12064else
12065  eval "gcc_cv_have_decl_$ac_func=no"
12066fi
12067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068fi
12069
12070if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12073#define $ac_tr_decl 1
12074_ACEOF
12075
12076else
12077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12079#define $ac_tr_decl 0
12080_ACEOF
12081
12082fi
12083
12084done
12085
12086
12087for ac_func in times
12088do
12089  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12091$as_echo_n "checking whether $ac_func is declared... " >&6; }
12092if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12093  $as_echo_n "(cached) " >&6
12094else
12095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096/* end confdefs.h.  */
12097#undef $ac_tr_decl
12098#define $ac_tr_decl 1
12099
12100#include "ansidecl.h"
12101#include "system.h"
12102#ifdef HAVE_SYS_TIMES_H
12103#include <sys/times.h>
12104#endif
12105
12106
12107int
12108main ()
12109{
12110#ifndef $ac_func
12111char *(*pfn) = (char *(*)) $ac_func ;
12112#endif
12113  ;
12114  return 0;
12115}
12116_ACEOF
12117if ac_fn_cxx_try_compile "$LINENO"; then :
12118  eval "gcc_cv_have_decl_$ac_func=yes"
12119else
12120  eval "gcc_cv_have_decl_$ac_func=no"
12121fi
12122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12123fi
12124
12125if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12127$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12128#define $ac_tr_decl 1
12129_ACEOF
12130
12131else
12132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12134#define $ac_tr_decl 0
12135_ACEOF
12136
12137fi
12138
12139done
12140
12141
12142for ac_func in sigaltstack
12143do
12144  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12146$as_echo_n "checking whether $ac_func is declared... " >&6; }
12147if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12148  $as_echo_n "(cached) " >&6
12149else
12150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151/* end confdefs.h.  */
12152#undef $ac_tr_decl
12153#define $ac_tr_decl 1
12154
12155#include "ansidecl.h"
12156#include "system.h"
12157#include <signal.h>
12158
12159
12160int
12161main ()
12162{
12163#ifndef $ac_func
12164char *(*pfn) = (char *(*)) $ac_func ;
12165#endif
12166  ;
12167  return 0;
12168}
12169_ACEOF
12170if ac_fn_cxx_try_compile "$LINENO"; then :
12171  eval "gcc_cv_have_decl_$ac_func=yes"
12172else
12173  eval "gcc_cv_have_decl_$ac_func=no"
12174fi
12175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176fi
12177
12178if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12181#define $ac_tr_decl 1
12182_ACEOF
12183
12184else
12185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12187#define $ac_tr_decl 0
12188_ACEOF
12189
12190fi
12191
12192done
12193
12194
12195# More time-related stuff.
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12197$as_echo_n "checking for struct tms... " >&6; }
12198if ${ac_cv_struct_tms+:} false; then :
12199  $as_echo_n "(cached) " >&6
12200else
12201
12202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203/* end confdefs.h.  */
12204
12205#include "ansidecl.h"
12206#include "system.h"
12207#ifdef HAVE_SYS_TIMES_H
12208#include <sys/times.h>
12209#endif
12210
12211int
12212main ()
12213{
12214struct tms tms;
12215  ;
12216  return 0;
12217}
12218_ACEOF
12219if ac_fn_cxx_try_compile "$LINENO"; then :
12220  ac_cv_struct_tms=yes
12221else
12222  ac_cv_struct_tms=no
12223fi
12224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12225fi
12226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12227$as_echo "$ac_cv_struct_tms" >&6; }
12228if test $ac_cv_struct_tms = yes; then
12229
12230$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12231
12232fi
12233
12234# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12235# revisit after autoconf 2.50.
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12237$as_echo_n "checking for clock_t... " >&6; }
12238if ${gcc_cv_type_clock_t+:} false; then :
12239  $as_echo_n "(cached) " >&6
12240else
12241
12242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243/* end confdefs.h.  */
12244
12245#include "ansidecl.h"
12246#include "system.h"
12247
12248int
12249main ()
12250{
12251clock_t x;
12252  ;
12253  return 0;
12254}
12255_ACEOF
12256if ac_fn_cxx_try_compile "$LINENO"; then :
12257  gcc_cv_type_clock_t=yes
12258else
12259  gcc_cv_type_clock_t=no
12260fi
12261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12262fi
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12264$as_echo "$gcc_cv_type_clock_t" >&6; }
12265if test $gcc_cv_type_clock_t = yes; then
12266
12267$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12268
12269fi
12270
12271# Check if F_SETLKW is supported by fcntl.
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12273$as_echo_n "checking for F_SETLKW... " >&6; }
12274if ${ac_cv_f_setlkw+:} false; then :
12275  $as_echo_n "(cached) " >&6
12276else
12277
12278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279/* end confdefs.h.  */
12280
12281#include <fcntl.h>
12282int
12283main ()
12284{
12285
12286struct flock fl;
12287fl.l_whence = 0;
12288fl.l_start = 0;
12289fl.l_len = 0;
12290fl.l_pid = 0;
12291return fcntl (1, F_SETLKW, &fl);
12292  ;
12293  return 0;
12294}
12295_ACEOF
12296if ac_fn_cxx_try_compile "$LINENO"; then :
12297  ac_cv_f_setlkw=yes
12298else
12299  ac_cv_f_setlkw=no
12300fi
12301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12302fi
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12304$as_echo "$ac_cv_f_setlkw" >&6; }
12305if test $ac_cv_f_setlkw = yes; then
12306
12307$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12308
12309fi
12310
12311# Check if O_CLOEXEC is defined by fcntl
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12313$as_echo_n "checking for O_CLOEXEC... " >&6; }
12314if ${ac_cv_o_cloexec+:} false; then :
12315  $as_echo_n "(cached) " >&6
12316else
12317
12318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319/* end confdefs.h.  */
12320
12321#include <fcntl.h>
12322int
12323main ()
12324{
12325
12326return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12327  ;
12328  return 0;
12329}
12330_ACEOF
12331if ac_fn_cxx_try_compile "$LINENO"; then :
12332  ac_cv_o_cloexec=yes
12333else
12334  ac_cv_o_cloexec=no
12335fi
12336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12337fi
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12339$as_echo "$ac_cv_o_cloexec" >&6; }
12340if test $ac_cv_o_cloexec = yes; then
12341
12342$as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12343
12344fi
12345
12346# C++ Modules would like some networking features to provide the mapping
12347# server.  You can still use modules without them though.
12348# The following network-related checks could probably do with some
12349# Windows and other non-linux defenses and checking.
12350
12351# Local socket connectivity wants AF_UNIX networking
12352# Check for AF_UNIX networking
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12354$as_echo_n "checking for AF_UNIX... " >&6; }
12355if ${ac_cv_af_unix+:} false; then :
12356  $as_echo_n "(cached) " >&6
12357else
12358
12359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360/* end confdefs.h.  */
12361
12362#include <sys/types.h>
12363#include <sys/socket.h>
12364#include <sys/un.h>
12365#include <netinet/in.h>
12366int
12367main ()
12368{
12369
12370sockaddr_un un;
12371un.sun_family = AF_UNSPEC;
12372int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12373connect (fd, (sockaddr *)&un, sizeof (un));
12374  ;
12375  return 0;
12376}
12377_ACEOF
12378if ac_fn_cxx_try_compile "$LINENO"; then :
12379  ac_cv_af_unix=yes
12380else
12381  ac_cv_af_unix=no
12382fi
12383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384fi
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12386$as_echo "$ac_cv_af_unix" >&6; }
12387if test $ac_cv_af_unix = yes; then
12388
12389$as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12390
12391fi
12392
12393# Remote socket connectivity wants AF_INET6 networking
12394# Check for AF_INET6 networking
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12396$as_echo_n "checking for AF_INET6... " >&6; }
12397if ${ac_cv_af_inet6+:} false; then :
12398  $as_echo_n "(cached) " >&6
12399else
12400
12401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402/* end confdefs.h.  */
12403
12404#include <sys/types.h>
12405#include <sys/socket.h>
12406#include <netinet/in.h>
12407#include <netdb.h>
12408int
12409main ()
12410{
12411
12412sockaddr_in6 in6;
12413in6.sin6_family = AF_UNSPEC;
12414struct addrinfo *addrs = 0;
12415struct addrinfo hints;
12416hints.ai_flags = 0;
12417hints.ai_family = AF_INET6;
12418hints.ai_socktype = SOCK_STREAM;
12419hints.ai_protocol = 0;
12420hints.ai_canonname = 0;
12421hints.ai_addr = 0;
12422hints.ai_next = 0;
12423int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12424const char *str = gai_strerror (e);
12425freeaddrinfo (addrs);
12426int fd = socket (AF_INET6, SOCK_STREAM, 0);
12427connect (fd, (sockaddr *)&in6, sizeof (in6));
12428  ;
12429  return 0;
12430}
12431_ACEOF
12432if ac_fn_cxx_try_compile "$LINENO"; then :
12433  ac_cv_af_inet6=yes
12434else
12435  ac_cv_af_inet6=no
12436fi
12437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438fi
12439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12440$as_echo "$ac_cv_af_inet6" >&6; }
12441if test $ac_cv_af_inet6 = yes; then
12442
12443$as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12444
12445fi
12446
12447# Check if _LK_LOCK is supported by _locking
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12449$as_echo_n "checking for _LK_LOCK... " >&6; }
12450if ${ac_cv_lk_lock+:} false; then :
12451  $as_echo_n "(cached) " >&6
12452else
12453
12454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455/* end confdefs.h.  */
12456
12457#include <io.h>
12458#include <sys/locking.h>
12459int
12460main ()
12461{
12462
12463  int fd;
12464  return _locking (fd, _LK_LOCK, 0);
12465  ;
12466  return 0;
12467}
12468_ACEOF
12469if ac_fn_cxx_try_compile "$LINENO"; then :
12470  ac_cv_lk_lock=yes
12471else
12472  ac_cv_lk_lock=no
12473fi
12474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475fi
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12477$as_echo "$ac_cv_lk_lock" >&6; }
12478if test $ac_cv_lk_lock = yes; then
12479
12480$as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12481
12482fi
12483
12484# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12485CFLAGS="$saved_CFLAGS"
12486CXXFLAGS="$saved_CXXFLAGS"
12487
12488# mkdir takes a single argument on some systems.
12489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12490$as_echo_n "checking if mkdir takes one argument... " >&6; }
12491if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12492  $as_echo_n "(cached) " >&6
12493else
12494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495/* end confdefs.h.  */
12496
12497#include <sys/types.h>
12498#ifdef HAVE_SYS_STAT_H
12499# include <sys/stat.h>
12500#endif
12501#ifdef HAVE_UNISTD_H
12502# include <unistd.h>
12503#endif
12504#ifdef HAVE_DIRECT_H
12505# include <direct.h>
12506#endif
12507int
12508main ()
12509{
12510mkdir ("foo", 0);
12511  ;
12512  return 0;
12513}
12514_ACEOF
12515if ac_fn_cxx_try_compile "$LINENO"; then :
12516  gcc_cv_mkdir_takes_one_arg=no
12517else
12518  gcc_cv_mkdir_takes_one_arg=yes
12519fi
12520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12521fi
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12523$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12524if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12525
12526$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12527
12528fi
12529
12530
12531# File extensions
12532manext='.1'
12533objext='.o'
12534
12535
12536
12537# With Setjmp/Longjmp based exception handling.
12538# Check whether --enable-sjlj-exceptions was given.
12539if test "${enable_sjlj_exceptions+set}" = set; then :
12540  enableval=$enable_sjlj_exceptions; case $target in
12541  *-*-hpux10*)
12542    if test $enableval != yes; then
12543      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12544$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12545      enableval=yes
12546    fi
12547    ;;
12548esac
12549force_sjlj_exceptions=yes
12550else
12551  case $target in
12552  *-*-hpux10*)
12553    force_sjlj_exceptions=yes
12554    enableval=yes
12555    ;;
12556  lm32*-*-*)
12557     force_sjlj_exceptions=yes
12558     enableval=yes
12559     ;;
12560  *)
12561    force_sjlj_exceptions=no
12562    ;;
12563esac
12564fi
12565
12566if test $force_sjlj_exceptions = yes; then
12567  sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12568
12569cat >>confdefs.h <<_ACEOF
12570#define CONFIG_SJLJ_EXCEPTIONS $sjlj
12571_ACEOF
12572
12573fi
12574
12575# --------------------------------------------------------
12576# Build, host, and target specific configuration fragments
12577# --------------------------------------------------------
12578
12579# Collect build-machine-specific information.
12580. ${srcdir}/config.build || exit 1
12581
12582# Collect host-machine-specific information.
12583. ${srcdir}/config.host || exit 1
12584
12585target_gtfiles=
12586
12587# Collect target-machine-specific information.
12588. ${srcdir}/config.gcc || exit 1
12589
12590extra_objs="${host_extra_objs} ${extra_objs}"
12591extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12592
12593# Default the target-machine variables that were not explicitly set.
12594if test x"$tm_file" = x
12595then tm_file=$cpu_type/$cpu_type.h; fi
12596
12597if test x"$extra_headers" = x
12598then extra_headers=; fi
12599
12600if test x$md_file = x
12601then md_file=$cpu_type/$cpu_type.md; fi
12602
12603if test x$out_file = x
12604then out_file=$cpu_type/$cpu_type.c; fi
12605
12606if test x"$tmake_file" = x
12607then tmake_file=$cpu_type/t-$cpu_type
12608fi
12609
12610# Support --enable-initfini-array.
12611if test x$enable_initfini_array != xno; then
12612  tm_file="${tm_file} initfini-array.h"
12613fi
12614
12615if test x"$dwarf2" = xyes
12616then tm_file="$tm_file tm-dwarf2.h"
12617fi
12618
12619# Say what files are being used for the output code and MD file.
12620echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12621echo "Using \`$srcdir/config/$md_file' as machine description file."
12622
12623# If any of the xm_file variables contain nonexistent files, warn
12624# about them and drop them.
12625
12626bx=
12627for x in $build_xm_file; do
12628  if    test -f $srcdir/config/$x
12629  then      bx="$bx $x"
12630  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12631$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12632  fi
12633done
12634build_xm_file="$bx"
12635
12636hx=
12637for x in $host_xm_file; do
12638  if    test -f $srcdir/config/$x
12639  then      hx="$hx $x"
12640  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12641$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12642  fi
12643done
12644host_xm_file="$hx"
12645
12646tx=
12647for x in $xm_file; do
12648  if    test -f $srcdir/config/$x
12649  then      tx="$tx $x"
12650  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12651$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12652  fi
12653done
12654xm_file="$tx"
12655
12656count=a
12657for f in $tm_file; do
12658	count=${count}x
12659done
12660if test $count = ax; then
12661	echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12662else
12663	echo "Using the following target machine macro files:"
12664	for f in $tm_file; do
12665		echo "	$srcdir/config/$f"
12666	done
12667fi
12668
12669if test x$use_long_long_for_widest_fast_int = xyes; then
12670
12671$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12672
12673fi
12674
12675gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12676
12677cat >>confdefs.h <<_ACEOF
12678#define HAVE_GNU_LD $gnu_ld_bool
12679_ACEOF
12680
12681
12682gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12683
12684cat >>confdefs.h <<_ACEOF
12685#define HAVE_GNU_AS $gnu_as_bool
12686_ACEOF
12687
12688
12689count=a
12690for f in $host_xm_file; do
12691	count=${count}x
12692done
12693if test $count = a; then
12694	:
12695elif test $count = ax; then
12696	echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12697else
12698	echo "Using the following host machine macro files:"
12699	for f in $host_xm_file; do
12700		echo "	$srcdir/config/$f"
12701	done
12702fi
12703echo "Using ${out_host_hook_obj} for host machine hooks."
12704
12705if test "$host_xm_file" != "$build_xm_file"; then
12706	count=a
12707	for f in $build_xm_file; do
12708		count=${count}x
12709	done
12710	if test $count = a; then
12711		:
12712	elif test $count = ax; then
12713		echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12714	else
12715		echo "Using the following build machine macro files:"
12716		for f in $build_xm_file; do
12717			echo "	$srcdir/config/$f"
12718		done
12719	fi
12720fi
12721
12722if test -n "$configured_native_system_header_dir"; then
12723  native_system_header_dir=$configured_native_system_header_dir
12724fi
12725NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12726
12727
12728case ${host} in
12729  powerpc*-*-darwin*)
12730    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12731$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12732if ${gcc_cv_mcontext_underscores+:} false; then :
12733  $as_echo_n "(cached) " >&6
12734else
12735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736/* end confdefs.h.  */
12737
12738#include <sys/cdefs.h>
12739#include <sys/signal.h>
12740#include <ucontext.h>
12741int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12742
12743_ACEOF
12744if ac_fn_cxx_try_compile "$LINENO"; then :
12745  gcc_cv_mcontext_underscores=no
12746else
12747  gcc_cv_mcontext_underscores=yes
12748fi
12749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750fi
12751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12752$as_echo "$gcc_cv_mcontext_underscores" >&6; }
12753      if test $gcc_cv_mcontext_underscores = yes; then
12754
12755$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12756
12757      fi
12758    ;;
12759esac
12760
12761# ---------
12762# Threading
12763# ---------
12764
12765# Check if a valid thread package
12766case ${enable_threads} in
12767  "" | no)
12768    # No threads
12769    target_thread_file='single'
12770    ;;
12771  yes)
12772    # default
12773    target_thread_file='single'
12774    ;;
12775  aix | dce | lynx | mipssde | posix | rtems | \
12776  single | tpf | vxworks | win32)
12777    target_thread_file=${enable_threads}
12778    ;;
12779  *)
12780    echo "${enable_threads} is an unknown thread package" 1>&2
12781    exit 1
12782    ;;
12783esac
12784
12785if test x${thread_file} = x; then
12786  # No thread file set by target-specific clauses in config.gcc,
12787  # so use file chosen by default logic above
12788  thread_file=${target_thread_file}
12789fi
12790
12791# --------
12792# UNSORTED
12793# --------
12794
12795use_cxa_atexit=no
12796if test x$enable___cxa_atexit = xyes || \
12797   test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12798  if test x$host = x$target; then
12799    case $host in
12800      # mingw32 doesn't have __cxa_atexit but uses atexit registration
12801      # keyed to flag_use_cxa_atexit
12802      *-*-mingw32*)
12803	use_cxa_atexit=yes
12804	;;
12805      powerpc-ibm-aix*)
12806	use_cxa_atexit=yes
12807	;;
12808      *)
12809	ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12810if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12811  use_cxa_atexit=yes
12812else
12813  echo "__cxa_atexit can't be enabled on this target"
12814fi
12815
12816	;;
12817    esac
12818  else
12819    # We can't check for __cxa_atexit when building a cross, so assume
12820    # it is available
12821    use_cxa_atexit=yes
12822  fi
12823  if test x$use_cxa_atexit = xyes; then
12824
12825$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12826
12827  fi
12828fi
12829
12830# Look for a file containing extra machine modes.
12831if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12832  extra_modes_file='$(srcdir)'/config/${extra_modes}
12833
12834
12835cat >>confdefs.h <<_ACEOF
12836#define EXTRA_MODES_FILE "config/$extra_modes"
12837_ACEOF
12838
12839fi
12840
12841# Convert extra_options into a form suitable for Makefile use.
12842extra_opt_files=
12843all_opt_files=
12844for f in $extra_options; do
12845  extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12846  all_opt_files="$all_opt_files $srcdir/config/$f"
12847done
12848
12849
12850# auto-host.h is the file containing items generated by autoconf and is
12851# the first file included by config.h.
12852# If host=build, it is correct to have bconfig include auto-host.h
12853# as well.  If host!=build, we are in error and need to do more
12854# work to find out the build config parameters.
12855if test x$host = x$build
12856then
12857	build_auto=auto-host.h
12858	HAVE_AUTO_BUILD='# '
12859else
12860	# We create a subdir, then run autoconf in the subdir.
12861	# To prevent recursion we set host and build for the new
12862	# invocation of configure to the build for this invocation
12863	# of configure.
12864	tempdir=build.$$
12865	rm -rf $tempdir
12866	mkdir $tempdir
12867	cd $tempdir
12868	case ${srcdir} in
12869	/* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12870	*) realsrcdir=../${srcdir};;
12871	esac
12872	# Clearing GMPINC is necessary to prevent host headers being
12873	# used by the build compiler.  Defining GENERATOR_FILE stops
12874	# system.h from including gmp.h.
12875	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12876	CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12877	LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12878	GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
12879	${realsrcdir}/configure \
12880		--enable-languages=${enable_languages-all} \
12881		${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12882		${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12883		--target=$target_alias --host=$build_alias \
12884		--build=$build_alias || exit # retaining $tempdir
12885
12886	# We just finished tests for the build machine, so rename
12887	# the file auto-build.h in the gcc directory.
12888	mv auto-host.h ../auto-build.h
12889	cd ..
12890	rm -rf $tempdir
12891	build_auto=auto-build.h
12892	HAVE_AUTO_BUILD=
12893fi
12894
12895
12896
12897tm_file="${tm_file} defaults.h"
12898tm_p_file="${tm_p_file} tm-preds.h"
12899tm_d_file="${tm_d_file} defaults.h"
12900host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12901build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12902# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12903# put this back in temporarily.
12904xm_file="auto-host.h ansidecl.h ${xm_file}"
12905
12906# --------
12907# UNSORTED
12908# --------
12909
12910# Compile in configure arguments.
12911if test -f configargs.h ; then
12912	# Being re-configured.
12913	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12914	gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12915	if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12916		gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12917	fi
12918else
12919	gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12920fi
12921
12922# Double all backslashes and backslash all quotes to turn
12923# gcc_config_arguments into a C string.
12924sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12925$gcc_config_arguments
12926EOF
12927gcc_config_arguments_str=`cat conftest.out`
12928rm -f conftest.out
12929
12930cat > configargs.h <<EOF
12931/* Generated automatically. */
12932static const char configuration_arguments[] = "$gcc_config_arguments_str";
12933static const char thread_model[] = "$thread_file";
12934
12935static const struct {
12936  const char *name, *value;
12937} configure_default_options[] = $configure_default_options;
12938EOF
12939
12940gcc_BASEVER=`cat $srcdir/BASE-VER`
12941gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12942gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12943if test -f $srcdir/REVISION ; then
12944	gcc_REVISION=`cat $srcdir/REVISION`
12945else
12946        gcc_REVISION=""
12947fi
12948cat > plugin-version.h <<EOF
12949#include "configargs.h"
12950
12951#define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12952#define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12953#define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12954#define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12955
12956static char basever[] = "$gcc_BASEVER";
12957static char datestamp[] = "$gcc_DATESTAMP";
12958static char devphase[] = "$gcc_DEVPHASE";
12959static char revision[] = "$gcc_REVISION";
12960
12961/* FIXME plugins: We should make the version information more precise.
12962   One way to do is to add a checksum. */
12963
12964static struct plugin_gcc_version gcc_version = {basever, datestamp,
12965						devphase, revision,
12966						configuration_arguments};
12967EOF
12968
12969# Determine what GCC version number to use in filesystem paths.
12970
12971  get_gcc_base_ver="cat"
12972
12973# Check whether --with-gcc-major-version-only was given.
12974if test "${with_gcc_major_version_only+set}" = set; then :
12975  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12976        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12977      fi
12978
12979fi
12980
12981
12982
12983
12984# Internationalization
12985# If we haven't got the data from the intl directory,
12986# assume NLS is disabled.
12987USE_NLS=no
12988LIBINTL=
12989LIBINTL_DEP=
12990INCINTL=
12991XGETTEXT=
12992GMSGFMT=
12993POSUB=
12994
12995if test -f  ../intl/config.intl; then
12996  .  ../intl/config.intl
12997fi
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12999$as_echo_n "checking whether NLS is requested... " >&6; }
13000if test x"$USE_NLS" != xyes; then
13001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002$as_echo "no" >&6; }
13003else
13004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13005$as_echo "yes" >&6; }
13006
13007$as_echo "#define ENABLE_NLS 1" >>confdefs.h
13008
13009
13010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13011$as_echo_n "checking for catalogs to be installed... " >&6; }
13012  # Look for .po and .gmo files in the source directory.
13013  CATALOGS=
13014  XLINGUAS=
13015  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13016    # If there aren't any .gmo files the shell will give us the
13017    # literal string "../path/to/srcdir/po/*.gmo" which has to be
13018    # weeded out.
13019    case "$cat" in *\**)
13020      continue;;
13021    esac
13022    # The quadruple backslash is collapsed to a double backslash
13023    # by the backticks, then collapsed again by the double quotes,
13024    # leaving us with one backslash in the sed expression (right
13025    # before the dot that mustn't act as a wildcard).
13026    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13027    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13028    # The user is allowed to set LINGUAS to a list of languages to
13029    # install catalogs for.  If it's empty that means "all of them."
13030    if test "x$LINGUAS" = x; then
13031      CATALOGS="$CATALOGS $cat"
13032      XLINGUAS="$XLINGUAS $lang"
13033    else
13034      case "$LINGUAS" in *$lang*)
13035        CATALOGS="$CATALOGS $cat"
13036        XLINGUAS="$XLINGUAS $lang"
13037        ;;
13038      esac
13039    fi
13040  done
13041  LINGUAS="$XLINGUAS"
13042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13043$as_echo "$LINGUAS" >&6; }
13044
13045
13046    DATADIRNAME=share
13047
13048  INSTOBJEXT=.mo
13049
13050  GENCAT=gencat
13051
13052  CATOBJEXT=.gmo
13053
13054fi
13055
13056# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13057# -liconv on the link line twice.
13058case "$LIBINTL" in *$LIBICONV*)
13059	LIBICONV= ;;
13060esac
13061
13062# Check whether --enable-secureplt was given.
13063if test "${enable_secureplt+set}" = set; then :
13064  enableval=$enable_secureplt;
13065fi
13066
13067
13068# Check whether --enable-mingw-wildcard was given.
13069if test "${enable_mingw_wildcard+set}" = set; then :
13070  enableval=$enable_mingw_wildcard;
13071else
13072  enable_mingw_wildcard=platform
13073fi
13074
13075if test x"$enable_mingw_wildcard" != xplatform ; then :
13076
13077cat >>confdefs.h <<_ACEOF
13078#define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13079_ACEOF
13080
13081fi
13082
13083# Check whether --enable-large-address-aware was given.
13084if test "${enable_large_address_aware+set}" = set; then :
13085  enableval=$enable_large_address_aware;
13086fi
13087
13088if test x"$enable_large_address_aware" = xyes; then :
13089
13090$as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13091
13092fi
13093
13094# Check whether --enable-leading-mingw64-underscores was given.
13095if test "${enable_leading_mingw64_underscores+set}" = set; then :
13096  enableval=$enable_leading_mingw64_underscores;
13097fi
13098
13099if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
13100
13101$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13102
13103fi
13104
13105# Check whether --enable-cld was given.
13106if test "${enable_cld+set}" = set; then :
13107  enableval=$enable_cld;
13108else
13109  enable_cld=no
13110fi
13111
13112
13113# Check whether --enable-frame-pointer was given.
13114if test "${enable_frame_pointer+set}" = set; then :
13115  enableval=$enable_frame_pointer;
13116else
13117
13118case $target_os in
13119linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13120  # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13121  enable_frame_pointer=no
13122  ;;
13123*)
13124  enable_frame_pointer=yes
13125  ;;
13126esac
13127
13128fi
13129
13130
13131case $target in
13132i[34567]86-*-* | x86_64-*-*)
13133	if test "x$enable_cld" = xyes; then
13134		tm_defines="${tm_defines} USE_IX86_CLD=1"
13135	fi
13136	if test "x$enable_frame_pointer" = xyes; then
13137		tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13138	fi
13139	;;
13140esac
13141
13142# Windows32 Registry support for specifying GCC installation paths.
13143# Check whether --enable-win32-registry was given.
13144if test "${enable_win32_registry+set}" = set; then :
13145  enableval=$enable_win32_registry;
13146fi
13147
13148
13149case $host_os in
13150  win32 | pe | cygwin* | mingw32*)
13151    if test "x$enable_win32_registry" != xno; then
13152      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13153$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13154if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13155  $as_echo_n "(cached) " >&6
13156else
13157  ac_func_search_save_LIBS=$LIBS
13158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159/* end confdefs.h.  */
13160
13161/* Override any GCC internal prototype to avoid an error.
13162   Use char because int might match the return type of a GCC
13163   builtin and then its argument prototype would still apply.  */
13164#ifdef __cplusplus
13165extern "C"
13166#endif
13167char RegOpenKeyExA ();
13168int
13169main ()
13170{
13171return RegOpenKeyExA ();
13172  ;
13173  return 0;
13174}
13175_ACEOF
13176for ac_lib in '' advapi32; do
13177  if test -z "$ac_lib"; then
13178    ac_res="none required"
13179  else
13180    ac_res=-l$ac_lib
13181    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13182  fi
13183  if ac_fn_cxx_try_link "$LINENO"; then :
13184  ac_cv_search_RegOpenKeyExA=$ac_res
13185fi
13186rm -f core conftest.err conftest.$ac_objext \
13187    conftest$ac_exeext
13188  if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13189  break
13190fi
13191done
13192if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13193
13194else
13195  ac_cv_search_RegOpenKeyExA=no
13196fi
13197rm conftest.$ac_ext
13198LIBS=$ac_func_search_save_LIBS
13199fi
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13201$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13202ac_res=$ac_cv_search_RegOpenKeyExA
13203if test "$ac_res" != no; then :
13204  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13205
13206else
13207  enable_win32_registry=no
13208fi
13209
13210    fi
13211
13212    if test "x$enable_win32_registry" != xno; then
13213
13214$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13215
13216
13217      if test "x$enable_win32_registry" != xyes \
13218         && test "x$enable_win32_registry" != x; then
13219
13220cat >>confdefs.h <<_ACEOF
13221#define WIN32_REGISTRY_KEY "$enable_win32_registry"
13222_ACEOF
13223
13224      fi
13225    fi
13226  ;;
13227esac
13228
13229# Get an absolute path to the GCC top-level source directory
13230holddir=`${PWDCMD-pwd}`
13231cd $srcdir
13232topdir=`${PWDCMD-pwd}`
13233cd $holddir
13234
13235# Conditionalize the makefile for this host machine.
13236xmake_file=
13237for f in ${host_xmake_file}
13238do
13239	if test -f ${srcdir}/config/$f
13240	then
13241		xmake_file="${xmake_file} \$(srcdir)/config/$f"
13242	fi
13243done
13244
13245# Conditionalize the makefile for this target machine.
13246tmake_file_=
13247for f in ${tmake_file}
13248do
13249	if test -f ${srcdir}/config/$f
13250	then
13251		tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13252	fi
13253done
13254tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13255
13256out_object_file=`basename $out_file .c`.o
13257common_out_object_file=`basename $common_out_file .c`.o
13258
13259tm_file_list="options.h"
13260tm_include_list="options.h insn-constants.h"
13261for f in $tm_file; do
13262  case $f in
13263    ./* )
13264       f=`echo $f | sed 's/^..//'`
13265       tm_file_list="${tm_file_list} $f"
13266       tm_include_list="${tm_include_list} $f"
13267       ;;
13268    defaults.h )
13269       tm_file_list="${tm_file_list} \$(srcdir)/$f"
13270       tm_include_list="${tm_include_list} $f"
13271       ;;
13272    * )
13273       tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13274       tm_include_list="${tm_include_list} config/$f"
13275       ;;
13276  esac
13277done
13278
13279tm_p_file_list=
13280tm_p_include_list=
13281for f in $tm_p_file; do
13282  case $f in
13283    tm-preds.h )
13284       tm_p_file_list="${tm_p_file_list} $f"
13285       tm_p_include_list="${tm_p_include_list} $f"
13286       ;;
13287    * )
13288       tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13289       tm_p_include_list="${tm_p_include_list} config/$f"
13290  esac
13291done
13292
13293tm_d_file_list=
13294tm_d_include_list="options.h insn-constants.h"
13295for f in $tm_d_file; do
13296  case $f in
13297    defaults.h )
13298       tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
13299       tm_d_include_list="${tm_d_include_list} $f"
13300       ;;
13301    * )
13302       tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13303       tm_d_include_list="${tm_d_include_list} config/$f"
13304       ;;
13305  esac
13306done
13307
13308xm_file_list=
13309xm_include_list=
13310for f in $xm_file; do
13311  case $f in
13312    ansidecl.h )
13313       xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13314       xm_include_list="${xm_include_list} $f"
13315       ;;
13316    auto-host.h )
13317       xm_file_list="${xm_file_list} $f"
13318       xm_include_list="${xm_include_list} $f"
13319       ;;
13320    * )
13321       xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13322       xm_include_list="${xm_include_list} config/$f"
13323       ;;
13324  esac
13325done
13326
13327host_xm_file_list=
13328host_xm_include_list=
13329for f in $host_xm_file; do
13330  case $f in
13331    ansidecl.h )
13332       host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13333       host_xm_include_list="${host_xm_include_list} $f"
13334       ;;
13335    auto-host.h )
13336       host_xm_file_list="${host_xm_file_list} $f"
13337       host_xm_include_list="${host_xm_include_list} $f"
13338       ;;
13339    * )
13340       host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13341       host_xm_include_list="${host_xm_include_list} config/$f"
13342       ;;
13343  esac
13344done
13345
13346build_xm_file_list=
13347for f in $build_xm_file; do
13348  case $f in
13349    ansidecl.h )
13350       build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13351       build_xm_include_list="${build_xm_include_list} $f"
13352       ;;
13353    auto-build.h | auto-host.h )
13354       build_xm_file_list="${build_xm_file_list} $f"
13355       build_xm_include_list="${build_xm_include_list} $f"
13356       ;;
13357    * )
13358       build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13359       build_xm_include_list="${build_xm_include_list} config/$f"
13360       ;;
13361  esac
13362done
13363
13364# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13365# cross-compiler which does not use the native headers and libraries.
13366# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13367CROSS=
13368ALL=all.internal
13369SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13370BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13371
13372if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13373   test x$build != x$host || test "x$with_build_sysroot" != x; then
13374  if test "x$with_build_sysroot" != x; then
13375    BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13376  else
13377    BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13378  fi
13379
13380  if test x$host != x$target
13381  then
13382    CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13383    ALL=all.cross
13384    SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13385  elif test "x$TARGET_SYSTEM_ROOT" != x; then
13386    SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13387  fi
13388
13389  if test "x$with_build_sysroot" != "x"; then
13390    target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13391  elif test "x$with_sysroot" = x; then
13392    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13393  elif test "x$with_sysroot" = xyes; then
13394    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13395  else
13396    target_header_dir="${with_sysroot}${native_system_header_dir}"
13397  fi
13398else
13399  target_header_dir=${native_system_header_dir}
13400fi
13401
13402# If this is a cross-compiler that does not
13403# have its own set of headers then define
13404# inhibit_libc
13405
13406# If this is using newlib, without having the headers available now,
13407# then define inhibit_libc in LIBGCC2_CFLAGS.
13408# This prevents libgcc2 from containing any code which requires libc
13409# support.
13410: ${inhibit_libc=false}
13411if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13412       test x$with_newlib = xyes ; } &&
13413     { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13414       inhibit_libc=true
13415fi
13416
13417
13418# When building gcc with a cross-compiler, we need to adjust things so
13419# that the generator programs are still built with the native compiler.
13420# Also, we cannot run fixincludes.
13421
13422# These are the normal (build=host) settings:
13423CC_FOR_BUILD='$(CC)'
13424CXX_FOR_BUILD='$(CXX)'
13425BUILD_CFLAGS='$(ALL_CFLAGS)'
13426BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13427BUILD_LDFLAGS='$(LDFLAGS)'
13428STMP_FIXINC=stmp-fixinc
13429
13430# And these apply if build != host, or we are generating coverage data
13431if test x$build != x$host || test "x$coverage_flags" != x
13432then
13433    BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13434    BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13435    BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13436fi
13437
13438# Expand extra_headers to include complete path.
13439# This substitutes for lots of t-* files.
13440extra_headers_list=
13441# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13442for file in ${extra_headers} ; do
13443  extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13444done
13445
13446# If use_gcc_tgmath is set, append ginclude/tgmath.h.
13447if test x"$use_gcc_tgmath" = xyes
13448then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13449fi
13450
13451# Define collect2 in Makefile.
13452case $host_can_use_collect2 in
13453  no) collect2= ;;
13454  *) collect2='collect2$(exeext)' ;;
13455esac
13456
13457
13458# Add a definition of USE_COLLECT2 if system wants one.
13459case $use_collect2 in
13460  no) use_collect2= ;;
13461  "") ;;
13462  *)
13463    host_xm_defines="${host_xm_defines} USE_COLLECT2"
13464    xm_defines="${xm_defines} USE_COLLECT2"
13465    case $host_can_use_collect2 in
13466      no)
13467        as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13468        ;;
13469    esac
13470    ;;
13471esac
13472
13473
13474cat >>confdefs.h <<_ACEOF
13475#define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13476_ACEOF
13477
13478
13479# ---------------------------
13480# Assembler & linker features
13481# ---------------------------
13482
13483# During stage 2, ld is actually gcc/collect-ld, which is a small script to
13484# discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13485# However when ld-new is first executed from the build tree, libtool will
13486# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13487# to the build tree.  While doing this we need to use the previous-stage
13488# linker, or we have an infinite loop.  The presence of a shell script as
13489# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13490# the gcc/collect-ld script.  So we need to know how libtool works, or
13491# exec-tool will fail.
13492
13493
13494case `pwd` in
13495  *\ * | *\	*)
13496    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13497$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13498esac
13499
13500
13501
13502macro_version='2.2.7a'
13503macro_revision='1.3134'
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517ltmain="$ac_aux_dir/ltmain.sh"
13518
13519# Backslashify metacharacters that are still active within
13520# double-quoted strings.
13521sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13522
13523# Same as above, but do not quote variable references.
13524double_quote_subst='s/\(["`\\]\)/\\\1/g'
13525
13526# Sed substitution to delay expansion of an escaped shell variable in a
13527# double_quote_subst'ed string.
13528delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13529
13530# Sed substitution to delay expansion of an escaped single quote.
13531delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13532
13533# Sed substitution to avoid accidental globbing in evaled expressions
13534no_glob_subst='s/\*/\\\*/g'
13535
13536ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13537ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13538ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13539
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13541$as_echo_n "checking how to print strings... " >&6; }
13542# Test print first, because it will be a builtin if present.
13543if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13544   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13545  ECHO='print -r --'
13546elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13547  ECHO='printf %s\n'
13548else
13549  # Use this function as a fallback that always works.
13550  func_fallback_echo ()
13551  {
13552    eval 'cat <<_LTECHO_EOF
13553$1
13554_LTECHO_EOF'
13555  }
13556  ECHO='func_fallback_echo'
13557fi
13558
13559# func_echo_all arg...
13560# Invoke $ECHO with all args, space-separated.
13561func_echo_all ()
13562{
13563    $ECHO ""
13564}
13565
13566case "$ECHO" in
13567  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13568$as_echo "printf" >&6; } ;;
13569  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13570$as_echo "print -r" >&6; } ;;
13571  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13572$as_echo "cat" >&6; } ;;
13573esac
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13589$as_echo_n "checking for a sed that does not truncate output... " >&6; }
13590if ${ac_cv_path_SED+:} false; then :
13591  $as_echo_n "(cached) " >&6
13592else
13593            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13594     for ac_i in 1 2 3 4 5 6 7; do
13595       ac_script="$ac_script$as_nl$ac_script"
13596     done
13597     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13598     { ac_script=; unset ac_script;}
13599     if test -z "$SED"; then
13600  ac_path_SED_found=false
13601  # Loop through the user's path and test for each of PROGNAME-LIST
13602  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603for as_dir in $PATH
13604do
13605  IFS=$as_save_IFS
13606  test -z "$as_dir" && as_dir=.
13607    for ac_prog in sed gsed; do
13608    for ac_exec_ext in '' $ac_executable_extensions; do
13609      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13610      as_fn_executable_p "$ac_path_SED" || continue
13611# Check for GNU ac_path_SED and select it if it is found.
13612  # Check for GNU $ac_path_SED
13613case `"$ac_path_SED" --version 2>&1` in
13614*GNU*)
13615  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13616*)
13617  ac_count=0
13618  $as_echo_n 0123456789 >"conftest.in"
13619  while :
13620  do
13621    cat "conftest.in" "conftest.in" >"conftest.tmp"
13622    mv "conftest.tmp" "conftest.in"
13623    cp "conftest.in" "conftest.nl"
13624    $as_echo '' >> "conftest.nl"
13625    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13626    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13627    as_fn_arith $ac_count + 1 && ac_count=$as_val
13628    if test $ac_count -gt ${ac_path_SED_max-0}; then
13629      # Best one so far, save it but keep looking for a better one
13630      ac_cv_path_SED="$ac_path_SED"
13631      ac_path_SED_max=$ac_count
13632    fi
13633    # 10*(2^10) chars as input seems more than enough
13634    test $ac_count -gt 10 && break
13635  done
13636  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13637esac
13638
13639      $ac_path_SED_found && break 3
13640    done
13641  done
13642  done
13643IFS=$as_save_IFS
13644  if test -z "$ac_cv_path_SED"; then
13645    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13646  fi
13647else
13648  ac_cv_path_SED=$SED
13649fi
13650
13651fi
13652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13653$as_echo "$ac_cv_path_SED" >&6; }
13654 SED="$ac_cv_path_SED"
13655  rm -f conftest.sed
13656
13657test -z "$SED" && SED=sed
13658Xsed="$SED -e 1s/^X//"
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13671$as_echo_n "checking for fgrep... " >&6; }
13672if ${ac_cv_path_FGREP+:} false; then :
13673  $as_echo_n "(cached) " >&6
13674else
13675  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13676   then ac_cv_path_FGREP="$GREP -F"
13677   else
13678     if test -z "$FGREP"; then
13679  ac_path_FGREP_found=false
13680  # Loop through the user's path and test for each of PROGNAME-LIST
13681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13683do
13684  IFS=$as_save_IFS
13685  test -z "$as_dir" && as_dir=.
13686    for ac_prog in fgrep; do
13687    for ac_exec_ext in '' $ac_executable_extensions; do
13688      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13689      as_fn_executable_p "$ac_path_FGREP" || continue
13690# Check for GNU ac_path_FGREP and select it if it is found.
13691  # Check for GNU $ac_path_FGREP
13692case `"$ac_path_FGREP" --version 2>&1` in
13693*GNU*)
13694  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13695*)
13696  ac_count=0
13697  $as_echo_n 0123456789 >"conftest.in"
13698  while :
13699  do
13700    cat "conftest.in" "conftest.in" >"conftest.tmp"
13701    mv "conftest.tmp" "conftest.in"
13702    cp "conftest.in" "conftest.nl"
13703    $as_echo 'FGREP' >> "conftest.nl"
13704    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13705    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13706    as_fn_arith $ac_count + 1 && ac_count=$as_val
13707    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13708      # Best one so far, save it but keep looking for a better one
13709      ac_cv_path_FGREP="$ac_path_FGREP"
13710      ac_path_FGREP_max=$ac_count
13711    fi
13712    # 10*(2^10) chars as input seems more than enough
13713    test $ac_count -gt 10 && break
13714  done
13715  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13716esac
13717
13718      $ac_path_FGREP_found && break 3
13719    done
13720  done
13721  done
13722IFS=$as_save_IFS
13723  if test -z "$ac_cv_path_FGREP"; then
13724    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13725  fi
13726else
13727  ac_cv_path_FGREP=$FGREP
13728fi
13729
13730   fi
13731fi
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13733$as_echo "$ac_cv_path_FGREP" >&6; }
13734 FGREP="$ac_cv_path_FGREP"
13735
13736
13737test -z "$GREP" && GREP=grep
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757# Check whether --with-gnu-ld was given.
13758if test "${with_gnu_ld+set}" = set; then :
13759  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13760else
13761  with_gnu_ld=no
13762fi
13763
13764ac_prog=ld
13765if test "$GCC" = yes; then
13766  # Check if gcc -print-prog-name=ld gives a path.
13767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13768$as_echo_n "checking for ld used by $CC... " >&6; }
13769  case $host in
13770  *-*-mingw*)
13771    # gcc leaves a trailing carriage return which upsets mingw
13772    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13773  *)
13774    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13775  esac
13776  case $ac_prog in
13777    # Accept absolute paths.
13778    [\\/]* | ?:[\\/]*)
13779      re_direlt='/[^/][^/]*/\.\./'
13780      # Canonicalize the pathname of ld
13781      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13782      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13783	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13784      done
13785      test -z "$LD" && LD="$ac_prog"
13786      ;;
13787  "")
13788    # If it fails, then pretend we aren't using GCC.
13789    ac_prog=ld
13790    ;;
13791  *)
13792    # If it is relative, then search for the first ld in PATH.
13793    with_gnu_ld=unknown
13794    ;;
13795  esac
13796elif test "$with_gnu_ld" = yes; then
13797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13798$as_echo_n "checking for GNU ld... " >&6; }
13799else
13800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13801$as_echo_n "checking for non-GNU ld... " >&6; }
13802fi
13803if ${lt_cv_path_LD+:} false; then :
13804  $as_echo_n "(cached) " >&6
13805else
13806  if test -z "$LD"; then
13807  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13808  for ac_dir in $PATH; do
13809    IFS="$lt_save_ifs"
13810    test -z "$ac_dir" && ac_dir=.
13811    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13812      lt_cv_path_LD="$ac_dir/$ac_prog"
13813      # Check to see if the program is GNU ld.  I'd rather use --version,
13814      # but apparently some variants of GNU ld only accept -v.
13815      # Break only if it was the GNU/non-GNU ld that we prefer.
13816      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13817      *GNU* | *'with BFD'*)
13818	test "$with_gnu_ld" != no && break
13819	;;
13820      *)
13821	test "$with_gnu_ld" != yes && break
13822	;;
13823      esac
13824    fi
13825  done
13826  IFS="$lt_save_ifs"
13827else
13828  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13829fi
13830fi
13831
13832LD="$lt_cv_path_LD"
13833if test -n "$LD"; then
13834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13835$as_echo "$LD" >&6; }
13836else
13837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838$as_echo "no" >&6; }
13839fi
13840test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13842$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13843if ${lt_cv_prog_gnu_ld+:} false; then :
13844  $as_echo_n "(cached) " >&6
13845else
13846  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13847case `$LD -v 2>&1 </dev/null` in
13848*GNU* | *'with BFD'*)
13849  lt_cv_prog_gnu_ld=yes
13850  ;;
13851*)
13852  lt_cv_prog_gnu_ld=no
13853  ;;
13854esac
13855fi
13856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13857$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13858with_gnu_ld=$lt_cv_prog_gnu_ld
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13869$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13870if ${lt_cv_path_NM+:} false; then :
13871  $as_echo_n "(cached) " >&6
13872else
13873  if test -n "$NM"; then
13874  # Let the user override the test.
13875  lt_cv_path_NM="$NM"
13876else
13877  lt_nm_to_check="${ac_tool_prefix}nm"
13878  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13879    lt_nm_to_check="$lt_nm_to_check nm"
13880  fi
13881  for lt_tmp_nm in $lt_nm_to_check; do
13882    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13883    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13884      IFS="$lt_save_ifs"
13885      test -z "$ac_dir" && ac_dir=.
13886      tmp_nm="$ac_dir/$lt_tmp_nm"
13887      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13888	# Check to see if the nm accepts a BSD-compat flag.
13889	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
13890	#   nm: unknown option "B" ignored
13891	# Tru64's nm complains that /dev/null is an invalid object file
13892	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13893	*/dev/null* | *'Invalid file or object type'*)
13894	  lt_cv_path_NM="$tmp_nm -B"
13895	  break
13896	  ;;
13897	*)
13898	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13899	  */dev/null*)
13900	    lt_cv_path_NM="$tmp_nm -p"
13901	    break
13902	    ;;
13903	  *)
13904	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13905	    continue # so that we can try to find one that supports BSD flags
13906	    ;;
13907	  esac
13908	  ;;
13909	esac
13910      fi
13911    done
13912    IFS="$lt_save_ifs"
13913  done
13914  : ${lt_cv_path_NM=no}
13915fi
13916fi
13917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13918$as_echo "$lt_cv_path_NM" >&6; }
13919if test "$lt_cv_path_NM" != "no"; then
13920  NM="$lt_cv_path_NM"
13921else
13922  # Didn't find any BSD compatible name lister, look for dumpbin.
13923  if test -n "$DUMPBIN"; then :
13924    # Let the user override the test.
13925  else
13926    if test -n "$ac_tool_prefix"; then
13927  for ac_prog in dumpbin "link -dump"
13928  do
13929    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13932$as_echo_n "checking for $ac_word... " >&6; }
13933if ${ac_cv_prog_DUMPBIN+:} false; then :
13934  $as_echo_n "(cached) " >&6
13935else
13936  if test -n "$DUMPBIN"; then
13937  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13938else
13939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940for as_dir in $PATH
13941do
13942  IFS=$as_save_IFS
13943  test -z "$as_dir" && as_dir=.
13944    for ac_exec_ext in '' $ac_executable_extensions; do
13945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13946    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13948    break 2
13949  fi
13950done
13951  done
13952IFS=$as_save_IFS
13953
13954fi
13955fi
13956DUMPBIN=$ac_cv_prog_DUMPBIN
13957if test -n "$DUMPBIN"; then
13958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13959$as_echo "$DUMPBIN" >&6; }
13960else
13961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13962$as_echo "no" >&6; }
13963fi
13964
13965
13966    test -n "$DUMPBIN" && break
13967  done
13968fi
13969if test -z "$DUMPBIN"; then
13970  ac_ct_DUMPBIN=$DUMPBIN
13971  for ac_prog in dumpbin "link -dump"
13972do
13973  # Extract the first word of "$ac_prog", so it can be a program name with args.
13974set dummy $ac_prog; ac_word=$2
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13976$as_echo_n "checking for $ac_word... " >&6; }
13977if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13978  $as_echo_n "(cached) " >&6
13979else
13980  if test -n "$ac_ct_DUMPBIN"; then
13981  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13982else
13983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984for as_dir in $PATH
13985do
13986  IFS=$as_save_IFS
13987  test -z "$as_dir" && as_dir=.
13988    for ac_exec_ext in '' $ac_executable_extensions; do
13989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13990    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13992    break 2
13993  fi
13994done
13995  done
13996IFS=$as_save_IFS
13997
13998fi
13999fi
14000ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14001if test -n "$ac_ct_DUMPBIN"; then
14002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14003$as_echo "$ac_ct_DUMPBIN" >&6; }
14004else
14005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14006$as_echo "no" >&6; }
14007fi
14008
14009
14010  test -n "$ac_ct_DUMPBIN" && break
14011done
14012
14013  if test "x$ac_ct_DUMPBIN" = x; then
14014    DUMPBIN=":"
14015  else
14016    case $cross_compiling:$ac_tool_warned in
14017yes:)
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14020ac_tool_warned=yes ;;
14021esac
14022    DUMPBIN=$ac_ct_DUMPBIN
14023  fi
14024fi
14025
14026    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14027    *COFF*)
14028      DUMPBIN="$DUMPBIN -symbols"
14029      ;;
14030    *)
14031      DUMPBIN=:
14032      ;;
14033    esac
14034  fi
14035
14036  if test "$DUMPBIN" != ":"; then
14037    NM="$DUMPBIN"
14038  fi
14039fi
14040test -z "$NM" && NM=nm
14041
14042
14043
14044
14045
14046
14047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14048$as_echo_n "checking the name lister ($NM) interface... " >&6; }
14049if ${lt_cv_nm_interface+:} false; then :
14050  $as_echo_n "(cached) " >&6
14051else
14052  lt_cv_nm_interface="BSD nm"
14053  echo "int some_variable = 0;" > conftest.$ac_ext
14054  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14055  (eval "$ac_compile" 2>conftest.err)
14056  cat conftest.err >&5
14057  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14058  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14059  cat conftest.err >&5
14060  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14061  cat conftest.out >&5
14062  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14063    lt_cv_nm_interface="MS dumpbin"
14064  fi
14065  rm -f conftest*
14066fi
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14068$as_echo "$lt_cv_nm_interface" >&6; }
14069
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14071$as_echo_n "checking whether ln -s works... " >&6; }
14072LN_S=$as_ln_s
14073if test "$LN_S" = "ln -s"; then
14074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075$as_echo "yes" >&6; }
14076else
14077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14078$as_echo "no, using $LN_S" >&6; }
14079fi
14080
14081# find the maximum length of command line arguments
14082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14083$as_echo_n "checking the maximum length of command line arguments... " >&6; }
14084if ${lt_cv_sys_max_cmd_len+:} false; then :
14085  $as_echo_n "(cached) " >&6
14086else
14087    i=0
14088  teststring="ABCD"
14089
14090  case $build_os in
14091  msdosdjgpp*)
14092    # On DJGPP, this test can blow up pretty badly due to problems in libc
14093    # (any single argument exceeding 2000 bytes causes a buffer overrun
14094    # during glob expansion).  Even if it were fixed, the result of this
14095    # check would be larger than it should be.
14096    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14097    ;;
14098
14099  gnu*)
14100    # Under GNU Hurd, this test is not required because there is
14101    # no limit to the length of command line arguments.
14102    # Libtool will interpret -1 as no limit whatsoever
14103    lt_cv_sys_max_cmd_len=-1;
14104    ;;
14105
14106  cygwin* | mingw* | cegcc*)
14107    # On Win9x/ME, this test blows up -- it succeeds, but takes
14108    # about 5 minutes as the teststring grows exponentially.
14109    # Worse, since 9x/ME are not pre-emptively multitasking,
14110    # you end up with a "frozen" computer, even though with patience
14111    # the test eventually succeeds (with a max line length of 256k).
14112    # Instead, let's just punt: use the minimum linelength reported by
14113    # all of the supported platforms: 8192 (on NT/2K/XP).
14114    lt_cv_sys_max_cmd_len=8192;
14115    ;;
14116
14117  mint*)
14118    # On MiNT this can take a long time and run out of memory.
14119    lt_cv_sys_max_cmd_len=8192;
14120    ;;
14121
14122  amigaos*)
14123    # On AmigaOS with pdksh, this test takes hours, literally.
14124    # So we just punt and use a minimum line length of 8192.
14125    lt_cv_sys_max_cmd_len=8192;
14126    ;;
14127
14128  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14129    # This has been around since 386BSD, at least.  Likely further.
14130    if test -x /sbin/sysctl; then
14131      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14132    elif test -x /usr/sbin/sysctl; then
14133      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14134    else
14135      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
14136    fi
14137    # And add a safety zone
14138    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14139    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14140    ;;
14141
14142  interix*)
14143    # We know the value 262144 and hardcode it with a safety zone (like BSD)
14144    lt_cv_sys_max_cmd_len=196608
14145    ;;
14146
14147  osf*)
14148    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14149    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14150    # nice to cause kernel panics so lets avoid the loop below.
14151    # First set a reasonable default.
14152    lt_cv_sys_max_cmd_len=16384
14153    #
14154    if test -x /sbin/sysconfig; then
14155      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14156        *1*) lt_cv_sys_max_cmd_len=-1 ;;
14157      esac
14158    fi
14159    ;;
14160  sco3.2v5*)
14161    lt_cv_sys_max_cmd_len=102400
14162    ;;
14163  sysv5* | sco5v6* | sysv4.2uw2*)
14164    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14165    if test -n "$kargmax"; then
14166      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
14167    else
14168      lt_cv_sys_max_cmd_len=32768
14169    fi
14170    ;;
14171  *)
14172    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14173    if test -n "$lt_cv_sys_max_cmd_len"; then
14174      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14175      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14176    else
14177      # Make teststring a little bigger before we do anything with it.
14178      # a 1K string should be a reasonable start.
14179      for i in 1 2 3 4 5 6 7 8 ; do
14180        teststring=$teststring$teststring
14181      done
14182      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14183      # If test is not a shell built-in, we'll probably end up computing a
14184      # maximum length that is only half of the actual maximum length, but
14185      # we can't tell.
14186      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14187	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14188	      test $i != 17 # 1/2 MB should be enough
14189      do
14190        i=`expr $i + 1`
14191        teststring=$teststring$teststring
14192      done
14193      # Only check the string length outside the loop.
14194      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14195      teststring=
14196      # Add a significant safety factor because C++ compilers can tack on
14197      # massive amounts of additional arguments before passing them to the
14198      # linker.  It appears as though 1/2 is a usable value.
14199      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14200    fi
14201    ;;
14202  esac
14203
14204fi
14205
14206if test -n $lt_cv_sys_max_cmd_len ; then
14207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14208$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14209else
14210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14211$as_echo "none" >&6; }
14212fi
14213max_cmd_len=$lt_cv_sys_max_cmd_len
14214
14215
14216
14217
14218
14219
14220: ${CP="cp -f"}
14221: ${MV="mv -f"}
14222: ${RM="rm -f"}
14223
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14225$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14226# Try some XSI features
14227xsi_shell=no
14228( _lt_dummy="a/b/c"
14229  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14230      = c,a/b,, \
14231    && eval 'test $(( 1 + 1 )) -eq 2 \
14232    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14233  && xsi_shell=yes
14234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14235$as_echo "$xsi_shell" >&6; }
14236
14237
14238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14239$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14240lt_shell_append=no
14241( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14242    >/dev/null 2>&1 \
14243  && lt_shell_append=yes
14244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14245$as_echo "$lt_shell_append" >&6; }
14246
14247
14248if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14249  lt_unset=unset
14250else
14251  lt_unset=false
14252fi
14253
14254
14255
14256
14257
14258# test EBCDIC or ASCII
14259case `echo X|tr X '\101'` in
14260 A) # ASCII based system
14261    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14262  lt_SP2NL='tr \040 \012'
14263  lt_NL2SP='tr \015\012 \040\040'
14264  ;;
14265 *) # EBCDIC based system
14266  lt_SP2NL='tr \100 \n'
14267  lt_NL2SP='tr \r\n \100\100'
14268  ;;
14269esac
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14280$as_echo_n "checking for $LD option to reload object files... " >&6; }
14281if ${lt_cv_ld_reload_flag+:} false; then :
14282  $as_echo_n "(cached) " >&6
14283else
14284  lt_cv_ld_reload_flag='-r'
14285fi
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14287$as_echo "$lt_cv_ld_reload_flag" >&6; }
14288reload_flag=$lt_cv_ld_reload_flag
14289case $reload_flag in
14290"" | " "*) ;;
14291*) reload_flag=" $reload_flag" ;;
14292esac
14293reload_cmds='$LD$reload_flag -o $output$reload_objs'
14294case $host_os in
14295  darwin*)
14296    if test "$GCC" = yes; then
14297      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14298    else
14299      reload_cmds='$LD$reload_flag -o $output$reload_objs'
14300    fi
14301    ;;
14302esac
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312if test -n "$ac_tool_prefix"; then
14313  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14314set dummy ${ac_tool_prefix}objdump; ac_word=$2
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14316$as_echo_n "checking for $ac_word... " >&6; }
14317if ${ac_cv_prog_OBJDUMP+:} false; then :
14318  $as_echo_n "(cached) " >&6
14319else
14320  if test -n "$OBJDUMP"; then
14321  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14322else
14323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324for as_dir in $PATH
14325do
14326  IFS=$as_save_IFS
14327  test -z "$as_dir" && as_dir=.
14328    for ac_exec_ext in '' $ac_executable_extensions; do
14329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14330    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14332    break 2
14333  fi
14334done
14335  done
14336IFS=$as_save_IFS
14337
14338fi
14339fi
14340OBJDUMP=$ac_cv_prog_OBJDUMP
14341if test -n "$OBJDUMP"; then
14342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14343$as_echo "$OBJDUMP" >&6; }
14344else
14345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346$as_echo "no" >&6; }
14347fi
14348
14349
14350fi
14351if test -z "$ac_cv_prog_OBJDUMP"; then
14352  ac_ct_OBJDUMP=$OBJDUMP
14353  # Extract the first word of "objdump", so it can be a program name with args.
14354set dummy objdump; ac_word=$2
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14356$as_echo_n "checking for $ac_word... " >&6; }
14357if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14358  $as_echo_n "(cached) " >&6
14359else
14360  if test -n "$ac_ct_OBJDUMP"; then
14361  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14362else
14363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364for as_dir in $PATH
14365do
14366  IFS=$as_save_IFS
14367  test -z "$as_dir" && as_dir=.
14368    for ac_exec_ext in '' $ac_executable_extensions; do
14369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14370    ac_cv_prog_ac_ct_OBJDUMP="objdump"
14371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14372    break 2
14373  fi
14374done
14375  done
14376IFS=$as_save_IFS
14377
14378fi
14379fi
14380ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14381if test -n "$ac_ct_OBJDUMP"; then
14382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14383$as_echo "$ac_ct_OBJDUMP" >&6; }
14384else
14385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14386$as_echo "no" >&6; }
14387fi
14388
14389  if test "x$ac_ct_OBJDUMP" = x; then
14390    OBJDUMP="false"
14391  else
14392    case $cross_compiling:$ac_tool_warned in
14393yes:)
14394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14396ac_tool_warned=yes ;;
14397esac
14398    OBJDUMP=$ac_ct_OBJDUMP
14399  fi
14400else
14401  OBJDUMP="$ac_cv_prog_OBJDUMP"
14402fi
14403
14404test -z "$OBJDUMP" && OBJDUMP=objdump
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14415$as_echo_n "checking how to recognize dependent libraries... " >&6; }
14416if ${lt_cv_deplibs_check_method+:} false; then :
14417  $as_echo_n "(cached) " >&6
14418else
14419  lt_cv_file_magic_cmd='$MAGIC_CMD'
14420lt_cv_file_magic_test_file=
14421lt_cv_deplibs_check_method='unknown'
14422# Need to set the preceding variable on all platforms that support
14423# interlibrary dependencies.
14424# 'none' -- dependencies not supported.
14425# `unknown' -- same as none, but documents that we really don't know.
14426# 'pass_all' -- all dependencies passed with no checks.
14427# 'test_compile' -- check by making test program.
14428# 'file_magic [[regex]]' -- check by looking for files in library path
14429# which responds to the $file_magic_cmd with a given extended regex.
14430# If you have `file' or equivalent on your system and you're not sure
14431# whether `pass_all' will *always* work, you probably want this one.
14432
14433case $host_os in
14434aix[4-9]*)
14435  lt_cv_deplibs_check_method=pass_all
14436  ;;
14437
14438beos*)
14439  lt_cv_deplibs_check_method=pass_all
14440  ;;
14441
14442bsdi[45]*)
14443  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14444  lt_cv_file_magic_cmd='/usr/bin/file -L'
14445  lt_cv_file_magic_test_file=/shlib/libc.so
14446  ;;
14447
14448cygwin*)
14449  # func_win32_libid is a shell function defined in ltmain.sh
14450  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14451  lt_cv_file_magic_cmd='func_win32_libid'
14452  ;;
14453
14454mingw* | pw32*)
14455  # Base MSYS/MinGW do not provide the 'file' command needed by
14456  # func_win32_libid shell function, so use a weaker test based on 'objdump',
14457  # unless we find 'file', for example because we are cross-compiling.
14458  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14459  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14460    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14461    lt_cv_file_magic_cmd='func_win32_libid'
14462  else
14463    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14464    lt_cv_file_magic_cmd='$OBJDUMP -f'
14465  fi
14466  ;;
14467
14468cegcc*)
14469  # use the weaker test based on 'objdump'. See mingw*.
14470  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14471  lt_cv_file_magic_cmd='$OBJDUMP -f'
14472  ;;
14473
14474darwin* | rhapsody*)
14475  lt_cv_deplibs_check_method=pass_all
14476  ;;
14477
14478freebsd* | dragonfly*)
14479  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14480    case $host_cpu in
14481    i*86 )
14482      # Not sure whether the presence of OpenBSD here was a mistake.
14483      # Let's accept both of them until this is cleared up.
14484      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14485      lt_cv_file_magic_cmd=/usr/bin/file
14486      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14487      ;;
14488    esac
14489  else
14490    lt_cv_deplibs_check_method=pass_all
14491  fi
14492  ;;
14493
14494gnu*)
14495  lt_cv_deplibs_check_method=pass_all
14496  ;;
14497
14498haiku*)
14499  lt_cv_deplibs_check_method=pass_all
14500  ;;
14501
14502hpux10.20* | hpux11*)
14503  lt_cv_file_magic_cmd=/usr/bin/file
14504  case $host_cpu in
14505  ia64*)
14506    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14507    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14508    ;;
14509  hppa*64*)
14510    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]'
14511    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14512    ;;
14513  *)
14514    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14515    lt_cv_file_magic_test_file=/usr/lib/libc.sl
14516    ;;
14517  esac
14518  ;;
14519
14520interix[3-9]*)
14521  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14522  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14523  ;;
14524
14525irix5* | irix6* | nonstopux*)
14526  case $LD in
14527  *-32|*"-32 ") libmagic=32-bit;;
14528  *-n32|*"-n32 ") libmagic=N32;;
14529  *-64|*"-64 ") libmagic=64-bit;;
14530  *) libmagic=never-match;;
14531  esac
14532  lt_cv_deplibs_check_method=pass_all
14533  ;;
14534
14535# This must be Linux ELF.
14536linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14537  lt_cv_deplibs_check_method=pass_all
14538  ;;
14539
14540netbsd*)
14541  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14542    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14543  else
14544    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14545  fi
14546  ;;
14547
14548newos6*)
14549  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14550  lt_cv_file_magic_cmd=/usr/bin/file
14551  lt_cv_file_magic_test_file=/usr/lib/libnls.so
14552  ;;
14553
14554*nto* | *qnx*)
14555  lt_cv_deplibs_check_method=pass_all
14556  ;;
14557
14558openbsd*)
14559  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14560    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14561  else
14562    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14563  fi
14564  ;;
14565
14566osf3* | osf4* | osf5*)
14567  lt_cv_deplibs_check_method=pass_all
14568  ;;
14569
14570rdos*)
14571  lt_cv_deplibs_check_method=pass_all
14572  ;;
14573
14574solaris*)
14575  lt_cv_deplibs_check_method=pass_all
14576  ;;
14577
14578sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14579  lt_cv_deplibs_check_method=pass_all
14580  ;;
14581
14582sysv4 | sysv4.3*)
14583  case $host_vendor in
14584  motorola)
14585    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]'
14586    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14587    ;;
14588  ncr)
14589    lt_cv_deplibs_check_method=pass_all
14590    ;;
14591  sequent)
14592    lt_cv_file_magic_cmd='/bin/file'
14593    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14594    ;;
14595  sni)
14596    lt_cv_file_magic_cmd='/bin/file'
14597    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14598    lt_cv_file_magic_test_file=/lib/libc.so
14599    ;;
14600  siemens)
14601    lt_cv_deplibs_check_method=pass_all
14602    ;;
14603  pc)
14604    lt_cv_deplibs_check_method=pass_all
14605    ;;
14606  esac
14607  ;;
14608
14609tpf*)
14610  lt_cv_deplibs_check_method=pass_all
14611  ;;
14612esac
14613
14614fi
14615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14616$as_echo "$lt_cv_deplibs_check_method" >&6; }
14617file_magic_cmd=$lt_cv_file_magic_cmd
14618deplibs_check_method=$lt_cv_deplibs_check_method
14619test -z "$deplibs_check_method" && deplibs_check_method=unknown
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632if test -n "$ac_tool_prefix"; then
14633  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14634set dummy ${ac_tool_prefix}ar; ac_word=$2
14635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14636$as_echo_n "checking for $ac_word... " >&6; }
14637if ${ac_cv_prog_AR+:} false; then :
14638  $as_echo_n "(cached) " >&6
14639else
14640  if test -n "$AR"; then
14641  ac_cv_prog_AR="$AR" # Let the user override the test.
14642else
14643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14644for as_dir in $PATH
14645do
14646  IFS=$as_save_IFS
14647  test -z "$as_dir" && as_dir=.
14648    for ac_exec_ext in '' $ac_executable_extensions; do
14649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14650    ac_cv_prog_AR="${ac_tool_prefix}ar"
14651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14652    break 2
14653  fi
14654done
14655  done
14656IFS=$as_save_IFS
14657
14658fi
14659fi
14660AR=$ac_cv_prog_AR
14661if test -n "$AR"; then
14662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14663$as_echo "$AR" >&6; }
14664else
14665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666$as_echo "no" >&6; }
14667fi
14668
14669
14670fi
14671if test -z "$ac_cv_prog_AR"; then
14672  ac_ct_AR=$AR
14673  # Extract the first word of "ar", so it can be a program name with args.
14674set dummy ar; ac_word=$2
14675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14676$as_echo_n "checking for $ac_word... " >&6; }
14677if ${ac_cv_prog_ac_ct_AR+:} false; then :
14678  $as_echo_n "(cached) " >&6
14679else
14680  if test -n "$ac_ct_AR"; then
14681  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14682else
14683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684for as_dir in $PATH
14685do
14686  IFS=$as_save_IFS
14687  test -z "$as_dir" && as_dir=.
14688    for ac_exec_ext in '' $ac_executable_extensions; do
14689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14690    ac_cv_prog_ac_ct_AR="ar"
14691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14692    break 2
14693  fi
14694done
14695  done
14696IFS=$as_save_IFS
14697
14698fi
14699fi
14700ac_ct_AR=$ac_cv_prog_ac_ct_AR
14701if test -n "$ac_ct_AR"; then
14702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14703$as_echo "$ac_ct_AR" >&6; }
14704else
14705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706$as_echo "no" >&6; }
14707fi
14708
14709  if test "x$ac_ct_AR" = x; then
14710    AR="false"
14711  else
14712    case $cross_compiling:$ac_tool_warned in
14713yes:)
14714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14716ac_tool_warned=yes ;;
14717esac
14718    AR=$ac_ct_AR
14719  fi
14720else
14721  AR="$ac_cv_prog_AR"
14722fi
14723
14724test -z "$AR" && AR=ar
14725test -z "$AR_FLAGS" && AR_FLAGS=cru
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737if test -n "$ac_tool_prefix"; then
14738  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14739set dummy ${ac_tool_prefix}strip; ac_word=$2
14740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14741$as_echo_n "checking for $ac_word... " >&6; }
14742if ${ac_cv_prog_STRIP+:} false; then :
14743  $as_echo_n "(cached) " >&6
14744else
14745  if test -n "$STRIP"; then
14746  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14747else
14748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749for as_dir in $PATH
14750do
14751  IFS=$as_save_IFS
14752  test -z "$as_dir" && as_dir=.
14753    for ac_exec_ext in '' $ac_executable_extensions; do
14754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14755    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14757    break 2
14758  fi
14759done
14760  done
14761IFS=$as_save_IFS
14762
14763fi
14764fi
14765STRIP=$ac_cv_prog_STRIP
14766if test -n "$STRIP"; then
14767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14768$as_echo "$STRIP" >&6; }
14769else
14770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14771$as_echo "no" >&6; }
14772fi
14773
14774
14775fi
14776if test -z "$ac_cv_prog_STRIP"; then
14777  ac_ct_STRIP=$STRIP
14778  # Extract the first word of "strip", so it can be a program name with args.
14779set dummy strip; ac_word=$2
14780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14781$as_echo_n "checking for $ac_word... " >&6; }
14782if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14783  $as_echo_n "(cached) " >&6
14784else
14785  if test -n "$ac_ct_STRIP"; then
14786  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14787else
14788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14789for as_dir in $PATH
14790do
14791  IFS=$as_save_IFS
14792  test -z "$as_dir" && as_dir=.
14793    for ac_exec_ext in '' $ac_executable_extensions; do
14794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14795    ac_cv_prog_ac_ct_STRIP="strip"
14796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14797    break 2
14798  fi
14799done
14800  done
14801IFS=$as_save_IFS
14802
14803fi
14804fi
14805ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14806if test -n "$ac_ct_STRIP"; then
14807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14808$as_echo "$ac_ct_STRIP" >&6; }
14809else
14810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14811$as_echo "no" >&6; }
14812fi
14813
14814  if test "x$ac_ct_STRIP" = x; then
14815    STRIP=":"
14816  else
14817    case $cross_compiling:$ac_tool_warned in
14818yes:)
14819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14821ac_tool_warned=yes ;;
14822esac
14823    STRIP=$ac_ct_STRIP
14824  fi
14825else
14826  STRIP="$ac_cv_prog_STRIP"
14827fi
14828
14829test -z "$STRIP" && STRIP=:
14830
14831
14832
14833
14834
14835
14836if test -n "$ac_tool_prefix"; then
14837  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14838set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14840$as_echo_n "checking for $ac_word... " >&6; }
14841if ${ac_cv_prog_RANLIB+:} false; then :
14842  $as_echo_n "(cached) " >&6
14843else
14844  if test -n "$RANLIB"; then
14845  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14846else
14847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848for as_dir in $PATH
14849do
14850  IFS=$as_save_IFS
14851  test -z "$as_dir" && as_dir=.
14852    for ac_exec_ext in '' $ac_executable_extensions; do
14853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14854    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14856    break 2
14857  fi
14858done
14859  done
14860IFS=$as_save_IFS
14861
14862fi
14863fi
14864RANLIB=$ac_cv_prog_RANLIB
14865if test -n "$RANLIB"; then
14866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14867$as_echo "$RANLIB" >&6; }
14868else
14869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14870$as_echo "no" >&6; }
14871fi
14872
14873
14874fi
14875if test -z "$ac_cv_prog_RANLIB"; then
14876  ac_ct_RANLIB=$RANLIB
14877  # Extract the first word of "ranlib", so it can be a program name with args.
14878set dummy ranlib; ac_word=$2
14879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14880$as_echo_n "checking for $ac_word... " >&6; }
14881if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14882  $as_echo_n "(cached) " >&6
14883else
14884  if test -n "$ac_ct_RANLIB"; then
14885  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14886else
14887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14888for as_dir in $PATH
14889do
14890  IFS=$as_save_IFS
14891  test -z "$as_dir" && as_dir=.
14892    for ac_exec_ext in '' $ac_executable_extensions; do
14893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14894    ac_cv_prog_ac_ct_RANLIB="ranlib"
14895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14896    break 2
14897  fi
14898done
14899  done
14900IFS=$as_save_IFS
14901
14902fi
14903fi
14904ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14905if test -n "$ac_ct_RANLIB"; then
14906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14907$as_echo "$ac_ct_RANLIB" >&6; }
14908else
14909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14910$as_echo "no" >&6; }
14911fi
14912
14913  if test "x$ac_ct_RANLIB" = x; then
14914    RANLIB=":"
14915  else
14916    case $cross_compiling:$ac_tool_warned in
14917yes:)
14918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14920ac_tool_warned=yes ;;
14921esac
14922    RANLIB=$ac_ct_RANLIB
14923  fi
14924else
14925  RANLIB="$ac_cv_prog_RANLIB"
14926fi
14927
14928test -z "$RANLIB" && RANLIB=:
14929
14930
14931
14932
14933
14934
14935# Determine commands to create old-style static archives.
14936old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14937old_postinstall_cmds='chmod 644 $oldlib'
14938old_postuninstall_cmds=
14939
14940if test -n "$RANLIB"; then
14941  case $host_os in
14942  openbsd*)
14943    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14944    ;;
14945  *)
14946    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14947    ;;
14948  esac
14949  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14950fi
14951
14952case $host_os in
14953  darwin*)
14954    lock_old_archive_extraction=yes ;;
14955  *)
14956    lock_old_archive_extraction=no ;;
14957esac
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997# If no C compiler was specified, use CC.
14998LTCC=${LTCC-"$CC"}
14999
15000# If no C compiler flags were specified, use CFLAGS.
15001LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15002
15003# Allow CC to be a program name with arguments.
15004compiler=$CC
15005
15006
15007# Check for command to grab the raw symbol name followed by C symbol from nm.
15008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15009$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15010if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15011  $as_echo_n "(cached) " >&6
15012else
15013
15014# These are sane defaults that work on at least a few old systems.
15015# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15016
15017# Character class describing NM global symbol codes.
15018symcode='[BCDEGRST]'
15019
15020# Regexp to match symbols that can be accessed directly from C.
15021sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15022
15023# Define system-specific variables.
15024case $host_os in
15025aix*)
15026  symcode='[BCDT]'
15027  ;;
15028cygwin* | mingw* | pw32* | cegcc*)
15029  symcode='[ABCDGISTW]'
15030  ;;
15031hpux*)
15032  if test "$host_cpu" = ia64; then
15033    symcode='[ABCDEGRST]'
15034  fi
15035  ;;
15036irix* | nonstopux*)
15037  symcode='[BCDEGRST]'
15038  ;;
15039osf*)
15040  symcode='[BCDEGQRST]'
15041  ;;
15042solaris*)
15043  symcode='[BDRT]'
15044  ;;
15045sco3.2v5*)
15046  symcode='[DT]'
15047  ;;
15048sysv4.2uw2*)
15049  symcode='[DT]'
15050  ;;
15051sysv5* | sco5v6* | unixware* | OpenUNIX*)
15052  symcode='[ABDT]'
15053  ;;
15054sysv4)
15055  symcode='[DFNSTU]'
15056  ;;
15057esac
15058
15059# If we're using GNU nm, then use its standard symbol codes.
15060case `$NM -V 2>&1` in
15061*GNU* | *'with BFD'*)
15062  symcode='[ABCDGIRSTW]' ;;
15063esac
15064
15065# Transform an extracted symbol line into a proper C declaration.
15066# Some systems (esp. on ia64) link data and code symbols differently,
15067# so use this general approach.
15068lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15069
15070# Transform an extracted symbol line into symbol name and symbol address
15071lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
15072lt_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'"
15073
15074# Handle CRLF in mingw tool chain
15075opt_cr=
15076case $build_os in
15077mingw*)
15078  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15079  ;;
15080esac
15081
15082# Try without a prefix underscore, then with it.
15083for ac_symprfx in "" "_"; do
15084
15085  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15086  symxfrm="\\1 $ac_symprfx\\2 \\2"
15087
15088  # Write the raw and C identifiers.
15089  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15090    # Fake it for dumpbin and say T for any non-static function
15091    # and D for any global variable.
15092    # Also find C++ and __fastcall symbols from MSVC++,
15093    # which start with @ or ?.
15094    lt_cv_sys_global_symbol_pipe="$AWK '"\
15095"     {last_section=section; section=\$ 3};"\
15096"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15097"     \$ 0!~/External *\|/{next};"\
15098"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15099"     {if(hide[section]) next};"\
15100"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15101"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15102"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
15103"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15104"     ' prfx=^$ac_symprfx"
15105  else
15106    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15107  fi
15108
15109  # Check to see that the pipe works correctly.
15110  pipe_works=no
15111
15112  rm -f conftest*
15113  cat > conftest.$ac_ext <<_LT_EOF
15114#ifdef __cplusplus
15115extern "C" {
15116#endif
15117char nm_test_var;
15118void nm_test_func(void);
15119void nm_test_func(void){}
15120#ifdef __cplusplus
15121}
15122#endif
15123int main(){nm_test_var='a';nm_test_func();return(0);}
15124_LT_EOF
15125
15126  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15127  (eval $ac_compile) 2>&5
15128  ac_status=$?
15129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15130  test $ac_status = 0; }; then
15131    # Now try to grab the symbols.
15132    nlist=conftest.nm
15133    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15134  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15135  ac_status=$?
15136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15137  test $ac_status = 0; } && test -s "$nlist"; then
15138      # Try sorting and uniquifying the output.
15139      if sort "$nlist" | uniq > "$nlist"T; then
15140	mv -f "$nlist"T "$nlist"
15141      else
15142	rm -f "$nlist"T
15143      fi
15144
15145      # Make sure that we snagged all the symbols we need.
15146      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15147	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15148	  cat <<_LT_EOF > conftest.$ac_ext
15149#ifdef __cplusplus
15150extern "C" {
15151#endif
15152
15153_LT_EOF
15154	  # Now generate the symbol file.
15155	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15156
15157	  cat <<_LT_EOF >> conftest.$ac_ext
15158
15159/* The mapping between symbol names and symbols.  */
15160const struct {
15161  const char *name;
15162  void       *address;
15163}
15164lt__PROGRAM__LTX_preloaded_symbols[] =
15165{
15166  { "@PROGRAM@", (void *) 0 },
15167_LT_EOF
15168	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15169	  cat <<\_LT_EOF >> conftest.$ac_ext
15170  {0, (void *) 0}
15171};
15172
15173/* This works around a problem in FreeBSD linker */
15174#ifdef FREEBSD_WORKAROUND
15175static const void *lt_preloaded_setup() {
15176  return lt__PROGRAM__LTX_preloaded_symbols;
15177}
15178#endif
15179
15180#ifdef __cplusplus
15181}
15182#endif
15183_LT_EOF
15184	  # Now try linking the two files.
15185	  mv conftest.$ac_objext conftstm.$ac_objext
15186	  lt_save_LIBS="$LIBS"
15187	  lt_save_CFLAGS="$CFLAGS"
15188	  LIBS="conftstm.$ac_objext"
15189	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15190	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15191  (eval $ac_link) 2>&5
15192  ac_status=$?
15193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15194  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15195	    pipe_works=yes
15196	  fi
15197	  LIBS="$lt_save_LIBS"
15198	  CFLAGS="$lt_save_CFLAGS"
15199	else
15200	  echo "cannot find nm_test_func in $nlist" >&5
15201	fi
15202      else
15203	echo "cannot find nm_test_var in $nlist" >&5
15204      fi
15205    else
15206      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15207    fi
15208  else
15209    echo "$progname: failed program was:" >&5
15210    cat conftest.$ac_ext >&5
15211  fi
15212  rm -rf conftest* conftst*
15213
15214  # Do not use the global_symbol_pipe unless it works.
15215  if test "$pipe_works" = yes; then
15216    break
15217  else
15218    lt_cv_sys_global_symbol_pipe=
15219  fi
15220done
15221
15222fi
15223
15224if test -z "$lt_cv_sys_global_symbol_pipe"; then
15225  lt_cv_sys_global_symbol_to_cdecl=
15226fi
15227if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15229$as_echo "failed" >&6; }
15230else
15231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15232$as_echo "ok" >&6; }
15233fi
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256# Check whether --enable-libtool-lock was given.
15257if test "${enable_libtool_lock+set}" = set; then :
15258  enableval=$enable_libtool_lock;
15259fi
15260
15261test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15262
15263# Some flags need to be propagated to the compiler or linker for good
15264# libtool support.
15265case $host in
15266ia64-*-hpux*)
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.$ac_objext` in
15275      *ELF-32*)
15276	HPUX_IA64_MODE="32"
15277	;;
15278      *ELF-64*)
15279	HPUX_IA64_MODE="64"
15280	;;
15281    esac
15282  fi
15283  rm -rf conftest*
15284  ;;
15285*-*-irix6*)
15286  # Find out which ABI we are using.
15287  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15288  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15289  (eval $ac_compile) 2>&5
15290  ac_status=$?
15291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15292  test $ac_status = 0; }; then
15293    if test "$lt_cv_prog_gnu_ld" = yes; then
15294      case `/usr/bin/file conftest.$ac_objext` in
15295	*32-bit*)
15296	  LD="${LD-ld} -melf32bsmip"
15297	  ;;
15298	*N32*)
15299	  LD="${LD-ld} -melf32bmipn32"
15300	  ;;
15301	*64-bit*)
15302	  LD="${LD-ld} -melf64bmip"
15303	;;
15304      esac
15305    else
15306      case `/usr/bin/file conftest.$ac_objext` in
15307	*32-bit*)
15308	  LD="${LD-ld} -32"
15309	  ;;
15310	*N32*)
15311	  LD="${LD-ld} -n32"
15312	  ;;
15313	*64-bit*)
15314	  LD="${LD-ld} -64"
15315	  ;;
15316      esac
15317    fi
15318  fi
15319  rm -rf conftest*
15320  ;;
15321
15322x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15323s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15324  # Find out which ABI we are using.
15325  echo 'int i;' > conftest.$ac_ext
15326  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15327  (eval $ac_compile) 2>&5
15328  ac_status=$?
15329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15330  test $ac_status = 0; }; then
15331    case `/usr/bin/file conftest.o` in
15332      *32-bit*)
15333	case $host in
15334	  x86_64-*kfreebsd*-gnu)
15335	    LD="${LD-ld} -m elf_i386_fbsd"
15336	    ;;
15337	  x86_64-*linux*)
15338	    case `/usr/bin/file conftest.o` in
15339	      *x86-64*)
15340		LD="${LD-ld} -m elf32_x86_64"
15341		;;
15342	      *)
15343		LD="${LD-ld} -m elf_i386"
15344		;;
15345	    esac
15346	    ;;
15347	  powerpc64le-*linux*)
15348	    LD="${LD-ld} -m elf32lppclinux"
15349	    ;;
15350	  powerpc64-*linux*)
15351	    LD="${LD-ld} -m elf32ppclinux"
15352	    ;;
15353	  s390x-*linux*)
15354	    LD="${LD-ld} -m elf_s390"
15355	    ;;
15356	  sparc64-*linux*)
15357	    LD="${LD-ld} -m elf32_sparc"
15358	    ;;
15359	esac
15360	;;
15361      *64-bit*)
15362	case $host in
15363	  x86_64-*kfreebsd*-gnu)
15364	    LD="${LD-ld} -m elf_x86_64_fbsd"
15365	    ;;
15366	  x86_64-*linux*)
15367	    LD="${LD-ld} -m elf_x86_64"
15368	    ;;
15369	  powerpcle-*linux*)
15370	    LD="${LD-ld} -m elf64lppc"
15371	    ;;
15372	  powerpc-*linux*)
15373	    LD="${LD-ld} -m elf64ppc"
15374	    ;;
15375	  s390*-*linux*|s390*-*tpf*)
15376	    LD="${LD-ld} -m elf64_s390"
15377	    ;;
15378	  sparc*-*linux*)
15379	    LD="${LD-ld} -m elf64_sparc"
15380	    ;;
15381	esac
15382	;;
15383    esac
15384  fi
15385  rm -rf conftest*
15386  ;;
15387
15388*-*-sco3.2v5*)
15389  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15390  SAVE_CFLAGS="$CFLAGS"
15391  CFLAGS="$CFLAGS -belf"
15392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15393$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15394if ${lt_cv_cc_needs_belf+:} false; then :
15395  $as_echo_n "(cached) " >&6
15396else
15397  ac_ext=c
15398ac_cpp='$CPP $CPPFLAGS'
15399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15401ac_compiler_gnu=$ac_cv_c_compiler_gnu
15402
15403     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404/* end confdefs.h.  */
15405
15406int
15407main ()
15408{
15409
15410  ;
15411  return 0;
15412}
15413_ACEOF
15414if ac_fn_c_try_link "$LINENO"; then :
15415  lt_cv_cc_needs_belf=yes
15416else
15417  lt_cv_cc_needs_belf=no
15418fi
15419rm -f core conftest.err conftest.$ac_objext \
15420    conftest$ac_exeext conftest.$ac_ext
15421     ac_ext=c
15422ac_cpp='$CPP $CPPFLAGS'
15423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15425ac_compiler_gnu=$ac_cv_c_compiler_gnu
15426
15427fi
15428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15429$as_echo "$lt_cv_cc_needs_belf" >&6; }
15430  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15431    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15432    CFLAGS="$SAVE_CFLAGS"
15433  fi
15434  ;;
15435sparc*-*solaris*)
15436  # Find out which ABI we are using.
15437  echo 'int i;' > conftest.$ac_ext
15438  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15439  (eval $ac_compile) 2>&5
15440  ac_status=$?
15441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15442  test $ac_status = 0; }; then
15443    case `/usr/bin/file conftest.o` in
15444    *64-bit*)
15445      case $lt_cv_prog_gnu_ld in
15446      yes*) LD="${LD-ld} -m elf64_sparc" ;;
15447      *)
15448	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15449	  LD="${LD-ld} -64"
15450	fi
15451	;;
15452      esac
15453      ;;
15454    esac
15455  fi
15456  rm -rf conftest*
15457  ;;
15458esac
15459
15460need_locks="$enable_libtool_lock"
15461
15462
15463  case $host_os in
15464    rhapsody* | darwin*)
15465    if test -n "$ac_tool_prefix"; then
15466  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15467set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15469$as_echo_n "checking for $ac_word... " >&6; }
15470if ${ac_cv_prog_DSYMUTIL+:} false; then :
15471  $as_echo_n "(cached) " >&6
15472else
15473  if test -n "$DSYMUTIL"; then
15474  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15475else
15476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15477for as_dir in $PATH
15478do
15479  IFS=$as_save_IFS
15480  test -z "$as_dir" && as_dir=.
15481    for ac_exec_ext in '' $ac_executable_extensions; do
15482  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15483    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15485    break 2
15486  fi
15487done
15488  done
15489IFS=$as_save_IFS
15490
15491fi
15492fi
15493DSYMUTIL=$ac_cv_prog_DSYMUTIL
15494if test -n "$DSYMUTIL"; then
15495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15496$as_echo "$DSYMUTIL" >&6; }
15497else
15498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15499$as_echo "no" >&6; }
15500fi
15501
15502
15503fi
15504if test -z "$ac_cv_prog_DSYMUTIL"; then
15505  ac_ct_DSYMUTIL=$DSYMUTIL
15506  # Extract the first word of "dsymutil", so it can be a program name with args.
15507set dummy dsymutil; ac_word=$2
15508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15509$as_echo_n "checking for $ac_word... " >&6; }
15510if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15511  $as_echo_n "(cached) " >&6
15512else
15513  if test -n "$ac_ct_DSYMUTIL"; then
15514  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15515else
15516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517for as_dir in $PATH
15518do
15519  IFS=$as_save_IFS
15520  test -z "$as_dir" && as_dir=.
15521    for ac_exec_ext in '' $ac_executable_extensions; do
15522  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15523    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15525    break 2
15526  fi
15527done
15528  done
15529IFS=$as_save_IFS
15530
15531fi
15532fi
15533ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15534if test -n "$ac_ct_DSYMUTIL"; then
15535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15536$as_echo "$ac_ct_DSYMUTIL" >&6; }
15537else
15538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539$as_echo "no" >&6; }
15540fi
15541
15542  if test "x$ac_ct_DSYMUTIL" = x; then
15543    DSYMUTIL=":"
15544  else
15545    case $cross_compiling:$ac_tool_warned in
15546yes:)
15547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15549ac_tool_warned=yes ;;
15550esac
15551    DSYMUTIL=$ac_ct_DSYMUTIL
15552  fi
15553else
15554  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15555fi
15556
15557    if test -n "$ac_tool_prefix"; then
15558  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15559set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15561$as_echo_n "checking for $ac_word... " >&6; }
15562if ${ac_cv_prog_NMEDIT+:} false; then :
15563  $as_echo_n "(cached) " >&6
15564else
15565  if test -n "$NMEDIT"; then
15566  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15567else
15568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15569for as_dir in $PATH
15570do
15571  IFS=$as_save_IFS
15572  test -z "$as_dir" && as_dir=.
15573    for ac_exec_ext in '' $ac_executable_extensions; do
15574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15575    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15577    break 2
15578  fi
15579done
15580  done
15581IFS=$as_save_IFS
15582
15583fi
15584fi
15585NMEDIT=$ac_cv_prog_NMEDIT
15586if test -n "$NMEDIT"; then
15587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15588$as_echo "$NMEDIT" >&6; }
15589else
15590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15591$as_echo "no" >&6; }
15592fi
15593
15594
15595fi
15596if test -z "$ac_cv_prog_NMEDIT"; then
15597  ac_ct_NMEDIT=$NMEDIT
15598  # Extract the first word of "nmedit", so it can be a program name with args.
15599set dummy nmedit; ac_word=$2
15600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15601$as_echo_n "checking for $ac_word... " >&6; }
15602if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15603  $as_echo_n "(cached) " >&6
15604else
15605  if test -n "$ac_ct_NMEDIT"; then
15606  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15607else
15608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15609for as_dir in $PATH
15610do
15611  IFS=$as_save_IFS
15612  test -z "$as_dir" && as_dir=.
15613    for ac_exec_ext in '' $ac_executable_extensions; do
15614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15615    ac_cv_prog_ac_ct_NMEDIT="nmedit"
15616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15617    break 2
15618  fi
15619done
15620  done
15621IFS=$as_save_IFS
15622
15623fi
15624fi
15625ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15626if test -n "$ac_ct_NMEDIT"; then
15627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15628$as_echo "$ac_ct_NMEDIT" >&6; }
15629else
15630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15631$as_echo "no" >&6; }
15632fi
15633
15634  if test "x$ac_ct_NMEDIT" = x; then
15635    NMEDIT=":"
15636  else
15637    case $cross_compiling:$ac_tool_warned in
15638yes:)
15639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15641ac_tool_warned=yes ;;
15642esac
15643    NMEDIT=$ac_ct_NMEDIT
15644  fi
15645else
15646  NMEDIT="$ac_cv_prog_NMEDIT"
15647fi
15648
15649    if test -n "$ac_tool_prefix"; then
15650  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15651set dummy ${ac_tool_prefix}lipo; ac_word=$2
15652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15653$as_echo_n "checking for $ac_word... " >&6; }
15654if ${ac_cv_prog_LIPO+:} false; then :
15655  $as_echo_n "(cached) " >&6
15656else
15657  if test -n "$LIPO"; then
15658  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15659else
15660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15661for as_dir in $PATH
15662do
15663  IFS=$as_save_IFS
15664  test -z "$as_dir" && as_dir=.
15665    for ac_exec_ext in '' $ac_executable_extensions; do
15666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15667    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15669    break 2
15670  fi
15671done
15672  done
15673IFS=$as_save_IFS
15674
15675fi
15676fi
15677LIPO=$ac_cv_prog_LIPO
15678if test -n "$LIPO"; then
15679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15680$as_echo "$LIPO" >&6; }
15681else
15682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15683$as_echo "no" >&6; }
15684fi
15685
15686
15687fi
15688if test -z "$ac_cv_prog_LIPO"; then
15689  ac_ct_LIPO=$LIPO
15690  # Extract the first word of "lipo", so it can be a program name with args.
15691set dummy lipo; ac_word=$2
15692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15693$as_echo_n "checking for $ac_word... " >&6; }
15694if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15695  $as_echo_n "(cached) " >&6
15696else
15697  if test -n "$ac_ct_LIPO"; then
15698  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15699else
15700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15701for as_dir in $PATH
15702do
15703  IFS=$as_save_IFS
15704  test -z "$as_dir" && as_dir=.
15705    for ac_exec_ext in '' $ac_executable_extensions; do
15706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15707    ac_cv_prog_ac_ct_LIPO="lipo"
15708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15709    break 2
15710  fi
15711done
15712  done
15713IFS=$as_save_IFS
15714
15715fi
15716fi
15717ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15718if test -n "$ac_ct_LIPO"; then
15719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15720$as_echo "$ac_ct_LIPO" >&6; }
15721else
15722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15723$as_echo "no" >&6; }
15724fi
15725
15726  if test "x$ac_ct_LIPO" = x; then
15727    LIPO=":"
15728  else
15729    case $cross_compiling:$ac_tool_warned in
15730yes:)
15731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15733ac_tool_warned=yes ;;
15734esac
15735    LIPO=$ac_ct_LIPO
15736  fi
15737else
15738  LIPO="$ac_cv_prog_LIPO"
15739fi
15740
15741    if test -n "$ac_tool_prefix"; then
15742  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15743set dummy ${ac_tool_prefix}otool; ac_word=$2
15744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15745$as_echo_n "checking for $ac_word... " >&6; }
15746if ${ac_cv_prog_OTOOL+:} false; then :
15747  $as_echo_n "(cached) " >&6
15748else
15749  if test -n "$OTOOL"; then
15750  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15751else
15752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15753for as_dir in $PATH
15754do
15755  IFS=$as_save_IFS
15756  test -z "$as_dir" && as_dir=.
15757    for ac_exec_ext in '' $ac_executable_extensions; do
15758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15759    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15761    break 2
15762  fi
15763done
15764  done
15765IFS=$as_save_IFS
15766
15767fi
15768fi
15769OTOOL=$ac_cv_prog_OTOOL
15770if test -n "$OTOOL"; then
15771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15772$as_echo "$OTOOL" >&6; }
15773else
15774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15775$as_echo "no" >&6; }
15776fi
15777
15778
15779fi
15780if test -z "$ac_cv_prog_OTOOL"; then
15781  ac_ct_OTOOL=$OTOOL
15782  # Extract the first word of "otool", so it can be a program name with args.
15783set dummy otool; ac_word=$2
15784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15785$as_echo_n "checking for $ac_word... " >&6; }
15786if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15787  $as_echo_n "(cached) " >&6
15788else
15789  if test -n "$ac_ct_OTOOL"; then
15790  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15791else
15792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15793for as_dir in $PATH
15794do
15795  IFS=$as_save_IFS
15796  test -z "$as_dir" && as_dir=.
15797    for ac_exec_ext in '' $ac_executable_extensions; do
15798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15799    ac_cv_prog_ac_ct_OTOOL="otool"
15800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15801    break 2
15802  fi
15803done
15804  done
15805IFS=$as_save_IFS
15806
15807fi
15808fi
15809ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15810if test -n "$ac_ct_OTOOL"; then
15811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15812$as_echo "$ac_ct_OTOOL" >&6; }
15813else
15814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15815$as_echo "no" >&6; }
15816fi
15817
15818  if test "x$ac_ct_OTOOL" = x; then
15819    OTOOL=":"
15820  else
15821    case $cross_compiling:$ac_tool_warned in
15822yes:)
15823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15825ac_tool_warned=yes ;;
15826esac
15827    OTOOL=$ac_ct_OTOOL
15828  fi
15829else
15830  OTOOL="$ac_cv_prog_OTOOL"
15831fi
15832
15833    if test -n "$ac_tool_prefix"; then
15834  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15835set dummy ${ac_tool_prefix}otool64; ac_word=$2
15836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15837$as_echo_n "checking for $ac_word... " >&6; }
15838if ${ac_cv_prog_OTOOL64+:} false; then :
15839  $as_echo_n "(cached) " >&6
15840else
15841  if test -n "$OTOOL64"; then
15842  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15843else
15844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15845for as_dir in $PATH
15846do
15847  IFS=$as_save_IFS
15848  test -z "$as_dir" && as_dir=.
15849    for ac_exec_ext in '' $ac_executable_extensions; do
15850  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15851    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15853    break 2
15854  fi
15855done
15856  done
15857IFS=$as_save_IFS
15858
15859fi
15860fi
15861OTOOL64=$ac_cv_prog_OTOOL64
15862if test -n "$OTOOL64"; then
15863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15864$as_echo "$OTOOL64" >&6; }
15865else
15866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15867$as_echo "no" >&6; }
15868fi
15869
15870
15871fi
15872if test -z "$ac_cv_prog_OTOOL64"; then
15873  ac_ct_OTOOL64=$OTOOL64
15874  # Extract the first word of "otool64", so it can be a program name with args.
15875set dummy otool64; ac_word=$2
15876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15877$as_echo_n "checking for $ac_word... " >&6; }
15878if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15879  $as_echo_n "(cached) " >&6
15880else
15881  if test -n "$ac_ct_OTOOL64"; then
15882  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15883else
15884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885for as_dir in $PATH
15886do
15887  IFS=$as_save_IFS
15888  test -z "$as_dir" && as_dir=.
15889    for ac_exec_ext in '' $ac_executable_extensions; do
15890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15891    ac_cv_prog_ac_ct_OTOOL64="otool64"
15892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15893    break 2
15894  fi
15895done
15896  done
15897IFS=$as_save_IFS
15898
15899fi
15900fi
15901ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15902if test -n "$ac_ct_OTOOL64"; then
15903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15904$as_echo "$ac_ct_OTOOL64" >&6; }
15905else
15906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15907$as_echo "no" >&6; }
15908fi
15909
15910  if test "x$ac_ct_OTOOL64" = x; then
15911    OTOOL64=":"
15912  else
15913    case $cross_compiling:$ac_tool_warned in
15914yes:)
15915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15917ac_tool_warned=yes ;;
15918esac
15919    OTOOL64=$ac_ct_OTOOL64
15920  fi
15921else
15922  OTOOL64="$ac_cv_prog_OTOOL64"
15923fi
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15952$as_echo_n "checking for -single_module linker flag... " >&6; }
15953if ${lt_cv_apple_cc_single_mod+:} false; then :
15954  $as_echo_n "(cached) " >&6
15955else
15956  lt_cv_apple_cc_single_mod=no
15957      if test -z "${LT_MULTI_MODULE}"; then
15958	# By default we will add the -single_module flag. You can override
15959	# by either setting the environment variable LT_MULTI_MODULE
15960	# non-empty at configure time, or by adding -multi_module to the
15961	# link flags.
15962	rm -rf libconftest.dylib*
15963	echo "int foo(void){return 1;}" > conftest.c
15964	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15965-dynamiclib -Wl,-single_module conftest.c" >&5
15966	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15967	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15968        _lt_result=$?
15969	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15970	  lt_cv_apple_cc_single_mod=yes
15971	else
15972	  cat conftest.err >&5
15973	fi
15974	rm -rf libconftest.dylib*
15975	rm -f conftest.*
15976      fi
15977fi
15978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15979$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15981$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15982if ${lt_cv_ld_exported_symbols_list+:} false; then :
15983  $as_echo_n "(cached) " >&6
15984else
15985  lt_cv_ld_exported_symbols_list=no
15986      save_LDFLAGS=$LDFLAGS
15987      echo "_main" > conftest.sym
15988      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15989      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990/* end confdefs.h.  */
15991
15992int
15993main ()
15994{
15995
15996  ;
15997  return 0;
15998}
15999_ACEOF
16000if ac_fn_c_try_link "$LINENO"; then :
16001  lt_cv_ld_exported_symbols_list=yes
16002else
16003  lt_cv_ld_exported_symbols_list=no
16004fi
16005rm -f core conftest.err conftest.$ac_objext \
16006    conftest$ac_exeext conftest.$ac_ext
16007	LDFLAGS="$save_LDFLAGS"
16008
16009fi
16010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16011$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16012    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16013$as_echo_n "checking for -force_load linker flag... " >&6; }
16014if ${lt_cv_ld_force_load+:} false; then :
16015  $as_echo_n "(cached) " >&6
16016else
16017  lt_cv_ld_force_load=no
16018      cat > conftest.c << _LT_EOF
16019int forced_loaded() { return 2;}
16020_LT_EOF
16021      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16022      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16023      echo "$AR cru libconftest.a conftest.o" >&5
16024      $AR cru libconftest.a conftest.o 2>&5
16025      cat > conftest.c << _LT_EOF
16026int main() { return 0;}
16027_LT_EOF
16028      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16029      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16030      _lt_result=$?
16031      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16032	lt_cv_ld_force_load=yes
16033      else
16034	cat conftest.err >&5
16035      fi
16036        rm -f conftest.err libconftest.a conftest conftest.c
16037        rm -rf conftest.dSYM
16038
16039fi
16040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16041$as_echo "$lt_cv_ld_force_load" >&6; }
16042    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16043    # build without first building modern cctools / linker.
16044    case $host_cpu-$host_os in
16045    *-rhapsody* | *-darwin1.[012])
16046      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16047    *-darwin1.*)
16048      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16049    *-darwin*)
16050      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16051      # deployment target is forced to an earlier version.
16052      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16053	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16054	  ;;
16055	10.[012][,.]*)
16056	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16057	  ;;
16058	*)
16059	  ;;
16060     esac
16061    ;;
16062  esac
16063    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16064      _lt_dar_single_mod='$single_module'
16065    fi
16066    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16067      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16068    else
16069      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16070    fi
16071    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16072      _lt_dsymutil='~$DSYMUTIL $lib || :'
16073    else
16074      _lt_dsymutil=
16075    fi
16076    ;;
16077  esac
16078
16079
16080for ac_header in dlfcn.h
16081do :
16082  ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16083if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16084  cat >>confdefs.h <<_ACEOF
16085#define HAVE_DLFCN_H 1
16086_ACEOF
16087
16088fi
16089done
16090
16091
16092
16093
16094
16095# Set options
16096
16097
16098
16099        enable_dlopen=no
16100
16101
16102  enable_win32_dll=no
16103
16104
16105            # Check whether --enable-shared was given.
16106if test "${enable_shared+set}" = set; then :
16107  enableval=$enable_shared; p=${PACKAGE-default}
16108    case $enableval in
16109    yes) enable_shared=yes ;;
16110    no) enable_shared=no ;;
16111    *)
16112      enable_shared=no
16113      # Look at the argument we got.  We use all the common list separators.
16114      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16115      for pkg in $enableval; do
16116	IFS="$lt_save_ifs"
16117	if test "X$pkg" = "X$p"; then
16118	  enable_shared=yes
16119	fi
16120      done
16121      IFS="$lt_save_ifs"
16122      ;;
16123    esac
16124else
16125  enable_shared=yes
16126fi
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136  # Check whether --enable-static was given.
16137if test "${enable_static+set}" = set; then :
16138  enableval=$enable_static; p=${PACKAGE-default}
16139    case $enableval in
16140    yes) enable_static=yes ;;
16141    no) enable_static=no ;;
16142    *)
16143     enable_static=no
16144      # Look at the argument we got.  We use all the common list separators.
16145      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16146      for pkg in $enableval; do
16147	IFS="$lt_save_ifs"
16148	if test "X$pkg" = "X$p"; then
16149	  enable_static=yes
16150	fi
16151      done
16152      IFS="$lt_save_ifs"
16153      ;;
16154    esac
16155else
16156  enable_static=yes
16157fi
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168# Check whether --with-pic was given.
16169if test "${with_pic+set}" = set; then :
16170  withval=$with_pic; pic_mode="$withval"
16171else
16172  pic_mode=default
16173fi
16174
16175
16176test -z "$pic_mode" && pic_mode=default
16177
16178
16179
16180
16181
16182
16183
16184  # Check whether --enable-fast-install was given.
16185if test "${enable_fast_install+set}" = set; then :
16186  enableval=$enable_fast_install; p=${PACKAGE-default}
16187    case $enableval in
16188    yes) enable_fast_install=yes ;;
16189    no) enable_fast_install=no ;;
16190    *)
16191      enable_fast_install=no
16192      # Look at the argument we got.  We use all the common list separators.
16193      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16194      for pkg in $enableval; do
16195	IFS="$lt_save_ifs"
16196	if test "X$pkg" = "X$p"; then
16197	  enable_fast_install=yes
16198	fi
16199      done
16200      IFS="$lt_save_ifs"
16201      ;;
16202    esac
16203else
16204  enable_fast_install=yes
16205fi
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217# This can be used to rebuild libtool when needed
16218LIBTOOL_DEPS="$ltmain"
16219
16220# Always use our own libtool.
16221LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248test -z "$LN_S" && LN_S="ln -s"
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263if test -n "${ZSH_VERSION+set}" ; then
16264   setopt NO_GLOB_SUBST
16265fi
16266
16267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16268$as_echo_n "checking for objdir... " >&6; }
16269if ${lt_cv_objdir+:} false; then :
16270  $as_echo_n "(cached) " >&6
16271else
16272  rm -f .libs 2>/dev/null
16273mkdir .libs 2>/dev/null
16274if test -d .libs; then
16275  lt_cv_objdir=.libs
16276else
16277  # MS-DOS does not allow filenames that begin with a dot.
16278  lt_cv_objdir=_libs
16279fi
16280rmdir .libs 2>/dev/null
16281fi
16282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16283$as_echo "$lt_cv_objdir" >&6; }
16284objdir=$lt_cv_objdir
16285
16286
16287
16288
16289
16290cat >>confdefs.h <<_ACEOF
16291#define LT_OBJDIR "$lt_cv_objdir/"
16292_ACEOF
16293
16294
16295
16296
16297case $host_os in
16298aix3*)
16299  # AIX sometimes has problems with the GCC collect2 program.  For some
16300  # reason, if we set the COLLECT_NAMES environment variable, the problems
16301  # vanish in a puff of smoke.
16302  if test "X${COLLECT_NAMES+set}" != Xset; then
16303    COLLECT_NAMES=
16304    export COLLECT_NAMES
16305  fi
16306  ;;
16307esac
16308
16309# Global variables:
16310ofile=libtool
16311can_build_shared=yes
16312
16313# All known linkers require a `.a' archive for static linking (except MSVC,
16314# which needs '.lib').
16315libext=a
16316
16317with_gnu_ld="$lt_cv_prog_gnu_ld"
16318
16319old_CC="$CC"
16320old_CFLAGS="$CFLAGS"
16321
16322# Set sane defaults for various variables
16323test -z "$CC" && CC=cc
16324test -z "$LTCC" && LTCC=$CC
16325test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16326test -z "$LD" && LD=ld
16327test -z "$ac_objext" && ac_objext=o
16328
16329for cc_temp in $compiler""; do
16330  case $cc_temp in
16331    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16332    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16333    \-*) ;;
16334    *) break;;
16335  esac
16336done
16337cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16338
16339
16340# Only perform the check for file, if the check method requires it
16341test -z "$MAGIC_CMD" && MAGIC_CMD=file
16342case $deplibs_check_method in
16343file_magic*)
16344  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16346$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16347if ${lt_cv_path_MAGIC_CMD+:} false; then :
16348  $as_echo_n "(cached) " >&6
16349else
16350  case $MAGIC_CMD in
16351[\\/*] |  ?:[\\/]*)
16352  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16353  ;;
16354*)
16355  lt_save_MAGIC_CMD="$MAGIC_CMD"
16356  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16357  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16358  for ac_dir in $ac_dummy; do
16359    IFS="$lt_save_ifs"
16360    test -z "$ac_dir" && ac_dir=.
16361    if test -f $ac_dir/${ac_tool_prefix}file; then
16362      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16363      if test -n "$file_magic_test_file"; then
16364	case $deplibs_check_method in
16365	"file_magic "*)
16366	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16367	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16368	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16369	    $EGREP "$file_magic_regex" > /dev/null; then
16370	    :
16371	  else
16372	    cat <<_LT_EOF 1>&2
16373
16374*** Warning: the command libtool uses to detect shared libraries,
16375*** $file_magic_cmd, produces output that libtool cannot recognize.
16376*** The result is that libtool may fail to recognize shared libraries
16377*** as such.  This will affect the creation of libtool libraries that
16378*** depend on shared libraries, but programs linked with such libtool
16379*** libraries will work regardless of this problem.  Nevertheless, you
16380*** may want to report the problem to your system manager and/or to
16381*** bug-libtool@gnu.org
16382
16383_LT_EOF
16384	  fi ;;
16385	esac
16386      fi
16387      break
16388    fi
16389  done
16390  IFS="$lt_save_ifs"
16391  MAGIC_CMD="$lt_save_MAGIC_CMD"
16392  ;;
16393esac
16394fi
16395
16396MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16397if test -n "$MAGIC_CMD"; then
16398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16399$as_echo "$MAGIC_CMD" >&6; }
16400else
16401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16402$as_echo "no" >&6; }
16403fi
16404
16405
16406
16407
16408
16409if test -z "$lt_cv_path_MAGIC_CMD"; then
16410  if test -n "$ac_tool_prefix"; then
16411    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16412$as_echo_n "checking for file... " >&6; }
16413if ${lt_cv_path_MAGIC_CMD+:} false; then :
16414  $as_echo_n "(cached) " >&6
16415else
16416  case $MAGIC_CMD in
16417[\\/*] |  ?:[\\/]*)
16418  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16419  ;;
16420*)
16421  lt_save_MAGIC_CMD="$MAGIC_CMD"
16422  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16423  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16424  for ac_dir in $ac_dummy; do
16425    IFS="$lt_save_ifs"
16426    test -z "$ac_dir" && ac_dir=.
16427    if test -f $ac_dir/file; then
16428      lt_cv_path_MAGIC_CMD="$ac_dir/file"
16429      if test -n "$file_magic_test_file"; then
16430	case $deplibs_check_method in
16431	"file_magic "*)
16432	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16433	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16434	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16435	    $EGREP "$file_magic_regex" > /dev/null; then
16436	    :
16437	  else
16438	    cat <<_LT_EOF 1>&2
16439
16440*** Warning: the command libtool uses to detect shared libraries,
16441*** $file_magic_cmd, produces output that libtool cannot recognize.
16442*** The result is that libtool may fail to recognize shared libraries
16443*** as such.  This will affect the creation of libtool libraries that
16444*** depend on shared libraries, but programs linked with such libtool
16445*** libraries will work regardless of this problem.  Nevertheless, you
16446*** may want to report the problem to your system manager and/or to
16447*** bug-libtool@gnu.org
16448
16449_LT_EOF
16450	  fi ;;
16451	esac
16452      fi
16453      break
16454    fi
16455  done
16456  IFS="$lt_save_ifs"
16457  MAGIC_CMD="$lt_save_MAGIC_CMD"
16458  ;;
16459esac
16460fi
16461
16462MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16463if test -n "$MAGIC_CMD"; then
16464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16465$as_echo "$MAGIC_CMD" >&6; }
16466else
16467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468$as_echo "no" >&6; }
16469fi
16470
16471
16472  else
16473    MAGIC_CMD=:
16474  fi
16475fi
16476
16477  fi
16478  ;;
16479esac
16480
16481# Use C for the default configuration in the libtool script
16482
16483lt_save_CC="$CC"
16484ac_ext=c
16485ac_cpp='$CPP $CPPFLAGS'
16486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16488ac_compiler_gnu=$ac_cv_c_compiler_gnu
16489
16490
16491# Source file extension for C test sources.
16492ac_ext=c
16493
16494# Object file extension for compiled C test sources.
16495objext=o
16496objext=$objext
16497
16498# Code to be used in simple compile tests
16499lt_simple_compile_test_code="int some_variable = 0;"
16500
16501# Code to be used in simple link tests
16502lt_simple_link_test_code='int main(){return(0);}'
16503
16504
16505
16506
16507
16508
16509
16510# If no C compiler was specified, use CC.
16511LTCC=${LTCC-"$CC"}
16512
16513# If no C compiler flags were specified, use CFLAGS.
16514LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16515
16516# Allow CC to be a program name with arguments.
16517compiler=$CC
16518
16519# Save the default compiler, since it gets overwritten when the other
16520# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16521compiler_DEFAULT=$CC
16522
16523# save warnings/boilerplate of simple test code
16524ac_outfile=conftest.$ac_objext
16525echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16526eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16527_lt_compiler_boilerplate=`cat conftest.err`
16528$RM conftest*
16529
16530ac_outfile=conftest.$ac_objext
16531echo "$lt_simple_link_test_code" >conftest.$ac_ext
16532eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16533_lt_linker_boilerplate=`cat conftest.err`
16534$RM -r conftest*
16535
16536
16537## CAVEAT EMPTOR:
16538## There is no encapsulation within the following macros, do not change
16539## the running order or otherwise move them around unless you know exactly
16540## what you are doing...
16541if test -n "$compiler"; then
16542
16543lt_prog_compiler_no_builtin_flag=
16544
16545if test "$GCC" = yes; then
16546  case $cc_basename in
16547  nvcc*)
16548    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16549  *)
16550    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16551  esac
16552
16553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16554$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16555if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16556  $as_echo_n "(cached) " >&6
16557else
16558  lt_cv_prog_compiler_rtti_exceptions=no
16559   ac_outfile=conftest.$ac_objext
16560   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16561   lt_compiler_flag="-fno-rtti -fno-exceptions"
16562   # Insert the option either (1) after the last *FLAGS variable, or
16563   # (2) before a word containing "conftest.", or (3) at the end.
16564   # Note that $ac_compile itself does not contain backslashes and begins
16565   # with a dollar sign (not a hyphen), so the echo should work correctly.
16566   # The option is referenced via a variable to avoid confusing sed.
16567   lt_compile=`echo "$ac_compile" | $SED \
16568   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16569   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16570   -e 's:$: $lt_compiler_flag:'`
16571   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16572   (eval "$lt_compile" 2>conftest.err)
16573   ac_status=$?
16574   cat conftest.err >&5
16575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576   if (exit $ac_status) && test -s "$ac_outfile"; then
16577     # The compiler can only warn and ignore the option if not recognized
16578     # So say no if there are warnings other than the usual output.
16579     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16580     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16581     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16582       lt_cv_prog_compiler_rtti_exceptions=yes
16583     fi
16584   fi
16585   $RM conftest*
16586
16587fi
16588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16589$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16590
16591if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16592    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16593else
16594    :
16595fi
16596
16597fi
16598
16599
16600
16601
16602
16603
16604  lt_prog_compiler_wl=
16605lt_prog_compiler_pic=
16606lt_prog_compiler_static=
16607
16608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16609$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16610
16611  if test "$GCC" = yes; then
16612    lt_prog_compiler_wl='-Wl,'
16613    lt_prog_compiler_static='-static'
16614
16615    case $host_os in
16616      aix*)
16617      # All AIX code is PIC.
16618      if test "$host_cpu" = ia64; then
16619	# AIX 5 now supports IA64 processor
16620	lt_prog_compiler_static='-Bstatic'
16621      fi
16622      lt_prog_compiler_pic='-fPIC'
16623      ;;
16624
16625    amigaos*)
16626      case $host_cpu in
16627      powerpc)
16628            # see comment about AmigaOS4 .so support
16629            lt_prog_compiler_pic='-fPIC'
16630        ;;
16631      m68k)
16632            # FIXME: we need at least 68020 code to build shared libraries, but
16633            # adding the `-m68020' flag to GCC prevents building anything better,
16634            # like `-m68040'.
16635            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16636        ;;
16637      esac
16638      ;;
16639
16640    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16641      # PIC is the default for these OSes.
16642      ;;
16643
16644    mingw* | cygwin* | pw32* | os2* | cegcc*)
16645      # This hack is so that the source file can tell whether it is being
16646      # built for inclusion in a dll (and should export symbols for example).
16647      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16648      # (--disable-auto-import) libraries
16649      lt_prog_compiler_pic='-DDLL_EXPORT'
16650      ;;
16651
16652    darwin* | rhapsody*)
16653      # PIC is the default on this platform
16654      # Common symbols not allowed in MH_DYLIB files
16655      lt_prog_compiler_pic='-fno-common'
16656      ;;
16657
16658    haiku*)
16659      # PIC is the default for Haiku.
16660      # The "-static" flag exists, but is broken.
16661      lt_prog_compiler_static=
16662      ;;
16663
16664    hpux*)
16665      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16666      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16667      # sets the default TLS model and affects inlining.
16668      case $host_cpu in
16669      hppa*64*)
16670	# +Z the default
16671	;;
16672      *)
16673	lt_prog_compiler_pic='-fPIC'
16674	;;
16675      esac
16676      ;;
16677
16678    interix[3-9]*)
16679      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16680      # Instead, we relocate shared libraries at runtime.
16681      ;;
16682
16683    msdosdjgpp*)
16684      # Just because we use GCC doesn't mean we suddenly get shared libraries
16685      # on systems that don't support them.
16686      lt_prog_compiler_can_build_shared=no
16687      enable_shared=no
16688      ;;
16689
16690    *nto* | *qnx*)
16691      # QNX uses GNU C++, but need to define -shared option too, otherwise
16692      # it will coredump.
16693      lt_prog_compiler_pic='-fPIC -shared'
16694      ;;
16695
16696    sysv4*MP*)
16697      if test -d /usr/nec; then
16698	lt_prog_compiler_pic=-Kconform_pic
16699      fi
16700      ;;
16701
16702    *)
16703      lt_prog_compiler_pic='-fPIC'
16704      ;;
16705    esac
16706
16707    case $cc_basename in
16708    nvcc*) # Cuda Compiler Driver 2.2
16709      lt_prog_compiler_wl='-Xlinker '
16710      lt_prog_compiler_pic='-Xcompiler -fPIC'
16711      ;;
16712    esac
16713  else
16714    # PORTME Check for flag to pass linker flags through the system compiler.
16715    case $host_os in
16716    aix*)
16717      lt_prog_compiler_wl='-Wl,'
16718      if test "$host_cpu" = ia64; then
16719	# AIX 5 now supports IA64 processor
16720	lt_prog_compiler_static='-Bstatic'
16721      else
16722	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16723      fi
16724      ;;
16725
16726    mingw* | cygwin* | pw32* | os2* | cegcc*)
16727      # This hack is so that the source file can tell whether it is being
16728      # built for inclusion in a dll (and should export symbols for example).
16729      lt_prog_compiler_pic='-DDLL_EXPORT'
16730      ;;
16731
16732    hpux9* | hpux10* | hpux11*)
16733      lt_prog_compiler_wl='-Wl,'
16734      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16735      # not for PA HP-UX.
16736      case $host_cpu in
16737      hppa*64*|ia64*)
16738	# +Z the default
16739	;;
16740      *)
16741	lt_prog_compiler_pic='+Z'
16742	;;
16743      esac
16744      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16745      lt_prog_compiler_static='${wl}-a ${wl}archive'
16746      ;;
16747
16748    irix5* | irix6* | nonstopux*)
16749      lt_prog_compiler_wl='-Wl,'
16750      # PIC (with -KPIC) is the default.
16751      lt_prog_compiler_static='-non_shared'
16752      ;;
16753
16754    linux* | k*bsd*-gnu | kopensolaris*-gnu)
16755      case $cc_basename in
16756      # old Intel for x86_64 which still supported -KPIC.
16757      ecc*)
16758	lt_prog_compiler_wl='-Wl,'
16759	lt_prog_compiler_pic='-KPIC'
16760	lt_prog_compiler_static='-static'
16761        ;;
16762      # icc used to be incompatible with GCC.
16763      # ICC 10 doesn't accept -KPIC any more.
16764      icc* | ifort*)
16765	lt_prog_compiler_wl='-Wl,'
16766	lt_prog_compiler_pic='-fPIC'
16767	lt_prog_compiler_static='-static'
16768        ;;
16769      # Lahey Fortran 8.1.
16770      lf95*)
16771	lt_prog_compiler_wl='-Wl,'
16772	lt_prog_compiler_pic='--shared'
16773	lt_prog_compiler_static='--static'
16774	;;
16775      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16776        # Portland Group compilers (*not* the Pentium gcc compiler,
16777	# which looks to be a dead project)
16778	lt_prog_compiler_wl='-Wl,'
16779	lt_prog_compiler_pic='-fpic'
16780	lt_prog_compiler_static='-Bstatic'
16781        ;;
16782      ccc*)
16783        lt_prog_compiler_wl='-Wl,'
16784        # All Alpha code is PIC.
16785        lt_prog_compiler_static='-non_shared'
16786        ;;
16787      xl* | bgxl* | bgf* | mpixl*)
16788	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16789	lt_prog_compiler_wl='-Wl,'
16790	lt_prog_compiler_pic='-qpic'
16791	lt_prog_compiler_static='-qstaticlink'
16792	;;
16793      *)
16794	case `$CC -V 2>&1 | sed 5q` in
16795	*Sun\ F* | *Sun*Fortran*)
16796	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16797	  lt_prog_compiler_pic='-KPIC'
16798	  lt_prog_compiler_static='-Bstatic'
16799	  lt_prog_compiler_wl=''
16800	  ;;
16801	*Sun\ C*)
16802	  # Sun C 5.9
16803	  lt_prog_compiler_pic='-KPIC'
16804	  lt_prog_compiler_static='-Bstatic'
16805	  lt_prog_compiler_wl='-Wl,'
16806	  ;;
16807	esac
16808	;;
16809      esac
16810      ;;
16811
16812    newsos6)
16813      lt_prog_compiler_pic='-KPIC'
16814      lt_prog_compiler_static='-Bstatic'
16815      ;;
16816
16817    *nto* | *qnx*)
16818      # QNX uses GNU C++, but need to define -shared option too, otherwise
16819      # it will coredump.
16820      lt_prog_compiler_pic='-fPIC -shared'
16821      ;;
16822
16823    osf3* | osf4* | osf5*)
16824      lt_prog_compiler_wl='-Wl,'
16825      # All OSF/1 code is PIC.
16826      lt_prog_compiler_static='-non_shared'
16827      ;;
16828
16829    rdos*)
16830      lt_prog_compiler_static='-non_shared'
16831      ;;
16832
16833    solaris*)
16834      lt_prog_compiler_pic='-KPIC'
16835      lt_prog_compiler_static='-Bstatic'
16836      case $cc_basename in
16837      f77* | f90* | f95*)
16838	lt_prog_compiler_wl='-Qoption ld ';;
16839      *)
16840	lt_prog_compiler_wl='-Wl,';;
16841      esac
16842      ;;
16843
16844    sunos4*)
16845      lt_prog_compiler_wl='-Qoption ld '
16846      lt_prog_compiler_pic='-PIC'
16847      lt_prog_compiler_static='-Bstatic'
16848      ;;
16849
16850    sysv4 | sysv4.2uw2* | sysv4.3*)
16851      lt_prog_compiler_wl='-Wl,'
16852      lt_prog_compiler_pic='-KPIC'
16853      lt_prog_compiler_static='-Bstatic'
16854      ;;
16855
16856    sysv4*MP*)
16857      if test -d /usr/nec ;then
16858	lt_prog_compiler_pic='-Kconform_pic'
16859	lt_prog_compiler_static='-Bstatic'
16860      fi
16861      ;;
16862
16863    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16864      lt_prog_compiler_wl='-Wl,'
16865      lt_prog_compiler_pic='-KPIC'
16866      lt_prog_compiler_static='-Bstatic'
16867      ;;
16868
16869    unicos*)
16870      lt_prog_compiler_wl='-Wl,'
16871      lt_prog_compiler_can_build_shared=no
16872      ;;
16873
16874    uts4*)
16875      lt_prog_compiler_pic='-pic'
16876      lt_prog_compiler_static='-Bstatic'
16877      ;;
16878
16879    *)
16880      lt_prog_compiler_can_build_shared=no
16881      ;;
16882    esac
16883  fi
16884
16885case $host_os in
16886  # For platforms which do not support PIC, -DPIC is meaningless:
16887  *djgpp*)
16888    lt_prog_compiler_pic=
16889    ;;
16890  *)
16891    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16892    ;;
16893esac
16894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16895$as_echo "$lt_prog_compiler_pic" >&6; }
16896
16897
16898
16899
16900
16901
16902#
16903# Check to make sure the PIC flag actually works.
16904#
16905if test -n "$lt_prog_compiler_pic"; then
16906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16907$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16908if ${lt_cv_prog_compiler_pic_works+:} false; then :
16909  $as_echo_n "(cached) " >&6
16910else
16911  lt_cv_prog_compiler_pic_works=no
16912   ac_outfile=conftest.$ac_objext
16913   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16914   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16915   # Insert the option either (1) after the last *FLAGS variable, or
16916   # (2) before a word containing "conftest.", or (3) at the end.
16917   # Note that $ac_compile itself does not contain backslashes and begins
16918   # with a dollar sign (not a hyphen), so the echo should work correctly.
16919   # The option is referenced via a variable to avoid confusing sed.
16920   lt_compile=`echo "$ac_compile" | $SED \
16921   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16922   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16923   -e 's:$: $lt_compiler_flag:'`
16924   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16925   (eval "$lt_compile" 2>conftest.err)
16926   ac_status=$?
16927   cat conftest.err >&5
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   if (exit $ac_status) && test -s "$ac_outfile"; then
16930     # The compiler can only warn and ignore the option if not recognized
16931     # So say no if there are warnings other than the usual output.
16932     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16933     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16934     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16935       lt_cv_prog_compiler_pic_works=yes
16936     fi
16937   fi
16938   $RM conftest*
16939
16940fi
16941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16942$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16943
16944if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16945    case $lt_prog_compiler_pic in
16946     "" | " "*) ;;
16947     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16948     esac
16949else
16950    lt_prog_compiler_pic=
16951     lt_prog_compiler_can_build_shared=no
16952fi
16953
16954fi
16955
16956
16957
16958
16959
16960
16961#
16962# Check to make sure the static flag actually works.
16963#
16964wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16966$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16967if ${lt_cv_prog_compiler_static_works+:} false; then :
16968  $as_echo_n "(cached) " >&6
16969else
16970  lt_cv_prog_compiler_static_works=no
16971   save_LDFLAGS="$LDFLAGS"
16972   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16973   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16974   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16975     # The linker can only warn and ignore the option if not recognized
16976     # So say no if there are warnings
16977     if test -s conftest.err; then
16978       # Append any errors to the config.log.
16979       cat conftest.err 1>&5
16980       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16981       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16982       if diff conftest.exp conftest.er2 >/dev/null; then
16983         lt_cv_prog_compiler_static_works=yes
16984       fi
16985     else
16986       lt_cv_prog_compiler_static_works=yes
16987     fi
16988   fi
16989   $RM -r conftest*
16990   LDFLAGS="$save_LDFLAGS"
16991
16992fi
16993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16994$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16995
16996if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16997    :
16998else
16999    lt_prog_compiler_static=
17000fi
17001
17002
17003
17004
17005
17006
17007
17008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17009$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17010if ${lt_cv_prog_compiler_c_o+:} false; then :
17011  $as_echo_n "(cached) " >&6
17012else
17013  lt_cv_prog_compiler_c_o=no
17014   $RM -r conftest 2>/dev/null
17015   mkdir conftest
17016   cd conftest
17017   mkdir out
17018   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17019
17020   lt_compiler_flag="-o out/conftest2.$ac_objext"
17021   # Insert the option either (1) after the last *FLAGS variable, or
17022   # (2) before a word containing "conftest.", or (3) at the end.
17023   # Note that $ac_compile itself does not contain backslashes and begins
17024   # with a dollar sign (not a hyphen), so the echo should work correctly.
17025   lt_compile=`echo "$ac_compile" | $SED \
17026   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17027   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17028   -e 's:$: $lt_compiler_flag:'`
17029   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17030   (eval "$lt_compile" 2>out/conftest.err)
17031   ac_status=$?
17032   cat out/conftest.err >&5
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17035   then
17036     # The compiler can only warn and ignore the option if not recognized
17037     # So say no if there are warnings
17038     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17039     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17040     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17041       lt_cv_prog_compiler_c_o=yes
17042     fi
17043   fi
17044   chmod u+w . 2>&5
17045   $RM conftest*
17046   # SGI C++ compiler will create directory out/ii_files/ for
17047   # template instantiation
17048   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17049   $RM out/* && rmdir out
17050   cd ..
17051   $RM -r conftest
17052   $RM conftest*
17053
17054fi
17055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17056$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17057
17058
17059
17060
17061
17062
17063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17064$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17065if ${lt_cv_prog_compiler_c_o+:} false; then :
17066  $as_echo_n "(cached) " >&6
17067else
17068  lt_cv_prog_compiler_c_o=no
17069   $RM -r conftest 2>/dev/null
17070   mkdir conftest
17071   cd conftest
17072   mkdir out
17073   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17074
17075   lt_compiler_flag="-o out/conftest2.$ac_objext"
17076   # Insert the option either (1) after the last *FLAGS variable, or
17077   # (2) before a word containing "conftest.", or (3) at the end.
17078   # Note that $ac_compile itself does not contain backslashes and begins
17079   # with a dollar sign (not a hyphen), so the echo should work correctly.
17080   lt_compile=`echo "$ac_compile" | $SED \
17081   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17082   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17083   -e 's:$: $lt_compiler_flag:'`
17084   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17085   (eval "$lt_compile" 2>out/conftest.err)
17086   ac_status=$?
17087   cat out/conftest.err >&5
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17090   then
17091     # The compiler can only warn and ignore the option if not recognized
17092     # So say no if there are warnings
17093     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17094     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17095     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17096       lt_cv_prog_compiler_c_o=yes
17097     fi
17098   fi
17099   chmod u+w . 2>&5
17100   $RM conftest*
17101   # SGI C++ compiler will create directory out/ii_files/ for
17102   # template instantiation
17103   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17104   $RM out/* && rmdir out
17105   cd ..
17106   $RM -r conftest
17107   $RM conftest*
17108
17109fi
17110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17111$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17112
17113
17114
17115
17116hard_links="nottested"
17117if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17118  # do not overwrite the value of need_locks provided by the user
17119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17120$as_echo_n "checking if we can lock with hard links... " >&6; }
17121  hard_links=yes
17122  $RM conftest*
17123  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17124  touch conftest.a
17125  ln conftest.a conftest.b 2>&5 || hard_links=no
17126  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17128$as_echo "$hard_links" >&6; }
17129  if test "$hard_links" = no; then
17130    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17131$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17132    need_locks=warn
17133  fi
17134else
17135  need_locks=no
17136fi
17137
17138
17139
17140
17141
17142
17143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17144$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17145
17146  runpath_var=
17147  allow_undefined_flag=
17148  always_export_symbols=no
17149  archive_cmds=
17150  archive_expsym_cmds=
17151  compiler_needs_object=no
17152  enable_shared_with_static_runtimes=no
17153  export_dynamic_flag_spec=
17154  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17155  hardcode_automatic=no
17156  hardcode_direct=no
17157  hardcode_direct_absolute=no
17158  hardcode_libdir_flag_spec=
17159  hardcode_libdir_flag_spec_ld=
17160  hardcode_libdir_separator=
17161  hardcode_minus_L=no
17162  hardcode_shlibpath_var=unsupported
17163  inherit_rpath=no
17164  link_all_deplibs=unknown
17165  module_cmds=
17166  module_expsym_cmds=
17167  old_archive_from_new_cmds=
17168  old_archive_from_expsyms_cmds=
17169  thread_safe_flag_spec=
17170  whole_archive_flag_spec=
17171  # include_expsyms should be a list of space-separated symbols to be *always*
17172  # included in the symbol list
17173  include_expsyms=
17174  # exclude_expsyms can be an extended regexp of symbols to exclude
17175  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17176  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17177  # as well as any symbol that contains `d'.
17178  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17179  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17180  # platforms (ab)use it in PIC code, but their linkers get confused if
17181  # the symbol is explicitly referenced.  Since portable code cannot
17182  # rely on this symbol name, it's probably fine to never include it in
17183  # preloaded symbol tables.
17184  # Exclude shared library initialization/finalization symbols.
17185  extract_expsyms_cmds=
17186
17187  case $host_os in
17188  cygwin* | mingw* | pw32* | cegcc*)
17189    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17190    # When not using gcc, we currently assume that we are using
17191    # Microsoft Visual C++.
17192    if test "$GCC" != yes; then
17193      with_gnu_ld=no
17194    fi
17195    ;;
17196  interix*)
17197    # we just hope/assume this is gcc and not c89 (= MSVC++)
17198    with_gnu_ld=yes
17199    ;;
17200  openbsd*)
17201    with_gnu_ld=no
17202    ;;
17203  esac
17204
17205  ld_shlibs=yes
17206
17207  # On some targets, GNU ld is compatible enough with the native linker
17208  # that we're better off using the native interface for both.
17209  lt_use_gnu_ld_interface=no
17210  if test "$with_gnu_ld" = yes; then
17211    case $host_os in
17212      aix*)
17213	# The AIX port of GNU ld has always aspired to compatibility
17214	# with the native linker.  However, as the warning in the GNU ld
17215	# block says, versions before 2.19.5* couldn't really create working
17216	# shared libraries, regardless of the interface used.
17217	case `$LD -v 2>&1` in
17218	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17219	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17220	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17221	  *)
17222	    lt_use_gnu_ld_interface=yes
17223	    ;;
17224	esac
17225	;;
17226      *)
17227	lt_use_gnu_ld_interface=yes
17228	;;
17229    esac
17230  fi
17231
17232  if test "$lt_use_gnu_ld_interface" = yes; then
17233    # If archive_cmds runs LD, not CC, wlarc should be empty
17234    wlarc='${wl}'
17235
17236    # Set some defaults for GNU ld with shared library support. These
17237    # are reset later if shared libraries are not supported. Putting them
17238    # here allows them to be overridden if necessary.
17239    runpath_var=LD_RUN_PATH
17240    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17241    export_dynamic_flag_spec='${wl}--export-dynamic'
17242    # ancient GNU ld didn't support --whole-archive et. al.
17243    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17244      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17245    else
17246      whole_archive_flag_spec=
17247    fi
17248    supports_anon_versioning=no
17249    case `$LD -v 2>&1` in
17250      *GNU\ gold*) supports_anon_versioning=yes ;;
17251      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17252      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17253      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17254      *\ 2.11.*) ;; # other 2.11 versions
17255      *) supports_anon_versioning=yes ;;
17256    esac
17257
17258    # See if GNU ld supports shared libraries.
17259    case $host_os in
17260    aix[3-9]*)
17261      # On AIX/PPC, the GNU linker is very broken
17262      if test "$host_cpu" != ia64; then
17263	ld_shlibs=no
17264	cat <<_LT_EOF 1>&2
17265
17266*** Warning: the GNU linker, at least up to release 2.19, is reported
17267*** to be unable to reliably create shared libraries on AIX.
17268*** Therefore, libtool is disabling shared libraries support.  If you
17269*** really care for shared libraries, you may want to install binutils
17270*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17271*** You will then need to restart the configuration process.
17272
17273_LT_EOF
17274      fi
17275      ;;
17276
17277    amigaos*)
17278      case $host_cpu in
17279      powerpc)
17280            # see comment about AmigaOS4 .so support
17281            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17282            archive_expsym_cmds=''
17283        ;;
17284      m68k)
17285            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)'
17286            hardcode_libdir_flag_spec='-L$libdir'
17287            hardcode_minus_L=yes
17288        ;;
17289      esac
17290      ;;
17291
17292    beos*)
17293      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17294	allow_undefined_flag=unsupported
17295	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17296	# support --undefined.  This deserves some investigation.  FIXME
17297	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17298      else
17299	ld_shlibs=no
17300      fi
17301      ;;
17302
17303    cygwin* | mingw* | pw32* | cegcc*)
17304      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17305      # as there is no search path for DLLs.
17306      hardcode_libdir_flag_spec='-L$libdir'
17307      export_dynamic_flag_spec='${wl}--export-all-symbols'
17308      allow_undefined_flag=unsupported
17309      always_export_symbols=no
17310      enable_shared_with_static_runtimes=yes
17311      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17312
17313      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17314        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17315	# If the export-symbols file already is a .def file (1st line
17316	# is EXPORTS), use it as is; otherwise, prepend...
17317	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17318	  cp $export_symbols $output_objdir/$soname.def;
17319	else
17320	  echo EXPORTS > $output_objdir/$soname.def;
17321	  cat $export_symbols >> $output_objdir/$soname.def;
17322	fi~
17323	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17324      else
17325	ld_shlibs=no
17326      fi
17327      ;;
17328
17329    haiku*)
17330      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17331      link_all_deplibs=yes
17332      ;;
17333
17334    interix[3-9]*)
17335      hardcode_direct=no
17336      hardcode_shlibpath_var=no
17337      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17338      export_dynamic_flag_spec='${wl}-E'
17339      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17340      # Instead, shared libraries are loaded at an image base (0x10000000 by
17341      # default) and relocated if they conflict, which is a slow very memory
17342      # consuming and fragmenting process.  To avoid this, we pick a random,
17343      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17344      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17345      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17346      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'
17347      ;;
17348
17349    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17350      tmp_diet=no
17351      if test "$host_os" = linux-dietlibc; then
17352	case $cc_basename in
17353	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
17354	esac
17355      fi
17356      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17357	 && test "$tmp_diet" = no
17358      then
17359	tmp_addflag=' $pic_flag'
17360	tmp_sharedflag='-shared'
17361	case $cc_basename,$host_cpu in
17362        pgcc*)				# Portland Group C compiler
17363	  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'
17364	  tmp_addflag=' $pic_flag'
17365	  ;;
17366	pgf77* | pgf90* | pgf95* | pgfortran*)
17367					# Portland Group f77 and f90 compilers
17368	  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'
17369	  tmp_addflag=' $pic_flag -Mnomain' ;;
17370	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
17371	  tmp_addflag=' -i_dynamic' ;;
17372	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17373	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17374	ifc* | ifort*)			# Intel Fortran compiler
17375	  tmp_addflag=' -nofor_main' ;;
17376	lf95*)				# Lahey Fortran 8.1
17377	  whole_archive_flag_spec=
17378	  tmp_sharedflag='--shared' ;;
17379	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17380	  tmp_sharedflag='-qmkshrobj'
17381	  tmp_addflag= ;;
17382	nvcc*)	# Cuda Compiler Driver 2.2
17383	  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'
17384	  compiler_needs_object=yes
17385	  ;;
17386	esac
17387	case `$CC -V 2>&1 | sed 5q` in
17388	*Sun\ C*)			# Sun C 5.9
17389	  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'
17390	  compiler_needs_object=yes
17391	  tmp_sharedflag='-G' ;;
17392	*Sun\ F*)			# Sun Fortran 8.3
17393	  tmp_sharedflag='-G' ;;
17394	esac
17395	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17396
17397        if test "x$supports_anon_versioning" = xyes; then
17398          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17399	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17400	    echo "local: *; };" >> $output_objdir/$libname.ver~
17401	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17402        fi
17403
17404	case $cc_basename in
17405	xlf* | bgf* | bgxlf* | mpixlf*)
17406	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17407	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17408	  hardcode_libdir_flag_spec=
17409	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
17410	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17411	  if test "x$supports_anon_versioning" = xyes; then
17412	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17413	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17414	      echo "local: *; };" >> $output_objdir/$libname.ver~
17415	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17416	  fi
17417	  ;;
17418	esac
17419      else
17420        ld_shlibs=no
17421      fi
17422      ;;
17423
17424    netbsd*)
17425      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17426	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17427	wlarc=
17428      else
17429	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17430	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17431      fi
17432      ;;
17433
17434    solaris*)
17435      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17436	ld_shlibs=no
17437	cat <<_LT_EOF 1>&2
17438
17439*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17440*** create shared libraries on Solaris systems.  Therefore, libtool
17441*** is disabling shared libraries support.  We urge you to upgrade GNU
17442*** binutils to release 2.9.1 or newer.  Another option is to modify
17443*** your PATH or compiler configuration so that the native linker is
17444*** used, and then restart.
17445
17446_LT_EOF
17447      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17448	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17449	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17450      else
17451	ld_shlibs=no
17452      fi
17453      ;;
17454
17455    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17456      case `$LD -v 2>&1` in
17457        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17458	ld_shlibs=no
17459	cat <<_LT_EOF 1>&2
17460
17461*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17462*** reliably create shared libraries on SCO systems.  Therefore, libtool
17463*** is disabling shared libraries support.  We urge you to upgrade GNU
17464*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17465*** your PATH or compiler configuration so that the native linker is
17466*** used, and then restart.
17467
17468_LT_EOF
17469	;;
17470	*)
17471	  # For security reasons, it is highly recommended that you always
17472	  # use absolute paths for naming shared libraries, and exclude the
17473	  # DT_RUNPATH tag from executables and libraries.  But doing so
17474	  # requires that you compile everything twice, which is a pain.
17475	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17476	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17477	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17478	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17479	  else
17480	    ld_shlibs=no
17481	  fi
17482	;;
17483      esac
17484      ;;
17485
17486    sunos4*)
17487      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17488      wlarc=
17489      hardcode_direct=yes
17490      hardcode_shlibpath_var=no
17491      ;;
17492
17493    *)
17494      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17495	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17496	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17497      else
17498	ld_shlibs=no
17499      fi
17500      ;;
17501    esac
17502
17503    if test "$ld_shlibs" = no; then
17504      runpath_var=
17505      hardcode_libdir_flag_spec=
17506      export_dynamic_flag_spec=
17507      whole_archive_flag_spec=
17508    fi
17509  else
17510    # PORTME fill in a description of your system's linker (not GNU ld)
17511    case $host_os in
17512    aix3*)
17513      allow_undefined_flag=unsupported
17514      always_export_symbols=yes
17515      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'
17516      # Note: this linker hardcodes the directories in LIBPATH if there
17517      # are no directories specified by -L.
17518      hardcode_minus_L=yes
17519      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17520	# Neither direct hardcoding nor static linking is supported with a
17521	# broken collect2.
17522	hardcode_direct=unsupported
17523      fi
17524      ;;
17525
17526    aix[4-9]*)
17527      if test "$host_cpu" = ia64; then
17528	# On IA64, the linker does run time linking by default, so we don't
17529	# have to do anything special.
17530	aix_use_runtimelinking=no
17531	exp_sym_flag='-Bexport'
17532	no_entry_flag=""
17533      else
17534	# If we're using GNU nm, then we don't want the "-C" option.
17535	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17536	# Also, AIX nm treats weak defined symbols like other global
17537	# defined symbols, whereas GNU nm marks them as "W".
17538	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17539	  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'
17540	else
17541	  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'
17542	fi
17543	aix_use_runtimelinking=no
17544
17545	# Test if we are trying to use run time linking or normal
17546	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17547	# need to do runtime linking.
17548	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17549	  for ld_flag in $LDFLAGS; do
17550	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17551	    aix_use_runtimelinking=yes
17552	    break
17553	  fi
17554	  done
17555	  ;;
17556	esac
17557
17558	exp_sym_flag='-bexport'
17559	no_entry_flag='-bnoentry'
17560      fi
17561
17562      # When large executables or shared objects are built, AIX ld can
17563      # have problems creating the table of contents.  If linking a library
17564      # or program results in "error TOC overflow" add -mminimal-toc to
17565      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17566      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17567
17568      archive_cmds=''
17569      hardcode_direct=yes
17570      hardcode_direct_absolute=yes
17571      hardcode_libdir_separator=':'
17572      link_all_deplibs=yes
17573      file_list_spec='${wl}-f,'
17574
17575      if test "$GCC" = yes; then
17576	case $host_os in aix4.[012]|aix4.[012].*)
17577	# We only want to do this on AIX 4.2 and lower, the check
17578	# below for broken collect2 doesn't work under 4.3+
17579	  collect2name=`${CC} -print-prog-name=collect2`
17580	  if test -f "$collect2name" &&
17581	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17582	  then
17583	  # We have reworked collect2
17584	  :
17585	  else
17586	  # We have old collect2
17587	  hardcode_direct=unsupported
17588	  # It fails to find uninstalled libraries when the uninstalled
17589	  # path is not listed in the libpath.  Setting hardcode_minus_L
17590	  # to unsupported forces relinking
17591	  hardcode_minus_L=yes
17592	  hardcode_libdir_flag_spec='-L$libdir'
17593	  hardcode_libdir_separator=
17594	  fi
17595	  ;;
17596	esac
17597	shared_flag='-shared'
17598	if test "$aix_use_runtimelinking" = yes; then
17599	  shared_flag="$shared_flag "'${wl}-G'
17600	fi
17601      else
17602	# not using gcc
17603	if test "$host_cpu" = ia64; then
17604	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17605	# chokes on -Wl,-G. The following line is correct:
17606	  shared_flag='-G'
17607	else
17608	  if test "$aix_use_runtimelinking" = yes; then
17609	    shared_flag='${wl}-G'
17610	  else
17611	    shared_flag='${wl}-bM:SRE'
17612	  fi
17613	fi
17614      fi
17615
17616      export_dynamic_flag_spec='${wl}-bexpall'
17617      # It seems that -bexpall does not export symbols beginning with
17618      # underscore (_), so it is better to generate a list of symbols to export.
17619      always_export_symbols=yes
17620      if test "$aix_use_runtimelinking" = yes; then
17621	# Warning - without using the other runtime loading flags (-brtl),
17622	# -berok will link without error, but may produce a broken library.
17623	allow_undefined_flag='-berok'
17624        # Determine the default libpath from the value encoded in an
17625        # empty executable.
17626        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17627/* end confdefs.h.  */
17628
17629int
17630main ()
17631{
17632
17633  ;
17634  return 0;
17635}
17636_ACEOF
17637if ac_fn_c_try_link "$LINENO"; then :
17638
17639lt_aix_libpath_sed='
17640    /Import File Strings/,/^$/ {
17641	/^0/ {
17642	    s/^0  *\(.*\)$/\1/
17643	    p
17644	}
17645    }'
17646aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17647# Check for a 64-bit object if we didn't find anything.
17648if test -z "$aix_libpath"; then
17649  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17650fi
17651fi
17652rm -f core conftest.err conftest.$ac_objext \
17653    conftest$ac_exeext conftest.$ac_ext
17654if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17655
17656        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17657        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"
17658      else
17659	if test "$host_cpu" = ia64; then
17660	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17661	  allow_undefined_flag="-z nodefs"
17662	  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"
17663	else
17664	 # Determine the default libpath from the value encoded in an
17665	 # empty executable.
17666	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667/* end confdefs.h.  */
17668
17669int
17670main ()
17671{
17672
17673  ;
17674  return 0;
17675}
17676_ACEOF
17677if ac_fn_c_try_link "$LINENO"; then :
17678
17679lt_aix_libpath_sed='
17680    /Import File Strings/,/^$/ {
17681	/^0/ {
17682	    s/^0  *\(.*\)$/\1/
17683	    p
17684	}
17685    }'
17686aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17687# Check for a 64-bit object if we didn't find anything.
17688if test -z "$aix_libpath"; then
17689  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17690fi
17691fi
17692rm -f core conftest.err conftest.$ac_objext \
17693    conftest$ac_exeext conftest.$ac_ext
17694if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17695
17696	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17697	  # Warning - without using the other run time loading flags,
17698	  # -berok will link without error, but may produce a broken library.
17699	  no_undefined_flag=' ${wl}-bernotok'
17700	  allow_undefined_flag=' ${wl}-berok'
17701	  if test "$with_gnu_ld" = yes; then
17702	    # We only use this code for GNU lds that support --whole-archive.
17703	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17704	  else
17705	    # Exported symbols can be pulled into shared objects from archives
17706	    whole_archive_flag_spec='$convenience'
17707	  fi
17708	  archive_cmds_need_lc=yes
17709	  # This is similar to how AIX traditionally builds its shared libraries.
17710	  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'
17711	fi
17712      fi
17713      ;;
17714
17715    amigaos*)
17716      case $host_cpu in
17717      powerpc)
17718            # see comment about AmigaOS4 .so support
17719            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17720            archive_expsym_cmds=''
17721        ;;
17722      m68k)
17723            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)'
17724            hardcode_libdir_flag_spec='-L$libdir'
17725            hardcode_minus_L=yes
17726        ;;
17727      esac
17728      ;;
17729
17730    bsdi[45]*)
17731      export_dynamic_flag_spec=-rdynamic
17732      ;;
17733
17734    cygwin* | mingw* | pw32* | cegcc*)
17735      # When not using gcc, we currently assume that we are using
17736      # Microsoft Visual C++.
17737      # hardcode_libdir_flag_spec is actually meaningless, as there is
17738      # no search path for DLLs.
17739      hardcode_libdir_flag_spec=' '
17740      allow_undefined_flag=unsupported
17741      # Tell ltmain to make .lib files, not .a files.
17742      libext=lib
17743      # Tell ltmain to make .dll files, not .so files.
17744      shrext_cmds=".dll"
17745      # FIXME: Setting linknames here is a bad hack.
17746      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17747      # The linker will automatically build a .lib file if we build a DLL.
17748      old_archive_from_new_cmds='true'
17749      # FIXME: Should let the user specify the lib program.
17750      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17751      fix_srcfile_path='`cygpath -w "$srcfile"`'
17752      enable_shared_with_static_runtimes=yes
17753      ;;
17754
17755    darwin* | rhapsody*)
17756
17757
17758  archive_cmds_need_lc=no
17759  hardcode_direct=no
17760  hardcode_automatic=yes
17761  hardcode_shlibpath_var=unsupported
17762  if test "$lt_cv_ld_force_load" = "yes"; then
17763    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\"`'
17764  else
17765    whole_archive_flag_spec=''
17766  fi
17767  link_all_deplibs=yes
17768  allow_undefined_flag="$_lt_dar_allow_undefined"
17769  case $cc_basename in
17770     ifort*) _lt_dar_can_shared=yes ;;
17771     *) _lt_dar_can_shared=$GCC ;;
17772  esac
17773  if test "$_lt_dar_can_shared" = "yes"; then
17774    output_verbose_link_cmd=func_echo_all
17775    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17776    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17777    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}"
17778    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}"
17779
17780  else
17781  ld_shlibs=no
17782  fi
17783
17784      ;;
17785
17786    dgux*)
17787      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17788      hardcode_libdir_flag_spec='-L$libdir'
17789      hardcode_shlibpath_var=no
17790      ;;
17791
17792    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17793    # support.  Future versions do this automatically, but an explicit c++rt0.o
17794    # does not break anything, and helps significantly (at the cost of a little
17795    # extra space).
17796    freebsd2.2*)
17797      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17798      hardcode_libdir_flag_spec='-R$libdir'
17799      hardcode_direct=yes
17800      hardcode_shlibpath_var=no
17801      ;;
17802
17803    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17804    freebsd2.*)
17805      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17806      hardcode_direct=yes
17807      hardcode_minus_L=yes
17808      hardcode_shlibpath_var=no
17809      ;;
17810
17811    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17812    freebsd* | dragonfly*)
17813      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17814      hardcode_libdir_flag_spec='-R$libdir'
17815      hardcode_direct=yes
17816      hardcode_shlibpath_var=no
17817      ;;
17818
17819    hpux9*)
17820      if test "$GCC" = yes; then
17821	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'
17822      else
17823	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'
17824      fi
17825      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17826      hardcode_libdir_separator=:
17827      hardcode_direct=yes
17828
17829      # hardcode_minus_L: Not really in the search PATH,
17830      # but as the default location of the library.
17831      hardcode_minus_L=yes
17832      export_dynamic_flag_spec='${wl}-E'
17833      ;;
17834
17835    hpux10*)
17836      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17837	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17838      else
17839	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17840      fi
17841      if test "$with_gnu_ld" = no; then
17842	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17843	hardcode_libdir_flag_spec_ld='+b $libdir'
17844	hardcode_libdir_separator=:
17845	hardcode_direct=yes
17846	hardcode_direct_absolute=yes
17847	export_dynamic_flag_spec='${wl}-E'
17848	# hardcode_minus_L: Not really in the search PATH,
17849	# but as the default location of the library.
17850	hardcode_minus_L=yes
17851      fi
17852      ;;
17853
17854    hpux11*)
17855      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17856	case $host_cpu in
17857	hppa*64*)
17858	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17859	  ;;
17860	ia64*)
17861	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17862	  ;;
17863	*)
17864	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17865	  ;;
17866	esac
17867      else
17868	case $host_cpu in
17869	hppa*64*)
17870	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17871	  ;;
17872	ia64*)
17873	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17874	  ;;
17875	*)
17876
17877	  # Older versions of the 11.00 compiler do not understand -b yet
17878	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17879	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17880$as_echo_n "checking if $CC understands -b... " >&6; }
17881if ${lt_cv_prog_compiler__b+:} false; then :
17882  $as_echo_n "(cached) " >&6
17883else
17884  lt_cv_prog_compiler__b=no
17885   save_LDFLAGS="$LDFLAGS"
17886   LDFLAGS="$LDFLAGS -b"
17887   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17888   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17889     # The linker can only warn and ignore the option if not recognized
17890     # So say no if there are warnings
17891     if test -s conftest.err; then
17892       # Append any errors to the config.log.
17893       cat conftest.err 1>&5
17894       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17895       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17896       if diff conftest.exp conftest.er2 >/dev/null; then
17897         lt_cv_prog_compiler__b=yes
17898       fi
17899     else
17900       lt_cv_prog_compiler__b=yes
17901     fi
17902   fi
17903   $RM -r conftest*
17904   LDFLAGS="$save_LDFLAGS"
17905
17906fi
17907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17908$as_echo "$lt_cv_prog_compiler__b" >&6; }
17909
17910if test x"$lt_cv_prog_compiler__b" = xyes; then
17911    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17912else
17913    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17914fi
17915
17916	  ;;
17917	esac
17918      fi
17919      if test "$with_gnu_ld" = no; then
17920	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17921	hardcode_libdir_separator=:
17922
17923	case $host_cpu in
17924	hppa*64*|ia64*)
17925	  hardcode_direct=no
17926	  hardcode_shlibpath_var=no
17927	  ;;
17928	*)
17929	  hardcode_direct=yes
17930	  hardcode_direct_absolute=yes
17931	  export_dynamic_flag_spec='${wl}-E'
17932
17933	  # hardcode_minus_L: Not really in the search PATH,
17934	  # but as the default location of the library.
17935	  hardcode_minus_L=yes
17936	  ;;
17937	esac
17938      fi
17939      ;;
17940
17941    irix5* | irix6* | nonstopux*)
17942      if test "$GCC" = yes; then
17943	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'
17944	# Try to use the -exported_symbol ld option, if it does not
17945	# work, assume that -exports_file does not work either and
17946	# implicitly export all symbols.
17947        save_LDFLAGS="$LDFLAGS"
17948        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17949        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950/* end confdefs.h.  */
17951int foo(void) {}
17952_ACEOF
17953if ac_fn_c_try_link "$LINENO"; then :
17954  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'
17955
17956fi
17957rm -f core conftest.err conftest.$ac_objext \
17958    conftest$ac_exeext conftest.$ac_ext
17959        LDFLAGS="$save_LDFLAGS"
17960      else
17961	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'
17962	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'
17963      fi
17964      archive_cmds_need_lc='no'
17965      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17966      hardcode_libdir_separator=:
17967      inherit_rpath=yes
17968      link_all_deplibs=yes
17969      ;;
17970
17971    netbsd*)
17972      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17973	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17974      else
17975	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17976      fi
17977      hardcode_libdir_flag_spec='-R$libdir'
17978      hardcode_direct=yes
17979      hardcode_shlibpath_var=no
17980      ;;
17981
17982    newsos6)
17983      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17984      hardcode_direct=yes
17985      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17986      hardcode_libdir_separator=:
17987      hardcode_shlibpath_var=no
17988      ;;
17989
17990    *nto* | *qnx*)
17991      ;;
17992
17993    openbsd*)
17994      if test -f /usr/libexec/ld.so; then
17995	hardcode_direct=yes
17996	hardcode_shlibpath_var=no
17997	hardcode_direct_absolute=yes
17998	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17999	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18000	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18001	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18002	  export_dynamic_flag_spec='${wl}-E'
18003	else
18004	  case $host_os in
18005	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18006	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18007	     hardcode_libdir_flag_spec='-R$libdir'
18008	     ;;
18009	   *)
18010	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18011	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18012	     ;;
18013	  esac
18014	fi
18015      else
18016	ld_shlibs=no
18017      fi
18018      ;;
18019
18020    os2*)
18021      hardcode_libdir_flag_spec='-L$libdir'
18022      hardcode_minus_L=yes
18023      allow_undefined_flag=unsupported
18024      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'
18025      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18026      ;;
18027
18028    osf3*)
18029      if test "$GCC" = yes; then
18030	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18031	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'
18032      else
18033	allow_undefined_flag=' -expect_unresolved \*'
18034	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'
18035      fi
18036      archive_cmds_need_lc='no'
18037      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18038      hardcode_libdir_separator=:
18039      ;;
18040
18041    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18042      if test "$GCC" = yes; then
18043	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18044	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'
18045	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18046      else
18047	allow_undefined_flag=' -expect_unresolved \*'
18048	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'
18049	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~
18050	$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'
18051
18052	# Both c and cxx compiler support -rpath directly
18053	hardcode_libdir_flag_spec='-rpath $libdir'
18054      fi
18055      archive_cmds_need_lc='no'
18056      hardcode_libdir_separator=:
18057      ;;
18058
18059    solaris*)
18060      no_undefined_flag=' -z defs'
18061      if test "$GCC" = yes; then
18062	wlarc='${wl}'
18063	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18064	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18065	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18066      else
18067	case `$CC -V 2>&1` in
18068	*"Compilers 5.0"*)
18069	  wlarc=''
18070	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18071	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18072	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18073	  ;;
18074	*)
18075	  wlarc='${wl}'
18076	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18077	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18078	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18079	  ;;
18080	esac
18081      fi
18082      hardcode_libdir_flag_spec='-R$libdir'
18083      hardcode_shlibpath_var=no
18084      case $host_os in
18085      solaris2.[0-5] | solaris2.[0-5].*) ;;
18086      *)
18087	# The compiler driver will combine and reorder linker options,
18088	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18089	# but is careful enough not to reorder.
18090	# Supported since Solaris 2.6 (maybe 2.5.1?)
18091	if test "$GCC" = yes; then
18092	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18093	else
18094	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18095	fi
18096	;;
18097      esac
18098      link_all_deplibs=yes
18099      ;;
18100
18101    sunos4*)
18102      if test "x$host_vendor" = xsequent; then
18103	# Use $CC to link under sequent, because it throws in some extra .o
18104	# files that make .init and .fini sections work.
18105	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18106      else
18107	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18108      fi
18109      hardcode_libdir_flag_spec='-L$libdir'
18110      hardcode_direct=yes
18111      hardcode_minus_L=yes
18112      hardcode_shlibpath_var=no
18113      ;;
18114
18115    sysv4)
18116      case $host_vendor in
18117	sni)
18118	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18119	  hardcode_direct=yes # is this really true???
18120	;;
18121	siemens)
18122	  ## LD is ld it makes a PLAMLIB
18123	  ## CC just makes a GrossModule.
18124	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18125	  reload_cmds='$CC -r -o $output$reload_objs'
18126	  hardcode_direct=no
18127        ;;
18128	motorola)
18129	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18130	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18131	;;
18132      esac
18133      runpath_var='LD_RUN_PATH'
18134      hardcode_shlibpath_var=no
18135      ;;
18136
18137    sysv4.3*)
18138      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18139      hardcode_shlibpath_var=no
18140      export_dynamic_flag_spec='-Bexport'
18141      ;;
18142
18143    sysv4*MP*)
18144      if test -d /usr/nec; then
18145	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18146	hardcode_shlibpath_var=no
18147	runpath_var=LD_RUN_PATH
18148	hardcode_runpath_var=yes
18149	ld_shlibs=yes
18150      fi
18151      ;;
18152
18153    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18154      no_undefined_flag='${wl}-z,text'
18155      archive_cmds_need_lc=no
18156      hardcode_shlibpath_var=no
18157      runpath_var='LD_RUN_PATH'
18158
18159      if test "$GCC" = yes; then
18160	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18161	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18162      else
18163	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18164	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18165      fi
18166      ;;
18167
18168    sysv5* | sco3.2v5* | sco5v6*)
18169      # Note: We can NOT use -z defs as we might desire, because we do not
18170      # link with -lc, and that would cause any symbols used from libc to
18171      # always be unresolved, which means just about no library would
18172      # ever link correctly.  If we're not using GNU ld we use -z text
18173      # though, which does catch some bad symbols but isn't as heavy-handed
18174      # as -z defs.
18175      no_undefined_flag='${wl}-z,text'
18176      allow_undefined_flag='${wl}-z,nodefs'
18177      archive_cmds_need_lc=no
18178      hardcode_shlibpath_var=no
18179      hardcode_libdir_flag_spec='${wl}-R,$libdir'
18180      hardcode_libdir_separator=':'
18181      link_all_deplibs=yes
18182      export_dynamic_flag_spec='${wl}-Bexport'
18183      runpath_var='LD_RUN_PATH'
18184
18185      if test "$GCC" = yes; then
18186	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18187	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18188      else
18189	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18190	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18191      fi
18192      ;;
18193
18194    uts4*)
18195      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196      hardcode_libdir_flag_spec='-L$libdir'
18197      hardcode_shlibpath_var=no
18198      ;;
18199
18200    *)
18201      ld_shlibs=no
18202      ;;
18203    esac
18204
18205    if test x$host_vendor = xsni; then
18206      case $host in
18207      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18208	export_dynamic_flag_spec='${wl}-Blargedynsym'
18209	;;
18210      esac
18211    fi
18212  fi
18213
18214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18215$as_echo "$ld_shlibs" >&6; }
18216test "$ld_shlibs" = no && can_build_shared=no
18217
18218with_gnu_ld=$with_gnu_ld
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234#
18235# Do we need to explicitly link libc?
18236#
18237case "x$archive_cmds_need_lc" in
18238x|xyes)
18239  # Assume -lc should be added
18240  archive_cmds_need_lc=yes
18241
18242  if test "$enable_shared" = yes && test "$GCC" = yes; then
18243    case $archive_cmds in
18244    *'~'*)
18245      # FIXME: we may have to deal with multi-command sequences.
18246      ;;
18247    '$CC '*)
18248      # Test whether the compiler implicitly links with -lc since on some
18249      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18250      # to ld, don't add -lc before -lgcc.
18251      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18252$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18253if ${lt_cv_archive_cmds_need_lc+:} false; then :
18254  $as_echo_n "(cached) " >&6
18255else
18256  $RM conftest*
18257	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18258
18259	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18260  (eval $ac_compile) 2>&5
18261  ac_status=$?
18262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18263  test $ac_status = 0; } 2>conftest.err; then
18264	  soname=conftest
18265	  lib=conftest
18266	  libobjs=conftest.$ac_objext
18267	  deplibs=
18268	  wl=$lt_prog_compiler_wl
18269	  pic_flag=$lt_prog_compiler_pic
18270	  compiler_flags=-v
18271	  linker_flags=-v
18272	  verstring=
18273	  output_objdir=.
18274	  libname=conftest
18275	  lt_save_allow_undefined_flag=$allow_undefined_flag
18276	  allow_undefined_flag=
18277	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18278  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18279  ac_status=$?
18280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18281  test $ac_status = 0; }
18282	  then
18283	    lt_cv_archive_cmds_need_lc=no
18284	  else
18285	    lt_cv_archive_cmds_need_lc=yes
18286	  fi
18287	  allow_undefined_flag=$lt_save_allow_undefined_flag
18288	else
18289	  cat conftest.err 1>&5
18290	fi
18291	$RM conftest*
18292
18293fi
18294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18295$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18296      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18297      ;;
18298    esac
18299  fi
18300  ;;
18301esac
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18460$as_echo_n "checking dynamic linker characteristics... " >&6; }
18461
18462if test "$GCC" = yes; then
18463  case $host_os in
18464    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18465    *) lt_awk_arg="/^libraries:/" ;;
18466  esac
18467  case $host_os in
18468    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18469    *) lt_sed_strip_eq="s,=/,/,g" ;;
18470  esac
18471  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18472  case $lt_search_path_spec in
18473  *\;*)
18474    # if the path contains ";" then we assume it to be the separator
18475    # otherwise default to the standard path separator (i.e. ":") - it is
18476    # assumed that no part of a normal pathname contains ";" but that should
18477    # okay in the real world where ";" in dirpaths is itself problematic.
18478    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18479    ;;
18480  *)
18481    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18482    ;;
18483  esac
18484  # Ok, now we have the path, separated by spaces, we can step through it
18485  # and add multilib dir if necessary.
18486  lt_tmp_lt_search_path_spec=
18487  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18488  for lt_sys_path in $lt_search_path_spec; do
18489    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18490      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18491    else
18492      test -d "$lt_sys_path" && \
18493	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18494    fi
18495  done
18496  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18497BEGIN {RS=" "; FS="/|\n";} {
18498  lt_foo="";
18499  lt_count=0;
18500  for (lt_i = NF; lt_i > 0; lt_i--) {
18501    if ($lt_i != "" && $lt_i != ".") {
18502      if ($lt_i == "..") {
18503        lt_count++;
18504      } else {
18505        if (lt_count == 0) {
18506          lt_foo="/" $lt_i lt_foo;
18507        } else {
18508          lt_count--;
18509        }
18510      }
18511    }
18512  }
18513  if (lt_foo != "") { lt_freq[lt_foo]++; }
18514  if (lt_freq[lt_foo] == 1) { print lt_foo; }
18515}'`
18516  # AWK program above erroneously prepends '/' to C:/dos/paths
18517  # for these hosts.
18518  case $host_os in
18519    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18520      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18521  esac
18522  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18523else
18524  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18525fi
18526library_names_spec=
18527libname_spec='lib$name'
18528soname_spec=
18529shrext_cmds=".so"
18530postinstall_cmds=
18531postuninstall_cmds=
18532finish_cmds=
18533finish_eval=
18534shlibpath_var=
18535shlibpath_overrides_runpath=unknown
18536version_type=none
18537dynamic_linker="$host_os ld.so"
18538sys_lib_dlsearch_path_spec="/lib /usr/lib"
18539need_lib_prefix=unknown
18540hardcode_into_libs=no
18541
18542# when you set need_version to no, make sure it does not cause -set_version
18543# flags to be left without arguments
18544need_version=unknown
18545
18546case $host_os in
18547aix3*)
18548  version_type=linux
18549  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18550  shlibpath_var=LIBPATH
18551
18552  # AIX 3 has no versioning support, so we append a major version to the name.
18553  soname_spec='${libname}${release}${shared_ext}$major'
18554  ;;
18555
18556aix[4-9]*)
18557  version_type=linux
18558  need_lib_prefix=no
18559  need_version=no
18560  hardcode_into_libs=yes
18561  if test "$host_cpu" = ia64; then
18562    # AIX 5 supports IA64
18563    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18564    shlibpath_var=LD_LIBRARY_PATH
18565  else
18566    # With GCC up to 2.95.x, collect2 would create an import file
18567    # for dependence libraries.  The import file would start with
18568    # the line `#! .'.  This would cause the generated library to
18569    # depend on `.', always an invalid library.  This was fixed in
18570    # development snapshots of GCC prior to 3.0.
18571    case $host_os in
18572      aix4 | aix4.[01] | aix4.[01].*)
18573      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18574	   echo ' yes '
18575	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18576	:
18577      else
18578	can_build_shared=no
18579      fi
18580      ;;
18581    esac
18582    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18583    # soname into executable. Probably we can add versioning support to
18584    # collect2, so additional links can be useful in future.
18585    if test "$aix_use_runtimelinking" = yes; then
18586      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18587      # instead of lib<name>.a to let people know that these are not
18588      # typical AIX shared libraries.
18589      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590    else
18591      # We preserve .a as extension for shared libraries through AIX4.2
18592      # and later when we are not doing run time linking.
18593      library_names_spec='${libname}${release}.a $libname.a'
18594      soname_spec='${libname}${release}${shared_ext}$major'
18595    fi
18596    shlibpath_var=LIBPATH
18597  fi
18598  ;;
18599
18600amigaos*)
18601  case $host_cpu in
18602  powerpc)
18603    # Since July 2007 AmigaOS4 officially supports .so libraries.
18604    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18605    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18606    ;;
18607  m68k)
18608    library_names_spec='$libname.ixlibrary $libname.a'
18609    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18610    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'
18611    ;;
18612  esac
18613  ;;
18614
18615beos*)
18616  library_names_spec='${libname}${shared_ext}'
18617  dynamic_linker="$host_os ld.so"
18618  shlibpath_var=LIBRARY_PATH
18619  ;;
18620
18621bsdi[45]*)
18622  version_type=linux
18623  need_version=no
18624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625  soname_spec='${libname}${release}${shared_ext}$major'
18626  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18627  shlibpath_var=LD_LIBRARY_PATH
18628  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18629  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18630  # the default ld.so.conf also contains /usr/contrib/lib and
18631  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18632  # libtool to hard-code these into programs
18633  ;;
18634
18635cygwin* | mingw* | pw32* | cegcc*)
18636  version_type=windows
18637  shrext_cmds=".dll"
18638  need_version=no
18639  need_lib_prefix=no
18640
18641  case $GCC,$host_os in
18642  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18643    library_names_spec='$libname.dll.a'
18644    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18645    postinstall_cmds='base_file=`basename \${file}`~
18646      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18647      dldir=$destdir/`dirname \$dlpath`~
18648      test -d \$dldir || mkdir -p \$dldir~
18649      $install_prog $dir/$dlname \$dldir/$dlname~
18650      chmod a+x \$dldir/$dlname~
18651      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18652        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18653      fi'
18654    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18655      dlpath=$dir/\$dldll~
18656       $RM \$dlpath'
18657    shlibpath_overrides_runpath=yes
18658
18659    case $host_os in
18660    cygwin*)
18661      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18662      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18663
18664      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18665      ;;
18666    mingw* | cegcc*)
18667      # MinGW DLLs use traditional 'lib' prefix
18668      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18669      ;;
18670    pw32*)
18671      # pw32 DLLs use 'pw' prefix rather than 'lib'
18672      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18673      ;;
18674    esac
18675    ;;
18676
18677  *)
18678    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18679    ;;
18680  esac
18681  dynamic_linker='Win32 ld.exe'
18682  # FIXME: first we should search . and the directory the executable is in
18683  shlibpath_var=PATH
18684  ;;
18685
18686darwin* | rhapsody*)
18687  dynamic_linker="$host_os dyld"
18688  version_type=darwin
18689  need_lib_prefix=no
18690  need_version=no
18691  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18692  soname_spec='${libname}${release}${major}$shared_ext'
18693  shlibpath_overrides_runpath=yes
18694  shlibpath_var=DYLD_LIBRARY_PATH
18695  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18696
18697  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18698  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18699  ;;
18700
18701dgux*)
18702  version_type=linux
18703  need_lib_prefix=no
18704  need_version=no
18705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18706  soname_spec='${libname}${release}${shared_ext}$major'
18707  shlibpath_var=LD_LIBRARY_PATH
18708  ;;
18709
18710freebsd* | dragonfly*)
18711  # DragonFly does not have aout.  When/if they implement a new
18712  # versioning mechanism, adjust this.
18713  if test -x /usr/bin/objformat; then
18714    objformat=`/usr/bin/objformat`
18715  else
18716    case $host_os in
18717    freebsd[23].*) objformat=aout ;;
18718    *) objformat=elf ;;
18719    esac
18720  fi
18721  version_type=freebsd-$objformat
18722  case $version_type in
18723    freebsd-elf*)
18724      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18725      need_version=no
18726      need_lib_prefix=no
18727      ;;
18728    freebsd-*)
18729      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18730      need_version=yes
18731      ;;
18732  esac
18733  shlibpath_var=LD_LIBRARY_PATH
18734  case $host_os in
18735  freebsd2.*)
18736    shlibpath_overrides_runpath=yes
18737    ;;
18738  freebsd3.[01]* | freebsdelf3.[01]*)
18739    shlibpath_overrides_runpath=yes
18740    hardcode_into_libs=yes
18741    ;;
18742  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18743  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18744    shlibpath_overrides_runpath=no
18745    hardcode_into_libs=yes
18746    ;;
18747  *) # from 4.6 on, and DragonFly
18748    shlibpath_overrides_runpath=yes
18749    hardcode_into_libs=yes
18750    ;;
18751  esac
18752  ;;
18753
18754haiku*)
18755  version_type=linux
18756  need_lib_prefix=no
18757  need_version=no
18758  dynamic_linker="$host_os runtime_loader"
18759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18760  soname_spec='${libname}${release}${shared_ext}$major'
18761  shlibpath_var=LIBRARY_PATH
18762  shlibpath_overrides_runpath=yes
18763  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18764  hardcode_into_libs=yes
18765  ;;
18766
18767hpux9* | hpux10* | hpux11*)
18768  # Give a soname corresponding to the major version so that dld.sl refuses to
18769  # link against other versions.
18770  version_type=sunos
18771  need_lib_prefix=no
18772  need_version=no
18773  case $host_cpu in
18774  ia64*)
18775    shrext_cmds='.so'
18776    hardcode_into_libs=yes
18777    dynamic_linker="$host_os dld.so"
18778    shlibpath_var=LD_LIBRARY_PATH
18779    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18780    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18781    soname_spec='${libname}${release}${shared_ext}$major'
18782    if test "X$HPUX_IA64_MODE" = X32; then
18783      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18784    else
18785      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18786    fi
18787    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18788    ;;
18789  hppa*64*)
18790    shrext_cmds='.sl'
18791    hardcode_into_libs=yes
18792    dynamic_linker="$host_os dld.sl"
18793    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18794    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18795    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18796    soname_spec='${libname}${release}${shared_ext}$major'
18797    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18798    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18799    ;;
18800  *)
18801    shrext_cmds='.sl'
18802    dynamic_linker="$host_os dld.sl"
18803    shlibpath_var=SHLIB_PATH
18804    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18805    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806    soname_spec='${libname}${release}${shared_ext}$major'
18807    ;;
18808  esac
18809  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18810  postinstall_cmds='chmod 555 $lib'
18811  # or fails outright, so override atomically:
18812  install_override_mode=555
18813  ;;
18814
18815interix[3-9]*)
18816  version_type=linux
18817  need_lib_prefix=no
18818  need_version=no
18819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18820  soname_spec='${libname}${release}${shared_ext}$major'
18821  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18822  shlibpath_var=LD_LIBRARY_PATH
18823  shlibpath_overrides_runpath=no
18824  hardcode_into_libs=yes
18825  ;;
18826
18827irix5* | irix6* | nonstopux*)
18828  case $host_os in
18829    nonstopux*) version_type=nonstopux ;;
18830    *)
18831	if test "$lt_cv_prog_gnu_ld" = yes; then
18832		version_type=linux
18833	else
18834		version_type=irix
18835	fi ;;
18836  esac
18837  need_lib_prefix=no
18838  need_version=no
18839  soname_spec='${libname}${release}${shared_ext}$major'
18840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18841  case $host_os in
18842  irix5* | nonstopux*)
18843    libsuff= shlibsuff=
18844    ;;
18845  *)
18846    case $LD in # libtool.m4 will add one of these switches to LD
18847    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18848      libsuff= shlibsuff= libmagic=32-bit;;
18849    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18850      libsuff=32 shlibsuff=N32 libmagic=N32;;
18851    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18852      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18853    *) libsuff= shlibsuff= libmagic=never-match;;
18854    esac
18855    ;;
18856  esac
18857  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18858  shlibpath_overrides_runpath=no
18859  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18860  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18861  hardcode_into_libs=yes
18862  ;;
18863
18864# No shared lib support for Linux oldld, aout, or coff.
18865linux*oldld* | linux*aout* | linux*coff*)
18866  dynamic_linker=no
18867  ;;
18868
18869# This must be Linux ELF.
18870
18871# uclinux* changes (here and below) have been submitted to the libtool
18872# project, but have not yet been accepted: they are GCC-local changes
18873# for the time being.  (See
18874# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18875linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
18876  version_type=linux
18877  need_lib_prefix=no
18878  need_version=no
18879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18880  soname_spec='${libname}${release}${shared_ext}$major'
18881  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18882  shlibpath_var=LD_LIBRARY_PATH
18883  shlibpath_overrides_runpath=no
18884
18885  # Some binutils ld are patched to set DT_RUNPATH
18886  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18887  $as_echo_n "(cached) " >&6
18888else
18889  lt_cv_shlibpath_overrides_runpath=no
18890    save_LDFLAGS=$LDFLAGS
18891    save_libdir=$libdir
18892    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18893	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18894    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895/* end confdefs.h.  */
18896
18897int
18898main ()
18899{
18900
18901  ;
18902  return 0;
18903}
18904_ACEOF
18905if ac_fn_c_try_link "$LINENO"; then :
18906  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18907  lt_cv_shlibpath_overrides_runpath=yes
18908fi
18909fi
18910rm -f core conftest.err conftest.$ac_objext \
18911    conftest$ac_exeext conftest.$ac_ext
18912    LDFLAGS=$save_LDFLAGS
18913    libdir=$save_libdir
18914
18915fi
18916
18917  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18918
18919  # This implies no fast_install, which is unacceptable.
18920  # Some rework will be needed to allow for fast_install
18921  # before this can be enabled.
18922  hardcode_into_libs=yes
18923
18924  # Append ld.so.conf contents to the search path
18925  if test -f /etc/ld.so.conf; then
18926    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' ' '`
18927    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18928  fi
18929
18930  # We used to test for /lib/ld.so.1 and disable shared libraries on
18931  # powerpc, because MkLinux only supported shared libraries with the
18932  # GNU dynamic linker.  Since this was broken with cross compilers,
18933  # most powerpc-linux boxes support dynamic linking these days and
18934  # people can always --disable-shared, the test was removed, and we
18935  # assume the GNU/Linux dynamic linker is in use.
18936  dynamic_linker='GNU/Linux ld.so'
18937  ;;
18938
18939netbsd*)
18940  version_type=sunos
18941  need_lib_prefix=no
18942  need_version=no
18943  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18944    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18945    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18946    dynamic_linker='NetBSD (a.out) ld.so'
18947  else
18948    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18949    soname_spec='${libname}${release}${shared_ext}$major'
18950    dynamic_linker='NetBSD ld.elf_so'
18951  fi
18952  shlibpath_var=LD_LIBRARY_PATH
18953  shlibpath_overrides_runpath=yes
18954  hardcode_into_libs=yes
18955  ;;
18956
18957newsos6)
18958  version_type=linux
18959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18960  shlibpath_var=LD_LIBRARY_PATH
18961  shlibpath_overrides_runpath=yes
18962  ;;
18963
18964*nto* | *qnx*)
18965  version_type=qnx
18966  need_lib_prefix=no
18967  need_version=no
18968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18969  soname_spec='${libname}${release}${shared_ext}$major'
18970  shlibpath_var=LD_LIBRARY_PATH
18971  shlibpath_overrides_runpath=no
18972  hardcode_into_libs=yes
18973  dynamic_linker='ldqnx.so'
18974  ;;
18975
18976openbsd*)
18977  version_type=sunos
18978  sys_lib_dlsearch_path_spec="/usr/lib"
18979  need_lib_prefix=no
18980  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18981  case $host_os in
18982    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
18983    *)				need_version=no  ;;
18984  esac
18985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18986  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18987  shlibpath_var=LD_LIBRARY_PATH
18988  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18989    case $host_os in
18990      openbsd2.[89] | openbsd2.[89].*)
18991	shlibpath_overrides_runpath=no
18992	;;
18993      *)
18994	shlibpath_overrides_runpath=yes
18995	;;
18996      esac
18997  else
18998    shlibpath_overrides_runpath=yes
18999  fi
19000  ;;
19001
19002os2*)
19003  libname_spec='$name'
19004  shrext_cmds=".dll"
19005  need_lib_prefix=no
19006  library_names_spec='$libname${shared_ext} $libname.a'
19007  dynamic_linker='OS/2 ld.exe'
19008  shlibpath_var=LIBPATH
19009  ;;
19010
19011osf3* | osf4* | osf5*)
19012  version_type=osf
19013  need_lib_prefix=no
19014  need_version=no
19015  soname_spec='${libname}${release}${shared_ext}$major'
19016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19017  shlibpath_var=LD_LIBRARY_PATH
19018  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19019  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19020  ;;
19021
19022rdos*)
19023  dynamic_linker=no
19024  ;;
19025
19026solaris*)
19027  version_type=linux
19028  need_lib_prefix=no
19029  need_version=no
19030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19031  soname_spec='${libname}${release}${shared_ext}$major'
19032  shlibpath_var=LD_LIBRARY_PATH
19033  shlibpath_overrides_runpath=yes
19034  hardcode_into_libs=yes
19035  # ldd complains unless libraries are executable
19036  postinstall_cmds='chmod +x $lib'
19037  ;;
19038
19039sunos4*)
19040  version_type=sunos
19041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19042  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19043  shlibpath_var=LD_LIBRARY_PATH
19044  shlibpath_overrides_runpath=yes
19045  if test "$with_gnu_ld" = yes; then
19046    need_lib_prefix=no
19047  fi
19048  need_version=yes
19049  ;;
19050
19051sysv4 | sysv4.3*)
19052  version_type=linux
19053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19054  soname_spec='${libname}${release}${shared_ext}$major'
19055  shlibpath_var=LD_LIBRARY_PATH
19056  case $host_vendor in
19057    sni)
19058      shlibpath_overrides_runpath=no
19059      need_lib_prefix=no
19060      runpath_var=LD_RUN_PATH
19061      ;;
19062    siemens)
19063      need_lib_prefix=no
19064      ;;
19065    motorola)
19066      need_lib_prefix=no
19067      need_version=no
19068      shlibpath_overrides_runpath=no
19069      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19070      ;;
19071  esac
19072  ;;
19073
19074sysv4*MP*)
19075  if test -d /usr/nec ;then
19076    version_type=linux
19077    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19078    soname_spec='$libname${shared_ext}.$major'
19079    shlibpath_var=LD_LIBRARY_PATH
19080  fi
19081  ;;
19082
19083sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19084  version_type=freebsd-elf
19085  need_lib_prefix=no
19086  need_version=no
19087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19088  soname_spec='${libname}${release}${shared_ext}$major'
19089  shlibpath_var=LD_LIBRARY_PATH
19090  shlibpath_overrides_runpath=yes
19091  hardcode_into_libs=yes
19092  if test "$with_gnu_ld" = yes; then
19093    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19094  else
19095    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19096    case $host_os in
19097      sco3.2v5*)
19098        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19099	;;
19100    esac
19101  fi
19102  sys_lib_dlsearch_path_spec='/usr/lib'
19103  ;;
19104
19105tpf*)
19106  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19107  version_type=linux
19108  need_lib_prefix=no
19109  need_version=no
19110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111  shlibpath_var=LD_LIBRARY_PATH
19112  shlibpath_overrides_runpath=no
19113  hardcode_into_libs=yes
19114  ;;
19115
19116uts4*)
19117  version_type=linux
19118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19119  soname_spec='${libname}${release}${shared_ext}$major'
19120  shlibpath_var=LD_LIBRARY_PATH
19121  ;;
19122
19123*)
19124  dynamic_linker=no
19125  ;;
19126esac
19127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19128$as_echo "$dynamic_linker" >&6; }
19129test "$dynamic_linker" = no && can_build_shared=no
19130
19131variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19132if test "$GCC" = yes; then
19133  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19134fi
19135
19136if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19137  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19138fi
19139if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19140  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19141fi
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19235$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19236hardcode_action=
19237if test -n "$hardcode_libdir_flag_spec" ||
19238   test -n "$runpath_var" ||
19239   test "X$hardcode_automatic" = "Xyes" ; then
19240
19241  # We can hardcode non-existent directories.
19242  if test "$hardcode_direct" != no &&
19243     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19244     # have to relink, otherwise we might link with an installed library
19245     # when we should be linking with a yet-to-be-installed one
19246     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19247     test "$hardcode_minus_L" != no; then
19248    # Linking always hardcodes the temporary library directory.
19249    hardcode_action=relink
19250  else
19251    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19252    hardcode_action=immediate
19253  fi
19254else
19255  # We cannot hardcode anything, or else we can only hardcode existing
19256  # directories.
19257  hardcode_action=unsupported
19258fi
19259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19260$as_echo "$hardcode_action" >&6; }
19261
19262if test "$hardcode_action" = relink ||
19263   test "$inherit_rpath" = yes; then
19264  # Fast installation is not supported
19265  enable_fast_install=no
19266elif test "$shlibpath_overrides_runpath" = yes ||
19267     test "$enable_shared" = no; then
19268  # Fast installation is not necessary
19269  enable_fast_install=needless
19270fi
19271
19272
19273
19274
19275
19276
19277  if test "x$enable_dlopen" != xyes; then
19278  enable_dlopen=unknown
19279  enable_dlopen_self=unknown
19280  enable_dlopen_self_static=unknown
19281else
19282  lt_cv_dlopen=no
19283  lt_cv_dlopen_libs=
19284
19285  case $host_os in
19286  beos*)
19287    lt_cv_dlopen="load_add_on"
19288    lt_cv_dlopen_libs=
19289    lt_cv_dlopen_self=yes
19290    ;;
19291
19292  mingw* | pw32* | cegcc*)
19293    lt_cv_dlopen="LoadLibrary"
19294    lt_cv_dlopen_libs=
19295    ;;
19296
19297  cygwin*)
19298    lt_cv_dlopen="dlopen"
19299    lt_cv_dlopen_libs=
19300    ;;
19301
19302  darwin*)
19303  # if libdl is installed we need to link against it
19304    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19305$as_echo_n "checking for dlopen in -ldl... " >&6; }
19306if ${ac_cv_lib_dl_dlopen+:} false; then :
19307  $as_echo_n "(cached) " >&6
19308else
19309  ac_check_lib_save_LIBS=$LIBS
19310LIBS="-ldl  $LIBS"
19311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312/* end confdefs.h.  */
19313
19314/* Override any GCC internal prototype to avoid an error.
19315   Use char because int might match the return type of a GCC
19316   builtin and then its argument prototype would still apply.  */
19317#ifdef __cplusplus
19318extern "C"
19319#endif
19320char dlopen ();
19321int
19322main ()
19323{
19324return dlopen ();
19325  ;
19326  return 0;
19327}
19328_ACEOF
19329if ac_fn_c_try_link "$LINENO"; then :
19330  ac_cv_lib_dl_dlopen=yes
19331else
19332  ac_cv_lib_dl_dlopen=no
19333fi
19334rm -f core conftest.err conftest.$ac_objext \
19335    conftest$ac_exeext conftest.$ac_ext
19336LIBS=$ac_check_lib_save_LIBS
19337fi
19338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19339$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19340if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19341  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19342else
19343
19344    lt_cv_dlopen="dyld"
19345    lt_cv_dlopen_libs=
19346    lt_cv_dlopen_self=yes
19347
19348fi
19349
19350    ;;
19351
19352  *)
19353    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19354if test "x$ac_cv_func_shl_load" = xyes; then :
19355  lt_cv_dlopen="shl_load"
19356else
19357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19358$as_echo_n "checking for shl_load in -ldld... " >&6; }
19359if ${ac_cv_lib_dld_shl_load+:} false; then :
19360  $as_echo_n "(cached) " >&6
19361else
19362  ac_check_lib_save_LIBS=$LIBS
19363LIBS="-ldld  $LIBS"
19364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365/* end confdefs.h.  */
19366
19367/* Override any GCC internal prototype to avoid an error.
19368   Use char because int might match the return type of a GCC
19369   builtin and then its argument prototype would still apply.  */
19370#ifdef __cplusplus
19371extern "C"
19372#endif
19373char shl_load ();
19374int
19375main ()
19376{
19377return shl_load ();
19378  ;
19379  return 0;
19380}
19381_ACEOF
19382if ac_fn_c_try_link "$LINENO"; then :
19383  ac_cv_lib_dld_shl_load=yes
19384else
19385  ac_cv_lib_dld_shl_load=no
19386fi
19387rm -f core conftest.err conftest.$ac_objext \
19388    conftest$ac_exeext conftest.$ac_ext
19389LIBS=$ac_check_lib_save_LIBS
19390fi
19391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19392$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19393if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19394  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19395else
19396  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19397if test "x$ac_cv_func_dlopen" = xyes; then :
19398  lt_cv_dlopen="dlopen"
19399else
19400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19401$as_echo_n "checking for dlopen in -ldl... " >&6; }
19402if ${ac_cv_lib_dl_dlopen+:} false; then :
19403  $as_echo_n "(cached) " >&6
19404else
19405  ac_check_lib_save_LIBS=$LIBS
19406LIBS="-ldl  $LIBS"
19407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408/* end confdefs.h.  */
19409
19410/* Override any GCC internal prototype to avoid an error.
19411   Use char because int might match the return type of a GCC
19412   builtin and then its argument prototype would still apply.  */
19413#ifdef __cplusplus
19414extern "C"
19415#endif
19416char dlopen ();
19417int
19418main ()
19419{
19420return dlopen ();
19421  ;
19422  return 0;
19423}
19424_ACEOF
19425if ac_fn_c_try_link "$LINENO"; then :
19426  ac_cv_lib_dl_dlopen=yes
19427else
19428  ac_cv_lib_dl_dlopen=no
19429fi
19430rm -f core conftest.err conftest.$ac_objext \
19431    conftest$ac_exeext conftest.$ac_ext
19432LIBS=$ac_check_lib_save_LIBS
19433fi
19434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19435$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19436if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19437  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19438else
19439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19440$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19441if ${ac_cv_lib_svld_dlopen+:} false; then :
19442  $as_echo_n "(cached) " >&6
19443else
19444  ac_check_lib_save_LIBS=$LIBS
19445LIBS="-lsvld  $LIBS"
19446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447/* end confdefs.h.  */
19448
19449/* Override any GCC internal prototype to avoid an error.
19450   Use char because int might match the return type of a GCC
19451   builtin and then its argument prototype would still apply.  */
19452#ifdef __cplusplus
19453extern "C"
19454#endif
19455char dlopen ();
19456int
19457main ()
19458{
19459return dlopen ();
19460  ;
19461  return 0;
19462}
19463_ACEOF
19464if ac_fn_c_try_link "$LINENO"; then :
19465  ac_cv_lib_svld_dlopen=yes
19466else
19467  ac_cv_lib_svld_dlopen=no
19468fi
19469rm -f core conftest.err conftest.$ac_objext \
19470    conftest$ac_exeext conftest.$ac_ext
19471LIBS=$ac_check_lib_save_LIBS
19472fi
19473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19474$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19475if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19476  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19477else
19478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19479$as_echo_n "checking for dld_link in -ldld... " >&6; }
19480if ${ac_cv_lib_dld_dld_link+:} false; then :
19481  $as_echo_n "(cached) " >&6
19482else
19483  ac_check_lib_save_LIBS=$LIBS
19484LIBS="-ldld  $LIBS"
19485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19486/* end confdefs.h.  */
19487
19488/* Override any GCC internal prototype to avoid an error.
19489   Use char because int might match the return type of a GCC
19490   builtin and then its argument prototype would still apply.  */
19491#ifdef __cplusplus
19492extern "C"
19493#endif
19494char dld_link ();
19495int
19496main ()
19497{
19498return dld_link ();
19499  ;
19500  return 0;
19501}
19502_ACEOF
19503if ac_fn_c_try_link "$LINENO"; then :
19504  ac_cv_lib_dld_dld_link=yes
19505else
19506  ac_cv_lib_dld_dld_link=no
19507fi
19508rm -f core conftest.err conftest.$ac_objext \
19509    conftest$ac_exeext conftest.$ac_ext
19510LIBS=$ac_check_lib_save_LIBS
19511fi
19512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19513$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19514if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19515  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19516fi
19517
19518
19519fi
19520
19521
19522fi
19523
19524
19525fi
19526
19527
19528fi
19529
19530
19531fi
19532
19533    ;;
19534  esac
19535
19536  if test "x$lt_cv_dlopen" != xno; then
19537    enable_dlopen=yes
19538  else
19539    enable_dlopen=no
19540  fi
19541
19542  case $lt_cv_dlopen in
19543  dlopen)
19544    save_CPPFLAGS="$CPPFLAGS"
19545    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19546
19547    save_LDFLAGS="$LDFLAGS"
19548    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19549
19550    save_LIBS="$LIBS"
19551    LIBS="$lt_cv_dlopen_libs $LIBS"
19552
19553    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19554$as_echo_n "checking whether a program can dlopen itself... " >&6; }
19555if ${lt_cv_dlopen_self+:} false; then :
19556  $as_echo_n "(cached) " >&6
19557else
19558  	  if test "$cross_compiling" = yes; then :
19559  lt_cv_dlopen_self=cross
19560else
19561  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19562  lt_status=$lt_dlunknown
19563  cat > conftest.$ac_ext <<_LT_EOF
19564#line 19564 "configure"
19565#include "confdefs.h"
19566
19567#if HAVE_DLFCN_H
19568#include <dlfcn.h>
19569#endif
19570
19571#include <stdio.h>
19572
19573#ifdef RTLD_GLOBAL
19574#  define LT_DLGLOBAL		RTLD_GLOBAL
19575#else
19576#  ifdef DL_GLOBAL
19577#    define LT_DLGLOBAL		DL_GLOBAL
19578#  else
19579#    define LT_DLGLOBAL		0
19580#  endif
19581#endif
19582
19583/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19584   find out it does not work in some platform. */
19585#ifndef LT_DLLAZY_OR_NOW
19586#  ifdef RTLD_LAZY
19587#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19588#  else
19589#    ifdef DL_LAZY
19590#      define LT_DLLAZY_OR_NOW		DL_LAZY
19591#    else
19592#      ifdef RTLD_NOW
19593#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19594#      else
19595#        ifdef DL_NOW
19596#          define LT_DLLAZY_OR_NOW	DL_NOW
19597#        else
19598#          define LT_DLLAZY_OR_NOW	0
19599#        endif
19600#      endif
19601#    endif
19602#  endif
19603#endif
19604
19605/* When -fvisbility=hidden is used, assume the code has been annotated
19606   correspondingly for the symbols needed.  */
19607#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19608void fnord () __attribute__((visibility("default")));
19609#endif
19610
19611void fnord () { int i=42; }
19612int main ()
19613{
19614  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19615  int status = $lt_dlunknown;
19616
19617  if (self)
19618    {
19619      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19620      else
19621        {
19622	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19623          else puts (dlerror ());
19624	}
19625      /* dlclose (self); */
19626    }
19627  else
19628    puts (dlerror ());
19629
19630  return status;
19631}
19632_LT_EOF
19633  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19634  (eval $ac_link) 2>&5
19635  ac_status=$?
19636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19637  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19638    (./conftest; exit; ) >&5 2>/dev/null
19639    lt_status=$?
19640    case x$lt_status in
19641      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19642      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19643      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19644    esac
19645  else :
19646    # compilation failed
19647    lt_cv_dlopen_self=no
19648  fi
19649fi
19650rm -fr conftest*
19651
19652
19653fi
19654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19655$as_echo "$lt_cv_dlopen_self" >&6; }
19656
19657    if test "x$lt_cv_dlopen_self" = xyes; then
19658      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19659      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19660$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19661if ${lt_cv_dlopen_self_static+:} false; then :
19662  $as_echo_n "(cached) " >&6
19663else
19664  	  if test "$cross_compiling" = yes; then :
19665  lt_cv_dlopen_self_static=cross
19666else
19667  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19668  lt_status=$lt_dlunknown
19669  cat > conftest.$ac_ext <<_LT_EOF
19670#line 19670 "configure"
19671#include "confdefs.h"
19672
19673#if HAVE_DLFCN_H
19674#include <dlfcn.h>
19675#endif
19676
19677#include <stdio.h>
19678
19679#ifdef RTLD_GLOBAL
19680#  define LT_DLGLOBAL		RTLD_GLOBAL
19681#else
19682#  ifdef DL_GLOBAL
19683#    define LT_DLGLOBAL		DL_GLOBAL
19684#  else
19685#    define LT_DLGLOBAL		0
19686#  endif
19687#endif
19688
19689/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19690   find out it does not work in some platform. */
19691#ifndef LT_DLLAZY_OR_NOW
19692#  ifdef RTLD_LAZY
19693#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19694#  else
19695#    ifdef DL_LAZY
19696#      define LT_DLLAZY_OR_NOW		DL_LAZY
19697#    else
19698#      ifdef RTLD_NOW
19699#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19700#      else
19701#        ifdef DL_NOW
19702#          define LT_DLLAZY_OR_NOW	DL_NOW
19703#        else
19704#          define LT_DLLAZY_OR_NOW	0
19705#        endif
19706#      endif
19707#    endif
19708#  endif
19709#endif
19710
19711/* When -fvisbility=hidden is used, assume the code has been annotated
19712   correspondingly for the symbols needed.  */
19713#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19714void fnord () __attribute__((visibility("default")));
19715#endif
19716
19717void fnord () { int i=42; }
19718int main ()
19719{
19720  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19721  int status = $lt_dlunknown;
19722
19723  if (self)
19724    {
19725      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19726      else
19727        {
19728	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19729          else puts (dlerror ());
19730	}
19731      /* dlclose (self); */
19732    }
19733  else
19734    puts (dlerror ());
19735
19736  return status;
19737}
19738_LT_EOF
19739  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19740  (eval $ac_link) 2>&5
19741  ac_status=$?
19742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19743  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19744    (./conftest; exit; ) >&5 2>/dev/null
19745    lt_status=$?
19746    case x$lt_status in
19747      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19748      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19749      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19750    esac
19751  else :
19752    # compilation failed
19753    lt_cv_dlopen_self_static=no
19754  fi
19755fi
19756rm -fr conftest*
19757
19758
19759fi
19760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19761$as_echo "$lt_cv_dlopen_self_static" >&6; }
19762    fi
19763
19764    CPPFLAGS="$save_CPPFLAGS"
19765    LDFLAGS="$save_LDFLAGS"
19766    LIBS="$save_LIBS"
19767    ;;
19768  esac
19769
19770  case $lt_cv_dlopen_self in
19771  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19772  *) enable_dlopen_self=unknown ;;
19773  esac
19774
19775  case $lt_cv_dlopen_self_static in
19776  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19777  *) enable_dlopen_self_static=unknown ;;
19778  esac
19779fi
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797striplib=
19798old_striplib=
19799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19800$as_echo_n "checking whether stripping libraries is possible... " >&6; }
19801if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19802  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19803  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19805$as_echo "yes" >&6; }
19806else
19807# FIXME - insert some real tests, host_os isn't really good enough
19808  case $host_os in
19809  darwin*)
19810    if test -n "$STRIP" ; then
19811      striplib="$STRIP -x"
19812      old_striplib="$STRIP -S"
19813      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19814$as_echo "yes" >&6; }
19815    else
19816      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19817$as_echo "no" >&6; }
19818    fi
19819    ;;
19820  *)
19821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19822$as_echo "no" >&6; }
19823    ;;
19824  esac
19825fi
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838  # Report which library types will actually be built
19839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19840$as_echo_n "checking if libtool supports shared libraries... " >&6; }
19841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19842$as_echo "$can_build_shared" >&6; }
19843
19844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19845$as_echo_n "checking whether to build shared libraries... " >&6; }
19846  test "$can_build_shared" = "no" && enable_shared=no
19847
19848  # On AIX, shared libraries and static libraries use the same namespace, and
19849  # are all built from PIC.
19850  case $host_os in
19851  aix3*)
19852    test "$enable_shared" = yes && enable_static=no
19853    if test -n "$RANLIB"; then
19854      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19855      postinstall_cmds='$RANLIB $lib'
19856    fi
19857    ;;
19858
19859  aix[4-9]*)
19860    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19861      test "$enable_shared" = yes && enable_static=no
19862    fi
19863    ;;
19864  esac
19865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19866$as_echo "$enable_shared" >&6; }
19867
19868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19869$as_echo_n "checking whether to build static libraries... " >&6; }
19870  # Make sure either enable_shared or enable_static is yes.
19871  test "$enable_shared" = yes || enable_static=yes
19872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19873$as_echo "$enable_static" >&6; }
19874
19875
19876
19877
19878fi
19879ac_ext=cpp
19880ac_cpp='$CXXCPP $CPPFLAGS'
19881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19884
19885CC="$lt_save_CC"
19886
19887      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19888    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19889    (test "X$CXX" != "Xg++"))) ; then
19890  ac_ext=cpp
19891ac_cpp='$CXXCPP $CPPFLAGS'
19892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19896$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19897if test -z "$CXXCPP"; then
19898  if ${ac_cv_prog_CXXCPP+:} false; then :
19899  $as_echo_n "(cached) " >&6
19900else
19901      # Double quotes because CXXCPP needs to be expanded
19902    for CXXCPP in "$CXX -E" "/lib/cpp"
19903    do
19904      ac_preproc_ok=false
19905for ac_cxx_preproc_warn_flag in '' yes
19906do
19907  # Use a header file that comes with gcc, so configuring glibc
19908  # with a fresh cross-compiler works.
19909  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19910  # <limits.h> exists even on freestanding compilers.
19911  # On the NeXT, cc -E runs the code through the compiler's parser,
19912  # not just through cpp. "Syntax error" is here to catch this case.
19913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914/* end confdefs.h.  */
19915#ifdef __STDC__
19916# include <limits.h>
19917#else
19918# include <assert.h>
19919#endif
19920		     Syntax error
19921_ACEOF
19922if ac_fn_cxx_try_cpp "$LINENO"; then :
19923
19924else
19925  # Broken: fails on valid input.
19926continue
19927fi
19928rm -f conftest.err conftest.i conftest.$ac_ext
19929
19930  # OK, works on sane cases.  Now check whether nonexistent headers
19931  # can be detected and how.
19932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19933/* end confdefs.h.  */
19934#include <ac_nonexistent.h>
19935_ACEOF
19936if ac_fn_cxx_try_cpp "$LINENO"; then :
19937  # Broken: success on invalid input.
19938continue
19939else
19940  # Passes both tests.
19941ac_preproc_ok=:
19942break
19943fi
19944rm -f conftest.err conftest.i conftest.$ac_ext
19945
19946done
19947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19948rm -f conftest.i conftest.err conftest.$ac_ext
19949if $ac_preproc_ok; then :
19950  break
19951fi
19952
19953    done
19954    ac_cv_prog_CXXCPP=$CXXCPP
19955
19956fi
19957  CXXCPP=$ac_cv_prog_CXXCPP
19958else
19959  ac_cv_prog_CXXCPP=$CXXCPP
19960fi
19961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19962$as_echo "$CXXCPP" >&6; }
19963ac_preproc_ok=false
19964for ac_cxx_preproc_warn_flag in '' yes
19965do
19966  # Use a header file that comes with gcc, so configuring glibc
19967  # with a fresh cross-compiler works.
19968  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19969  # <limits.h> exists even on freestanding compilers.
19970  # On the NeXT, cc -E runs the code through the compiler's parser,
19971  # not just through cpp. "Syntax error" is here to catch this case.
19972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19973/* end confdefs.h.  */
19974#ifdef __STDC__
19975# include <limits.h>
19976#else
19977# include <assert.h>
19978#endif
19979		     Syntax error
19980_ACEOF
19981if ac_fn_cxx_try_cpp "$LINENO"; then :
19982
19983else
19984  # Broken: fails on valid input.
19985continue
19986fi
19987rm -f conftest.err conftest.i conftest.$ac_ext
19988
19989  # OK, works on sane cases.  Now check whether nonexistent headers
19990  # can be detected and how.
19991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19992/* end confdefs.h.  */
19993#include <ac_nonexistent.h>
19994_ACEOF
19995if ac_fn_cxx_try_cpp "$LINENO"; then :
19996  # Broken: success on invalid input.
19997continue
19998else
19999  # Passes both tests.
20000ac_preproc_ok=:
20001break
20002fi
20003rm -f conftest.err conftest.i conftest.$ac_ext
20004
20005done
20006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20007rm -f conftest.i conftest.err conftest.$ac_ext
20008if $ac_preproc_ok; then :
20009
20010else
20011  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20013as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20014See \`config.log' for more details" "$LINENO" 5; }
20015fi
20016
20017ac_ext=cpp
20018ac_cpp='$CXXCPP $CPPFLAGS'
20019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20022
20023else
20024  _lt_caught_CXX_error=yes
20025fi
20026
20027ac_ext=cpp
20028ac_cpp='$CXXCPP $CPPFLAGS'
20029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20032
20033archive_cmds_need_lc_CXX=no
20034allow_undefined_flag_CXX=
20035always_export_symbols_CXX=no
20036archive_expsym_cmds_CXX=
20037compiler_needs_object_CXX=no
20038export_dynamic_flag_spec_CXX=
20039hardcode_direct_CXX=no
20040hardcode_direct_absolute_CXX=no
20041hardcode_libdir_flag_spec_CXX=
20042hardcode_libdir_flag_spec_ld_CXX=
20043hardcode_libdir_separator_CXX=
20044hardcode_minus_L_CXX=no
20045hardcode_shlibpath_var_CXX=unsupported
20046hardcode_automatic_CXX=no
20047inherit_rpath_CXX=no
20048module_cmds_CXX=
20049module_expsym_cmds_CXX=
20050link_all_deplibs_CXX=unknown
20051old_archive_cmds_CXX=$old_archive_cmds
20052reload_flag_CXX=$reload_flag
20053reload_cmds_CXX=$reload_cmds
20054no_undefined_flag_CXX=
20055whole_archive_flag_spec_CXX=
20056enable_shared_with_static_runtimes_CXX=no
20057
20058# Source file extension for C++ test sources.
20059ac_ext=cpp
20060
20061# Object file extension for compiled C++ test sources.
20062objext=o
20063objext_CXX=$objext
20064
20065# No sense in running all these tests if we already determined that
20066# the CXX compiler isn't working.  Some variables (like enable_shared)
20067# are currently assumed to apply to all compilers on this platform,
20068# and will be corrupted by setting them based on a non-working compiler.
20069if test "$_lt_caught_CXX_error" != yes; then
20070  # Code to be used in simple compile tests
20071  lt_simple_compile_test_code="int some_variable = 0;"
20072
20073  # Code to be used in simple link tests
20074  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20075
20076  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20077
20078
20079
20080
20081
20082
20083# If no C compiler was specified, use CC.
20084LTCC=${LTCC-"$CC"}
20085
20086# If no C compiler flags were specified, use CFLAGS.
20087LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20088
20089# Allow CC to be a program name with arguments.
20090compiler=$CC
20091
20092
20093  # save warnings/boilerplate of simple test code
20094  ac_outfile=conftest.$ac_objext
20095echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20096eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20097_lt_compiler_boilerplate=`cat conftest.err`
20098$RM conftest*
20099
20100  ac_outfile=conftest.$ac_objext
20101echo "$lt_simple_link_test_code" >conftest.$ac_ext
20102eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20103_lt_linker_boilerplate=`cat conftest.err`
20104$RM -r conftest*
20105
20106
20107  # Allow CC to be a program name with arguments.
20108  lt_save_CC=$CC
20109  lt_save_LD=$LD
20110  lt_save_GCC=$GCC
20111  GCC=$GXX
20112  lt_save_with_gnu_ld=$with_gnu_ld
20113  lt_save_path_LD=$lt_cv_path_LD
20114  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20115    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20116  else
20117    $as_unset lt_cv_prog_gnu_ld
20118  fi
20119  if test -n "${lt_cv_path_LDCXX+set}"; then
20120    lt_cv_path_LD=$lt_cv_path_LDCXX
20121  else
20122    $as_unset lt_cv_path_LD
20123  fi
20124  test -z "${LDCXX+set}" || LD=$LDCXX
20125  CC=${CXX-"c++"}
20126  compiler=$CC
20127  compiler_CXX=$CC
20128  for cc_temp in $compiler""; do
20129  case $cc_temp in
20130    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20131    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20132    \-*) ;;
20133    *) break;;
20134  esac
20135done
20136cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20137
20138
20139  if test -n "$compiler"; then
20140    # We don't want -fno-exception when compiling C++ code, so set the
20141    # no_builtin_flag separately
20142    if test "$GXX" = yes; then
20143      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20144    else
20145      lt_prog_compiler_no_builtin_flag_CXX=
20146    fi
20147
20148    if test "$GXX" = yes; then
20149      # Set up default GNU C++ configuration
20150
20151
20152
20153# Check whether --with-gnu-ld was given.
20154if test "${with_gnu_ld+set}" = set; then :
20155  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20156else
20157  with_gnu_ld=no
20158fi
20159
20160ac_prog=ld
20161if test "$GCC" = yes; then
20162  # Check if gcc -print-prog-name=ld gives a path.
20163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20164$as_echo_n "checking for ld used by $CC... " >&6; }
20165  case $host in
20166  *-*-mingw*)
20167    # gcc leaves a trailing carriage return which upsets mingw
20168    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20169  *)
20170    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20171  esac
20172  case $ac_prog in
20173    # Accept absolute paths.
20174    [\\/]* | ?:[\\/]*)
20175      re_direlt='/[^/][^/]*/\.\./'
20176      # Canonicalize the pathname of ld
20177      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20178      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20179	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20180      done
20181      test -z "$LD" && LD="$ac_prog"
20182      ;;
20183  "")
20184    # If it fails, then pretend we aren't using GCC.
20185    ac_prog=ld
20186    ;;
20187  *)
20188    # If it is relative, then search for the first ld in PATH.
20189    with_gnu_ld=unknown
20190    ;;
20191  esac
20192elif test "$with_gnu_ld" = yes; then
20193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20194$as_echo_n "checking for GNU ld... " >&6; }
20195else
20196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20197$as_echo_n "checking for non-GNU ld... " >&6; }
20198fi
20199if ${lt_cv_path_LD+:} false; then :
20200  $as_echo_n "(cached) " >&6
20201else
20202  if test -z "$LD"; then
20203  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20204  for ac_dir in $PATH; do
20205    IFS="$lt_save_ifs"
20206    test -z "$ac_dir" && ac_dir=.
20207    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20208      lt_cv_path_LD="$ac_dir/$ac_prog"
20209      # Check to see if the program is GNU ld.  I'd rather use --version,
20210      # but apparently some variants of GNU ld only accept -v.
20211      # Break only if it was the GNU/non-GNU ld that we prefer.
20212      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20213      *GNU* | *'with BFD'*)
20214	test "$with_gnu_ld" != no && break
20215	;;
20216      *)
20217	test "$with_gnu_ld" != yes && break
20218	;;
20219      esac
20220    fi
20221  done
20222  IFS="$lt_save_ifs"
20223else
20224  lt_cv_path_LD="$LD" # Let the user override the test with a path.
20225fi
20226fi
20227
20228LD="$lt_cv_path_LD"
20229if test -n "$LD"; then
20230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20231$as_echo "$LD" >&6; }
20232else
20233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20234$as_echo "no" >&6; }
20235fi
20236test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20238$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20239if ${lt_cv_prog_gnu_ld+:} false; then :
20240  $as_echo_n "(cached) " >&6
20241else
20242  # I'd rather use --version here, but apparently some GNU lds only accept -v.
20243case `$LD -v 2>&1 </dev/null` in
20244*GNU* | *'with BFD'*)
20245  lt_cv_prog_gnu_ld=yes
20246  ;;
20247*)
20248  lt_cv_prog_gnu_ld=no
20249  ;;
20250esac
20251fi
20252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20253$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20254with_gnu_ld=$lt_cv_prog_gnu_ld
20255
20256
20257
20258
20259
20260
20261
20262      # Check if GNU C++ uses GNU ld as the underlying linker, since the
20263      # archiving commands below assume that GNU ld is being used.
20264      if test "$with_gnu_ld" = yes; then
20265        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20266        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'
20267
20268        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20269        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20270
20271        # If archive_cmds runs LD, not CC, wlarc should be empty
20272        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20273        #     investigate it a little bit more. (MM)
20274        wlarc='${wl}'
20275
20276        # ancient GNU ld didn't support --whole-archive et. al.
20277        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20278	  $GREP 'no-whole-archive' > /dev/null; then
20279          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20280        else
20281          whole_archive_flag_spec_CXX=
20282        fi
20283      else
20284        with_gnu_ld=no
20285        wlarc=
20286
20287        # A generic and very simple default shared library creation
20288        # command for GNU C++ for the case where it uses the native
20289        # linker, instead of GNU ld.  If possible, this setting should
20290        # overridden to take advantage of the native linker features on
20291        # the platform it is being used on.
20292        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20293      fi
20294
20295      # Commands to make compiler produce verbose output that lists
20296      # what "hidden" libraries, object files and flags are used when
20297      # linking a shared library.
20298      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20299
20300    else
20301      GXX=no
20302      with_gnu_ld=no
20303      wlarc=
20304    fi
20305
20306    # PORTME: fill in a description of your system's C++ link characteristics
20307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20308$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20309    ld_shlibs_CXX=yes
20310    case $host_os in
20311      aix3*)
20312        # FIXME: insert proper C++ library support
20313        ld_shlibs_CXX=no
20314        ;;
20315      aix[4-9]*)
20316        if test "$host_cpu" = ia64; then
20317          # On IA64, the linker does run time linking by default, so we don't
20318          # have to do anything special.
20319          aix_use_runtimelinking=no
20320          exp_sym_flag='-Bexport'
20321          no_entry_flag=""
20322        else
20323          aix_use_runtimelinking=no
20324
20325          # Test if we are trying to use run time linking or normal
20326          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20327          # need to do runtime linking.
20328          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20329	    for ld_flag in $LDFLAGS; do
20330	      case $ld_flag in
20331	      *-brtl*)
20332	        aix_use_runtimelinking=yes
20333	        break
20334	        ;;
20335	      esac
20336	    done
20337	    ;;
20338          esac
20339
20340          exp_sym_flag='-bexport'
20341          no_entry_flag='-bnoentry'
20342        fi
20343
20344        # When large executables or shared objects are built, AIX ld can
20345        # have problems creating the table of contents.  If linking a library
20346        # or program results in "error TOC overflow" add -mminimal-toc to
20347        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20348        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20349
20350        archive_cmds_CXX=''
20351        hardcode_direct_CXX=yes
20352        hardcode_direct_absolute_CXX=yes
20353        hardcode_libdir_separator_CXX=':'
20354        link_all_deplibs_CXX=yes
20355        file_list_spec_CXX='${wl}-f,'
20356
20357        if test "$GXX" = yes; then
20358          case $host_os in aix4.[012]|aix4.[012].*)
20359          # We only want to do this on AIX 4.2 and lower, the check
20360          # below for broken collect2 doesn't work under 4.3+
20361	  collect2name=`${CC} -print-prog-name=collect2`
20362	  if test -f "$collect2name" &&
20363	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20364	  then
20365	    # We have reworked collect2
20366	    :
20367	  else
20368	    # We have old collect2
20369	    hardcode_direct_CXX=unsupported
20370	    # It fails to find uninstalled libraries when the uninstalled
20371	    # path is not listed in the libpath.  Setting hardcode_minus_L
20372	    # to unsupported forces relinking
20373	    hardcode_minus_L_CXX=yes
20374	    hardcode_libdir_flag_spec_CXX='-L$libdir'
20375	    hardcode_libdir_separator_CXX=
20376	  fi
20377          esac
20378          shared_flag='-shared'
20379	  if test "$aix_use_runtimelinking" = yes; then
20380	    shared_flag="$shared_flag "'${wl}-G'
20381	  fi
20382        else
20383          # not using gcc
20384          if test "$host_cpu" = ia64; then
20385	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20386	  # chokes on -Wl,-G. The following line is correct:
20387	  shared_flag='-G'
20388          else
20389	    if test "$aix_use_runtimelinking" = yes; then
20390	      shared_flag='${wl}-G'
20391	    else
20392	      shared_flag='${wl}-bM:SRE'
20393	    fi
20394          fi
20395        fi
20396
20397        export_dynamic_flag_spec_CXX='${wl}-bexpall'
20398        # It seems that -bexpall does not export symbols beginning with
20399        # underscore (_), so it is better to generate a list of symbols to
20400	# export.
20401        always_export_symbols_CXX=yes
20402        if test "$aix_use_runtimelinking" = yes; then
20403          # Warning - without using the other runtime loading flags (-brtl),
20404          # -berok will link without error, but may produce a broken library.
20405          allow_undefined_flag_CXX='-berok'
20406          # Determine the default libpath from the value encoded in an empty
20407          # executable.
20408          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409/* end confdefs.h.  */
20410
20411int
20412main ()
20413{
20414
20415  ;
20416  return 0;
20417}
20418_ACEOF
20419if ac_fn_cxx_try_link "$LINENO"; then :
20420
20421lt_aix_libpath_sed='
20422    /Import File Strings/,/^$/ {
20423	/^0/ {
20424	    s/^0  *\(.*\)$/\1/
20425	    p
20426	}
20427    }'
20428aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20429# Check for a 64-bit object if we didn't find anything.
20430if test -z "$aix_libpath"; then
20431  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20432fi
20433fi
20434rm -f core conftest.err conftest.$ac_objext \
20435    conftest$ac_exeext conftest.$ac_ext
20436if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20437
20438          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20439
20440          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"
20441        else
20442          if test "$host_cpu" = ia64; then
20443	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20444	    allow_undefined_flag_CXX="-z nodefs"
20445	    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"
20446          else
20447	    # Determine the default libpath from the value encoded in an
20448	    # empty executable.
20449	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20450/* end confdefs.h.  */
20451
20452int
20453main ()
20454{
20455
20456  ;
20457  return 0;
20458}
20459_ACEOF
20460if ac_fn_cxx_try_link "$LINENO"; then :
20461
20462lt_aix_libpath_sed='
20463    /Import File Strings/,/^$/ {
20464	/^0/ {
20465	    s/^0  *\(.*\)$/\1/
20466	    p
20467	}
20468    }'
20469aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20470# Check for a 64-bit object if we didn't find anything.
20471if test -z "$aix_libpath"; then
20472  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20473fi
20474fi
20475rm -f core conftest.err conftest.$ac_objext \
20476    conftest$ac_exeext conftest.$ac_ext
20477if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20478
20479	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20480	    # Warning - without using the other run time loading flags,
20481	    # -berok will link without error, but may produce a broken library.
20482	    no_undefined_flag_CXX=' ${wl}-bernotok'
20483	    allow_undefined_flag_CXX=' ${wl}-berok'
20484	    if test "$with_gnu_ld" = yes; then
20485	      # We only use this code for GNU lds that support --whole-archive.
20486	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20487	    else
20488	      # Exported symbols can be pulled into shared objects from archives
20489	      whole_archive_flag_spec_CXX='$convenience'
20490	    fi
20491	    archive_cmds_need_lc_CXX=yes
20492	    # This is similar to how AIX traditionally builds its shared
20493	    # libraries.
20494	    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'
20495          fi
20496        fi
20497        ;;
20498
20499      beos*)
20500	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20501	  allow_undefined_flag_CXX=unsupported
20502	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20503	  # support --undefined.  This deserves some investigation.  FIXME
20504	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20505	else
20506	  ld_shlibs_CXX=no
20507	fi
20508	;;
20509
20510      chorus*)
20511        case $cc_basename in
20512          *)
20513	  # FIXME: insert proper C++ library support
20514	  ld_shlibs_CXX=no
20515	  ;;
20516        esac
20517        ;;
20518
20519      cygwin* | mingw* | pw32* | cegcc*)
20520        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20521        # as there is no search path for DLLs.
20522        hardcode_libdir_flag_spec_CXX='-L$libdir'
20523        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20524        allow_undefined_flag_CXX=unsupported
20525        always_export_symbols_CXX=no
20526        enable_shared_with_static_runtimes_CXX=yes
20527
20528        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20529          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'
20530          # If the export-symbols file already is a .def file (1st line
20531          # is EXPORTS), use it as is; otherwise, prepend...
20532          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20533	    cp $export_symbols $output_objdir/$soname.def;
20534          else
20535	    echo EXPORTS > $output_objdir/$soname.def;
20536	    cat $export_symbols >> $output_objdir/$soname.def;
20537          fi~
20538          $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'
20539        else
20540          ld_shlibs_CXX=no
20541        fi
20542        ;;
20543      darwin* | rhapsody*)
20544
20545
20546  archive_cmds_need_lc_CXX=no
20547  hardcode_direct_CXX=no
20548  hardcode_automatic_CXX=yes
20549  hardcode_shlibpath_var_CXX=unsupported
20550  if test "$lt_cv_ld_force_load" = "yes"; then
20551    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\"`'
20552  else
20553    whole_archive_flag_spec_CXX=''
20554  fi
20555  link_all_deplibs_CXX=yes
20556  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20557  case $cc_basename in
20558     ifort*) _lt_dar_can_shared=yes ;;
20559     *) _lt_dar_can_shared=$GCC ;;
20560  esac
20561  if test "$_lt_dar_can_shared" = "yes"; then
20562    output_verbose_link_cmd=func_echo_all
20563    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}"
20564    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20565    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}"
20566    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}"
20567       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20568      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}"
20569      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}"
20570    fi
20571
20572  else
20573  ld_shlibs_CXX=no
20574  fi
20575
20576	;;
20577
20578      dgux*)
20579        case $cc_basename in
20580          ec++*)
20581	    # FIXME: insert proper C++ library support
20582	    ld_shlibs_CXX=no
20583	    ;;
20584          ghcx*)
20585	    # Green Hills C++ Compiler
20586	    # FIXME: insert proper C++ library support
20587	    ld_shlibs_CXX=no
20588	    ;;
20589          *)
20590	    # FIXME: insert proper C++ library support
20591	    ld_shlibs_CXX=no
20592	    ;;
20593        esac
20594        ;;
20595
20596      freebsd2.*)
20597        # C++ shared libraries reported to be fairly broken before
20598	# switch to ELF
20599        ld_shlibs_CXX=no
20600        ;;
20601
20602      freebsd-elf*)
20603        archive_cmds_need_lc_CXX=no
20604        ;;
20605
20606      freebsd* | dragonfly*)
20607        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20608        # conventions
20609        ld_shlibs_CXX=yes
20610        ;;
20611
20612      gnu*)
20613        ;;
20614
20615      haiku*)
20616        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20617        link_all_deplibs_CXX=yes
20618        ;;
20619
20620      hpux9*)
20621        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20622        hardcode_libdir_separator_CXX=:
20623        export_dynamic_flag_spec_CXX='${wl}-E'
20624        hardcode_direct_CXX=yes
20625        hardcode_minus_L_CXX=yes # Not in the search PATH,
20626				             # but as the default
20627				             # location of the library.
20628
20629        case $cc_basename in
20630          CC*)
20631            # FIXME: insert proper C++ library support
20632            ld_shlibs_CXX=no
20633            ;;
20634          aCC*)
20635            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'
20636            # Commands to make compiler produce verbose output that lists
20637            # what "hidden" libraries, object files and flags are used when
20638            # linking a shared library.
20639            #
20640            # There doesn't appear to be a way to prevent this compiler from
20641            # explicitly linking system object files so we need to strip them
20642            # from the output so that they don't get included in the library
20643            # dependencies.
20644            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"'
20645            ;;
20646          *)
20647            if test "$GXX" = yes; then
20648              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'
20649            else
20650              # FIXME: insert proper C++ library support
20651              ld_shlibs_CXX=no
20652            fi
20653            ;;
20654        esac
20655        ;;
20656
20657      hpux10*|hpux11*)
20658        if test $with_gnu_ld = no; then
20659	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20660	  hardcode_libdir_separator_CXX=:
20661
20662          case $host_cpu in
20663            hppa*64*|ia64*)
20664              ;;
20665            *)
20666	      export_dynamic_flag_spec_CXX='${wl}-E'
20667              ;;
20668          esac
20669        fi
20670        case $host_cpu in
20671          hppa*64*|ia64*)
20672            hardcode_direct_CXX=no
20673            hardcode_shlibpath_var_CXX=no
20674            ;;
20675          *)
20676            hardcode_direct_CXX=yes
20677            hardcode_direct_absolute_CXX=yes
20678            hardcode_minus_L_CXX=yes # Not in the search PATH,
20679					         # but as the default
20680					         # location of the library.
20681            ;;
20682        esac
20683
20684        case $cc_basename in
20685          CC*)
20686	    # FIXME: insert proper C++ library support
20687	    ld_shlibs_CXX=no
20688	    ;;
20689          aCC*)
20690	    case $host_cpu in
20691	      hppa*64*)
20692	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20693	        ;;
20694	      ia64*)
20695	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20696	        ;;
20697	      *)
20698	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20699	        ;;
20700	    esac
20701	    # Commands to make compiler produce verbose output that lists
20702	    # what "hidden" libraries, object files and flags are used when
20703	    # linking a shared library.
20704	    #
20705	    # There doesn't appear to be a way to prevent this compiler from
20706	    # explicitly linking system object files so we need to strip them
20707	    # from the output so that they don't get included in the library
20708	    # dependencies.
20709	    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"'
20710	    ;;
20711          *)
20712	    if test "$GXX" = yes; then
20713	      if test $with_gnu_ld = no; then
20714	        case $host_cpu in
20715	          hppa*64*)
20716	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20717	            ;;
20718	          ia64*)
20719	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20720	            ;;
20721	          *)
20722	            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'
20723	            ;;
20724	        esac
20725	      fi
20726	    else
20727	      # FIXME: insert proper C++ library support
20728	      ld_shlibs_CXX=no
20729	    fi
20730	    ;;
20731        esac
20732        ;;
20733
20734      interix[3-9]*)
20735	hardcode_direct_CXX=no
20736	hardcode_shlibpath_var_CXX=no
20737	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20738	export_dynamic_flag_spec_CXX='${wl}-E'
20739	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20740	# Instead, shared libraries are loaded at an image base (0x10000000 by
20741	# default) and relocated if they conflict, which is a slow very memory
20742	# consuming and fragmenting process.  To avoid this, we pick a random,
20743	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20744	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20745	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'
20746	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'
20747	;;
20748      irix5* | irix6*)
20749        case $cc_basename in
20750          CC*)
20751	    # SGI C++
20752	    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'
20753
20754	    # Archives containing C++ object files must be created using
20755	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
20756	    # necessary to make sure instantiated templates are included
20757	    # in the archive.
20758	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20759	    ;;
20760          *)
20761	    if test "$GXX" = yes; then
20762	      if test "$with_gnu_ld" = no; then
20763	        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'
20764	      else
20765	        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'
20766	      fi
20767	    fi
20768	    link_all_deplibs_CXX=yes
20769	    ;;
20770        esac
20771        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20772        hardcode_libdir_separator_CXX=:
20773        inherit_rpath_CXX=yes
20774        ;;
20775
20776      linux* | k*bsd*-gnu | kopensolaris*-gnu)
20777        case $cc_basename in
20778          KCC*)
20779	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20780
20781	    # KCC will only create a shared library if the output file
20782	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20783	    # to its proper name (with version) after linking.
20784	    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'
20785	    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'
20786	    # Commands to make compiler produce verbose output that lists
20787	    # what "hidden" libraries, object files and flags are used when
20788	    # linking a shared library.
20789	    #
20790	    # There doesn't appear to be a way to prevent this compiler from
20791	    # explicitly linking system object files so we need to strip them
20792	    # from the output so that they don't get included in the library
20793	    # dependencies.
20794	    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"'
20795
20796	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20797	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20798
20799	    # Archives containing C++ object files must be created using
20800	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20801	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20802	    ;;
20803	  icpc* | ecpc* )
20804	    # Intel C++
20805	    with_gnu_ld=yes
20806	    # version 8.0 and above of icpc choke on multiply defined symbols
20807	    # if we add $predep_objects and $postdep_objects, however 7.1 and
20808	    # earlier do not add the objects themselves.
20809	    case `$CC -V 2>&1` in
20810	      *"Version 7."*)
20811	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20812		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'
20813		;;
20814	      *)  # Version 8.0 or newer
20815	        tmp_idyn=
20816	        case $host_cpu in
20817		  ia64*) tmp_idyn=' -i_dynamic';;
20818		esac
20819	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20820		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'
20821		;;
20822	    esac
20823	    archive_cmds_need_lc_CXX=no
20824	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20825	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20826	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20827	    ;;
20828          pgCC* | pgcpp*)
20829            # Portland Group C++ compiler
20830	    case `$CC -V` in
20831	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20832	      prelink_cmds_CXX='tpldir=Template.dir~
20833		rm -rf $tpldir~
20834		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20835		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20836	      old_archive_cmds_CXX='tpldir=Template.dir~
20837		rm -rf $tpldir~
20838		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20839		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20840		$RANLIB $oldlib'
20841	      archive_cmds_CXX='tpldir=Template.dir~
20842		rm -rf $tpldir~
20843		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20844		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20845	      archive_expsym_cmds_CXX='tpldir=Template.dir~
20846		rm -rf $tpldir~
20847		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20848		$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'
20849	      ;;
20850	    *) # Version 6 and above use weak symbols
20851	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20852	      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'
20853	      ;;
20854	    esac
20855
20856	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20857	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20858	    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'
20859            ;;
20860	  cxx*)
20861	    # Compaq C++
20862	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20863	    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'
20864
20865	    runpath_var=LD_RUN_PATH
20866	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20867	    hardcode_libdir_separator_CXX=:
20868
20869	    # Commands to make compiler produce verbose output that lists
20870	    # what "hidden" libraries, object files and flags are used when
20871	    # linking a shared library.
20872	    #
20873	    # There doesn't appear to be a way to prevent this compiler from
20874	    # explicitly linking system object files so we need to strip them
20875	    # from the output so that they don't get included in the library
20876	    # dependencies.
20877	    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'
20878	    ;;
20879	  xl* | mpixl* | bgxl*)
20880	    # IBM XL 8.0 on PPC, with GNU ld
20881	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20882	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20883	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20884	    if test "x$supports_anon_versioning" = xyes; then
20885	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20886		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20887		echo "local: *; };" >> $output_objdir/$libname.ver~
20888		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20889	    fi
20890	    ;;
20891	  *)
20892	    case `$CC -V 2>&1 | sed 5q` in
20893	    *Sun\ C*)
20894	      # Sun C++ 5.9
20895	      no_undefined_flag_CXX=' -zdefs'
20896	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20897	      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'
20898	      hardcode_libdir_flag_spec_CXX='-R$libdir'
20899	      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'
20900	      compiler_needs_object_CXX=yes
20901
20902	      # Not sure whether something based on
20903	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20904	      # would be better.
20905	      output_verbose_link_cmd='func_echo_all'
20906
20907	      # Archives containing C++ object files must be created using
20908	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20909	      # necessary to make sure instantiated templates are included
20910	      # in the archive.
20911	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20912	      ;;
20913	    esac
20914	    ;;
20915	esac
20916	;;
20917
20918      lynxos*)
20919        # FIXME: insert proper C++ library support
20920	ld_shlibs_CXX=no
20921	;;
20922
20923      m88k*)
20924        # FIXME: insert proper C++ library support
20925        ld_shlibs_CXX=no
20926	;;
20927
20928      mvs*)
20929        case $cc_basename in
20930          cxx*)
20931	    # FIXME: insert proper C++ library support
20932	    ld_shlibs_CXX=no
20933	    ;;
20934	  *)
20935	    # FIXME: insert proper C++ library support
20936	    ld_shlibs_CXX=no
20937	    ;;
20938	esac
20939	;;
20940
20941      netbsd*)
20942        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20943	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20944	  wlarc=
20945	  hardcode_libdir_flag_spec_CXX='-R$libdir'
20946	  hardcode_direct_CXX=yes
20947	  hardcode_shlibpath_var_CXX=no
20948	fi
20949	# Workaround some broken pre-1.5 toolchains
20950	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20951	;;
20952
20953      *nto* | *qnx*)
20954        ld_shlibs_CXX=yes
20955	;;
20956
20957      openbsd2*)
20958        # C++ shared libraries are fairly broken
20959	ld_shlibs_CXX=no
20960	;;
20961
20962      openbsd*)
20963	if test -f /usr/libexec/ld.so; then
20964	  hardcode_direct_CXX=yes
20965	  hardcode_shlibpath_var_CXX=no
20966	  hardcode_direct_absolute_CXX=yes
20967	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20968	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20969	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20970	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20971	    export_dynamic_flag_spec_CXX='${wl}-E'
20972	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20973	  fi
20974	  output_verbose_link_cmd=func_echo_all
20975	else
20976	  ld_shlibs_CXX=no
20977	fi
20978	;;
20979
20980      osf3* | osf4* | osf5*)
20981        case $cc_basename in
20982          KCC*)
20983	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20984
20985	    # KCC will only create a shared library if the output file
20986	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20987	    # to its proper name (with version) after linking.
20988	    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'
20989
20990	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20991	    hardcode_libdir_separator_CXX=:
20992
20993	    # Archives containing C++ object files must be created using
20994	    # the KAI C++ compiler.
20995	    case $host in
20996	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20997	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20998	    esac
20999	    ;;
21000          RCC*)
21001	    # Rational C++ 2.4.1
21002	    # FIXME: insert proper C++ library support
21003	    ld_shlibs_CXX=no
21004	    ;;
21005          cxx*)
21006	    case $host in
21007	      osf3*)
21008	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21009	        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'
21010	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21011		;;
21012	      *)
21013	        allow_undefined_flag_CXX=' -expect_unresolved \*'
21014	        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'
21015	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21016	          echo "-hidden">> $lib.exp~
21017	          $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~
21018	          $RM $lib.exp'
21019	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21020		;;
21021	    esac
21022
21023	    hardcode_libdir_separator_CXX=:
21024
21025	    # Commands to make compiler produce verbose output that lists
21026	    # what "hidden" libraries, object files and flags are used when
21027	    # linking a shared library.
21028	    #
21029	    # There doesn't appear to be a way to prevent this compiler from
21030	    # explicitly linking system object files so we need to strip them
21031	    # from the output so that they don't get included in the library
21032	    # dependencies.
21033	    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"'
21034	    ;;
21035	  *)
21036	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21037	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21038	      case $host in
21039	        osf3*)
21040	          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'
21041		  ;;
21042	        *)
21043	          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'
21044		  ;;
21045	      esac
21046
21047	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21048	      hardcode_libdir_separator_CXX=:
21049
21050	      # Commands to make compiler produce verbose output that lists
21051	      # what "hidden" libraries, object files and flags are used when
21052	      # linking a shared library.
21053	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21054
21055	    else
21056	      # FIXME: insert proper C++ library support
21057	      ld_shlibs_CXX=no
21058	    fi
21059	    ;;
21060        esac
21061        ;;
21062
21063      psos*)
21064        # FIXME: insert proper C++ library support
21065        ld_shlibs_CXX=no
21066        ;;
21067
21068      sunos4*)
21069        case $cc_basename in
21070          CC*)
21071	    # Sun C++ 4.x
21072	    # FIXME: insert proper C++ library support
21073	    ld_shlibs_CXX=no
21074	    ;;
21075          lcc*)
21076	    # Lucid
21077	    # FIXME: insert proper C++ library support
21078	    ld_shlibs_CXX=no
21079	    ;;
21080          *)
21081	    # FIXME: insert proper C++ library support
21082	    ld_shlibs_CXX=no
21083	    ;;
21084        esac
21085        ;;
21086
21087      solaris*)
21088        case $cc_basename in
21089          CC*)
21090	    # Sun C++ 4.2, 5.x and Centerline C++
21091            archive_cmds_need_lc_CXX=yes
21092	    no_undefined_flag_CXX=' -zdefs'
21093	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21094	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21095	      $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'
21096
21097	    hardcode_libdir_flag_spec_CXX='-R$libdir'
21098	    hardcode_shlibpath_var_CXX=no
21099	    case $host_os in
21100	      solaris2.[0-5] | solaris2.[0-5].*) ;;
21101	      *)
21102		# The compiler driver will combine and reorder linker options,
21103		# but understands `-z linker_flag'.
21104	        # Supported since Solaris 2.6 (maybe 2.5.1?)
21105		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21106	        ;;
21107	    esac
21108	    link_all_deplibs_CXX=yes
21109
21110	    output_verbose_link_cmd='func_echo_all'
21111
21112	    # Archives containing C++ object files must be created using
21113	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
21114	    # necessary to make sure instantiated templates are included
21115	    # in the archive.
21116	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21117	    ;;
21118          gcx*)
21119	    # Green Hills C++ Compiler
21120	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21121
21122	    # The C++ compiler must be used to create the archive.
21123	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21124	    ;;
21125          *)
21126	    # GNU C++ compiler with Solaris linker
21127	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21128	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21129	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21130	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21131	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21132		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21133
21134	        # Commands to make compiler produce verbose output that lists
21135	        # what "hidden" libraries, object files and flags are used when
21136	        # linking a shared library.
21137	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21138	      else
21139	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
21140	        # platform.
21141	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21142	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21143		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21144
21145	        # Commands to make compiler produce verbose output that lists
21146	        # what "hidden" libraries, object files and flags are used when
21147	        # linking a shared library.
21148	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21149	      fi
21150
21151	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21152	      case $host_os in
21153		solaris2.[0-5] | solaris2.[0-5].*) ;;
21154		*)
21155		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21156		  ;;
21157	      esac
21158	    fi
21159	    ;;
21160        esac
21161        ;;
21162
21163    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21164      no_undefined_flag_CXX='${wl}-z,text'
21165      archive_cmds_need_lc_CXX=no
21166      hardcode_shlibpath_var_CXX=no
21167      runpath_var='LD_RUN_PATH'
21168
21169      case $cc_basename in
21170        CC*)
21171	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21172	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21173	  ;;
21174	*)
21175	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21176	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21177	  ;;
21178      esac
21179      ;;
21180
21181      sysv5* | sco3.2v5* | sco5v6*)
21182	# Note: We can NOT use -z defs as we might desire, because we do not
21183	# link with -lc, and that would cause any symbols used from libc to
21184	# always be unresolved, which means just about no library would
21185	# ever link correctly.  If we're not using GNU ld we use -z text
21186	# though, which does catch some bad symbols but isn't as heavy-handed
21187	# as -z defs.
21188	no_undefined_flag_CXX='${wl}-z,text'
21189	allow_undefined_flag_CXX='${wl}-z,nodefs'
21190	archive_cmds_need_lc_CXX=no
21191	hardcode_shlibpath_var_CXX=no
21192	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21193	hardcode_libdir_separator_CXX=':'
21194	link_all_deplibs_CXX=yes
21195	export_dynamic_flag_spec_CXX='${wl}-Bexport'
21196	runpath_var='LD_RUN_PATH'
21197
21198	case $cc_basename in
21199          CC*)
21200	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21201	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21202	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21203	      '"$old_archive_cmds_CXX"
21204	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21205	      '"$reload_cmds_CXX"
21206	    ;;
21207	  *)
21208	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21209	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21210	    ;;
21211	esac
21212      ;;
21213
21214      tandem*)
21215        case $cc_basename in
21216          NCC*)
21217	    # NonStop-UX NCC 3.20
21218	    # FIXME: insert proper C++ library support
21219	    ld_shlibs_CXX=no
21220	    ;;
21221          *)
21222	    # FIXME: insert proper C++ library support
21223	    ld_shlibs_CXX=no
21224	    ;;
21225        esac
21226        ;;
21227
21228      vxworks*)
21229        # FIXME: insert proper C++ library support
21230        ld_shlibs_CXX=no
21231        ;;
21232
21233      *)
21234        # FIXME: insert proper C++ library support
21235        ld_shlibs_CXX=no
21236        ;;
21237    esac
21238
21239    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21240$as_echo "$ld_shlibs_CXX" >&6; }
21241    test "$ld_shlibs_CXX" = no && can_build_shared=no
21242
21243    GCC_CXX="$GXX"
21244    LD_CXX="$LD"
21245
21246    ## CAVEAT EMPTOR:
21247    ## There is no encapsulation within the following macros, do not change
21248    ## the running order or otherwise move them around unless you know exactly
21249    ## what you are doing...
21250    # Dependencies to place before and after the object being linked:
21251predep_objects_CXX=
21252postdep_objects_CXX=
21253predeps_CXX=
21254postdeps_CXX=
21255compiler_lib_search_path_CXX=
21256
21257cat > conftest.$ac_ext <<_LT_EOF
21258class Foo
21259{
21260public:
21261  Foo (void) { a = 0; }
21262private:
21263  int a;
21264};
21265_LT_EOF
21266
21267if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21268  (eval $ac_compile) 2>&5
21269  ac_status=$?
21270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21271  test $ac_status = 0; }; then
21272  # Parse the compiler output and extract the necessary
21273  # objects, libraries and library flags.
21274
21275  # Sentinel used to keep track of whether or not we are before
21276  # the conftest object file.
21277  pre_test_object_deps_done=no
21278
21279  for p in `eval "$output_verbose_link_cmd"`; do
21280    case $p in
21281
21282    -L* | -R* | -l*)
21283       # Some compilers place space between "-{L,R}" and the path.
21284       # Remove the space.
21285       if test $p = "-L" ||
21286          test $p = "-R"; then
21287	 prev=$p
21288	 continue
21289       else
21290	 prev=
21291       fi
21292
21293       if test "$pre_test_object_deps_done" = no; then
21294	 case $p in
21295	 -L* | -R*)
21296	   # Internal compiler library paths should come after those
21297	   # provided the user.  The postdeps already come after the
21298	   # user supplied libs so there is no need to process them.
21299	   if test -z "$compiler_lib_search_path_CXX"; then
21300	     compiler_lib_search_path_CXX="${prev}${p}"
21301	   else
21302	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21303	   fi
21304	   ;;
21305	 # The "-l" case would never come before the object being
21306	 # linked, so don't bother handling this case.
21307	 esac
21308       else
21309	 if test -z "$postdeps_CXX"; then
21310	   postdeps_CXX="${prev}${p}"
21311	 else
21312	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21313	 fi
21314       fi
21315       ;;
21316
21317    *.$objext)
21318       # This assumes that the test object file only shows up
21319       # once in the compiler output.
21320       if test "$p" = "conftest.$objext"; then
21321	 pre_test_object_deps_done=yes
21322	 continue
21323       fi
21324
21325       if test "$pre_test_object_deps_done" = no; then
21326	 if test -z "$predep_objects_CXX"; then
21327	   predep_objects_CXX="$p"
21328	 else
21329	   predep_objects_CXX="$predep_objects_CXX $p"
21330	 fi
21331       else
21332	 if test -z "$postdep_objects_CXX"; then
21333	   postdep_objects_CXX="$p"
21334	 else
21335	   postdep_objects_CXX="$postdep_objects_CXX $p"
21336	 fi
21337       fi
21338       ;;
21339
21340    *) ;; # Ignore the rest.
21341
21342    esac
21343  done
21344
21345  # Clean up.
21346  rm -f a.out a.exe
21347else
21348  echo "libtool.m4: error: problem compiling CXX test program"
21349fi
21350
21351$RM -f confest.$objext
21352
21353# PORTME: override above test on systems where it is broken
21354case $host_os in
21355interix[3-9]*)
21356  # Interix 3.5 installs completely hosed .la files for C++, so rather than
21357  # hack all around it, let's just trust "g++" to DTRT.
21358  predep_objects_CXX=
21359  postdep_objects_CXX=
21360  postdeps_CXX=
21361  ;;
21362
21363linux*)
21364  case `$CC -V 2>&1 | sed 5q` in
21365  *Sun\ C*)
21366    # Sun C++ 5.9
21367
21368    # The more standards-conforming stlport4 library is
21369    # incompatible with the Cstd library. Avoid specifying
21370    # it if it's in CXXFLAGS. Ignore libCrun as
21371    # -library=stlport4 depends on it.
21372    case " $CXX $CXXFLAGS " in
21373    *" -library=stlport4 "*)
21374      solaris_use_stlport4=yes
21375      ;;
21376    esac
21377
21378    if test "$solaris_use_stlport4" != yes; then
21379      postdeps_CXX='-library=Cstd -library=Crun'
21380    fi
21381    ;;
21382  esac
21383  ;;
21384
21385solaris*)
21386  case $cc_basename in
21387  CC*)
21388    # The more standards-conforming stlport4 library is
21389    # incompatible with the Cstd library. Avoid specifying
21390    # it if it's in CXXFLAGS. Ignore libCrun as
21391    # -library=stlport4 depends on it.
21392    case " $CXX $CXXFLAGS " in
21393    *" -library=stlport4 "*)
21394      solaris_use_stlport4=yes
21395      ;;
21396    esac
21397
21398    # Adding this requires a known-good setup of shared libraries for
21399    # Sun compiler versions before 5.6, else PIC objects from an old
21400    # archive will be linked into the output, leading to subtle bugs.
21401    if test "$solaris_use_stlport4" != yes; then
21402      postdeps_CXX='-library=Cstd -library=Crun'
21403    fi
21404    ;;
21405  esac
21406  ;;
21407esac
21408
21409
21410case " $postdeps_CXX " in
21411*" -lc "*) archive_cmds_need_lc_CXX=no ;;
21412esac
21413 compiler_lib_search_dirs_CXX=
21414if test -n "${compiler_lib_search_path_CXX}"; then
21415 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21416fi
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448    lt_prog_compiler_wl_CXX=
21449lt_prog_compiler_pic_CXX=
21450lt_prog_compiler_static_CXX=
21451
21452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21453$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21454
21455  # C++ specific cases for pic, static, wl, etc.
21456  if test "$GXX" = yes; then
21457    lt_prog_compiler_wl_CXX='-Wl,'
21458    lt_prog_compiler_static_CXX='-static'
21459
21460    case $host_os in
21461    aix*)
21462      # All AIX code is PIC.
21463      if test "$host_cpu" = ia64; then
21464	# AIX 5 now supports IA64 processor
21465	lt_prog_compiler_static_CXX='-Bstatic'
21466      fi
21467      lt_prog_compiler_pic_CXX='-fPIC'
21468      ;;
21469
21470    amigaos*)
21471      case $host_cpu in
21472      powerpc)
21473            # see comment about AmigaOS4 .so support
21474            lt_prog_compiler_pic_CXX='-fPIC'
21475        ;;
21476      m68k)
21477            # FIXME: we need at least 68020 code to build shared libraries, but
21478            # adding the `-m68020' flag to GCC prevents building anything better,
21479            # like `-m68040'.
21480            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21481        ;;
21482      esac
21483      ;;
21484
21485    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21486      # PIC is the default for these OSes.
21487      ;;
21488    mingw* | cygwin* | os2* | pw32* | cegcc*)
21489      # This hack is so that the source file can tell whether it is being
21490      # built for inclusion in a dll (and should export symbols for example).
21491      # Although the cygwin gcc ignores -fPIC, still need this for old-style
21492      # (--disable-auto-import) libraries
21493      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21494      ;;
21495    darwin* | rhapsody*)
21496      # PIC is the default on this platform
21497      # Common symbols not allowed in MH_DYLIB files
21498      lt_prog_compiler_pic_CXX='-fno-common'
21499      ;;
21500    *djgpp*)
21501      # DJGPP does not support shared libraries at all
21502      lt_prog_compiler_pic_CXX=
21503      ;;
21504    haiku*)
21505      # PIC is the default for Haiku.
21506      # The "-static" flag exists, but is broken.
21507      lt_prog_compiler_static_CXX=
21508      ;;
21509    interix[3-9]*)
21510      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21511      # Instead, we relocate shared libraries at runtime.
21512      ;;
21513    sysv4*MP*)
21514      if test -d /usr/nec; then
21515	lt_prog_compiler_pic_CXX=-Kconform_pic
21516      fi
21517      ;;
21518    hpux*)
21519      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21520      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
21521      # sets the default TLS model and affects inlining.
21522      case $host_cpu in
21523      hppa*64*)
21524	;;
21525      *)
21526	lt_prog_compiler_pic_CXX='-fPIC'
21527	;;
21528      esac
21529      ;;
21530    *qnx* | *nto*)
21531      # QNX uses GNU C++, but need to define -shared option too, otherwise
21532      # it will coredump.
21533      lt_prog_compiler_pic_CXX='-fPIC -shared'
21534      ;;
21535    *)
21536      lt_prog_compiler_pic_CXX='-fPIC'
21537      ;;
21538    esac
21539  else
21540    case $host_os in
21541      aix[4-9]*)
21542	# All AIX code is PIC.
21543	if test "$host_cpu" = ia64; then
21544	  # AIX 5 now supports IA64 processor
21545	  lt_prog_compiler_static_CXX='-Bstatic'
21546	else
21547	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21548	fi
21549	;;
21550      chorus*)
21551	case $cc_basename in
21552	cxch68*)
21553	  # Green Hills C++ Compiler
21554	  # _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"
21555	  ;;
21556	esac
21557	;;
21558      dgux*)
21559	case $cc_basename in
21560	  ec++*)
21561	    lt_prog_compiler_pic_CXX='-KPIC'
21562	    ;;
21563	  ghcx*)
21564	    # Green Hills C++ Compiler
21565	    lt_prog_compiler_pic_CXX='-pic'
21566	    ;;
21567	  *)
21568	    ;;
21569	esac
21570	;;
21571      freebsd* | dragonfly*)
21572	# FreeBSD uses GNU C++
21573	;;
21574      hpux9* | hpux10* | hpux11*)
21575	case $cc_basename in
21576	  CC*)
21577	    lt_prog_compiler_wl_CXX='-Wl,'
21578	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21579	    if test "$host_cpu" != ia64; then
21580	      lt_prog_compiler_pic_CXX='+Z'
21581	    fi
21582	    ;;
21583	  aCC*)
21584	    lt_prog_compiler_wl_CXX='-Wl,'
21585	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21586	    case $host_cpu in
21587	    hppa*64*|ia64*)
21588	      # +Z the default
21589	      ;;
21590	    *)
21591	      lt_prog_compiler_pic_CXX='+Z'
21592	      ;;
21593	    esac
21594	    ;;
21595	  *)
21596	    ;;
21597	esac
21598	;;
21599      interix*)
21600	# This is c89, which is MS Visual C++ (no shared libs)
21601	# Anyone wants to do a port?
21602	;;
21603      irix5* | irix6* | nonstopux*)
21604	case $cc_basename in
21605	  CC*)
21606	    lt_prog_compiler_wl_CXX='-Wl,'
21607	    lt_prog_compiler_static_CXX='-non_shared'
21608	    # CC pic flag -KPIC is the default.
21609	    ;;
21610	  *)
21611	    ;;
21612	esac
21613	;;
21614      linux* | k*bsd*-gnu | kopensolaris*-gnu)
21615	case $cc_basename in
21616	  KCC*)
21617	    # KAI C++ Compiler
21618	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21619	    lt_prog_compiler_pic_CXX='-fPIC'
21620	    ;;
21621	  ecpc* )
21622	    # old Intel C++ for x86_64 which still supported -KPIC.
21623	    lt_prog_compiler_wl_CXX='-Wl,'
21624	    lt_prog_compiler_pic_CXX='-KPIC'
21625	    lt_prog_compiler_static_CXX='-static'
21626	    ;;
21627	  icpc* )
21628	    # Intel C++, used to be incompatible with GCC.
21629	    # ICC 10 doesn't accept -KPIC any more.
21630	    lt_prog_compiler_wl_CXX='-Wl,'
21631	    lt_prog_compiler_pic_CXX='-fPIC'
21632	    lt_prog_compiler_static_CXX='-static'
21633	    ;;
21634	  pgCC* | pgcpp*)
21635	    # Portland Group C++ compiler
21636	    lt_prog_compiler_wl_CXX='-Wl,'
21637	    lt_prog_compiler_pic_CXX='-fpic'
21638	    lt_prog_compiler_static_CXX='-Bstatic'
21639	    ;;
21640	  cxx*)
21641	    # Compaq C++
21642	    # Make sure the PIC flag is empty.  It appears that all Alpha
21643	    # Linux and Compaq Tru64 Unix objects are PIC.
21644	    lt_prog_compiler_pic_CXX=
21645	    lt_prog_compiler_static_CXX='-non_shared'
21646	    ;;
21647	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21648	    # IBM XL 8.0, 9.0 on PPC and BlueGene
21649	    lt_prog_compiler_wl_CXX='-Wl,'
21650	    lt_prog_compiler_pic_CXX='-qpic'
21651	    lt_prog_compiler_static_CXX='-qstaticlink'
21652	    ;;
21653	  *)
21654	    case `$CC -V 2>&1 | sed 5q` in
21655	    *Sun\ C*)
21656	      # Sun C++ 5.9
21657	      lt_prog_compiler_pic_CXX='-KPIC'
21658	      lt_prog_compiler_static_CXX='-Bstatic'
21659	      lt_prog_compiler_wl_CXX='-Qoption ld '
21660	      ;;
21661	    esac
21662	    ;;
21663	esac
21664	;;
21665      lynxos*)
21666	;;
21667      m88k*)
21668	;;
21669      mvs*)
21670	case $cc_basename in
21671	  cxx*)
21672	    lt_prog_compiler_pic_CXX='-W c,exportall'
21673	    ;;
21674	  *)
21675	    ;;
21676	esac
21677	;;
21678      netbsd*)
21679	;;
21680      *qnx* | *nto*)
21681        # QNX uses GNU C++, but need to define -shared option too, otherwise
21682        # it will coredump.
21683        lt_prog_compiler_pic_CXX='-fPIC -shared'
21684        ;;
21685      osf3* | osf4* | osf5*)
21686	case $cc_basename in
21687	  KCC*)
21688	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21689	    ;;
21690	  RCC*)
21691	    # Rational C++ 2.4.1
21692	    lt_prog_compiler_pic_CXX='-pic'
21693	    ;;
21694	  cxx*)
21695	    # Digital/Compaq C++
21696	    lt_prog_compiler_wl_CXX='-Wl,'
21697	    # Make sure the PIC flag is empty.  It appears that all Alpha
21698	    # Linux and Compaq Tru64 Unix objects are PIC.
21699	    lt_prog_compiler_pic_CXX=
21700	    lt_prog_compiler_static_CXX='-non_shared'
21701	    ;;
21702	  *)
21703	    ;;
21704	esac
21705	;;
21706      psos*)
21707	;;
21708      solaris*)
21709	case $cc_basename in
21710	  CC*)
21711	    # Sun C++ 4.2, 5.x and Centerline C++
21712	    lt_prog_compiler_pic_CXX='-KPIC'
21713	    lt_prog_compiler_static_CXX='-Bstatic'
21714	    lt_prog_compiler_wl_CXX='-Qoption ld '
21715	    ;;
21716	  gcx*)
21717	    # Green Hills C++ Compiler
21718	    lt_prog_compiler_pic_CXX='-PIC'
21719	    ;;
21720	  *)
21721	    ;;
21722	esac
21723	;;
21724      sunos4*)
21725	case $cc_basename in
21726	  CC*)
21727	    # Sun C++ 4.x
21728	    lt_prog_compiler_pic_CXX='-pic'
21729	    lt_prog_compiler_static_CXX='-Bstatic'
21730	    ;;
21731	  lcc*)
21732	    # Lucid
21733	    lt_prog_compiler_pic_CXX='-pic'
21734	    ;;
21735	  *)
21736	    ;;
21737	esac
21738	;;
21739      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21740	case $cc_basename in
21741	  CC*)
21742	    lt_prog_compiler_wl_CXX='-Wl,'
21743	    lt_prog_compiler_pic_CXX='-KPIC'
21744	    lt_prog_compiler_static_CXX='-Bstatic'
21745	    ;;
21746	esac
21747	;;
21748      tandem*)
21749	case $cc_basename in
21750	  NCC*)
21751	    # NonStop-UX NCC 3.20
21752	    lt_prog_compiler_pic_CXX='-KPIC'
21753	    ;;
21754	  *)
21755	    ;;
21756	esac
21757	;;
21758      vxworks*)
21759	;;
21760      *)
21761	lt_prog_compiler_can_build_shared_CXX=no
21762	;;
21763    esac
21764  fi
21765
21766case $host_os in
21767  # For platforms which do not support PIC, -DPIC is meaningless:
21768  *djgpp*)
21769    lt_prog_compiler_pic_CXX=
21770    ;;
21771  *)
21772    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21773    ;;
21774esac
21775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21776$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21777
21778
21779
21780#
21781# Check to make sure the PIC flag actually works.
21782#
21783if test -n "$lt_prog_compiler_pic_CXX"; then
21784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21785$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21786if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21787  $as_echo_n "(cached) " >&6
21788else
21789  lt_cv_prog_compiler_pic_works_CXX=no
21790   ac_outfile=conftest.$ac_objext
21791   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21792   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21793   # Insert the option either (1) after the last *FLAGS variable, or
21794   # (2) before a word containing "conftest.", or (3) at the end.
21795   # Note that $ac_compile itself does not contain backslashes and begins
21796   # with a dollar sign (not a hyphen), so the echo should work correctly.
21797   # The option is referenced via a variable to avoid confusing sed.
21798   lt_compile=`echo "$ac_compile" | $SED \
21799   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21800   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21801   -e 's:$: $lt_compiler_flag:'`
21802   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21803   (eval "$lt_compile" 2>conftest.err)
21804   ac_status=$?
21805   cat conftest.err >&5
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   if (exit $ac_status) && test -s "$ac_outfile"; then
21808     # The compiler can only warn and ignore the option if not recognized
21809     # So say no if there are warnings other than the usual output.
21810     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21811     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21812     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21813       lt_cv_prog_compiler_pic_works_CXX=yes
21814     fi
21815   fi
21816   $RM conftest*
21817
21818fi
21819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21820$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21821
21822if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21823    case $lt_prog_compiler_pic_CXX in
21824     "" | " "*) ;;
21825     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21826     esac
21827else
21828    lt_prog_compiler_pic_CXX=
21829     lt_prog_compiler_can_build_shared_CXX=no
21830fi
21831
21832fi
21833
21834
21835
21836#
21837# Check to make sure the static flag actually works.
21838#
21839wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21841$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21842if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21843  $as_echo_n "(cached) " >&6
21844else
21845  lt_cv_prog_compiler_static_works_CXX=no
21846   save_LDFLAGS="$LDFLAGS"
21847   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21848   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21849   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21850     # The linker can only warn and ignore the option if not recognized
21851     # So say no if there are warnings
21852     if test -s conftest.err; then
21853       # Append any errors to the config.log.
21854       cat conftest.err 1>&5
21855       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21856       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21857       if diff conftest.exp conftest.er2 >/dev/null; then
21858         lt_cv_prog_compiler_static_works_CXX=yes
21859       fi
21860     else
21861       lt_cv_prog_compiler_static_works_CXX=yes
21862     fi
21863   fi
21864   $RM -r conftest*
21865   LDFLAGS="$save_LDFLAGS"
21866
21867fi
21868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21869$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21870
21871if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21872    :
21873else
21874    lt_prog_compiler_static_CXX=
21875fi
21876
21877
21878
21879
21880    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21881$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21882if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21883  $as_echo_n "(cached) " >&6
21884else
21885  lt_cv_prog_compiler_c_o_CXX=no
21886   $RM -r conftest 2>/dev/null
21887   mkdir conftest
21888   cd conftest
21889   mkdir out
21890   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21891
21892   lt_compiler_flag="-o out/conftest2.$ac_objext"
21893   # Insert the option either (1) after the last *FLAGS variable, or
21894   # (2) before a word containing "conftest.", or (3) at the end.
21895   # Note that $ac_compile itself does not contain backslashes and begins
21896   # with a dollar sign (not a hyphen), so the echo should work correctly.
21897   lt_compile=`echo "$ac_compile" | $SED \
21898   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21899   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21900   -e 's:$: $lt_compiler_flag:'`
21901   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21902   (eval "$lt_compile" 2>out/conftest.err)
21903   ac_status=$?
21904   cat out/conftest.err >&5
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21907   then
21908     # The compiler can only warn and ignore the option if not recognized
21909     # So say no if there are warnings
21910     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21911     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21912     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21913       lt_cv_prog_compiler_c_o_CXX=yes
21914     fi
21915   fi
21916   chmod u+w . 2>&5
21917   $RM conftest*
21918   # SGI C++ compiler will create directory out/ii_files/ for
21919   # template instantiation
21920   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21921   $RM out/* && rmdir out
21922   cd ..
21923   $RM -r conftest
21924   $RM conftest*
21925
21926fi
21927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21928$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21929
21930
21931
21932    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21933$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21934if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21935  $as_echo_n "(cached) " >&6
21936else
21937  lt_cv_prog_compiler_c_o_CXX=no
21938   $RM -r conftest 2>/dev/null
21939   mkdir conftest
21940   cd conftest
21941   mkdir out
21942   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21943
21944   lt_compiler_flag="-o out/conftest2.$ac_objext"
21945   # Insert the option either (1) after the last *FLAGS variable, or
21946   # (2) before a word containing "conftest.", or (3) at the end.
21947   # Note that $ac_compile itself does not contain backslashes and begins
21948   # with a dollar sign (not a hyphen), so the echo should work correctly.
21949   lt_compile=`echo "$ac_compile" | $SED \
21950   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21951   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21952   -e 's:$: $lt_compiler_flag:'`
21953   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21954   (eval "$lt_compile" 2>out/conftest.err)
21955   ac_status=$?
21956   cat out/conftest.err >&5
21957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21959   then
21960     # The compiler can only warn and ignore the option if not recognized
21961     # So say no if there are warnings
21962     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21963     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21964     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21965       lt_cv_prog_compiler_c_o_CXX=yes
21966     fi
21967   fi
21968   chmod u+w . 2>&5
21969   $RM conftest*
21970   # SGI C++ compiler will create directory out/ii_files/ for
21971   # template instantiation
21972   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21973   $RM out/* && rmdir out
21974   cd ..
21975   $RM -r conftest
21976   $RM conftest*
21977
21978fi
21979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21980$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21981
21982
21983
21984
21985hard_links="nottested"
21986if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21987  # do not overwrite the value of need_locks provided by the user
21988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21989$as_echo_n "checking if we can lock with hard links... " >&6; }
21990  hard_links=yes
21991  $RM conftest*
21992  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21993  touch conftest.a
21994  ln conftest.a conftest.b 2>&5 || hard_links=no
21995  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21997$as_echo "$hard_links" >&6; }
21998  if test "$hard_links" = no; then
21999    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22000$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22001    need_locks=warn
22002  fi
22003else
22004  need_locks=no
22005fi
22006
22007
22008
22009    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22010$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22011
22012  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22013  case $host_os in
22014  aix[4-9]*)
22015    # If we're using GNU nm, then we don't want the "-C" option.
22016    # -C means demangle to AIX nm, but means don't demangle with GNU nm
22017    # Also, AIX nm treats weak defined symbols like other global defined
22018    # symbols, whereas GNU nm marks them as "W".
22019    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22020      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'
22021    else
22022      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'
22023    fi
22024    ;;
22025  pw32*)
22026    export_symbols_cmds_CXX="$ltdll_cmds"
22027  ;;
22028  cygwin* | mingw* | cegcc*)
22029    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'
22030  ;;
22031  *)
22032    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22033  ;;
22034  esac
22035  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22036
22037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22038$as_echo "$ld_shlibs_CXX" >&6; }
22039test "$ld_shlibs_CXX" = no && can_build_shared=no
22040
22041with_gnu_ld_CXX=$with_gnu_ld
22042
22043
22044
22045
22046
22047
22048#
22049# Do we need to explicitly link libc?
22050#
22051case "x$archive_cmds_need_lc_CXX" in
22052x|xyes)
22053  # Assume -lc should be added
22054  archive_cmds_need_lc_CXX=yes
22055
22056  if test "$enable_shared" = yes && test "$GCC" = yes; then
22057    case $archive_cmds_CXX in
22058    *'~'*)
22059      # FIXME: we may have to deal with multi-command sequences.
22060      ;;
22061    '$CC '*)
22062      # Test whether the compiler implicitly links with -lc since on some
22063      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22064      # to ld, don't add -lc before -lgcc.
22065      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22066$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22067if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22068  $as_echo_n "(cached) " >&6
22069else
22070  $RM conftest*
22071	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22072
22073	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22074  (eval $ac_compile) 2>&5
22075  ac_status=$?
22076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22077  test $ac_status = 0; } 2>conftest.err; then
22078	  soname=conftest
22079	  lib=conftest
22080	  libobjs=conftest.$ac_objext
22081	  deplibs=
22082	  wl=$lt_prog_compiler_wl_CXX
22083	  pic_flag=$lt_prog_compiler_pic_CXX
22084	  compiler_flags=-v
22085	  linker_flags=-v
22086	  verstring=
22087	  output_objdir=.
22088	  libname=conftest
22089	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22090	  allow_undefined_flag_CXX=
22091	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22092  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22093  ac_status=$?
22094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22095  test $ac_status = 0; }
22096	  then
22097	    lt_cv_archive_cmds_need_lc_CXX=no
22098	  else
22099	    lt_cv_archive_cmds_need_lc_CXX=yes
22100	  fi
22101	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22102	else
22103	  cat conftest.err 1>&5
22104	fi
22105	$RM conftest*
22106
22107fi
22108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22109$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22110      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22111      ;;
22112    esac
22113  fi
22114  ;;
22115esac
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22181$as_echo_n "checking dynamic linker characteristics... " >&6; }
22182
22183library_names_spec=
22184libname_spec='lib$name'
22185soname_spec=
22186shrext_cmds=".so"
22187postinstall_cmds=
22188postuninstall_cmds=
22189finish_cmds=
22190finish_eval=
22191shlibpath_var=
22192shlibpath_overrides_runpath=unknown
22193version_type=none
22194dynamic_linker="$host_os ld.so"
22195sys_lib_dlsearch_path_spec="/lib /usr/lib"
22196need_lib_prefix=unknown
22197hardcode_into_libs=no
22198
22199# when you set need_version to no, make sure it does not cause -set_version
22200# flags to be left without arguments
22201need_version=unknown
22202
22203case $host_os in
22204aix3*)
22205  version_type=linux
22206  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22207  shlibpath_var=LIBPATH
22208
22209  # AIX 3 has no versioning support, so we append a major version to the name.
22210  soname_spec='${libname}${release}${shared_ext}$major'
22211  ;;
22212
22213aix[4-9]*)
22214  version_type=linux
22215  need_lib_prefix=no
22216  need_version=no
22217  hardcode_into_libs=yes
22218  if test "$host_cpu" = ia64; then
22219    # AIX 5 supports IA64
22220    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22221    shlibpath_var=LD_LIBRARY_PATH
22222  else
22223    # With GCC up to 2.95.x, collect2 would create an import file
22224    # for dependence libraries.  The import file would start with
22225    # the line `#! .'.  This would cause the generated library to
22226    # depend on `.', always an invalid library.  This was fixed in
22227    # development snapshots of GCC prior to 3.0.
22228    case $host_os in
22229      aix4 | aix4.[01] | aix4.[01].*)
22230      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22231	   echo ' yes '
22232	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22233	:
22234      else
22235	can_build_shared=no
22236      fi
22237      ;;
22238    esac
22239    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22240    # soname into executable. Probably we can add versioning support to
22241    # collect2, so additional links can be useful in future.
22242    if test "$aix_use_runtimelinking" = yes; then
22243      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22244      # instead of lib<name>.a to let people know that these are not
22245      # typical AIX shared libraries.
22246      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22247    else
22248      # We preserve .a as extension for shared libraries through AIX4.2
22249      # and later when we are not doing run time linking.
22250      library_names_spec='${libname}${release}.a $libname.a'
22251      soname_spec='${libname}${release}${shared_ext}$major'
22252    fi
22253    shlibpath_var=LIBPATH
22254  fi
22255  ;;
22256
22257amigaos*)
22258  case $host_cpu in
22259  powerpc)
22260    # Since July 2007 AmigaOS4 officially supports .so libraries.
22261    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22262    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22263    ;;
22264  m68k)
22265    library_names_spec='$libname.ixlibrary $libname.a'
22266    # Create ${libname}_ixlibrary.a entries in /sys/libs.
22267    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'
22268    ;;
22269  esac
22270  ;;
22271
22272beos*)
22273  library_names_spec='${libname}${shared_ext}'
22274  dynamic_linker="$host_os ld.so"
22275  shlibpath_var=LIBRARY_PATH
22276  ;;
22277
22278bsdi[45]*)
22279  version_type=linux
22280  need_version=no
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22284  shlibpath_var=LD_LIBRARY_PATH
22285  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22286  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22287  # the default ld.so.conf also contains /usr/contrib/lib and
22288  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22289  # libtool to hard-code these into programs
22290  ;;
22291
22292cygwin* | mingw* | pw32* | cegcc*)
22293  version_type=windows
22294  shrext_cmds=".dll"
22295  need_version=no
22296  need_lib_prefix=no
22297
22298  case $GCC,$host_os in
22299  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22300    library_names_spec='$libname.dll.a'
22301    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22302    postinstall_cmds='base_file=`basename \${file}`~
22303      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22304      dldir=$destdir/`dirname \$dlpath`~
22305      test -d \$dldir || mkdir -p \$dldir~
22306      $install_prog $dir/$dlname \$dldir/$dlname~
22307      chmod a+x \$dldir/$dlname~
22308      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22309        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22310      fi'
22311    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22312      dlpath=$dir/\$dldll~
22313       $RM \$dlpath'
22314    shlibpath_overrides_runpath=yes
22315
22316    case $host_os in
22317    cygwin*)
22318      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22319      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22320
22321      ;;
22322    mingw* | cegcc*)
22323      # MinGW DLLs use traditional 'lib' prefix
22324      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22325      ;;
22326    pw32*)
22327      # pw32 DLLs use 'pw' prefix rather than 'lib'
22328      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22329      ;;
22330    esac
22331    ;;
22332
22333  *)
22334    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22335    ;;
22336  esac
22337  dynamic_linker='Win32 ld.exe'
22338  # FIXME: first we should search . and the directory the executable is in
22339  shlibpath_var=PATH
22340  ;;
22341
22342darwin* | rhapsody*)
22343  dynamic_linker="$host_os dyld"
22344  version_type=darwin
22345  need_lib_prefix=no
22346  need_version=no
22347  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22348  soname_spec='${libname}${release}${major}$shared_ext'
22349  shlibpath_overrides_runpath=yes
22350  shlibpath_var=DYLD_LIBRARY_PATH
22351  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22352
22353  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22354  ;;
22355
22356dgux*)
22357  version_type=linux
22358  need_lib_prefix=no
22359  need_version=no
22360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22361  soname_spec='${libname}${release}${shared_ext}$major'
22362  shlibpath_var=LD_LIBRARY_PATH
22363  ;;
22364
22365freebsd* | dragonfly*)
22366  # DragonFly does not have aout.  When/if they implement a new
22367  # versioning mechanism, adjust this.
22368  if test -x /usr/bin/objformat; then
22369    objformat=`/usr/bin/objformat`
22370  else
22371    case $host_os in
22372    freebsd[23].*) objformat=aout ;;
22373    *) objformat=elf ;;
22374    esac
22375  fi
22376  version_type=freebsd-$objformat
22377  case $version_type in
22378    freebsd-elf*)
22379      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22380      need_version=no
22381      need_lib_prefix=no
22382      ;;
22383    freebsd-*)
22384      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22385      need_version=yes
22386      ;;
22387  esac
22388  shlibpath_var=LD_LIBRARY_PATH
22389  case $host_os in
22390  freebsd2.*)
22391    shlibpath_overrides_runpath=yes
22392    ;;
22393  freebsd3.[01]* | freebsdelf3.[01]*)
22394    shlibpath_overrides_runpath=yes
22395    hardcode_into_libs=yes
22396    ;;
22397  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22398  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22399    shlibpath_overrides_runpath=no
22400    hardcode_into_libs=yes
22401    ;;
22402  *) # from 4.6 on, and DragonFly
22403    shlibpath_overrides_runpath=yes
22404    hardcode_into_libs=yes
22405    ;;
22406  esac
22407  ;;
22408
22409haiku*)
22410  version_type=linux
22411  need_lib_prefix=no
22412  need_version=no
22413  dynamic_linker="$host_os runtime_loader"
22414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22415  soname_spec='${libname}${release}${shared_ext}$major'
22416  shlibpath_var=LIBRARY_PATH
22417  shlibpath_overrides_runpath=yes
22418  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22419  hardcode_into_libs=yes
22420  ;;
22421
22422hpux9* | hpux10* | hpux11*)
22423  # Give a soname corresponding to the major version so that dld.sl refuses to
22424  # link against other versions.
22425  version_type=sunos
22426  need_lib_prefix=no
22427  need_version=no
22428  case $host_cpu in
22429  ia64*)
22430    shrext_cmds='.so'
22431    hardcode_into_libs=yes
22432    dynamic_linker="$host_os dld.so"
22433    shlibpath_var=LD_LIBRARY_PATH
22434    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22435    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22436    soname_spec='${libname}${release}${shared_ext}$major'
22437    if test "X$HPUX_IA64_MODE" = X32; then
22438      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22439    else
22440      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22441    fi
22442    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22443    ;;
22444  hppa*64*)
22445    shrext_cmds='.sl'
22446    hardcode_into_libs=yes
22447    dynamic_linker="$host_os dld.sl"
22448    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22449    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22450    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22451    soname_spec='${libname}${release}${shared_ext}$major'
22452    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22453    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22454    ;;
22455  *)
22456    shrext_cmds='.sl'
22457    dynamic_linker="$host_os dld.sl"
22458    shlibpath_var=SHLIB_PATH
22459    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22460    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22461    soname_spec='${libname}${release}${shared_ext}$major'
22462    ;;
22463  esac
22464  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22465  postinstall_cmds='chmod 555 $lib'
22466  # or fails outright, so override atomically:
22467  install_override_mode=555
22468  ;;
22469
22470interix[3-9]*)
22471  version_type=linux
22472  need_lib_prefix=no
22473  need_version=no
22474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22475  soname_spec='${libname}${release}${shared_ext}$major'
22476  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22477  shlibpath_var=LD_LIBRARY_PATH
22478  shlibpath_overrides_runpath=no
22479  hardcode_into_libs=yes
22480  ;;
22481
22482irix5* | irix6* | nonstopux*)
22483  case $host_os in
22484    nonstopux*) version_type=nonstopux ;;
22485    *)
22486	if test "$lt_cv_prog_gnu_ld" = yes; then
22487		version_type=linux
22488	else
22489		version_type=irix
22490	fi ;;
22491  esac
22492  need_lib_prefix=no
22493  need_version=no
22494  soname_spec='${libname}${release}${shared_ext}$major'
22495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22496  case $host_os in
22497  irix5* | nonstopux*)
22498    libsuff= shlibsuff=
22499    ;;
22500  *)
22501    case $LD in # libtool.m4 will add one of these switches to LD
22502    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22503      libsuff= shlibsuff= libmagic=32-bit;;
22504    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22505      libsuff=32 shlibsuff=N32 libmagic=N32;;
22506    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22507      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22508    *) libsuff= shlibsuff= libmagic=never-match;;
22509    esac
22510    ;;
22511  esac
22512  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22513  shlibpath_overrides_runpath=no
22514  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22515  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22516  hardcode_into_libs=yes
22517  ;;
22518
22519# No shared lib support for Linux oldld, aout, or coff.
22520linux*oldld* | linux*aout* | linux*coff*)
22521  dynamic_linker=no
22522  ;;
22523
22524# This must be Linux ELF.
22525
22526# uclinux* changes (here and below) have been submitted to the libtool
22527# project, but have not yet been accepted: they are GCC-local changes
22528# for the time being.  (See
22529# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22530linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22531  version_type=linux
22532  need_lib_prefix=no
22533  need_version=no
22534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22535  soname_spec='${libname}${release}${shared_ext}$major'
22536  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22537  shlibpath_var=LD_LIBRARY_PATH
22538  shlibpath_overrides_runpath=no
22539
22540  # Some binutils ld are patched to set DT_RUNPATH
22541  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22542  $as_echo_n "(cached) " >&6
22543else
22544  lt_cv_shlibpath_overrides_runpath=no
22545    save_LDFLAGS=$LDFLAGS
22546    save_libdir=$libdir
22547    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22548	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22549    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22550/* end confdefs.h.  */
22551
22552int
22553main ()
22554{
22555
22556  ;
22557  return 0;
22558}
22559_ACEOF
22560if ac_fn_cxx_try_link "$LINENO"; then :
22561  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22562  lt_cv_shlibpath_overrides_runpath=yes
22563fi
22564fi
22565rm -f core conftest.err conftest.$ac_objext \
22566    conftest$ac_exeext conftest.$ac_ext
22567    LDFLAGS=$save_LDFLAGS
22568    libdir=$save_libdir
22569
22570fi
22571
22572  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22573
22574  # This implies no fast_install, which is unacceptable.
22575  # Some rework will be needed to allow for fast_install
22576  # before this can be enabled.
22577  hardcode_into_libs=yes
22578
22579  # Append ld.so.conf contents to the search path
22580  if test -f /etc/ld.so.conf; then
22581    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' ' '`
22582    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22583  fi
22584
22585  # We used to test for /lib/ld.so.1 and disable shared libraries on
22586  # powerpc, because MkLinux only supported shared libraries with the
22587  # GNU dynamic linker.  Since this was broken with cross compilers,
22588  # most powerpc-linux boxes support dynamic linking these days and
22589  # people can always --disable-shared, the test was removed, and we
22590  # assume the GNU/Linux dynamic linker is in use.
22591  dynamic_linker='GNU/Linux ld.so'
22592  ;;
22593
22594netbsd*)
22595  version_type=sunos
22596  need_lib_prefix=no
22597  need_version=no
22598  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22599    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22600    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22601    dynamic_linker='NetBSD (a.out) ld.so'
22602  else
22603    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22604    soname_spec='${libname}${release}${shared_ext}$major'
22605    dynamic_linker='NetBSD ld.elf_so'
22606  fi
22607  shlibpath_var=LD_LIBRARY_PATH
22608  shlibpath_overrides_runpath=yes
22609  hardcode_into_libs=yes
22610  ;;
22611
22612newsos6)
22613  version_type=linux
22614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22615  shlibpath_var=LD_LIBRARY_PATH
22616  shlibpath_overrides_runpath=yes
22617  ;;
22618
22619*nto* | *qnx*)
22620  version_type=qnx
22621  need_lib_prefix=no
22622  need_version=no
22623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22624  soname_spec='${libname}${release}${shared_ext}$major'
22625  shlibpath_var=LD_LIBRARY_PATH
22626  shlibpath_overrides_runpath=no
22627  hardcode_into_libs=yes
22628  dynamic_linker='ldqnx.so'
22629  ;;
22630
22631openbsd*)
22632  version_type=sunos
22633  sys_lib_dlsearch_path_spec="/usr/lib"
22634  need_lib_prefix=no
22635  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22636  case $host_os in
22637    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
22638    *)				need_version=no  ;;
22639  esac
22640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22641  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22642  shlibpath_var=LD_LIBRARY_PATH
22643  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22644    case $host_os in
22645      openbsd2.[89] | openbsd2.[89].*)
22646	shlibpath_overrides_runpath=no
22647	;;
22648      *)
22649	shlibpath_overrides_runpath=yes
22650	;;
22651      esac
22652  else
22653    shlibpath_overrides_runpath=yes
22654  fi
22655  ;;
22656
22657os2*)
22658  libname_spec='$name'
22659  shrext_cmds=".dll"
22660  need_lib_prefix=no
22661  library_names_spec='$libname${shared_ext} $libname.a'
22662  dynamic_linker='OS/2 ld.exe'
22663  shlibpath_var=LIBPATH
22664  ;;
22665
22666osf3* | osf4* | osf5*)
22667  version_type=osf
22668  need_lib_prefix=no
22669  need_version=no
22670  soname_spec='${libname}${release}${shared_ext}$major'
22671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22672  shlibpath_var=LD_LIBRARY_PATH
22673  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22674  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22675  ;;
22676
22677rdos*)
22678  dynamic_linker=no
22679  ;;
22680
22681solaris*)
22682  version_type=linux
22683  need_lib_prefix=no
22684  need_version=no
22685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686  soname_spec='${libname}${release}${shared_ext}$major'
22687  shlibpath_var=LD_LIBRARY_PATH
22688  shlibpath_overrides_runpath=yes
22689  hardcode_into_libs=yes
22690  # ldd complains unless libraries are executable
22691  postinstall_cmds='chmod +x $lib'
22692  ;;
22693
22694sunos4*)
22695  version_type=sunos
22696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22697  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22698  shlibpath_var=LD_LIBRARY_PATH
22699  shlibpath_overrides_runpath=yes
22700  if test "$with_gnu_ld" = yes; then
22701    need_lib_prefix=no
22702  fi
22703  need_version=yes
22704  ;;
22705
22706sysv4 | sysv4.3*)
22707  version_type=linux
22708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22709  soname_spec='${libname}${release}${shared_ext}$major'
22710  shlibpath_var=LD_LIBRARY_PATH
22711  case $host_vendor in
22712    sni)
22713      shlibpath_overrides_runpath=no
22714      need_lib_prefix=no
22715      runpath_var=LD_RUN_PATH
22716      ;;
22717    siemens)
22718      need_lib_prefix=no
22719      ;;
22720    motorola)
22721      need_lib_prefix=no
22722      need_version=no
22723      shlibpath_overrides_runpath=no
22724      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22725      ;;
22726  esac
22727  ;;
22728
22729sysv4*MP*)
22730  if test -d /usr/nec ;then
22731    version_type=linux
22732    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22733    soname_spec='$libname${shared_ext}.$major'
22734    shlibpath_var=LD_LIBRARY_PATH
22735  fi
22736  ;;
22737
22738sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22739  version_type=freebsd-elf
22740  need_lib_prefix=no
22741  need_version=no
22742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22743  soname_spec='${libname}${release}${shared_ext}$major'
22744  shlibpath_var=LD_LIBRARY_PATH
22745  shlibpath_overrides_runpath=yes
22746  hardcode_into_libs=yes
22747  if test "$with_gnu_ld" = yes; then
22748    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22749  else
22750    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22751    case $host_os in
22752      sco3.2v5*)
22753        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22754	;;
22755    esac
22756  fi
22757  sys_lib_dlsearch_path_spec='/usr/lib'
22758  ;;
22759
22760tpf*)
22761  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
22762  version_type=linux
22763  need_lib_prefix=no
22764  need_version=no
22765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22766  shlibpath_var=LD_LIBRARY_PATH
22767  shlibpath_overrides_runpath=no
22768  hardcode_into_libs=yes
22769  ;;
22770
22771uts4*)
22772  version_type=linux
22773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22774  soname_spec='${libname}${release}${shared_ext}$major'
22775  shlibpath_var=LD_LIBRARY_PATH
22776  ;;
22777
22778*)
22779  dynamic_linker=no
22780  ;;
22781esac
22782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22783$as_echo "$dynamic_linker" >&6; }
22784test "$dynamic_linker" = no && can_build_shared=no
22785
22786variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22787if test "$GCC" = yes; then
22788  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22789fi
22790
22791if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22792  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22793fi
22794if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22795  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22796fi
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22836$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22837hardcode_action_CXX=
22838if test -n "$hardcode_libdir_flag_spec_CXX" ||
22839   test -n "$runpath_var_CXX" ||
22840   test "X$hardcode_automatic_CXX" = "Xyes" ; then
22841
22842  # We can hardcode non-existent directories.
22843  if test "$hardcode_direct_CXX" != no &&
22844     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22845     # have to relink, otherwise we might link with an installed library
22846     # when we should be linking with a yet-to-be-installed one
22847     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22848     test "$hardcode_minus_L_CXX" != no; then
22849    # Linking always hardcodes the temporary library directory.
22850    hardcode_action_CXX=relink
22851  else
22852    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22853    hardcode_action_CXX=immediate
22854  fi
22855else
22856  # We cannot hardcode anything, or else we can only hardcode existing
22857  # directories.
22858  hardcode_action_CXX=unsupported
22859fi
22860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22861$as_echo "$hardcode_action_CXX" >&6; }
22862
22863if test "$hardcode_action_CXX" = relink ||
22864   test "$inherit_rpath_CXX" = yes; then
22865  # Fast installation is not supported
22866  enable_fast_install=no
22867elif test "$shlibpath_overrides_runpath" = yes ||
22868     test "$enable_shared" = no; then
22869  # Fast installation is not necessary
22870  enable_fast_install=needless
22871fi
22872
22873
22874
22875
22876
22877
22878
22879  fi # test -n "$compiler"
22880
22881  CC=$lt_save_CC
22882  LDCXX=$LD
22883  LD=$lt_save_LD
22884  GCC=$lt_save_GCC
22885  with_gnu_ld=$lt_save_with_gnu_ld
22886  lt_cv_path_LDCXX=$lt_cv_path_LD
22887  lt_cv_path_LD=$lt_save_path_LD
22888  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22889  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22890fi # test "$_lt_caught_CXX_error" != yes
22891
22892ac_ext=cpp
22893ac_cpp='$CXXCPP $CPPFLAGS'
22894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913# Only expand once:
22914
22915
22916
22917
22918
22919# Identify the assembler which will work hand-in-glove with the newly
22920# built GCC, so that we can examine its features.  This is the assembler
22921# which will be driven by the driver program.
22922#
22923# If build != host, and we aren't building gas in-tree, we identify a
22924# build->target assembler and hope that it will have the same features
22925# as the host->target assembler we'll be using.
22926gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22927
22928if ${gcc_cv_as+:} false; then :
22929
22930else
22931
22932if test -x "$DEFAULT_ASSEMBLER"; then
22933	gcc_cv_as="$DEFAULT_ASSEMBLER"
22934elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22935     && test -f ../gas/Makefile \
22936     && test x$build = x$host; then
22937	gcc_cv_as=../gas/as-new$build_exeext
22938elif test -x as$build_exeext; then
22939	# Build using assembler in the current directory.
22940	gcc_cv_as=./as$build_exeext
22941elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22942        gcc_cv_as="$AS_FOR_TARGET"
22943else
22944        # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22945set dummy $AS_FOR_TARGET; ac_word=$2
22946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22947$as_echo_n "checking for $ac_word... " >&6; }
22948if ${ac_cv_path_gcc_cv_as+:} false; then :
22949  $as_echo_n "(cached) " >&6
22950else
22951  case $gcc_cv_as in
22952  [\\/]* | ?:[\\/]*)
22953  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22954  ;;
22955  *)
22956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22957for as_dir in $PATH
22958do
22959  IFS=$as_save_IFS
22960  test -z "$as_dir" && as_dir=.
22961    for ac_exec_ext in '' $ac_executable_extensions; do
22962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22963    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22965    break 2
22966  fi
22967done
22968  done
22969IFS=$as_save_IFS
22970
22971  ;;
22972esac
22973fi
22974gcc_cv_as=$ac_cv_path_gcc_cv_as
22975if test -n "$gcc_cv_as"; then
22976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22977$as_echo "$gcc_cv_as" >&6; }
22978else
22979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22980$as_echo "no" >&6; }
22981fi
22982
22983
22984fi
22985fi
22986
22987ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22988
22989case "$ORIGINAL_AS_FOR_TARGET" in
22990  ./as | ./as$build_exeext) ;;
22991  *) ac_config_files="$ac_config_files as:exec-tool.in"
22992 ;;
22993esac
22994
22995default_ld=
22996# Check whether --enable-ld was given.
22997if test "${enable_ld+set}" = set; then :
22998  enableval=$enable_ld; case "${enableval}" in
22999 no)
23000   default_ld=ld.gold
23001   ;;
23002 esac
23003fi
23004
23005
23006install_gold_as_default=no
23007# Check whether --enable-gold was given.
23008if test "${enable_gold+set}" = set; then :
23009  enableval=$enable_gold; case "${enableval}" in
23010 default)
23011   install_gold_as_default=yes
23012   ;;
23013 yes)
23014   if test x${default_ld} != x; then
23015     install_gold_as_default=yes
23016   fi
23017   ;;
23018 no)
23019   ;;
23020 *)
23021   as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23022   ;;
23023 esac
23024fi
23025
23026
23027# Identify the linker which will work hand-in-glove with the newly
23028# built GCC, so that we can examine its features.  This is the linker
23029# which will be driven by the driver program.
23030#
23031# If build != host, and we aren't building gas in-tree, we identify a
23032# build->target linker and hope that it will have the same features
23033# as the host->target linker we'll be using.
23034gcc_cv_gld_major_version=
23035gcc_cv_gld_minor_version=
23036gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23037gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23038gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23039
23040if ${gcc_cv_ld+:} false; then :
23041
23042else
23043
23044if test -x "$DEFAULT_LINKER"; then
23045	gcc_cv_ld="$DEFAULT_LINKER"
23046elif test $install_gold_as_default = yes \
23047     && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23048     && test -f ../gold/Makefile \
23049     && test x$build = x$host; then
23050	gcc_cv_ld=../gold/ld-new$build_exeext
23051elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23052     && test -f ../ld/Makefile \
23053     && test x$build = x$host; then
23054	gcc_cv_ld=../ld/ld-new$build_exeext
23055elif test -x collect-ld$build_exeext; then
23056	# Build using linker in the current directory.
23057	gcc_cv_ld=./collect-ld$build_exeext
23058elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23059        gcc_cv_ld="$LD_FOR_TARGET"
23060else
23061        # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23062set dummy $LD_FOR_TARGET; ac_word=$2
23063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23064$as_echo_n "checking for $ac_word... " >&6; }
23065if ${ac_cv_path_gcc_cv_ld+:} false; then :
23066  $as_echo_n "(cached) " >&6
23067else
23068  case $gcc_cv_ld in
23069  [\\/]* | ?:[\\/]*)
23070  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23071  ;;
23072  *)
23073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23074for as_dir in $PATH
23075do
23076  IFS=$as_save_IFS
23077  test -z "$as_dir" && as_dir=.
23078    for ac_exec_ext in '' $ac_executable_extensions; do
23079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23080    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23082    break 2
23083  fi
23084done
23085  done
23086IFS=$as_save_IFS
23087
23088  ;;
23089esac
23090fi
23091gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23092if test -n "$gcc_cv_ld"; then
23093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23094$as_echo "$gcc_cv_ld" >&6; }
23095else
23096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23097$as_echo "no" >&6; }
23098fi
23099
23100
23101fi
23102fi
23103
23104ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23105PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23106# if the PLUGIN_LD is set ld-new, just have it as ld
23107# as that is the installed named.
23108if test x$PLUGIN_LD_SUFFIX = xld-new \
23109   || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23110  PLUGIN_LD_SUFFIX=ld
23111fi
23112
23113# Check whether --with-plugin-ld was given.
23114if test "${with_plugin_ld+set}" = set; then :
23115  withval=$with_plugin_ld; if test x"$withval" != x; then
23116   ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23117   PLUGIN_LD_SUFFIX="$withval"
23118 fi
23119fi
23120
23121
23122
23123cat >>confdefs.h <<_ACEOF
23124#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23125_ACEOF
23126
23127
23128# Check to see if we are using gold instead of ld
23129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23130$as_echo_n "checking whether we are using gold... " >&6; }
23131ld_is_gold=no
23132if test x$gcc_cv_ld != x; then
23133  if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23134     | grep "GNU gold" > /dev/null; then
23135    ld_is_gold=yes
23136  fi
23137fi
23138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23139$as_echo "$ld_is_gold" >&6; }
23140
23141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23142$as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23143# Check to see if default ld is not gold, but gold is
23144# available and has support for split stack.  If gcc was configured
23145# with gold then no checking is done.
23146#
23147if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23148
23149# For platforms other than powerpc64*, enable as appropriate.
23150
23151  gold_non_default=no
23152  ld_gold=`which ${gcc_cv_ld}.gold`
23153# Make sure this gold has minimal split stack support
23154  if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23155    ld_vers=`$ld_gold --version | sed 1q`
23156    gold_vers=`echo $ld_vers | sed -n \
23157          -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23158    case $target in
23159# check that the gold version contains the complete split stack support
23160# on powerpc64 big and little endian
23161      powerpc64*-*-*)
23162        case "$gold_vers" in
23163          2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23164          ;;
23165          *) gold_non_default=no
23166          ;;
23167        esac
23168        ;;
23169    esac
23170  fi
23171  if test $gold_non_default = yes; then
23172
23173$as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23174
23175  fi
23176fi
23177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23178$as_echo "$gold_non_default" >&6; }
23179
23180ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23181
23182case "$ORIGINAL_LD_FOR_TARGET" in
23183  ./collect-ld | ./collect-ld$build_exeext) ;;
23184  *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23185 ;;
23186esac
23187
23188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23189$as_echo_n "checking what linker to use... " >&6; }
23190if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23191   || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23192	# Single tree build which includes ld.  We want to prefer it
23193	# over whatever linker top-level may have detected, since
23194	# we'll use what we're building after installation anyway.
23195	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23196$as_echo "newly built ld" >&6; }
23197	in_tree_ld=yes
23198	in_tree_ld_is_elf=no
23199	if (grep 'EMUL = .*elf' ../ld/Makefile \
23200	    || grep 'EMUL = .*linux' ../ld/Makefile \
23201	    || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23202	  in_tree_ld_is_elf=yes
23203	elif test "$ld_is_gold" = yes; then
23204	  in_tree_ld_is_elf=yes
23205	fi
23206	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
23207	do
23208		gcc_cv_gld_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23209		if test x$gcc_cv_gld_version != x; then
23210			break
23211		fi
23212	done
23213	case $gcc_cv_gld_version in
23214	  VERSION=[0-9]*) ;;
23215	  *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23216	esac
23217	gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23218	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23219	ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23220	ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23221else
23222	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23223$as_echo "$gcc_cv_ld" >&6; }
23224	in_tree_ld=no
23225	gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23226	ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23227	ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23228fi
23229
23230
23231
23232
23233# Figure out what nm we will be using.
23234gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23235if ${gcc_cv_nm+:} false; then :
23236
23237else
23238
23239if test -f $gcc_cv_binutils_srcdir/configure.ac \
23240     && test -f ../binutils/Makefile \
23241     && test x$build = x$host; then
23242	gcc_cv_nm=../binutils/nm-new$build_exeext
23243elif test -x nm$build_exeext; then
23244	gcc_cv_nm=./nm$build_exeext
23245elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23246        gcc_cv_nm="$NM_FOR_TARGET"
23247else
23248        # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23249set dummy $NM_FOR_TARGET; ac_word=$2
23250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23251$as_echo_n "checking for $ac_word... " >&6; }
23252if ${ac_cv_path_gcc_cv_nm+:} false; then :
23253  $as_echo_n "(cached) " >&6
23254else
23255  case $gcc_cv_nm in
23256  [\\/]* | ?:[\\/]*)
23257  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23258  ;;
23259  *)
23260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23261for as_dir in $PATH
23262do
23263  IFS=$as_save_IFS
23264  test -z "$as_dir" && as_dir=.
23265    for ac_exec_ext in '' $ac_executable_extensions; do
23266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23267    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23269    break 2
23270  fi
23271done
23272  done
23273IFS=$as_save_IFS
23274
23275  ;;
23276esac
23277fi
23278gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23279if test -n "$gcc_cv_nm"; then
23280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23281$as_echo "$gcc_cv_nm" >&6; }
23282else
23283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23284$as_echo "no" >&6; }
23285fi
23286
23287
23288fi
23289fi
23290
23291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23292$as_echo_n "checking what nm to use... " >&6; }
23293if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23294	# Single tree build which includes binutils.
23295	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23296$as_echo "newly built nm" >&6; }
23297	in_tree_nm=yes
23298else
23299	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23300$as_echo "$gcc_cv_nm" >&6; }
23301	in_tree_nm=no
23302fi
23303
23304ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23305
23306case "$ORIGINAL_NM_FOR_TARGET" in
23307  ./nm | ./nm$build_exeext) ;;
23308  *) ac_config_files="$ac_config_files nm:exec-tool.in"
23309 ;;
23310esac
23311
23312
23313# Figure out what objdump we will be using.
23314if ${gcc_cv_objdump+:} false; then :
23315
23316else
23317
23318if test -f $gcc_cv_binutils_srcdir/configure.ac \
23319     && test -f ../binutils/Makefile \
23320     && test x$build = x$host; then
23321	# Single tree build which includes binutils.
23322	gcc_cv_objdump=../binutils/objdump$build_exeext
23323elif test -x objdump$build_exeext; then
23324	gcc_cv_objdump=./objdump$build_exeext
23325elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23326        gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23327else
23328        # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23329set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23331$as_echo_n "checking for $ac_word... " >&6; }
23332if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23333  $as_echo_n "(cached) " >&6
23334else
23335  case $gcc_cv_objdump in
23336  [\\/]* | ?:[\\/]*)
23337  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23338  ;;
23339  *)
23340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23341for as_dir in $PATH
23342do
23343  IFS=$as_save_IFS
23344  test -z "$as_dir" && as_dir=.
23345    for ac_exec_ext in '' $ac_executable_extensions; do
23346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23347    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23349    break 2
23350  fi
23351done
23352  done
23353IFS=$as_save_IFS
23354
23355  ;;
23356esac
23357fi
23358gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23359if test -n "$gcc_cv_objdump"; then
23360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23361$as_echo "$gcc_cv_objdump" >&6; }
23362else
23363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23364$as_echo "no" >&6; }
23365fi
23366
23367
23368fi
23369fi
23370
23371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23372$as_echo_n "checking what objdump to use... " >&6; }
23373if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23374	# Single tree build which includes binutils.
23375	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23376$as_echo "newly built objdump" >&6; }
23377elif test x$gcc_cv_objdump = x; then
23378	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23379$as_echo "not found" >&6; }
23380else
23381	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23382$as_echo "$gcc_cv_objdump" >&6; }
23383fi
23384
23385# Figure out what readelf we will be using.
23386if ${gcc_cv_readelf+:} false; then :
23387
23388else
23389
23390if test -f $gcc_cv_binutils_srcdir/configure.ac \
23391     && test -f ../binutils/Makefile \
23392     && test x$build = x$host; then
23393	# Single tree build which includes binutils.
23394	gcc_cv_readelf=../binutils/readelf$build_exeext
23395elif test -x readelf$build_exeext; then
23396	gcc_cv_readelf=./readelf$build_exeext
23397elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23398        gcc_cv_readelf="$READELF_FOR_TARGET"
23399else
23400        # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23401set dummy $READELF_FOR_TARGET; ac_word=$2
23402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23403$as_echo_n "checking for $ac_word... " >&6; }
23404if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23405  $as_echo_n "(cached) " >&6
23406else
23407  case $gcc_cv_readelf in
23408  [\\/]* | ?:[\\/]*)
23409  ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23410  ;;
23411  *)
23412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23413for as_dir in $PATH
23414do
23415  IFS=$as_save_IFS
23416  test -z "$as_dir" && as_dir=.
23417    for ac_exec_ext in '' $ac_executable_extensions; do
23418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23419    ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23421    break 2
23422  fi
23423done
23424  done
23425IFS=$as_save_IFS
23426
23427  ;;
23428esac
23429fi
23430gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23431if test -n "$gcc_cv_readelf"; then
23432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23433$as_echo "$gcc_cv_readelf" >&6; }
23434else
23435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23436$as_echo "no" >&6; }
23437fi
23438
23439
23440fi
23441fi
23442
23443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23444$as_echo_n "checking what readelf to use... " >&6; }
23445if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23446	# Single tree build which includes binutils.
23447	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23448$as_echo "newly built readelf" >&6; }
23449elif test x$gcc_cv_readelf = x; then
23450	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23451$as_echo "not found" >&6; }
23452else
23453	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23454$as_echo "$gcc_cv_readelf" >&6; }
23455fi
23456
23457# Figure out what otool we will be using.
23458if ${gcc_cv_otool+:} false; then :
23459
23460else
23461
23462if test -x otool$build_exeext; then
23463	gcc_cv_otool=./otool$build_exeext
23464elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23465        gcc_cv_otool="$OTOOL_FOR_TARGET"
23466else
23467        # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23468set dummy $OTOOL_FOR_TARGET; ac_word=$2
23469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23470$as_echo_n "checking for $ac_word... " >&6; }
23471if ${ac_cv_path_gcc_cv_otool+:} false; then :
23472  $as_echo_n "(cached) " >&6
23473else
23474  case $gcc_cv_otool in
23475  [\\/]* | ?:[\\/]*)
23476  ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23477  ;;
23478  *)
23479  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23480for as_dir in $PATH
23481do
23482  IFS=$as_save_IFS
23483  test -z "$as_dir" && as_dir=.
23484    for ac_exec_ext in '' $ac_executable_extensions; do
23485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23486    ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23488    break 2
23489  fi
23490done
23491  done
23492IFS=$as_save_IFS
23493
23494  ;;
23495esac
23496fi
23497gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23498if test -n "$gcc_cv_otool"; then
23499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23500$as_echo "$gcc_cv_otool" >&6; }
23501else
23502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23503$as_echo "no" >&6; }
23504fi
23505
23506
23507fi
23508fi
23509
23510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23511$as_echo_n "checking what otool to use... " >&6; }
23512if test x$gcc_cv_otool = x; then
23513	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23514$as_echo "not found" >&6; }
23515else
23516	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23517$as_echo "$gcc_cv_otool" >&6; }
23518fi
23519
23520# Figure out the dsymutil we will use.
23521if ${gcc_cv_dsymutil+:} false; then :
23522
23523else
23524
23525if test -x "$DEFAULT_DSYMUTIL"; then
23526    gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23527elif test -x dsymutil$build_exeext; then
23528    gcc_cv_dsymutil=./dsymutil$build_exeext
23529elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23530    gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23531elif ( set dummy $DSYMUTIL; test -x $2 ); then
23532    gcc_cv_dsymutil=$DSYMUTIL
23533else
23534    # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23535set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23537$as_echo_n "checking for $ac_word... " >&6; }
23538if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23539  $as_echo_n "(cached) " >&6
23540else
23541  case $gcc_cv_dsymutil in
23542  [\\/]* | ?:[\\/]*)
23543  ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23544  ;;
23545  *)
23546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23547for as_dir in $PATH
23548do
23549  IFS=$as_save_IFS
23550  test -z "$as_dir" && as_dir=.
23551    for ac_exec_ext in '' $ac_executable_extensions; do
23552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23553    ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23555    break 2
23556  fi
23557done
23558  done
23559IFS=$as_save_IFS
23560
23561  ;;
23562esac
23563fi
23564gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23565if test -n "$gcc_cv_dsymutil"; then
23566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23567$as_echo "$gcc_cv_dsymutil" >&6; }
23568else
23569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23570$as_echo "no" >&6; }
23571fi
23572
23573
23574fi
23575fi
23576
23577ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23578
23579case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23580  ./dsymutil | ./dsymutil$build_exeext) ;;
23581  *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23582 ;;
23583esac
23584
23585# Figure out what assembler alignment features are present.
23586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23587$as_echo_n "checking assembler flags... " >&6; }
23588if ${gcc_cv_as_flags+:} false; then :
23589  $as_echo_n "(cached) " >&6
23590else
23591   case "$target" in
23592  i[34567]86-*-linux*)
23593        gcc_cv_as_flags=--32
23594    ;;
23595  x86_64-*-linux-gnux32)
23596        gcc_cv_as_flags=--x32
23597    ;;
23598  x86_64-*-linux*)
23599        gcc_cv_as_flags=--64
23600    ;;
23601  powerpc*-*-darwin*)
23602        gcc_cv_as_flags="-arch ppc"
23603    ;;
23604  *)
23605    gcc_cv_as_flags=" "
23606    ;;
23607  esac
23608fi
23609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23610$as_echo "$gcc_cv_as_flags" >&6; }
23611
23612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23613$as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23614if ${gcc_cv_as_balign_and_p2align+:} false; then :
23615  $as_echo_n "(cached) " >&6
23616else
23617  gcc_cv_as_balign_and_p2align=no
23618  if test x$gcc_cv_as != x; then
23619    $as_echo '.balign 4
23620.p2align 2' > conftest.s
23621    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23622  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23623  (eval $ac_try) 2>&5
23624  ac_status=$?
23625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23626  test $ac_status = 0; }; }
23627    then
23628	gcc_cv_as_balign_and_p2align=yes
23629    else
23630      echo "configure: failed program was" >&5
23631      cat conftest.s >&5
23632    fi
23633    rm -f conftest.o conftest.s
23634  fi
23635fi
23636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23637$as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23638if test $gcc_cv_as_balign_and_p2align = yes; then
23639
23640$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23641
23642fi
23643
23644
23645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23646$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23647if ${gcc_cv_as_max_skip_p2align+:} false; then :
23648  $as_echo_n "(cached) " >&6
23649else
23650  gcc_cv_as_max_skip_p2align=no
23651  if test x$gcc_cv_as != x; then
23652    $as_echo '.p2align 4,,7' > conftest.s
23653    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23654  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23655  (eval $ac_try) 2>&5
23656  ac_status=$?
23657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23658  test $ac_status = 0; }; }
23659    then
23660	gcc_cv_as_max_skip_p2align=yes
23661    else
23662      echo "configure: failed program was" >&5
23663      cat conftest.s >&5
23664    fi
23665    rm -f conftest.o conftest.s
23666  fi
23667fi
23668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23669$as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23670if test $gcc_cv_as_max_skip_p2align = yes; then
23671
23672$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23673
23674fi
23675
23676
23677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23678$as_echo_n "checking assembler for .literal16... " >&6; }
23679if ${gcc_cv_as_literal16+:} false; then :
23680  $as_echo_n "(cached) " >&6
23681else
23682  gcc_cv_as_literal16=no
23683  if test x$gcc_cv_as != x; then
23684    $as_echo '.literal16' > conftest.s
23685    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23686  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23687  (eval $ac_try) 2>&5
23688  ac_status=$?
23689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23690  test $ac_status = 0; }; }
23691    then
23692	gcc_cv_as_literal16=yes
23693    else
23694      echo "configure: failed program was" >&5
23695      cat conftest.s >&5
23696    fi
23697    rm -f conftest.o conftest.s
23698  fi
23699fi
23700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23701$as_echo "$gcc_cv_as_literal16" >&6; }
23702if test $gcc_cv_as_literal16 = yes; then
23703
23704$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23705
23706fi
23707
23708
23709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23710$as_echo_n "checking assembler for working .subsection -1... " >&6; }
23711if ${gcc_cv_as_subsection_m1+:} false; then :
23712  $as_echo_n "(cached) " >&6
23713else
23714  gcc_cv_as_subsection_m1=no
23715  if test x$gcc_cv_as != x; then
23716    $as_echo 'conftest_label1: .word 0
23717.subsection -1
23718conftest_label2: .word 0
23719.previous' > conftest.s
23720    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23721  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23722  (eval $ac_try) 2>&5
23723  ac_status=$?
23724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23725  test $ac_status = 0; }; }
23726    then
23727	if test x$gcc_cv_nm != x; then
23728    $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23729    $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23730    if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23731    then :
23732    else gcc_cv_as_subsection_m1=yes
23733    fi
23734    rm -f conftest.nm1 conftest.nm2
23735  fi
23736    else
23737      echo "configure: failed program was" >&5
23738      cat conftest.s >&5
23739    fi
23740    rm -f conftest.o conftest.s
23741  fi
23742fi
23743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23744$as_echo "$gcc_cv_as_subsection_m1" >&6; }
23745if test $gcc_cv_as_subsection_m1 = yes; then
23746
23747$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23748
23749fi
23750
23751
23752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23753$as_echo_n "checking assembler for .weak... " >&6; }
23754if ${gcc_cv_as_weak+:} false; then :
23755  $as_echo_n "(cached) " >&6
23756else
23757  gcc_cv_as_weak=no
23758  if test x$gcc_cv_as != x; then
23759    $as_echo '	.weak foobar' > conftest.s
23760    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23761  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23762  (eval $ac_try) 2>&5
23763  ac_status=$?
23764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23765  test $ac_status = 0; }; }
23766    then
23767	gcc_cv_as_weak=yes
23768    else
23769      echo "configure: failed program was" >&5
23770      cat conftest.s >&5
23771    fi
23772    rm -f conftest.o conftest.s
23773  fi
23774fi
23775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23776$as_echo "$gcc_cv_as_weak" >&6; }
23777if test $gcc_cv_as_weak = yes; then
23778
23779$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23780
23781fi
23782
23783
23784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23785$as_echo_n "checking assembler for .weakref... " >&6; }
23786if ${gcc_cv_as_weakref+:} false; then :
23787  $as_echo_n "(cached) " >&6
23788else
23789  gcc_cv_as_weakref=no
23790  if test x$gcc_cv_as != x; then
23791    $as_echo '	.weakref foobar, barfnot' > conftest.s
23792    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23793  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23794  (eval $ac_try) 2>&5
23795  ac_status=$?
23796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23797  test $ac_status = 0; }; }
23798    then
23799	gcc_cv_as_weakref=yes
23800    else
23801      echo "configure: failed program was" >&5
23802      cat conftest.s >&5
23803    fi
23804    rm -f conftest.o conftest.s
23805  fi
23806fi
23807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23808$as_echo "$gcc_cv_as_weakref" >&6; }
23809if test $gcc_cv_as_weakref = yes; then
23810
23811$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23812
23813fi
23814
23815
23816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23817$as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23818if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23819  $as_echo_n "(cached) " >&6
23820else
23821  gcc_cv_as_nsubspa_comdat=no
23822  if test x$gcc_cv_as != x; then
23823    $as_echo '	.SPACE $TEXT$
23824	.NSUBSPA $CODE$,COMDAT' > conftest.s
23825    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23826  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23827  (eval $ac_try) 2>&5
23828  ac_status=$?
23829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23830  test $ac_status = 0; }; }
23831    then
23832	gcc_cv_as_nsubspa_comdat=yes
23833    else
23834      echo "configure: failed program was" >&5
23835      cat conftest.s >&5
23836    fi
23837    rm -f conftest.o conftest.s
23838  fi
23839fi
23840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23841$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23842if test $gcc_cv_as_nsubspa_comdat = yes; then
23843
23844$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23845
23846fi
23847
23848
23849# .hidden needs to be supported in both the assembler and the linker,
23850# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23851# This is irritatingly difficult to feature test for; we have to check the
23852# date string after the version number.  If we've got an in-tree
23853# ld, we don't know its patchlevel version, so we set the baseline at 2.13
23854# to be safe.
23855# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23856case "${target}" in
23857  *-*-aix*)
23858    conftest_s='	.globl foobar,hidden'
23859    ;;
23860  *)
23861    conftest_s='	.hidden foobar
23862foobar:'
23863    ;;
23864esac
23865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23866$as_echo_n "checking assembler for .hidden... " >&6; }
23867if ${gcc_cv_as_hidden+:} false; then :
23868  $as_echo_n "(cached) " >&6
23869else
23870  gcc_cv_as_hidden=no
23871  if test x$gcc_cv_as != x; then
23872    $as_echo "$conftest_s" > conftest.s
23873    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23874  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23875  (eval $ac_try) 2>&5
23876  ac_status=$?
23877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23878  test $ac_status = 0; }; }
23879    then
23880	gcc_cv_as_hidden=yes
23881    else
23882      echo "configure: failed program was" >&5
23883      cat conftest.s >&5
23884    fi
23885    rm -f conftest.o conftest.s
23886  fi
23887fi
23888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23889$as_echo "$gcc_cv_as_hidden" >&6; }
23890
23891
23892case "${target}" in
23893  *-*-darwin*)
23894    # Darwin as has some visibility support, though with a different syntax.
23895    gcc_cv_as_hidden=yes
23896    ;;
23897esac
23898
23899# gnu_indirect_function type is an extension proposed at
23900# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23901# selection of function implementation
23902# Check whether --enable-gnu-indirect-function was given.
23903if test "${enable_gnu_indirect_function+set}" = set; then :
23904  enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23905    yes | no) ;;
23906    *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23907Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23908  esac
23909else
23910  enable_gnu_indirect_function="$default_gnu_indirect_function"
23911fi
23912
23913
23914case "${target}" in
23915  riscv*-*-linux*)
23916    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
23917$as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
23918    cat > conftest.s <<EOF
23919	.text
23920	.type	foo_resolver, @function
23921foo_resolver:
23922	ret
23923	.size	foo_resolver, .-foo_resolver
23924
23925	.globl	foo
23926	.type	foo, %gnu_indirect_function
23927	.set	foo, foo_resolver
23928
23929	.globl	bar
23930	.type	bar, @function
23931bar:
23932	call	foo
23933	ret
23934	.size	bar, .-bar
23935EOF
23936    if test x$gcc_cv_as != x \
23937       && test x$gcc_cv_ld != x \
23938       && test x$gcc_cv_readelf != x \
23939       && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23940       && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23941       && $gcc_cv_readelf --relocs --wide conftest \
23942	  | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
23943      enable_gnu_indirect_function=yes
23944    fi
23945    rm -f conftest conftest.o conftest.s
23946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
23947$as_echo "$enable_gnu_indirect_function" >&6; }
23948    ;;
23949esac
23950
23951gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23952
23953cat >>confdefs.h <<_ACEOF
23954#define HAVE_GNU_INDIRECT_FUNCTION $gif
23955_ACEOF
23956
23957
23958
23959if test $in_tree_ld != yes ; then
23960  ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23961  if echo "$ld_ver" | grep GNU > /dev/null; then
23962    if test x"$ld_is_gold" = xyes; then
23963      # GNU gold --version looks like this:
23964      #
23965      # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23966      #
23967      # We extract the binutils version which is more familiar and specific
23968      # than the gold version.
23969      ld_vers=`echo $ld_ver | sed -n \
23970	  -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23971    else
23972      # GNU ld --version looks like this:
23973      #
23974      # GNU ld (GNU Binutils) 2.21.51.20110225
23975      ld_vers=`echo $ld_ver | sed -n \
23976	  -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23977    fi
23978    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'`
23979    ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23980    ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23981    ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23982  else
23983    case "${target}" in
23984      *-*-solaris2*)
23985	# Solaris 2 ld -V output looks like this for a regular version:
23986	#
23987	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23988	#
23989	# but test versions add stuff at the end:
23990	#
23991	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23992	#
23993	# ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23994	# numbers can be used in ld.so.1 feature checks even if a different
23995	# linker is configured.
23996	ld_ver=`$gcc_cv_ld -V 2>&1`
23997	if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23998	  ld_vers=`echo $ld_ver | sed -n \
23999	    -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24000	  ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24001	  ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24002	fi
24003	;;
24004    esac
24005  fi
24006fi
24007
24008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24009$as_echo_n "checking linker for .hidden support... " >&6; }
24010if ${gcc_cv_ld_hidden+:} false; then :
24011  $as_echo_n "(cached) " >&6
24012else
24013  if test $in_tree_ld = yes ; then
24014  gcc_cv_ld_hidden=no
24015  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 \
24016     && test $in_tree_ld_is_elf = yes; then
24017     gcc_cv_ld_hidden=yes
24018  fi
24019else
24020  gcc_cv_ld_hidden=yes
24021  if test x"$ld_is_gold" = xyes; then
24022    :
24023  elif echo "$ld_ver" | grep GNU > /dev/null; then
24024    if test 0"$ld_date" -lt 20020404; then
24025      if test -n "$ld_date"; then
24026	# If there was date string, but was earlier than 2002-04-04, fail
24027	gcc_cv_ld_hidden=no
24028      elif test -z "$ld_vers"; then
24029	# If there was no date string nor ld version number, something is wrong
24030	gcc_cv_ld_hidden=no
24031      else
24032	test -z "$ld_vers_patch" && ld_vers_patch=0
24033	if test "$ld_vers_major" -lt 2; then
24034	  gcc_cv_ld_hidden=no
24035	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24036	  gcc_cv_ld_hidden="no"
24037	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24038	  gcc_cv_ld_hidden=no
24039	fi
24040      fi
24041    fi
24042  else
24043    case "${target}" in
24044      *-*-aix[789]*)
24045        gcc_cv_ld_hidden=yes
24046        ;;
24047      *-*-darwin*)
24048	# Darwin ld has some visibility support.
24049	gcc_cv_ld_hidden=yes
24050        ;;
24051      hppa64*-*-hpux* | ia64*-*-hpux*)
24052	gcc_cv_ld_hidden=yes
24053	;;
24054      *-*-solaris2*)
24055	# Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24056	# .symbolic was only added in Solaris 9 12/02.
24057        gcc_cv_ld_hidden=yes
24058	;;
24059      *)
24060	gcc_cv_ld_hidden=no
24061	;;
24062    esac
24063  fi
24064fi
24065fi
24066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24067$as_echo "$gcc_cv_ld_hidden" >&6; }
24068libgcc_visibility=no
24069
24070
24071if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24072  libgcc_visibility=yes
24073
24074$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24075
24076fi
24077
24078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24079$as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24080gcc_cv_ld_ro_rw_mix=unknown
24081if test $in_tree_ld = yes ; then
24082  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 \
24083     && test $in_tree_ld_is_elf = yes; then
24084    gcc_cv_ld_ro_rw_mix=read-write
24085  fi
24086elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24087  echo '.section myfoosect, "a"' > conftest1.s
24088  echo '.section myfoosect, "aw"' > conftest2.s
24089  echo '.byte 1' >> conftest2.s
24090  echo '.section myfoosect, "a"' > conftest3.s
24091  echo '.byte 0' >> conftest3.s
24092  if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24093     && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24094     && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24095     && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24096	conftest2.o conftest3.o > /dev/null 2>&1; then
24097    gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24098			 | sed -e '/myfoosect/!d' -e N`
24099    if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24100      if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24101	gcc_cv_ld_ro_rw_mix=read-only
24102      else
24103	gcc_cv_ld_ro_rw_mix=read-write
24104      fi
24105    fi
24106  fi
24107  rm -f conftest.* conftest[123].*
24108fi
24109if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24110
24111$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24112
24113fi
24114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24115$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24116
24117# Check whether --enable-initfini-array was given.
24118if test "${enable_initfini_array+set}" = set; then :
24119  enableval=$enable_initfini_array;
24120else
24121
24122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24123$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24124if ${gcc_cv_initfini_array+:} false; then :
24125  $as_echo_n "(cached) " >&6
24126else
24127    if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24128    case "${target}" in
24129      ia64-*)
24130	if test "$cross_compiling" = yes; then :
24131  gcc_cv_initfini_array=no
24132else
24133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24134/* end confdefs.h.  */
24135
24136#ifndef __ELF__
24137#error Not an ELF OS
24138#endif
24139/* We turn on .preinit_array/.init_array/.fini_array support for ia64
24140   if it can be used.  */
24141static int x = -1;
24142int main (void) { return x; }
24143int foo (void) { x = 0; }
24144int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24145
24146_ACEOF
24147if ac_fn_cxx_try_run "$LINENO"; then :
24148  gcc_cv_initfini_array=yes
24149else
24150  gcc_cv_initfini_array=no
24151fi
24152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24153  conftest.$ac_objext conftest.beam conftest.$ac_ext
24154fi
24155;;
24156      *)
24157	gcc_cv_initfini_array=no
24158	if test $in_tree_ld = yes ; then
24159	  if test "$gcc_cv_gld_major_version" -eq 2 \
24160	     -a "$gcc_cv_gld_minor_version" -ge 22 \
24161	     -o "$gcc_cv_gld_major_version" -gt 2 \
24162	     && test $in_tree_ld_is_elf = yes; then
24163	    gcc_cv_initfini_array=yes
24164	  fi
24165	elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24166	  case $target:$gas in
24167	    *:yes)
24168	      sh_flags='"a"'
24169	      sh_type='%progbits'
24170	      ;;
24171	    i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24172	      sh_flags='"a"'
24173	      sh_type='@progbits'
24174	      ;;
24175	    sparc*-*-solaris2*:no)
24176	      sh_flags='#alloc'
24177	      sh_type='#progbits'
24178	      sh_quote='"'
24179	      ;;
24180	  esac
24181	  case "$target:$gnu_ld" in
24182	    *:yes)
24183	      cat > conftest.s <<EOF
24184.section .dtors,$sh_flags,$sh_type
24185.balign 4
24186.byte 'A', 'A', 'A', 'A'
24187.section .ctors,$sh_flags,$sh_type
24188.balign 4
24189.byte 'B', 'B', 'B', 'B'
24190.section .fini_array.65530,$sh_flags,$sh_type
24191.balign 4
24192.byte 'C', 'C', 'C', 'C'
24193.section .init_array.65530,$sh_flags,$sh_type
24194.balign 4
24195.byte 'D', 'D', 'D', 'D'
24196.section .dtors.64528,$sh_flags,$sh_type
24197.balign 4
24198.byte 'E', 'E', 'E', 'E'
24199.section .ctors.64528,$sh_flags,$sh_type
24200.balign 4
24201.byte 'F', 'F', 'F', 'F'
24202.section .fini_array.01005,$sh_flags,$sh_type
24203.balign 4
24204.byte 'G', 'G', 'G', 'G'
24205.section .init_array.01005,$sh_flags,$sh_type
24206.balign 4
24207.byte 'H', 'H', 'H', 'H'
24208.text
24209.globl _start
24210_start:
24211EOF
24212	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24213	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24214	         && $gcc_cv_objdump -s -j .init_array conftest \
24215		    | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24216	         && $gcc_cv_objdump -s -j .fini_array conftest \
24217		    | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24218	        gcc_cv_initfini_array=yes
24219	      fi
24220	      ;;
24221	    *-*-solaris2*:no)
24222	      # When Solaris ld added constructor priority support, it was
24223	      # decided to only handle .init_array.N/.fini_array.N since
24224	      # there was no need for backwards compatibility with
24225	      # .ctors.N/.dtors.N.  .ctors/.dtors remain as separate
24226	      # sections with correct execution order resp. to
24227	      # .init_array/.fini_array, while gld merges them into
24228	      # .init_array/.fini_array.
24229	      cat > conftest.s <<EOF
24230.section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24231.align 4
24232.byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24233.section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24234.align 4
24235.byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24236.section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24237.align 4
24238.byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24239.section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24240.align 4
24241.byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24242.text
24243.globl _start
24244_start:
24245EOF
24246	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24247	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24248	         && $gcc_cv_objdump -s -j .init_array conftest \
24249		    | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24250	         && $gcc_cv_objdump -s -j .fini_array conftest \
24251		    | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24252	        gcc_cv_initfini_array=yes
24253	      fi
24254	      ;;
24255	    esac
24256	  rm -f conftest conftest.*
24257	fi
24258	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24259/* end confdefs.h.  */
24260
24261#ifndef __ELF__
24262# error Not an ELF OS
24263#endif
24264#include <stdlib.h>
24265#if defined __GLIBC_PREREQ
24266# if __GLIBC_PREREQ (2, 4)
24267# else
24268#  error GLIBC 2.4 required
24269# endif
24270#else
24271# if defined __sun__ && defined __svr4__
24272   /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
24273# else
24274#  error The C library not known to support .init_array/.fini_array
24275# endif
24276#endif
24277
24278_ACEOF
24279if ac_fn_cxx_try_cpp "$LINENO"; then :
24280
24281else
24282  gcc_cv_initfini_array=no
24283fi
24284rm -f conftest.err conftest.i conftest.$ac_ext;;
24285    esac
24286  else
24287    case "${target}" in
24288      aarch64*-linux-gnu*)
24289	# AArch64 postdates glibc support for .init_array/.fini_array,
24290	# so we don't need the preprocessor test above.
24291	gcc_cv_initfini_array=yes
24292	;;
24293
24294      *)
24295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24296$as_echo_n "checking cross compile... guessing... " >&6; }
24297	gcc_cv_initfini_array=no
24298	;;
24299    esac
24300  fi
24301fi
24302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24303$as_echo "$gcc_cv_initfini_array" >&6; }
24304  enable_initfini_array=$gcc_cv_initfini_array
24305
24306fi
24307
24308
24309cat >>confdefs.h <<_ACEOF
24310#define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24311_ACEOF
24312
24313
24314
24315# Check if we have .[us]leb128, and support symbol arithmetic with it.
24316# Older versions of GAS and some non-GNU assemblers, have a bugs handling
24317# these directives, even when they appear to accept them.
24318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24319$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24320if ${gcc_cv_as_leb128+:} false; then :
24321  $as_echo_n "(cached) " >&6
24322else
24323  gcc_cv_as_leb128=no
24324  if test x$gcc_cv_as != x; then
24325    $as_echo '	.data
24326	.uleb128 L2 - L1
24327L1:
24328	.uleb128 1280
24329	.sleb128 -1010
24330L2:
24331	.uleb128 0x8000000000000000
24332' > conftest.s
24333    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24334  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24335  (eval $ac_try) 2>&5
24336  ac_status=$?
24337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24338  test $ac_status = 0; }; }
24339    then
24340
24341if test "x$gcc_cv_objdump" != x; then
24342  if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24343     | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24344    gcc_cv_as_leb128=yes
24345  fi
24346elif test "x$gcc_cv_otool" != x; then
24347  if $gcc_cv_otool -d conftest.o 2>/dev/null \
24348     | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24349    gcc_cv_as_leb128=yes
24350  fi
24351else
24352  # play safe, assume the assembler is broken.
24353  :
24354fi
24355
24356    else
24357      echo "configure: failed program was" >&5
24358      cat conftest.s >&5
24359    fi
24360    rm -f conftest.o conftest.s
24361  fi
24362fi
24363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24364$as_echo "$gcc_cv_as_leb128" >&6; }
24365if test $gcc_cv_as_leb128 = yes; then
24366
24367$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24368
24369fi
24370if test $gcc_cv_as_leb128 != yes; then
24371
24372$as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24373
24374fi
24375
24376# Determine if an .eh_frame section is read-only.
24377gcc_fn_eh_frame_ro () {
24378  $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24379    $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24380    sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24381}
24382
24383# Check if we have assembler support for unwind directives.
24384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24385$as_echo_n "checking assembler for cfi directives... " >&6; }
24386if ${gcc_cv_as_cfi_directive+:} false; then :
24387  $as_echo_n "(cached) " >&6
24388else
24389  gcc_cv_as_cfi_directive=no
24390  if test x$gcc_cv_as != x; then
24391    $as_echo '	.text
24392	.cfi_startproc
24393	.cfi_offset 0, 0
24394	.cfi_same_value 1
24395	.cfi_def_cfa 1, 2
24396	.cfi_escape 1, 2, 3, 4, 5
24397	.cfi_endproc' > conftest.s
24398    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24399  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24400  (eval $ac_try) 2>&5
24401  ac_status=$?
24402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24403  test $ac_status = 0; }; }
24404    then
24405	case "$target" in
24406  *-*-solaris*)
24407    # If the linker used on Solaris (like Sun ld) isn't capable of merging
24408    # read-only and read-write sections, we need to make sure that the
24409    # assembler used emits read-write .eh_frame sections.
24410    if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24411      gcc_cv_as_cfi_directive=yes
24412    elif test "x$gcc_cv_objdump" = x; then
24413      # No objdump, err on the side of caution.
24414      gcc_cv_as_cfi_directive=no
24415    else
24416      if test x$gas = xyes; then
24417	as_32_opt="--32"
24418	as_64_opt="--64"
24419      else
24420	as_32_opt="-m32"
24421	as_64_opt="-m64"
24422      fi
24423      case "$target" in
24424	sparc*-*-solaris2.*)
24425	  # On Solaris/SPARC, .eh_frame sections should always be read-write.
24426	  if gcc_fn_eh_frame_ro $as_32_opt \
24427	     || gcc_fn_eh_frame_ro $as_64_opt; then
24428	    gcc_cv_as_cfi_directive=no
24429	  else
24430	    gcc_cv_as_cfi_directive=yes
24431	  fi
24432	  ;;
24433	i?86-*-solaris2.* | x86_64-*-solaris2.*)
24434	  # On Solaris/x86, make sure that GCC and assembler agree on using
24435	  # read-only .eh_frame sections for 64-bit.
24436	  if gcc_fn_eh_frame_ro $as_32_opt; then
24437	    gcc_cv_as_cfi_directive=no
24438	  elif gcc_fn_eh_frame_ro $as_64_opt; then
24439	    gcc_cv_as_cfi_directive=yes
24440	  else
24441	    gcc_cv_as_cfi_directive=no
24442	  fi
24443	  ;;
24444      esac
24445    fi
24446    ;;
24447  *-*-*)
24448    gcc_cv_as_cfi_directive=yes
24449    ;;
24450esac
24451    else
24452      echo "configure: failed program was" >&5
24453      cat conftest.s >&5
24454    fi
24455    rm -f conftest.o conftest.s
24456  fi
24457fi
24458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24459$as_echo "$gcc_cv_as_cfi_directive" >&6; }
24460
24461
24462if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24464$as_echo_n "checking assembler for working cfi advance... " >&6; }
24465if ${gcc_cv_as_cfi_advance_working+:} false; then :
24466  $as_echo_n "(cached) " >&6
24467else
24468  gcc_cv_as_cfi_advance_working=no
24469  if test x$gcc_cv_as != x; then
24470    $as_echo '	.text
24471	.cfi_startproc
24472	.cfi_adjust_cfa_offset 64
24473	.skip 75040, 0
24474	.cfi_adjust_cfa_offset 128
24475	.cfi_endproc' > conftest.s
24476    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24477  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24478  (eval $ac_try) 2>&5
24479  ac_status=$?
24480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24481  test $ac_status = 0; }; }
24482    then
24483
24484if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24485    | grep 'DW_CFA_advance_loc[24]:[ 	][ 	]*75040[ 	]' >/dev/null; then
24486   gcc_cv_as_cfi_advance_working=yes
24487fi
24488
24489    else
24490      echo "configure: failed program was" >&5
24491      cat conftest.s >&5
24492    fi
24493    rm -f conftest.o conftest.s
24494  fi
24495fi
24496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24497$as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24498
24499
24500else
24501  # no objdump, err on the side of caution
24502  gcc_cv_as_cfi_advance_working=no
24503fi
24504
24505
24506cat >>confdefs.h <<_ACEOF
24507#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24508       && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24509_ACEOF
24510
24511
24512
24513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24514$as_echo_n "checking assembler for cfi personality directive... " >&6; }
24515if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24516  $as_echo_n "(cached) " >&6
24517else
24518  gcc_cv_as_cfi_personality_directive=no
24519  if test x$gcc_cv_as != x; then
24520    $as_echo '	.text
24521	.cfi_startproc
24522	.cfi_personality 0, symbol
24523	.cfi_endproc' > conftest.s
24524    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24525  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526  (eval $ac_try) 2>&5
24527  ac_status=$?
24528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529  test $ac_status = 0; }; }
24530    then
24531	gcc_cv_as_cfi_personality_directive=yes
24532    else
24533      echo "configure: failed program was" >&5
24534      cat conftest.s >&5
24535    fi
24536    rm -f conftest.o conftest.s
24537  fi
24538fi
24539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24540$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24541
24542
24543
24544cat >>confdefs.h <<_ACEOF
24545#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24546_ACEOF
24547
24548
24549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24550$as_echo_n "checking assembler for cfi sections directive... " >&6; }
24551if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24552  $as_echo_n "(cached) " >&6
24553else
24554  gcc_cv_as_cfi_sections_directive=no
24555  if test x$gcc_cv_as != x; then
24556    $as_echo '	.text
24557	.cfi_sections .debug_frame, .eh_frame
24558	.cfi_startproc
24559	.cfi_endproc' > conftest.s
24560    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24561  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24562  (eval $ac_try) 2>&5
24563  ac_status=$?
24564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24565  test $ac_status = 0; }; }
24566    then
24567	case $target_os in
24568  win32 | pe | cygwin* | mingw32*)
24569    # Need to check that we generated the correct relocation for the
24570    # .debug_frame section.  This was fixed for binutils 2.21.
24571    gcc_cv_as_cfi_sections_directive=no
24572    if test "x$gcc_cv_objdump" != x; then
24573     if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24574	grep secrel > /dev/null; then
24575      gcc_cv_as_cfi_sections_directive=yes
24576     fi
24577    fi
24578    ;;
24579  *)
24580    gcc_cv_as_cfi_sections_directive=yes
24581    ;;
24582esac
24583    else
24584      echo "configure: failed program was" >&5
24585      cat conftest.s >&5
24586    fi
24587    rm -f conftest.o conftest.s
24588  fi
24589fi
24590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24591$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24592
24593
24594
24595
24596cat >>confdefs.h <<_ACEOF
24597#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24598_ACEOF
24599
24600
24601# GAS versions up to and including 2.11.0 may mis-optimize
24602# .eh_frame data.
24603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24604$as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24605if ${gcc_cv_as_eh_frame+:} false; then :
24606  $as_echo_n "(cached) " >&6
24607else
24608  gcc_cv_as_eh_frame=no
24609  if test x$gcc_cv_as != x; then
24610    $as_echo '	.text
24611.LFB1:
24612	.4byte	0
24613.L1:
24614	.4byte	0
24615.LFE1:
24616	.section	.eh_frame,"aw",@progbits
24617__FRAME_BEGIN__:
24618	.4byte	.LECIE1-.LSCIE1
24619.LSCIE1:
24620	.4byte	0x0
24621	.byte	0x1
24622	.ascii "z\0"
24623	.byte	0x1
24624	.byte	0x78
24625	.byte	0x1a
24626	.byte	0x0
24627	.byte	0x4
24628	.4byte	1
24629	.p2align 1
24630.LECIE1:
24631.LSFDE1:
24632	.4byte	.LEFDE1-.LASFDE1
24633.LASFDE1:
24634	.4byte	.LASFDE1-__FRAME_BEGIN__
24635	.4byte	.LFB1
24636	.4byte	.LFE1-.LFB1
24637	.byte	0x4
24638	.4byte	.LFE1-.LFB1
24639	.byte	0x4
24640	.4byte	.L1-.LFB1
24641.LEFDE1:' > conftest.s
24642    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24643  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24644  (eval $ac_try) 2>&5
24645  ac_status=$?
24646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24647  test $ac_status = 0; }; }
24648    then
24649	  cat > conftest.lit <<EOF
24650 0000 10000000 00000000 017a0001 781a0004  .........z..x...
24651 0010 01000000 12000000 18000000 00000000  ................
24652 0020 08000000 04080000 0044               .........D      
24653EOF
24654cat > conftest.big <<EOF
24655 0000 00000010 00000000 017a0001 781a0004  .........z..x...
24656 0010 00000001 00000012 00000018 00000000  ................
24657 0020 00000008 04000000 0844               .........D      
24658EOF
24659  # If the assembler didn't choke, and we can objdump,
24660  # and we got the correct data, then succeed.
24661  # The text in the here-document typically retains its unix-style line
24662  # endings, while the output of objdump will use host line endings.
24663  # Therefore, use diff -b for the comparisons.
24664  if test x$gcc_cv_objdump != x \
24665  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24666     | tail -3 > conftest.got \
24667  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24668    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24669  then
24670    gcc_cv_as_eh_frame=yes
24671  elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24672  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24673  (eval $ac_try) 2>&5
24674  ac_status=$?
24675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24676  test $ac_status = 0; }; }; then
24677    gcc_cv_as_eh_frame=buggy
24678  else
24679    # Uh oh, what do we do now?
24680    gcc_cv_as_eh_frame=no
24681  fi
24682    else
24683      echo "configure: failed program was" >&5
24684      cat conftest.s >&5
24685    fi
24686    rm -f conftest.o conftest.s
24687  fi
24688fi
24689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24690$as_echo "$gcc_cv_as_eh_frame" >&6; }
24691
24692
24693
24694if test $gcc_cv_as_eh_frame = buggy; then
24695
24696$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24697
24698fi
24699
24700# Test if the assembler supports the section flag 'e' or #exclude for
24701# specifying an excluded section.
24702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24703$as_echo_n "checking assembler for section exclude flag... " >&6; }
24704if ${gcc_cv_as_section_exclude_e+:} false; then :
24705  $as_echo_n "(cached) " >&6
24706else
24707  gcc_cv_as_section_exclude_e=no
24708  if test x$gcc_cv_as != x; then
24709    $as_echo '.section foo1,"e"
24710  .byte 0,0,0,0' > conftest.s
24711    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24712  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24713  (eval $ac_try) 2>&5
24714  ac_status=$?
24715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716  test $ac_status = 0; }; }
24717    then
24718	gcc_cv_as_section_exclude_e=yes
24719    else
24720      echo "configure: failed program was" >&5
24721      cat conftest.s >&5
24722    fi
24723    rm -f conftest.o conftest.s
24724  fi
24725fi
24726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24727$as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24728
24729
24730if test $gcc_cv_as_section_exclude_e = no; then
24731  case "${target}" in
24732    # Solaris as uses #exclude instead.
24733    *-*-solaris2*)
24734      case "${target}" in
24735	sparc*-*-solaris2*)
24736	  conftest_s='.section "foo1", #exclude'
24737	  ;;
24738	i?86-*-solaris2* | x86_64-*-solaris2*)
24739	  conftest_s='.section foo1, #exclude'
24740	  ;;
24741      esac
24742      ;;
24743    esac
24744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24745$as_echo_n "checking assembler for section exclude flag... " >&6; }
24746if ${gcc_cv_as_section_exclude_hash+:} false; then :
24747  $as_echo_n "(cached) " >&6
24748else
24749  gcc_cv_as_section_exclude_hash=no
24750  if test x$gcc_cv_as != x; then
24751    $as_echo "$conftest_s
24752     .byte 0,0,0,0" > conftest.s
24753    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24754  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24755  (eval $ac_try) 2>&5
24756  ac_status=$?
24757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24758  test $ac_status = 0; }; }
24759    then
24760	gcc_cv_as_section_exclude_hash=yes
24761    else
24762      echo "configure: failed program was" >&5
24763      cat conftest.s >&5
24764    fi
24765    rm -f conftest.o conftest.s
24766  fi
24767fi
24768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24769$as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24770
24771
24772fi
24773
24774cat >>confdefs.h <<_ACEOF
24775#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`
24776_ACEOF
24777
24778
24779# Test if the assembler supports the section flag 'R' for specifying
24780# section with SHF_GNU_RETAIN.
24781case "${target}" in
24782  # Solaris may use GNU assembler with Solairs ld.  Even if GNU
24783  # assembler supports the section flag 'R', it doesn't mean that
24784  # Solairs ld supports it.
24785  *-*-solaris2*)
24786    gcc_cv_as_shf_gnu_retain=no
24787    ;;
24788  *)
24789    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24790$as_echo_n "checking assembler for section 'R' flag... " >&6; }
24791if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24792  $as_echo_n "(cached) " >&6
24793else
24794  gcc_cv_as_shf_gnu_retain=no
24795  if test x$gcc_cv_as != x; then
24796    $as_echo '.section .foo,"awR",%progbits
24797.byte 0' > conftest.s
24798    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24799  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24800  (eval $ac_try) 2>&5
24801  ac_status=$?
24802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24803  test $ac_status = 0; }; }
24804    then
24805	gcc_cv_as_shf_gnu_retain=yes
24806    else
24807      echo "configure: failed program was" >&5
24808      cat conftest.s >&5
24809    fi
24810    rm -f conftest.o conftest.s
24811  fi
24812fi
24813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24814$as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24815
24816
24817    ;;
24818esac
24819
24820cat >>confdefs.h <<_ACEOF
24821#define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24822_ACEOF
24823
24824
24825# Test if the assembler supports the section flag 'o' for specifying
24826# section with link-order.
24827case "${target}" in
24828  # Solaris may use GNU assembler with Solairs ld.  Even if GNU
24829  # assembler supports the section flag 'o', it doesn't mean that
24830  # Solairs ld supports it.
24831  *-*-solaris2*)
24832    gcc_cv_as_section_link_order=no
24833    ;;
24834  *)
24835    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24836$as_echo_n "checking assembler for section 'o' flag... " >&6; }
24837if ${gcc_cv_as_section_link_order+:} false; then :
24838  $as_echo_n "(cached) " >&6
24839else
24840  gcc_cv_as_section_link_order=no
24841  if test x$gcc_cv_as != x; then
24842    $as_echo '.section .foo,"a"
24843.byte 0
24844.section __patchable_function_entries,"awo",%progbits,.foo
24845.byte 0' > conftest.s
24846    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24847  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24848  (eval $ac_try) 2>&5
24849  ac_status=$?
24850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24851  test $ac_status = 0; }; }
24852    then
24853	gcc_cv_as_section_link_order=yes
24854    else
24855      echo "configure: failed program was" >&5
24856      cat conftest.s >&5
24857    fi
24858    rm -f conftest.o conftest.s
24859  fi
24860fi
24861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
24862$as_echo "$gcc_cv_as_section_link_order" >&6; }
24863
24864
24865    ;;
24866esac
24867
24868cat >>confdefs.h <<_ACEOF
24869#define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
24870_ACEOF
24871
24872
24873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24874$as_echo_n "checking assembler for section merging support... " >&6; }
24875if ${gcc_cv_as_shf_merge+:} false; then :
24876  $as_echo_n "(cached) " >&6
24877else
24878  gcc_cv_as_shf_merge=no
24879  if test x$gcc_cv_as != x; then
24880    $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24881    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24882  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24883  (eval $ac_try) 2>&5
24884  ac_status=$?
24885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24886  test $ac_status = 0; }; }
24887    then
24888	gcc_cv_as_shf_merge=yes
24889    else
24890      echo "configure: failed program was" >&5
24891      cat conftest.s >&5
24892    fi
24893    rm -f conftest.o conftest.s
24894  fi
24895fi
24896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24897$as_echo "$gcc_cv_as_shf_merge" >&6; }
24898
24899
24900if test $gcc_cv_as_shf_merge = no; then
24901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24902$as_echo_n "checking assembler for section merging support... " >&6; }
24903if ${gcc_cv_as_shf_merge+:} false; then :
24904  $as_echo_n "(cached) " >&6
24905else
24906  gcc_cv_as_shf_merge=no
24907  if test x$gcc_cv_as != x; then
24908    $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24909    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24910  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24911  (eval $ac_try) 2>&5
24912  ac_status=$?
24913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24914  test $ac_status = 0; }; }
24915    then
24916	gcc_cv_as_shf_merge=yes
24917    else
24918      echo "configure: failed program was" >&5
24919      cat conftest.s >&5
24920    fi
24921    rm -f conftest.o conftest.s
24922  fi
24923fi
24924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24925$as_echo "$gcc_cv_as_shf_merge" >&6; }
24926
24927
24928fi
24929
24930cat >>confdefs.h <<_ACEOF
24931#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24932_ACEOF
24933
24934
24935gcc_cv_ld_aligned_shf_merge=yes
24936case "$target" in
24937  # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24938  # alignment > 1.
24939  sparc*-*-solaris2.11*)
24940    if test x"$gnu_ld" = xno \
24941       && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24942      gcc_cv_ld_aligned_shf_merge=no
24943    fi
24944    ;;
24945esac
24946
24947cat >>confdefs.h <<_ACEOF
24948#define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24949_ACEOF
24950
24951
24952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24953$as_echo_n "checking assembler for stabs directive... " >&6; }
24954if ${gcc_cv_as_stabs_directive+:} false; then :
24955  $as_echo_n "(cached) " >&6
24956else
24957  gcc_cv_as_stabs_directive=no
24958  if test x$gcc_cv_as != x; then
24959    $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24960    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24961  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24962  (eval $ac_try) 2>&5
24963  ac_status=$?
24964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24965  test $ac_status = 0; }; }
24966    then
24967	gcc_cv_as_stabs_directive=yes
24968    else
24969      echo "configure: failed program was" >&5
24970      cat conftest.s >&5
24971    fi
24972    rm -f conftest.o conftest.s
24973  fi
24974fi
24975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24976$as_echo "$gcc_cv_as_stabs_directive" >&6; }
24977if test $gcc_cv_as_stabs_directive = yes; then
24978
24979$as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24980
24981fi
24982
24983
24984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24985$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24986if ${gcc_cv_as_comdat_group+:} false; then :
24987  $as_echo_n "(cached) " >&6
24988else
24989  gcc_cv_as_comdat_group=no
24990  if test x$gcc_cv_as != x; then
24991    $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24992    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24993  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24994  (eval $ac_try) 2>&5
24995  ac_status=$?
24996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24997  test $ac_status = 0; }; }
24998    then
24999	gcc_cv_as_comdat_group=yes
25000    else
25001      echo "configure: failed program was" >&5
25002      cat conftest.s >&5
25003    fi
25004    rm -f conftest.o conftest.s
25005  fi
25006fi
25007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25008$as_echo "$gcc_cv_as_comdat_group" >&6; }
25009
25010
25011if test $gcc_cv_as_comdat_group = yes; then
25012  gcc_cv_as_comdat_group_percent=no
25013  gcc_cv_as_comdat_group_group=no
25014else
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25016$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25017if ${gcc_cv_as_comdat_group_percent+:} false; then :
25018  $as_echo_n "(cached) " >&6
25019else
25020  gcc_cv_as_comdat_group_percent=no
25021  if test x$gcc_cv_as != x; then
25022    $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25023    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25024  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25025  (eval $ac_try) 2>&5
25026  ac_status=$?
25027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25028  test $ac_status = 0; }; }
25029    then
25030	gcc_cv_as_comdat_group_percent=yes
25031    else
25032      echo "configure: failed program was" >&5
25033      cat conftest.s >&5
25034    fi
25035    rm -f conftest.o conftest.s
25036  fi
25037fi
25038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25039$as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25040
25041
25042 if test $gcc_cv_as_comdat_group_percent = yes; then
25043   gcc_cv_as_comdat_group_group=no
25044 else
25045   case "${target}" in
25046     # Sun as uses a completely different syntax.
25047     *-*-solaris2*)
25048       case "${target}" in
25049         sparc*-*-solaris2*)
25050           conftest_s='
25051               .group foo,".text%foo",#comdat
25052               .section ".text%foo", #alloc,#execinstr,#progbits
25053               .globl foo
25054             foo:
25055	     '
25056           ;;
25057         i?86-*-solaris2* | x86_64-*-solaris2*)
25058	   conftest_s='
25059               .group foo,.text%foo,#comdat
25060               .section .text%foo, "ax", @progbits
25061               .globl  foo
25062             foo:
25063	     '
25064	   ;;
25065       esac
25066       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25067$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25068if ${gcc_cv_as_comdat_group_group+:} false; then :
25069  $as_echo_n "(cached) " >&6
25070else
25071  gcc_cv_as_comdat_group_group=no
25072  if test x$gcc_cv_as != x; then
25073    $as_echo "$conftest_s" > conftest.s
25074    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25075  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076  (eval $ac_try) 2>&5
25077  ac_status=$?
25078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079  test $ac_status = 0; }; }
25080    then
25081	gcc_cv_as_comdat_group_group=yes
25082    else
25083      echo "configure: failed program was" >&5
25084      cat conftest.s >&5
25085    fi
25086    rm -f conftest.o conftest.s
25087  fi
25088fi
25089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25090$as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25091
25092
25093       ;;
25094   esac
25095   if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25096     gcc_cv_as_comdat_group_group=no
25097   fi
25098 fi
25099fi
25100if test x"$ld_is_gold" = xyes; then
25101  comdat_group=yes
25102elif test $in_tree_ld = yes ; then
25103  comdat_group=no
25104  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 \
25105     && test $in_tree_ld_is_elf = yes; then
25106     comdat_group=yes
25107  fi
25108elif echo "$ld_ver" | grep GNU > /dev/null; then
25109  comdat_group=yes
25110  if test 0"$ld_date" -lt 20050308; then
25111    if test -n "$ld_date"; then
25112      # If there was date string, but was earlier than 2005-03-08, fail
25113      comdat_group=no
25114    elif test "$ld_vers_major" -lt 2; then
25115      comdat_group=no
25116    elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25117      comdat_group=no
25118    fi
25119  fi
25120else
25121  case "${target}" in
25122    *-*-solaris2.1[1-9]*)
25123      comdat_group=no
25124      # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25125      # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25126      # version 1.688.
25127      #
25128      # If using Sun as for COMDAT group as emitted by GCC, one needs at
25129      # least ld version 1.2267.
25130      if test "$ld_vers_major" -gt 1; then
25131        comdat_group=yes
25132      elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25133	comdat_group=yes
25134      elif test "$ld_vers_minor" -ge 2267; then
25135	comdat_group=yes
25136      fi
25137      ;;
25138    *)
25139      # Assume linkers other than GNU ld don't support COMDAT group.
25140      comdat_group=no
25141      ;;
25142  esac
25143fi
25144# Allow overriding the automatic COMDAT group tests above.
25145# Check whether --enable-comdat was given.
25146if test "${enable_comdat+set}" = set; then :
25147  enableval=$enable_comdat; comdat_group="$enable_comdat"
25148fi
25149
25150if test $comdat_group = no; then
25151  gcc_cv_as_comdat_group=no
25152  gcc_cv_as_comdat_group_percent=no
25153  gcc_cv_as_comdat_group_group=no
25154fi
25155
25156cat >>confdefs.h <<_ACEOF
25157#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25158    || test $gcc_cv_as_comdat_group_percent = yes \
25159    || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25160_ACEOF
25161
25162
25163# Restrict this test to Solaris/x86: other targets define this statically.
25164case "${target}" in
25165  i?86-*-solaris2* | x86_64-*-solaris2*)
25166    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25167$as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25168    if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25169      hidden_linkonce=yes
25170    else
25171      case "${target}" in
25172	# Full support for hidden thunks in linkonce sections only appeared in
25173	# Solaris 11/OpenSolaris.
25174        *-*-solaris2.1[1-9]*)
25175	  hidden_linkonce=yes
25176	  ;;
25177	*)
25178	  hidden_linkonce=no
25179	  ;;
25180      esac
25181    fi
25182    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25183$as_echo "$hidden_linkonce" >&6; }
25184
25185cat >>confdefs.h <<_ACEOF
25186#define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25187_ACEOF
25188
25189  ;;
25190esac
25191
25192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25193$as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25194if ${gcc_cv_as_is_stmt+:} false; then :
25195  $as_echo_n "(cached) " >&6
25196else
25197  gcc_cv_as_is_stmt=no
25198  if test x$gcc_cv_as != x; then
25199    $as_echo '	.text
25200	.file 1 "conf.c"
25201	.loc 1 1 0 is_stmt 1' > conftest.s
25202    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25203  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25204  (eval $ac_try) 2>&5
25205  ac_status=$?
25206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25207  test $ac_status = 0; }; }
25208    then
25209	gcc_cv_as_is_stmt=yes
25210    else
25211      echo "configure: failed program was" >&5
25212      cat conftest.s >&5
25213    fi
25214    rm -f conftest.o conftest.s
25215  fi
25216fi
25217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25218$as_echo "$gcc_cv_as_is_stmt" >&6; }
25219if test $gcc_cv_as_is_stmt = yes; then
25220
25221$as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25222
25223fi
25224
25225
25226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25227$as_echo_n "checking assembler for line table discriminator support... " >&6; }
25228if ${gcc_cv_as_discriminator+:} false; then :
25229  $as_echo_n "(cached) " >&6
25230else
25231  gcc_cv_as_discriminator=no
25232  if test x$gcc_cv_as != x; then
25233    $as_echo '	.text
25234	.file 1 "conf.c"
25235	.loc 1 1 0 discriminator 1' > conftest.s
25236    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25237  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25238  (eval $ac_try) 2>&5
25239  ac_status=$?
25240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25241  test $ac_status = 0; }; }
25242    then
25243	gcc_cv_as_discriminator=yes
25244    else
25245      echo "configure: failed program was" >&5
25246      cat conftest.s >&5
25247    fi
25248    rm -f conftest.o conftest.s
25249  fi
25250fi
25251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25252$as_echo "$gcc_cv_as_discriminator" >&6; }
25253if test $gcc_cv_as_discriminator = yes; then
25254
25255$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25256
25257fi
25258
25259
25260# Catch the newlib flag of the same name so we can gate GCC features on it.
25261# Check whether --enable-newlib-nano-formatted-io was given.
25262if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25263  enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25264  yes|no)
25265    ;;
25266  *)
25267    as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25268    ;;
25269esac
25270fi
25271
25272
25273# Thread-local storage - the check is heavily parameterized.
25274conftest_s=
25275tls_as_opt=
25276case "$target" in
25277  alpha*-*-*)
25278    conftest_s='
25279	.section ".tdata","awT",@progbits
25280foo:	.long	25
25281	.text
25282	ldq	$27,__tls_get_addr($29)		!literal!1
25283	lda	$16,foo($29)			!tlsgd!1
25284	jsr	$26,($27),__tls_get_addr	!lituse_tlsgd!1
25285	ldq	$27,__tls_get_addr($29)		!literal!2
25286	lda	$16,foo($29)			!tlsldm!2
25287	jsr	$26,($27),__tls_get_addr	!lituse_tlsldm!2
25288	ldq	$1,foo($29)			!gotdtprel
25289	ldah	$2,foo($29)			!dtprelhi
25290	lda	$3,foo($2)			!dtprello
25291	lda	$4,foo($29)			!dtprel
25292	ldq	$1,foo($29)			!gottprel
25293	ldah	$2,foo($29)			!tprelhi
25294	lda	$3,foo($2)			!tprello
25295	lda	$4,foo($29)			!tprel'
25296	tls_as_opt=--fatal-warnings
25297	;;
25298  arc*-*-*)
25299    conftest_s='
25300	add_s r0,r0, @foo@tpoff'
25301	;;
25302  cris-*-*|crisv32-*-*)
25303    conftest_s='
25304	.section ".tdata","awT",@progbits
25305x:      .long   25
25306        .text
25307	move.d x:IE,$r10
25308	nop'
25309	tls_as_opt=--fatal-warnings
25310	;;
25311  frv*-*-*)
25312    conftest_s='
25313	.section ".tdata","awT",@progbits
25314x:      .long   25
25315        .text
25316        call    #gettlsoff(x)'
25317	;;
25318  hppa*-*-linux*)
25319    conftest_s='
25320t1:	.reg	%r20
25321t2:	.reg	%r21
25322gp:	.reg	%r19
25323	.section ".tdata","awT",@progbits
25324foo:	.long	25
25325	.text
25326	.align	4
25327	addil LT%foo-$tls_gdidx$,gp
25328	ldo RT%foo-$tls_gdidx$(%r1),%arg0
25329	b __tls_get_addr
25330	nop
25331	addil LT%foo-$tls_ldidx$,gp
25332	b __tls_get_addr
25333	ldo RT%foo-$tls_ldidx$(%r1),%arg0
25334	addil LR%foo-$tls_dtpoff$,%ret0
25335	ldo RR%foo-$tls_dtpoff$(%r1),%t1
25336	mfctl %cr27,%t1
25337	addil LT%foo-$tls_ieoff$,gp
25338	ldw RT%foo-$tls_ieoff$(%r1),%t2
25339	add %t1,%t2,%t3
25340	mfctl %cr27,%t1
25341	addil LR%foo-$tls_leoff$,%t1
25342	ldo RR%foo-$tls_leoff$(%r1),%t2'
25343	tls_as_opt=--fatal-warnings
25344	;;
25345  arm*-*-*)
25346    conftest_s='
25347	.section ".tdata","awT",%progbits
25348foo:	.long	25
25349	.text
25350.word foo(gottpoff)
25351.word foo(tpoff)
25352.word foo(tlsgd)
25353.word foo(tlsldm)
25354.word foo(tlsldo)'
25355	;;
25356  i[34567]86-*-* | x86_64-*-*)
25357    case "$target" in
25358      i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25359	on_solaris=yes
25360        ;;
25361      *)
25362	on_solaris=no
25363	;;
25364    esac
25365    if test x$on_solaris = xyes && test x$gas_flag = xno; then
25366      conftest_s='
25367	.section .tdata,"awt",@progbits'
25368      tls_section_flag=t
25369
25370$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25371
25372    else
25373      conftest_s='
25374	.section ".tdata","awT",@progbits'
25375      tls_section_flag=T
25376      tls_as_opt="--fatal-warnings"
25377    fi
25378    case "$target" in
25379      i[34567]86-*-*)
25380	if test x$on_solaris = xyes; then
25381	  case $gas_flag in
25382	    yes) tls_as_opt="$tls_as_opt --32" ;;
25383	  esac
25384	fi
25385	conftest_s="$conftest_s
25386foo:	.long	25
25387	.text
25388	movl	%gs:0, %eax
25389	leal	foo@tlsgd(,%ebx,1), %eax
25390	leal	foo@tlsldm(%ebx), %eax
25391	leal	foo@dtpoff(%eax), %edx
25392	movl	foo@gottpoff(%ebx), %eax
25393	subl	foo@gottpoff(%ebx), %eax
25394	addl	foo@gotntpoff(%ebx), %eax
25395	movl	foo@indntpoff, %eax
25396	movl	\$foo@tpoff, %eax
25397	subl	\$foo@tpoff, %eax
25398	leal	foo@ntpoff(%ecx), %eax"
25399	;;
25400      x86_64-*-*)
25401	if test x$on_solaris = xyes; then
25402	  case $gas_flag in
25403	    yes) tls_as_opt="$tls_as_opt --64" ;;
25404	    no)	 tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25405	  esac
25406	fi
25407	conftest_s="$conftest_s
25408foo:	.long	25
25409	.text
25410	movq	%fs:0, %rax
25411	leaq	foo@tlsgd(%rip), %rdi
25412	leaq	foo@tlsld(%rip), %rdi
25413	leaq	foo@dtpoff(%rax), %rdx
25414	movq	foo@gottpoff(%rip), %rax
25415	movq	\$foo@tpoff, %rax"
25416        ;;
25417    esac
25418    ;;
25419  ia64-*-*)
25420    conftest_s='
25421	.section ".tdata","awT",@progbits
25422foo:	data8	25
25423	.text
25424	addl	r16 = @ltoff(@dtpmod(foo#)), gp
25425	addl	r17 = @ltoff(@dtprel(foo#)), gp
25426	addl	r18 = @ltoff(@tprel(foo#)), gp
25427	addl	r19 = @dtprel(foo#), gp
25428	adds	r21 = @dtprel(foo#), r13
25429	movl	r23 = @dtprel(foo#)
25430	addl	r20 = @tprel(foo#), gp
25431	adds	r22 = @tprel(foo#), r13
25432	movl	r24 = @tprel(foo#)'
25433	tls_as_opt=--fatal-warnings
25434	;;
25435  microblaze*-*-*)
25436    conftest_s='
25437	.section .tdata,"awT",@progbits
25438x:
25439	.word 2
25440	.text
25441	addik r5,r20,x@TLSGD
25442	addik r5,r20,x@TLSLDM'
25443	tls_as_opt='--fatal-warnings'
25444	;;
25445  mips*-*-*)
25446    conftest_s='
25447	.section .tdata,"awT",@progbits
25448x:
25449	.word 2
25450	.text
25451	addiu $4, $28, %tlsgd(x)
25452	addiu $4, $28, %tlsldm(x)
25453	lui $4, %dtprel_hi(x)
25454	addiu $4, $4, %dtprel_lo(x)
25455	lw $4, %gottprel(x)($28)
25456	lui $4, %tprel_hi(x)
25457	addiu $4, $4, %tprel_lo(x)'
25458	tls_as_opt='-32 --fatal-warnings'
25459	;;
25460  m68k-*-*)
25461    conftest_s='
25462	.section .tdata,"awT",@progbits
25463x:
25464	.word 2
25465	.text
25466foo:
25467	move.l x@TLSGD(%a5),%a0
25468	move.l x@TLSLDM(%a5),%a0
25469	move.l x@TLSLDO(%a5),%a0
25470	move.l x@TLSIE(%a5),%a0
25471	move.l x@TLSLE(%a5),%a0'
25472	tls_as_opt='--fatal-warnings'
25473	;;
25474  nios2-*-*)
25475      conftest_s='
25476	.section ".tdata","awT",@progbits'
25477	tls_as_opt="--fatal-warnings"
25478	;;
25479  aarch64*-*-*)
25480    conftest_s='
25481	.section ".tdata","awT",%progbits
25482foo:	.long	25
25483	.text
25484	adrp  x0, :tlsgd:x
25485	add   x0, x0, #:tlsgd_lo12:x
25486        bl    __tls_get_addr
25487	nop'
25488	tls_as_opt='--fatal-warnings'
25489	;;
25490  or1k*-*-*)
25491    conftest_s='
25492	.section ".tdata","awT",@progbits
25493foo:	.long	25
25494	.text
25495	l.movhi	r3, tpoffha(foo)
25496	l.add	r3, r3, r10
25497	l.lwz	r4, tpofflo(foo)(r3)'
25498    tls_as_opt=--fatal-warnings
25499    ;;
25500  powerpc-ibm-aix*)
25501    conftest_s='
25502	.extern __get_tpointer
25503	.toc
25504LC..1:
25505	.tc a[TC],a[TL]@le
25506	.csect .text[PR]
25507.tlstest:
25508	lwz 9,LC..1(2)
25509	bla __get_tpointer
25510	lwzx 3,9,3
25511	.globl a
25512	.csect a[TL],4
25513a:
25514	.space 4'
25515	;;
25516  powerpc64*-*-*)
25517    conftest_s='
25518	.section ".tdata","awT",@progbits
25519	.align 3
25520ld0:	.space 8
25521ld1:	.space 8
25522x1:	.space 8
25523x2:	.space 8
25524x3:	.space 8
25525	.text
25526	addi 3,2,ld0@got@tlsgd
25527	bl .__tls_get_addr
25528	nop
25529	addi 3,2,ld1@toc
25530	bl .__tls_get_addr
25531	nop
25532	addi 3,2,x1@got@tlsld
25533	bl .__tls_get_addr
25534	nop
25535	addi 9,3,x1@dtprel
25536	bl .__tls_get_addr
25537	nop
25538	addis 9,3,x2@dtprel@ha
25539	addi 9,9,x2@dtprel@l
25540	bl .__tls_get_addr
25541	nop
25542	ld 9,x3@got@dtprel(2)
25543	add 9,9,3
25544	bl .__tls_get_addr
25545	nop'
25546	tls_as_opt="-a64 --fatal-warnings"
25547	;;
25548  powerpc*-*-*)
25549    conftest_s='
25550	.section ".tdata","awT",@progbits
25551	.align 2
25552ld0:	.space 4
25553ld1:	.space 4
25554x1:	.space 4
25555x2:	.space 4
25556x3:	.space 4
25557	.text
25558	addi 3,31,ld0@got@tlsgd
25559	bl __tls_get_addr
25560	addi 3,31,x1@got@tlsld
25561	bl __tls_get_addr
25562	addi 9,3,x1@dtprel
25563	addis 9,3,x2@dtprel@ha
25564	addi 9,9,x2@dtprel@l
25565	lwz 9,x3@got@tprel(31)
25566	add 9,9,x@tls
25567	addi 9,2,x1@tprel
25568	addis 9,2,x2@tprel@ha
25569	addi 9,9,x2@tprel@l'
25570	tls_as_opt="-a32 --fatal-warnings"
25571	;;
25572  riscv*-*-*)
25573    conftest_s='
25574	.section .tdata,"awT",@progbits
25575x:	.word 2
25576	.text
25577	la.tls.gd a0,x
25578        call __tls_get_addr'
25579	tls_as_opt='--fatal-warnings'
25580	;;
25581  s390-*-*)
25582    conftest_s='
25583	.section ".tdata","awT",@progbits
25584foo:	.long	25
25585	.text
25586	.long	foo@TLSGD
25587	.long	foo@TLSLDM
25588	.long	foo@DTPOFF
25589	.long	foo@NTPOFF
25590	.long	foo@GOTNTPOFF
25591	.long	foo@INDNTPOFF
25592	l	%r1,foo@GOTNTPOFF(%r12)
25593	l	%r1,0(%r1):tls_load:foo
25594	bas	%r14,0(%r1,%r13):tls_gdcall:foo
25595	bas	%r14,0(%r1,%r13):tls_ldcall:foo'
25596	tls_as_opt="-m31 --fatal-warnings"
25597	;;
25598  s390x-*-*)
25599    conftest_s='
25600	.section ".tdata","awT",@progbits
25601foo:	.long	25
25602	.text
25603	.quad	foo@TLSGD
25604	.quad	foo@TLSLDM
25605	.quad	foo@DTPOFF
25606	.quad	foo@NTPOFF
25607	.quad	foo@GOTNTPOFF
25608	lg	%r1,foo@GOTNTPOFF(%r12)
25609	larl	%r1,foo@INDNTPOFF
25610	brasl	%r14,__tls_get_offset@PLT:tls_gdcall:foo
25611	brasl	%r14,__tls_get_offset@PLT:tls_ldcall:foo'
25612	tls_as_opt="-m64 -Aesame --fatal-warnings"
25613	;;
25614  sh-*-* | sh[123456789lbe]*-*-*)
25615    conftest_s='
25616	.section ".tdata","awT",@progbits
25617foo:	.long	25
25618	.text
25619	.long	foo@TLSGD
25620	.long	foo@TLSLDM
25621	.long	foo@DTPOFF
25622	.long	foo@GOTTPOFF
25623	.long	foo@TPOFF'
25624	tls_as_opt=--fatal-warnings
25625	;;
25626  sparc*-*-*)
25627    case "$target" in
25628      sparc*-sun-solaris2.*)
25629	on_solaris=yes
25630	;;
25631      *)
25632	on_solaris=no
25633	;;
25634    esac
25635    if test x$on_solaris = xyes && test x$gas_flag = xno; then
25636      conftest_s='
25637	.section ".tdata",#alloc,#write,#tls'
25638    else
25639      conftest_s='
25640	.section ".tdata","awT",@progbits'
25641	tls_as_opt="-32 --fatal-warnings"
25642    fi
25643    conftest_s="$conftest_s
25644foo:	.long	25
25645	.text
25646	sethi	%tgd_hi22(foo), %o0
25647	add	%o0, %tgd_lo10(foo), %o1
25648	add	%l7, %o1, %o0, %tgd_add(foo)
25649	call	__tls_get_addr, %tgd_call(foo)
25650	sethi	%tldm_hi22(foo), %l1
25651	add	%l1, %tldm_lo10(foo), %l2
25652	add	%l7, %l2, %o0, %tldm_add(foo)
25653	call	__tls_get_addr, %tldm_call(foo)
25654	sethi	%tldo_hix22(foo), %l3
25655	xor	%l3, %tldo_lox10(foo), %l4
25656	add	%o0, %l4, %l5, %tldo_add(foo)
25657	sethi	%tie_hi22(foo), %o3
25658	add	%o3, %tie_lo10(foo), %o3
25659	ld	[%l7 + %o3], %o2, %tie_ld(foo)
25660	add	%g7, %o2, %o4, %tie_add(foo)
25661	sethi	%tle_hix22(foo), %l1
25662	xor	%l1, %tle_lox10(foo), %o5
25663	ld	[%g7 + %o5], %o1"
25664	;;
25665  tilepro*-*-*)
25666      conftest_s='
25667	.section ".tdata","awT",@progbits
25668foo:	.long	25
25669	.text
25670	addli	r0, zero, tls_gd(foo)
25671	auli	r0, zero, tls_gd_ha16(foo)
25672	addli	r0, r0, tls_gd_lo16(foo)
25673	jal	__tls_get_addr
25674	addli	r0, zero, tls_ie(foo)
25675	auli	r0, r0, tls_ie_ha16(foo)
25676	addli	r0, r0, tls_ie_lo16(foo)'
25677	tls_as_opt="--fatal-warnings"
25678	;;
25679  tilegx*-*-*)
25680      conftest_s='
25681	.section ".tdata","awT",@progbits
25682foo:	.long	25
25683	.text
25684	shl16insli r0, zero, hw0_last_tls_gd(foo)
25685	shl16insli r0, zero, hw1_last_tls_gd(foo)
25686	shl16insli r0, r0,   hw0_tls_gd(foo)
25687	jal	   __tls_get_addr
25688	shl16insli r0, zero, hw1_last_tls_ie(foo)
25689	shl16insli r0, r0,   hw0_tls_ie(foo)'
25690	tls_as_opt="--fatal-warnings"
25691	;;
25692  xtensa*-*-*)
25693    conftest_s='
25694	.section ".tdata","awT",@progbits
25695foo:	.long	25
25696	.text
25697	movi	a8, foo@TLSFUNC
25698	movi	a10, foo@TLSARG
25699	callx8.tls a8, foo@TLSCALL'
25700	;;
25701esac
25702set_have_as_tls=no
25703if test "x$enable_tls" = xno ; then
25704  : # TLS explicitly disabled.
25705elif test "x$enable_tls" = xyes ; then
25706  set_have_as_tls=yes # TLS explicitly enabled.
25707elif test -z "$conftest_s"; then
25708  : # If we don't have a check, assume no support.
25709else
25710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25711$as_echo_n "checking assembler for thread-local storage support... " >&6; }
25712if ${gcc_cv_as_tls+:} false; then :
25713  $as_echo_n "(cached) " >&6
25714else
25715  gcc_cv_as_tls=no
25716  if test x$gcc_cv_as != x; then
25717    $as_echo "$conftest_s" > conftest.s
25718    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25719  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25720  (eval $ac_try) 2>&5
25721  ac_status=$?
25722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25723  test $ac_status = 0; }; }
25724    then
25725	gcc_cv_as_tls=yes
25726    else
25727      echo "configure: failed program was" >&5
25728      cat conftest.s >&5
25729    fi
25730    rm -f conftest.o conftest.s
25731  fi
25732fi
25733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25734$as_echo "$gcc_cv_as_tls" >&6; }
25735if test $gcc_cv_as_tls = yes; then
25736  set_have_as_tls=yes
25737fi
25738
25739fi
25740if test $set_have_as_tls = yes ; then
25741
25742$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25743
25744fi
25745
25746# Target-specific assembler checks.
25747
25748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25749$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25750gcc_cv_ld_static_dynamic=no
25751gcc_cv_ld_static_option='-Bstatic'
25752gcc_cv_ld_dynamic_option='-Bdynamic'
25753if test $in_tree_ld = yes ; then
25754  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
25755    gcc_cv_ld_static_dynamic=yes
25756  fi
25757elif test x$gcc_cv_ld != x; then
25758  # Check if linker supports -Bstatic/-Bdynamic option
25759  if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25760     && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25761      gcc_cv_ld_static_dynamic=yes
25762  else
25763    case "$target" in
25764      # AIX ld uses -b flags
25765      *-*-aix4.[23]* | *-*-aix[5-9]*)
25766	gcc_cv_ld_static_dynamic=yes
25767	gcc_cv_ld_static_option="-bstatic"
25768	gcc_cv_ld_dynamic_option="-bdynamic"
25769	;;
25770      # HP-UX ld uses -a flags to select between shared and archive.
25771      *-*-hpux*)
25772	if test x"$gnu_ld" = xno; then
25773	  gcc_cv_ld_static_dynamic=yes
25774	  gcc_cv_ld_static_option="-aarchive_shared"
25775	  gcc_cv_ld_dynamic_option="-adefault"
25776	fi
25777	;;
25778      # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25779      *-*-solaris2*)
25780        gcc_cv_ld_static_dynamic=yes
25781        ;;
25782    esac
25783  fi
25784fi
25785if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25786
25787$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25788
25789
25790cat >>confdefs.h <<_ACEOF
25791#define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25792_ACEOF
25793
25794
25795cat >>confdefs.h <<_ACEOF
25796#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25797_ACEOF
25798
25799fi
25800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25801$as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25802
25803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25804$as_echo_n "checking linker --version-script option... " >&6; }
25805gcc_cv_ld_version_script=no
25806ld_version_script_option=''
25807if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25808  gcc_cv_ld_version_script=yes
25809  ld_version_script_option='--version-script'
25810elif test x$gcc_cv_ld != x; then
25811  case "$target" in
25812    # Solaris 2 ld always supports -M.  It also supports a subset of
25813    # --version-script since Solaris 11.4, but requires
25814    # -z gnu-version-script-compat to activate.
25815    *-*-solaris2*)
25816      gcc_cv_ld_version_script=yes
25817      ld_version_script_option='-M'
25818      ;;
25819  esac
25820fi
25821# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25823$as_echo "$gcc_cv_ld_version_script" >&6; }
25824
25825
25826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25827$as_echo_n "checking linker soname option... " >&6; }
25828gcc_cv_ld_soname=no
25829if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25830  gcc_cv_ld_soname=yes
25831  ld_soname_option='-soname'
25832elif test x$gcc_cv_ld != x; then
25833  case "$target" in
25834    *-*-darwin*)
25835      gcc_cv_ld_soname=yes
25836      ld_soname_option='-install_name'
25837      ;;
25838    # Solaris 2 ld always supports -h.  It also supports --soname for GNU
25839    # ld compatiblity since some Solaris 10 update.
25840    *-*-solaris2*)
25841      gcc_cv_ld_soname=yes
25842      ld_soname_option='-h'
25843      ;;
25844  esac
25845fi
25846# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25848$as_echo "$gcc_cv_ld_soname" >&6; }
25849
25850
25851if test x"$demangler_in_ld" = xyes; then
25852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25853$as_echo_n "checking linker --demangle support... " >&6; }
25854  gcc_cv_ld_demangle=no
25855  if test $in_tree_ld = yes; then
25856    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 \
25857      gcc_cv_ld_demangle=yes
25858    fi
25859  elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25860    # Check if the GNU linker supports --demangle option
25861    if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25862      gcc_cv_ld_demangle=yes
25863    fi
25864  fi
25865  if test x"$gcc_cv_ld_demangle" = xyes; then
25866
25867$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25868
25869  fi
25870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25871$as_echo "$gcc_cv_ld_demangle" >&6; }
25872fi
25873
25874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25875$as_echo_n "checking linker plugin support... " >&6; }
25876gcc_cv_lto_plugin=0
25877if test -f liblto_plugin.la; then
25878  save_ld_ver="$ld_ver"
25879  save_ld_vers_major="$ld_vers_major"
25880  save_ld_vers_minor="$ld_vers_minor"
25881  save_ld_is_gold="$ld_is_gold"
25882
25883  ld_is_gold=no
25884
25885  if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25886    ld_ver="GNU ld"
25887    # FIXME: ld_is_gold?
25888    ld_vers_major="$gcc_cv_gld_major_version"
25889    ld_vers_minor="$gcc_cv_gld_minor_version"
25890  else
25891    # Determine plugin linker version.
25892    # FIXME: Partial duplicate from above, generalize.
25893    ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25894    if echo "$ld_ver" | grep GNU > /dev/null; then
25895      if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25896        ld_is_gold=yes
25897        ld_vers=`echo $ld_ver | sed -n \
25898    	    -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25899      else
25900        ld_vers=`echo $ld_ver | sed -n \
25901    	    -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25902      fi
25903      ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25904      ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25905    fi
25906  fi
25907
25908  # Determine plugin support.
25909  if echo "$ld_ver" | grep GNU > /dev/null; then
25910    # Require GNU ld or gold 2.21+ for plugin support by default.
25911    if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25912      gcc_cv_lto_plugin=2
25913    # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25914    elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25915      gcc_cv_lto_plugin=1
25916    fi
25917  fi
25918
25919  ld_ver="$save_ld_ver"
25920  ld_vers_major="$save_ld_vers_major"
25921  ld_vers_minor="$save_ld_vers_minor"
25922  ld_is_gold="$save_ld_is_gold"
25923fi
25924
25925cat >>confdefs.h <<_ACEOF
25926#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25927_ACEOF
25928
25929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25930$as_echo "$gcc_cv_lto_plugin" >&6; }
25931
25932# Target OS-specific assembler checks.
25933
25934case "$target_os" in
25935  darwin*)
25936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25937$as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25938if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25939  $as_echo_n "(cached) " >&6
25940else
25941  gcc_cv_as_mmacosx_version_min=no
25942  if test x$gcc_cv_as != x; then
25943    $as_echo '.text' > conftest.s
25944    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25945  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25946  (eval $ac_try) 2>&5
25947  ac_status=$?
25948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25949  test $ac_status = 0; }; }
25950    then
25951	gcc_cv_as_mmacosx_version_min=yes
25952    else
25953      echo "configure: failed program was" >&5
25954      cat conftest.s >&5
25955    fi
25956    rm -f conftest.o conftest.s
25957  fi
25958fi
25959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25960$as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25961if test $gcc_cv_as_mmacosx_version_min = yes; then
25962
25963$as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25964
25965fi
25966
25967    ;;
25968esac
25969
25970# Target CPU-specific assembler checks.
25971
25972case "$target" in
25973  aarch64*-*-*)
25974    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25975$as_echo_n "checking assembler for -mabi option... " >&6; }
25976if ${gcc_cv_as_aarch64_mabi+:} false; then :
25977  $as_echo_n "(cached) " >&6
25978else
25979  gcc_cv_as_aarch64_mabi=no
25980  if test x$gcc_cv_as != x; then
25981    $as_echo '.text' > conftest.s
25982    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25983  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25984  (eval $ac_try) 2>&5
25985  ac_status=$?
25986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25987  test $ac_status = 0; }; }
25988    then
25989	gcc_cv_as_aarch64_mabi=yes
25990    else
25991      echo "configure: failed program was" >&5
25992      cat conftest.s >&5
25993    fi
25994    rm -f conftest.o conftest.s
25995  fi
25996fi
25997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25998$as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25999
26000
26001    if test x$gcc_cv_as_aarch64_mabi = xyes; then
26002
26003$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26004
26005    else
26006      if test x$with_abi = xilp32; then
26007        as_fn_error $? "Assembler does not support -mabi=ilp32.\
26008                     Upgrade the Assembler." "$LINENO" 5
26009      fi
26010      if test x"$with_multilib_list" = xdefault; then
26011        TM_MULTILIB_CONFIG=lp64
26012      else
26013        aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26014        for aarch64_multilib in ${aarch64_multilibs}; do
26015          case ${aarch64_multilib} in
26016            ilp32)
26017              as_fn_error $? "Assembler does not support -mabi=ilp32.\
26018                            Upgrade the Assembler." "$LINENO" 5
26019              ;;
26020            *)
26021              ;;
26022          esac
26023        done
26024      fi
26025    fi
26026    # Check if we have binutils support for relocations types needed by -fpic
26027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26028$as_echo_n "checking assembler for -fpic relocs... " >&6; }
26029if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26030  $as_echo_n "(cached) " >&6
26031else
26032  gcc_cv_as_aarch64_picreloc=no
26033  if test x$gcc_cv_as != x; then
26034    $as_echo '
26035	.text
26036	ldr     x0, [x2, #:gotpage_lo15:globalsym]
26037    ' > conftest.s
26038    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26039  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26040  (eval $ac_try) 2>&5
26041  ac_status=$?
26042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26043  test $ac_status = 0; }; }
26044    then
26045	gcc_cv_as_aarch64_picreloc=yes
26046    else
26047      echo "configure: failed program was" >&5
26048      cat conftest.s >&5
26049    fi
26050    rm -f conftest.o conftest.s
26051  fi
26052fi
26053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26054$as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26055if test $gcc_cv_as_aarch64_picreloc = yes; then
26056
26057$as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26058
26059fi
26060
26061    # Enable Branch Target Identification Mechanism and Return Address
26062    # Signing by default.
26063    # Check whether --enable-standard-branch-protection was given.
26064if test "${enable_standard_branch_protection+set}" = set; then :
26065  enableval=$enable_standard_branch_protection;
26066        case $enableval in
26067          yes)
26068            tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26069            ;;
26070          no)
26071            ;;
26072          *)
26073            as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26074  Valid choices are 'yes' and 'no'." "$LINENO" 5
26075            ;;
26076        esac
26077
26078fi
26079
26080    # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26081    # Check whether --enable-fix-cortex-a53-835769 was given.
26082if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26083  enableval=$enable_fix_cortex_a53_835769;
26084        case $enableval in
26085          yes)
26086            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26087            ;;
26088          no)
26089            ;;
26090          *)
26091            as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26092  Valid choices are 'yes' and 'no'." "$LINENO" 5
26093            ;;
26094
26095        esac
26096
26097fi
26098
26099    # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26100    # Check whether --enable-fix-cortex-a53-843419 was given.
26101if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26102  enableval=$enable_fix_cortex_a53_843419;
26103        case $enableval in
26104          yes)
26105            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26106            ;;
26107          no)
26108            ;;
26109          *)
26110            as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26111  Valid choices are 'yes' and 'no'." "$LINENO" 5
26112            ;;
26113
26114        esac
26115
26116fi
26117
26118    ;;
26119
26120  # All TARGET_ABI_OSF targets.
26121  alpha*-*-linux* | alpha*-*-*bsd*)
26122    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26123$as_echo_n "checking assembler for explicit relocation support... " >&6; }
26124if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26125  $as_echo_n "(cached) " >&6
26126else
26127  gcc_cv_as_alpha_explicit_relocs=no
26128  if test x$gcc_cv_as != x; then
26129    $as_echo '	.set nomacro
26130	.text
26131	extbl	$3, $2, $3	!lituse_bytoff!1
26132	ldq	$2, a($29)	!literal!1
26133	ldq	$4, b($29)	!literal!2
26134	ldq_u	$3, 0($2)	!lituse_base!1
26135	ldq	$27, f($29)	!literal!5
26136	jsr	$26, ($27), f	!lituse_jsr!5
26137	ldah	$29, 0($26)	!gpdisp!3
26138	lda	$0, c($29)	!gprel
26139	ldah	$1, d($29)	!gprelhigh
26140	lda	$1, d($1)	!gprellow
26141	lda	$29, 0($29)	!gpdisp!3' > conftest.s
26142    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26143  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26144  (eval $ac_try) 2>&5
26145  ac_status=$?
26146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26147  test $ac_status = 0; }; }
26148    then
26149	gcc_cv_as_alpha_explicit_relocs=yes
26150    else
26151      echo "configure: failed program was" >&5
26152      cat conftest.s >&5
26153    fi
26154    rm -f conftest.o conftest.s
26155  fi
26156fi
26157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26158$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26159if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26160
26161$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26162
26163fi
26164
26165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26166$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26167if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26168  $as_echo_n "(cached) " >&6
26169else
26170  gcc_cv_as_alpha_jsrdirect_relocs=no
26171  if test x$gcc_cv_as != x; then
26172    $as_echo '	.set nomacro
26173	.text
26174	ldq	$27, a($29)	!literal!1
26175	jsr	$26, ($27), a	!lituse_jsrdirect!1' > conftest.s
26176    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26177  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26178  (eval $ac_try) 2>&5
26179  ac_status=$?
26180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26181  test $ac_status = 0; }; }
26182    then
26183	gcc_cv_as_alpha_jsrdirect_relocs=yes
26184    else
26185      echo "configure: failed program was" >&5
26186      cat conftest.s >&5
26187    fi
26188    rm -f conftest.o conftest.s
26189  fi
26190fi
26191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26192$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26193if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26194
26195$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26196
26197fi
26198
26199    ;;
26200
26201  avr-*-*)
26202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26203$as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26204if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26205  $as_echo_n "(cached) " >&6
26206else
26207  gcc_cv_as_avr_mlink_relax=no
26208  if test x$gcc_cv_as != x; then
26209    $as_echo '.text' > conftest.s
26210    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26211  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26212  (eval $ac_try) 2>&5
26213  ac_status=$?
26214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26215  test $ac_status = 0; }; }
26216    then
26217	gcc_cv_as_avr_mlink_relax=yes
26218    else
26219      echo "configure: failed program was" >&5
26220      cat conftest.s >&5
26221    fi
26222    rm -f conftest.o conftest.s
26223  fi
26224fi
26225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26226$as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26227if test $gcc_cv_as_avr_mlink_relax = yes; then
26228
26229$as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26230
26231fi
26232
26233
26234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26235$as_echo_n "checking assembler for -mrmw option... " >&6; }
26236if ${gcc_cv_as_avr_mrmw+:} false; then :
26237  $as_echo_n "(cached) " >&6
26238else
26239  gcc_cv_as_avr_mrmw=no
26240  if test x$gcc_cv_as != x; then
26241    $as_echo '.text' > conftest.s
26242    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26243  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26244  (eval $ac_try) 2>&5
26245  ac_status=$?
26246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26247  test $ac_status = 0; }; }
26248    then
26249	gcc_cv_as_avr_mrmw=yes
26250    else
26251      echo "configure: failed program was" >&5
26252      cat conftest.s >&5
26253    fi
26254    rm -f conftest.o conftest.s
26255  fi
26256fi
26257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26258$as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26259if test $gcc_cv_as_avr_mrmw = yes; then
26260
26261$as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26262
26263fi
26264
26265
26266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26267$as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26268if ${gcc_cv_as_avr_mgccisr+:} false; then :
26269  $as_echo_n "(cached) " >&6
26270else
26271  gcc_cv_as_avr_mgccisr=no
26272  if test x$gcc_cv_as != x; then
26273    $as_echo '.text
26274      		    __gcc_isr 1
26275      		    __gcc_isr 2
26276      		    __gcc_isr 0,r24
26277      		   ' > conftest.s
26278    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
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    then
26285	gcc_cv_as_avr_mgccisr=yes
26286    else
26287      echo "configure: failed program was" >&5
26288      cat conftest.s >&5
26289    fi
26290    rm -f conftest.o conftest.s
26291  fi
26292fi
26293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26294$as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26295if test $gcc_cv_as_avr_mgccisr = yes; then
26296
26297$as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26298
26299fi
26300
26301
26302    # Check how default linker description file implements .rodata for
26303    # avrxmega3 (PR21472).  avr-gcc assumes .rodata is *not* loaded to
26304    # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26306$as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26307    cat > conftest.s <<EOF
26308        .section .rodata,"a",@progbits
26309        .global xxvaryy
26310    ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26311    xxvaryy:
26312        .word 1
26313EOF
26314    rm -f conftest.nm
26315    { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26316  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26317  (eval $ac_try) 2>&5
26318  ac_status=$?
26319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26320  test $ac_status = 0; }; }
26321    { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26322  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26323  (eval $ac_try) 2>&5
26324  ac_status=$?
26325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26326  test $ac_status = 0; }; }
26327    { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26328  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26329  (eval $ac_try) 2>&5
26330  ac_status=$?
26331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26332  test $ac_status = 0; }; }
26333    if test -s conftest.nm
26334    then
26335	if grep ' R xxvaryy' conftest.nm > /dev/null; then
26336	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26337$as_echo "yes" >&6; }
26338
26339$as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26340
26341	else
26342	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26343$as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26344	    echo "$as_me: nm output was" >&5
26345	    cat conftest.nm >&5
26346	    avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26347	    { $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
26348$as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26349	fi
26350    else
26351	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26352$as_echo "test failed" >&6; }
26353	echo "$as_me: failed program was" >&5
26354	cat conftest.s >&5
26355	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26356$as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26357    fi
26358    rm -f conftest.s conftest.o conftest.elf conftest.nm
26359    ;;
26360
26361  cris-*-*)
26362    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26363$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26364if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26365  $as_echo_n "(cached) " >&6
26366else
26367  gcc_cv_as_cris_no_mul_bug=no
26368  if test x$gcc_cv_as != x; then
26369    $as_echo '.text' > conftest.s
26370    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26371  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26372  (eval $ac_try) 2>&5
26373  ac_status=$?
26374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26375  test $ac_status = 0; }; }
26376    then
26377	gcc_cv_as_cris_no_mul_bug=yes
26378    else
26379      echo "configure: failed program was" >&5
26380      cat conftest.s >&5
26381    fi
26382    rm -f conftest.o conftest.s
26383  fi
26384fi
26385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26386$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26387if test $gcc_cv_as_cris_no_mul_bug = yes; then
26388
26389$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26390
26391fi
26392
26393    ;;
26394
26395  sparc*-*-*)
26396    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26397$as_echo_n "checking assembler for -relax option... " >&6; }
26398if ${gcc_cv_as_sparc_relax+:} false; then :
26399  $as_echo_n "(cached) " >&6
26400else
26401  gcc_cv_as_sparc_relax=no
26402  if test x$gcc_cv_as != x; then
26403    $as_echo '.text' > conftest.s
26404    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -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	gcc_cv_as_sparc_relax=yes
26412    else
26413      echo "configure: failed program was" >&5
26414      cat conftest.s >&5
26415    fi
26416    rm -f conftest.o conftest.s
26417  fi
26418fi
26419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26420$as_echo "$gcc_cv_as_sparc_relax" >&6; }
26421if test $gcc_cv_as_sparc_relax = yes; then
26422
26423$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26424
26425fi
26426
26427
26428    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26429$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26430if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26431  $as_echo_n "(cached) " >&6
26432else
26433  gcc_cv_as_sparc_gotdata_op=no
26434  if test x$gcc_cv_as != x; then
26435    $as_echo '.text
26436.align 4
26437foo:
26438	nop
26439bar:
26440	sethi %gdop_hix22(foo), %g1
26441	xor    %g1, %gdop_lox10(foo), %g1
26442	ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26443    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26444  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26445  (eval $ac_try) 2>&5
26446  ac_status=$?
26447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26448  test $ac_status = 0; }; }
26449    then
26450	if test x$gcc_cv_ld != x \
26451       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26452         if test x$gcc_cv_objdump != x; then
26453           if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26454              | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26455	       gcc_cv_as_sparc_gotdata_op=no
26456           else
26457	       gcc_cv_as_sparc_gotdata_op=yes
26458           fi
26459         fi
26460       fi
26461       rm -f conftest
26462    else
26463      echo "configure: failed program was" >&5
26464      cat conftest.s >&5
26465    fi
26466    rm -f conftest.o conftest.s
26467  fi
26468fi
26469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26470$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26471if test $gcc_cv_as_sparc_gotdata_op = yes; then
26472
26473$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26474
26475fi
26476
26477
26478    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26479$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26480if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26481  $as_echo_n "(cached) " >&6
26482else
26483  gcc_cv_as_sparc_ua_pcrel=no
26484  if test x$gcc_cv_as != x; then
26485    $as_echo '.text
26486foo:
26487	nop
26488.data
26489.align 4
26490.byte 0
26491.uaword %r_disp32(foo)' > conftest.s
26492    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26493  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26494  (eval $ac_try) 2>&5
26495  ac_status=$?
26496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26497  test $ac_status = 0; }; }
26498    then
26499	if test x$gcc_cv_ld != x \
26500       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26501	 gcc_cv_as_sparc_ua_pcrel=yes
26502       fi
26503       rm -f conftest
26504    else
26505      echo "configure: failed program was" >&5
26506      cat conftest.s >&5
26507    fi
26508    rm -f conftest.o conftest.s
26509  fi
26510fi
26511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26512$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26513if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26514
26515$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26516
26517
26518      { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26519$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26520if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26521  $as_echo_n "(cached) " >&6
26522else
26523  gcc_cv_as_sparc_ua_pcrel_hidden=no
26524  if test x$gcc_cv_as != x; then
26525    $as_echo '.data
26526.align 4
26527.byte 0x31
26528.uaword %r_disp32(foo)
26529.byte 0x32, 0x33, 0x34
26530.global foo
26531.hidden foo
26532foo:
26533.skip 4' > conftest.s
26534    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26535  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26536  (eval $ac_try) 2>&5
26537  ac_status=$?
26538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26539  test $ac_status = 0; }; }
26540    then
26541	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26542	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26543	 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26544	    | grep ' 31000000 07323334' > /dev/null 2>&1; then
26545	    if $gcc_cv_objdump -R conftest 2> /dev/null \
26546	       | grep 'DISP32' > /dev/null 2>&1; then
26547		:
26548	    else
26549		gcc_cv_as_sparc_ua_pcrel_hidden=yes
26550	    fi
26551	 fi
26552	 rm -f conftest
26553    else
26554      echo "configure: failed program was" >&5
26555      cat conftest.s >&5
26556    fi
26557    rm -f conftest.o conftest.s
26558  fi
26559fi
26560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26561$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26562if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26563
26564$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26565
26566fi
26567
26568
26569fi
26570 # unaligned pcrel relocs
26571
26572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26573$as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26574if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26575  $as_echo_n "(cached) " >&6
26576else
26577  gcc_cv_as_sparc_offsetable_lo10=no
26578  if test x$gcc_cv_as != x; then
26579    $as_echo '.text
26580	or %g1, %lo(ab) + 12, %g1
26581	or %g1, %lo(ab + 12), %g1' > conftest.s
26582    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26583  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26584  (eval $ac_try) 2>&5
26585  ac_status=$?
26586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26587  test $ac_status = 0; }; }
26588    then
26589	if test x$gcc_cv_objdump != x \
26590       && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26591          | grep ' 82106000 82106000' > /dev/null 2>&1; then
26592	 gcc_cv_as_sparc_offsetable_lo10=yes
26593       fi
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_offsetable_lo10" >&5
26602$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26603if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26604
26605$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26606
26607fi
26608
26609
26610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26611$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26612if ${gcc_cv_as_sparc_fmaf+:} false; then :
26613  $as_echo_n "(cached) " >&6
26614else
26615  gcc_cv_as_sparc_fmaf=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       fmaddd %f0, %f2, %f4, %f6
26622       addxccc %g1, %g2, %g3
26623       fsrl32 %f2, %f4, %f8
26624       fnaddd %f10, %f12, %f14' > conftest.s
26625    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26626  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26627  (eval $ac_try) 2>&5
26628  ac_status=$?
26629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26630  test $ac_status = 0; }; }
26631    then
26632	gcc_cv_as_sparc_fmaf=yes
26633    else
26634      echo "configure: failed program was" >&5
26635      cat conftest.s >&5
26636    fi
26637    rm -f conftest.o conftest.s
26638  fi
26639fi
26640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26641$as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26642if test $gcc_cv_as_sparc_fmaf = yes; then
26643
26644$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26645
26646fi
26647
26648
26649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26650$as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26651if ${gcc_cv_as_sparc_sparc4+:} false; then :
26652  $as_echo_n "(cached) " >&6
26653else
26654  gcc_cv_as_sparc_sparc4=no
26655  if test x$gcc_cv_as != x; then
26656    $as_echo '.text
26657       .register %g2, #scratch
26658       .register %g3, #scratch
26659       .align 4
26660       cxbe %g2, %g3, 1f
266611:     cwbneg %g2, %g3, 1f
266621:     sha1
26663       md5
26664       aes_kexpand0 %f4, %f6, %f8
26665       des_round %f38, %f40, %f42, %f44
26666       camellia_f %f54, %f56, %f58, %f60
26667       kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26668    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26669  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26670  (eval $ac_try) 2>&5
26671  ac_status=$?
26672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26673  test $ac_status = 0; }; }
26674    then
26675	gcc_cv_as_sparc_sparc4=yes
26676    else
26677      echo "configure: failed program was" >&5
26678      cat conftest.s >&5
26679    fi
26680    rm -f conftest.o conftest.s
26681  fi
26682fi
26683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26684$as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26685if test $gcc_cv_as_sparc_sparc4 = yes; then
26686
26687$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26688
26689fi
26690
26691
26692    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26693$as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26694if ${gcc_cv_as_sparc_sparc5+:} false; then :
26695  $as_echo_n "(cached) " >&6
26696else
26697  gcc_cv_as_sparc_sparc5=no
26698  if test x$gcc_cv_as != x; then
26699    $as_echo '.text
26700       .register %g2, #scratch
26701       .register %g3, #scratch
26702       .align 4
26703       subxc %g1, %g2, %g3
26704       fpadd8 %f0, %f2, %f4' > conftest.s
26705    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26706  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26707  (eval $ac_try) 2>&5
26708  ac_status=$?
26709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26710  test $ac_status = 0; }; }
26711    then
26712	gcc_cv_as_sparc_sparc5=yes
26713    else
26714      echo "configure: failed program was" >&5
26715      cat conftest.s >&5
26716    fi
26717    rm -f conftest.o conftest.s
26718  fi
26719fi
26720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26721$as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26722if test $gcc_cv_as_sparc_sparc5 = yes; then
26723
26724$as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26725
26726fi
26727
26728
26729    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26730$as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26731if ${gcc_cv_as_sparc_sparc6+:} false; then :
26732  $as_echo_n "(cached) " >&6
26733else
26734  gcc_cv_as_sparc_sparc6=no
26735  if test x$gcc_cv_as != x; then
26736    $as_echo '.text
26737       .register %g2, #scratch
26738       .register %g3, #scratch
26739       .align 4
26740       rd %entropy, %g1
26741       fpsll64x %f0, %f2, %f4' > conftest.s
26742    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26743  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26744  (eval $ac_try) 2>&5
26745  ac_status=$?
26746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26747  test $ac_status = 0; }; }
26748    then
26749	gcc_cv_as_sparc_sparc6=yes
26750    else
26751      echo "configure: failed program was" >&5
26752      cat conftest.s >&5
26753    fi
26754    rm -f conftest.o conftest.s
26755  fi
26756fi
26757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26758$as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26759if test $gcc_cv_as_sparc_sparc6 = yes; then
26760
26761$as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26762
26763fi
26764
26765
26766    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26767$as_echo_n "checking assembler for LEON instructions... " >&6; }
26768if ${gcc_cv_as_sparc_leon+:} false; then :
26769  $as_echo_n "(cached) " >&6
26770else
26771  gcc_cv_as_sparc_leon=no
26772  if test x$gcc_cv_as != x; then
26773    $as_echo '.text
26774       .register %g2, #scratch
26775       .register %g3, #scratch
26776       .align 4
26777       smac %g2, %g3, %g1
26778       umac %g2, %g3, %g1
26779       casa [%g2] 0xb, %g3, %g1' > conftest.s
26780    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26781  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26782  (eval $ac_try) 2>&5
26783  ac_status=$?
26784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26785  test $ac_status = 0; }; }
26786    then
26787	gcc_cv_as_sparc_leon=yes
26788    else
26789      echo "configure: failed program was" >&5
26790      cat conftest.s >&5
26791    fi
26792    rm -f conftest.o conftest.s
26793  fi
26794fi
26795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26796$as_echo "$gcc_cv_as_sparc_leon" >&6; }
26797if test $gcc_cv_as_sparc_leon = yes; then
26798
26799$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26800
26801fi
26802
26803    ;;
26804
26805  i[34567]86-*-* | x86_64-*-*)
26806    case $target_os in
26807      cygwin*)
26808	# Full C++ conformance when using a shared libstdc++-v3 requires some
26809	# support from the Cygwin DLL, which in more recent versions exports
26810	# wrappers to aid in interposing and redirecting operators new, delete,
26811	# etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
26812	# are configuring for a version of Cygwin that exports the wrappers.
26813	if test x$host = x$target && test x$host_cpu = xi686; then
26814	  ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26815if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26816  gcc_ac_cygwin_dll_wrappers=yes
26817else
26818  gcc_ac_cygwin_dll_wrappers=no
26819fi
26820
26821	else
26822	  # Can't check presence of libc functions during cross-compile, so
26823	  # we just have to assume we're building for an up-to-date target.
26824	  gcc_ac_cygwin_dll_wrappers=yes
26825	fi
26826
26827cat >>confdefs.h <<_ACEOF
26828#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26829_ACEOF
26830
26831    esac
26832    case $target_os in
26833      cygwin* | pe | mingw32*)
26834	# Recent binutils allows the three-operand form of ".comm" on PE.  This
26835	# definition is used unconditionally to initialise the default state of
26836	# the target option variable that governs usage of the feature.
26837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26838$as_echo_n "checking assembler for .comm with alignment... " >&6; }
26839if ${gcc_cv_as_comm_has_align+:} false; then :
26840  $as_echo_n "(cached) " >&6
26841else
26842  gcc_cv_as_comm_has_align=no
26843  if test x$gcc_cv_as != x; then
26844    $as_echo '.comm foo,1,32' > conftest.s
26845    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26846  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26847  (eval $ac_try) 2>&5
26848  ac_status=$?
26849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26850  test $ac_status = 0; }; }
26851    then
26852	gcc_cv_as_comm_has_align=yes
26853    else
26854      echo "configure: failed program was" >&5
26855      cat conftest.s >&5
26856    fi
26857    rm -f conftest.o conftest.s
26858  fi
26859fi
26860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26861$as_echo "$gcc_cv_as_comm_has_align" >&6; }
26862
26863
26864
26865cat >>confdefs.h <<_ACEOF
26866#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26867_ACEOF
26868
26869	# Used for DWARF 2 in PE
26870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26871$as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26872if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26873  $as_echo_n "(cached) " >&6
26874else
26875  gcc_cv_as_ix86_pe_secrel32=no
26876  if test x$gcc_cv_as != x; then
26877    $as_echo '.text
26878foo:	nop
26879.data
26880	.secrel32 foo' > conftest.s
26881    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26882  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26883  (eval $ac_try) 2>&5
26884  ac_status=$?
26885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26886  test $ac_status = 0; }; }
26887    then
26888	if test x$gcc_cv_ld != x \
26889	   && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26890	     gcc_cv_as_ix86_pe_secrel32=yes
26891	   fi
26892	   rm -f conftest
26893    else
26894      echo "configure: failed program was" >&5
26895      cat conftest.s >&5
26896    fi
26897    rm -f conftest.o conftest.s
26898  fi
26899fi
26900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26901$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26902if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26903
26904$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26905
26906fi
26907
26908	# Test if the assembler supports the extended form of the .section
26909	# directive that specifies section alignment.  LTO support uses this,
26910	# but normally only after installation, so we warn but don't fail the
26911	# configure if LTO is enabled but the assembler does not support it.
26912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26913$as_echo_n "checking assembler for .section with alignment... " >&6; }
26914if ${gcc_cv_as_section_has_align+:} false; then :
26915  $as_echo_n "(cached) " >&6
26916else
26917  gcc_cv_as_section_has_align=no
26918  if test x$gcc_cv_as != x; then
26919    $as_echo '.section lto_test,"dr0"' > conftest.s
26920    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26921  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26922  (eval $ac_try) 2>&5
26923  ac_status=$?
26924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26925  test $ac_status = 0; }; }
26926    then
26927	gcc_cv_as_section_has_align=yes
26928    else
26929      echo "configure: failed program was" >&5
26930      cat conftest.s >&5
26931    fi
26932    rm -f conftest.o conftest.s
26933  fi
26934fi
26935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26936$as_echo "$gcc_cv_as_section_has_align" >&6; }
26937
26938
26939	if test x$gcc_cv_as_section_has_align != xyes; then
26940	  case ",$enable_languages," in
26941	    *,lto,*)
26942	      { $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
26943$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;}
26944	      ;;
26945	  esac
26946	fi
26947	;;
26948    esac
26949    case $target_os in
26950       darwin2[0-9]* | darwin19*)
26951        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
26952$as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
26953if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
26954  $as_echo_n "(cached) " >&6
26955else
26956  gcc_cv_as_mllvm_x86_pad_for_align=no
26957  if test x$gcc_cv_as != x; then
26958    $as_echo '.text' > conftest.s
26959    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
26960  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26961  (eval $ac_try) 2>&5
26962  ac_status=$?
26963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26964  test $ac_status = 0; }; }
26965    then
26966	gcc_cv_as_mllvm_x86_pad_for_align=yes
26967    else
26968      echo "configure: failed program was" >&5
26969      cat conftest.s >&5
26970    fi
26971    rm -f conftest.o conftest.s
26972  fi
26973fi
26974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
26975$as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
26976if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
26977
26978$as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
26979
26980fi
26981
26982       ;;
26983    esac
26984
26985    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26986$as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26987if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26988  $as_echo_n "(cached) " >&6
26989else
26990  gcc_cv_as_ix86_xbrace_comment=no
26991  if test x$gcc_cv_as != x; then
26992    $as_echo '.text' > conftest.s
26993    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26994  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26995  (eval $ac_try) 2>&5
26996  ac_status=$?
26997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26998  test $ac_status = 0; }; }
26999    then
27000	gcc_cv_as_ix86_xbrace_comment=yes
27001    else
27002      echo "configure: failed program was" >&5
27003      cat conftest.s >&5
27004    fi
27005    rm -f conftest.o conftest.s
27006  fi
27007fi
27008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27009$as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27010if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27011
27012$as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27013
27014fi
27015
27016
27017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27018$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27019if ${gcc_cv_as_ix86_filds+:} false; then :
27020  $as_echo_n "(cached) " >&6
27021else
27022  gcc_cv_as_ix86_filds=no
27023  if test x$gcc_cv_as != x; then
27024    $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27025    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27026  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27027  (eval $ac_try) 2>&5
27028  ac_status=$?
27029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27030  test $ac_status = 0; }; }
27031    then
27032	gcc_cv_as_ix86_filds=yes
27033    else
27034      echo "configure: failed program was" >&5
27035      cat conftest.s >&5
27036    fi
27037    rm -f conftest.o conftest.s
27038  fi
27039fi
27040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27041$as_echo "$gcc_cv_as_ix86_filds" >&6; }
27042if test $gcc_cv_as_ix86_filds = yes; then
27043
27044$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27045
27046fi
27047
27048
27049    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27050$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27051if ${gcc_cv_as_ix86_fildq+:} false; then :
27052  $as_echo_n "(cached) " >&6
27053else
27054  gcc_cv_as_ix86_fildq=no
27055  if test x$gcc_cv_as != x; then
27056    $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27057    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27058  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27059  (eval $ac_try) 2>&5
27060  ac_status=$?
27061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27062  test $ac_status = 0; }; }
27063    then
27064	gcc_cv_as_ix86_fildq=yes
27065    else
27066      echo "configure: failed program was" >&5
27067      cat conftest.s >&5
27068    fi
27069    rm -f conftest.o conftest.s
27070  fi
27071fi
27072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27073$as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27074if test $gcc_cv_as_ix86_fildq = yes; then
27075
27076$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27077
27078fi
27079
27080
27081    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27082$as_echo_n "checking assembler for cmov syntax... " >&6; }
27083if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27084  $as_echo_n "(cached) " >&6
27085else
27086  gcc_cv_as_ix86_cmov_sun_syntax=no
27087  if test x$gcc_cv_as != x; then
27088    $as_echo 'cmovl.l %edx, %eax' > conftest.s
27089    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27090  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27091  (eval $ac_try) 2>&5
27092  ac_status=$?
27093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27094  test $ac_status = 0; }; }
27095    then
27096	gcc_cv_as_ix86_cmov_sun_syntax=yes
27097    else
27098      echo "configure: failed program was" >&5
27099      cat conftest.s >&5
27100    fi
27101    rm -f conftest.o conftest.s
27102  fi
27103fi
27104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27105$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27106if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27107
27108$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27109
27110fi
27111
27112
27113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27114$as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27115if ${gcc_cv_as_ix86_ffreep+:} false; then :
27116  $as_echo_n "(cached) " >&6
27117else
27118  gcc_cv_as_ix86_ffreep=no
27119  if test x$gcc_cv_as != x; then
27120    $as_echo 'ffreep %st(1)' > conftest.s
27121    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27122  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27123  (eval $ac_try) 2>&5
27124  ac_status=$?
27125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27126  test $ac_status = 0; }; }
27127    then
27128	gcc_cv_as_ix86_ffreep=yes
27129    else
27130      echo "configure: failed program was" >&5
27131      cat conftest.s >&5
27132    fi
27133    rm -f conftest.o conftest.s
27134  fi
27135fi
27136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27137$as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27138if test $gcc_cv_as_ix86_ffreep = yes; then
27139
27140$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27141
27142fi
27143
27144
27145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27146$as_echo_n "checking assembler for .quad directive... " >&6; }
27147if ${gcc_cv_as_ix86_quad+:} false; then :
27148  $as_echo_n "(cached) " >&6
27149else
27150  gcc_cv_as_ix86_quad=no
27151  if test x$gcc_cv_as != x; then
27152    $as_echo '.quad 0' > conftest.s
27153    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27154  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27155  (eval $ac_try) 2>&5
27156  ac_status=$?
27157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27158  test $ac_status = 0; }; }
27159    then
27160	gcc_cv_as_ix86_quad=yes
27161    else
27162      echo "configure: failed program was" >&5
27163      cat conftest.s >&5
27164    fi
27165    rm -f conftest.o conftest.s
27166  fi
27167fi
27168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27169$as_echo "$gcc_cv_as_ix86_quad" >&6; }
27170if test $gcc_cv_as_ix86_quad = yes; then
27171
27172$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27173
27174fi
27175
27176
27177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27178$as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27179if ${gcc_cv_as_ix86_sahf+:} false; then :
27180  $as_echo_n "(cached) " >&6
27181else
27182  gcc_cv_as_ix86_sahf=no
27183  if test x$gcc_cv_as != x; then
27184    $as_echo '.code64
27185       sahf' > conftest.s
27186    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27187  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27188  (eval $ac_try) 2>&5
27189  ac_status=$?
27190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27191  test $ac_status = 0; }; }
27192    then
27193	gcc_cv_as_ix86_sahf=yes
27194    else
27195      echo "configure: failed program was" >&5
27196      cat conftest.s >&5
27197    fi
27198    rm -f conftest.o conftest.s
27199  fi
27200fi
27201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27202$as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27203if test $gcc_cv_as_ix86_sahf = yes; then
27204
27205$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27206
27207fi
27208
27209
27210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27211$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27212if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27213  $as_echo_n "(cached) " >&6
27214else
27215  gcc_cv_as_ix86_interunit_movq=no
27216  if test x$gcc_cv_as != x; then
27217    $as_echo '.code64
27218       movq %mm0, %rax
27219       movq %rax, %xmm0' > conftest.s
27220    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27221  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27222  (eval $ac_try) 2>&5
27223  ac_status=$?
27224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27225  test $ac_status = 0; }; }
27226    then
27227	gcc_cv_as_ix86_interunit_movq=yes
27228    else
27229      echo "configure: failed program was" >&5
27230      cat conftest.s >&5
27231    fi
27232    rm -f conftest.o conftest.s
27233  fi
27234fi
27235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27236$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27237
27238
27239
27240cat >>confdefs.h <<_ACEOF
27241#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27242_ACEOF
27243
27244
27245    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27246$as_echo_n "checking assembler for hle prefixes... " >&6; }
27247if ${gcc_cv_as_ix86_hle+:} false; then :
27248  $as_echo_n "(cached) " >&6
27249else
27250  gcc_cv_as_ix86_hle=no
27251  if test x$gcc_cv_as != x; then
27252    $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27253    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27254  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27255  (eval $ac_try) 2>&5
27256  ac_status=$?
27257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27258  test $ac_status = 0; }; }
27259    then
27260	gcc_cv_as_ix86_hle=yes
27261    else
27262      echo "configure: failed program was" >&5
27263      cat conftest.s >&5
27264    fi
27265    rm -f conftest.o conftest.s
27266  fi
27267fi
27268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27269$as_echo "$gcc_cv_as_ix86_hle" >&6; }
27270if test $gcc_cv_as_ix86_hle = yes; then
27271
27272$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27273
27274fi
27275
27276
27277    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27278$as_echo_n "checking assembler for swap suffix... " >&6; }
27279if ${gcc_cv_as_ix86_swap+:} false; then :
27280  $as_echo_n "(cached) " >&6
27281else
27282  gcc_cv_as_ix86_swap=no
27283  if test x$gcc_cv_as != x; then
27284    $as_echo 'movl.s %esp, %ebp' > conftest.s
27285    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27286  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27287  (eval $ac_try) 2>&5
27288  ac_status=$?
27289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27290  test $ac_status = 0; }; }
27291    then
27292	gcc_cv_as_ix86_swap=yes
27293    else
27294      echo "configure: failed program was" >&5
27295      cat conftest.s >&5
27296    fi
27297    rm -f conftest.o conftest.s
27298  fi
27299fi
27300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27301$as_echo "$gcc_cv_as_ix86_swap" >&6; }
27302if test $gcc_cv_as_ix86_swap = yes; then
27303
27304$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27305
27306fi
27307
27308
27309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27310$as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27311if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27312  $as_echo_n "(cached) " >&6
27313else
27314  gcc_cv_as_ix86_diff_sect_delta=no
27315  if test x$gcc_cv_as != x; then
27316    $as_echo '.section .rodata
27317.L1:
27318        .long .L2-.L1
27319        .long .L3-.L1
27320        .text
27321.L3:    nop
27322.L2:    nop' > conftest.s
27323    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27324  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27325  (eval $ac_try) 2>&5
27326  ac_status=$?
27327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27328  test $ac_status = 0; }; }
27329    then
27330	gcc_cv_as_ix86_diff_sect_delta=yes
27331    else
27332      echo "configure: failed program was" >&5
27333      cat conftest.s >&5
27334    fi
27335    rm -f conftest.o conftest.s
27336  fi
27337fi
27338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27339$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27340if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27341
27342$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27343
27344fi
27345
27346
27347    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27348$as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27349if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27350  $as_echo_n "(cached) " >&6
27351else
27352  gcc_cv_as_ix86_rep_lock_prefix=no
27353  if test x$gcc_cv_as != x; then
27354    $as_echo 'rep movsl
27355	 rep ret
27356	 rep nop
27357	 rep bsf %ecx, %eax
27358	 rep bsr %ecx, %eax
27359	 lock addl %edi, (%eax,%esi)
27360	 lock orl $0, (%esp)' > conftest.s
27361    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27362  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27363  (eval $ac_try) 2>&5
27364  ac_status=$?
27365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27366  test $ac_status = 0; }; }
27367    then
27368	gcc_cv_as_ix86_rep_lock_prefix=yes
27369    else
27370      echo "configure: failed program was" >&5
27371      cat conftest.s >&5
27372    fi
27373    rm -f conftest.o conftest.s
27374  fi
27375fi
27376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27377$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27378if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27379
27380$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27381
27382fi
27383
27384
27385    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27386$as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27387if ${gcc_cv_as_ix86_ud2+:} false; then :
27388  $as_echo_n "(cached) " >&6
27389else
27390  gcc_cv_as_ix86_ud2=no
27391  if test x$gcc_cv_as != x; then
27392    $as_echo 'ud2' > conftest.s
27393    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27394  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27395  (eval $ac_try) 2>&5
27396  ac_status=$?
27397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27398  test $ac_status = 0; }; }
27399    then
27400	gcc_cv_as_ix86_ud2=yes
27401    else
27402      echo "configure: failed program was" >&5
27403      cat conftest.s >&5
27404    fi
27405    rm -f conftest.o conftest.s
27406  fi
27407fi
27408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27409$as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27410if test $gcc_cv_as_ix86_ud2 = yes; then
27411
27412$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27413
27414fi
27415
27416
27417    # Enforce 32-bit output with gas and gld.
27418    if test x$gas = xyes; then
27419      as_ix86_gas_32_opt="--32"
27420    fi
27421    if echo "$ld_ver" | grep GNU > /dev/null; then
27422      if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27423        ld_ix86_gld_32_opt="-melf_i386_sol2"
27424      else
27425        ld_ix86_gld_32_opt="-melf_i386"
27426      fi
27427    fi
27428
27429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27430$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27431if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27432  $as_echo_n "(cached) " >&6
27433else
27434  gcc_cv_as_ix86_tlsgdplt=no
27435  if test x$gcc_cv_as != x; then
27436    $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
27437    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27438  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27439  (eval $ac_try) 2>&5
27440  ac_status=$?
27441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27442  test $ac_status = 0; }; }
27443    then
27444	if test x$gcc_cv_ld != x \
27445	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27446	   gcc_cv_as_ix86_tlsgdplt=yes
27447	 fi
27448	 rm -f conftest
27449    else
27450      echo "configure: failed program was" >&5
27451      cat conftest.s >&5
27452    fi
27453    rm -f conftest.o conftest.s
27454  fi
27455fi
27456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27457$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27458if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27459
27460$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27461
27462fi
27463
27464
27465    conftest_s='
27466	.section .tdata,"aw'$tls_section_flag'",@progbits
27467tls_ld:
27468	.section .text,"ax",@progbits
27469	 call    tls_ld@tlsldmplt'
27470
27471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27472$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27473if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27474  $as_echo_n "(cached) " >&6
27475else
27476  gcc_cv_as_ix86_tlsldmplt=no
27477  if test x$gcc_cv_as != x; then
27478    $as_echo "$conftest_s" > conftest.s
27479    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27480  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27481  (eval $ac_try) 2>&5
27482  ac_status=$?
27483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27484  test $ac_status = 0; }; }
27485    then
27486	if test x$gcc_cv_ld != x \
27487	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27488	   gcc_cv_as_ix86_tlsldmplt=yes
27489	 fi
27490	 rm -f conftest
27491    else
27492      echo "configure: failed program was" >&5
27493      cat conftest.s >&5
27494    fi
27495    rm -f conftest.o conftest.s
27496  fi
27497fi
27498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27499$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27500
27501
27502
27503cat >>confdefs.h <<_ACEOF
27504#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27505_ACEOF
27506
27507
27508    conftest_s='
27509	.section .text,"ax",@progbits
27510        .globl  _start
27511        .type   _start, @function
27512_start:
27513	leal	value@tlsldm(%ebx), %eax
27514	call	___tls_get_addr@plt
27515
27516        .section .tdata,"aw'$tls_section_flag'",@progbits
27517        .type	value, @object
27518value:'
27519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27520$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27521if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27522  $as_echo_n "(cached) " >&6
27523else
27524  gcc_cv_as_ix86_tlsldm=no
27525  if test x$gcc_cv_as != x; then
27526    $as_echo "$conftest_s" > conftest.s
27527    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27528  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27529  (eval $ac_try) 2>&5
27530  ac_status=$?
27531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27532  test $ac_status = 0; }; }
27533    then
27534	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27535	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27536	   if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27537	      || dis conftest 2>/dev/null | grep nop > /dev/null; then
27538	     gcc_cv_as_ix86_tlsldm=yes
27539	   fi
27540	 fi
27541	 rm -f conftest
27542    else
27543      echo "configure: failed program was" >&5
27544      cat conftest.s >&5
27545    fi
27546    rm -f conftest.o conftest.s
27547  fi
27548fi
27549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27550$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27551
27552
27553
27554cat >>confdefs.h <<_ACEOF
27555#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27556_ACEOF
27557
27558
27559    conftest_s='
27560	.data
27561bar:
27562	.byte 1
27563	.text
27564	.global _start
27565_start:
27566	 cmpl $0, bar@GOT
27567	 jmp *_start@GOT'
27568    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27569$as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27570if ${gcc_cv_as_ix86_got32x+:} false; then :
27571  $as_echo_n "(cached) " >&6
27572else
27573  gcc_cv_as_ix86_got32x=no
27574  if test x$gcc_cv_as != x; then
27575    $as_echo "$conftest_s" > conftest.s
27576    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27577  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27578  (eval $ac_try) 2>&5
27579  ac_status=$?
27580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27581  test $ac_status = 0; }; }
27582    then
27583	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27584	    && test x$gcc_cv_readelf != x \
27585	    && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27586	       | grep R_386_GOT32X > /dev/null 2>&1 \
27587	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27588	   if $gcc_cv_objdump -dw conftest 2>&1 \
27589	      | grep 0xffffff > /dev/null 2>&1; then
27590	     gcc_cv_as_ix86_got32x=no
27591	   else
27592	     gcc_cv_as_ix86_got32x=yes
27593	   fi
27594	 fi
27595	 rm -f conftest
27596    else
27597      echo "configure: failed program was" >&5
27598      cat conftest.s >&5
27599    fi
27600    rm -f conftest.o conftest.s
27601  fi
27602fi
27603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27604$as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27605
27606
27607
27608cat >>confdefs.h <<_ACEOF
27609#define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27610_ACEOF
27611
27612
27613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27614$as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27615if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27616  $as_echo_n "(cached) " >&6
27617else
27618  gcc_cv_as_ix86_gotoff_in_data=no
27619  if test x$gcc_cv_as != x; then
27620    $as_echo '	.text
27621.L0:
27622	nop
27623	.data
27624	.long .L0@GOTOFF' > conftest.s
27625    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27626  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27627  (eval $ac_try) 2>&5
27628  ac_status=$?
27629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27630  test $ac_status = 0; }; }
27631    then
27632	gcc_cv_as_ix86_gotoff_in_data=yes
27633    else
27634      echo "configure: failed program was" >&5
27635      cat conftest.s >&5
27636    fi
27637    rm -f conftest.o conftest.s
27638  fi
27639fi
27640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27641$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27642
27643
27644
27645cat >>confdefs.h <<_ACEOF
27646#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27647_ACEOF
27648
27649
27650    conftest_s='
27651	.section .text,"ax",@progbits
27652	.globl  _start
27653	.type   _start, @function
27654_start:
27655	leal	ld@tlsldm(%ecx), %eax
27656	call	*___tls_get_addr@GOT(%ecx)
27657	leal	gd@tlsgd(%ecx), %eax
27658	call	*___tls_get_addr@GOT(%ecx)
27659
27660	.section .tdata,"aw'$tls_section_flag'",@progbits
27661	.type	ld, @object
27662ld:
27663	.byte 0
27664	.globl  gd
27665	.type	gd, @object
27666gd:
27667	.byte 0'
27668    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27669$as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27670if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27671  $as_echo_n "(cached) " >&6
27672else
27673  gcc_cv_as_ix86_tls_get_addr_via_got=no
27674  if test x$gcc_cv_as != x; then
27675    $as_echo "$conftest_s" > conftest.s
27676    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27677  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27678  (eval $ac_try) 2>&5
27679  ac_status=$?
27680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27681  test $ac_status = 0; }; }
27682    then
27683	if test x$gcc_cv_ld != x \
27684	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27685	   gcc_cv_as_ix86_tls_get_addr_via_got=yes
27686	 fi
27687	 rm -f conftest
27688    else
27689      echo "configure: failed program was" >&5
27690      cat conftest.s >&5
27691    fi
27692    rm -f conftest.o conftest.s
27693  fi
27694fi
27695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27696$as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27697
27698
27699
27700cat >>confdefs.h <<_ACEOF
27701#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`
27702_ACEOF
27703
27704    ;;
27705
27706  ia64*-*-*)
27707    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27708$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27709if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27710  $as_echo_n "(cached) " >&6
27711else
27712  gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27713  if test x$gcc_cv_as != x; then
27714    $as_echo '	.text
27715	addl r15 = @ltoffx(x#), gp
27716	;;
27717	ld8.mov r16 = [r15], x#
27718' > conftest.s
27719    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27720  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27721  (eval $ac_try) 2>&5
27722  ac_status=$?
27723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27724  test $ac_status = 0; }; }
27725    then
27726	gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27727    else
27728      echo "configure: failed program was" >&5
27729      cat conftest.s >&5
27730    fi
27731    rm -f conftest.o conftest.s
27732  fi
27733fi
27734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27735$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27736if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27737
27738$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27739
27740fi
27741
27742
27743    ;;
27744
27745  powerpc*-*-*)
27746
27747    case $target in
27748      *-*-darwin*)
27749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27750$as_echo_n "checking assembler for .machine directive support... " >&6; }
27751if ${gcc_cv_as_machine_directive+:} false; then :
27752  $as_echo_n "(cached) " >&6
27753else
27754  gcc_cv_as_machine_directive=no
27755  if test x$gcc_cv_as != x; then
27756    $as_echo '	.machine ppc7400' > conftest.s
27757    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27758  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27759  (eval $ac_try) 2>&5
27760  ac_status=$?
27761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27762  test $ac_status = 0; }; }
27763    then
27764	gcc_cv_as_machine_directive=yes
27765    else
27766      echo "configure: failed program was" >&5
27767      cat conftest.s >&5
27768    fi
27769    rm -f conftest.o conftest.s
27770  fi
27771fi
27772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27773$as_echo "$gcc_cv_as_machine_directive" >&6; }
27774
27775
27776	if test x$gcc_cv_as_machine_directive != xyes; then
27777	  echo "*** This target requires an assembler supporting \".machine\"" >&2
27778	  echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27779	  test x$build = x$target && exit 1
27780	fi
27781        ;;
27782    esac
27783
27784    case $target in
27785      *-*-aix*) conftest_s='	.machine "pwr5"
27786	.csect .text[PR]
27787	mfcr 3,128';;
27788      *-*-darwin*) conftest_s='	.text
27789	mfcr r3,128';;
27790      *) conftest_s='	.machine power4
27791	.text
27792	mfcr 3,128';;
27793    esac
27794
27795    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27796$as_echo_n "checking assembler for mfcr field support... " >&6; }
27797if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27798  $as_echo_n "(cached) " >&6
27799else
27800  gcc_cv_as_powerpc_mfcrf=no
27801  if test x$gcc_cv_as != x; then
27802    $as_echo "$conftest_s" > conftest.s
27803    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27804  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27805  (eval $ac_try) 2>&5
27806  ac_status=$?
27807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27808  test $ac_status = 0; }; }
27809    then
27810	gcc_cv_as_powerpc_mfcrf=yes
27811    else
27812      echo "configure: failed program was" >&5
27813      cat conftest.s >&5
27814    fi
27815    rm -f conftest.o conftest.s
27816  fi
27817fi
27818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27819$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27820if test $gcc_cv_as_powerpc_mfcrf = yes; then
27821
27822$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27823
27824fi
27825
27826
27827    case $target in
27828      *-*-aix*) conftest_s='	.csect .text[PR]
27829LCF..0:
27830	addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27831      *-*-darwin*)
27832	conftest_s='	.text
27833LCF0:
27834	addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27835      *) conftest_s='	.text
27836.LCF0:
27837	addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27838    esac
27839
27840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27841$as_echo_n "checking assembler for rel16 relocs... " >&6; }
27842if ${gcc_cv_as_powerpc_rel16+:} false; then :
27843  $as_echo_n "(cached) " >&6
27844else
27845  gcc_cv_as_powerpc_rel16=no
27846  if test x$gcc_cv_as != x; then
27847    $as_echo "$conftest_s" > conftest.s
27848    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27849  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27850  (eval $ac_try) 2>&5
27851  ac_status=$?
27852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27853  test $ac_status = 0; }; }
27854    then
27855	gcc_cv_as_powerpc_rel16=yes
27856    else
27857      echo "configure: failed program was" >&5
27858      cat conftest.s >&5
27859    fi
27860    rm -f conftest.o conftest.s
27861  fi
27862fi
27863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27864$as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27865if test $gcc_cv_as_powerpc_rel16 = yes; then
27866
27867$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27868
27869fi
27870
27871
27872    case $target in
27873      *-*-aix*) conftest_s='	.machine "pwr7"
27874	.csect .text[PR]
27875	lxvd2x 1,2,3';;
27876      *) conftest_s='	.machine power7
27877	.text
27878	lxvd2x 1,2,3';;
27879    esac
27880
27881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27882$as_echo_n "checking assembler for vector-scalar support... " >&6; }
27883if ${gcc_cv_as_powerpc_vsx+:} false; then :
27884  $as_echo_n "(cached) " >&6
27885else
27886  gcc_cv_as_powerpc_vsx=no
27887  if test x$gcc_cv_as != x; then
27888    $as_echo "$conftest_s" > conftest.s
27889    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27890  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27891  (eval $ac_try) 2>&5
27892  ac_status=$?
27893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27894  test $ac_status = 0; }; }
27895    then
27896	gcc_cv_as_powerpc_vsx=yes
27897    else
27898      echo "configure: failed program was" >&5
27899      cat conftest.s >&5
27900    fi
27901    rm -f conftest.o conftest.s
27902  fi
27903fi
27904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27905$as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27906if test $gcc_cv_as_powerpc_vsx = yes; then
27907
27908$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27909
27910fi
27911
27912
27913    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27914$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27915if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27916  $as_echo_n "(cached) " >&6
27917else
27918  gcc_cv_as_powerpc_gnu_attribute=no
27919  if test x$gcc_cv_as != x; then
27920    $as_echo '.gnu_attribute 4,1' > conftest.s
27921    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27922  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27923  (eval $ac_try) 2>&5
27924  ac_status=$?
27925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27926  test $ac_status = 0; }; }
27927    then
27928	gcc_cv_as_powerpc_gnu_attribute=yes
27929    else
27930      echo "configure: failed program was" >&5
27931      cat conftest.s >&5
27932    fi
27933    rm -f conftest.o conftest.s
27934  fi
27935fi
27936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27937$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27938if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27939
27940$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27941
27942fi
27943
27944
27945    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27946$as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27947if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27948  $as_echo_n "(cached) " >&6
27949else
27950  gcc_cv_as_powerpc_entry_markers=no
27951  if test x$gcc_cv_as != x; then
27952    $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27953    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27954  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27955  (eval $ac_try) 2>&5
27956  ac_status=$?
27957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27958  test $ac_status = 0; }; }
27959    then
27960	gcc_cv_as_powerpc_entry_markers=yes
27961    else
27962      echo "configure: failed program was" >&5
27963      cat conftest.s >&5
27964    fi
27965    rm -f conftest.o conftest.s
27966  fi
27967fi
27968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27969$as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27970if test $gcc_cv_as_powerpc_entry_markers = yes; then
27971
27972$as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27973
27974fi
27975
27976
27977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27978$as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27979if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27980  $as_echo_n "(cached) " >&6
27981else
27982  gcc_cv_as_powerpc_pltseq_markers=no
27983  if test x$gcc_cv_as != x; then
27984    $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27985    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27986  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27987  (eval $ac_try) 2>&5
27988  ac_status=$?
27989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27990  test $ac_status = 0; }; }
27991    then
27992	gcc_cv_as_powerpc_pltseq_markers=yes
27993    else
27994      echo "configure: failed program was" >&5
27995      cat conftest.s >&5
27996    fi
27997    rm -f conftest.o conftest.s
27998  fi
27999fi
28000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28001$as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28002if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28003
28004$as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28005
28006fi
28007
28008
28009    case $target in
28010      *-*-aix*)
28011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28012$as_echo_n "checking assembler for AIX .ref support... " >&6; }
28013if ${gcc_cv_as_aix_ref+:} false; then :
28014  $as_echo_n "(cached) " >&6
28015else
28016  gcc_cv_as_aix_ref=no
28017  if test x$gcc_cv_as != x; then
28018    $as_echo '	.csect stuff[rw]
28019	     stuff:
28020		.long 1
28021		.extern sym
28022		.ref sym
28023	  ' > conftest.s
28024    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28025  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28026  (eval $ac_try) 2>&5
28027  ac_status=$?
28028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28029  test $ac_status = 0; }; }
28030    then
28031	gcc_cv_as_aix_ref=yes
28032    else
28033      echo "configure: failed program was" >&5
28034      cat conftest.s >&5
28035    fi
28036    rm -f conftest.o conftest.s
28037  fi
28038fi
28039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28040$as_echo "$gcc_cv_as_aix_ref" >&6; }
28041if test $gcc_cv_as_aix_ref = yes; then
28042
28043$as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28044
28045fi
28046
28047
28048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28049$as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28050if ${gcc_cv_as_aix_dwloc+:} false; then :
28051  $as_echo_n "(cached) " >&6
28052else
28053  gcc_cv_as_aix_dwloc=no
28054  if test x$gcc_cv_as != x; then
28055    $as_echo '	.dwsect 0xA0000
28056	Lframe..0:
28057		.vbyte 4,Lframe..0
28058	  ' > conftest.s
28059    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28060  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28061  (eval $ac_try) 2>&5
28062  ac_status=$?
28063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28064  test $ac_status = 0; }; }
28065    then
28066	gcc_cv_as_aix_dwloc=yes
28067    else
28068      echo "configure: failed program was" >&5
28069      cat conftest.s >&5
28070    fi
28071    rm -f conftest.o conftest.s
28072  fi
28073fi
28074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28075$as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28076if test $gcc_cv_as_aix_dwloc = yes; then
28077
28078$as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28079
28080fi
28081
28082	;;
28083    esac
28084    ;;
28085
28086  mips*-*-*)
28087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28088$as_echo_n "checking assembler for explicit relocation support... " >&6; }
28089if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28090  $as_echo_n "(cached) " >&6
28091else
28092  gcc_cv_as_mips_explicit_relocs=no
28093  if test x$gcc_cv_as != x; then
28094    $as_echo '	lw $4,%gp_rel(foo)($4)' > conftest.s
28095    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28096  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28097  (eval $ac_try) 2>&5
28098  ac_status=$?
28099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28100  test $ac_status = 0; }; }
28101    then
28102	gcc_cv_as_mips_explicit_relocs=yes
28103    else
28104      echo "configure: failed program was" >&5
28105      cat conftest.s >&5
28106    fi
28107    rm -f conftest.o conftest.s
28108  fi
28109fi
28110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28111$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28112if test $gcc_cv_as_mips_explicit_relocs = yes; then
28113  if test x$target_cpu_default = x
28114       then target_cpu_default=MASK_EXPLICIT_RELOCS
28115       else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28116       fi
28117fi
28118
28119
28120    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28121$as_echo_n "checking assembler for -mno-shared support... " >&6; }
28122if ${gcc_cv_as_mips_no_shared+:} false; then :
28123  $as_echo_n "(cached) " >&6
28124else
28125  gcc_cv_as_mips_no_shared=no
28126  if test x$gcc_cv_as != x; then
28127    $as_echo 'nop' > conftest.s
28128    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28129  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28130  (eval $ac_try) 2>&5
28131  ac_status=$?
28132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28133  test $ac_status = 0; }; }
28134    then
28135	gcc_cv_as_mips_no_shared=yes
28136    else
28137      echo "configure: failed program was" >&5
28138      cat conftest.s >&5
28139    fi
28140    rm -f conftest.o conftest.s
28141  fi
28142fi
28143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28144$as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28145if test $gcc_cv_as_mips_no_shared = yes; then
28146
28147$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28148
28149fi
28150
28151
28152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28153$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28154if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28155  $as_echo_n "(cached) " >&6
28156else
28157  gcc_cv_as_mips_gnu_attribute=no
28158  if test x$gcc_cv_as != x; then
28159    $as_echo '.gnu_attribute 4,1' > conftest.s
28160    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28161  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28162  (eval $ac_try) 2>&5
28163  ac_status=$?
28164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28165  test $ac_status = 0; }; }
28166    then
28167	gcc_cv_as_mips_gnu_attribute=yes
28168    else
28169      echo "configure: failed program was" >&5
28170      cat conftest.s >&5
28171    fi
28172    rm -f conftest.o conftest.s
28173  fi
28174fi
28175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28176$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28177if test $gcc_cv_as_mips_gnu_attribute = yes; then
28178
28179$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28180
28181fi
28182
28183
28184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28185$as_echo_n "checking assembler for .module support... " >&6; }
28186if ${gcc_cv_as_mips_dot_module+:} false; then :
28187  $as_echo_n "(cached) " >&6
28188else
28189  gcc_cv_as_mips_dot_module=no
28190  if test x$gcc_cv_as != x; then
28191    $as_echo '.module mips2
28192       .module fp=xx' > conftest.s
28193    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28194  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28195  (eval $ac_try) 2>&5
28196  ac_status=$?
28197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28198  test $ac_status = 0; }; }
28199    then
28200	gcc_cv_as_mips_dot_module=yes
28201    else
28202      echo "configure: failed program was" >&5
28203      cat conftest.s >&5
28204    fi
28205    rm -f conftest.o conftest.s
28206  fi
28207fi
28208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28209$as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28210if test $gcc_cv_as_mips_dot_module = yes; then
28211
28212$as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28213
28214fi
28215
28216    if test x$gcc_cv_as_mips_dot_module = xno \
28217       && test x$with_fp_32 != x; then
28218      as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28219    fi
28220
28221    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28222$as_echo_n "checking assembler for .micromips support... " >&6; }
28223if ${gcc_cv_as_micromips_support+:} false; then :
28224  $as_echo_n "(cached) " >&6
28225else
28226  gcc_cv_as_micromips_support=no
28227  if test x$gcc_cv_as != x; then
28228    $as_echo '.set micromips' > conftest.s
28229    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28230  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28231  (eval $ac_try) 2>&5
28232  ac_status=$?
28233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28234  test $ac_status = 0; }; }
28235    then
28236	gcc_cv_as_micromips_support=yes
28237    else
28238      echo "configure: failed program was" >&5
28239      cat conftest.s >&5
28240    fi
28241    rm -f conftest.o conftest.s
28242  fi
28243fi
28244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28245$as_echo "$gcc_cv_as_micromips_support" >&6; }
28246if test $gcc_cv_as_micromips_support = yes; then
28247
28248$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28249
28250fi
28251
28252
28253    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28254$as_echo_n "checking assembler for .dtprelword support... " >&6; }
28255if ${gcc_cv_as_mips_dtprelword+:} false; then :
28256  $as_echo_n "(cached) " >&6
28257else
28258  gcc_cv_as_mips_dtprelword=no
28259  if test x$gcc_cv_as != x; then
28260    $as_echo '.section .tdata,"awT",@progbits
28261x:
28262	.word 2
28263	.text
28264	.dtprelword x+0x8000' > conftest.s
28265    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28266  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28267  (eval $ac_try) 2>&5
28268  ac_status=$?
28269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28270  test $ac_status = 0; }; }
28271    then
28272	gcc_cv_as_mips_dtprelword=yes
28273    else
28274      echo "configure: failed program was" >&5
28275      cat conftest.s >&5
28276    fi
28277    rm -f conftest.o conftest.s
28278  fi
28279fi
28280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28281$as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28282if test $gcc_cv_as_mips_dtprelword = yes; then
28283
28284$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28285
28286fi
28287
28288
28289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28290$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28291if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28292  $as_echo_n "(cached) " >&6
28293else
28294  gcc_cv_as_mips_dspr1_mult=no
28295  if test x$gcc_cv_as != x; then
28296    $as_echo '	.set	mips32r2
28297	.set	nodspr2
28298	.set	dsp
28299	madd	$ac3,$4,$5
28300	maddu	$ac3,$4,$5
28301	msub	$ac3,$4,$5
28302	msubu	$ac3,$4,$5
28303	mult	$ac3,$4,$5
28304	multu	$ac3,$4,$5' > conftest.s
28305    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28306  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28307  (eval $ac_try) 2>&5
28308  ac_status=$?
28309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28310  test $ac_status = 0; }; }
28311    then
28312	gcc_cv_as_mips_dspr1_mult=yes
28313    else
28314      echo "configure: failed program was" >&5
28315      cat conftest.s >&5
28316    fi
28317    rm -f conftest.o conftest.s
28318  fi
28319fi
28320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28321$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28322if test $gcc_cv_as_mips_dspr1_mult = yes; then
28323
28324$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28325
28326fi
28327
28328
28329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28330$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28331    gcc_cv_as_ld_jalr_reloc=no
28332    if test $gcc_cv_as_mips_explicit_relocs = yes; then
28333      if test $in_tree_ld = yes ; then
28334        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 \
28335           && test $in_tree_ld_is_elf = yes; then
28336          gcc_cv_as_ld_jalr_reloc=yes
28337        fi
28338      elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28339        echo '	.ent x' > conftest.s
28340        echo 'x:	lw $2,%got_disp(y)($3)' >> conftest.s
28341        echo '	lw $25,%call16(y)($28)' >> conftest.s
28342        echo '	.reloc	1f,R_MIPS_JALR,y' >> conftest.s
28343        echo '1:	jalr $25' >> conftest.s
28344        echo '	.reloc	1f,R_MIPS_JALR,x' >> conftest.s
28345        echo '1:	jalr $25' >> conftest.s
28346        echo '	.end x' >> conftest.s
28347        if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28348           && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28349	  if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28350	     && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28351            gcc_cv_as_ld_jalr_reloc=yes
28352	  fi
28353        fi
28354        rm -f conftest.*
28355      fi
28356    fi
28357    if test $gcc_cv_as_ld_jalr_reloc = yes; then
28358      if test x$target_cpu_default = x; then
28359        target_cpu_default=MASK_RELAX_PIC_CALLS
28360      else
28361        target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28362      fi
28363    fi
28364    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28365$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28366
28367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28368$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28369if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28370  $as_echo_n "(cached) " >&6
28371else
28372  gcc_cv_ld_mips_personality_relaxation=no
28373       if test $in_tree_ld = yes ; then
28374	 if test "$gcc_cv_gld_major_version" -eq 2 \
28375		 -a "$gcc_cv_gld_minor_version" -ge 21 \
28376		 -o "$gcc_cv_gld_major_version" -gt 2; then
28377	   gcc_cv_ld_mips_personality_relaxation=yes
28378	 fi
28379       elif test x$gcc_cv_as != x \
28380       	    	 -a x$gcc_cv_ld != x \
28381		 -a x$gcc_cv_readelf != x ; then
28382	 cat > conftest.s <<EOF
28383	.cfi_startproc
28384	.cfi_personality 0x80,indirect_ptr
28385	.ent test
28386test:
28387	nop
28388	.end test
28389	.cfi_endproc
28390
28391	.section .data,"aw",@progbits
28392indirect_ptr:
28393	.dc.a personality
28394EOF
28395	 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28396	    && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28397	   if $gcc_cv_readelf -d conftest 2>&1 \
28398	      | grep TEXTREL > /dev/null 2>&1; then
28399	     :
28400	   elif $gcc_cv_readelf --relocs conftest 2>&1 \
28401	        | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28402	     :
28403	   else
28404	     gcc_cv_ld_mips_personality_relaxation=yes
28405	   fi
28406	 fi
28407       fi
28408       rm -f conftest.s conftest.o conftest
28409fi
28410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28411$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28412    if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28413
28414$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28415
28416    fi
28417
28418    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28419$as_echo_n "checking assembler for -mnan= support... " >&6; }
28420if ${gcc_cv_as_mips_nan+:} false; then :
28421  $as_echo_n "(cached) " >&6
28422else
28423  gcc_cv_as_mips_nan=no
28424  if test x$gcc_cv_as != x; then
28425    $as_echo '' > conftest.s
28426    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28427  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28428  (eval $ac_try) 2>&5
28429  ac_status=$?
28430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28431  test $ac_status = 0; }; }
28432    then
28433	gcc_cv_as_mips_nan=yes
28434    else
28435      echo "configure: failed program was" >&5
28436      cat conftest.s >&5
28437    fi
28438    rm -f conftest.o conftest.s
28439  fi
28440fi
28441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28442$as_echo "$gcc_cv_as_mips_nan" >&6; }
28443if test $gcc_cv_as_mips_nan = yes; then
28444
28445$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28446
28447fi
28448
28449    if test x$gcc_cv_as_mips_nan = xno \
28450       && test x$with_nan != x; then
28451      as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28452    fi
28453    ;;
28454    msp430-*-*)
28455    # Earlier GAS versions generically support .gnu_attribute, but the
28456    # msp430 assembler will not do anything with it.
28457    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28458$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28459if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28460  $as_echo_n "(cached) " >&6
28461else
28462  gcc_cv_as_msp430_gnu_attribute=no
28463  if test x$gcc_cv_as != x; then
28464    $as_echo '.gnu_attribute 4,1' > conftest.s
28465    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28466  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28467  (eval $ac_try) 2>&5
28468  ac_status=$?
28469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28470  test $ac_status = 0; }; }
28471    then
28472	gcc_cv_as_msp430_gnu_attribute=yes
28473    else
28474      echo "configure: failed program was" >&5
28475      cat conftest.s >&5
28476    fi
28477    rm -f conftest.o conftest.s
28478  fi
28479fi
28480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28481$as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28482if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28483
28484$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28485
28486fi
28487
28488    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28489$as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28490if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28491  $as_echo_n "(cached) " >&6
28492else
28493  gcc_cv_as_msp430_mspabi_attribute=no
28494  if test x$gcc_cv_as != x; then
28495    $as_echo '.mspabi_attribute 4,2' > conftest.s
28496    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28497  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28498  (eval $ac_try) 2>&5
28499  ac_status=$?
28500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28501  test $ac_status = 0; }; }
28502    then
28503	gcc_cv_as_msp430_mspabi_attribute=yes
28504    else
28505      echo "configure: failed program was" >&5
28506      cat conftest.s >&5
28507    fi
28508    rm -f conftest.o conftest.s
28509  fi
28510fi
28511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28512$as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28513if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28514
28515$as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28516
28517fi
28518
28519    if test x$enable_newlib_nano_formatted_io = xyes; then
28520
28521$as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28522
28523      fi
28524    ;;
28525    nios2-*-*)
28526    # Versions 2.33 and earlier lacked support for the %gotoff relocation
28527    # syntax that is documented in the ABI specification.
28528    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28529$as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28530if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28531  $as_echo_n "(cached) " >&6
28532else
28533  gcc_cv_as_nios2_gotoff_relocation=no
28534  if test x$gcc_cv_as != x; then
28535    $as_echo '	.extern foo
28536	.data
28537	.long %gotoff(foo)' > conftest.s
28538    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28539  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28540  (eval $ac_try) 2>&5
28541  ac_status=$?
28542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28543  test $ac_status = 0; }; }
28544    then
28545	gcc_cv_as_nios2_gotoff_relocation=yes
28546    else
28547      echo "configure: failed program was" >&5
28548      cat conftest.s >&5
28549    fi
28550    rm -f conftest.o conftest.s
28551  fi
28552fi
28553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28554$as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28555if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28556
28557$as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28558
28559fi
28560
28561    ;;
28562    riscv*-*-*)
28563    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28564$as_echo_n "checking assembler for .attribute support... " >&6; }
28565if ${gcc_cv_as_riscv_attribute+:} false; then :
28566  $as_echo_n "(cached) " >&6
28567else
28568  gcc_cv_as_riscv_attribute=no
28569  if test x$gcc_cv_as != x; then
28570    $as_echo '.attribute stack_align,4' > conftest.s
28571    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28572  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28573  (eval $ac_try) 2>&5
28574  ac_status=$?
28575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28576  test $ac_status = 0; }; }
28577    then
28578	gcc_cv_as_riscv_attribute=yes
28579    else
28580      echo "configure: failed program was" >&5
28581      cat conftest.s >&5
28582    fi
28583    rm -f conftest.o conftest.s
28584  fi
28585fi
28586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28587$as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28588if test $gcc_cv_as_riscv_attribute = yes; then
28589
28590$as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28591
28592fi
28593
28594    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28595$as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28596if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28597  $as_echo_n "(cached) " >&6
28598else
28599  gcc_cv_as_riscv_isa_spec=no
28600  if test x$gcc_cv_as != x; then
28601    $as_echo '' > conftest.s
28602    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28603  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28604  (eval $ac_try) 2>&5
28605  ac_status=$?
28606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28607  test $ac_status = 0; }; }
28608    then
28609	gcc_cv_as_riscv_isa_spec=yes
28610    else
28611      echo "configure: failed program was" >&5
28612      cat conftest.s >&5
28613    fi
28614    rm -f conftest.o conftest.s
28615  fi
28616fi
28617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28618$as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28619if test $gcc_cv_as_riscv_isa_spec = yes; then
28620
28621$as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28622
28623fi
28624
28625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28626$as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28627if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28628  $as_echo_n "(cached) " >&6
28629else
28630  gcc_cv_as_riscv_march_zifencei=no
28631  if test x$gcc_cv_as != x; then
28632    $as_echo '' > conftest.s
28633    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei -o conftest.o conftest.s >&5'
28634  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28635  (eval $ac_try) 2>&5
28636  ac_status=$?
28637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28638  test $ac_status = 0; }; }
28639    then
28640	gcc_cv_as_riscv_march_zifencei=yes
28641    else
28642      echo "configure: failed program was" >&5
28643      cat conftest.s >&5
28644    fi
28645    rm -f conftest.o conftest.s
28646  fi
28647fi
28648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28649$as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28650if test $gcc_cv_as_riscv_march_zifencei = yes; then
28651
28652$as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28653
28654fi
28655
28656    ;;
28657    s390*-*-*)
28658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28659$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28660if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28661  $as_echo_n "(cached) " >&6
28662else
28663  gcc_cv_as_s390_gnu_attribute=no
28664  if test x$gcc_cv_as != x; then
28665    $as_echo '.gnu_attribute 8,1' > conftest.s
28666    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28667  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28668  (eval $ac_try) 2>&5
28669  ac_status=$?
28670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28671  test $ac_status = 0; }; }
28672    then
28673	gcc_cv_as_s390_gnu_attribute=yes
28674    else
28675      echo "configure: failed program was" >&5
28676      cat conftest.s >&5
28677    fi
28678    rm -f conftest.o conftest.s
28679  fi
28680fi
28681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28682$as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28683if test $gcc_cv_as_s390_gnu_attribute = yes; then
28684
28685$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28686
28687fi
28688
28689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28690$as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28691if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28692  $as_echo_n "(cached) " >&6
28693else
28694  gcc_cv_as_s390_machine_machinemode=no
28695  if test x$gcc_cv_as != x; then
28696    $as_echo '	.machinemode push
28697	.machinemode pop
28698	.machine push
28699	.machine pop' > conftest.s
28700    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28701  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28702  (eval $ac_try) 2>&5
28703  ac_status=$?
28704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28705  test $ac_status = 0; }; }
28706    then
28707	gcc_cv_as_s390_machine_machinemode=yes
28708    else
28709      echo "configure: failed program was" >&5
28710      cat conftest.s >&5
28711    fi
28712    rm -f conftest.o conftest.s
28713  fi
28714fi
28715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28716$as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28717if test $gcc_cv_as_s390_machine_machinemode = yes; then
28718
28719$as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28720
28721fi
28722
28723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28724$as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28725if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28726  $as_echo_n "(cached) " >&6
28727else
28728  gcc_cv_as_s390_architecture_modifiers=no
28729  if test x$gcc_cv_as != x; then
28730    $as_echo '	.machine z13+vx ' > conftest.s
28731    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28732  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28733  (eval $ac_try) 2>&5
28734  ac_status=$?
28735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28736  test $ac_status = 0; }; }
28737    then
28738	gcc_cv_as_s390_architecture_modifiers=yes
28739    else
28740      echo "configure: failed program was" >&5
28741      cat conftest.s >&5
28742    fi
28743    rm -f conftest.o conftest.s
28744  fi
28745fi
28746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28747$as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28748if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28749
28750$as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28751
28752fi
28753
28754    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28755$as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28756if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28757  $as_echo_n "(cached) " >&6
28758else
28759  gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28760  if test x$gcc_cv_as != x; then
28761    $as_echo '	vl %v24,0(%r15),3 ' > conftest.s
28762    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28763  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28764  (eval $ac_try) 2>&5
28765  ac_status=$?
28766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28767  test $ac_status = 0; }; }
28768    then
28769	gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28770    else
28771      echo "configure: failed program was" >&5
28772      cat conftest.s >&5
28773    fi
28774    rm -f conftest.o conftest.s
28775  fi
28776fi
28777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28778$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28779if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28780
28781$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28782
28783fi
28784
28785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28786$as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28787if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28788  $as_echo_n "(cached) " >&6
28789else
28790  gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28791  if test x$gcc_cv_as != x; then
28792    $as_echo '	vl %v24,0(%r15),3 ' > conftest.s
28793    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28794  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28795  (eval $ac_try) 2>&5
28796  ac_status=$?
28797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28798  test $ac_status = 0; }; }
28799    then
28800	gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28801    else
28802      echo "configure: failed program was" >&5
28803      cat conftest.s >&5
28804    fi
28805    rm -f conftest.o conftest.s
28806  fi
28807fi
28808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28809$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28810if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28811
28812$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28813
28814fi
28815
28816
28817    ;;
28818esac
28819
28820# Mips and HP-UX need the GNU assembler.
28821# Linux on IA64 might be able to use the Intel assembler.
28822
28823case "$target" in
28824  mips*-*-* | *-*-hpux* )
28825    if test x$gas_flag = xyes \
28826       || test x"$host" != x"$build" \
28827       || test ! -x "$gcc_cv_as" \
28828       || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28829      :
28830    else
28831      echo "*** This configuration requires the GNU assembler" >&2
28832      exit 1
28833    fi
28834    ;;
28835esac
28836
28837# This tests if the assembler supports two registers for global_load functions
28838# (like in LLVM versions <12) or one register (like in LLVM 12).
28839case "$target" in
28840  amdgcn-* | gcn-*)
28841    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler fix for global_load functions" >&5
28842$as_echo_n "checking assembler fix for global_load functions... " >&6; }
28843    gcc_cv_as_gcn_global_load_fixed=yes
28844    if test x$gcc_cv_as != x; then
28845      cat > conftest.s <<EOF
28846	global_store_dwordx2    v[1:2], v[4:5], s[14:15]
28847EOF
28848      if $gcc_cv_as -triple=amdgcn--amdhsa -filetype=obj -mcpu=gfx900 -o conftest.o conftest.s > /dev/null 2>&1; then
28849        gcc_cv_as_gcn_global_load_fixed=no
28850      fi
28851      rm -f conftest.s conftest.o conftest
28852    fi
28853    global_load_fixed=`if test x$gcc_cv_as_gcn_global_load_fixed = xyes; then echo 1; else echo 0; fi`
28854
28855cat >>confdefs.h <<_ACEOF
28856#define HAVE_GCN_ASM_GLOBAL_LOAD_FIXED $global_load_fixed
28857_ACEOF
28858
28859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_global_load_fixed" >&5
28860$as_echo "$gcc_cv_as_gcn_global_load_fixed" >&6; }
28861    ;;
28862esac
28863
28864case "$target" in
28865  amdgcn-* | gcn-*)
28866    # Test the LLVM assembler syntax dialect; they have made a number of
28867    # changes between LLVM 12 & 13 without any backward compatibility.
28868    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v2/3 syntax" >&5
28869$as_echo_n "checking assembler for assembler amdgcn_target v2/3 syntax... " >&6; }
28870if ${gcc_cv_as_gcn_asm_v3_syntax+:} false; then :
28871  $as_echo_n "(cached) " >&6
28872else
28873  gcc_cv_as_gcn_asm_v3_syntax=no
28874  if test x$gcc_cv_as != x; then
28875    $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx906+xnack"' > conftest.s
28876    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack -o conftest.o conftest.s >&5'
28877  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28878  (eval $ac_try) 2>&5
28879  ac_status=$?
28880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28881  test $ac_status = 0; }; }
28882    then
28883	gcc_cv_as_gcn_asm_v3_syntax=yes
28884    else
28885      echo "configure: failed program was" >&5
28886      cat conftest.s >&5
28887    fi
28888    rm -f conftest.o conftest.s
28889  fi
28890fi
28891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v3_syntax" >&5
28892$as_echo "$gcc_cv_as_gcn_asm_v3_syntax" >&6; }
28893if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
28894
28895$as_echo "#define HAVE_GCN_ASM_V3_SYNTAX 1" >>confdefs.h
28896
28897fi
28898
28899    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v4 syntax" >&5
28900$as_echo_n "checking assembler for assembler amdgcn_target v4 syntax... " >&6; }
28901if ${gcc_cv_as_gcn_asm_v4_syntax+:} false; then :
28902  $as_echo_n "(cached) " >&6
28903else
28904  gcc_cv_as_gcn_asm_v4_syntax=no
28905  if test x$gcc_cv_as != x; then
28906    $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx908:xnack+"' > conftest.s
28907    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack -o conftest.o conftest.s >&5'
28908  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28909  (eval $ac_try) 2>&5
28910  ac_status=$?
28911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28912  test $ac_status = 0; }; }
28913    then
28914	gcc_cv_as_gcn_asm_v4_syntax=yes
28915    else
28916      echo "configure: failed program was" >&5
28917      cat conftest.s >&5
28918    fi
28919    rm -f conftest.o conftest.s
28920  fi
28921fi
28922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v4_syntax" >&5
28923$as_echo "$gcc_cv_as_gcn_asm_v4_syntax" >&6; }
28924if test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
28925
28926$as_echo "#define HAVE_GCN_ASM_V4_SYNTAX 1" >>confdefs.h
28927
28928fi
28929
28930
28931    # Some attribute names changed in the move to v4 ...
28932    if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
28933	sramopt="+sram-ecc"
28934	sramattr="+sram-ecc"
28935	xnackattr="+xnack"
28936    elif test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
28937	sramopt="+sramecc"
28938	sramattr=":sramecc+"
28939	xnackattr=":xnack+"
28940    else
28941	as_fn_error $? "Unrecognised assembler version" "$LINENO" 5
28942    fi
28943
28944    # Test whether the LLVM assembler accepts -mattr=+xnack without any
28945    # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
28946    # LLVM 12+ throws a warning for GPUs without support.
28947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for fiji" >&5
28948$as_echo_n "checking assembler for assembler accepts -mattr=+xnack for fiji... " >&6; }
28949if ${gcc_cv_as_gcn_xnack_ecc_fiji+:} false; then :
28950  $as_echo_n "(cached) " >&6
28951else
28952  gcc_cv_as_gcn_xnack_ecc_fiji=no
28953  if test x$gcc_cv_as != x; then
28954    $as_echo '' > conftest.s
28955    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
28956  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28957  (eval $ac_try) 2>&5
28958  ac_status=$?
28959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960  test $ac_status = 0; }; }
28961    then
28962	grep "." conftest.err >&5 \
28963       || gcc_cv_as_gcn_xnack_ecc_fiji=yes
28964    else
28965      echo "configure: failed program was" >&5
28966      cat conftest.s >&5
28967    fi
28968    rm -f conftest.o conftest.s
28969  fi
28970fi
28971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_fiji" >&5
28972$as_echo "$gcc_cv_as_gcn_xnack_ecc_fiji" >&6; }
28973if test $gcc_cv_as_gcn_xnack_ecc_fiji = yes; then
28974
28975$as_echo "#define HAVE_GCN_XNACK_FIJI 1" >>confdefs.h
28976
28977fi
28978
28979    rm -f conftest.err
28980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx900" >&5
28981$as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx900... " >&6; }
28982if ${gcc_cv_as_gcn_xnack_ecc_gfx900+:} false; then :
28983  $as_echo_n "(cached) " >&6
28984else
28985  gcc_cv_as_gcn_xnack_ecc_gfx900=no
28986  if test x$gcc_cv_as != x; then
28987    $as_echo '' > conftest.s
28988    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
28989  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28990  (eval $ac_try) 2>&5
28991  ac_status=$?
28992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28993  test $ac_status = 0; }; }
28994    then
28995	grep "." conftest.err >&5 \
28996       || gcc_cv_as_gcn_xnack_ecc_gfx900=yes
28997    else
28998      echo "configure: failed program was" >&5
28999      cat conftest.s >&5
29000    fi
29001    rm -f conftest.o conftest.s
29002  fi
29003fi
29004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx900" >&5
29005$as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx900" >&6; }
29006if test $gcc_cv_as_gcn_xnack_ecc_gfx900 = yes; then
29007
29008$as_echo "#define HAVE_GCN_XNACK_GFX900 1" >>confdefs.h
29009
29010fi
29011
29012    rm -f conftest.err
29013    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx906" >&5
29014$as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx906... " >&6; }
29015if ${gcc_cv_as_gcn_xnack_ecc_gfx906+:} false; then :
29016  $as_echo_n "(cached) " >&6
29017else
29018  gcc_cv_as_gcn_xnack_ecc_gfx906=no
29019  if test x$gcc_cv_as != x; then
29020    $as_echo '' > conftest.s
29021    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
29022  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29023  (eval $ac_try) 2>&5
29024  ac_status=$?
29025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29026  test $ac_status = 0; }; }
29027    then
29028	grep "." conftest.err >&5 \
29029       || gcc_cv_as_gcn_xnack_ecc_gfx906=yes
29030    else
29031      echo "configure: failed program was" >&5
29032      cat conftest.s >&5
29033    fi
29034    rm -f conftest.o conftest.s
29035  fi
29036fi
29037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx906" >&5
29038$as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx906" >&6; }
29039if test $gcc_cv_as_gcn_xnack_ecc_gfx906 = yes; then
29040
29041$as_echo "#define HAVE_GCN_XNACK_GFX906 1" >>confdefs.h
29042
29043fi
29044
29045    rm -f conftest.err
29046    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx908" >&5
29047$as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx908... " >&6; }
29048if ${gcc_cv_as_gcn_xnack_ecc_gfx908+:} false; then :
29049  $as_echo_n "(cached) " >&6
29050else
29051  gcc_cv_as_gcn_xnack_ecc_gfx908=no
29052  if test x$gcc_cv_as != x; then
29053    $as_echo '' > conftest.s
29054    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
29055  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29056  (eval $ac_try) 2>&5
29057  ac_status=$?
29058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29059  test $ac_status = 0; }; }
29060    then
29061	grep "." conftest.err >&5 \
29062       || gcc_cv_as_gcn_xnack_ecc_gfx908=yes
29063    else
29064      echo "configure: failed program was" >&5
29065      cat conftest.s >&5
29066    fi
29067    rm -f conftest.o conftest.s
29068  fi
29069fi
29070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx908" >&5
29071$as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx908" >&6; }
29072if test $gcc_cv_as_gcn_xnack_ecc_gfx908 = yes; then
29073
29074$as_echo "#define HAVE_GCN_XNACK_GFX908 1" >>confdefs.h
29075
29076fi
29077
29078    rm -f conftest.err
29079
29080    # Test whether the LLVM assembler accepts -mattr=+sramecc without any
29081    # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
29082    # (some?) LLVM 12 rejects it for all GPUs, and LLVM13 throws a warning
29083    # for GPUs without support.
29084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for fiji" >&5
29085$as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for fiji... " >&6; }
29086if ${gcc_cv_as_gcn_sram_ecc_fiji+:} false; then :
29087  $as_echo_n "(cached) " >&6
29088else
29089  gcc_cv_as_gcn_sram_ecc_fiji=no
29090  if test x$gcc_cv_as != x; then
29091    $as_echo '' > conftest.s
29092    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29093  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29094  (eval $ac_try) 2>&5
29095  ac_status=$?
29096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29097  test $ac_status = 0; }; }
29098    then
29099	grep "." conftest.err >&5 \
29100       || gcc_cv_as_gcn_sram_ecc_fiji=yes
29101    else
29102      echo "configure: failed program was" >&5
29103      cat conftest.s >&5
29104    fi
29105    rm -f conftest.o conftest.s
29106  fi
29107fi
29108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_fiji" >&5
29109$as_echo "$gcc_cv_as_gcn_sram_ecc_fiji" >&6; }
29110if test $gcc_cv_as_gcn_sram_ecc_fiji = yes; then
29111
29112$as_echo "#define HAVE_GCN_SRAM_ECC_FIJI 1" >>confdefs.h
29113
29114fi
29115
29116    rm -f conftest.err
29117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx900" >&5
29118$as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx900... " >&6; }
29119if ${gcc_cv_as_gcn_sram_ecc_gfx900+:} false; then :
29120  $as_echo_n "(cached) " >&6
29121else
29122  gcc_cv_as_gcn_sram_ecc_gfx900=no
29123  if test x$gcc_cv_as != x; then
29124    $as_echo '' > conftest.s
29125    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29126  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29127  (eval $ac_try) 2>&5
29128  ac_status=$?
29129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29130  test $ac_status = 0; }; }
29131    then
29132	grep "." conftest.err >&5 \
29133       || gcc_cv_as_gcn_sram_ecc_gfx900=yes
29134    else
29135      echo "configure: failed program was" >&5
29136      cat conftest.s >&5
29137    fi
29138    rm -f conftest.o conftest.s
29139  fi
29140fi
29141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx900" >&5
29142$as_echo "$gcc_cv_as_gcn_sram_ecc_gfx900" >&6; }
29143if test $gcc_cv_as_gcn_sram_ecc_gfx900 = yes; then
29144
29145$as_echo "#define HAVE_GCN_SRAM_ECC_GFX900 1" >>confdefs.h
29146
29147fi
29148
29149    rm -f conftest.err
29150    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx906" >&5
29151$as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx906... " >&6; }
29152if ${gcc_cv_as_gcn_sram_ecc_gfx906+:} false; then :
29153  $as_echo_n "(cached) " >&6
29154else
29155  gcc_cv_as_gcn_sram_ecc_gfx906=no
29156  if test x$gcc_cv_as != x; then
29157    $as_echo '' > conftest.s
29158    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29159  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29160  (eval $ac_try) 2>&5
29161  ac_status=$?
29162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29163  test $ac_status = 0; }; }
29164    then
29165	grep "." conftest.err >&5 \
29166       || gcc_cv_as_gcn_sram_ecc_gfx906=yes
29167    else
29168      echo "configure: failed program was" >&5
29169      cat conftest.s >&5
29170    fi
29171    rm -f conftest.o conftest.s
29172  fi
29173fi
29174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx906" >&5
29175$as_echo "$gcc_cv_as_gcn_sram_ecc_gfx906" >&6; }
29176if test $gcc_cv_as_gcn_sram_ecc_gfx906 = yes; then
29177
29178$as_echo "#define HAVE_GCN_SRAM_ECC_GFX906 1" >>confdefs.h
29179
29180fi
29181
29182    rm -f conftest.err
29183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx908" >&5
29184$as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx908... " >&6; }
29185if ${gcc_cv_as_gcn_sram_ecc_gfx908+:} false; then :
29186  $as_echo_n "(cached) " >&6
29187else
29188  gcc_cv_as_gcn_sram_ecc_gfx908=no
29189  if test x$gcc_cv_as != x; then
29190    $as_echo '' > conftest.s
29191    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29192  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29193  (eval $ac_try) 2>&5
29194  ac_status=$?
29195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29196  test $ac_status = 0; }; }
29197    then
29198	grep "." conftest.err >&5 \
29199       || gcc_cv_as_gcn_sram_ecc_gfx908=yes
29200    else
29201      echo "configure: failed program was" >&5
29202      cat conftest.s >&5
29203    fi
29204    rm -f conftest.o conftest.s
29205  fi
29206fi
29207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx908" >&5
29208$as_echo "$gcc_cv_as_gcn_sram_ecc_gfx908" >&6; }
29209if test $gcc_cv_as_gcn_sram_ecc_gfx908 = yes; then
29210
29211$as_echo "#define HAVE_GCN_SRAM_ECC_GFX908 1" >>confdefs.h
29212
29213fi
29214
29215    rm -f conftest.err
29216    ;;
29217  arm*)
29218    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29219$as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29220if ${gcc_cv_as_arm_option_extensions+:} false; then :
29221  $as_echo_n "(cached) " >&6
29222else
29223  gcc_cv_as_arm_option_extensions=no
29224  if test x$gcc_cv_as != x; then
29225    $as_echo '.text
29226	.thumb
29227	.syntax unified
29228	vmov.f32 s0, s1' > conftest.s
29229    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29230  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29231  (eval $ac_try) 2>&5
29232  ac_status=$?
29233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29234  test $ac_status = 0; }; }
29235    then
29236	gcc_cv_as_arm_option_extensions=yes
29237    else
29238      echo "configure: failed program was" >&5
29239      cat conftest.s >&5
29240    fi
29241    rm -f conftest.o conftest.s
29242  fi
29243fi
29244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29245$as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29246if test $gcc_cv_as_arm_option_extensions = yes; then
29247
29248$as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29249
29250fi
29251
29252esac
29253
29254# ??? Not all targets support dwarf2 debug_line, even within a version
29255# of gas.  Moreover, we need to emit a valid instruction to trigger any
29256# info to the output file.  So, as supported targets are added to gas 2.11,
29257# add some instruction here to (also) show we expect this might work.
29258# ??? Once 2.11 is released, probably need to add first known working
29259# version to the per-target configury.
29260case "$cpu_type" in
29261  aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
29262  | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29263  | tilegx | tilepro | visium | xstormy16 | xtensa)
29264    insn="nop"
29265    ;;
29266  ia64 | s390)
29267    insn="nop 0"
29268    ;;
29269  mmix)
29270    insn="swym 0"
29271    ;;
29272esac
29273if test x"$insn" != x; then
29274 conftest_s="\
29275	.file 1 \"conftest.s\"
29276	.loc 1 3 0
29277	$insn"
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29279$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29280if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29281  $as_echo_n "(cached) " >&6
29282else
29283  gcc_cv_as_dwarf2_debug_line=no
29284  if test x$gcc_cv_as != x; then
29285    $as_echo "$conftest_s" > conftest.s
29286    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
29287  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29288  (eval $ac_try) 2>&5
29289  ac_status=$?
29290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29291  test $ac_status = 0; }; }
29292    then
29293	if test x$gcc_cv_objdump != x \
29294   && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29295      | grep debug_line > /dev/null 2>&1; then
29296     gcc_cv_as_dwarf2_debug_line=yes
29297   elif test x$gcc_cv_otool != x \
29298   && $gcc_cv_otool -l conftest.o 2> /dev/null \
29299      | grep debug_line > /dev/null 2>&1; then
29300     gcc_cv_as_dwarf2_debug_line=yes
29301   fi
29302    else
29303      echo "configure: failed program was" >&5
29304      cat conftest.s >&5
29305    fi
29306    rm -f conftest.o conftest.s
29307  fi
29308fi
29309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29310$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29311
29312
29313
29314# The .debug_line file table must be in the exact order that
29315# we specified the files, since these indices are also used
29316# by DW_AT_decl_file.  Approximate this test by testing if
29317# the assembler bitches if the same index is assigned twice.
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29319$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29320if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29321  $as_echo_n "(cached) " >&6
29322else
29323  gcc_cv_as_dwarf2_file_buggy=no
29324  if test x$gcc_cv_as != x; then
29325    $as_echo '	.file 1 "foo.s"
29326	.file 1 "bar.s"' > conftest.s
29327    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
29328  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29329  (eval $ac_try) 2>&5
29330  ac_status=$?
29331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29332  test $ac_status = 0; }; }
29333    then
29334	gcc_cv_as_dwarf2_file_buggy=yes
29335    else
29336      echo "configure: failed program was" >&5
29337      cat conftest.s >&5
29338    fi
29339    rm -f conftest.o conftest.s
29340  fi
29341fi
29342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29343$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29344
29345
29346
29347 if test $gcc_cv_as_dwarf2_debug_line = yes \
29348 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29349
29350$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29351
29352
29353    if test $gcc_cv_as_leb128 = yes; then
29354	conftest_s="\
29355	.file 1 \"conftest.s\"
29356	.loc 1 3 0 view .LVU1
29357	$insn
29358	.data
29359	.uleb128 .LVU1
29360	.uleb128 .LVU1
29361"
29362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29363$as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29364if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29365  $as_echo_n "(cached) " >&6
29366else
29367  gcc_cv_as_dwarf2_debug_view=no
29368  if test x$gcc_cv_as != x; then
29369    $as_echo "$conftest_s" > conftest.s
29370    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
29371  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29372  (eval $ac_try) 2>&5
29373  ac_status=$?
29374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29375  test $ac_status = 0; }; }
29376    then
29377	gcc_cv_as_dwarf2_debug_view=yes
29378    else
29379      echo "configure: failed program was" >&5
29380      cat conftest.s >&5
29381    fi
29382    rm -f conftest.o conftest.s
29383  fi
29384fi
29385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29386$as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29387if test $gcc_cv_as_dwarf2_debug_view = yes; then
29388
29389$as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29390
29391fi
29392
29393    fi
29394 fi
29395
29396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29397$as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29398if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29399  $as_echo_n "(cached) " >&6
29400else
29401  gcc_cv_as_gdwarf2_flag=no
29402  if test x$gcc_cv_as != x; then
29403    $as_echo "$insn" > conftest.s
29404    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29405  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29406  (eval $ac_try) 2>&5
29407  ac_status=$?
29408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29409  test $ac_status = 0; }; }
29410    then
29411	gcc_cv_as_gdwarf2_flag=yes
29412    else
29413      echo "configure: failed program was" >&5
29414      cat conftest.s >&5
29415    fi
29416    rm -f conftest.o conftest.s
29417  fi
29418fi
29419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29420$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29421if test $gcc_cv_as_gdwarf2_flag = yes; then
29422
29423$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29424
29425fi
29426
29427
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29429$as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29430if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29431  $as_echo_n "(cached) " >&6
29432else
29433  gcc_cv_as_gdwarf_5_flag=no
29434  if test x$gcc_cv_as != x; then
29435    $as_echo "$insn" > conftest.s
29436    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29437  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29438  (eval $ac_try) 2>&5
29439  ac_status=$?
29440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29441  test $ac_status = 0; }; }
29442    then
29443	if test x$gcc_cv_objdump != x \
29444      && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29445	 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29446     gcc_cv_as_gdwarf_5_flag=yes;
29447   fi
29448    else
29449      echo "configure: failed program was" >&5
29450      cat conftest.s >&5
29451    fi
29452    rm -f conftest.o conftest.s
29453  fi
29454fi
29455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29456$as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29457if test $gcc_cv_as_gdwarf_5_flag = yes; then
29458
29459$as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29460
29461fi
29462
29463
29464 case $target_os in
29465   win32 | pe | cygwin* | mingw32*)
29466     section_flags=\"dr\"
29467     function_type=".def foo; .scl 2; .type 32; .endef"
29468     function_size="";;
29469   *)
29470     section_flags=\"\",%progbits
29471     function_type=".type foo, %function"
29472     function_size=".size foo, .-foo";;
29473 esac
29474 dwarf4_debug_info_size=0x46
29475 dwarf4_high_pc_form=7
29476 dwarf4_debug_aranges_size=0x2c
29477 dwarf4_line_sz=9
29478 for dwarf4_addr_size in 8 4; do
29479   conftest_s="\
29480	.file	\"a.c\"
29481	.text
29482.Ltext0:
29483	.p2align 4
29484	.globl	foo
29485	$function_type
29486foo:
29487.LFB0:
29488.LM1:
29489	$insn
29490.LM2:
29491.LFE0:
29492	$function_size
29493.Letext0:
29494	.section	.debug_info,$section_flags
29495.Ldebug_info0:
29496	.4byte	$dwarf4_debug_info_size
29497	.2byte	0x4
29498	.4byte	.Ldebug_abbrev0
29499	.byte	0x$dwarf4_addr_size
29500	.byte	0x1
29501	.ascii \"GNU C17\\0\"
29502	.byte	0xc
29503	.ascii \"a.c\\0\"
29504	.ascii \"/\\0\"
29505	.${dwarf4_addr_size}byte	.Ltext0
29506	.${dwarf4_addr_size}byte	.Letext0-.Ltext0
29507	.4byte	.Ldebug_line0
29508	.byte	0x2
29509	.ascii \"foo\\0\"
29510	.byte	0x1
29511	.byte	0x2
29512	.byte	0x1
29513	.${dwarf4_addr_size}byte	.LFB0
29514	.${dwarf4_addr_size}byte	.LFE0-.LFB0
29515	.byte	0x1
29516	.byte	0x9c
29517	.byte	0
29518	.section	.debug_abbrev,$section_flags
29519.Ldebug_abbrev0:
29520	.byte	0x1
29521	.byte	0x11
29522	.byte	0x1
29523	.byte	0x25
29524	.byte	0x8
29525	.byte	0x13
29526	.byte	0xb
29527	.byte	0x3
29528	.byte	0x8
29529	.byte	0x1b
29530	.byte	0x8
29531	.byte	0x11
29532	.byte	0x1
29533	.byte	0x12
29534	.byte	0x$dwarf4_high_pc_form
29535	.byte	0x10
29536	.byte	0x17
29537	.byte	0
29538	.byte	0
29539	.byte	0x2
29540	.byte	0x2e
29541	.byte	0
29542	.byte	0x3f
29543	.byte	0x19
29544	.byte	0x3
29545	.byte	0x8
29546	.byte	0x3a
29547	.byte	0xb
29548	.byte	0x3b
29549	.byte	0xb
29550	.byte	0x39
29551	.byte	0xb
29552	.byte	0x11
29553	.byte	0x1
29554	.byte	0x12
29555	.byte	0x$dwarf4_high_pc_form
29556	.byte	0x40
29557	.byte	0x18
29558	.byte	0
29559	.byte	0
29560	.byte	0
29561	.section	.debug_aranges,$section_flags
29562	.4byte	$dwarf4_debug_aranges_size
29563	.2byte	0x2
29564	.4byte	.Ldebug_info0
29565	.byte	0x8
29566	.byte	0
29567	.2byte	0
29568	.2byte	0
29569	.${dwarf4_addr_size}byte	.Ltext0
29570	.${dwarf4_addr_size}byte	.Letext0-.Ltext0
29571	.${dwarf4_addr_size}byte	0
29572	.${dwarf4_addr_size}byte	0
29573	.section	.debug_line,$section_flags
29574.Ldebug_line0:
29575	.4byte	.LELT0-.LSLT0
29576.LSLT0:
29577	.2byte	0x4
29578	.4byte	.LELTP0-.LASLTP0
29579.LASLTP0:
29580	.byte	0x1
29581	.byte	0x1
29582	.byte	0x1
29583	.byte	0xf6
29584	.byte	0xf2
29585	.byte	0xd
29586	.byte	0
29587	.byte	0x1
29588	.byte	0x1
29589	.byte	0x1
29590	.byte	0x1
29591	.byte	0
29592	.byte	0
29593	.byte	0
29594	.byte	0x1
29595	.byte	0
29596	.byte	0
29597	.byte	0x1
29598	.byte	0
29599	.ascii \"a.c\\0\"
29600	.byte	0
29601	.byte	0
29602	.byte	0
29603	.byte	0
29604.LELTP0:
29605	.byte	0
29606	.byte	0x$dwarf4_line_sz
29607	.byte	0x2
29608	.${dwarf4_addr_size}byte	.LM1
29609	.byte	0x18
29610	.byte	0x5
29611	.byte	0x1
29612	.byte	0
29613	.byte	0x$dwarf4_line_sz
29614	.byte	0x2
29615	.${dwarf4_addr_size}byte	.LM2
29616	.byte	0x1
29617	.byte	0x5
29618	.byte	0x1
29619	.byte	0
29620	.byte	0x$dwarf4_line_sz
29621	.byte	0x2
29622	.${dwarf4_addr_size}byte	.Letext0
29623	.byte	0
29624	.byte	0x1
29625	.byte	0x1
29626.LELT0:
29627	.section	.debug_str,$section_flags
29628	.ident	\"GCC\"
29629"
29630   dwarf4_success=no
29631   if test $dwarf4_addr_size = 4; then
29632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29633$as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29634if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29635  $as_echo_n "(cached) " >&6
29636else
29637  gcc_cv_as_debug_line_32_flag=no
29638  if test x$gcc_cv_as != x; then
29639    $as_echo "$conftest_s" > conftest.s
29640    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
29641  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29642  (eval $ac_try) 2>&5
29643  ac_status=$?
29644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29645  test $ac_status = 0; }; }
29646    then
29647	gcc_cv_as_debug_line_32_flag=yes
29648    else
29649      echo "configure: failed program was" >&5
29650      cat conftest.s >&5
29651    fi
29652    rm -f conftest.o conftest.s
29653  fi
29654fi
29655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29656$as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29657if test $gcc_cv_as_debug_line_32_flag = yes; then
29658  dwarf4_success=yes
29659fi
29660
29661   else
29662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29663$as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29664if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29665  $as_echo_n "(cached) " >&6
29666else
29667  gcc_cv_as_debug_line_64_flag=no
29668  if test x$gcc_cv_as != x; then
29669    $as_echo "$conftest_s" > conftest.s
29670    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
29671  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29672  (eval $ac_try) 2>&5
29673  ac_status=$?
29674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29675  test $ac_status = 0; }; }
29676    then
29677	gcc_cv_as_debug_line_64_flag=yes
29678    else
29679      echo "configure: failed program was" >&5
29680      cat conftest.s >&5
29681    fi
29682    rm -f conftest.o conftest.s
29683  fi
29684fi
29685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29686$as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29687if test $gcc_cv_as_debug_line_64_flag = yes; then
29688  dwarf4_success=yes
29689fi
29690
29691   fi
29692   if test $dwarf4_success = yes; then
29693     dwarf4_success=no
29694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29695$as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29696if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29697  $as_echo_n "(cached) " >&6
29698else
29699  gcc_cv_as_dwarf_4_debug_line_flag=no
29700  if test x$gcc_cv_as != x; then
29701    $as_echo "$conftest_s" > conftest.s
29702    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29703  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29704  (eval $ac_try) 2>&5
29705  ac_status=$?
29706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29707  test $ac_status = 0; }; }
29708    then
29709	gcc_cv_as_dwarf_4_debug_line_flag=yes
29710    else
29711      echo "configure: failed program was" >&5
29712      cat conftest.s >&5
29713    fi
29714    rm -f conftest.o conftest.s
29715  fi
29716fi
29717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29718$as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29719if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29720  dwarf4_success=yes
29721fi
29722
29723     break
29724   fi
29725   dwarf4_debug_info_size=0x36
29726   dwarf4_high_pc_form=6
29727   dwarf4_debug_aranges_size=0x1c
29728   dwarf4_line_sz=5
29729 done
29730
29731 if test $dwarf4_success = yes; then
29732   conftest_s="\
29733	.file	\"foo.c\"
29734	.text
29735bar:
29736#APP
29737# 82 \"xxx.h\" 1
29738	$insn
29739# 0 \"\" 2
29740#NO_APP
29741	$insn
29742foo:
29743	.file 1 \"foo.c\"
29744	$insn
29745	.file 2 \"foo.h\"
29746	ret
29747"
29748   dwarf4_success=no
29749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29750$as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29751if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29752  $as_echo_n "(cached) " >&6
29753else
29754  gcc_cv_as_dwarf_4_app_flag=no
29755  if test x$gcc_cv_as != x; then
29756    $as_echo "$conftest_s" > conftest.s
29757    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
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    then
29764	gcc_cv_as_dwarf_4_app_flag=yes
29765    else
29766      echo "configure: failed program was" >&5
29767      cat conftest.s >&5
29768    fi
29769    rm -f conftest.o conftest.s
29770  fi
29771fi
29772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29773$as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29774if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29775  dwarf4_success=yes
29776fi
29777
29778 fi
29779
29780 if test $dwarf4_success = yes; then
29781   conftest_s="\
29782	.text
29783	.globl	foo
29784	$function_type
29785foo:
29786	$insn
29787	$function_size
29788	.file	1 \"foo.c\"
29789"
29790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29791$as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29792if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29793  $as_echo_n "(cached) " >&6
29794else
29795  gcc_cv_as_working_gdwarf_n_flag=no
29796  if test x$gcc_cv_as != x; then
29797    $as_echo "$conftest_s" > conftest.s
29798    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29799  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29800  (eval $ac_try) 2>&5
29801  ac_status=$?
29802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29803  test $ac_status = 0; }; }
29804    then
29805	      if test x$gcc_cv_objdump != x \
29806	 && $gcc_cv_objdump -W conftest.o 2>&1 \
29807		| grep conftest.s > /dev/null 2>&1; then
29808	gcc_cv_as_working_gdwarf_n_flag=no
29809      else
29810	gcc_cv_as_working_gdwarf_n_flag=yes
29811      fi
29812          else
29813      echo "configure: failed program was" >&5
29814      cat conftest.s >&5
29815    fi
29816    rm -f conftest.o conftest.s
29817  fi
29818fi
29819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29820$as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29821
29822
29823   if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29824
29825$as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29826
29827   fi
29828 fi
29829
29830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
29831$as_echo_n "checking assembler for --gstabs option... " >&6; }
29832if ${gcc_cv_as_gstabs_flag+:} false; then :
29833  $as_echo_n "(cached) " >&6
29834else
29835  gcc_cv_as_gstabs_flag=no
29836  if test x$gcc_cv_as != x; then
29837    $as_echo "$insn" > conftest.s
29838    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
29839  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29840  (eval $ac_try) 2>&5
29841  ac_status=$?
29842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29843  test $ac_status = 0; }; }
29844    then
29845	gcc_cv_as_gstabs_flag=yes
29846    else
29847      echo "configure: failed program was" >&5
29848      cat conftest.s >&5
29849    fi
29850    rm -f conftest.o conftest.s
29851  fi
29852fi
29853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
29854$as_echo "$gcc_cv_as_gstabs_flag" >&6; }
29855if test $gcc_cv_as_gstabs_flag = yes; then
29856
29857$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
29858
29859fi
29860
29861
29862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29863$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29864if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29865  $as_echo_n "(cached) " >&6
29866else
29867  gcc_cv_as_debug_prefix_map_flag=no
29868  if test x$gcc_cv_as != x; then
29869    $as_echo "$insn" > conftest.s
29870    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29871  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29872  (eval $ac_try) 2>&5
29873  ac_status=$?
29874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29875  test $ac_status = 0; }; }
29876    then
29877	gcc_cv_as_debug_prefix_map_flag=yes
29878    else
29879      echo "configure: failed program was" >&5
29880      cat conftest.s >&5
29881    fi
29882    rm -f conftest.o conftest.s
29883  fi
29884fi
29885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29886$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29887if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29888
29889$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29890
29891fi
29892
29893fi
29894
29895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29896$as_echo_n "checking assembler for compressed debug sections... " >&6; }
29897if ${gcc_cv_as_compress_debug+:} false; then :
29898  $as_echo_n "(cached) " >&6
29899else
29900  gcc_cv_as_compress_debug=no
29901  if test x$gcc_cv_as != x; then
29902    $as_echo '' > conftest.s
29903    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
29904  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29905  (eval $ac_try) 2>&5
29906  ac_status=$?
29907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29908  test $ac_status = 0; }; }
29909    then
29910	# gas compiled without zlib cannot compress debug sections and warns
29911   # about it, but still exits successfully.  So check for this, too.
29912   if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29913   then
29914     gcc_cv_as_compress_debug=0
29915   # Since binutils 2.26, gas supports --compress-debug-sections=type,
29916   # defaulting to the ELF gABI format.
29917   elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
29918   then
29919     gcc_cv_as_compress_debug=2
29920     gcc_cv_as_compress_debug_option="--compress-debug-sections"
29921     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29922   # Before binutils 2.26, gas only supported --compress-debug-options and
29923   # emitted the traditional GNU format.
29924   elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
29925   then
29926     gcc_cv_as_compress_debug=1
29927     gcc_cv_as_compress_debug_option="--compress-debug-sections"
29928     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29929   else
29930     gcc_cv_as_compress_debug=0
29931   fi
29932    else
29933      echo "configure: failed program was" >&5
29934      cat conftest.s >&5
29935    fi
29936    rm -f conftest.o conftest.s
29937  fi
29938fi
29939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29940$as_echo "$gcc_cv_as_compress_debug" >&6; }
29941
29942
29943
29944cat >>confdefs.h <<_ACEOF
29945#define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29946_ACEOF
29947
29948
29949cat >>confdefs.h <<_ACEOF
29950#define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29951_ACEOF
29952
29953
29954cat >>confdefs.h <<_ACEOF
29955#define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29956_ACEOF
29957
29958
29959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29960$as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29961if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29962  $as_echo_n "(cached) " >&6
29963else
29964  gcc_cv_as_lcomm_with_alignment=no
29965  if test x$gcc_cv_as != x; then
29966    $as_echo '.lcomm bar,4,16' > conftest.s
29967    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
29968  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29969  (eval $ac_try) 2>&5
29970  ac_status=$?
29971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29972  test $ac_status = 0; }; }
29973    then
29974	gcc_cv_as_lcomm_with_alignment=yes
29975    else
29976      echo "configure: failed program was" >&5
29977      cat conftest.s >&5
29978    fi
29979    rm -f conftest.o conftest.s
29980  fi
29981fi
29982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29983$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29984if test $gcc_cv_as_lcomm_with_alignment = yes; then
29985
29986$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29987
29988fi
29989
29990
29991if test x$with_sysroot = x && test x$host = x$target \
29992   && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29993   && test "$prefix" != "NONE"; then
29994
29995cat >>confdefs.h <<_ACEOF
29996#define PREFIX_INCLUDE_DIR "$prefix/include"
29997_ACEOF
29998
29999fi
30000
30001# Determine the version of glibc, if any, used on the target.
30002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
30003$as_echo_n "checking for target glibc version... " >&6; }
30004
30005# Check whether --with-glibc-version was given.
30006if test "${with_glibc_version+set}" = set; then :
30007  withval=$with_glibc_version;
30008if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30009  glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30010  glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30011else
30012  as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
30013fi
30014else
30015
30016glibc_version_major=0
30017glibc_version_minor=0
30018if test -f $target_header_dir/features.h \
30019  && glibc_version_major_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+[0-9]' $target_header_dir/features.h` \
30020  && glibc_version_minor_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC_MINOR__[ 	]+[0-9]' $target_header_dir/features.h`; then
30021  glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ 	]*//'`
30022  glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ 	]*//'`
30023fi
30024fi
30025
30026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30027$as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30028
30029cat >>confdefs.h <<_ACEOF
30030#define TARGET_GLIBC_MAJOR $glibc_version_major
30031_ACEOF
30032
30033
30034cat >>confdefs.h <<_ACEOF
30035#define TARGET_GLIBC_MINOR $glibc_version_minor
30036_ACEOF
30037
30038
30039# Check whether --enable-gnu-unique-object was given.
30040if test "${enable_gnu_unique_object+set}" = set; then :
30041  enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30042    yes | no) ;;
30043    *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30044Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30045  esac
30046else
30047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30048$as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30049if ${gcc_cv_as_gnu_unique_object+:} false; then :
30050  $as_echo_n "(cached) " >&6
30051else
30052  gcc_cv_as_gnu_unique_object=no
30053  if test x$gcc_cv_as != x; then
30054    $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30055    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
30056  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30057  (eval $ac_try) 2>&5
30058  ac_status=$?
30059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30060  test $ac_status = 0; }; }
30061    then
30062	gcc_cv_as_gnu_unique_object=yes
30063    else
30064      echo "configure: failed program was" >&5
30065      cat conftest.s >&5
30066    fi
30067    rm -f conftest.o conftest.s
30068  fi
30069fi
30070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30071$as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30072if test $gcc_cv_as_gnu_unique_object = yes; then
30073  # We need to unquote above to to use the definition from config.gcc.
30074# Also check for ld.so support, i.e. glibc 2.11 or higher.
30075
30076if test $glibc_version_major -gt 2 \
30077  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30078  enable_gnu_unique_object=yes
30079fi
30080
30081fi
30082
30083fi
30084
30085if test x$enable_gnu_unique_object = xyes; then
30086
30087$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30088
30089fi
30090
30091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30092$as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30093if ${gcc_cv_as_line_zero+:} false; then :
30094  $as_echo_n "(cached) " >&6
30095else
30096  gcc_cv_as_line_zero=no
30097  if test "x$gcc_cv_as" != x; then
30098    { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30099    if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30100  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30101  (eval $ac_try) 2>&5
30102  ac_status=$?
30103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30104  test $ac_status = 0; }; } &&
30105       test "x`cat conftest.out`" = x
30106    then
30107      gcc_cv_as_line_zero=yes
30108    else
30109      echo "configure: failed program was" >&5
30110      cat conftest.s >&5
30111      echo "configure: error output was" >&5
30112      cat conftest.out >&5
30113    fi
30114    rm -f conftest.o conftest.s conftest.out
30115  fi
30116fi
30117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30118$as_echo "$gcc_cv_as_line_zero" >&6; }
30119if test "x$gcc_cv_as_line_zero" = xyes; then
30120
30121$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30122
30123fi
30124
30125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30126$as_echo_n "checking support for thin archives... " >&6; }
30127thin_archive_support=no
30128echo 'int main (void) { return 0; }' > conftest.c
30129if ($AR --version | sed 1q | grep "GNU ar" \
30130    && $CC $CFLAGS -c conftest.c \
30131    && $AR rcT conftest.a conftest.o \
30132    && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
30133  thin_archive_support=yes
30134fi
30135rm -f conftest.c conftest.o conftest.a conftest
30136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30137$as_echo "$thin_archive_support" >&6; }
30138
30139
30140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30141$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30142gcc_cv_ld_eh_frame_hdr=no
30143if test $in_tree_ld = yes ; then
30144  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 \
30145     && test $in_tree_ld_is_elf = yes; then
30146    gcc_cv_ld_eh_frame_hdr=yes
30147  fi
30148elif test x$gcc_cv_ld != x; then
30149  if echo "$ld_ver" | grep GNU > /dev/null; then
30150    # Check if linker supports --eh-frame-hdr option
30151    if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30152      gcc_cv_ld_eh_frame_hdr=yes
30153    fi
30154  else
30155    case "$target" in
30156      *-*-solaris2*)
30157        # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30158        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30159          gcc_cv_ld_eh_frame_hdr=yes
30160        fi
30161        ;;
30162    esac
30163  fi
30164fi
30165
30166if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30167
30168$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30169
30170fi
30171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30172$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30173
30174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30175$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30176gcc_cv_ld_eh_frame_ciev3=no
30177if test $in_tree_ld = yes ; then
30178  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 \
30179     && test $in_tree_ld_is_elf = yes; then
30180    gcc_cv_ld_eh_frame_ciev3=yes
30181  fi
30182elif test x$gcc_cv_ld != x; then
30183  if echo "$ld_ver" | grep GNU > /dev/null; then
30184    gcc_cv_ld_eh_frame_ciev3=yes
30185    if test 0"$ld_date" -lt 20040513; then
30186      if test -n "$ld_date"; then
30187	# If there was date string, but was earlier than 2004-05-13, fail
30188	gcc_cv_ld_eh_frame_ciev3=no
30189      elif test "$ld_vers_major" -lt 2; then
30190	gcc_cv_ld_eh_frame_ciev3=no
30191      elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30192	gcc_cv_ld_eh_frame_ciev3=no
30193      fi
30194    fi
30195  else
30196    case "$target" in
30197      *-*-solaris2*)
30198        # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30199        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30200          gcc_cv_ld_eh_frame_ciev3=yes
30201        fi
30202        ;;
30203    esac
30204  fi
30205fi
30206
30207cat >>confdefs.h <<_ACEOF
30208#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30209_ACEOF
30210
30211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30212$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30213
30214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30215$as_echo_n "checking linker position independent executable support... " >&6; }
30216gcc_cv_ld_pie=no
30217if test $in_tree_ld = yes ; then
30218  case "$target" in
30219    # Full PIE support on Solaris was only introduced in gld 2.26.
30220    *-*-solaris2*)  gcc_gld_pie_min_version=26 ;;
30221    *) 		    gcc_gld_pie_min_version=15 ;;
30222  esac
30223  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 \
30224     && test $in_tree_ld_is_elf = yes; then
30225    gcc_cv_ld_pie=yes
30226  fi
30227elif test x$gcc_cv_ld != x; then
30228  # Check if linker supports -pie option
30229  if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30230    gcc_cv_ld_pie=yes
30231    case "$target" in
30232      *-*-solaris2*)
30233	if echo "$ld_ver" | grep GNU > /dev/null \
30234	  && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30235	  gcc_cv_ld_pie=no
30236	fi
30237	;;
30238    esac
30239  else
30240    case "$target" in
30241      *-*-solaris2.1[1-9]*)
30242	# Solaris 11.3 added PIE support.
30243	if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30244	  gcc_cv_ld_pie=yes
30245	fi
30246	;;
30247    esac
30248  fi
30249fi
30250if test x"$gcc_cv_ld_pie" = xyes; then
30251
30252$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30253
30254fi
30255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30256$as_echo "$gcc_cv_ld_pie" >&6; }
30257
30258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30259$as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30260gcc_cv_ld_pie_copyreloc=no
30261if test $gcc_cv_ld_pie = yes ; then
30262  if test $in_tree_ld = yes ; then
30263    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
30264      gcc_cv_ld_pie_copyreloc=yes
30265    fi
30266  elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30267    # Check if linker supports -pie option with copy reloc
30268    case "$target" in
30269    i?86-*-linux* | x86_64-*-linux*)
30270      cat > conftest1.s <<EOF
30271	.globl	a_glob
30272	.data
30273	.type	a_glob, @object
30274	.size	a_glob, 4
30275a_glob:
30276	.long	2
30277EOF
30278      cat > conftest2.s <<EOF
30279	.text
30280	.globl	main
30281	.type	main, @function
30282main:
30283	movl	%eax, a_glob(%rip)
30284	.size	main, .-main
30285	.globl	ptr
30286	.section	.data.rel,"aw",@progbits
30287	.type	ptr, @object
30288ptr:
30289	.quad	a_glob
30290EOF
30291      if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30292         && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30293         && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30294         && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30295        gcc_cv_ld_pie_copyreloc=yes
30296      fi
30297      rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30298      ;;
30299    esac
30300  fi
30301fi
30302
30303cat >>confdefs.h <<_ACEOF
30304#define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30305_ACEOF
30306
30307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30308$as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30309
30310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30311$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30312gcc_cv_ld_eh_gc_sections=no
30313if test $in_tree_ld = yes ; then
30314  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 \
30315     && test $in_tree_ld_is_elf = yes; then
30316    gcc_cv_ld_eh_gc_sections=yes
30317  fi
30318elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30319  cat > conftest.s <<EOF
30320	.section	.text
30321.globl _start
30322        .type _start, @function
30323_start:
30324	.long foo
30325	.size _start, .-_start
30326	.section	.text.foo,"ax",@progbits
30327	.type foo, @function
30328foo:
30329	.long 0
30330	.size foo, .-foo
30331	.section	.gcc_except_table.foo,"a",@progbits
30332.L0:
30333	.long 0
30334	.section	.eh_frame,"a",@progbits
30335	.long .L0
30336EOF
30337  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30338    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30339	 | grep "gc-sections option ignored" > /dev/null; then
30340      gcc_cv_ld_eh_gc_sections=no
30341    elif $gcc_cv_objdump -h conftest 2> /dev/null \
30342         | grep gcc_except_table > /dev/null; then
30343      gcc_cv_ld_eh_gc_sections=yes
30344      # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30345      if test x$gcc_cv_as_comdat_group != xyes; then
30346	gcc_cv_ld_eh_gc_sections=no
30347	cat > conftest.s <<EOF
30348	.section	.text
30349.globl _start
30350        .type _start, @function
30351_start:
30352	.long foo
30353	.size _start, .-_start
30354	.section	.gnu.linkonce.t.foo,"ax",@progbits
30355	.type foo, @function
30356foo:
30357	.long 0
30358	.size foo, .-foo
30359	.section	.gcc_except_table.foo,"a",@progbits
30360.L0:
30361	.long 0
30362	.section	.eh_frame,"a",@progbits
30363	.long .L0
30364EOF
30365	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30366	  if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30367	       | grep "gc-sections option ignored" > /dev/null; then
30368	    gcc_cv_ld_eh_gc_sections=no
30369	  elif $gcc_cv_objdump -h conftest 2> /dev/null \
30370	       | grep gcc_except_table > /dev/null; then
30371	    gcc_cv_ld_eh_gc_sections=yes
30372	  fi
30373	fi
30374      fi
30375    fi
30376  fi
30377  rm -f conftest.s conftest.o conftest
30378fi
30379case "$target" in
30380  hppa*-*-linux*)
30381    # ??? This apparently exposes a binutils bug with PC-relative relocations.
30382    gcc_cv_ld_eh_gc_sections=no
30383    ;;
30384esac
30385if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30386
30387$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30388
30389fi
30390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30391$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30392
30393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30394$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30395gcc_cv_ld_eh_gc_sections_bug=no
30396if test $in_tree_ld = yes ; then
30397  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 \
30398     && test $in_tree_ld_is_elf = yes; then
30399    gcc_cv_ld_eh_gc_sections_bug=yes
30400  fi
30401elif 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
30402  gcc_cv_ld_eh_gc_sections_bug=yes
30403  cat > conftest.s <<EOF
30404	.section	.text
30405.globl _start
30406	.type _start, @function
30407_start:
30408	.long foo
30409	.size _start, .-_start
30410	.section	.text.startup.foo,"ax",@progbits
30411	.type foo, @function
30412foo:
30413	.long 0
30414	.size foo, .-foo
30415	.section	.gcc_except_table.foo,"a",@progbits
30416.L0:
30417	.long 0
30418	.section	.eh_frame,"a",@progbits
30419	.long .L0
30420EOF
30421  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30422    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30423	 | grep "gc-sections option ignored" > /dev/null; then
30424      :
30425    elif $gcc_cv_objdump -h conftest 2> /dev/null \
30426	 | grep gcc_except_table > /dev/null; then
30427      gcc_cv_ld_eh_gc_sections_bug=no
30428    fi
30429  fi
30430  rm -f conftest.s conftest.o conftest
30431fi
30432if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30433
30434$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30435
30436fi
30437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30438$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30439
30440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30441$as_echo_n "checking linker for compressed debug sections... " >&6; }
30442# gold/gld support compressed debug sections since binutils 2.19/2.21
30443# In binutils 2.26, gld gained support for the ELF gABI format.
30444if test $in_tree_ld = yes ; then
30445  gcc_cv_ld_compress_debug=0
30446  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 \
30447     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30448    gcc_cv_ld_compress_debug=2
30449    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30450  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 \
30451     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
30452    gcc_cv_ld_compress_debug=3
30453    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30454  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 \
30455     && test $in_tree_ld_is_elf = yes; then
30456    gcc_cv_ld_compress_debug=1
30457  fi
30458elif echo "$ld_ver" | grep GNU > /dev/null; then
30459  if test "$ld_vers_major" -lt 2 \
30460     || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30461    gcc_cv_ld_compress_debug=0
30462  elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30463    gcc_cv_ld_compress_debug=1
30464  else
30465    gcc_cv_ld_compress_debug=3
30466    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30467  fi
30468  if test $ld_is_gold = yes; then
30469    gcc_cv_ld_compress_debug=2
30470    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30471  fi
30472else
30473  case "${target}" in
30474    *-*-solaris2*)
30475      # Introduced in Solaris 11.2.
30476      if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30477        gcc_cv_ld_compress_debug=3
30478        gcc_cv_ld_compress_debug_option="-z compress-sections"
30479      else
30480        gcc_cv_ld_compress_debug=0
30481      fi
30482      ;;
30483    *)
30484      # Assume linkers other than GNU ld don't support compessed debug
30485      # sections.
30486      gcc_cv_ld_compress_debug=0
30487      ;;
30488  esac
30489fi
30490
30491cat >>confdefs.h <<_ACEOF
30492#define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30493_ACEOF
30494
30495
30496cat >>confdefs.h <<_ACEOF
30497#define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30498_ACEOF
30499
30500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30501$as_echo "$gcc_cv_ld_compress_debug" >&6; }
30502
30503if test x"$ld64_flag" = x"yes"; then
30504
30505  # Set defaults for possibly untestable items.
30506  gcc_cv_ld64_export_dynamic=0
30507  gcc_cv_ld64_platform_version=0
30508
30509  if test "$build" = "$host"; then
30510    darwin_try_test=1
30511  else
30512    darwin_try_test=0
30513  fi
30514
30515  # On Darwin, because of FAT library support, it is often possible to execute
30516  # exes from compatible archs even when the host differs from the build system.
30517  case "$build","$host" in
30518    x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30519	darwin_try_test=1;;
30520    *) ;;
30521  esac
30522
30523  # If the configurer specified a minimum ld64 version to be supported, then use
30524  # that to determine feature support.
30525  if test x"${gcc_cv_ld64_version}" != x; then
30526    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30527$as_echo_n "checking ld64 specified version... " >&6; }
30528    gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30530$as_echo "$gcc_cv_ld64_major" >&6; }
30531    if test "$gcc_cv_ld64_major" -ge 236; then
30532      gcc_cv_ld64_export_dynamic=1
30533    fi
30534    if test "$gcc_cv_ld64_major" -ge 512; then
30535      gcc_cv_ld64_platform_version=1
30536    fi
30537  elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30538    # If the version was not specified, try to find it.
30539    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30540$as_echo_n "checking linker version... " >&6; }
30541    if test x"${gcc_cv_ld64_version}" = x; then
30542      gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30543    fi
30544    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30545$as_echo "$gcc_cv_ld64_version" >&6; }
30546
30547    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30548$as_echo_n "checking linker for -export_dynamic support... " >&6; }
30549    gcc_cv_ld64_export_dynamic=1
30550    if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30551      gcc_cv_ld64_export_dynamic=0
30552    fi
30553    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30554$as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30555
30556    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30557$as_echo_n "checking linker for -platform_version support... " >&6; }
30558    gcc_cv_ld64_platform_version=1
30559    if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30560      gcc_cv_ld64_platform_version=0
30561    fi
30562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30563$as_echo "$gcc_cv_ld64_platform_version" >&6; }
30564  fi
30565
30566  if test x"${gcc_cv_ld64_version}" != x; then
30567
30568cat >>confdefs.h <<_ACEOF
30569#define LD64_VERSION "${gcc_cv_ld64_version}"
30570_ACEOF
30571
30572  fi
30573
30574
30575cat >>confdefs.h <<_ACEOF
30576#define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30577_ACEOF
30578
30579
30580
30581cat >>confdefs.h <<_ACEOF
30582#define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30583_ACEOF
30584
30585fi
30586
30587if test x"$dsymutil_flag" = x"yes"; then
30588
30589    # If the user specified a dsymutil path, then we will already have the
30590    # version string, otherwise, pick it up.
30591    if test x"$gcc_cv_dsymutil" = x; then
30592        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30593$as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30594        dsymutil_vers="tool unspecified"
30595    elif test x"$dsymutil_vers" = x; then
30596	dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30597    fi
30598
30599    dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30600    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30601$as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30602    if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30603      dsymutil_kind=DWARFUTILS
30604      dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30605    elif echo $dsymutil_temp | grep clang- > /dev/null; then
30606      dsymutil_kind=CLANG
30607      dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30608    elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30609      dsymutil_kind=LLVM
30610      dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30611    else
30612      dsymutil_kind=UNKNOWN
30613      dsymutil_vers="0.0"
30614    fi
30615    dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30616    dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30617    dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30618    if test x"${dsymutil_minor}" = x; then
30619      dsymutil_minor=0
30620    fi
30621    if test x"${dsymutil_tiny}" = x; then
30622      dsymutil_tiny=0
30623    fi
30624
30625cat >>confdefs.h <<_ACEOF
30626#define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30627_ACEOF
30628
30629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30630$as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30631fi
30632
30633case $target_os in
30634  win32 | pe | cygwin* | mingw32*)
30635    { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30636$as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30637    gcc_cv_ld_broken_pe_dwarf5=yes
30638    if test $in_tree_ld = yes ; then
30639      if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30640	   $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30641	 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30642	      $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30643	gcc_cv_ld_broken_pe_dwarf5=no
30644      fi
30645    else
30646      if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30647	 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30648	gcc_cv_ld_broken_pe_dwarf5=no
30649      fi
30650    fi
30651    if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30652
30653$as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30654
30655    fi
30656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30657$as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30658
30659    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30660$as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30661    gcc_cv_ld_disable_dynamicbase=no
30662    if test $in_tree_ld = yes; then
30663      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 \
30664        gcc_cv_ld_disable_dynamicbase=yes
30665      fi
30666    else
30667      if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30668        gcc_cv_ld_disable_dynamicbase=yes
30669      fi
30670    fi
30671    if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30672
30673$as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30674
30675    fi
30676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30677$as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30678    ;;
30679esac
30680
30681# --------
30682# UNSORTED
30683# --------
30684
30685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30686$as_echo_n "checking linker --as-needed support... " >&6; }
30687if ${gcc_cv_ld_as_needed+:} false; then :
30688  $as_echo_n "(cached) " >&6
30689else
30690  gcc_cv_ld_as_needed=no
30691gcc_cv_ld_as_needed_option='--as-needed'
30692gcc_cv_ld_no_as_needed_option='--no-as-needed'
30693if test $in_tree_ld = yes ; then
30694  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 \
30695     && test $in_tree_ld_is_elf = yes; then
30696    gcc_cv_ld_as_needed=yes
30697    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30698      gcc_cv_ld_as_needed_option='--push-state --as-needed'
30699      gcc_cv_ld_no_as_needed_option='--pop-state'
30700    fi
30701  fi
30702elif test x$gcc_cv_ld != x; then
30703  # Check if linker supports --as-needed and --no-as-needed options
30704  if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30705    gcc_cv_ld_as_needed=yes
30706    if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30707       && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30708       && echo "$ld_ver" | grep GNU > /dev/null \
30709       && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30710      # Use these options only when both ld.bfd and ld.gold support
30711      # --push-state/--pop-state, which unfortunately wasn't added
30712      # at the same time.
30713      gcc_cv_ld_as_needed_option='--push-state --as-needed'
30714      gcc_cv_ld_no_as_needed_option='--pop-state'
30715    fi
30716  fi
30717  case "$target:$gnu_ld" in
30718    *-*-solaris2*:no)
30719      # Solaris 2 ld always supports -z ignore/-z record.  Prefer the native
30720      # forms.
30721      gcc_cv_ld_as_needed=yes
30722      gcc_cv_ld_as_needed_option="-z ignore"
30723      gcc_cv_ld_no_as_needed_option="-z record"
30724      ;;
30725  esac
30726fi
30727# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30728# dl_iterate_phdr, i.e. since Solaris 11.
30729case "$target" in
30730  *-*-solaris2.1[1-9]*)
30731    case "$target" in
30732    i?86-*-* | x86_64-*-*)
30733      if echo "$ld_ver" | grep GNU > /dev/null; then
30734        # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30735        gcc_cv_ld_as_needed=no
30736      fi
30737      ;;
30738    esac
30739    ;;
30740  *-*-solaris2*)
30741    gcc_cv_ld_as_needed=no
30742    ;;
30743esac
30744
30745fi
30746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30747$as_echo "$gcc_cv_ld_as_needed" >&6; }
30748if test x"$gcc_cv_ld_as_needed" = xyes; then
30749
30750$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30751
30752
30753cat >>confdefs.h <<_ACEOF
30754#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30755_ACEOF
30756
30757
30758cat >>confdefs.h <<_ACEOF
30759#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30760_ACEOF
30761
30762fi
30763
30764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30765$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30766saved_LDFLAGS="$LDFLAGS"
30767for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30768  LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30770/* end confdefs.h.  */
30771int main(void) {return 0;}
30772_ACEOF
30773if ac_fn_cxx_try_link "$LINENO"; then :
30774  gcc_cv_ld_clearcap=yes; break
30775else
30776  gcc_cv_ld_clearcap=no
30777fi
30778rm -f core conftest.err conftest.$ac_objext \
30779    conftest$ac_exeext conftest.$ac_ext
30780done
30781LDFLAGS="$saved_LDFLAGS"
30782if test "x$gcc_cv_ld_clearcap" = xyes; then
30783
30784$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30785
30786  ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30787
30788fi
30789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30790$as_echo "$gcc_cv_ld_clearcap" >&6; }
30791
30792case "$target" in
30793  powerpc*-*-*)
30794    case "$target" in
30795      *le-*-linux*)
30796	emul_name="-melf32lppc"
30797	;;
30798      *)
30799	emul_name="-melf32ppc"
30800	;;
30801    esac
30802    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30803$as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30804if ${gcc_cv_ld_ppc_attr+:} false; then :
30805  $as_echo_n "(cached) " >&6
30806else
30807  gcc_cv_ld_ppc_attr=no
30808    if test x"$ld_is_gold" = xyes; then
30809      gcc_cv_ld_ppc_attr=yes
30810    elif test $in_tree_ld = yes ; then
30811      if test "$gcc_cv_gld_major_version" -eq 2 \
30812		-a "$gcc_cv_gld_minor_version" -ge 28 \
30813		-o "$gcc_cv_gld_major_version" -gt 2; then
30814        gcc_cv_ld_ppc_attr=yes
30815      fi
30816    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30817      # check that merging the long double .gnu_attribute doesn't warn
30818      cat > conftest1.s <<EOF
30819	.gnu_attribute 4,1
30820EOF
30821      cat > conftest2.s <<EOF
30822	.gnu_attribute 4,9
30823EOF
30824      if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30825         && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30826         && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30827	 && test ! -s conftest.err; then
30828        gcc_cv_ld_ppc_attr=yes
30829      fi
30830      rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30831    fi
30832
30833fi
30834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30835$as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30836    if test x$gcc_cv_ld_ppc_attr = xyes; then
30837
30838$as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30839
30840    fi
30841    ;;
30842esac
30843
30844case "$target:$tm_file" in
30845  powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30846  case "$target" in
30847     *le-*-linux*)
30848     emul_name="-melf64lppc"
30849      ;;
30850     *-*-linux*)
30851     emul_name="-melf64ppc"
30852      ;;
30853     *le-*-freebsd*)
30854     emul_name="-melf64lppc_fbsd"
30855      ;;
30856     *-*-freebsd*)
30857     emul_name="-melf64ppc_fbsd"
30858      ;;
30859  esac
30860    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30861$as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30862if ${gcc_cv_ld_no_dot_syms+:} false; then :
30863  $as_echo_n "(cached) " >&6
30864else
30865  gcc_cv_ld_no_dot_syms=no
30866    if test x"$ld_is_gold" = xyes; then
30867      gcc_cv_ld_no_dot_syms=yes
30868    elif test $in_tree_ld = yes ; then
30869      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
30870        gcc_cv_ld_no_dot_syms=yes
30871      fi
30872    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30873      cat > conftest1.s <<EOF
30874	.text
30875	bl .foo
30876EOF
30877      cat > conftest2.s <<EOF
30878	.section ".opd","aw"
30879	.align 3
30880	.globl foo
30881	.type foo,@function
30882foo:
30883	.quad .LEfoo,.TOC.@tocbase,0
30884	.text
30885.LEfoo:
30886	blr
30887	.size foo,.-.LEfoo
30888EOF
30889      if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30890         && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30891         && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30892        gcc_cv_ld_no_dot_syms=yes
30893      fi
30894      rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30895    fi
30896
30897fi
30898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30899$as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30900    if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30901
30902$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30903
30904    fi
30905
30906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30907$as_echo_n "checking linker large toc support... " >&6; }
30908if ${gcc_cv_ld_large_toc+:} false; then :
30909  $as_echo_n "(cached) " >&6
30910else
30911  gcc_cv_ld_large_toc=no
30912    if test x"$ld_is_gold" = xyes; then
30913      gcc_cv_ld_large_toc=yes
30914    elif test $in_tree_ld = yes ; then
30915      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
30916        gcc_cv_ld_large_toc=yes
30917      fi
30918    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30919      cat > conftest.s <<EOF
30920	.section ".tbss","awT",@nobits
30921	.align 3
30922ie0:	.space 8
30923	.global _start
30924	.text
30925_start:
30926	addis 9,13,ie0@got@tprel@ha
30927	ld 9,ie0@got@tprel@l(9)
30928EOF
30929      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30930         && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30931        gcc_cv_ld_large_toc=yes
30932      fi
30933      rm -f conftest conftest.o conftest.s
30934    fi
30935
30936fi
30937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30938$as_echo "$gcc_cv_ld_large_toc" >&6; }
30939    if test x"$gcc_cv_ld_large_toc" = xyes; then
30940
30941$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30942
30943    fi
30944
30945    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30946$as_echo_n "checking linker toc pointer alignment... " >&6; }
30947if ${gcc_cv_ld_toc_align+:} false; then :
30948  $as_echo_n "(cached) " >&6
30949else
30950  if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30951      cat > conftest.s <<EOF
30952	.global _start
30953	.text
30954_start:
30955	addis 9,2,x@got@ha
30956	.section .data.rel.ro,"aw",@progbits
30957	.p2align 16
30958	.space 32768
30959x:	.quad .TOC.
30960EOF
30961      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30962         && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30963        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)) }'`
30964      fi
30965      rm -f conftest conftest.o conftest.s
30966    fi
30967
30968fi
30969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30970$as_echo "$gcc_cv_ld_toc_align" >&6; }
30971    if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30972
30973cat >>confdefs.h <<_ACEOF
30974#define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30975_ACEOF
30976
30977    fi
30978    ;;
30979esac
30980
30981case "$target" in
30982  *-*-aix*)
30983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30984$as_echo_n "checking linker large toc support... " >&6; }
30985if ${gcc_cv_ld_large_toc+:} false; then :
30986  $as_echo_n "(cached) " >&6
30987else
30988  gcc_cv_ld_large_toc=no
30989    if test x$gcc_cv_as != x ; then
30990      cat > conftest.s <<EOF
30991	.toc
30992LC..1:
30993	.tc a[TC],a[RW]
30994	.extern a[RW]
30995	.csect .text[PR]
30996.largetoctest:
30997	addis 9,LC..1@u(2)
30998	ld 3,LC..1@l(9)
30999EOF
31000      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
31001        gcc_cv_ld_large_toc=yes
31002      fi
31003      rm -f conftest conftest.o conftest.s
31004    fi
31005
31006fi
31007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31008$as_echo "$gcc_cv_ld_large_toc" >&6; }
31009    if test x"$gcc_cv_ld_large_toc" = xyes; then
31010
31011$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31012
31013    fi
31014    ;;
31015esac
31016
31017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
31018$as_echo_n "checking linker --build-id support... " >&6; }
31019if ${gcc_cv_ld_buildid+:} false; then :
31020  $as_echo_n "(cached) " >&6
31021else
31022  gcc_cv_ld_buildid=no
31023  if test $in_tree_ld = yes ; then
31024    if test "$gcc_cv_gld_major_version" -eq 2 -a \
31025       "$gcc_cv_gld_minor_version" -ge 18 -o \
31026       "$gcc_cv_gld_major_version" -gt 2 \
31027       && test $in_tree_ld_is_elf = yes; then
31028      gcc_cv_ld_buildid=yes
31029    fi
31030  elif test x$gcc_cv_ld != x; then
31031    if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
31032      gcc_cv_ld_buildid=yes
31033    fi
31034  fi
31035fi
31036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31037$as_echo "$gcc_cv_ld_buildid" >&6; }
31038if test x"$gcc_cv_ld_buildid" = xyes; then
31039
31040$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31041
31042fi
31043
31044# Check whether --enable-linker-build-id was given.
31045if test "${enable_linker_build_id+set}" = set; then :
31046  enableval=$enable_linker_build_id;
31047else
31048  enable_linker_build_id=no
31049fi
31050
31051
31052if test x"$enable_linker_build_id" = xyes; then
31053  if test x"$gcc_cv_ld_buildid" = xyes; then
31054
31055$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31056
31057  else
31058    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31059$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31060  fi
31061fi
31062
31063# In binutils 2.21, GNU ld gained support for new emulations fully
31064# supporting the Solaris 2 ABI.  Detect their presence in the linker used.
31065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31066$as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31067if ${gcc_cv_ld_sol2_emulation+:} false; then :
31068  $as_echo_n "(cached) " >&6
31069else
31070  gcc_cv_ld_sol2_emulation=no
31071  if test $in_tree_ld = yes ; then
31072    if test "$gcc_cv_gld_major_version" -eq 2 -a \
31073       "$gcc_cv_gld_minor_version" -ge 21 -o \
31074       "$gcc_cv_gld_major_version" -gt 2 \
31075       && test $in_tree_ld_is_elf = yes; then
31076      gcc_cv_ld_sol2_emulation=yes
31077    fi
31078  elif test x$gcc_cv_ld != x; then
31079    if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
31080       grep _sol2 > /dev/null; then
31081      gcc_cv_ld_sol2_emulation=yes
31082    fi
31083  fi
31084fi
31085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31086$as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31087if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
31088
31089$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31090
31091fi
31092
31093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31094$as_echo_n "checking linker --sysroot support... " >&6; }
31095if ${gcc_cv_ld_sysroot+:} false; then :
31096  $as_echo_n "(cached) " >&6
31097else
31098  gcc_cv_ld_sysroot=no
31099  if test $in_tree_ld = yes ; then
31100      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
31101        gcc_cv_ld_sysroot=yes
31102      fi
31103  elif test x$gcc_cv_ld != x; then
31104    if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
31105      gcc_cv_ld_sysroot=yes
31106    fi
31107  fi
31108fi
31109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31110$as_echo "$gcc_cv_ld_sysroot" >&6; }
31111if test x"$gcc_cv_ld_sysroot" = xyes; then
31112
31113$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31114
31115fi
31116
31117case $target in
31118*-*-solaris2*)
31119  # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31121$as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31122if ${gcc_cv_solaris_crts+:} false; then :
31123  $as_echo_n "(cached) " >&6
31124else
31125  gcc_cv_solaris_crts=no
31126     if test x$host != x$target; then
31127       if test "x$with_sysroot" = xyes; then
31128         target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
31129       else
31130         target_sysroot="${with_sysroot}"
31131       fi
31132     fi
31133     target_libdir="$target_sysroot/usr/lib"
31134     # At the time they were added, gcrt1.o became a symlink for backwards
31135     # compatibility on x86, while crt1.o was added on sparc, so check for that.
31136     case $target in
31137       i?86-*-solaris2* | x86_64-*-solaris2*)
31138         if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
31139	 ;;
31140       sparc*-*-solaris2*)
31141         if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
31142	 ;;
31143     esac
31144fi
31145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31146$as_echo "$gcc_cv_solaris_crts" >&6; }
31147  ;;
31148esac
31149if test x$gcc_cv_solaris_crts = xyes; then
31150
31151$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31152
31153fi
31154
31155# Check whether --enable-libssp was given.
31156if test "${enable_libssp+set}" = set; then :
31157  enableval=$enable_libssp; case "${enableval}" in
31158  yes|no)
31159    ;;
31160  *)
31161    as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
31162    ;;
31163esac
31164fi
31165
31166
31167# Test for stack protector support in target C library.
31168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31169$as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31170if ${gcc_cv_libc_provides_ssp+:} false; then :
31171  $as_echo_n "(cached) " >&6
31172else
31173  gcc_cv_libc_provides_ssp=no
31174  if test "x$enable_libssp" = "xno"; then
31175    gcc_cv_libc_provides_ssp=yes
31176  elif test "x$enable_libssp" = "xyes"; then
31177    gcc_cv_libc_provides_ssp=no
31178  else
31179    case "$target" in
31180       *-*-musl*)
31181	 # All versions of musl provide stack protector
31182	 gcc_cv_libc_provides_ssp=yes;;
31183       *-*-linux* | *-*-kfreebsd*-gnu)
31184      # glibc 2.4 and later provides __stack_chk_fail and
31185      # either __stack_chk_guard, or TLS access to stack guard canary.
31186
31187if test $glibc_version_major -gt 2 \
31188  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31189  gcc_cv_libc_provides_ssp=yes
31190else
31191
31192      if test -f $target_header_dir/features.h \
31193	 && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GNU_LIBRARY__[ 	]+([1-9][0-9]|[6-9])' \
31194	    $target_header_dir/features.h > /dev/null; then
31195	if $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC__[ 	]+1' \
31196	     $target_header_dir/features.h > /dev/null && \
31197	     test -f $target_header_dir/bits/uClibc_config.h && \
31198	     $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC_HAS_SSP__[ 	]+1' \
31199	     $target_header_dir/bits/uClibc_config.h > /dev/null; then
31200	  gcc_cv_libc_provides_ssp=yes
31201	fi
31202      # all versions of Bionic support stack protector
31203      elif test -f $target_header_dir/sys/cdefs.h \
31204        && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
31205           $target_header_dir/sys/cdefs.h > /dev/null; then
31206         gcc_cv_libc_provides_ssp=yes
31207      fi
31208fi
31209	;;
31210       *-*-gnu*)
31211	 # Avoid complicated tests (see
31212	 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31213	 # simply assert that glibc does provide this, which is true for all
31214	 # realistically usable GNU/Hurd configurations.
31215	 # All supported versions of musl provide it as well
31216	 gcc_cv_libc_provides_ssp=yes;;
31217       *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd*)
31218	 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31219if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31220  gcc_cv_libc_provides_ssp=yes
31221else
31222  echo "no __stack_chk_fail on this target"
31223fi
31224
31225        ;;
31226       *) gcc_cv_libc_provides_ssp=no ;;
31227    esac
31228  fi
31229fi
31230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31231$as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31232
31233if test x$gcc_cv_libc_provides_ssp = xyes; then
31234
31235$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31236
31237fi
31238
31239# Check whether --enable-default-ssp was given.
31240# Check whether --enable-default-ssp was given.
31241if test "${enable_default_ssp+set}" = set; then :
31242  enableval=$enable_default_ssp;
31243if test x$gcc_cv_libc_provides_ssp = xyes; then
31244  case "$target" in
31245    ia64*-*-*) enable_default_ssp=no ;;
31246    *) enable_default_ssp=$enableval ;;
31247  esac
31248else
31249  enable_default_ssp=no
31250fi
31251else
31252  enable_default_ssp=no
31253fi
31254
31255if test x$enable_default_ssp = xyes ; then
31256
31257$as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31258
31259fi
31260
31261
31262# Test for <sys/sdt.h> on the target.
31263
31264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31265$as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31266have_sys_sdt_h=no
31267if test -f $target_header_dir/sys/sdt.h; then
31268  have_sys_sdt_h=yes
31269
31270$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31271
31272fi
31273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
31274$as_echo "$have_sys_sdt_h" >&6; }
31275
31276# Check if TFmode long double should be used by default or not.
31277# Some glibc targets used DFmode long double, but with glibc 2.4
31278# and later they can use TFmode.
31279case "$target" in
31280  powerpc*-*-linux* | \
31281  sparc*-*-linux* | \
31282  s390*-*-linux* | \
31283  alpha*-*-linux*)
31284
31285# Check whether --with-long-double-128 was given.
31286if test "${with_long_double_128+set}" = set; then :
31287  withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31288else
31289
31290      case "$target" in
31291	s390*-*-linux-musl*)
31292	  gcc_cv_target_ldbl128=yes
31293	  ;;
31294	powerpc*-*-linux-musl*)
31295	  gcc_cv_target_ldbl128=no
31296	  ;;
31297	*)
31298
31299if test $glibc_version_major -gt 2 \
31300  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31301  gcc_cv_target_ldbl128=yes
31302else
31303
31304      gcc_cv_target_ldbl128=no
31305      grep '^[ 	]*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
31306        $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31307      && gcc_cv_target_ldbl128=yes
31308
31309fi
31310
31311	  ;;
31312      esac
31313
31314fi
31315
31316    ;;
31317esac
31318if test x$gcc_cv_target_ldbl128 = xyes; then
31319
31320$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31321
31322fi
31323
31324# Check if TFmode long double target should use the IBM extended double or IEEE
31325# 128-bit floating point formats if long doubles are 128-bits long.  The long
31326# double type can only be switched on powerpc64 bit Linux systems where VSX is
31327# supported.  Other PowerPC systems do not build the IEEE 128-bit emulator in
31328# libgcc.
31329
31330# Check whether --with-long-double-format was given.
31331if test "${with_long_double_format+set}" = set; then :
31332  withval=$with_long_double_format;
31333case "$target:$with_long_double_format" in
31334  powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31335    :
31336    ;;
31337  powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31338    # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31339    case "$with_cpu" in
31340      power7 | power8 | power9 | power1*)
31341	:
31342	;;
31343      *)
31344	as_fn_error $? "Configuration option --with-long-double-format is only \
31345supported if the default cpu is power7 or newer" "$LINENO" 5
31346	with_long_double_format=""
31347	;;
31348      esac
31349      ;;
31350  powerpc64*-*-linux*:*)
31351    as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31352    with_long_double_format=""
31353    ;;
31354  *)
31355    as_fn_error $? "Configure option --with-long-double-format is only supported \
31356on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31357    with_long_double_format=""
31358    ;;
31359esac
31360fi
31361
31362
31363# Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31364# values in the TCB.  Currently, only GLIBC 2.23 and later support this.
31365gcc_cv_libc_provides_hwcap_in_tcb=no
31366case "$target" in
31367  powerpc*-*-linux*)
31368
31369if test $glibc_version_major -gt 2 \
31370  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31371  gcc_cv_libc_provides_hwcap_in_tcb=yes
31372fi
31373    ;;
31374esac
31375if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31376
31377$as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31378
31379fi
31380
31381# Check if the target LIBC handles PT_GNU_STACK.
31382gcc_cv_libc_gnustack=unknown
31383case "$target" in
31384  mips*-*-linux-musl*)
31385    gcc_cv_libc_gnustack=yes
31386    ;;
31387  mips*-*-linux*)
31388
31389if test $glibc_version_major -gt 2 \
31390  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31391  gcc_cv_libc_gnustack=yes
31392fi
31393    ;;
31394esac
31395if test x$gcc_cv_libc_gnustack = xyes; then
31396
31397$as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31398
31399fi
31400
31401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31402$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31403gcc_cv_target_dl_iterate_phdr=unknown
31404case "$target" in
31405  *-*-solaris2*)
31406    # <link.h> needs both a dl_iterate_phdr declaration and support for
31407    # compilation with largefile support.
31408    if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31409      && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31410      gcc_cv_target_dl_iterate_phdr=yes
31411    else
31412      gcc_cv_target_dl_iterate_phdr=no
31413    fi
31414    ;;
31415  *-*-dragonfly* | *-*-freebsd*)
31416    if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31417      gcc_cv_target_dl_iterate_phdr=yes
31418    else
31419      gcc_cv_target_dl_iterate_phdr=no
31420    fi
31421    ;;
31422  *-linux-musl*)
31423    gcc_cv_target_dl_iterate_phdr=yes
31424    ;;
31425esac
31426
31427if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31428
31429$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31430
31431fi
31432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31433$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31434
31435# We no longer support different GC mechanisms.  Emit an error if
31436# the user configures with --with-gc.
31437
31438# Check whether --with-gc was given.
31439if test "${with_gc+set}" = set; then :
31440  withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31441fi
31442
31443
31444# Libraries to use on the host.  This will normally be set by the top
31445# level Makefile.  Here we simply capture the value for our Makefile.
31446if test -z "${HOST_LIBS+set}"; then
31447  HOST_LIBS=
31448fi
31449
31450
31451# Use the system's zlib library.
31452
31453  # Use the system's zlib library.
31454  zlibdir="-L\$(top_builddir)/../zlib"
31455  zlibinc="-I\$(top_srcdir)/../zlib"
31456
31457# Check whether --with-system-zlib was given.
31458if test "${with_system_zlib+set}" = set; then :
31459  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31460    zlibdir=
31461    zlibinc=
31462  fi
31463
31464fi
31465
31466
31467
31468
31469
31470
31471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31472$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31473    # Check whether --enable-maintainer-mode was given.
31474if test "${enable_maintainer_mode+set}" = set; then :
31475  enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31476else
31477  maintainer_mode=no
31478fi
31479
31480
31481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31482$as_echo "$maintainer_mode" >&6; }
31483
31484if test "$maintainer_mode" = "yes"; then
31485  MAINT=''
31486else
31487  MAINT='#'
31488fi
31489
31490if test -z "$CTAGS"; then
31491  CTAGS=ctags
31492fi
31493
31494if test -z "$ETAGS"; then
31495  ETAGS=etags
31496fi
31497
31498if test -z "$CSCOPE"; then
31499  CSCOPE=cscope
31500fi
31501
31502
31503
31504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31505$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31506  # Check whether --enable-link-mutex was given.
31507if test "${enable_link_mutex+set}" = set; then :
31508  enableval=$enable_link_mutex; do_link_mutex=$enableval
31509else
31510  do_link_mutex=no
31511fi
31512
31513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31514$as_echo "$do_link_mutex" >&6; }
31515
31516if test "$do_link_mutex" = "yes"; then
31517   DO_LINK_MUTEX=true
31518else
31519   DO_LINK_MUTEX=false
31520fi
31521
31522
31523
31524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31525$as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31526  # Check whether --enable-link-serialization was given.
31527if test "${enable_link_serialization+set}" = set; then :
31528  enableval=$enable_link_serialization; do_link_serialization=$enableval
31529else
31530  do_link_serialization=no
31531fi
31532
31533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31534$as_echo "$do_link_serialization" >&6; }
31535
31536case "$do_link_serialization" in
31537  yes)
31538    DO_LINK_SERIALIZATION=1;;
31539  [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31540    DO_LINK_SERIALIZATION=$do_link_serialization;;
31541  no)
31542    DO_LINK_SERIALIZATION=;;
31543  *)
31544    as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31545esac
31546
31547
31548# --------------
31549# Language hooks
31550# --------------
31551
31552# Make empty files to contain the specs and options for each language.
31553# Then add #include lines to for a compiler that has specs and/or options.
31554
31555subdirs=
31556lang_opt_files=
31557lang_specs_files=
31558lang_tree_files=
31559# These (without "all_") are set in each config-lang.in.
31560# `language' must be a single word so is spelled singularly.
31561all_languages=
31562all_compilers=
31563all_outputs='Makefile'
31564# List of language configure and makefile fragments.
31565all_lang_configurefrags=
31566all_lang_makefrags=
31567# Additional files for gengtype
31568all_gtfiles="$target_gtfiles"
31569
31570# These are the languages that are set in --enable-languages,
31571# and are available in the GCC tree.
31572all_selected_languages=
31573
31574# Add the language fragments.
31575# Languages are added via two mechanisms.  Some information must be
31576# recorded in makefile variables, these are defined in config-lang.in.
31577# We accumulate them and plug them into the main Makefile.
31578# The other mechanism is a set of hooks for each of the main targets
31579# like `clean', `install', etc.
31580
31581language_hooks="Make-hooks"
31582
31583for lang in ${srcdir}/*/config-lang.in
31584do
31585	test "$lang" = "${srcdir}/*/config-lang.in" && continue
31586
31587        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
31588        if test "x$lang_alias" = x
31589        then
31590              echo "$lang doesn't set \$language." 1>&2
31591              exit 1
31592        fi
31593        subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31594        subdirs="$subdirs $subdir"
31595
31596	# $gcc_subdir is where the gcc integration files are to be found
31597	# for a language, both for internal compiler purposes (compiler
31598	# sources implementing front-end to GCC tree converters), and for
31599	# build infrastructure purposes (Make-lang.in, etc.)
31600	#
31601	# This will be <subdir> (relative to $srcdir) if a line like
31602	# gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31603	# is found in <langdir>/config-lang.in, and will remain <langdir>
31604	# otherwise.
31605	#
31606	# Except for the language alias (fetched above), the regular
31607	# "config-lang.in" contents are always retrieved from $gcc_subdir,
31608	# so a <langdir>/config-lang.in setting gcc_subdir typically sets
31609	# only this and the language alias.
31610
31611        gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
31612        if [ "$gcc_subdir" = "" ]; then
31613           gcc_subdir="$subdir"
31614        fi
31615
31616        case ",$enable_languages," in
31617        *,$lang_alias,*)
31618            all_selected_languages="$all_selected_languages $lang_alias"
31619            if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31620                lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31621	    fi
31622	    ;;
31623        esac
31624
31625	language=
31626	boot_language=
31627	compilers=
31628	outputs=
31629	gtfiles=
31630	subdir_requires=
31631	. ${srcdir}/$gcc_subdir/config-lang.in
31632	if test "x$language" = x
31633	then
31634		echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31635		exit 1
31636	fi
31637
31638	ok=:
31639        case ",$enable_languages," in
31640        	*,$lang_alias,*) ;;
31641		*)
31642			for i in $subdir_requires; do
31643				test -f "${srcdir}/$i/config-lang.in" && continue
31644				ok=false
31645				break
31646			done
31647		;;
31648	esac
31649	$ok || continue
31650
31651	all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31652	if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31653	    # Put c/Make-lang.in fragment first to match serialization languages order.
31654	    all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31655	else
31656	    all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31657	fi
31658	if test -f $srcdir/$gcc_subdir/lang.opt; then
31659	    lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31660	    all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31661	fi
31662	if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31663	    lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31664	fi
31665	all_languages="$all_languages $language"
31666	all_compilers="$all_compilers $compilers"
31667	all_outputs="$all_outputs $outputs"
31668	all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31669        case ",$enable_languages," in
31670        	*,lto,*)
31671
31672$as_echo "#define ENABLE_LTO 1" >>confdefs.h
31673
31674		    enable_lto=yes
31675
31676		    ;;
31677		*) ;;
31678	esac
31679done
31680
31681check_languages=
31682for language in $all_selected_languages
31683do
31684	check_languages="$check_languages check-$language"
31685done
31686
31687selftest_languages=
31688for language in $all_selected_languages
31689do
31690	selftest_languages="$selftest_languages selftest-$language"
31691done
31692
31693# We link each language in with a set of hooks, reached indirectly via
31694# lang.${target}.  Only do so for selected languages.
31695
31696rm -f Make-hooks
31697touch Make-hooks
31698target_list="all.cross start.encap rest.encap tags \
31699	install-common install-man install-info install-dvi install-pdf \
31700	install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31701	mostlyclean clean distclean maintainer-clean install-plugin"
31702
31703for t in $target_list
31704do
31705	x=
31706	for lang in $all_selected_languages
31707	do
31708		x="$x $lang.$t"
31709	done
31710	echo "lang.$t: $x" >> Make-hooks
31711done
31712
31713echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31714echo "SERIAL_LIST =" >> Make-hooks
31715echo else >> Make-hooks
31716lang_cnt=0
31717lang_list=
31718prev=c
31719serialization_languages=c
31720for lang in $all_selected_languages
31721do
31722	test $lang = c && continue
31723	if test $lang = lto; then
31724		serialization_languages="$serialization_languages lto1 lto2"
31725	else
31726		serialization_languages="$serialization_languages $lang"
31727	fi
31728done
31729for lang in $serialization_languages
31730do
31731	test $lang = c && continue
31732	lang_cnt=`expr $lang_cnt + 1`
31733	lang_list=" $prev$lang_list"
31734	prev=${lang}
31735done
31736echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31737echo endif >> Make-hooks
31738echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31739echo "INDEX.c = 0" >> Make-hooks
31740lang_idx=1
31741for lang in $serialization_languages
31742do
31743	test $lang = c && continue
31744	echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31745	echo "INDEX.$lang = $lang_idx" >> Make-hooks
31746	lang_cnt=`expr $lang_cnt - 1`
31747	lang_idx=`expr $lang_idx + 1`
31748done
31749
31750# --------
31751# Option include files
31752# --------
31753
31754${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31755option_includes="option-includes.mk"
31756
31757
31758# --------
31759# UNSORTED
31760# --------
31761
31762# Create .gdbinit.
31763
31764echo "dir ." > .gdbinit
31765echo "dir ${srcdir}" >> .gdbinit
31766if test x$gdb_needs_out_file_path = xyes
31767then
31768	echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31769fi
31770if test "x$subdirs" != x; then
31771	for s in $subdirs
31772	do
31773		echo "dir ${srcdir}/$s" >> .gdbinit
31774	done
31775fi
31776echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31777echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31778
31779# Put a breakpoint on __asan_report_error to help with debugging buffer
31780# overflow.
31781case "$CFLAGS" in
31782*-fsanitize=address*)
31783  echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31784  ;;
31785esac
31786
31787gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31788
31789
31790
31791# Find a directory in which to install a shared libgcc.
31792
31793# Check whether --enable-version-specific-runtime-libs was given.
31794if test "${enable_version_specific_runtime_libs+set}" = set; then :
31795  enableval=$enable_version_specific_runtime_libs;
31796fi
31797
31798
31799# Substitute configuration variables
31800
31801
31802
31803
31804
31805
31806
31807
31808
31809
31810
31811
31812
31813
31814
31815
31816
31817
31818
31819
31820
31821
31822
31823
31824
31825
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868
31869# Echo link setup.
31870if test x${build} = x${host} ; then
31871  if test x${host} = x${target} ; then
31872    echo "Links are now set up to build a native compiler for ${target}." 1>&2
31873  else
31874    echo "Links are now set up to build a cross-compiler" 1>&2
31875    echo " from ${host} to ${target}." 1>&2
31876  fi
31877else
31878  if test x${host} = x${target} ; then
31879    echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31880    echo " for ${target}." 1>&2
31881  else
31882    echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31883    echo " from ${host} to ${target}." 1>&2
31884  fi
31885fi
31886
31887
31888
31889
31890
31891
31892if test "x${ISLLIBS}" != "x" ; then
31893
31894$as_echo "#define HAVE_isl 1" >>confdefs.h
31895
31896fi
31897
31898# Check for plugin support
31899   # Check whether --enable-plugin was given.
31900if test "${enable_plugin+set}" = set; then :
31901  enableval=$enable_plugin; enable_plugin=$enableval
31902else
31903  enable_plugin=yes; default_plugin=yes
31904fi
31905
31906
31907   pluginlibs=
31908   plugin_check=yes
31909
31910   case "${host}" in
31911     *-*-mingw*)
31912       # Since plugin support under MinGW is not as straightforward as on
31913       # other platforms (e.g., we have to link import library, etc), we
31914       # only enable it if explicitly requested.
31915       if test x"$default_plugin" = x"yes"; then
31916         enable_plugin=no
31917       elif test x"$enable_plugin" = x"yes"; then
31918         # Use make's target variable to derive import library name.
31919         pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31920	 plugin_check=no
31921       fi
31922     ;;
31923     *-*-darwin*)
31924       if test x$build = x$host; then
31925	 export_sym_check="nm${exeext} -g"
31926       elif test x$host = x$target; then
31927	 export_sym_check="$gcc_cv_nm -g"
31928       else
31929	 export_sym_check=
31930       fi
31931     ;;
31932     *)
31933       if test x$build = x$host; then
31934	 export_sym_check="objdump${exeext} -T"
31935       elif test x$host = x$target; then
31936	 export_sym_check="$gcc_cv_objdump -T"
31937       else
31938	 export_sym_check=
31939       fi
31940     ;;
31941   esac
31942
31943   if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31944
31945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31946$as_echo_n "checking for exported symbols... " >&6; }
31947     if test "x$export_sym_check" != x; then
31948       echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31949       ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31950       if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31951	 : # No need to use a flag
31952	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31953$as_echo "yes" >&6; }
31954       else
31955	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31956$as_echo "yes" >&6; }
31957	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31958$as_echo_n "checking for -rdynamic... " >&6; }
31959	 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31960	 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31961	   plugin_rdynamic=yes
31962	   pluginlibs="-rdynamic"
31963	 else
31964	   plugin_rdynamic=no
31965	   enable_plugin=no
31966	 fi
31967	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31968$as_echo "$plugin_rdynamic" >&6; }
31969       fi
31970     else
31971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31972$as_echo "unable to check" >&6; }
31973     fi
31974
31975     # Check -ldl
31976     saved_LIBS="$LIBS"
31977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31978$as_echo_n "checking for library containing dlopen... " >&6; }
31979if ${ac_cv_search_dlopen+:} false; then :
31980  $as_echo_n "(cached) " >&6
31981else
31982  ac_func_search_save_LIBS=$LIBS
31983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31984/* end confdefs.h.  */
31985
31986/* Override any GCC internal prototype to avoid an error.
31987   Use char because int might match the return type of a GCC
31988   builtin and then its argument prototype would still apply.  */
31989#ifdef __cplusplus
31990extern "C"
31991#endif
31992char dlopen ();
31993int
31994main ()
31995{
31996return dlopen ();
31997  ;
31998  return 0;
31999}
32000_ACEOF
32001for ac_lib in '' dl; do
32002  if test -z "$ac_lib"; then
32003    ac_res="none required"
32004  else
32005    ac_res=-l$ac_lib
32006    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32007  fi
32008  if ac_fn_cxx_try_link "$LINENO"; then :
32009  ac_cv_search_dlopen=$ac_res
32010fi
32011rm -f core conftest.err conftest.$ac_objext \
32012    conftest$ac_exeext
32013  if ${ac_cv_search_dlopen+:} false; then :
32014  break
32015fi
32016done
32017if ${ac_cv_search_dlopen+:} false; then :
32018
32019else
32020  ac_cv_search_dlopen=no
32021fi
32022rm conftest.$ac_ext
32023LIBS=$ac_func_search_save_LIBS
32024fi
32025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32026$as_echo "$ac_cv_search_dlopen" >&6; }
32027ac_res=$ac_cv_search_dlopen
32028if test "$ac_res" != no; then :
32029  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32030
32031fi
32032
32033     if test x"$ac_cv_search_dlopen" = x"-ldl"; then
32034       pluginlibs="$pluginlibs -ldl"
32035     fi
32036     LIBS="$saved_LIBS"
32037
32038     # Check that we can build shared objects with -fPIC -shared
32039     saved_LDFLAGS="$LDFLAGS"
32040     saved_CFLAGS="$CFLAGS"
32041     case "${host}" in
32042       *-*-darwin*)
32043	 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32044	 CFLAGS="$CFLAGS -fPIC"
32045	 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
32046       ;;
32047       *)
32048	 CFLAGS="$CFLAGS -fPIC"
32049	 LDFLAGS="$LDFLAGS -fPIC -shared"
32050       ;;
32051     esac
32052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32053$as_echo_n "checking for -fPIC -shared... " >&6; }
32054     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32055/* end confdefs.h.  */
32056extern int X;
32057int
32058main ()
32059{
32060return X == 0;
32061  ;
32062  return 0;
32063}
32064_ACEOF
32065if ac_fn_cxx_try_link "$LINENO"; then :
32066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32067$as_echo "yes" >&6; }; have_pic_shared=yes
32068else
32069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32070$as_echo "no" >&6; }; have_pic_shared=no
32071fi
32072rm -f core conftest.err conftest.$ac_objext \
32073    conftest$ac_exeext conftest.$ac_ext
32074     if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
32075       pluginlibs=
32076       enable_plugin=no
32077     fi
32078     LDFLAGS="$saved_LDFLAGS"
32079     CFLAGS="$saved_CFLAGS"
32080
32081     # If plugin support had been requested but not available, fail.
32082     if test x"$enable_plugin" = x"no" ; then
32083       if test x"$default_plugin" != x"yes"; then
32084	 as_fn_error $? "
32085   Building GCC with plugin support requires a host that supports
32086   -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32087       fi
32088     fi
32089   fi
32090
32091
32092
32093if test x"$enable_plugin" = x"yes"; then
32094
32095$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32096
32097fi
32098
32099
32100# Enable --enable-host-shared
32101# Check whether --enable-host-shared was given.
32102if test "${enable_host_shared+set}" = set; then :
32103  enableval=$enable_host_shared; PICFLAG=-fPIC
32104else
32105  PICFLAG=
32106fi
32107
32108
32109
32110
32111
32112# Check whether --enable-libquadmath-support was given.
32113if test "${enable_libquadmath_support+set}" = set; then :
32114  enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
32115else
32116  ENABLE_LIBQUADMATH_SUPPORT=yes
32117fi
32118
32119if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32120
32121$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32122
32123fi
32124
32125
32126# Specify what hash style to use by default.
32127
32128# Check whether --with-linker-hash-style was given.
32129if test "${with_linker_hash_style+set}" = set; then :
32130  withval=$with_linker_hash_style; case x"$withval" in
32131   xsysv)
32132     LINKER_HASH_STYLE=sysv
32133     ;;
32134   xgnu)
32135     LINKER_HASH_STYLE=gnu
32136     ;;
32137   xboth)
32138     LINKER_HASH_STYLE=both
32139     ;;
32140   *)
32141     as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32142     ;;
32143 esac
32144else
32145  LINKER_HASH_STYLE=''
32146fi
32147
32148if test x"${LINKER_HASH_STYLE}" != x; then
32149
32150cat >>confdefs.h <<_ACEOF
32151#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32152_ACEOF
32153
32154fi
32155
32156# Specify what should be the default of -fdiagnostics-color option.
32157
32158# Check whether --with-diagnostics-color was given.
32159if test "${with_diagnostics_color+set}" = set; then :
32160  withval=$with_diagnostics_color; case x"$withval" in
32161   xnever)
32162     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32163     ;;
32164   xauto)
32165     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32166     ;;
32167   xauto-if-env)
32168     DIAGNOSTICS_COLOR_DEFAULT=-1
32169     ;;
32170   xalways)
32171     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32172     ;;
32173   *)
32174     as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32175     ;;
32176 esac
32177else
32178  DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32179fi
32180
32181
32182cat >>confdefs.h <<_ACEOF
32183#define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32184_ACEOF
32185
32186
32187# Specify what should be the default of -fdiagnostics-urls option.
32188
32189# Check whether --with-diagnostics-urls was given.
32190if test "${with_diagnostics_urls+set}" = set; then :
32191  withval=$with_diagnostics_urls; case x"$withval" in
32192   xnever)
32193     DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32194     ;;
32195   xauto)
32196     DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32197     ;;
32198   xauto-if-env)
32199     DIAGNOSTICS_URLS_DEFAULT=-1
32200     ;;
32201   xalways)
32202     DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32203     ;;
32204   *)
32205     as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32206     ;;
32207 esac
32208else
32209  DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32210fi
32211
32212
32213cat >>confdefs.h <<_ACEOF
32214#define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32215_ACEOF
32216
32217
32218# Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32219# of jit/jit-playback.c.
32220gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32221echo "gcc_driver_version: ${gcc_driver_version}"
32222cat > gcc-driver-name.h <<EOF
32223#define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32224EOF
32225
32226# Check whether --enable-default-pie was given.
32227# Check whether --enable-default-pie was given.
32228if test "${enable_default_pie+set}" = set; then :
32229  enableval=$enable_default_pie; enable_default_pie=$enableval
32230else
32231  enable_default_pie=no
32232fi
32233
32234if test x$enable_default_pie = xyes ; then
32235
32236$as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32237
32238fi
32239
32240
32241# Check if -fno-PIE works.
32242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32243$as_echo_n "checking for -fno-PIE option... " >&6; }
32244if ${gcc_cv_c_no_fpie+:} false; then :
32245  $as_echo_n "(cached) " >&6
32246else
32247  saved_CXXFLAGS="$CXXFLAGS"
32248   CXXFLAGS="$CXXFLAGS -fno-PIE"
32249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32250/* end confdefs.h.  */
32251int main(void) {return 0;}
32252_ACEOF
32253if ac_fn_cxx_try_compile "$LINENO"; then :
32254  gcc_cv_c_no_fpie=yes
32255else
32256  gcc_cv_c_no_fpie=no
32257fi
32258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32259   CXXFLAGS="$saved_CXXFLAGS"
32260fi
32261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32262$as_echo "$gcc_cv_c_no_fpie" >&6; }
32263if test "$gcc_cv_c_no_fpie" = "yes"; then
32264  NO_PIE_CFLAGS="-fno-PIE"
32265fi
32266
32267
32268# Check if -no-pie works.
32269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32270$as_echo_n "checking for -no-pie option... " >&6; }
32271if ${gcc_cv_no_pie+:} false; then :
32272  $as_echo_n "(cached) " >&6
32273else
32274  saved_LDFLAGS="$LDFLAGS"
32275   LDFLAGS="$LDFLAGS -no-pie"
32276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32277/* end confdefs.h.  */
32278int main(void) {return 0;}
32279_ACEOF
32280if ac_fn_cxx_try_link "$LINENO"; then :
32281  gcc_cv_no_pie=yes
32282else
32283  gcc_cv_no_pie=no
32284fi
32285rm -f core conftest.err conftest.$ac_objext \
32286    conftest$ac_exeext conftest.$ac_ext
32287   LDFLAGS="$saved_LDFLAGS"
32288fi
32289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32290$as_echo "$gcc_cv_no_pie" >&6; }
32291if test "$gcc_cv_no_pie" = "yes"; then
32292  NO_PIE_FLAG="-no-pie"
32293fi
32294
32295
32296# Enable Intel CET on Intel CET enabled host if jit is enabled.
32297 # Check whether --enable-cet was given.
32298if test "${enable_cet+set}" = set; then :
32299  enableval=$enable_cet;
32300      case "$enableval" in
32301       yes|no|auto) ;;
32302       *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32303                          esac
32304
32305else
32306  enable_cet=auto
32307fi
32308
32309
32310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32311$as_echo_n "checking for CET support... " >&6; }
32312
32313case "$host" in
32314  i[34567]86-*-linux* | x86_64-*-linux*)
32315    may_have_cet=yes
32316    cet_save_CFLAGS="$CFLAGS"
32317    CFLAGS="$CFLAGS -fcf-protection"
32318    case "$enable_cet" in
32319      auto)
32320	# Check if target supports multi-byte NOPs
32321	# and if compiler and assembler support CET.
32322	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32323/* end confdefs.h.  */
32324
32325int
32326main ()
32327{
32328
32329#if !defined(__SSE2__)
32330#error target does not support multi-byte NOPs
32331#else
32332asm ("setssbsy");
32333#endif
32334
32335  ;
32336  return 0;
32337}
32338_ACEOF
32339if ac_fn_cxx_try_compile "$LINENO"; then :
32340  enable_cet=yes
32341else
32342  enable_cet=no
32343fi
32344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32345	;;
32346      yes)
32347	# Check if compiler and assembler support CET.
32348	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32349/* end confdefs.h.  */
32350
32351int
32352main ()
32353{
32354asm ("setssbsy");
32355  ;
32356  return 0;
32357}
32358_ACEOF
32359if ac_fn_cxx_try_compile "$LINENO"; then :
32360  support_cet=yes
32361else
32362  support_cet=no
32363fi
32364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32365	if test $support_cet = "no"; then
32366	  if test x$enable_bootstrap != xno \
32367	     && test -z "${with_build_subdir}" \
32368	     && (test ! -f ../stage_current \
32369	         || test `cat ../stage_current` != "stage1"); then
32370	    # Require CET support only for the final GCC build.
32371	    as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32372	  else
32373	    # Don't enable CET without CET support for non-bootstrap
32374	    # build, in stage1 nor for build support.
32375	    enable_cet=no
32376	  fi
32377	fi
32378	;;
32379    esac
32380    CFLAGS="$cet_save_CFLAGS"
32381    ;;
32382  *)
32383    may_have_cet=no
32384    enable_cet=no
32385    ;;
32386esac
32387
32388cet_save_CFLAGS="$CFLAGS"
32389CFLAGS="$CFLAGS -fcf-protection=none"
32390cet_save_LDFLAGS="$LDFLAGS"
32391LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32392if test x$may_have_cet = xyes; then
32393  # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32395/* end confdefs.h.  */
32396
32397int
32398main ()
32399{
32400return 0;
32401  ;
32402  return 0;
32403}
32404_ACEOF
32405if ac_fn_cxx_try_link "$LINENO"; then :
32406  may_have_cet=yes
32407else
32408  may_have_cet=no
32409fi
32410rm -f core conftest.err conftest.$ac_objext \
32411    conftest$ac_exeext conftest.$ac_ext
32412fi
32413
32414if test x$may_have_cet = xyes; then
32415  if test x$cross_compiling = xno; then
32416    if test "$cross_compiling" = yes; then :
32417  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32419as_fn_error $? "cannot run test program while cross compiling
32420See \`config.log' for more details" "$LINENO" 5; }
32421else
32422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32423/* end confdefs.h.  */
32424
32425int
32426main ()
32427{
32428  asm ("endbr32");
32429  return 0;
32430}
32431
32432_ACEOF
32433if ac_fn_cxx_try_run "$LINENO"; then :
32434  have_multi_byte_nop=yes
32435else
32436  have_multi_byte_nop=no
32437fi
32438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32439  conftest.$ac_objext conftest.beam conftest.$ac_ext
32440fi
32441
32442    have_cet=no
32443    if test x$have_multi_byte_nop = xyes; then
32444      if test "$cross_compiling" = yes; then :
32445  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32447as_fn_error $? "cannot run test program while cross compiling
32448See \`config.log' for more details" "$LINENO" 5; }
32449else
32450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32451/* end confdefs.h.  */
32452
32453static void
32454foo (void)
32455{
32456}
32457
32458static void
32459__attribute__ ((noinline, noclone))
32460xxx (void (*f) (void))
32461{
32462  f ();
32463}
32464
32465static void
32466__attribute__ ((noinline, noclone))
32467bar (void)
32468{
32469  xxx (foo);
32470}
32471
32472int
32473main ()
32474{
32475  bar ();
32476  return 0;
32477}
32478
32479_ACEOF
32480if ac_fn_cxx_try_run "$LINENO"; then :
32481  have_cet=no
32482else
32483  have_cet=yes
32484fi
32485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32486  conftest.$ac_objext conftest.beam conftest.$ac_ext
32487fi
32488
32489    fi
32490    if test x$enable_cet = xno -a x$have_cet = xyes; then
32491      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32492    fi
32493  fi
32494else
32495  # Enable CET in cross compiler if possible so that it will run on both
32496  # CET and non-CET hosts.
32497  have_cet=yes
32498fi
32499if test x$enable_cet = xyes; then
32500  CET_HOST_FLAGS="-fcf-protection"
32501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32502$as_echo "yes" >&6; }
32503else
32504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32505$as_echo "no" >&6; }
32506fi
32507CFLAGS="$cet_save_CFLAGS"
32508LDFLAGS="$cet_save_LDFLAGS"
32509
32510case x$enable_languages in
32511*jit*)
32512  ;;
32513*)
32514  CET_HOST_FLAGS=
32515  ;;
32516esac
32517
32518
32519# Check linker supports '-z bndplt'
32520ld_bndplt_support=no
32521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32522$as_echo_n "checking linker -z bndplt option... " >&6; }
32523if test x"$ld_is_gold" = xno; then
32524  if test $in_tree_ld = yes ; then
32525    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
32526      ld_bndplt_support=yes
32527    fi
32528  elif test x$gcc_cv_ld != x; then
32529    # Check if linker supports -a bndplt option
32530    if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32531      ld_bndplt_support=yes
32532    fi
32533  fi
32534fi
32535if test x"$ld_bndplt_support" = xyes; then
32536
32537$as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32538
32539fi
32540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32541$as_echo "$ld_bndplt_support" >&6; }
32542
32543# Check linker supports '--push-state'/'--pop-state'
32544ld_pushpopstate_support=no
32545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32546$as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32547if test x"$ld_is_gold" = xno; then
32548  if test $in_tree_ld = yes ; then
32549    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
32550      ld_pushpopstate_support=yes
32551    fi
32552  elif test x$gcc_cv_ld != x; then
32553    # Check if linker supports --push-state/--pop-state options
32554    if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32555      ld_pushpopstate_support=yes
32556    fi
32557  fi
32558fi
32559if test x"$ld_pushpopstate_support" = xyes; then
32560
32561$as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32562
32563fi
32564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32565$as_echo "$ld_pushpopstate_support" >&6; }
32566
32567# On s390, float_t has historically been statically defined as double for no
32568# good reason. To comply with the C standard in the light of this definition,
32569# gcc has evaluated float expressions in double precision when in
32570# standards-compatible mode or when given -fexcess-precision=standard. To enable
32571# a smooth transition towards the new model used by most architectures, where
32572# gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32573# float_t from that, this behavior can be configured with
32574# --enable-s390-excess-float-precision. When given as enabled, that flag selects
32575# the old model. When omitted, native builds and cross compiles that have target
32576# libc headers will detect whether libc clamps float_t to double and in that
32577# case maintain the old model. Otherwise, they will default to the new model.
32578# Check whether --enable-s390-excess-float-precision was given.
32579if test "${enable_s390_excess_float_precision+set}" = set; then :
32580  enableval=$enable_s390_excess_float_precision;
32581else
32582  enable_s390_excess_float_precision=auto
32583fi
32584
32585
32586case $target in
32587  s390*-linux*)
32588  if test x"$enable_s390_excess_float_precision" = xauto; then
32589    # Can we autodetect the behavior of the target libc?
32590    if test "$target" = "$host" -a "$host" = "$build"; then
32591      enable_s390_excess_float_precision=autodetect
32592    elif test "x$with_headers" != xno; then
32593      # cross build. are target headers available?
32594      # carefully coerce the build-system compiler to use target headers
32595      saved_CXXFLAGS="$CXXFLAGS"
32596      fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32597      CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32598      CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32599      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32600/* end confdefs.h.  */
32601
32602#include <math.h>
32603
32604_ACEOF
32605if ac_fn_cxx_try_compile "$LINENO"; then :
32606  enable_s390_excess_float_precision=autodetect
32607fi
32608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32609      CXXFLAGS="$saved_CXXFLAGS"
32610    fi
32611
32612    if test x"$enable_s390_excess_float_precision" = xautodetect; then
32613      saved_CXXFLAGS="$CXXFLAGS"
32614      if ! test "$target" = "$host" -a "$host" = "$build"; then
32615        CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32616	unset CROSS_TEST_CXXFLAGS
32617      fi
32618      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32619$as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32620if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32621  $as_echo_n "(cached) " >&6
32622else
32623
32624        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32625/* end confdefs.h.  */
32626
32627#define __FLT_EVAL_METHOD__ 0
32628#include <math.h>
32629int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32630
32631_ACEOF
32632if ac_fn_cxx_try_compile "$LINENO"; then :
32633  gcc_cv_float_t_clamped_to_double=yes
32634else
32635  gcc_cv_float_t_clamped_to_double=no
32636fi
32637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32638fi
32639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32640$as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32641      CXXFLAGS="$saved_CXXFLAGS"
32642      enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32643    else
32644      # no way to detect behavior of target libc, default to new model
32645      enable_s390_excess_float_precision=no
32646    fi
32647  fi
32648
32649
32650  if test x"$enable_s390_excess_float_precision" = xyes; then
32651
32652$as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32653
32654  fi
32655  ;;
32656esac
32657
32658# Configure the subdirectories
32659# AC_CONFIG_SUBDIRS($subdirs)
32660
32661# Create the Makefile
32662# and configure language subdirectories
32663ac_config_files="$ac_config_files $all_outputs"
32664
32665
32666ac_config_commands="$ac_config_commands default"
32667
32668cat >confcache <<\_ACEOF
32669# This file is a shell script that caches the results of configure
32670# tests run on this system so they can be shared between configure
32671# scripts and configure runs, see configure's option --config-cache.
32672# It is not useful on other systems.  If it contains results you don't
32673# want to keep, you may remove or edit it.
32674#
32675# config.status only pays attention to the cache file if you give it
32676# the --recheck option to rerun configure.
32677#
32678# `ac_cv_env_foo' variables (set or unset) will be overridden when
32679# loading this file, other *unset* `ac_cv_foo' will be assigned the
32680# following values.
32681
32682_ACEOF
32683
32684# The following way of writing the cache mishandles newlines in values,
32685# but we know of no workaround that is simple, portable, and efficient.
32686# So, we kill variables containing newlines.
32687# Ultrix sh set writes to stderr and can't be redirected directly,
32688# and sets the high bit in the cache file unless we assign to the vars.
32689(
32690  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32691    eval ac_val=\$$ac_var
32692    case $ac_val in #(
32693    *${as_nl}*)
32694      case $ac_var in #(
32695      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32696$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32697      esac
32698      case $ac_var in #(
32699      _ | IFS | as_nl) ;; #(
32700      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32701      *) { eval $ac_var=; unset $ac_var;} ;;
32702      esac ;;
32703    esac
32704  done
32705
32706  (set) 2>&1 |
32707    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32708    *${as_nl}ac_space=\ *)
32709      # `set' does not quote correctly, so add quotes: double-quote
32710      # substitution turns \\\\ into \\, and sed turns \\ into \.
32711      sed -n \
32712	"s/'/'\\\\''/g;
32713	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32714      ;; #(
32715    *)
32716      # `set' quotes correctly as required by POSIX, so do not add quotes.
32717      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32718      ;;
32719    esac |
32720    sort
32721) |
32722  sed '
32723     /^ac_cv_env_/b end
32724     t clear
32725     :clear
32726     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32727     t end
32728     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32729     :end' >>confcache
32730if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32731  if test -w "$cache_file"; then
32732    if test "x$cache_file" != "x/dev/null"; then
32733      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32734$as_echo "$as_me: updating cache $cache_file" >&6;}
32735      if test ! -f "$cache_file" || test -h "$cache_file"; then
32736	cat confcache >"$cache_file"
32737      else
32738        case $cache_file in #(
32739        */* | ?:*)
32740	  mv -f confcache "$cache_file"$$ &&
32741	  mv -f "$cache_file"$$ "$cache_file" ;; #(
32742        *)
32743	  mv -f confcache "$cache_file" ;;
32744	esac
32745      fi
32746    fi
32747  else
32748    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32749$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32750  fi
32751fi
32752rm -f confcache
32753
32754test "x$prefix" = xNONE && prefix=$ac_default_prefix
32755# Let make expand exec_prefix.
32756test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32757
32758DEFS=-DHAVE_CONFIG_H
32759
32760ac_libobjs=
32761ac_ltlibobjs=
32762U=
32763for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32764  # 1. Remove the extension, and $U if already installed.
32765  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32766  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32767  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32768  #    will be set to the directory where LIBOBJS objects are built.
32769  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32770  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32771done
32772LIBOBJS=$ac_libobjs
32773
32774LTLIBOBJS=$ac_ltlibobjs
32775
32776
32777
32778
32779: "${CONFIG_STATUS=./config.status}"
32780ac_write_fail=0
32781ac_clean_files_save=$ac_clean_files
32782ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32783{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32784$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32785as_write_fail=0
32786cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32787#! $SHELL
32788# Generated by $as_me.
32789# Run this file to recreate the current configuration.
32790# Compiler output produced by configure, useful for debugging
32791# configure, is in config.log if it exists.
32792
32793debug=false
32794ac_cs_recheck=false
32795ac_cs_silent=false
32796
32797SHELL=\${CONFIG_SHELL-$SHELL}
32798export SHELL
32799_ASEOF
32800cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32801## -------------------- ##
32802## M4sh Initialization. ##
32803## -------------------- ##
32804
32805# Be more Bourne compatible
32806DUALCASE=1; export DUALCASE # for MKS sh
32807if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32808  emulate sh
32809  NULLCMD=:
32810  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32811  # is contrary to our usage.  Disable this feature.
32812  alias -g '${1+"$@"}'='"$@"'
32813  setopt NO_GLOB_SUBST
32814else
32815  case `(set -o) 2>/dev/null` in #(
32816  *posix*) :
32817    set -o posix ;; #(
32818  *) :
32819     ;;
32820esac
32821fi
32822
32823
32824as_nl='
32825'
32826export as_nl
32827# Printing a long string crashes Solaris 7 /usr/bin/printf.
32828as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32829as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32830as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32831# Prefer a ksh shell builtin over an external printf program on Solaris,
32832# but without wasting forks for bash or zsh.
32833if test -z "$BASH_VERSION$ZSH_VERSION" \
32834    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32835  as_echo='print -r --'
32836  as_echo_n='print -rn --'
32837elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32838  as_echo='printf %s\n'
32839  as_echo_n='printf %s'
32840else
32841  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32842    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32843    as_echo_n='/usr/ucb/echo -n'
32844  else
32845    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32846    as_echo_n_body='eval
32847      arg=$1;
32848      case $arg in #(
32849      *"$as_nl"*)
32850	expr "X$arg" : "X\\(.*\\)$as_nl";
32851	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32852      esac;
32853      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32854    '
32855    export as_echo_n_body
32856    as_echo_n='sh -c $as_echo_n_body as_echo'
32857  fi
32858  export as_echo_body
32859  as_echo='sh -c $as_echo_body as_echo'
32860fi
32861
32862# The user is always right.
32863if test "${PATH_SEPARATOR+set}" != set; then
32864  PATH_SEPARATOR=:
32865  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32866    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32867      PATH_SEPARATOR=';'
32868  }
32869fi
32870
32871
32872# IFS
32873# We need space, tab and new line, in precisely that order.  Quoting is
32874# there to prevent editors from complaining about space-tab.
32875# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32876# splitting by setting IFS to empty value.)
32877IFS=" ""	$as_nl"
32878
32879# Find who we are.  Look in the path if we contain no directory separator.
32880as_myself=
32881case $0 in #((
32882  *[\\/]* ) as_myself=$0 ;;
32883  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32884for as_dir in $PATH
32885do
32886  IFS=$as_save_IFS
32887  test -z "$as_dir" && as_dir=.
32888    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32889  done
32890IFS=$as_save_IFS
32891
32892     ;;
32893esac
32894# We did not find ourselves, most probably we were run as `sh COMMAND'
32895# in which case we are not to be found in the path.
32896if test "x$as_myself" = x; then
32897  as_myself=$0
32898fi
32899if test ! -f "$as_myself"; then
32900  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32901  exit 1
32902fi
32903
32904# Unset variables that we do not need and which cause bugs (e.g. in
32905# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
32906# suppresses any "Segmentation fault" message there.  '((' could
32907# trigger a bug in pdksh 5.2.14.
32908for as_var in BASH_ENV ENV MAIL MAILPATH
32909do eval test x\${$as_var+set} = xset \
32910  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32911done
32912PS1='$ '
32913PS2='> '
32914PS4='+ '
32915
32916# NLS nuisances.
32917LC_ALL=C
32918export LC_ALL
32919LANGUAGE=C
32920export LANGUAGE
32921
32922# CDPATH.
32923(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32924
32925
32926# as_fn_error STATUS ERROR [LINENO LOG_FD]
32927# ----------------------------------------
32928# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32929# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32930# script with STATUS, using 1 if that was 0.
32931as_fn_error ()
32932{
32933  as_status=$1; test $as_status -eq 0 && as_status=1
32934  if test "$4"; then
32935    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32936    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32937  fi
32938  $as_echo "$as_me: error: $2" >&2
32939  as_fn_exit $as_status
32940} # as_fn_error
32941
32942
32943# as_fn_set_status STATUS
32944# -----------------------
32945# Set $? to STATUS, without forking.
32946as_fn_set_status ()
32947{
32948  return $1
32949} # as_fn_set_status
32950
32951# as_fn_exit STATUS
32952# -----------------
32953# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32954as_fn_exit ()
32955{
32956  set +e
32957  as_fn_set_status $1
32958  exit $1
32959} # as_fn_exit
32960
32961# as_fn_unset VAR
32962# ---------------
32963# Portably unset VAR.
32964as_fn_unset ()
32965{
32966  { eval $1=; unset $1;}
32967}
32968as_unset=as_fn_unset
32969# as_fn_append VAR VALUE
32970# ----------------------
32971# Append the text in VALUE to the end of the definition contained in VAR. Take
32972# advantage of any shell optimizations that allow amortized linear growth over
32973# repeated appends, instead of the typical quadratic growth present in naive
32974# implementations.
32975if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32976  eval 'as_fn_append ()
32977  {
32978    eval $1+=\$2
32979  }'
32980else
32981  as_fn_append ()
32982  {
32983    eval $1=\$$1\$2
32984  }
32985fi # as_fn_append
32986
32987# as_fn_arith ARG...
32988# ------------------
32989# Perform arithmetic evaluation on the ARGs, and store the result in the
32990# global $as_val. Take advantage of shells that can avoid forks. The arguments
32991# must be portable across $(()) and expr.
32992if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32993  eval 'as_fn_arith ()
32994  {
32995    as_val=$(( $* ))
32996  }'
32997else
32998  as_fn_arith ()
32999  {
33000    as_val=`expr "$@" || test $? -eq 1`
33001  }
33002fi # as_fn_arith
33003
33004
33005if expr a : '\(a\)' >/dev/null 2>&1 &&
33006   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33007  as_expr=expr
33008else
33009  as_expr=false
33010fi
33011
33012if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33013  as_basename=basename
33014else
33015  as_basename=false
33016fi
33017
33018if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33019  as_dirname=dirname
33020else
33021  as_dirname=false
33022fi
33023
33024as_me=`$as_basename -- "$0" ||
33025$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33026	 X"$0" : 'X\(//\)$' \| \
33027	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33028$as_echo X/"$0" |
33029    sed '/^.*\/\([^/][^/]*\)\/*$/{
33030	    s//\1/
33031	    q
33032	  }
33033	  /^X\/\(\/\/\)$/{
33034	    s//\1/
33035	    q
33036	  }
33037	  /^X\/\(\/\).*/{
33038	    s//\1/
33039	    q
33040	  }
33041	  s/.*/./; q'`
33042
33043# Avoid depending upon Character Ranges.
33044as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33045as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33046as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33047as_cr_digits='0123456789'
33048as_cr_alnum=$as_cr_Letters$as_cr_digits
33049
33050ECHO_C= ECHO_N= ECHO_T=
33051case `echo -n x` in #(((((
33052-n*)
33053  case `echo 'xy\c'` in
33054  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33055  xy)  ECHO_C='\c';;
33056  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33057       ECHO_T='	';;
33058  esac;;
33059*)
33060  ECHO_N='-n';;
33061esac
33062
33063rm -f conf$$ conf$$.exe conf$$.file
33064if test -d conf$$.dir; then
33065  rm -f conf$$.dir/conf$$.file
33066else
33067  rm -f conf$$.dir
33068  mkdir conf$$.dir 2>/dev/null
33069fi
33070if (echo >conf$$.file) 2>/dev/null; then
33071  if ln -s conf$$.file conf$$ 2>/dev/null; then
33072    as_ln_s='ln -s'
33073    # ... but there are two gotchas:
33074    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33075    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33076    # In both cases, we have to default to `cp -pR'.
33077    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33078      as_ln_s='cp -pR'
33079  elif ln conf$$.file conf$$ 2>/dev/null; then
33080    as_ln_s=ln
33081  else
33082    as_ln_s='cp -pR'
33083  fi
33084else
33085  as_ln_s='cp -pR'
33086fi
33087rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33088rmdir conf$$.dir 2>/dev/null
33089
33090
33091# as_fn_mkdir_p
33092# -------------
33093# Create "$as_dir" as a directory, including parents if necessary.
33094as_fn_mkdir_p ()
33095{
33096
33097  case $as_dir in #(
33098  -*) as_dir=./$as_dir;;
33099  esac
33100  test -d "$as_dir" || eval $as_mkdir_p || {
33101    as_dirs=
33102    while :; do
33103      case $as_dir in #(
33104      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33105      *) as_qdir=$as_dir;;
33106      esac
33107      as_dirs="'$as_qdir' $as_dirs"
33108      as_dir=`$as_dirname -- "$as_dir" ||
33109$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33110	 X"$as_dir" : 'X\(//\)[^/]' \| \
33111	 X"$as_dir" : 'X\(//\)$' \| \
33112	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33113$as_echo X"$as_dir" |
33114    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33115	    s//\1/
33116	    q
33117	  }
33118	  /^X\(\/\/\)[^/].*/{
33119	    s//\1/
33120	    q
33121	  }
33122	  /^X\(\/\/\)$/{
33123	    s//\1/
33124	    q
33125	  }
33126	  /^X\(\/\).*/{
33127	    s//\1/
33128	    q
33129	  }
33130	  s/.*/./; q'`
33131      test -d "$as_dir" && break
33132    done
33133    test -z "$as_dirs" || eval "mkdir $as_dirs"
33134  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33135
33136
33137} # as_fn_mkdir_p
33138if mkdir -p . 2>/dev/null; then
33139  as_mkdir_p='mkdir -p "$as_dir"'
33140else
33141  test -d ./-p && rmdir ./-p
33142  as_mkdir_p=false
33143fi
33144
33145
33146# as_fn_executable_p FILE
33147# -----------------------
33148# Test if FILE is an executable regular file.
33149as_fn_executable_p ()
33150{
33151  test -f "$1" && test -x "$1"
33152} # as_fn_executable_p
33153as_test_x='test -x'
33154as_executable_p=as_fn_executable_p
33155
33156# Sed expression to map a string onto a valid CPP name.
33157as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33158
33159# Sed expression to map a string onto a valid variable name.
33160as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33161
33162
33163exec 6>&1
33164## ----------------------------------- ##
33165## Main body of $CONFIG_STATUS script. ##
33166## ----------------------------------- ##
33167_ASEOF
33168test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33169
33170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33171# Save the log message, to keep $0 and so on meaningful, and to
33172# report actual input values of CONFIG_FILES etc. instead of their
33173# values after options handling.
33174ac_log="
33175This file was extended by $as_me, which was
33176generated by GNU Autoconf 2.69.  Invocation command line was
33177
33178  CONFIG_FILES    = $CONFIG_FILES
33179  CONFIG_HEADERS  = $CONFIG_HEADERS
33180  CONFIG_LINKS    = $CONFIG_LINKS
33181  CONFIG_COMMANDS = $CONFIG_COMMANDS
33182  $ $0 $@
33183
33184on `(hostname || uname -n) 2>/dev/null | sed 1q`
33185"
33186
33187_ACEOF
33188
33189case $ac_config_files in *"
33190"*) set x $ac_config_files; shift; ac_config_files=$*;;
33191esac
33192
33193case $ac_config_headers in *"
33194"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33195esac
33196
33197
33198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33199# Files that config.status was made for.
33200config_files="$ac_config_files"
33201config_headers="$ac_config_headers"
33202config_links="$ac_config_links"
33203config_commands="$ac_config_commands"
33204
33205_ACEOF
33206
33207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33208ac_cs_usage="\
33209\`$as_me' instantiates files and other configuration actions
33210from templates according to the current configuration.  Unless the files
33211and actions are specified as TAGs, all are instantiated by default.
33212
33213Usage: $0 [OPTION]... [TAG]...
33214
33215  -h, --help       print this help, then exit
33216  -V, --version    print version number and configuration settings, then exit
33217      --config     print configuration, then exit
33218  -q, --quiet, --silent
33219                   do not print progress messages
33220  -d, --debug      don't remove temporary files
33221      --recheck    update $as_me by reconfiguring in the same conditions
33222      --file=FILE[:TEMPLATE]
33223                   instantiate the configuration file FILE
33224      --header=FILE[:TEMPLATE]
33225                   instantiate the configuration header FILE
33226
33227Configuration files:
33228$config_files
33229
33230Configuration headers:
33231$config_headers
33232
33233Configuration links:
33234$config_links
33235
33236Configuration commands:
33237$config_commands
33238
33239Report bugs to the package provider."
33240
33241_ACEOF
33242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33243ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33244ac_cs_version="\\
33245config.status
33246configured by $0, generated by GNU Autoconf 2.69,
33247  with options \\"\$ac_cs_config\\"
33248
33249Copyright (C) 2012 Free Software Foundation, Inc.
33250This config.status script is free software; the Free Software Foundation
33251gives unlimited permission to copy, distribute and modify it."
33252
33253ac_pwd='$ac_pwd'
33254srcdir='$srcdir'
33255AWK='$AWK'
33256test -n "\$AWK" || AWK=awk
33257_ACEOF
33258
33259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33260# The default lists apply if the user does not specify any file.
33261ac_need_defaults=:
33262while test $# != 0
33263do
33264  case $1 in
33265  --*=?*)
33266    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33267    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33268    ac_shift=:
33269    ;;
33270  --*=)
33271    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33272    ac_optarg=
33273    ac_shift=:
33274    ;;
33275  *)
33276    ac_option=$1
33277    ac_optarg=$2
33278    ac_shift=shift
33279    ;;
33280  esac
33281
33282  case $ac_option in
33283  # Handling of the options.
33284  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33285    ac_cs_recheck=: ;;
33286  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33287    $as_echo "$ac_cs_version"; exit ;;
33288  --config | --confi | --conf | --con | --co | --c )
33289    $as_echo "$ac_cs_config"; exit ;;
33290  --debug | --debu | --deb | --de | --d | -d )
33291    debug=: ;;
33292  --file | --fil | --fi | --f )
33293    $ac_shift
33294    case $ac_optarg in
33295    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33296    '') as_fn_error $? "missing file argument" ;;
33297    esac
33298    as_fn_append CONFIG_FILES " '$ac_optarg'"
33299    ac_need_defaults=false;;
33300  --header | --heade | --head | --hea )
33301    $ac_shift
33302    case $ac_optarg in
33303    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33304    esac
33305    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33306    ac_need_defaults=false;;
33307  --he | --h)
33308    # Conflict between --help and --header
33309    as_fn_error $? "ambiguous option: \`$1'
33310Try \`$0 --help' for more information.";;
33311  --help | --hel | -h )
33312    $as_echo "$ac_cs_usage"; exit ;;
33313  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33314  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33315    ac_cs_silent=: ;;
33316
33317  # This is an error.
33318  -*) as_fn_error $? "unrecognized option: \`$1'
33319Try \`$0 --help' for more information." ;;
33320
33321  *) as_fn_append ac_config_targets " $1"
33322     ac_need_defaults=false ;;
33323
33324  esac
33325  shift
33326done
33327
33328ac_configure_extra_args=
33329
33330if $ac_cs_silent; then
33331  exec 6>/dev/null
33332  ac_configure_extra_args="$ac_configure_extra_args --silent"
33333fi
33334
33335_ACEOF
33336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33337if \$ac_cs_recheck; then
33338  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33339  shift
33340  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33341  CONFIG_SHELL='$SHELL'
33342  export CONFIG_SHELL
33343  exec "\$@"
33344fi
33345
33346_ACEOF
33347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33348exec 5>>config.log
33349{
33350  echo
33351  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33352## Running $as_me. ##
33353_ASBOX
33354  $as_echo "$ac_log"
33355} >&5
33356
33357_ACEOF
33358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33359#
33360# INIT-COMMANDS
33361#
33362ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33363subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33364subdirs='$subdirs'
33365
33366_ACEOF
33367
33368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33369
33370# Handling of arguments.
33371for ac_config_target in $ac_config_targets
33372do
33373  case $ac_config_target in
33374    "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33375    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33376    "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33377    "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33378    "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33379    "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33380    "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33381    "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33382    "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33383    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33384
33385  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33386  esac
33387done
33388
33389
33390# If the user did not use the arguments to specify the items to instantiate,
33391# then the envvar interface is used.  Set only those that are not.
33392# We use the long form for the default assignment because of an extremely
33393# bizarre bug on SunOS 4.1.3.
33394if $ac_need_defaults; then
33395  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33396  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33397  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33398  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33399fi
33400
33401# Have a temporary directory for convenience.  Make it in the build tree
33402# simply because there is no reason against having it here, and in addition,
33403# creating and moving files from /tmp can sometimes cause problems.
33404# Hook for its removal unless debugging.
33405# Note that there is a small window in which the directory will not be cleaned:
33406# after its creation but before its name has been assigned to `$tmp'.
33407$debug ||
33408{
33409  tmp= ac_tmp=
33410  trap 'exit_status=$?
33411  : "${ac_tmp:=$tmp}"
33412  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33413' 0
33414  trap 'as_fn_exit 1' 1 2 13 15
33415}
33416# Create a (secure) tmp directory for tmp files.
33417
33418{
33419  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33420  test -d "$tmp"
33421}  ||
33422{
33423  tmp=./conf$$-$RANDOM
33424  (umask 077 && mkdir "$tmp")
33425} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33426ac_tmp=$tmp
33427
33428# Set up the scripts for CONFIG_FILES section.
33429# No need to generate them if there are no CONFIG_FILES.
33430# This happens for instance with `./config.status config.h'.
33431if test -n "$CONFIG_FILES"; then
33432
33433if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33434  ac_cs_awk_getline=:
33435  ac_cs_awk_pipe_init=
33436  ac_cs_awk_read_file='
33437      while ((getline aline < (F[key])) > 0)
33438	print(aline)
33439      close(F[key])'
33440  ac_cs_awk_pipe_fini=
33441else
33442  ac_cs_awk_getline=false
33443  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33444  ac_cs_awk_read_file='
33445      print "|#_!!_#|"
33446      print "cat " F[key] " &&"
33447      '$ac_cs_awk_pipe_init
33448  # The final `:' finishes the AND list.
33449  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33450fi
33451ac_cr=`echo X | tr X '\015'`
33452# On cygwin, bash can eat \r inside `` if the user requested igncr.
33453# But we know of no other shell where ac_cr would be empty at this
33454# point, so we can use a bashism as a fallback.
33455if test "x$ac_cr" = x; then
33456  eval ac_cr=\$\'\\r\'
33457fi
33458ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33459if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33460  ac_cs_awk_cr='\\r'
33461else
33462  ac_cs_awk_cr=$ac_cr
33463fi
33464
33465echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33466_ACEOF
33467
33468# Create commands to substitute file output variables.
33469{
33470  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33471  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33472  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33473  echo "_ACAWK" &&
33474  echo "_ACEOF"
33475} >conf$$files.sh &&
33476. ./conf$$files.sh ||
33477  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33478rm -f conf$$files.sh
33479
33480{
33481  echo "cat >conf$$subs.awk <<_ACEOF" &&
33482  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33483  echo "_ACEOF"
33484} >conf$$subs.sh ||
33485  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33486ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33487ac_delim='%!_!# '
33488for ac_last_try in false false false false false :; do
33489  . ./conf$$subs.sh ||
33490    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33491
33492  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33493  if test $ac_delim_n = $ac_delim_num; then
33494    break
33495  elif $ac_last_try; then
33496    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33497  else
33498    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33499  fi
33500done
33501rm -f conf$$subs.sh
33502
33503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33504cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33505_ACEOF
33506sed -n '
33507h
33508s/^/S["/; s/!.*/"]=/
33509p
33510g
33511s/^[^!]*!//
33512:repl
33513t repl
33514s/'"$ac_delim"'$//
33515t delim
33516:nl
33517h
33518s/\(.\{148\}\)..*/\1/
33519t more1
33520s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33521p
33522n
33523b repl
33524:more1
33525s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33526p
33527g
33528s/.\{148\}//
33529t nl
33530:delim
33531h
33532s/\(.\{148\}\)..*/\1/
33533t more2
33534s/["\\]/\\&/g; s/^/"/; s/$/"/
33535p
33536b
33537:more2
33538s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33539p
33540g
33541s/.\{148\}//
33542t delim
33543' <conf$$subs.awk | sed '
33544/^[^""]/{
33545  N
33546  s/\n//
33547}
33548' >>$CONFIG_STATUS || ac_write_fail=1
33549rm -f conf$$subs.awk
33550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33551_ACAWK
33552cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33553  for (key in S) S_is_set[key] = 1
33554  FS = ""
33555  \$ac_cs_awk_pipe_init
33556}
33557{
33558  line = $ 0
33559  nfields = split(line, field, "@")
33560  substed = 0
33561  len = length(field[1])
33562  for (i = 2; i < nfields; i++) {
33563    key = field[i]
33564    keylen = length(key)
33565    if (S_is_set[key]) {
33566      value = S[key]
33567      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33568      len += length(value) + length(field[++i])
33569      substed = 1
33570    } else
33571      len += 1 + keylen
33572  }
33573  if (nfields == 3 && !substed) {
33574    key = field[2]
33575    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
33576      \$ac_cs_awk_read_file
33577      next
33578    }
33579  }
33580  print line
33581}
33582\$ac_cs_awk_pipe_fini
33583_ACAWK
33584_ACEOF
33585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33586if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33587  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33588else
33589  cat
33590fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33591  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33592_ACEOF
33593
33594# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33595# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33596# trailing colons and then remove the whole line if VPATH becomes empty
33597# (actually we leave an empty line to preserve line numbers).
33598if test "x$srcdir" = x.; then
33599  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
33600h
33601s///
33602s/^/:/
33603s/[	 ]*$/:/
33604s/:\$(srcdir):/:/g
33605s/:\${srcdir}:/:/g
33606s/:@srcdir@:/:/g
33607s/^:*//
33608s/:*$//
33609x
33610s/\(=[	 ]*\).*/\1/
33611G
33612s/\n//
33613s/^[^=]*=[	 ]*$//
33614}'
33615fi
33616
33617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33618fi # test -n "$CONFIG_FILES"
33619
33620# Set up the scripts for CONFIG_HEADERS section.
33621# No need to generate them if there are no CONFIG_HEADERS.
33622# This happens for instance with `./config.status Makefile'.
33623if test -n "$CONFIG_HEADERS"; then
33624cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33625BEGIN {
33626_ACEOF
33627
33628# Transform confdefs.h into an awk script `defines.awk', embedded as
33629# here-document in config.status, that substitutes the proper values into
33630# config.h.in to produce config.h.
33631
33632# Create a delimiter string that does not exist in confdefs.h, to ease
33633# handling of long lines.
33634ac_delim='%!_!# '
33635for ac_last_try in false false :; do
33636  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33637  if test -z "$ac_tt"; then
33638    break
33639  elif $ac_last_try; then
33640    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33641  else
33642    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33643  fi
33644done
33645
33646# For the awk script, D is an array of macro values keyed by name,
33647# likewise P contains macro parameters if any.  Preserve backslash
33648# newline sequences.
33649
33650ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33651sed -n '
33652s/.\{148\}/&'"$ac_delim"'/g
33653t rset
33654:rset
33655s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
33656t def
33657d
33658:def
33659s/\\$//
33660t bsnl
33661s/["\\]/\\&/g
33662s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33663D["\1"]=" \3"/p
33664s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
33665d
33666:bsnl
33667s/["\\]/\\&/g
33668s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33669D["\1"]=" \3\\\\\\n"\\/p
33670t cont
33671s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33672t cont
33673d
33674:cont
33675n
33676s/.\{148\}/&'"$ac_delim"'/g
33677t clear
33678:clear
33679s/\\$//
33680t bsnlc
33681s/["\\]/\\&/g; s/^/"/; s/$/"/p
33682d
33683:bsnlc
33684s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33685b cont
33686' <confdefs.h | sed '
33687s/'"$ac_delim"'/"\\\
33688"/g' >>$CONFIG_STATUS || ac_write_fail=1
33689
33690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33691  for (key in D) D_is_set[key] = 1
33692  FS = ""
33693}
33694/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33695  line = \$ 0
33696  split(line, arg, " ")
33697  if (arg[1] == "#") {
33698    defundef = arg[2]
33699    mac1 = arg[3]
33700  } else {
33701    defundef = substr(arg[1], 2)
33702    mac1 = arg[2]
33703  }
33704  split(mac1, mac2, "(") #)
33705  macro = mac2[1]
33706  prefix = substr(line, 1, index(line, defundef) - 1)
33707  if (D_is_set[macro]) {
33708    # Preserve the white space surrounding the "#".
33709    print prefix "define", macro P[macro] D[macro]
33710    next
33711  } else {
33712    # Replace #undef with comments.  This is necessary, for example,
33713    # in the case of _POSIX_SOURCE, which is predefined and required
33714    # on some systems where configure will not decide to define it.
33715    if (defundef == "undef") {
33716      print "/*", prefix defundef, macro, "*/"
33717      next
33718    }
33719  }
33720}
33721{ print }
33722_ACAWK
33723_ACEOF
33724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33725  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33726fi # test -n "$CONFIG_HEADERS"
33727
33728
33729eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
33730shift
33731for ac_tag
33732do
33733  case $ac_tag in
33734  :[FHLC]) ac_mode=$ac_tag; continue;;
33735  esac
33736  case $ac_mode$ac_tag in
33737  :[FHL]*:*);;
33738  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33739  :[FH]-) ac_tag=-:-;;
33740  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33741  esac
33742  ac_save_IFS=$IFS
33743  IFS=:
33744  set x $ac_tag
33745  IFS=$ac_save_IFS
33746  shift
33747  ac_file=$1
33748  shift
33749
33750  case $ac_mode in
33751  :L) ac_source=$1;;
33752  :[FH])
33753    ac_file_inputs=
33754    for ac_f
33755    do
33756      case $ac_f in
33757      -) ac_f="$ac_tmp/stdin";;
33758      *) # Look for the file first in the build tree, then in the source tree
33759	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
33760	 # because $ac_f cannot contain `:'.
33761	 test -f "$ac_f" ||
33762	   case $ac_f in
33763	   [\\/$]*) false;;
33764	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33765	   esac ||
33766	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33767      esac
33768      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33769      as_fn_append ac_file_inputs " '$ac_f'"
33770    done
33771
33772    # Let's still pretend it is `configure' which instantiates (i.e., don't
33773    # use $as_me), people would be surprised to read:
33774    #    /* config.h.  Generated by config.status.  */
33775    configure_input='Generated from '`
33776	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33777	`' by configure.'
33778    if test x"$ac_file" != x-; then
33779      configure_input="$ac_file.  $configure_input"
33780      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33781$as_echo "$as_me: creating $ac_file" >&6;}
33782    fi
33783    # Neutralize special characters interpreted by sed in replacement strings.
33784    case $configure_input in #(
33785    *\&* | *\|* | *\\* )
33786       ac_sed_conf_input=`$as_echo "$configure_input" |
33787       sed 's/[\\\\&|]/\\\\&/g'`;; #(
33788    *) ac_sed_conf_input=$configure_input;;
33789    esac
33790
33791    case $ac_tag in
33792    *:-:* | *:-) cat >"$ac_tmp/stdin" \
33793      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33794    esac
33795    ;;
33796  esac
33797
33798  ac_dir=`$as_dirname -- "$ac_file" ||
33799$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33800	 X"$ac_file" : 'X\(//\)[^/]' \| \
33801	 X"$ac_file" : 'X\(//\)$' \| \
33802	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33803$as_echo X"$ac_file" |
33804    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33805	    s//\1/
33806	    q
33807	  }
33808	  /^X\(\/\/\)[^/].*/{
33809	    s//\1/
33810	    q
33811	  }
33812	  /^X\(\/\/\)$/{
33813	    s//\1/
33814	    q
33815	  }
33816	  /^X\(\/\).*/{
33817	    s//\1/
33818	    q
33819	  }
33820	  s/.*/./; q'`
33821  as_dir="$ac_dir"; as_fn_mkdir_p
33822  ac_builddir=.
33823
33824case "$ac_dir" in
33825.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33826*)
33827  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33828  # A ".." for each directory in $ac_dir_suffix.
33829  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33830  case $ac_top_builddir_sub in
33831  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33832  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33833  esac ;;
33834esac
33835ac_abs_top_builddir=$ac_pwd
33836ac_abs_builddir=$ac_pwd$ac_dir_suffix
33837# for backward compatibility:
33838ac_top_builddir=$ac_top_build_prefix
33839
33840case $srcdir in
33841  .)  # We are building in place.
33842    ac_srcdir=.
33843    ac_top_srcdir=$ac_top_builddir_sub
33844    ac_abs_top_srcdir=$ac_pwd ;;
33845  [\\/]* | ?:[\\/]* )  # Absolute name.
33846    ac_srcdir=$srcdir$ac_dir_suffix;
33847    ac_top_srcdir=$srcdir
33848    ac_abs_top_srcdir=$srcdir ;;
33849  *) # Relative name.
33850    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33851    ac_top_srcdir=$ac_top_build_prefix$srcdir
33852    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33853esac
33854ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33855
33856
33857  case $ac_mode in
33858  :F)
33859  #
33860  # CONFIG_FILE
33861  #
33862
33863_ACEOF
33864
33865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33866# If the template does not know about datarootdir, expand it.
33867# FIXME: This hack should be removed a few years after 2.60.
33868ac_datarootdir_hack=; ac_datarootdir_seen=
33869ac_sed_dataroot='
33870/datarootdir/ {
33871  p
33872  q
33873}
33874/@datadir@/p
33875/@docdir@/p
33876/@infodir@/p
33877/@localedir@/p
33878/@mandir@/p'
33879case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33880*datarootdir*) ac_datarootdir_seen=yes;;
33881*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33882  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33883$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33884_ACEOF
33885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33886  ac_datarootdir_hack='
33887  s&@datadir@&$datadir&g
33888  s&@docdir@&$docdir&g
33889  s&@infodir@&$infodir&g
33890  s&@localedir@&$localedir&g
33891  s&@mandir@&$mandir&g
33892  s&\\\${datarootdir}&$datarootdir&g' ;;
33893esac
33894_ACEOF
33895
33896# Neutralize VPATH when `$srcdir' = `.'.
33897# Shell code in configure.ac might set extrasub.
33898# FIXME: do we really want to maintain this feature?
33899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33900ac_sed_extra="$ac_vpsub
33901$extrasub
33902_ACEOF
33903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33904:t
33905/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33906s|@configure_input@|$ac_sed_conf_input|;t t
33907s&@top_builddir@&$ac_top_builddir_sub&;t t
33908s&@top_build_prefix@&$ac_top_build_prefix&;t t
33909s&@srcdir@&$ac_srcdir&;t t
33910s&@abs_srcdir@&$ac_abs_srcdir&;t t
33911s&@top_srcdir@&$ac_top_srcdir&;t t
33912s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33913s&@builddir@&$ac_builddir&;t t
33914s&@abs_builddir@&$ac_abs_builddir&;t t
33915s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33916$ac_datarootdir_hack
33917"
33918eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33919if $ac_cs_awk_getline; then
33920  $AWK -f "$ac_tmp/subs.awk"
33921else
33922  $AWK -f "$ac_tmp/subs.awk" | $SHELL
33923fi \
33924  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33925
33926test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33927  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33928  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
33929      "$ac_tmp/out"`; test -z "$ac_out"; } &&
33930  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33931which seems to be undefined.  Please make sure it is defined" >&5
33932$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33933which seems to be undefined.  Please make sure it is defined" >&2;}
33934
33935  rm -f "$ac_tmp/stdin"
33936  case $ac_file in
33937  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33938  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33939  esac \
33940  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33941 ;;
33942  :H)
33943  #
33944  # CONFIG_HEADER
33945  #
33946  if test x"$ac_file" != x-; then
33947    {
33948      $as_echo "/* $configure_input  */" \
33949      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33950    } >"$ac_tmp/config.h" \
33951      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33952    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33953      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33954$as_echo "$as_me: $ac_file is unchanged" >&6;}
33955    else
33956      rm -f "$ac_file"
33957      mv "$ac_tmp/config.h" "$ac_file" \
33958	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
33959    fi
33960  else
33961    $as_echo "/* $configure_input  */" \
33962      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33963      || as_fn_error $? "could not create -" "$LINENO" 5
33964  fi
33965 ;;
33966  :L)
33967  #
33968  # CONFIG_LINK
33969  #
33970
33971  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33972    :
33973  else
33974    # Prefer the file from the source tree if names are identical.
33975    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33976      ac_source=$srcdir/$ac_source
33977    fi
33978
33979    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33980$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33981
33982    if test ! -r "$ac_source"; then
33983      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33984    fi
33985    rm -f "$ac_file"
33986
33987    # Try a relative symlink, then a hard link, then a copy.
33988    case $ac_source in
33989    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33990	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33991    esac
33992    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33993      ln "$ac_source" "$ac_file" 2>/dev/null ||
33994      cp -p "$ac_source" "$ac_file" ||
33995      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33996  fi
33997 ;;
33998  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33999$as_echo "$as_me: executing $ac_file commands" >&6;}
34000 ;;
34001  esac
34002
34003
34004  case $ac_file$ac_mode in
34005    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34006    "gccdepdir":C)
34007  ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34008  for lang in $subdirs c-family common analyzer rtl-ssa
34009  do
34010      ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34011  done ;;
34012    "as":F) chmod +x as ;;
34013    "collect-ld":F) chmod +x collect-ld ;;
34014    "nm":F) chmod +x nm ;;
34015    "dsymutil":F) chmod +x dsymutil ;;
34016    "default":C)
34017case ${CONFIG_HEADERS} in
34018  *auto-host.h:config.in*)
34019  echo > cstamp-h ;;
34020esac
34021# Make sure all the subdirs exist.
34022for d in $subdirs doc build common c-family
34023do
34024    test -d $d || mkdir $d
34025done
34026 ;;
34027
34028  esac
34029done # for ac_tag
34030
34031
34032as_fn_exit 0
34033_ACEOF
34034ac_clean_files=$ac_clean_files_save
34035
34036test $ac_write_fail = 0 ||
34037  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34038
34039
34040# configure is writing to config.log, and then calls config.status.
34041# config.status does its own redirection, appending to config.log.
34042# Unfortunately, on DOS this fails, as config.log is still kept open
34043# by configure, so config.status won't be able to write to it; its
34044# output is simply discarded.  So we exec the FD to /dev/null,
34045# effectively closing config.log, so it can be properly (re)opened and
34046# appended to by config.status.  When coming back to configure, we
34047# need to make the FD available again.
34048if test "$no_create" != yes; then
34049  ac_cs_success=:
34050  ac_config_status_args=
34051  test "$silent" = yes &&
34052    ac_config_status_args="$ac_config_status_args --quiet"
34053  exec 5>/dev/null
34054  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34055  exec 5>>config.log
34056  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34057  # would make configure fail if this is the last instruction.
34058  $ac_cs_success || as_fn_exit 1
34059fi
34060if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34061  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34062$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34063fi
34064
34065
34066